ZD410 not responding after reconnect with standard Android API

I am trying to connect to a ZD410 not using the link-os SDK, but the standard Android SDK. This succeeds without problems using the standard BluetoothGatt and related classes. To then print on the ZD410 I write to the Characteristic of which the UUID (38eb4a82-c570-11e3-9507-0002a5d5c51b) can be found in the PDF "Bluetooth Low Energy Printing – iOS". I split the zpl code I want to print into 20 byte chunks and write it to the Characteristic, writing one chunk after the onCharacteristic write of the BluetoothGattCallback tells me the last write was completed. This also works without problems until I disconnect() and close() the current BluetoothGatt and later construct a new one using BluetoothDevice.connectGatt(). If I then try to write to the Characteristic, onCharacteristicWrite will be called with a Characteristic, that still has the old value from before the disconnect. At the same time the data LED on the ZD410 will be green and stay that way without blinking. How can I fix this?

Ruan Silvis
Joining thread

Hi,

I recently bought a ZD410 and am trying to print via BLE.
I tried to connect with the LinkOS plugin, but it seems this only works with classic BT (code from ZebraDeveloperDemo).

Any links to nudge me in the right direction will be much appreciated

Thnx in advance

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alexander Palchikov
Android SDK for BTLE

Hello.
As far as I understand you use general Android SDK, but you have to use Android SDK for BTLE, those are different SDK.
https://www.zebra.com/us/en/support-downloads/printer-software/link-os-m...

After installation, you need to use android_btle SDK.

Alexander Palchikov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments