Export to GitHub

btstack - issue #136

BTstack GPS: Usage problems with Bluetooth power off when device gets locked


Posted on Mar 26, 2011 by Grumpy Rabbit

Hi, I upgraded software to 1.5 and it started automatically disconnect from external GPS when my Ipod touch 4G (IOS 4.1) goes to sleeping mode.

When i purchased version 1.4 i did have such problem. The connection to GPS device was persistent. Please advise how to fix this back. It's very annoying.

Here the logs:

I connected to device

New state: 2 Bluetooth status: ON Create_connection to 00-1C-88-11-1F-2C Connection_complete (status=0)00-1C-88-11-1F-2C New connection: handle 12, 00-1C-88-11-1F-2C New nr connections: 1 Bluetooth status: ACTIVE

Create_connection to 00-1C-88-11-1F-2C

Connection lost: messageType e0000270, arg 00150010 messageType e0000280, arg 00160010 power_notification_process: 1 hci_power_control: 2, current mode 2 New state: 5 Bluetooth status: OFF HCI_STATE_FALLING_ASLEEP HCI_STATE_FALLING_ASLEEP, connection 8419328, handle 12 Connection closed: handle 12, 00-1C-88-11-1F-2C New nr connections: 0 Bluetooth status: OFF HCI_STATE_FALLING_ASLEEP HCI_STATE_HALTING, disabling inq & page scans HCI_STATE_HALTING, calling sleep hci_power_control_sleep Welcome to BlueTool... Rev 0.1

Comment #1

Posted on Mar 28, 2011 by Swift Ox

In older versions of BTstack itself, the connection wasn't explicitly stopped, with the result that BTstack stopped working on wake up for most people. The version release in December '10 now disconnects all active connections and puts the Bluetooth in a low-power mode to save battery.

If you want to keep logging data when the device is logged, the actual logger app is responsible from preventing the device from entering sleep mode, which will also stop BTstack from disconnecting.

As for BTstack GPS, I plan to add the ability to re-connect to the last used device, either on wake-up or even when a navigation app starts.

Comment #2

Posted on Mar 28, 2011 by Grumpy Rabbit

That would be great. Looking forward for updates :) cheers

Comment #3

Posted on Apr 17, 2011 by Helpful Dog

Hi, I stumbled across this topic while looking for a solution to the same problem (ie where the GPS loses connection when the device is turned off). I appreciate it's something you're working on fixing, but is there a way to downgrade back to a previous version where the old behavious worked? My big problem is that 99% of my GPS usage is when out hiking or cycling, rather than in the car, and so I constantly turn my iPod Touch on and off as it goes in and out of my pocket so I can quickly check i'm heading the right way. Obviously there never used to be a problem, but now it's pretty much unusable for me.
Could an old version be put back on Cydia until the problem is fixed? Regards, David

Comment #4

Posted on Apr 19, 2011 by Swift Ox

I'm sorry but I cannot put an older version of BTstack on Cydia for various reasons, a very prominent one is that e.g. the new Celeste package depends on the very latest one, and as I explained before, the old version didn't even work for everybody - you must have been a lucky one. An intermediate fix could be to not let your iPod go to sleep at all, e.g. I think there's the insomnia package, or you can play back an audio file of silence.

Comment #5

Posted on Apr 19, 2011 by Swift Giraffe

Hi

I'm having the same problem as lots of others that when my iPod goes into sleep mode it disconnects from the gps device. It's made the ipod unusable for golfing. You have said earlier that you are working on a fix so that it automatically re-connects to the last device on wake up. Do you know approximately when the fix will be released please?

Thanks Colin

Comment #6

Posted on Apr 19, 2011 by Swift Ox

Interesting use case: golfing :) Anyway, I said that I plan to add the ability to re-connect. This is part of the upcoming BTstack GPS update, which I didn't start yet and it's rather tricky to come up with estimates. A rough one is between one month and before summer. sorry, have to finish another project updates first.

Comment #7

Posted on Apr 20, 2011 by Swift Giraffe

Yeah, its excellent for golfing! The GPS for distance is very good but battery hungry. With the update being a while off is there anyway of restoring to previuos version? I dont want to go to other suppliers as your system has worked faultlessly all the time.

Colin

Comment #8

Posted on Apr 22, 2011 by Quick Wombat

I also have need for the GPS to stay connected. I use BTStack with Foreflight and want put my iPad to sleep when on longer flights to save the battery. When I do want to check our position, etc., I have to exit Foreflight and reconnect, which I didn't have to do in the previous version. Anxiously waiting for the next update along with the others.

Comment #9

Posted on Jul 9, 2011 by Swift Ox

(No comment was entered for this change.)

Comment #10

Posted on Nov 29, 2011 by Swift Ox

Issue 177 has been merged into this issue.

Comment #11

Posted on Feb 27, 2013 by Happy Cat

I am experiencing this problem. It never stays connected. Worthless app at this point. ios 6.1.2 ipad 4th gen wifi.

Status: Started

Labels:
Type-Enhancement Priority-Medium