![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
After I loaded my app, the GPS is actived and data is coming in.
Now I leave the program open and switch my Ipaq off. When switching the Ipaq on again, with the app in memory, the CF GPS card is not activated. I tried to switch it back on by a timer event which does: Code:
If Serial.PortOpen <> true Then Serial.PortOpen = true The only way to get the CF card back online is by issuing a Code:
Serial.PortOpen = true Is there a way to do this? Scub
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless |
|
|||
|
But isn't it strage the GPS library status returns "A" when the CF card is not sending any data after switching the device on again?
Scub
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless |
|
|||
|
Erel,
To figure out if data is coming from serial after switching on the PPC with the application loaded in memory I use Code:
If Serial.InBufferCount=0 Then WakeUpGPS_Click(false) I only got it activated again after disposing serial, gps & converter and adding these objects again but as you will understand this is not wanted automatically. To me it looks like the serial object has a strange behaviour after switching power off and on again. Do you have any hints or clues? Scub
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless |
|
|||
|
The Sub which disposed and created the new objects was starting with disableing the timers responseble for readed the serial. This was needed to prevent reading bytes from a disposed serial.
So when switching the device off there was a big chance it was between disabling and enabling the timers, causing not read the serial ...... Now I do an extra check: If there are bytes in the buffer AND if the timers are diabled, run the re-init GPS again. Now it works the way I had in mind. Thanks Erel!
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fast user switching | LineCutter | Questions & Help Needed | 0 | 10-27-2008 11:37 PM |
| PPC is hanging after switching GPS on/off | BerndB | Questions & Help Needed | 8 | 05-24-2008 03:39 PM |
| out-of-memory-error based on timer after switching to V6 | Frank | Questions & Help Needed | 2 | 01-17-2008 04:26 PM |