Home PageFacebookRSS News Feed
PocketGPS
Web
SatNav,GPS,Navigation
Pocket GPS World - SatNavs | GPS | Speed Cameras: Forums

Pocket GPS World :: View topic - “Turn Bluetooth On” with….
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in for private messagesLog in for private messages   Log inLog in 

“Turn Bluetooth On” with….
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Pocket GPS World Forum Index -> TomTom Software-Only Products
View previous topic :: View next topic  
Author Message
hogbreath
Regular Visitor


Joined: Feb 07, 2004
Posts: 139
Location: Hillingdon, Middx

PostPosted: Sun Apr 18, 2004 7:04 pm    Post subject: “Turn Bluetooth On” with…. Reply with quote

Is it possible to setup button1 to switch Bluetooth on (not BT Manager).

why?

Would mean you don’t have to use the stylus when setting off, button1 to start BT, button2 for CheckPOInt, when activated button1 then set to Navigate home in ttn.

Probably dreaming as I suspect the answer is no! Wink

Pete
Back to top
View user's profile Send private message
lbendlin
Pocket GPS Staff
Pocket GPS Staff


Joined: 02/11/2002 22:41:59
Posts: 11878
Location: Massachusetts, USA

PostPosted: Mon Apr 19, 2004 12:37 am    Post subject: Reply with quote

This is not something you can do with standard Windows tools - but I am pretty sure with a bit of programming such a switch could be done. What's your hardware, and what's your BTM version?
_________________
Lutz

Report Map Errors here:
TomTom/TeleAtlas NAVTEQ
Back to top
View user's profile Send private message Send e-mail
hogbreath
Regular Visitor


Joined: Feb 07, 2004
Posts: 139
Location: Hillingdon, Middx

PostPosted: Tue Apr 20, 2004 6:51 pm    Post subject: Reply with quote

Just recently upgraded to the latest rom release ver 1.10

2210/PPC 2003/BT Ver 1.4.1 Build 60

Pete Smile
Back to top
View user's profile Send private message
lbendlin
Pocket GPS Staff
Pocket GPS Staff


Joined: 02/11/2002 22:41:59
Posts: 11878
Location: Massachusetts, USA

PostPosted: Fri Apr 23, 2004 5:56 pm    Post subject: Reply with quote

I don't have any 2003 devices so I can't test it but the below code should do the trick

Code:

#include "stdafx.h"
#include "bthapi.h"

int WINAPI WinMain(   HINSTANCE hInstance,
               HINSTANCE hPrevInstance,
               LPTSTR    lpCmdLine,
               int       nCmdShow)
{
DWORD * pdwMode;
   
   BthGetMode(pdwMode);
   if(pdwMode == BTH_POWER_OFF)
      BthSetMode(BTH_DISCOVERABLE);
   else
      BthSetMode(BTH_POWER_OFF);
   return 0;
}


_________________
Lutz

Report Map Errors here:
TomTom/TeleAtlas NAVTEQ
Back to top
View user's profile Send private message Send e-mail
hogbreath
Regular Visitor


Joined: Feb 07, 2004
Posts: 139
Location: Hillingdon, Middx

PostPosted: Fri Apr 23, 2004 9:41 pm    Post subject: Reply with quote

Lutz, many thanks, hope i can return the work you've done.

How do i turn the code into an exe prog, assuming this is going into the start menu 8O

Pete
Back to top
View user's profile Send private message
lbendlin
Pocket GPS Staff
Pocket GPS Staff


Joined: 02/11/2002 22:41:59
Posts: 11878
Location: Massachusetts, USA

PostPosted: Fri Apr 23, 2004 10:06 pm    Post subject: Reply with quote

You will need to find someone with eVC++ 4.0 and the PocketPC 2003 SDK to compile the code into an .exe file for the ARM platform. Anyone volunteering?

In the meantime I will check if I can come up with a more generic solution (one that works on Pocket PC 2002 as well).
_________________
Lutz

Report Map Errors here:
TomTom/TeleAtlas NAVTEQ
Back to top
View user's profile Send private message Send e-mail
hogbreath
Regular Visitor


Joined: Feb 07, 2004
Posts: 139
Location: Hillingdon, Middx

PostPosted: Sat Apr 24, 2004 4:52 pm    Post subject: Reply with quote

Anyone else think this is worth having, other than Lutz & myself

Pete Me Me Me
Back to top
View user's profile Send private message
bagmans911
Occasional Visitor


Joined: Mar 26, 2004
Posts: 31

PostPosted: Thu May 06, 2004 2:39 pm    Post subject: Reply with quote

I have an Ipaq 3970 on 2002, would love a shortcut to a button for BT on, it is a pain in the proverbial having to stylus turn on BT, then button for Checkpoint. Any ideas for a Win 2002 user?
Back to top
View user's profile Send private message
matt_e
Lifetime Member


Joined: 06/06/2003 21:23:45
Posts: 176
Location: London, United Kingdom

PostPosted: Thu May 06, 2004 3:40 pm    Post subject: Reply with quote

I also agree this would be useful
Back to top
View user's profile Send private message
lbendlin
Pocket GPS Staff
Pocket GPS Staff


Joined: 02/11/2002 22:41:59
Posts: 11878
Location: Massachusetts, USA

PostPosted: Thu May 06, 2004 4:25 pm    Post subject: Reply with quote

I learned that I need the WidComm SDK for that. I am not even sure it is openly available. If anyone has information on that I'll be happy to code this little proggie.
_________________
Lutz

Report Map Errors here:
TomTom/TeleAtlas NAVTEQ
Back to top
View user's profile Send private message Send e-mail
MrT
Frequent Visitor


Joined: Nov 14, 2003
Posts: 2143
Location: Surrounded by A1, M1 & M25

PostPosted: Fri May 07, 2004 7:05 am    Post subject: Reply with quote

Why not just leave bluetooth turned on?
Back to top
View user's profile Send private message
kartracer
Frequent Visitor


Joined: 26/03/2003 20:15:33
Posts: 502
Location: United Kingdom

PostPosted: Fri May 07, 2004 11:53 am    Post subject: Reply with quote

I submitted a reply to this thread a couple of weeks ago, but it seems to have vanished!

The solution I use to do this is ButtonMax from PocketMax:
http://www.pocketmax.net/buttonMax.htm
It allows you to record macros which can then be played back by pressing one of the buttons. My own macro to toggle bluetooth on/off is activated by double-clicking button 3.
Back to top
View user's profile Send private message
Mark R Penn
Regular Visitor


Joined: 10/09/2002 17:13:17
Posts: 176
Location: United Kingdom

PostPosted: Fri May 07, 2004 1:46 pm    Post subject: Reply with quote

Your reply WAS there - I saw it and tried it! I can't see why it would have been deleted.

Anyway, I couldn't get ButtonMax to work - I recorded macros, but they simply didn't run Crying or Very sad

What PPC do you have?
Back to top
View user's profile Send private message Visit poster's website
kartracer
Frequent Visitor


Joined: 26/03/2003 20:15:33
Posts: 502
Location: United Kingdom

PostPosted: Fri May 07, 2004 1:51 pm    Post subject: Reply with quote

Mark R Penn wrote:
What PPC do you have?


I use an iPAQ 5550.

Sorry to hear ButtonMax didn't work for you. It's a good job you get to try it for 30 days before paying for it.
Back to top
View user's profile Send private message
lbendlin
Pocket GPS Staff
Pocket GPS Staff


Joined: 02/11/2002 22:41:59
Posts: 11878
Location: Massachusetts, USA

PostPosted: Fri May 07, 2004 2:13 pm    Post subject: Reply with quote

Recording and playing back macros is very subtle, especially on the PocketPC. It requires very lew level communication deep inside the kernel (SendMessage etc). Maybe one of your other programs is intercepting these messages (a taskbar utility for example)
_________________
Lutz

Report Map Errors here:
TomTom/TeleAtlas NAVTEQ
Back to top
View user's profile Send private message Send e-mail







Posted: Today    Post subject: Pocket GPS Advertising

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pocket GPS World Forum Index -> TomTom Software-Only Products All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Make a Donation



CamerAlert Database

Click here for the PocketGPSWorld.com Speed Camera Database

Download Speed Camera Database
22.053 (15 May 24)



WORLDWIDE SPEED CAMERA SPOTTERS WANTED!

Click here to submit camera positions to the PocketGPSWorld.com Speed Camera Database


12mth Subscriber memberships awarded every week for verified new camera reports!

Submit Speed Camera Locations Now


CamerAlert Apps



iOS QR Code






Android QR Code







© Terms & Privacy


GPS Shopping