Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
309 views
in Technique[技术] by (71.8m points)

Is it possible to have an Bluetooth SPP connection and BLE GATT connection in an android phone at the same time?

I am making application to connect an android based tablet to BLE GATT based temperature sensor and an Bluetooth SPP based printing device at the same time. Is this possible in android devices? My purpose is to read the temperature sensor to my device and print the temperature with user data using the printing device.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Yes this should be possible. Classic Bluetooth and BLE are almost two different technologies so using them in parallel through the same app shouldn't be an issue. The only restriction you have when working with both is that you cannot scan for both classic and LE devices at the same time. This is mentioned in the Android BLE Developer Guide:-

You can only scan for Bluetooth LE devices or scan for Classic Bluetooth devices, as described in Bluetooth. You cannot scan for both Bluetooth LE and classic devices at the same time.

You can find more information about this here:-


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...