Globalstar protocol decode possible mistake

yuzz_pol2 years ago

Hi, in version 5.1 the protocol works correctly, processing the coordinates correctly. In the current 5.5 it processes them wrongly, giving a wrong position. I did a comparison of the source codes of both protocols using the files GlobalstarProtocol.java and GlobalstarProtocolDecoder.java and in both versions they are the same. Where can I go to find the problem? I can recompile the latest version with those files, will it change anything?

Anton Tananaev2 years ago

Can you please provide:

  1. Protocol documentation
  2. Logs from version 5.1
  3. Logs from version 5.5
yuzz_pol2 years ago

Version 5.5:

2022-12-15 16:50:48  INFO: [T592fbe5d: globalstar < 34.231.245.76] 504f5354202f20485454502f312e310d0a436f6e74656e742d547970653a20746578742f786d6c0d0a782d64617461646f672d74726163652d69643a20313836313334393731383334323537393230380d0a782d64617461646f672d706172656e742d69643a20343130373331313931313236303130303639360d0a782d64617461646f672d73616d706c696e672d7072696f726974793a202d310d0a782d64617461646f672d746167733a205f64642e702e757073747265616d5f73657276696365733d63326c746347786c6543316959574e7262325a6d61574e6c7c2d317c337c310d0a43616368652d436f6e74726f6c3a206e6f2d63616368650d0a507261676d613a206e6f2d63616368650d0a557365722d4167656e743a204a6176612f312e382e305f3135310d0a486f73743a2074726163652e74736d70617461676f6e69612e636f6d2e61723a353138350d0a4163636570743a20746578742f68746d6c2c20696d6167652f6769662c20696d6167652f6a7065672c202a3b20713d2e322c202a2f2a3b20713d2e320d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a436f6e74656e742d4c656e6774683a203436310d0a0d0a3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e0a3c7374754d6573736167657320786d6c6e733a7873693d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d612d696e7374616e636522207873693a6e6f4e616d657370616365536368656d614c6f636174696f6e3d22687474703a2f2f636f64792e676c70636f6e6e6563742e636f6d2f5853442f5374754d6573736167655f526576315f305f312e787364222074696d655374616d703d2231352f31322f323032322031393a35303a333820474d5422206d65737361676549443d223431363136653330346236383130303638343334393930383736383762373466223e0a3c7374754d6573736167653e0a3c65736e3e302d333336363535353c2f65736e3e0a3c756e697854696d653e313637313133333835363c2f756e697854696d653e0a3c6770733e4e3c2f6770733e0a3c7061796c6f6164206c656e6774683d22392220736f757263653d2270632220656e636f64696e673d22686578223e30783030433538334546434433373144304130303c2f7061796c6f61643e0a3c2f7374754d6573736167653e0a3c2f7374754d657373616765733e0a
2022-12-15 16:50:48  INFO: [T592fbe5d: globalstar > 34.231.245.76] 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a203432310d0a636f6e74656e742d747970653a20746578742f786d6c0d0a0d0a
2022-12-15 16:50:48  INFO: [T592fbe5d: globalstar > 34.231.245.76] 3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d3822207374616e64616c6f6e653d226e6f223f3e3c737475526573706f6e73654d736720786d6c6e733a7873693d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d612d696e7374616e63652220636f7272656c6174696f6e49443d223431363136653330346236383130303638343334393930383736383762373466222064656c697665727954696d655374616d703d2231352f31322f323032322030343a35303a34382041525422206d65737361676549443d22303030303030303030303030303030303030303030303030303030303030303022207873693a6e6f4e616d657370616365536368656d614c6f636174696f6e3d22687474703a2f2f636f64792e676c70636f6e6e6563742e636f6d2f5853442f537475526573706f6e73655f526576315f302e787364223e3c73746174653e706173733c2f73746174653e3c73746174654d6573736167653e53746f7265204f4b3c2f73746174654d6573736167653e3c2f737475526573706f6e73654d73673e

Decode PAYLOAD:

<payload length="9" source="pc" encoding="hex">0x00C583EFCD371D0A00</payload>

