-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended Info GPS103 #155
Comments
What about 'other' column? |
I have 'other' column but it always stores NULL values. |
That's a bug then, I forgot to change config. Try to use following in config: <entry key='database.insertPosition'> INSERT INTO positions (device_id, time, valid, latitude, longitude, altitude, speed, course, power, other) VALUES (:device_id, :time, :valid, :latitude, :longitude, :altitude, :speed, :course, :power, :extended_info); </entry> |
I added that to config but now, it stores: <protocol>gps103</protocol><alarm>tracker</alarm>. It should store "tracker" only. :D |
Why do you think so? Now you should see alarm in tracker status. |
I think there is another bug related. I did what you said and I added 'other' in config file. Then, I saw "<protocol>gps103</protocol><alarm>tracker</alarm>" be stored in 'other' column, but after that, in traccar web when I click on a device in device panel, It only shows device status for those that have 'NULL' value in 'other' column. |
i am having this problem as well |
Reslvoved Will upload my modifications for you to change The modified code below is from the gps103 protocol in the source |
package org.traccar.protocol; import java.util.Calendar; /**
} |
extended_info is OK as XML, but traccar_web has a bug about it. |
@Jeferex you can replace your protocol source with the above posted and edit as you wish.....this will remove the xml tags and replace them with either nothing or whatever you want.... |
@Tucsondirect I understand but the problem is with traccar web. When I add other column to the config file, device panel in traccar web stop working. The points in the map move and that's ok but when i clic on a device in the device panel, the point doesn't get the focus and status panel doesn't show anything. That's the issue. |
Problem in web interface will be fixed under traccar/traccar-web#45. |
Jeferex, I tried extended XML data and it works fine for me. Can you provide all data of one row with non-empty 'other' field? |
Anton, I am going to tell you what I did. 1.- I added 'other' field to the query. id | address | altitude | course | latitude | longitude | other | power | speed | time | valid | device_id |
5.- The other devices that have the 'other' field empty are normal. They show info on status panel and turn the point to green in the map. |
I belive your bug was fixed |
@Tucsondirect It is not solved yet. Anton opened another issue for this bug but I answered here because he asked me. =) |
Maybe I already fixed it, I don't remember, but build from latest source code works fine with above data. |
I am gonna wait for new release so I can see if it is working! Thanks |
Just compile the new source... |
This is OK with GPS103 tracker. What is the problem?? You don't want tracker to appear? |
"I'm GPS103 device problem: If I turn the key appears in other: acc on |
This record "tracker" is correct even with the car stopped and ignition off? |
Yes, that is correct behavior. If you don't want tracker feature, you have to send a sms with: notn123456 |
@robertoalmeida, please create a new issue next time you have a question. |
I've checked the code for GPS 103 protocol and I see there is a code to handle ALARM messages. But, in my installation, traccar don't store alarm messages and in my MySQL database, the positions table doesn't have any extended info column.
The text was updated successfully, but these errors were encountered: