Zx620

Francois6 years ago

Good day, which port should I use if I want to use tge Topin zx 620 gps?

Anton Tananaev6 years ago

You would need to provide some message samples or protocol documentation.

Francois6 years ago

Thank you, will try and get the info from the supplier.

Francois6 years ago

Good day Anton
I am still waiting for the zx620 documentation,from the supplier. I just have another question

If I create a notification the following can be send as a API, I use $.ajax({ request
id: integer
type: string
always: boolean
web: boolean
mail: boolean
sms: boolean
calendarId: integer
attributes: object
I successfully created notifications, but I have to go into traccar to tick the box under device settings before it works.
I want to link it to a device, how can I do that with API request ? must I create a attribute ?

Anton Tananaev6 years ago

Check what official web app sends when you tick the checkbox.

Francois6 years ago

Thanks for your quick response. How would I do that? I can not see anything when I right click inspect on browser?

Francois6 years ago

Sorry, I got the answer. Permissions

Francois6 years ago

The tracker-server.log file of the zx620 looks like, below, but I cannot make sense of it if I put it in the hex decoder, am I doing something wrong? I paste the 787812100000000000009000000000000000000020000d0a into decoder

2019-01-14 08:17:00 DEBUG: [54D4B227: 5023 < 41.13.24.204] HEX: 787812100000000000009000000000000000000020000d0a
2019-01-14 08:17:00 DEBUG: [54D4B227: 5023 > 41.13.24.204] HEX: 787805100000171c0d0a
2019-01-14 08:17:00  INFO: [54D4B227] id: 359339075510991, time: 1999-11-30 00:00:00, lat: -0.00000, lon: 0.00000, speed: 0.0, course: 0.0
2019-01-14 08:17:50 DEBUG: [54D4B227: 5023 < 41.13.24.204] HEX: 787801080d0a
2019-01-14 08:17:50 DEBUG: [54D4B227: 5023 > 41.13.24.204] HEX: 78780508787895800d0a
2019-01-14 08:17:52 DEBUG: [54D4B227: 5023 < 41.13.24.204] HEX: 787812100000000000009000000000000000000020000d0a
2019-01-14 08:17:52 DEBUG: [54D4B227: 5023 > 41.13.24.204] HEX: 787805100000171c0d0a
2019-01-14 08:17:52  INFO: [54D4B227] id: 359339075510991, time: 1999-11-30 00:00:00, lat: -0.00000, lon: 0.00000, speed: 0.0, course: 0.0
2019-01-14 08:18:42 DEBUG: [54D4B227: 5023 < 41.13.24.204] HEX: 787801080d0a
2019-01-14 08:18:42 DEBUG: [54D4B227: 5023 > 41.13.24.204] HEX: 78780508787895800d0a
2019-01-14 08:18:44 DEBUG: [54D4B227: 5023 < 41.13.24.204] HEX: 787812100000000000009000000000000000000020000d0a
2019-01-14 08:18:44 DEBUG: [54D4B227: 5023 > 41.13.24.204] HEX: 787805100000171c0d0a
2019-01-14 08:18:44  INFO: [54D4B227] id: 359339075510991, time: 1999-11-30 00:00:00, lat: -0.00000, lon: 0.00000, speed: 0.0, course: 0.0
2019-01-14 08:19:34 DEBUG: [54D4B227: 5023 < 41.13.24.204] HEX: 787801080d0a
2019-01-14 08:19:34 DEBUG: [54D4B227: 5023 > 41.13.24.204] HEX: 78780508787895800d0a
2019-01-14 08:19:36 DEBUG: [54D4B227: 5023 < 41.13.24.204] HEX: 787812100000000000009000000000000000000020000d0a
2019-01-14 08:19:36 DEBUG: [54D4B227: 5023 > 41.13.24.204] HEX: 787805100000171c0d0a
2019-01-14 08:19:36  INFO: [54D4B227] id: 359339075510991, time: 1999-11-30 00:00:00, lat: -0.00000, lon: 0.00000, speed: 0.0, course: 0.0
Anton Tananaev6 years ago

It's a binary protocol, so obviously it won't give you any sensible information if you try to convert it into text.

Francois6 years ago

Thanks for the reply, it looks like gt 06 protocol, just dont know why the location data is not working.

Anton Tananaev6 years ago

It's not working because there is no location data.

Francois6 years ago

Yes, I guess I need to send a command to the module to activate the gps. I have had the device outside for a while and it still did not get a location fix.

Francois6 years ago

Hi Anton
The supplier send me the following

Zhongxun Locator Communication Protocol
...
Anton Tananaev6 years ago

Are you serious? Upload the file somewhere.

Francois6 years ago

Good day Anton

Apologies, here is a link to goolge drive with the protocol file ZhongXun Topin Locator
https://drive.google.com/open?id=12oa3b1QLAx1d7lys-n-XXmp5dDsloU1l

Kind regards