Fix Length Frame Format

aman10088 years ago

Hi,
Can anyone tell me which protocol port is use for fix length format. I am using 5109(appello) port for fix length data. Hex data is coming on this port(5109) from the device, but it is not saving in to the positions table. This data is not saving directly in to db, enter key is required to store. or how to append (\r\n) in to frame string.

Anton Tananaev8 years ago

What device are you using? What protocol does it use?

aman10088 years ago

Device sending data to port 5109(appello.port). I don't know device port address, but i want to know which port accept fix length string format so that device point to specific port number.

Anton Tananaev8 years ago

It doesn't make any sense to me. Can I see some data samples from server logs?

aman10088 years ago
2016-07-13 08:41:40  INFO: Starting server...
2016-07-13 08:41:48  INFO: [AD651AE1] connected
2016-07-13 08:41:50 DEBUG: [AD651AE1: 5109 < 182.69.210.46] HEX: 2438353130303030343236303146343136333835373131303731364132383332383734354e3037373037353130314531443035313033332e3430303042303030305a5a5a5a5a5a5a5a30303031303030303030303030303030303030303130303034373038343630313742303933363738304639453030303038462a0a
2016-07-13 08:41:50  INFO: [AD651AE1] id: 10000426, time: 2016-07-13 08:41:50, lat: 28.67908, lon: 77.20168, speed: 0.0, course: 0.0
2016-07-13 08:42:03 DEBUG: [AD651AE1: 5109 < 182.69.210.46] HEX: 2438353130303030343236303146343136333835373131303731364132383332383734354e3037373037353130314531443035313033332e3430303042303030305a5a5a5a5a5a5a5a30303031303030303030303030303030303030303130303034373038343630313742303933363738304639453030303038462a0a
2016-07-13 08:42:04  INFO: [AD651AE1] id: 10000426, time: 2016-07-13 08:42:03, lat: 28.67908, lon: 77.20168, speed: 0.0, course: 0.0
2016-07-13 08:42:47  INFO: [F02E42E7] connected
2016-07-13 08:42:48 DEBUG: [F02E42E7: 5109 < 106.196.255.166] HEX: 2438353130303030343236303146373136343032363131303731364132383333353030354e3037373037393931334534363031333033342e3930303042303030305a5a5a5a5a5a5a5a30303031303030303030303030303030303030303130303034373038353342313839303233373530304639453030303041342a
2016-07-13 08:43:48 DEBUG: [F02E42E7: 5109 < 106.196.255.166] HEX: 2438353130303030343236303146373136343032363131303731364132383333353030354e3037373037393931334534363031333033342e3930303042303030305a5a5a5a5a5a5a5a30303031303030303030303030303030303030303130303034373038353342313839393433373530304639453030303039392a

In the bold format data is save in to db when hit enter using cmd. In case of hit string using cmd then 0a is append into the string end but in italic format data is coming from the device no data is saving in to db.

Anton Tananaev8 years ago

That doesn't look like Appello protocol. Can you please explain in as much details as possible what you are trying to do and what does it have to do with Appello protocol.