SERVER DECODE:

TSM-SIMPLEX-1	2022-12-15 16:50:56	0.000000°	0.000000°	10.00 km/h

Version 5.1:

2022-12-05 09:04:14  INFO: [Ta1709140: globalstar < 34.231.245.76] 504f5354202f20485454502f312e310d0a436f6e74656e742d547970653a20746578742f786d6c0d0a782d64617461646f672d74726163652d69643a20323139353830393433393035343634333831300d0a782d64617461646f672d706172656e742d69643a20333636353936333937323730323639383436330d0a782d64617461646f672d73616d706c696e672d7072696f726974793a202d310d0a782d64617461646f672d746167733a205f64642e702e757073747265616d5f73657276696365733d63326c746347786c6543316959574e7262325a6d61574e6c7c2d317c337c310d0a43616368652d436f6e74726f6c3a206e6f2d63616368650d0a507261676d613a206e6f2d63616368650d0a557365722d4167656e743a204a6176612f312e382e305f3135310d0a486f73743a2074726163652e74736d70617461676f6e69612e636f6d2e61723a353138350d0a4163636570743a20746578742f68746d6c2c20696d6167652f6769662c20696d6167652f6a7065672c202a3b20713d2e322c202a2f2a3b20713d2e320d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a436f6e74656e742d4c656e6774683a203436310d0a0d0a3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e0a3c7374754d6573736167657320786d6c6e733a7873693d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d612d696e7374616e636522207873693a6e6f4e616d657370616365536368656d614c6f636174696f6e3d22687474703a2f2f636f64792e676c70636f6e6e6563742e636f6d2f5853442f5374754d6573736167655f526576315f305f312e787364222074696d655374616d703d2230352f31322f323032322031323a30333a323420474d5422206d65737361676549443d223866663963636538346139383130303638633232393930383736383762373466223e0a3c7374754d6573736167653e0a3c65736e3e302d333336363535353c2f65736e3e0a3c756e697854696d653e313637303234313832323c2f756e697854696d653e0a3c6770733e4e3c2f6770733e0a3c7061796c6f6164206c656e6774683d22392220736f757263653d2270632220656e636f64696e673d22686578223e30783030433538334541434433373231304130303c2f7061796c6f61643e0a3c2f7374754d6573736167653e0a3c2f7374754d657373616765733e0a
2022-12-05 09:04:14  INFO: [Ta1709140: globalstar > 34.231.245.76] 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a203432310d0a636f6e74656e742d747970653a20746578742f786d6c0d0a0d0a
2022-12-05 09:04:14  INFO: [Ta1709140: globalstar > 34.231.245.76] 3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d3822207374616e64616c6f6e653d226e6f223f3e3c737475526573706f6e73654d736720786d6c6e733a7873693d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d612d696e7374616e63652220636f7272656c6174696f6e49443d223866663963636538346139383130303638633232393930383736383762373466222064656c697665727954696d655374616d703d2230352f31322f323032322030393a30343a31342041525422206d65737361676549443d22303030303030303030303030303030303030303030303030303030303030303022207873693a6e6f4e616d657370616365536368656d614c6f636174696f6e3d22687474703a2f2f636f64792e676c70636f6e6e6563742e636f6d2f5853442f537475526573706f6e73655f526576315f302e787364223e3c73746174653e706173733c2f73746174653e3c73746174654d6573736167653e53746f7265204f4b3c2f73746174654d6573736167653e3c2f737475526573706f6e73654d73673e

DECODE PAYLOAD:

<payload length="9" source="pc" encoding="hex">0x00C583EACD37210A00</payload>

SERVER DECODE:

TSM-SIMPLEX-1	2022-12-05 09:03:42	-41.122062°	-71.415918°	10.00 km/h

In the LOGS the protocol is found and correctly decoded. But since you have to do a process to convert the payload into coordinates, it seems that something went wrong there.
The documentation is heavy, you should send it by mail.

Anton Tananaev2 years ago
yuzz_pol2 years ago

Thanks a lot! I compile and confirm.

yuzz_pol2 years ago

Thank you! It works like a charm