TCP/IP connection problem
Mostrar comentarios más antiguos
Hello all and thanks for your help,
I was trying to make an easy tcpip connection between my pc and a little board connected to my computer via USB. This one has an IP address (192.168.1.100) and a port address 21845. the simple code on matlab used is:
conn=tcpip('192.168.1.100',21845);
conn
fopen(conn);
fclose(conn);
But when I check the connection status:
TCPIP Object : TCPIP-192.168.1.100
Communication Settings
RemotePort: 21845
RemoteHost: 192.168.1.100
Terminator: 'LF'
Communication State
Status: closed
RecordStatus: off
Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
What it should appear in the status field is open, Iam rigth? Thanks for your help.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre TCP/IP Communication en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!