Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > GPS


Reply
 
Share Thread Tools Display Modes
Old 06-01-2009, 06:20 PM   #76
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Quote: Originally Posted by hondabldr View Post
Is there a minimum amount i need to be setting for the retryperiod?

The idea really is to save it getting caught in loops. Each gps message is a thread and if the retry is too quick you can get caught up in thousands of threads all trying to connect at the same time. personnally I recon 10 mins is a good time. By no means a minimum though. If in an alert or SOS the retry period is ignored and it tries again quickly.
lambosprit is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 06-03-2009, 05:59 PM   #77
Newbie
 
Cerberus's Avatar
 
Join Date: Nov 2003
Posts: 45
Cerberus is on a distinguished road
Nope.. I can't make it work...

All I get is lots of pins on my driveway. I guess I will have to try it
tethered to the iPhone for some live action.

C
Cerberus is offline   Reply With Quote
Old 06-03-2009, 06:06 PM   #78
Confusion Master
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 11,928
Enforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant future
Quote: Originally Posted by Cerberus View Post
Nope.. I can't make it work...

All I get is lots of pins on my driveway.

C

I'd clear them up before you get a puncture if I was you.
Enforcer is offline   Reply With Quote
Old 06-03-2009, 06:53 PM   #79
Newbie
 
Join Date: Oct 2007
Posts: 37
hondabldr is an unknown quantity at this point
Try To go around the block with it tracking then get reconected back to the wifi, then hit stop gps and start again, Maybe could help determin the issue I cant get mine to resend unless i do that...
hondabldr is offline   Reply With Quote
Old 06-04-2009, 08:42 AM   #80
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Quote: Originally Posted by Cerberus View Post
Nope.. I can't make it work...

All I get is lots of pins on my driveway. I guess I will have to try it
tethered to the iPhone for some live action.

C


The only time it resends the xml is when it gets a network change. If you set your debug to greater than 0 you should see some text on your client in the bottom half. The second piece of text shows you if your connected. When you go out of your drive does it still say connected? It should turn to disconnected. When you get to your drive it should automatically detect the network and the text should change back to connected. Then a resend occures. I have found that having a virtual machine running causes windows to think it has a valid network, maybe you have a network all the time eventhough its not an internet network!

Same for you Hondabldr, does your client think its continuously connected?

I alao attach a debug client exe which outputs more info around this area. If someone can use it and post the log that would be good. You need to set client debug level to 5 to use.

[edit] better version posted in newer post

Last edited by lambosprit; 06-05-2009 at 06:59 AM.
lambosprit is offline   Reply With Quote
Old 06-04-2009, 02:14 PM   #81
Newbie
 
Cerberus's Avatar
 
Join Date: Nov 2003
Posts: 45
Cerberus is on a distinguished road
Ah ha! Mine constantly says connected!

I had wrongly thought it referred to the
Gps.

Do i need to turn the ping option on?
Will that make it realise it isnt really
Connected?

Cheers!
C
Cerberus is offline   Reply With Quote
Old 06-05-2009, 06:21 AM   #82
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Quote: Originally Posted by Cerberus View Post
Ah ha! Mine constantly says connected!

I had wrongly thought it referred to the
Gps.

Do i need to turn the ping option on?
Will that make it realise it isnt really
Connected?

Cheers!
C

Good, we've found the issue. The problem is how to fix it. Ping doesn't do what you suggest. Its just there to see if the server is on. So you might have a network connection but have switched off your server. This problem is that your windows thinks you have a network connection but its not one that connects to the internet.

Can you try the following. Look at what connections you have and disable them and only leave the one you need enabled. If you say "but I only have 1" then we need to find out why its allways connected. Can you post what it is and what it does.

[Edit] had a play and i've added a check now for internet. It looks for www.microsoft.com and if finds it assumes there is a network otherwise fails network check.
Attached Files
File Type: rar TrackerClient.rar (30.5 KB, 17 views)

Last edited by lambosprit; 06-05-2009 at 06:58 AM.
lambosprit is offline   Reply With Quote
Old 06-05-2009, 07:49 AM   #83
Newbie
 
Cerberus's Avatar
 
Join Date: Nov 2003
Posts: 45
Cerberus is on a distinguished road
Quote: Originally Posted by lambosprit View Post
Good, we've found the issue. The problem is how to fix it. Ping doesn't do what you suggest. Its just there to see if the server is on. So you might have a network connection but have switched off your server. This problem is that your windows thinks you have a network connection but its not one that connects to the internet.

Can you try the following. Look at what connections you have and disable them and only leave the one you need enabled. If you say "but I only have 1" then we need to find out why its allways connected. Can you post what it is and what it does.

[Edit] had a play and i've added a check now for internet. It looks for www.microsoft.com and if finds it assumes there is a network otherwise fails network check.

I only have the wireless and the wired. Neither of which have an IP when i'm off the driveway...

I might be confused... but...

If the client believes it has network then it sends the xml data and marks
it as 'true' ?

Does the server reply back to acknowledge receipt?

Shouldn't your check for internet check the tracking server rather than
microsoft? Because if the client has internet but the server is offline
then the xml data is just going into a black hole. Unless there is an ack
from the tracking server?

Cerbie is confused...

C
Cerberus is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 06-05-2009, 08:29 AM   #84
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Quote: Originally Posted by Cerberus View Post
I only have the wireless and the wired. Neither of which have an IP when i'm off the driveway...

