Action on detection of bluetooth device - Tilt, TyTN II, MDA Vario III Themes and Apps

Had a look around and can't find a software or a way of setting up my phone to perform certain actions when it detects certain bluetooth devices and wonder if anyone knows of a way?
I've had a look at a few location based programs such as CommMgrPro which do what I want but based on the cell location and not when near a bluetooth device (which would have a bluetooth name.) Of course the car location is changed and once the car is parked at work I want CommMgrPro to kick in and go to silent mode.
A few ideas I've got are:
If detected$ == "Car Stero" then command "MediaPlayer --Shuffle --PlayAll"
of
If detected$ == "My Laptop" then command "ActiveSync --UseBluetooth"
Just course it seems cooler (and lazyier) then having to open mediaplayer manualy or using VoiceCommander. Maybe I should do a feature request with CommMgrPro...

thats a cool idea, then you wouldn't even have to take the device out of your pocket when you get into your car, it just does everything automatically.
it might be possible with mortscript, I havnt done any work with it, but I thought i remember it being able to utilize bluetooth.

this isnt exactly what your looking for, but it might help you get to where you want to go:
http://pdaphonehome.com/forums/sams...mortscript-bluetooth-question.html#post610135

and this i think is exactly what your looking for:
http://forum.xda-developers.com/showthread.php?t=381529

Yep - that's perfect, I think I'll have to try and get the hang of Mortscript as it seems theres alot it can do!

Related

Multiple bluetooth connections?

