javaos74 / btstack

Automatically exported from code.google.com/p/btstack
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by maksym.n...@gmail.com on 26 Mar 2011 at 5:10

GoogleCodeExporter commented 9 years ago
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.

Original comment by matthias.ringwald@gmail.com on 28 Mar 2011 at 9:31

GoogleCodeExporter commented 9 years ago
That would be great. Looking forward for updates :)
cheers

Original comment by maksym.n...@gmail.com on 28 Mar 2011 at 9:42

GoogleCodeExporter commented 9 years ago
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

Original comment by scu...@googlemail.com on 17 Apr 2011 at 9:33

GoogleCodeExporter commented 9 years ago
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.  

Original comment by matthias.ringwald@gmail.com on 19 Apr 2011 at 3:26

GoogleCodeExporter commented 9 years ago
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

Original comment by Bron-...@hotmail.co.uk on 19 Apr 2011 at 7:15

GoogleCodeExporter commented 9 years ago
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. 

Original comment by matthias.ringwald@gmail.com on 19 Apr 2011 at 7:20

GoogleCodeExporter commented 9 years ago
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

Original comment by Bron-...@hotmail.co.uk on 20 Apr 2011 at 7:52

GoogleCodeExporter commented 9 years ago
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. 

Original comment by dan.fire...@gmail.com on 22 Apr 2011 at 2:09

GoogleCodeExporter commented 9 years ago

Original comment by matthias.ringwald@gmail.com on 9 Jul 2011 at 11:28

GoogleCodeExporter commented 9 years ago
Issue 177 has been merged into this issue.

Original comment by matthias.ringwald@gmail.com on 29 Nov 2011 at 10:08

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

Original comment by book...@thetempests.com on 27 Feb 2013 at 3:50