Android SDK ZQ110 v1.1

R Roman Hornak 3 years 6 months ago
16 1 0

Hi, I'm developing Android application for Zebra ZQ110.
Currently I'm facing problem with connection to ZQ110 via bluetooth on various devices (Nexus 5, HTC One X, and others).
It looks like device is paired with phone and connected (bluetooth sign on ZQ110).
But in code - EventHandler don't receive MESSAGE_STATE_CHANGE: (STATE_CONNECTED).
I just receive STATE_CONNECTING and then MESSAGE_DEVICE_NAME, but STATE_CONNECTED not.
Same problem occurs when I tried sample application (https://www.zebra.com/us/en/support-downloads/mobile/zq110.html ).
 
Stacktrace:
05-27 12:20:02.522 18272-18272/cz.pria.zebra I/ZQ110: ++ connect(74:F0:7D:E2:C4:AF) ++ 05-27 12:20:02.522 18272-18272/cz.pria.zebra D/ConnectivityManager: ++ CONNECT (BLUETOOTH) ++ 05-27 12:20:02.524 18272-18272/cz.pria.zebra D/BluetoothService: connect to: 74:F0:7D:E2:C4:AF 05-27 12:20:02.527 18272-18272/cz.pria.zebra D/ConnectivityService: setState() 0 -> 1 05-27 12:20:02.528 18272-18272/cz.pria.zebra D/PrinterHandler: MESSAGE_STATE_CHANGE: 1 05-27 12:20:02.528 18272-18272/cz.pria.zebra I/BaseZebra: 1 05-27 12:20:02.528 18272-18272/cz.pria.zebra V/BaseZebra: is connecting 05-27 12:20:02.528 18272-18784/cz.pria.zebra I/BluetoothService: BEGIN mConnectThread SocketType: Insecure 05-27 12:20:02.531 18272-18784/cz.pria.zebra W/BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback 05-27 12:20:03.085 18272-18784/cz.pria.zebra D/BluetoothService: connected, Socket Type: Insecure 05-27 12:20:03.087 18272-18784/cz.pria.zebra D/BluetoothService: create ConnectedThread: Insecure 05-27 12:20:03.088 18272-18784/cz.pria.zebra D/ConnectivityService: setState() 1 -> 2 05-27 12:20:03.089 18272-18272/cz.pria.zebra D/PrinterHandler: MESSAGE_STATE_CHANGE: 2 05-27 12:20:03.089 18272-18795/cz.pria.zebra I/BluetoothService: BEGIN mConnectedThread 05-27 12:20:03.181 18272-18795/cz.pria.zebra D/BluetoothService: [7] read(55 04 00 38 00 01 c3) 05-27 12:20:03.190 18272-18272/cz.pria.zebra D/ConnectivityManager: [3] write( 05-27 12:20:03.190 18272-18272/cz.pria.zebra D/ConnectivityManager: 1d 49 43 05-27 12:20:03.190 18272-18272/cz.pria.zebra D/ConnectivityManager: ) 05-27 12:20:03.191 18272-18272/cz.pria.zebra I/BaseZebra: 4 05-27 12:20:03.191 18272-18272/cz.pria.zebra V/BaseZebra: XXZN15-17-0269 05-27 12:20:03.197 18272-18272/cz.pria.zebra D/PrinterHandler: [7] MESSAGE_READ: 55 04 00 38 00 01 c3                                                                readMessage: U ��8�� � 05-27 12:20:03.198 18272-18272/cz.pria.zebra D/PrinterHandler: dispatchMessage(55 04 00 38 00 01 c3) 05-27 12:20:03.198 18272-18272/cz.pria.zebra D/PrinterHandler: CurrentProcess: 13, ReceiveBuffer: 55 04 00 38 00 01 c3 
 
NOTE: When I tried iOS sample app everything works ok.

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

Hi Roman,

What firmware version do you currently have on the ZQ110 printer?

Also, I know that on the ZQ110 you have to turn on MFi mode in order to get it to connect with iOS devices, you may need to turn that mode off in order to connect via an Android device. Please see page 32, in the MFi Manual for how to disable iOS mode. Please disable iOS mode and then see if the Android portion works, please let me know what happens.

Thank you,
Beverly

CONTACT
Can’t find what you’re looking for?