I wonder if anybody knows if it is possible to have two (or more) divices connected at onceon a Blue Angel?
eg. Tom Tom 6 plus a hands free connection.
I have tried every configuration I can think of, different ports ect, but to now avail.
With the gps connection up and running, as soon as you turn on the hands free , the gps connection link is lost, turn off hands free and it will resume connection.
I am using BA WM5 AKU3.5 R4 - xplode's excellent rom
In GPS settings
Program is using COM 5
Hardware is using COM 0
Manage GPS settings set to Auto
In Device settings,
BTGPS unit is on COM 0 (Serial box ticked)
Hands free is unassigned
Any help will be much appreciated.
any idea's anyone?
On Last Baniaczek's ROM I made an experiment just a moment ago: BlueAngel, Navigation system (Polish one, Automapa), plus GPS on Bluetooth and A2DP headset - first connected headphones, then added GPS (using automatic GPS connection - it's M$ Stack) - Everything seems to be working fine. I thought it was a bit unstable at first, but AD2P stops sending data, when there is no sound from the device.
GPS Settings are default: COM6 for applications and GPS has COM7 assigned on Hardware tab and in Bluetooth outgoing port. Quite seamless.
then I made the 2nd one: same headset connected in Handsfree mode: indeed turning on navigation made it connect and disconnect every few seconds.
For me it seems to be fault of M$ BT stack: it cannot hold 2 similar streams on BT (COM and Handsfree/Headset are both typical serial connections of highest priority in BT stream). At the same time it can cope easily with two different streams (A2DP is lower priority, high-bandwidth BT connection).
I'm not sure, but I think when I used old Helmi 1.3.2 with Widcomm stack it could cope with GPS and Handsfree at the same time, but it needs more testing.
jakubd is right it is limitation in MS BT Stack
Don't give up and it should start to work. I have similar problem with BT GPS and BT headset. GPS goes on and off while headset is on. And than I try to switch headset off and on, BT off and on, GPS off and on and after some time it start to work together with no problem. It takes first 10-15 minutes of my voyage but then it works for the remaining few hours.
Sorry, but I still didn't find out what combination make it work. If I do, I will post it here as workaround.
And I'm almost sure that I had no such problem with Helmi 1.4 ROM.
Thanks guys,
have tried every configuration I can think of, but its always the GPS connection that is dropped, not the hands free, this would not be a problem if it was just when you are answering a call.The GPS reconnects only when you disconnect the hands free connection. ?
Has anyone Successfully used the Widcomm stack with this type of setup?
I am sure alot of members would find this usefull if it can be made to work!
This is my experience:
ROM : Helmi_BA_WM2k5_AKU3.5_v1.4.CF2.R2 (baniaczek)
Tom Tom 6
GPS : Bluetooth
Headset : Nokia BH-300
When the headset is on and connected, the GPS doesn't work (TT say no GPS found). When I turn off the headset, the GPS is working.
With ActiveSync I have the same problem: when the headset is turned on, I can't establish a connection with the PC via bluetooth.
BUT!
If I use a different headset, a Logitech HS03, all is working fine. I can leave the headset on and the GPS is working. I can receive incoming calls with no problem (using the headset) while I'm driving without loosing GPS signal.
With ActiveSync is the same: I can connect my PC with the headset on.
I have no idea why there is this difference with these two headsets, but one is working and the other no. I don't know if the problem is the MS BT stack, but my test demonstrates that under some circumstances this stack could manage more than one connection at time.
bigmike said:
I don't know if the problem is the MS BT stack, but my test demonstrates that under some circumstances this stack could manage more than one connection at time.
Click to expand...
Click to collapse
Bigmike, my point exactly. As I wrote in my post I keep turning on and off until finally it works. So there are some circumstances under coexistence is possible.
It seems that devices try to use same port which means that first device does not reserve port for itself. I am not an expert but it seems if we could somehow force devices to use different ports problem would be gone.
bigmike said:
If I use a different headset, a Logitech HS03, all is working fine. I can leave the headset on and the GPS is working. I can receive incoming calls with no problem (using the headset) while I'm driving without loosing GPS signal.
Click to expand...
Click to collapse
If this works with one set and doesn't work with another, it might be connected to list of profiles supported by the headset:
1. Headset - HSP - more common, typical profile for use with cell phones (supports AT commands)
2. Handsfree - HFP - audio-centric, used mostly in cars, less common
http://en.wikipedia.org/wiki/Bluetooth_profile
My SonyEricsson HBH-600 has both profiles (checked with services list on SonyEricsson phone), but I don't know how to select which profile is used by headset.
Just a thought...
sassa said:
Bigmike, my point exactly. As I wrote in my post I keep turning on and off until finally it works. So there are some circumstances under coexistence is possible.
Click to expand...
Click to collapse
I hope you haven't misunderstand my previous post. I haven't in mind to minimize the value of your post (very useful is someone will try to investigate about this problem).
I was thinking that somebody, reading your contribute, could wrongly think: “you're are a lucky guy and turning on-off the headset repeatedly you crash some library and the two devices are working together”.
My intention was to remark the fact that under some circumstances the headset and the gps can connect together every time and always at first try: it's not lucky, crash or random events.
jakubd said:
If this works with one set and doesn't work with another, it might be connected to list of profiles supported by the headset
Click to expand...
Click to collapse
I have a similar thought.
It seems to me that some times ago I have read that it should be possible to change some profile's parameters “playing” with the registry.... but I could be wrong...
bigmike said:
I hope you haven't misunderstand my previous post. I haven't in mind to minimize the value of your post (very useful is someone will try to investigate about this problem).
Click to expand...
Click to collapse
No I have not, bigmike, just the opposite. I was delighted that somebody confirmed my point.
bigmike said:
My intention was to remark the fact that under some circumstances the headset and the gps can connect together every time and always at first try: it's not lucky, crash or random events.
Click to expand...
Click to collapse
Couldn't agree more. And I think it's worth trying to resolve it.
Multiple BT connections - solution?
I think I find a solution for this, or maybe we can call it workaround. At least it works for me.
As I wrote in my previous posts, I could make it work every time just didn't know how. Now I established repetable procedure which worked every time for reasonable number of experiments.
Secret was to turn on BT headset (in my case Plantronics) and BT GPS device (Haicom 406-BT) and GPS program (iGo) first, and then go to Comm Manager and turn bluetooth on.
So my procedure is:
1. make sure that BT is off in Comm Manager
2. turn on BT headset
3. turn on GPS device
4. open iGo program
5. minimize iGo
6. turn on BT in Comm manager
7. open iGo and make sure it's connected
8. go to phone and call myself just to make sure it works
9. back to iGO and make sure it works
If 8 or 9 fails for the first time, just turn BT off and on again in Comm manager and check it again. I never need to do this more than twice.
Try this, guys, and good luck.
P.S. I don't know if it matters, but make sure that in Settings/Connections/GPS "GPS program port" and "GPS hardware port" is set to (None) and "Manage GPS automatically" unticked.
Very good! Many thanks Sassa!
I have tried for two times your procedure and both tries worked very well (with TomTom6 and Nokia BH-300)
I use a slightly different procedure:
1. BT off in Comm Manager
2. turn on BT headset
3. turn on GPS device
4. turn on BT in Comm manager
5. open TomTom 6 (wait some seconds and make sure it's connected)
6. go to phone and call myself (on the first call the headset is disconnected)
7. back to TomTom and make sure it works
I have noticed a different behavior of the BT headset having the BT always on (in Comm Manager) and using this procedure... but I need to make some tests before writing more.

Can WMDC Bluetooth Sync happen automatically?

Hi, I'm pleased to say that setting up my TyTN II to sync via Bluetooth with my laptop running Vista's Windows Mobile Device Centre was a doddle. None of the nonsense I had before on WM5 and my Wizard.
However, it appears Bluetooth sync needs to be invoked manually each time from the TyTN. This makes this lovely feature next to useless.
With Nokia PC Sync for example, Bluetooth sync to a Nokia phone can happen whenever the phone comes back into range, or every 15 minutes if you so choose.
So, is there any way to specify this with Windows?
I don't think so at the moment. It's a problem within the Microsoft WM OS.
I too used to love my old Nokia 9100's capability to do this but with having so many connection variants on this unit (GPRS, WiFi and BT) Microsoft have probably opted for a safe solution.
At least with manual select, you wont have it running down your battery with lots of data traffic while its in your pocket/purse at home/work without you knowing!
Maybe we could pass this on to the Kaiser Tweak guys to see if it could be made selectable?
Worth a try!
Sure, can you do it?
Will have a go but my 'Street cred' is a little low here at the moment....
I hope one of the other patient dev guys may look at this and take it up???
your not alone
Check out these other threads. All describe different problems people are having (including mine - not being able to automatically re-pair with my car kit).
All seem to stem from the auto re-pair problem.
If a developer could help, that would be great.
http://forum.xda-developers.com/showthread.php?t=349841
http://forum.xda-developers.com/showthread.php?t=349050
http://forum.xda-developers.com/showthread.php?t=350046
http://forum.xda-developers.com/showthread.php?t=346970
http://forum.xda-developers.com/showthread.php?t=337575
No-one seems to have come to our aid with a new BT stack.
Reminds me very much of the early days of the hermes ... remember these days http://forum.xda-developers.com/showthread.php?t=285419
A
Many thanks.. I've looked at those and they are mostly concerned with BT connection to audio devices.. What we are looking for is an automatic polling of your device by Activesync over BT as PCsync used to do for the Nokia. The connection has to be initiated by the SW for it to work. Cheers anyway!
Sure, they are mainly about audio, however (at least in my case) the audio is perfect when its paired.
My main concern is exactly the auto polling. I can pair my device the first time to the car kit, but every time i get back into the car I have delete the pairing and pair it manually again. This is not how bluetooth should work.
I think this is very similar to the problem the author of this thread describes.
adamcullen said:
Sure, they are mainly about audio, however (at least in my case) the audio is perfect when its paired.
My main concern is exactly the auto polling. I can pair my device the first time to the car kit, but every time i get back into the car I have delete the pairing and pair it manually again. This is not how bluetooth should work.
I think this is very similar to the problem the author of this thread describes.
Click to expand...
Click to collapse
Yep, my BT audio is good and you never know, if we start looking at auto-polling of data/stereo devices we may cure a lot of problems on here..
Thing is we may have to go around the Activesync overide (which is the slowest block on this setup!) and use a priority connect to BT similar to WM5torage on usb!
What ya think XDA???
Yeah its one of the few things I miss about my Nokia 7710 was that i walked into my house and it would sync with my computer automatically. sigh
Its definately a WM/Activesync 'Non-feature' as when you first pair your device to an Activesync capable BT PC or laptop you get a pop-up message on the WM device reminding you to disconnect your BT Activesync link to avoid draining your battery!

Set as Wireless Stereo...a challenge...

I've got a new head unit in my car and it works with my phone to play mp3s off the Micro SD card via Bluetooth.
This is great, but setting it up each time is a real pain.
I'd very much like to create some kind of short cut to do the following......
open settings....open connections tab....open bluetooth......
....hold down on XPLOD (in devices) ....and click "set as wireless stereo"
I would also like one to do the following if possible:
open settings....open connections tab....open bluetooth......
....hold down on XPLOD (in devices) ....and click "set as Hands-free"
I've got AEB-Plus installed and I'm using Manilla 2D, I would like to bind a button to both of these actions ising AEB and probably also add them to the programs tab on Manila 2D
This would be SO much better than having to do these things the long way round every time I get in the car Even just eing able to bing a button to open the bluetooth devices page with one click would be a massive help.
Any help would be much appreciated
Thanks all,
DJ
A couple of pages back: http://forum.xda-developers.com/showthread.php?t=448068
You shouldn't need anything for the hands-free thing, it automatically connects whenever you make/receive a call anyway.
That's perfect! Thank you very much
Now all I have to do it get the voice dialing feature to work with the head unit :/

Way to keep Bluetooth connections active in Standby?

Hi all.
Having a bit of a problem... A friend wants to use his X1 with his car Bluetooth system. It connects and works fine, but the connection is dropped as soon as the phone is put in Standby (ie. power button quick push). He doesn't want to use a car charger and then just leave it on all the time, although I have said it may be the best option... He wants to just have his phone in his pocket and walk to the car, have it connect and work - just like his old phone (P990). Is it possible to get WM to leave BT connections active when phone goes into standby? Even if the phone had to be on first to connect and then put into standby and the connection stays active.
I've looked around and been unable to find any info that works.
Anyone please?
Thanks
A2DP switch... found here on xda has a great keep alive function built right in... search around you'll find it
Hmm... thanks. I'll have a look at that, but is there not some registry thing or other setting I can adjust instead? That will keep only the BT on all the time?

Bluetooth always discoverable app??

Are there any app's available which allows the Bluetooth on my Hero to be set as always discoverable. My handsfree car kit used to auto connect to my old Windows mobile device but now I have to make my Hero discoverable every time I enter my car and its very annoying.
DITTO
i would love this too, as it is a pain in the arse having to activate it all the time. Another stupid "improvement" from HTC.....what the hell were they thinking ???
You can add a Bluetooth On/Off Widget on one of the home screens.
Once the Hero is paired the devices should discover themselves with no issue. Set to discoverable or not.
My car kit very very rarely does not see and auto connect to the Hero. On the odd occasion that it doesn't connect, turning Bluetooth on and off via the HTC widget usually gets it hooked back up.
Its not perfect, but TBH no less perfect than other handsets I've owned.
Bluetooth file transfer is what we are really missing.
Having a nightmare with my car kit - PARROT CK3100 LCD and T-mobile G2
I have to turn on bluetooth make it discoverable the enter the pairing code ( everytime as it does not seem to keep the code) then the Parrot LCD flashes " MEM FULL " twic and then it connects but does not see the address book
Any suggestions much appreciated
Devchef1
Flash it
I was having very similar problems connecting my Hero to my car Bluetooth, it just would not pair, or work , i have flashed the official HTC update rom onto my Hero and now it connects everytime, no discover mode needed, and it works like a dream, you might want to give it a go, i fixed my issues .
Devchef1
I don't know why you have to keep pairing - mine auto detects no prob - both on stock G2 rom and Modaco 2.2e.
I can help you with the address book though - put a contact on your sim card. Anything will do, just make one up. Thereafter, I think you'll find your address book syncs.
Haven't seen the mem full thing, but I do recall you can only have five devices paired to the ck3100, so maybe you need to delete a pairing?
Cheers.
Rich
Android Bluetooth Discoverable Mode
Hi!
I'm having a similar problem with trying to keep the bluetooth on discoverable mode for some longer time as well. The phone I'm working with is the Nexus One and I was hoping anyone could help finding a way to get the app to turn on the discoverable mode automatically without having to request the user every 120 seconds or 300 seconds? The API for Bluetooth really limits me from making the duration of the discoverable mode longer and allowing me to change the bluetooth setting without user permission. Any help is appreciated.
Thank you!
AndroidTeam5
That is well and great that it reconnects for many people. But, for many people it does not! I have Myn's Donut running from my sd on my HTC Touch. It never auto-connects to my Pioneer Avic-f90bt. I have to make it discoverable or turn the bluetooth off/on every time I get in the truck. When I run the phone with WM6 it always, always auto connected...always. So if the easy fix is an app to leave bluetooth on, how hard can it be for a programmer to do this. Simply saying "oh, it works fine on my phone" doesn't help us!

Categories

Resources