Simulating xexun (port 5006)

Leif Neland 7 years ago

To have some "live" data to test on, I send data to port 5006

My dummy device then moves 0.001 deg south every 5 seconds.

180723223458,12345,GPRMC,223458.000,A,5816.5000,N,00900.0000,E,0.00,0.00,230718,,,A*6D,F,imei:000000000000002,96
180723223508,12345,GPRMC,223508.000,A,5816.4400,N,00900.0000,E,0.00,0.00,230718,,,A*6C,F,imei:000000000000002,96
180723223518,12345,GPRMC,223518.000,A,5816.3800,N,00900.0000,E,0.00,0.00,230718,,,A*66,F,imei:000000000000002,96

However, the device is listed as offline, what part of the specification do I not understand?

Or is there an easier protocol to fake?

Anton Tananaev 7 years ago

What's in the logs? If something doesn't work, first this you should do is check logs.

Leif Neland 7 years ago

The log is fine:

[E95FA291] id: 000000000000002, time: 2018-07-24 01:08:14, lat: 59.99200, lon: 9.00000, speed: 1.0, course: 180.0

The device shows fine, and is moving on the map; it just annoys me the device is red and offline in the device list

Time          2018-07-24 01:09:34
Latitude          59° 59' 2" N
Longitude          9° 0' 0" E
Valid          Yes
Accuracy          0.00 km
Altitude          0
Speed          1.9 km/h
Course         S
Address          Unnamed Road, Telemark, NO
Protocol          xexun
Signal          F
Distance          0.22 km
Total Distance          386.50 km
Motion          Yes
Anton Tananaev 7 years ago

Offline means that you disconnected after sending data. If you keep connection open, it will show online.

P.S. use triple-back-ticks for proper formatting

Leif Neland 7 years ago

Oh, got it. I opened the connection, send the data, closed it.
The tcp connection is not open, so the device is not online