neatbean traccar

petersusan8 years ago

Hello

i followed the description:
https://www.traccar.org/build-in-netbeans/

but when i run the project then it looks like stopped and i can not start the web interface (localhost:8082)
i have tried first with netbean8.1.
http://autoaksi.hu/traccar_run.png

can you help me?

run

thanks in advance
peter

Anton Tananaev8 years ago

You should look at the exception. I suspect that you have some port conflict.

petersusan8 years ago

thanks
what do you mean about exception?
is it in any description, documentation?

can i check any log or config file? (netbean run on Windows7)

thanks
peter

Anton Tananaev8 years ago

Why are you trying to use source code if you don't even have a basic knowledge in programming?

petersusan8 years ago

hello
i have, but just a little.

in version 3.8 i modified protocol gps103, because without gps data it does not evaulate the io fields.
it worked fine, of course i do not know too much abut java and netbean.

after several month somehow 3.8 stoped to work and i could not repair it.

so i tried to do the same with 3.9 but it does not work like before.

can you help me?
thanks
peter

Anton Tananaev8 years ago

What's the issue with IO fields. Please provide more details and some samples.

petersusan8 years ago

one of the device has analog input (originaly for fuel level) and put the data into io3 field
so i use this data to collect analog voltage level, and we need this data even when there is no gps signal.

the original code does not evaulate and store the io feld if there is no gps data, it stores only gsm lac and ci.

with gps data:

imei:359710046982931,tracker           ,150223202244,,F,122244.000,A,4733.7127,N,01902.4392,E,0.00 ,0     ,,1,1,84.13%, ,;

without

imei:359710046982931,tracker           ,150204093844,,L,          , ,ee4      , ,6d4       , ,     ,      ,,1,1,84.13%, ,;

my code could evaulate both

petersusan8 years ago

the original code write into attribute field og mysql if there is no gps
{"lac":3812,"cid":1753,"ip":"176.77.137.211","distance":0.0,"totalDistance":3274.19}

with gps data:
{"io1":"0","io2":"0","io3":"41.62%","ip":"176.77.137.48","distance":0.0,"totalDistance":258589.27}

Anton Tananaev8 years ago

Can I have original HEX data?

petersusan8 years ago

as i can see traccar_server.log file does not contain samples without gps data
earlier i feached samples with wireshark, but i can do it only on site, later

