Author Topic: GpsTrace  (Read 16876 times)

Offline ville_sml

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
GpsTrace
« on: October 27, 2012, 21:16:16 »
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.
« Last Edit: August 29, 2013, 15:30:19 by menion »
 

Offline gynta

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 3525
  • Thanked: 28 times
    • View Profile
    • Locus live tracking service
  • Device: SGS5m (4.4.2 root), SGTab10.1 (4.0.4)
Re: AddOn - GpsTrace
« Reply #1 on: October 27, 2012, 21:30:11 »
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??
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline ville_sml

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
Re: AddOn - GpsTrace
« Reply #2 on: October 27, 2012, 21:38:49 »
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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline gynta

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 3525
  • Thanked: 28 times
    • View Profile
    • Locus live tracking service
  • Device: SGS5m (4.4.2 root), SGTab10.1 (4.0.4)
Re: AddOn - GpsTrace
« Reply #3 on: October 27, 2012, 21:42:30 »
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:
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline durian

  • Apprentice of Locus
  • **
  • Posts: 135
    • View Profile
  • Device: Samsung S7
Re: AddOn - GpsTrace
« Reply #4 on: October 28, 2012, 08:16:47 »
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?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline ville_sml

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
Re: AddOn - GpsTrace
« Reply #5 on: October 29, 2012, 07:55:10 »
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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline durian

  • Apprentice of Locus
  • **
  • Posts: 135
    • View Profile
  • Device: Samsung S7
Re: AddOn - GpsTrace
« Reply #6 on: October 29, 2012, 09:52:08 »
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
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline nIgel

  • More than Newbie
  • *
  • Posts: 58
    • View Profile
Re: AddOn - GpsTrace
« Reply #7 on: October 30, 2012, 12:48:31 »
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
)
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline ville_sml

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
Re: AddOn - GpsTrace
« Reply #8 on: October 31, 2012, 15:58:34 »
Quote
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
)

Test this version with leadtek 8m03, hopefully it works out of box.
This version also has MPTP emulator push support (for durian)
« Last Edit: November 07, 2012, 15:04:51 by ville_sml »
 

Offline durian

  • Apprentice of Locus
  • **
  • Posts: 135
    • View Profile
  • Device: Samsung S7
Re: AddOn - GpsTrace
« Reply #9 on: October 31, 2012, 17:34:39 »
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
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline nIgel

  • More than Newbie
  • *
  • Posts: 58
    • View Profile
Re: AddOn - GpsTrace
« Reply #10 on: November 02, 2012, 12:35:24 »
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?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline ville_sml

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
Re: AddOn - GpsTrace
« Reply #11 on: November 05, 2012, 08:44:02 »
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?
« Last Edit: January 20, 2014, 21:57:53 by gynta »
 

Offline nIgel

  • More than Newbie
  • *
  • Posts: 58
    • View Profile
Re: AddOn - GpsTrace
« Reply #12 on: November 07, 2012, 11:29:23 »
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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline ville_sml

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
Re: AddOn - GpsTrace
« Reply #13 on: November 07, 2012, 15:03:56 »
Quote
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 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.
« Last Edit: December 05, 2012, 15:12:05 by ville_sml »
 

Offline nIgel

  • More than Newbie
  • *
  • Posts: 58
    • View Profile
Re: AddOn - GpsTrace
« Reply #14 on: November 07, 2012, 16:26:22 »
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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »