Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.


Automatique simple GPS start


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2007, 01:49 PM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default Automatique simple GPS start

Hi,

So... my bluetooth-GPS is always on. But my PPC with GPS-program running, get off power at the and of use by turning off the main power, meaning : the program stays running till automatique shut-off of the PPC...
When the main-power comes back after a night, my PPC lights up on the same spot I was leaving it... but it does not repair the bluetooth-GPS connection...
So, I put a little code snippet into my GPS program, and my bluetooth-connection will restart automatiquely... You can use it in all kinds of bluetooth connections programming.

'----------------------------------
Sub Timer1_Tick 'See 'Sub Serial_OnCom', if time-out : reset your 'serial-port and try to connect again
ResetSerial 'reset serialport: CLOSE IT and OPEN IT AGAIN to get 'connected again
End Sub

'----------------------------------
Sub Serial_OnCom 'Fires whenever the EnableOnComm is true and 'there is communication

Timer1.Enabled = False 'stop timer at data-received-event
Timer1.Interval = 5000 'reset the timer to 5 seconds
Timer1.Enabled = True 'start timer again

if serial.PortOpen = true then 'check if port is open
' and so on ..............
'.............................

Put Claude Belgium
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple chm reader Cableguy Chit Chat 5 05-19-2008 03:40 PM
IDE hangs and does not start again DieterR Bug Reports 1 01-06-2008 07:32 PM
Setting an .EXE B4P file to run from WM5 start menu. burd27 Questions & Help Needed 1 01-06-2008 12:14 PM
Simple Calculator RandomCoder Share Your Creations 8 11-01-2007 11:09 PM
Start Form Designer without pda connected Cor Basic4ppc Wishlist 1 08-30-2007 08:22 AM


All times are GMT. The time now is 01:46 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0