Serial Communication
Posted: 01 Aug 2021, 13:43
Hello everyone!
I have air monitoring device, I want to to read data from it via network, but device has only Serial port interface.
To start recieve data procedure I need send 13 bytes to the device
and then device will response with 40 bytes data
Can I send HEX data via serial port?
How can I recieve response data?
PS. I tried to use Ser2Net plugin to see if it would be useful in my case, but I had diffucults.
I could sent data from network and recieve it in Serial port, but I couldn't do the same in vice versa.
I have air monitoring device, I want to to read data from it via network, but device has only Serial port interface.
To start recieve data procedure I need send 13 bytes to the device
Code: Select all
0x55 0xCD 0x47 0x00 x00 0x00 0x00 0x00 0x00 0x01 0x69 0x0D 0x0A
Code: Select all
0xAA 0x00 0x13 0x00 0x14 0x00 0x0A 0x00 0xA0 0x02 0x00 0x0B 0x72 0x14 0xDC 0x01 0x04 0x00 0x00 0x08 0xAC 0x02 0x73 0x00 0x70 0x00 0x04 0x00 0x02 0x00 0x02 0x00 0x00 0x00 0x00 0x47 0x04 0xD7 0x0D 0x0A
How can I recieve response data?
PS. I tried to use Ser2Net plugin to see if it would be useful in my case, but I had diffucults.
I could sent data from network and recieve it in Serial port, but I couldn't do the same in vice versa.