I might be confused... but...

If the client believes it has network then it sends the xml data and marks
it as 'true' ?

Does the server reply back to acknowledge receipt?

Shouldn't your check for internet check the tracking server rather than
microsoft? Because if the client has internet but the server is offline
then the xml data is just going into a black hole. Unless there is an ack
from the tracking server?

Cerbie is confused...

C

I dont know how microsoft decides whether it has a network connection or not so I dont know if its ipaddress dependant. Anyway i think with the changes I've made it shouldn't matter.

The client tries to sync with the server and if it doesn't connect then it gets marked as false. This has a hole in that it assumes the server not only recieves the data but has stored it successfully.

The problem here is that the false ones are only resent when a network becomes available again and because it never goes away, it never comes back, so it never resends...if that makes sense. The new exe allways tries to resend in the period set so regardless of whether a network appears or not it will resend any false. So in short it should work alot better. Try it and report back please.
lambosprit is offline   Reply With Quote
Old 06-05-2009, 09:00 AM   #85
Newbie
 
Cerberus's Avatar
 
Join Date: Nov 2003
Posts: 45
Cerberus is on a distinguished road
Quote: Originally Posted by lambosprit View Post
I dont know how microsoft decides whether it has a network connection or not so I dont know if its ipaddress dependant. Anyway i think with the changes I've made it shouldn't matter.

The client tries to sync with the server and if it doesn't connect then it gets marked as false. This has a hole in that it assumes the server not only recieves the data but has stored it successfully.

The problem here is that the false ones are only resent when a network becomes available again and because it never goes away, it never comes back, so it never resends...if that makes sense. The new exe allways tries to resend in the period set so regardless of whether a network appears or not it will resend any false. So in short it should work alot better. Try it and report back please.

Ahhhhh. Yes, makes sense now

I will put it on the PC before I drive home from work and see what happens.

Do you think I will suddenly get 3 days of data sent across? I haven't
seen any data set to false in the xml on the client. Maybe you aren't
holding data in the xml until it is sent tho?

I'm thinking too much. I'll try it tonight on way home and let you know

C
Cerberus is offline   Reply With Quote
Old 06-05-2009, 11:58 AM   #86
Newbie
 
Cerberus's Avatar
 
Join Date: Nov 2003
Posts: 45
Cerberus is on a distinguished road


This new version errors. Didn't see exactly what the error was as I
was driving and I forgot to restart the app when I got home.

I do recall I had an option to continue and an option to quit. If
I chose continue it just errored again. Quit, closed the app. The
error said soemthing about 'root' *shrug*

I'll get a better look at it later

C
Cerberus is offline   Reply With Quote
Old 06-09-2009, 07:22 AM   #87
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Any news cerberus. I've tried it myself now and it works flawlessly for me. If you can post the message you get I can help fix it.
lambosprit is offline   Reply With Quote
Old 06-09-2009, 11:35 AM   #88
Newbie
 
Cerberus's Avatar
 
Join Date: Nov 2003
Posts: 45
Cerberus is on a distinguished road
Ooops! sorry I forgot all about it!

Error is "Root element is missing"

Hope that makes more sense to you than me!



C
Cerberus is offline   Reply With Quote
Old 06-10-2009, 07:20 AM   #89
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Quote: Originally Posted by Cerberus View Post
Ooops! sorry I forgot all about it!

Error is "Root element is missing"

Hope that makes more sense to you than me!



C


it does. I dont know why it does it because I haven't been able to replicate it in debug but when it tidies up the xml (ie deletes older than 30 day data) sometimes it corrupts it.

To fix (and I know its bad) either delete or rename your tracking.xml. Can you send me the xml file so I can see what's corrupted. As I say I cant reproduce so any info is good.
lambosprit is offline   Reply With Quote
Old 06-10-2009, 11:53 AM   #90
Newbie
 
Cerberus's Avatar
 
Join Date: Nov 2003
Posts: 45
Cerberus is on a distinguished road
Quote: Originally Posted by lambosprit View Post
it does. I dont know why it does it because I haven't been able to replicate it in debug but when it tidies up the xml (ie deletes older than 30 day data) sometimes it corrupts it.

To fix (and I know its bad) either delete or rename your tracking.xml. Can you send me the xml file so I can see what's corrupted. As I say I cant reproduce so any info is good.

Yep, Dumped the XML file and it created a new one and ran fine.

It doesn't say 'connected' when I'm away from home anymore. But it
doesn't seem to when I'm home and connected to the wireless either.

Didn't get any pins from the journey I just took. But I was only out
for 5 minutes (corner shop, should have walked really but I had a
good excuse to drive!). Except the now customary driveway pin
of course!

Dodgy xml attached

C
Attached Files
File Type: txt broken_tracking.xml.txt (14.3 KB, 11 views)

Last edited by Cerberus; 06-10-2009 at 12:03 PM.
Cerberus is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
it works.. auto syncing when you arrive home collegeboyslive General MP3Car Discussion 4 11-29-2007 07:36 PM
Home stasik-a4 Map Monkey 1 06-01-2007 01:55 AM
Image server qwertylol Software & Software Development 1 01-10-2007 04:02 AM
MS Server 2003 help nappyjim Off Topic 3 05-25-2006 05:22 PM
winxp crashed, can I repair with my home pc? cw42 Newbie 2 10-08-2005 04:01 PM



All times are GMT -5. The time now is 03:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics