• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Workarround - Bluetooth drops when connected to carkit

Search This thread

freggelfrot

Senior Member
Feb 17, 2007
54
0
I'm in possession of a HD for 3 months now. Great device. Tried several roms, no complaints there. There is only one problem, which is bothering me for a long time. The connection with my bluetooth carkit (Opel Zafira / NAVI-DVD90) drops after a few minutes, because for some reason bluetooth is turned off. To restore the connection again, i have to turn bluetooth on again. I've tried several tips & tricks. Even installed Jetware, which worked great on my P3600. Nothing helped.... But since a week i'm using BTRestore. This little app checks every 5 seconds the bluetooth status. Using BTRestore when i'm the car, for some reason solved my problem.

I have written a little mortscript, which checks if bluetooth is connected to my carkit. If it is, the script starts the app BTRestore. When i leave my car, the scripts kills BTRestore.

How to install

1. Install Mortscript on your device
2. Install BTRestore on your device. For more information about the app see site (it's in dutch)
3. start notepad on your pc and copy/paste script below in notepad
4. save the script to a file with extension mscr, for example handsfree.mscr
5. place the file on your device in folder "windows\Startup"
6. Restart the device or executed the script manually by selecting the file.

By placing the script in folder "windows\Startup" the script is executed automatically when you start your device.

The script checks the status every 10 seconds. You can change timeout by changing parameter 'Sleepfor'. Each time the app BTRestore is started or killed the device vibrates. If you don't want that, change the parameter 'EnableVibrate' to value '0'

Code:
#initialize script
SleepFor = 10000
EnableBTRestore = 0

BTProcessFull = "Program Files\BTRestore\BTRestore.exe"
BTProcess = "BTRestore.exe"

EnableVibrate = 1
VibrateFor = 250


While (1)
        BluetoothState = RegRead("HKLM", "System\State\Hardware", "Bluetooth")

        if (BluetoothState <= 8)
		#Bluetooth off. kill BTRestore
		EnableBTRestore = 0		
		Call ("BTRestore")
        else
		#bluetooth is switched on. Check if Handsfree is enabled
		HandsfreeState = RegRead("HKLM", "System\State\Hardware", "Handsfree")

		if (HandsfreeState = 1)
			#Phone is connected to handsfree device. Activate BTRestore
			EnableBTRestore = 1
			Call ("BTRestore")
		else
			#Phone is not connected to handsfree device. So kill BTRestore
			EnableBTRestore = 0
			Call ("BTRestore")
		endif

	endif

	Sleep(SleepFor)
EndWhile

Sub BTRestore
	Running = ProcExists(BTProcess)
	if (EnableBTRestore = 1)
		#check if BTRestore already is running
		if (Running = TRUE)
			#BTRestore already running
		else
			#execute BTRestore
			run (BTProcessFull)
			if (EnableVibrate = 1)
				Vibrate(VibrateFor)
			endif
		endif
	else
		#check if BTRestore is running
		if (running = TRUE)
			#Kill BTRestore
			kill ("BTRestore.exe")
			if (EnableVibrate = 1)
				Vibrate(VibrateFor)
			endif
		else
			#BTRestore not running. Do nothing
		endif
	endif
EndSub
 

freggelfrot

Senior Member
Feb 17, 2007
54
0
BTRestart is not helping me. BTRestart restarts the bluetooth connection after a phone conversation. My connection drops even before i can make a phone call :mad:
 

mouki_9

Senior Member
Nov 7, 2008
1,069
99
i'm gonna try this, i will post back the results... I have the same issue as you, opel astra dvd90 also..... problem is that the connection drops are not always on a regular interval. yesterday i went to belgium, the whole trip the connection was good. Even made a few phone calls during the trip. But on the way home, every now and then it disconnected..... I really hope the script provides a solution...

to be continued........ :p
 

onesolo

Senior Member
Apr 18, 2006
2,543
216
Google Nexus 5
Google Pixel 3
I encourage everyone with BT in-car kit to ask for an update version of the software of your car system. That might help.
Most of the times, the compatibility from BT in-car kits are very low. For ex, some car kit only accept a few phone models
 

freggelfrot

Senior Member
Feb 17, 2007
54
0
I encourage everyone with BT in-car kit to ask for an update version of the software of your car system. That might help.
Most of the times, the compatibility from BT in-car kits are very low. For ex, some car kit only accept a few phone models

You are right. That could help. When i bought my car, the bluetooth connection wasn't working with my P3600. After an upgrade of my carkit, the connection was fine. After buying the HD i went back to the garage for an another upgrade. Only this time it didn't help me :(
 

akhoury

Member
Nov 14, 2008
37
0
I'm in possession of a HD for 3 months now. Great device. Tried several roms, no complaints there. There is only one problem, which is bothering me for a long time. The connection with my bluetooth carkit (Opel Zafira / NAVI-DVD90) drops after a few minutes, because for some reason bluetooth is turned off. To restore the connection again, i have to turn bluetooth on again. I've tried several tips & tricks. Even installed Jetware, which worked great on my P3600. Nothing helped.... But since a week i'm using BTRestore. This little app checks every 5 seconds the bluetooth status. Using BTRestore when i'm the car, for some reason solved my problem.

I have written a little mortscript, which checks if bluetooth is connected to my carkit. If it is, the script starts the app BTRestore. When i leave my car, the scripts kills BTRestore.

How to install

1. Install Mortscript on your device
2. Install BTRestore on your device. For more information about the app see site (it's in dutch)
3. start notepad on your pc and copy/paste script below in notepad
4. save the script to a file with extension mscr, for example handsfree.mscr
5. place the file on your device in folder "windows\Startup"
6. Restart the device or executed the script manually by selecting the file.

By placing the script in folder "windows\Startup" the script is executed automatically when you start your device.

The script checks the status every 10 seconds. You can change timeout by changing parameter 'Sleepfor'. Each time the app BTRestore is started or killed the device vibrates. If you don't want that, change the parameter 'EnableVibrate' to value '0'

Code:
#initialize script
SleepFor = 10000
EnableBTRestore = 0

BTProcessFull = "Program Files\BTRestore\BTRestore.exe"
BTProcess = "BTRestore.exe"

EnableVibrate = 1
VibrateFor = 250


While (1)
        BluetoothState = RegRead("HKLM", "System\State\Hardware", "Bluetooth")

        if (BluetoothState <= 8)
		#Bluetooth off. kill BTRestore
		EnableBTRestore = 0		
		Call ("BTRestore")
        else
		#bluetooth is switched on. Check if Handsfree is enabled
		HandsfreeState = RegRead("HKLM", "System\State\Hardware", "Handsfree")

		if (HandsfreeState = 1)
			#Phone is connected to handsfree device. Activate BTRestore
			EnableBTRestore = 1
			Call ("BTRestore")
		else
			#Phone is not connected to handsfree device. So kill BTRestore
			EnableBTRestore = 0
			Call ("BTRestore")
		endif

	endif

	Sleep(SleepFor)
EndWhile

Sub BTRestore
	Running = ProcExists(BTProcess)
	if (EnableBTRestore = 1)
		#check if BTRestore already is running
		if (Running = TRUE)
			#BTRestore already running
		else
			#execute BTRestore
			run (BTProcessFull)
			if (EnableVibrate = 1)
				Vibrate(VibrateFor)
			endif
		endif
	else
		#check if BTRestore is running
		if (running = TRUE)
			#Kill BTRestore
			kill ("BTRestore.exe")
			if (EnableVibrate = 1)
				Vibrate(VibrateFor)
			endif
		else
			#BTRestore not running. Do nothing
		endif
	endif
EndSub



i've done everything that you've described.

the only question i have is when i open the BTRestore program, there are two buttons to choose from:
Achtergrond
Afsluiten

Which one do I choose?

And when the phone is restarted, the handsfree.mscr script automatically runs because it's placed in the windows/startup folder. but do i have to do anything with the Mortscript program?

thanks.
 

mouki_9

Senior Member
Nov 7, 2008
1,069
99
Achtergrond = background
Afsluiten = close

i have used this script for a while now and i must say: IT FREAKING WORKS!!!!

i'm soooo glad, i have waited sooo long for this fix
now everything works as i want it. Connection stays up, phonebook works, i'm happy! :D
 

akhoury

Member
Nov 14, 2008
37
0
well, unfortunately, it doesn't work for me.

the phone connects to my car and downloads the phonebook.

however, when i try to make a call, the bluetooth connection is lost.

i'm not having a problem with the phone's bluetooth turning off; it's always on and visible. i'm having a problem keeping the connection between the phone and the car.

i was able to initially make a few calls after i installed the script on my phone; but now, the connection always drops when i try to make a call.

if anyone knows of anything else i can try, i'm open to suggestions.

by the way, i have a 2008 landrover lr2; i just got it back from the dealer the other day for some services performed; one of them was supposedly a bluetooth software update for the car.
 

mouki_9

Senior Member
Nov 7, 2008
1,069
99
mine stay connected with this script even after making calls. I'm using this script a while now (few weeks) and for my work i'm a lot in the car, so if there was a problem with the script, then i would have noticed by now. The problem with connection lost i also had before i used the script. What i also did notice is that my recent call list is now also loaded. The only difference i have now compared to a month ago is that i now flashed a custom rom. The one from dutty v1.7. And the bluetooth options there got an extra tab, named Car Kit. There you can set a headset as a default car kit. Combined with this script i think it works like a charm! :D
 

marco899

Senior Member
Aug 3, 2005
272
0
I'm in possession of a HD for 3 months now. Great device. Tried several roms, no complaints there. There is only one problem, which is bothering me for a long time. The connection with my bluetooth carkit (Opel Zafira / NAVI-DVD90) drops after a few minutes, because for some reason bluetooth is turned off.

I also have a Zafira with DVD90 but without bluetooth. My dealer told me before buying it's a drama with opel. I'am using a bluetouch carkit and that's working fine. Aldo one questions, is BT turning off on your HD or on your car?
 

mouki_9

Senior Member
Nov 7, 2008
1,069
99
in my case (also dvd90 but opel astra) the bluetooth on the phone is turned off. The bluetooth of the car stays on and keeps functioning. That is also the reason this script works.
 

akhoury

Member
Nov 14, 2008
37
0
mine stay connected with this script even after making calls. I'm using this script a while now (few weeks) and for my work i'm a lot in the car, so if there was a problem with the script, then i would have noticed by now. The problem with connection lost i also had before i used the script. What i also did notice is that my recent call list is now also loaded. The only difference i have now compared to a month ago is that i now flashed a custom rom. The one from dutty v1.7. And the bluetooth options there got an extra tab, named Car Kit. There you can set a headset as a default car kit. Combined with this script i think it works like a charm! :D

do you have the link for this custom rom? i'm willing to try anything.
 

freggelfrot

Senior Member
Feb 17, 2007
54
0
well, unfortunately, it doesn't work for me.

the phone connects to my car and downloads the phonebook.

however, when i try to make a call, the bluetooth connection is lost.

i'm not having a problem with the phone's bluetooth turning off; it's always on and visible. i'm having a problem keeping the connection between the phone and the car.

i was able to initially make a few calls after i installed the script on my phone; but now, the connection always drops when i try to make a call.

if anyone knows of anything else i can try, i'm open to suggestions.

by the way, i have a 2008 landrover lr2; i just got it back from the dealer the other day for some services performed; one of them was supposedly a bluetooth software update for the car.

Hi,

Try BTRestart. This program restarts the bluetooth connection after making a phonecall.
The tool is made by the same persoon who made BTRestore. The tool doesn't work for me. Let me know if it works. If you are interested i will adjust the mortscript for you.

Grz
 

akhoury

Member
Nov 14, 2008
37
0
Hi,

Try BTRestart. This program restarts the bluetooth connection after making a phonecall.
The tool is made by the same persoon who made BTRestore. The tool doesn't work for me. Let me know if it works. If you are interested i will adjust the mortscript for you.

Grz

thanks i'd appreciate that.

should i remove BTRestore before i install BTRestart? or can they both be installed on the phone?

i guess i'll try this method before i install a new rom; which by the way if anyone has the link to any of the custom rom's i'd appreciate it.
 

freggelfrot

Senior Member
Feb 17, 2007
54
0
thanks i'd appreciate that.

should i remove BTRestore before i install BTRestart? or can they both be installed on the phone?

i guess i'll try this method before i install a new rom; which by the way if anyone has the link to any of the custom rom's i'd appreciate it.

No, it's not necessary to remove BTRestore. Both work at the same time.
Maybe BTRestart is the only application you need. I use BTRestore so my bluetooth connection won't drop randomly. If your connections stays stable and it only drops after a phonecall, just install BTRestart.