GpsTrace

Started by ville_sml, October 27, 2012, 21:16:16

0 Members and 2 Guests are viewing this topic.

ville_sml

I have created a new addon for locus - GpsTrace
https://play.google.com/store/apps/deta ... race4locus
It works currently with gps transmitters. Addon enables to show transmitter position on locus. Addon sends sms to transmitter to query its location. Returning SMS is parsed and the transmitter location is updated on map.

Addon runs as a service on background, so locations of gps transmitters can be updated automatically.

The addon currently supports
Xexun tk-102 (tk-102 clone) gps transmitter
MPTP (old benefon sms protocol) gps transmitter
SMS send from locus
also addon can emulate MPTP gps transmitter.

Futher development include
OpenGts support over http and
pick gps transmitter phonenumber from contacts.
  •  
    The following users thanked this post: ColdAutumn

gynta

#1
slowly!  :)

- My dog has one of this transmitters on his pet collar.
- Locus send a SMS to my dog
- the transmitter send a SMS to my mobile
- Locus show me the position of my dog on the map.

right??

ville_sml

#2
That's correct, well atleast almost:

- Your dog has one of this transmitters on his pet collar.
- GpsTrace send a SMS to my dog
- the transmitter send a SMS to my mobile
- GpsTrace catches(if valid location sms) the incoming SMS and parse it
- Locus shows the position of your dog on the map.

GpsTrace can also act as gps transmitter, so you can attach your second phone to your dog's collar.
Hopefully in near future opengts support, so you can follow your dog without need to send SMS. Instead use internet connection.
  •  

gynta

#3
Quote from: "ville_sml"- Your dog has one of this transmitters on his pet collar.
- GpsTrace send a SMS to my dog
hm, It will not take care of your dog - hehe
you mean my little puppy (If I had such)

anyway
nice
So i have to correct my translation now...  :mrgreen:

durian

#4
Quote from: "ville_sml"GpsTrace can also act as gps transmitter, so you can attach your second phone to your dog's collar.
So I can use it to send my position from Locus to my telephone? Cool, than I can use it like the "Live Tracking" when there is no data connection available. I have an old telephone connected to an old Linux computer with "gammu" which can read the received SMSs and put them on a website or something.

-peter

edit: hmm, I guess I misunderstood? I thought the addon could send position periodically per SMS, but it looks I was wrong?
  •  

ville_sml

#5
Quote from: "durian"edit: hmm, I guess I misunderstood? I thought the addon could send position periodically per SMS, but it looks I was wrong?

If you need automatic position send trough SMS, I can easily add this functionality to gps transmitter emulator code (approx. 5 lines of code).
Currently position can be polled by sending SMS to phone.
  •  

durian

#6
Quote from: "ville_sml"If you need automatic position send trough SMS, I can easily add this functionality to gps transmitter emulator code (approx. 5 lines of code). Currently position can be polled by sending SMS to phone.
That would be cool!

-peter
  •  

nIgel

#7
Nice one. I made something like that for myself with Tasker, since my handicapped son likes to disappear. Is Leadtek 8m03 (ftp://ftp.leadtek.com.tw/gps/8m03/8M03_(A)E(generic)_UserManual02.pdf) supported?
(
Triggerword: where
Answer=nmea sequence like:$GPMRC,130700.094,A,A,4832.5933,N;00930.7490,E,1.58,124.38,201012,,,A*68
)
  •  

ville_sml

#8
QuoteNice one. I made something like that for myself with Tasker, since my handicapped son likes to disappear. Is Leadtek 8m03 (ftp://ftp.leadtek.com.tw/gps/8m03/8M03_(A)E(generic)_UserManual02.pdf) supported?
(
Triggerword: where
Answer=nmea sequence like:$GPMRC,130700.094,A,A,4832.5933,N;00930.7490,E,1.58,124.38,201012,,,A*68
)

Test this version with leadtek 8m03, hopefully it works out of box.
This version also has MPTP emulator push support (for durian)
  •  

durian

#9
Quote from: "ville_sml"Test this version with leadtek 8m03, hopefully it works out of box.
This version also has MPTP emulator push support (for durian)
Thanks! But I think I need a manual :-) not sure how set all the settings,

edit: maybe this is "spoiling" your add-on a bit, and it should be added to the normal live-tracking.

-peter
  •  

nIgel

#10
Thanks but maybe I'm too stupid to get this working.
My anticipation:
GPStrace4locus will send an SMS with: "where" without (") to the tracker.
How do i do that
I added a provider Leadtek 8m03 and set it on.
Questions:
1) Do I need to enable service and why.
2) Periodic Update sends periodic sms (only if service is enabled)?
3) Pull versus OK, what happens
4) How do I get that program to send the sms?
  •  

ville_sml

#11
Quote
1) Do I need to enable service and why.
2) Periodic Update sends periodic sms (only if service is enabled)?
3) Pull versus OK, what happens
4) How do I get that program to send the sms?


Ok. I really should start to write an user manual for this.
But anyhow, here is small guide to use it.

1) Enable service must be on. This way the will register itself as a service and stay alive. Also when the service is enabled the application can receive incoming SMS, otherwise it cannot catch any SMS.
2) Periodic update is used to get SMS update from gps device without user interaction.  In case of Leadtek when periodic update is used it will send "where" to gps transmitter at defined intervals.
3) Pull will send query sms, eg "where" to device, OK normally does nothing.
   But the execptions for OK button are:
    Service enabled and received gps locations in memory
    -> Locus start and show gps locations in locus
    And if you have locus running:
    Service enabled
    ok -> show received gps locations in locus
    Service disabled
     ok -> remove received gps locations in locus

4) - Create Leadtek device in settings.
    - Enable service
    - Press Pull
    - Wait for incoming gps location from leadtek
    - press OK

There is also one setting in preferences, Auto Send, if this is enabled. When locus is running the app will automatically show any incoming GPS Location in Locus.

edit
So is the leadtek protocol working?
  •  

nIgel

#12
Sorry had no time to look. Tested it now.
The coords are  about 13000km off.
Since I don't see the sms GPSTrace is analyzing I'm not sure what the error is.
In Locus it gives me as coords:
N3252°28.800 E 195°39.360
I send you a PM.
  •  

ville_sml

#13
QuoteThe coords are about 13000km off.
Since I don't see the sms GPSTrace is analyzing I'm not sure what the error is.
In Locus it gives me as coords:
N3252°28.800 E 195°39.360

I fixed the problem, my mistake, I multiplied minutes by 60, when I should have divided.

Try this, it should work, I you can, test also the SOS button. It should show SOS next to name.
  •  

nIgel

#14
Thank You for that quick fix, now it is working fine!

I would suggest:
1) to give some more status messages, otherwise the user is confused about what GPSTrace4Locus is doing and is sending multiple sms to the locator (like I did):
After pressing pull:
Status message: sending sms to ...
                         waiting for sms from ...
2) During the waiting time but not longer than lets say 2min block the pull button to avoid that very impatient user get a bigger phonebill than necessary.
  •