Altitude in Topin Protocol

Frank Meier4 years ago

The Protocol does not seem to support the altitude (always altitude is set to 0). Is there a way to implement it? Seems Topin made some changes in their communication protocol... (version 1.2 available) and other features (like alarms) could be implemented.
Many thanks!
Frank

Anton Tananaev4 years ago

Please provide protocol documentation and some HEX samples from logs.

Frank Meier4 years ago

ZhongXun Topin Locator Communication Protocol

Would be nice to implement:

  • Altitude
  • Definition of Location (GPS, LBS or WIFI)
  • Alarm information

Some sample HEX will follow....

Frank Meier4 years ago

Here is some sample data - altitude should be 422m...

2020-07-28 22:13:04  INFO: [1a724c5d] connected
2020-07-28 22:13:04  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 78780d0103593390754969784e0d0a
2020-07-28 22:13:04  INFO: [1a724c5d: topin > 5.35.166.xxx] HEX: 78780d01010d0a
2020-07-28 22:13:04  INFO: [1a724c5d: topin > 5.35.166.xxx] HEX: 7878073007e4071c140d040d0a
2020-07-28 22:13:04  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 787801570d0a
2020-07-28 22:13:06  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 787815b338393434353030333031323030343530373731460d0a
2020-07-28 22:13:25  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 78780713644e08194a0d0a
2020-07-28 22:13:25  INFO: [1a724c5d: topin > 5.35.166.xxx] HEX: 78780713190d0a
2020-07-28 22:13:25  INFO: [1a724c5d] id: 3593390754xxxxx, time: 2020-07-28 22:11:36, lat: 45.38486, lon: 8.35034, course: 0.0, accuracy: 39.0
2020-07-28 22:13:27  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 787815111407190b1d3a9b051899c40103519b0034e9019f000d0a
2020-07-28 22:13:27  INFO: [1a724c5d: topin > 5.35.166.xxx] HEX: 787815111407190b1d3a0d0a
2020-07-28 22:13:28  INFO: [1a724c5d] id: 3593390754xxxxx, time: 2020-07-25 13:29:58, lat: 45.39906, lon: 8.34151, course: 233.0
2020-07-28 22:13:28  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 7878151114071b0e39329a0518eedb0101b02900344b01ab000d0a
2020-07-28 22:13:28  INFO: [1a724c5d: topin > 5.35.166.xxx] HEX: 7878151114071b0e39320d0a
2020-07-28 22:13:28  INFO: [1a724c5d] id: 3593390754xxxxx, time: 2020-07-27 16:57:50, lat: 45.41116, lon: 8.28214, course: 75.0
2020-07-28 22:13:29  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 7878151114071b0f0f0c9905184c0f0102d9e500352e01e9000d0a
2020-07-28 22:13:29  INFO: [1a724c5d: topin > 5.35.166.xxx] HEX: 7878151114071b0f0f0c0d0a
2020-07-28 22:13:31  INFO: [1a724c5d] id: 3593390754xxxxx, time: 2020-07-27 17:15:12, lat: 45.38801, lon: 8.32448, course: 302.0
2020-07-28 22:18:30  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 787801080d0a
2020-07-28 22:23:30  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 787801080d0a
2020-07-28 22:24:47  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 78780280070d0a
2020-07-28 22:29:38  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 78780280070d0a
2020-07-28 22:34:37  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 787801080d0a
2020-07-28 22:34:39  INFO: [1a724c5d: topin < 5.35.166.xxx] HEX: 78780280070d0a
2020-07-28 22:35:43  INFO: [1a724c5d] disconnected
Anton Tananaev4 years ago

Can you please use some other file sharing service. This one gives me a zip file that doesn't open on Mac.

Frank Meier4 years ago

Can you try this link?
https://filebin.net/7ack8nb4ycpcbqd5

Should work now - it's a PDF File.
Thanks

Anton Tananaev4 years ago

I can't find altitude in the document. I'm assuming you checked it first? Can you please point where you see it.

Frank Meier4 years ago

You are right Anton, no information about altitude. I asked the vendor several times to give more information and update the protocol description - no chance to get any useful information at all :-(
So I think no more effort in this topic.

Hristo4 years ago

Hi guys, and thank you Anton for the great work.
With regards to Topin, I recently purchased ZX302 trackers with Firmware v.87
The Topin guys claim that the documentation below is up to date.
I am not an expert, but do believe that the v1.2 protocol containing the elevation bits and the alarm types are at page 4.

Topin Communication Protocol Documentation HERE

V1.2 has made changes to the positioning data. 0x10 0x11 works.
GPS increase altitude alarm
7878 15 10120B05030D2498038077200BE2078F003400 XXXX FX 0D0A
2Byte XXXX = hex (elevation)
1Byte FX alert
0000 0001 = vibration
0000 0010 = speeding
0000 0100 = wifi attendance
0000 1000 = leave wifi attendance
0001 0000 = low power alarm

Anton Tananaev4 years ago

I guess decoder needs to be updated in that case.