03-09-2014 04:32 PM
I have a weird behavior of my application connected to Bluetooth.
The Bluetooth portion of my app is the same as the bluetoothchatspp. The connection is done this way:
bt_spp_open(m_remoteAddress.toAscii().data(), (char *) SPP_SERVICE_UUID, false);
SPP_SERVICE_UUID as "00001101-0000-1000-8000-00805F9B34FB"
If I disable the screen timeout with this qml command "Application.mainWindow.screenIdleMode = 1" then I can send and receive data over SPP for hours.
Now if the screen times out, exactly 10s after the timeout (whatever the timeout settings is), the BT link is suspended meaning no data are sent and received. I measured this interval using the system timer and catching the appropriate signal with this command:
connectResult = QObject::connect(bb::cascades::Application::instan
Once the screen is on again (doing a swipe for instance) then data transfer is resumed without breaking the BT link.
Is there any power saving feature suspending the BT SPP link when the screen if off?
I need to read continuously data from my sensors so I would need to disable this features.
Solved! Go to Solution.