I want to connect the BG96 DIAG port with TCP/IP. like serial to tcp.
PC(Run QPST IP Server) <-- LAN --> target board(Linux) <-- USB --> BG96
Run command on the target board
root@:/# nc 192.168.0.68 6001 -vx < /dev/ttyUSB0 > /dev/ttyUSB0
192.168.0.68 [192.168.0.68] 6001 open
Received 4 bytes from the socket
00000000 0C 14 3A 7E …:~
Received 4 bytes from the socket
00000000 0C 14 3A 7E …:~
Received 4 bytes from the socket
00000000 0C 14 3A 7E …:~
bg96 does not respond.
When USB3 is connected in the same way, the AT command is executed
root@:/# nc 192.168.0.68 6001 -vx < /dev/ttyUSB3 > /dev/ttyUSB3
192.168.0.68 [192.168.0.68] 6001 open
Received 3 bytes from the socket
00000000 61 74 0D at.
Sent 1 bytes to the socket
00000000 0A .
Sent 1 bytes to the socket
00000000 0A .
Sent 3 bytes to the socket
00000000 4F 4B 0A OK.
Sent 1 bytes to the socket
00000000 0A