2017-01-30 00:00:05  INFO: [C7A63D50] id: 459710040989015, time: 2017-01-29 23:57:58, lat: 47.60337, lon: 18.98945, speed: 0.0, course: 0.0
2017-01-30 00:00:07 DEBUG: [0BF470AB: 5001 < 84.224.13.64] HEX: 696d65693a3335393731303034363034393235312c747261636b65722c3137303132393233353830362c2c462c3232353830332e3030302c412c343733362e303238372c4e2c30313930332e353831332c452c302e30302c302c2c302c302c34312e3133252c302c3b
2017-01-30 00:00:07  INFO: [0BF470AB] id: 359710046049251, time: 2017-01-29 23:58:03, lat: 47.60048, lon: 19.05969, speed: 0.0, course: 0.0
2017-01-30 00:00:10 DEBUG: [EF45859C: 5001 < 84.224.190.54] HEX: 696d65693a3335393731303034383139313230302c747261636b65722c3137303132393233353831302c2c462c3232353830372e3030302c412c343734312e393031382c4e2c30313930332e373330302c452c302e30302c302c2c302c302c34302e3838252c2c3b
2017-01-30 00:00:11  INFO: [EF45859C] id: 359710048191200, time: 2017-01-29 23:58:07, lat: 47.69836, lon: 19.06217, speed: 0.0, course: 0.0
2017-01-30 00:00:20 DEBUG: [6A2B6CC3: 5001 < 84.225.207.98] HEX: 696d65693a3435393731303034303130303435362c747261636b65722c3137303132393233353831362c2c462c3232353831332e3030302c412c343733362e313938342c4e2c30313835392e333639312c452c302e30302c302c2c302c302c34312e3432252c2c3b
2017-01-30 00:00:20  INFO: [6A2B6CC3] id: 459710040100456, time: 2017-01-29 23:58:13, lat: 47.60331, lon: 18.98949, speed: 0.0, course: 0.0
2017-01-30 00:00:26 DEBUG: [C7A63D50: 5001 < 176.77.139.181] HEX: 3435393731303034303938393031353b
2017-01-30 00:00:26 DEBUG: [C7A63D50: 5001 > 176.77.139.181] HEX: 4f4e
2017-01-30 00:00:34 DEBUG: [6C682393: 5001 < 176.77.132.55] HEX: 696d65693a3836333037303031333835363432312c747261636b65722c313730313239323335382c2c462c3232353833312e3030302c412c343733332e363938372c4e2c30313930322e343631362c452c302e30302c2c3b
2017-01-30 00:00:34  INFO: [6C682393] id: 863070013856421, time: 2017-01-29 23:58:31, lat: 47.56165, lon: 19.04103, speed: 0.0, course: 0.0
2017-01-30 00:00:35 DEBUG: [C7A63D50: 5001 < 176.77.139.181] HEX: 696d65693a3435393731303034303938393031352c747261636b65722c3137303132393233353833312c2c462c3232353832382e3030302c412c343733362e323032342c4e2c30313835392e333636382c452c302e30302c302c2c302c302c34302e3938252c2c3b
2017-01-30 00:00:35  INFO: [C7A63D50] id: 459710040989015, time: 2017-01-29 23:58:28, lat: 47.60337, lon: 18.98945, speed: 0.0, course: 0.0
2017-01-30 00:00:37 DEBUG: [0BF470AB: 5001 < 84.224.13.64] HEX: 696d65693a3335393731303034363034393235312c747261636b65722c3137303132393233353833362c2c462c3232353833332e3030302c412c343733362e303238372c4e2c30313930332e353831332c452c302e30302c302c2c302c302c34312e3133252c302c3b
2017-01-30 00:00:37  INFO: [0BF470AB] id: 359710046049251, time: 2017-01-29 23:58:33, lat: 47.60048, lon: 19.05969, speed: 0.0, course: 0.0
2017-01-30 00:00:40 DEBUG: [EF45859C: 5001 < 84.224.190.54] HEX: 696d65693a3335393731303034383139313230302c747261636b65722c3137303132393233353834302c2c462c3232353833372e3030302c412c343734312e393031382c4e2c30313930332e373330302c452c302e30302c302c2c302c302c34302e3838252c2c3b
2017-01-30 00:00:41  INFO: [EF45859C] id: 359710048191200, time: 2017-01-29 23:58:37, lat: 47.69836, lon: 19.06217, speed: 0.0, course: 0.0
2017-01-30 00:00:43 DEBUG: [6C682393: 5001 < 176.77.132.55] HEX: 3836333037303031333835363432313b
2017-01-30 00:00:43 DEBUG: [6C682393: 5001 > 176.77.132.55] HEX: 4f4e
2017-01-30 00:00:46 DEBUG: [4DAA6A5C: 5001 < 176.77.139.72] HEX: 696d65693a3836333037303031333232383430372c747261636b65722c313730313239323335382c2c462c3232353834302e3030302c412c343733332e353238322c4e2c30313930312e383430392c452c302e30302c2c3b
2017-01-30 00:00:46  INFO: [4DAA6A5C] id: 863070013228407, time: 2017-01-29 23:58:40, lat: 47.55880, lon: 19.03068, speed: 0.0, course: 0.0
2017-01-30 00:00:50 DEBUG: [6A2B6CC3: 5001 < 84.225.207.98] HEX: 696d65693a3435393731303034303130303435362c747261636b65722c3137303132393233353834362c2c462c3232353834332e3030302c412c343733362e313938342c4e2c30313835392e333639312c452c302e30302c302c2c302c302c34312e3431252c2c3b
2017-01-30 00:00:50  INFO: [6A2B6CC3] id: 459710040100456, time: 2017-01-29 23:58:43, lat: 47.60331, lon: 18.98949, speed: 0.0, course: 0.0
2017-01-30 00:00:51 DEBUG: [4DAA6A5C: 5001 < 176.77.139.72] HEX: 3836333037303031333232383430373b
2017-01-30 00:00:51 DEBUG: [4DAA6A5C: 5001 > 176.77.139.72] HEX: 4f4e
2017-01-30 00:01:00 DEBUG: [EF45859C: 5001 < 84.224.190.54] HEX: 3335393731303034383139313230303b
2017-01-30 00:01:00 DEBUG: [EF45859C: 5001 > 84.224.190.54] HEX: 4f4e
petersusan8 years ago

my original problem was that,
i built the project (with modified gps103 decoder) and moved the tracker-server.jar to the server,
then restarted tracker, it said tracker started but localhost:8082 was unreachable.
(earlier with tracker3.8 this procedure worked fine)
if i moved the original tracker-server.jar back, then there was no problem.

then i built the original source and moved the jar file to server, but it did not worked too.

then i tried to run the project in netbean (never did before), but it also not working.

the original tracker-server.jar (created by traccar.run) and the jar file created by netbean from the original source are not the same size - i do not know if they should or not.

Anton Tananaev8 years ago

In your log fragment I don't see any examples of the messages without GPS.

petersusan8 years ago

Hello
sorry i got the flu, could not move for many days.

this is an example when there is no gps data:

696d65693a3836383638333032323332303137342c747261636b65722c3134303130313030343135322c2c4c2c2c2c6565342c2c3664392c2c2c2c2c302c302c34352e3634252c2c3b

readable:

imei:868683022320174,tracker,140101004152,,L,,,ee4,,6d9,,,,,0,0,45.64%,,;

ragards
peter

petersusan8 years ago

Hello
do yo need more info or sample for any solution ?

thanks
peter

Anton Tananaev8 years ago

I would need protocol documentation to implement this format.