No "Power" and alarms info in globalsat

casoft9 years ago

Hi.

Friends, im test the server with a GLOBALSAT GTR-128.
The GPS send me the command:

GSr,GTR-128,013227006323018,0080,1,a080,3,190615,163816,W07407.7254,N0440.8181,2579,0.01,130,12,0.7,11540mV,0,77,14,"732,123,0744,2fc1,41,23","732,123,0744,2dfe,05,28","732,123,0744,272a,15,21","732,123,0744,2f02,27,23"*3b!

The lat and log info is fine, but the battery info 11540mV is dont save into the database. The same problem with alarms.

You have this problem?

Thanks

Anton Tananaev9 years ago

Please provide HEX message sample from log file.

casoft9 years ago

Hi, Thanks for answer me, the original hex from the traccar server log is:

4753722c4754522d3132382c3031333232373030363936333036342c303038302c312c613038302c332c3139303631352c3136333831362c5730373430372e373133342c4e303434302e383630312c323537392c302e30312c3133302c31322c302e372c31313534306d562c302c37372c31342c223733322c3132332c303734342c326663312c34312c3233222c223733322c3132332c303734342c326466652c30352c3238222c223733322c3132332c303734342c323732612c31352c3231222c223733322c3132332c303734342c326630322c32372c3233222a336221
casoft9 years ago

The Alarms dont work.

Im generate many, ignition ON, SOS button, and dont work. Dotn detect when the car is RUN or dont RUN.

Anton Tananaev9 years ago

Currently Traccar supports decoding only of essential GPS fields and battery info for GlobalSat protocol. Everything else is ignored.

casoft9 years ago

ok, perfect, and how can help to developed this extras??

in GlobalSatProtocolDecoder.java?

Thanks

or how im can put this info ignored in the database?

thanks

Anton Tananaev9 years ago

Correct, you need to modify GlobalSatProtocolDecoder class.

casoft9 years ago

Ok, perfect, now im try to compile, im sorry for my insistence.

Download the Source file
Install the Maven plugin in my NetBeans (Im sorry only use netbeans to PHP and AndroidStudio to Android projects)
Next compile proyect in netbeans (Built) F11
Next open console and typemvn package
Next type setup/package.sh but say me:

root@platon:/tmp/traccer/traccar-master# setup/package.sh 
Version number is not provided

To try to begin to test my needs, im edit the GlobalSatprotocoldecoder.java and add:

default:
                    position.set(Event.KEY_BATTERY, value);

This to try to save all data.

Thanks form help me to compile correct the project

Sincerely,

Carlos Andres Becerra Bohorquez

Anton Tananaev9 years ago

You don't need to use package.sh script. It's only needed if you want to generate installer.

casoft9 years ago

Hi Anton, thanks for answer me all.

Im sorry have many questions and like colaborate with the project to have complete support to globalsat initialment, next can help with TK103 and TK102

Today study the code and see:

  1. To developed the alarms and car status need make in the GlobalSatProtocolDecoder class the next
    The case to
    P --> AlarmStatus
    R --> Report type
    m --> Main Batery voltage

Then to begin to see the developed of this have the next questions:

  1. Exist other protocol with this support? Im think no because dont see in the database this fields
  2. How do you think developed this fields in the database? Im propose create a fields in the database for this info, and in the web interface developed the status, and alarm type...
  3. If dont exist this method, in how file create this method? In the event.java ?

Thanks for your help and coperation.

Pda: Thansk for andswer me, but next to compule (F11) and build how can run without generate a installer?
Im sorry this is my first work with JAVA, to Android im only bult, compile and rin the apk, but in JAVA im dont remember fine how work all. Thanks for your patience and support

Anton Tananaev9 years ago
  1. All additional information is saved in XML format under other field in the database.

  2. See 1.

  3. You should not add anything to Event class unless it is shared between several protocols.

casoft9 years ago

Anton, how are yoy, return to this theme.

Im like help to developed all this protocol, any other person doing this development? If so, how could contact her, that fn unify the forces and make a single development faster and more efficient

If no one is doing, we could make a bid announcement stakeholders and work you see the issue?

What would be the guidelines for work? As it would be the methodology?

Pending for help in the complete development

Thanks

Anton Tananaev9 years ago

I don't think anybody else is working on it. There are no guidelines, just follow the patterns used in existing code. When you are finished, send me a pull request on GitHub to review and merge the changes.

SBH6 years ago

Looks like nobody updated the Globalsat protocol yet. Perhaps it's time?