I have an application that currently works on Windows that we would like to 
port to Android. Under Windows, the application can communicate to an external 
device over either a USB to Serial converter or over Bluetooth. I can 
accomplish both of those connections using a class that inherits from 
QSerialPort to accomplish the communication. This works fine on Windows since 
both paths show up as COM ports, which QSerialPort plays nicely with: 
  - the USB to Serial device shows up as COM24
  - the Bluetooth device shows up as COM40
So just a simple call to QSerialPort::setPortName() allows me to switch between 
the usb serial connection and the Bluetooth connection.

On the Android device, we really only care about connected to the external 
device via Bluetooth. But does this same behavior, where Bluetooth looks like a 
serial device, exist under Android and I can still use QSerialPort? Or do I 
need some other device (i.e. QBluetoothSocket)?

Sean 

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to