mendhak / gpslogger

:satellite: Lightweight GPS Logging Application For Android.
https://gpslogger.app
Other
1.98k stars 608 forks source link

udp logging request #321

Closed danielrbjo closed 1 year ago

danielrbjo commented 9 years ago

Wondering at the level of effort needed to add udp logging to remote server capability. Need to reduce the TCP/HTTP connection overhead when logging at once per second which is needed for our use case. Willing to fund some effort if necessary.

bostikmxb commented 9 years ago

Wondering too ;)

Interested in UDP update ... seems not working or didn't understood how to set opengts to receive it

Thanx

mendhak commented 9 years ago

Do you mean UDP logging to a custom server (like custom URL logging) or UDP logging to OpenGTS?

OpenGTS UDP should be working, but does require going through their massive installation doc and settings things up.

The string sent looks like so:

acct/device/$GPRMC,103025...........
danielrbjo commented 9 years ago

Looking for UDP logging to a custom server, similar to the custom URL logging, but with UDP instead. Thanks, Dan

ray63 commented 8 years ago

I have tried to use UDP transmission to OPENGTS using the 'out of the box' template server, but note an error DCServerFactory._loadDeviceByPrefixedModemID:2507] !!!UniqueID not found!:

Looking at the TrackClientPackerHandler code of the template server, it appears as though the syntax required is MobileID,YYYY/MM/DD,HH:MM:SS,Latitude,Longitude,Speed,Heading,AltitudeM

whereas GPSlogger sends a GPRMC formatted message.

I've never coded in Java before, and haven't set up any IDE's for JAVA. Has anyone got an OPENGTS server script that handles UDP data from GPSLogger they can share or point me to? I'd like to stand on someone else's shoulders, rather than having to start off the ground, so to speak.

mendhak commented 8 years ago

Did you specify all fields in the OpenGTS screen - including account id and device id?

ray63 commented 8 years ago

Yes, the account id and device have been set up and work for http. Changing the port and protocol to UDP doesn't work with the same settings using the 'template' server for the reasons mentioned.

EDIT: Further investigations found

  1. Need to change DATA_FORMAT_OPTION from 1 to 2 in TrackClientPacketHandler.java
  2. ensure that the account and device names are in lower case., or presumably, change lines 888/889 in the same java file.