| Versions |
 |
|
| Author |
Topic  |
|
robertrevolver
Mexico
11 Posts |
Posted - 29 juin 2012 : 18:57:19
|
Was only an observation in a different way of doing things, my skills in C + + to parse the file, not enough to do what you did with sockets in C + +. Your code I believe, will serve many people in different ways of seeing and doing things, I went the other way different from PHP, it's just that. Hope I did not bother anyone, and if so, I apologize. |
Developer, gps , nmea, Linux, .NET |
 |
|
|
barbudor
France
1575 Posts |
|
|
robertrevolver
Mexico
11 Posts |
Posted - 29 juin 2012 : 19:27:28
|
| Sure, and too to eat some delicious mexican food. :) |
Developer, gps , nmea, Linux, .NET |
 |
|
|
nfplato
15 Posts |
Posted - 29 juin 2012 : 23:12:47
|
@barbudor don't worry i'm here to push you to work :)))) Many thanks for all your effort, i'm testing your code for Web development, where i've some skills. The listener is light and useful as it is. As i told to Robert, i prefer to do the DB stuff in PHP 'cause i need also to exchange json data with my Javascript/Jquery scripts. For example, setting geofence graphically by GMaps on a html page and when a vehicle break the bounds i can send an email instead of SMS (saving some cents)
Have you all a good wekend PS: if you come in Italy i hope i can offer you some italian food |
Edited by - nfplato on 29 juin 2012 23:15:16 |
 |
|
|
nfplato
15 Posts |
Posted - 30 juin 2012 : 12:48:40
|
@barbudor last patch is compiled and running on my Ubuntu 11
PS: i've set the listerner on 8080 (i've this open on firewall), sometimes i get baidu (chinese search engine) http request instead of GPRMC: there is some backdoor in tk xexun devices sending our position to china ??? ;))) |
 |
|
|
barbudor
France
1575 Posts |
|
|
nfplato
15 Posts |
Posted - 30 juin 2012 : 15:03:11
|
quote: Originally posted by barbudor
I don't think there is a backdoor. I've not seen any strange connection on mine. But 8080 is an almost typical alternative port for some web site as well as 8000, 8008, 8088 and 8888. So try another random value.
:))) I was kidding..... |
 |
|
|
xinkai
16 Posts |
Posted - 10 juil. 2012 : 03:00:26
|
hi all, For those who don't have their own server box yet. I wrote another version of "Gate way" server (with C#). Instead of convert and forwarding reporting packets to http get request, I store it locally and user can query it as JSON object.
for example: http://api.realtracker.us/resthomeservice/v0/json/QueryImei?imei=354776030042714 response will looks like this: { "stat": "ok", "ImeiDevice": { "Imei": "354776030042714", "LastHeartbeat": 1341879460046, "ClientEndPoint": "206.188.60.100:48436", "ServerEndPoint": "tcp://216.86.147.12:3023", "Format": "TK102_2", "Packet": "07070718,13145826175,GPRMC,070718.000,A,2234.0228,N,11403.0764,E,0.00,,070909,,,A*73,F,,imei:354776030042714,05,50.1,F:4.11V,0,132,40512,460,01,2533,720B" } } So far the reporting IP address is 216.86.147.12:3023 , I accept both TCP and UDP protocol. And currently I only support Xexun TK102-2, TK102, and Coban protocol. Personally, I recommend xexun UDP protocol, which is far more efficient and potentially save your battery as well.
If my code see any unknown format, I will store it in a special "*" record which can be query with "imei=*", the latest unknown format data will goes there.
Please let me know whether you guys like this service or not, I will only maintain it if I see enough demand. :)
enjoy! xinkai |
 |
|
|
nfplato
15 Posts |
Posted - 11 juil. 2012 : 09:26:22
|
@xinkai & @barbudor I confirm that using Barbudor code has dubbed my tk102-2 battery life comparing it with another open-source server written in java i used before.
|
 |
|
|
xinkai
16 Posts |
Posted - 11 juil. 2012 : 19:37:06
|
hi nfplato, can you share more details on your battery testing results? which mode are you using (TCP/UDP)? did you enabled tlimit? And how many hours you got from your tk102-2? On my TK102-2, using UDP 010s***n, it lasted about 7 hours (no tlimit, non-stop tracking every 10 seconds). What is the result you got? |
 |
|
|
barbudor
France
1575 Posts |
|
|
nfplato
15 Posts |
Posted - 13 juil. 2012 : 18:54:26
|
@barbudor yes i meant doubled, mispelling .... @xinkai i think i'm using TCP (as default of c++ code): 16h battery life for every minute update with tlimit set to 100m of tolerance (parking mode) :) |
Edited by - nfplato on 13 juil. 2012 18:59:14 |
 |
|
|
robertrevolver
Mexico
11 Posts |
Posted - 17 juil. 2012 : 22:06:22
|
| Somebody could me recommend, a reliable hardware, to vehicle tracking? |
Developer, gps , nmea, Linux, .NET |
 |
|
|
trejder
22 Posts |
Posted - 17 sept. 2012 : 22:16:01
|
quote: Originally posted by robertrevolver
Somebody could me recommend, a reliable hardware, to vehicle tracking?
Why not use TK102, you've already own (as I suppose) along with a small internal charger, that you plug directly into your car's electrical systems, which let you use TK102 without a battery and without need of charging it.
I'm using it this way for around a year or so, without problems. |
 |
|
|
barbudor
France
1575 Posts |
|
Topic  |
|
|
|
| This page was generated in 1,09 seconds. |
 |
|