Battery level from TOPIN devices

Loic 7 months ago

Hi ALL,

I am using devices from topin manufactory. I am not able to display on the web ui the battery percent of the device. I set it to port 5199

In my traccar log i can see this status package :

7878071335040819640d0a

Following to the protocol :

0x13 status package

Device sent data to the server

Start bit 2byte Reserved byte 1byte Protocol number 1byte Battery power 1byte Software version 1byte Time zone 1byte Status packet upload interval 1byte End bit 2byte
Eg.7878 06 13 55 23 08 03 0D0A

55 indicates that the battery power is still 85%, 23 indicates that the software version number is 35 08 indicates that it is East 8 (just an integer), and 03 indicates that the status packet upload interval is 3 minutes.
Increased signal strength
Start bit 2byte Packet length 1byte Protocol number 1byte Battery power 1byte Software version 1byte Time zone 1byte Status packet upload interval 1byte Device signal strength 1byte End bit 2byte
Eg.7878 07 13 55 23 08 03 64 0D0A
0x55 indicates that the battery level is 85. 0x64 indicates device signal strength 100

So in my case the interrested data byte is 35 but the percent is not displayed.

I have set server side in the popup informations battery, battery level, and voltage ...

Anyone to help me to solve this problem ?

regards

Anton Tananaev7 months ago

It's already supported:

https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/protocol/TopinProtocolDecoder.java#L202

If you don't see it, either your device is not reporting it or maybe it reports some other message type and that's what you're looking at.

fanfan697 months ago

I confirm, I have 18 active Topin and the battery level is displayed randomly even though it is sent, I don't know why, because the battery level is not important at the moment .for exemple :

2023-09-25 22:08:25  INFO: [T383eb385] connected
2023-09-25 22:08:25  INFO: [T383eb385: topin < 78.242.138.180] 78780d010861261024118354060d0a
2023-09-25 22:08:25  INFO: [T383eb385: topin > 78.242.138.180] 78780d01010d0a
2023-09-25 22:08:25  INFO: [T383eb385: topin > 78.242.138.180] 7878073007e709191408190d0a
2023-09-25 22:08:26  INFO: [T383eb385: topin < 78.242.138.180] 787815b338393333313530333233303330363731383835460d0a
2023-09-25 22:08:47  INFO: [T383eb385: topin < 78.242.138.180] 787807135c060819290d0a
2023-09-25 22:08:47  INFO: [T383eb385] id: 861261024118354, time: 2023-09-21 11:11:34, lat: 45.74454, lon: 4.89130, course: 32.0
2023-09-25 22:08:47  INFO: [T383eb385: topin > 78.242.138.180] 787807135c060819290d0a
2023-09-25 22:13:48  INFO: [T383eb385: topin < 78.242.138.180] 787801080d0a
Anton Tananaev7 months ago

It is shown when you device sends it.

fanfan697 months ago

even if it's not a problem for me at the moment, because I'm testing something else, I can just say that it's not automatic, sometimes yes sometimes no, while the command is sent, I bring just an experience.

DaveGG7 months ago

Topin has many products, in my case I use the 2G model and sometimes it does not show the battery level, I suspect that they modified their protocol because it does not show me the speed in the graphics of my routes. (all this with the best antenna for 930Mhz and other to 1800Mhz for 2G)

Loic 7 months ago

Hi all,

Thanks for your explanation. But as you can see below in every status package the battery level is in it but not displayed :

2023-09-25 09:45:08  INFO: [T64a7abfa: topin < 195.233.151.114] 78780d010359339077189412040d0a
2023-09-25 09:45:08  INFO: [T64a7abfa: topin > 195.233.151.114] 78780d01010d0a
2023-09-25 09:45:08  INFO: [T64a7abfa: topin > 195.233.151.114] 7878073007e70919072d080d0a
2023-09-25 09:45:08  INFO: [T64a7abfa: topin < 195.233.151.114] 787815b338393331343430343030313233353739353030310d0a
2023-09-25 09:45:29  INFO: [T64a7abfa: topin < 195.233.151.114] 7878071338040819640d0a
2023-09-25 09:45:29  INFO: [T64a7abfa: topin > 195.233.151.114] 7878071338040819640d0a
2023-09-25 09:55:30  INFO: [T64a7abfa: topin < 195.233.151.114] 787801080d0a
2023-09-25 09:55:30  INFO: [T64a7abfa: topin < 195.233.151.114] 7878071337040819640d0a
2023-09-25 21:36:39  INFO: [T99284e68: topin < 195.233.151.114] 78780d010359339077189412040d0a
2023-09-25 21:36:39  INFO: [T99284e68: topin > 195.233.151.114] 78780d01010d0a
2023-09-25 21:36:39  INFO: [T99284e68: topin > 195.233.151.114] 7878073007e709191324270d0a
2023-09-25 21:36:39  INFO: [T99284e68: topin < 195.233.151.114] 787815b338393331343430343030313233353739353030310d0a
2023-09-25 21:37:00  INFO: [T99284e68: topin < 195.233.151.114] 7878071335040819640d0a
2023-09-25 21:37:00  INFO: [T99284e68: topin > 195.233.151.114] 7878071335040819640d0a
2023-09-25 21:47:00  INFO: [T99284e68: topin < 195.233.151.114] 787801080d0a
2023-09-25 21:47:01  INFO: [T99284e68: topin < 195.233.151.114] 78780713 35 040819640d0a
2023-09-25 23:50:53  INFO: [Tb0edba68: topin < 195.233.151.114] 78780d010 35 9339077189412040d0a
2023-09-25 23:50:53  INFO: [Tb0edba68: topin > 195.233.151.114] 78780d01010d0a
2023-09-25 23:50:53  INFO: [Tb0edba68: topin > 195.233.151.114] 7878073007e709191532350d0a
2023-09-25 23:50:53  INFO: [Tb0edba68: topin < 195.233.151.114] 787815b338393331343430343030313233353739353030310d0a
2023-09-25 23:51:14  INFO: [Tb0edba68: topin < 195.233.151.114] 78780713 35 040819640d0a
2023-09-25 23:51:14  INFO: [Tb0edba68: topin > 195.233.151.114] 78780713 35 040819640d0a

I have made a space between hex data to show the number 35, this is battery level.

below the last protocol of TOPIN DEVICES :

LAST TOPIN PROTOCOL

Anton would you please check the protocol to be sure everything is okay ?

Anton Tananaev7 months ago

I already checked before, but you don't listen to what I'm saying.

DaveGG7 months ago

I am with Anton, it is not traccar failure or protocols. Right now I have 2 GPS of the same model, one online and one without line since yesterday, both on the map, click on the without line and battery level 95%, click on is online and no there is a battery level but yes show there is RSSI and some others attributes. These Chinese GPS do a little what they want.

DaveGG7 months ago

After last checks unfortunately the battery level only appears when the device is offline.