Suntech device, not recognized

yashbhat7 years ago

I have configured tk03 devices to use port 103 and suntech to use 5002
My device sends message to the 5002 port
Port configuration`

Message sent to server

53413230305354543b3836333737313032343837323132313b3131313b32303137303830343b30383a34323a32333b31363633333b2b32382e3639373435313b2b3037372e3130333538353b3030302e3030303b3030302e30303b363b313b30303131303933453b30302e30353b332e3930303b3030303030303b313b303b313b30303233

Hex decoded version

SA200STT;863771024872121;111;20170804;08:42:23;16633;+28.697451;+077.103585;000.000;000.00;6;1;0011093E;00.05;3.900;000000;1;0;1;0023
Message sent to server

However the server isn't even decoding the message.

Anton Tananaev7 years ago

Your device doesn't send any delimiters.

yashbhat7 years ago
Delimiter sent, HEX decoded screenshot

I believe the delimiter is sent, check the last character in the decoded message, but it's a character that isn't copied by my OS.

Anton Tananaev7 years ago

It's not there in your HEX data. Something doesn't add up here.

yashbhat7 years ago

Oh the hex decoder was just decoding an extra newline character I suppose. What are the suntech devices supposed to send as delimiters? Because I don;t see the delimiter \r in the suntech document

Anton Tananaev7 years ago

I guess it's not specified in their documentation, but that's what all their devices use as a delimiter.