-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passkey support #279
Comments
@ray73864 bounding is not really part of BLE but more part of Bluetooth classic. |
Which is interesting, as I'm connecting to the printer via BLE. What I found is that if I don't have the printer paired at all to the CipherLab device, and I use my app to connect to it via ble, it says it connected, but when I try and write to the printer using the correct characteristic, nothing happens. If however I pair to the printer first, I can connect using the ble plugin, then send a write command, and it spits out a label just fine. So I just 'forgot' the printer on the device, then went into my app, scanned a product barcode, then tapped on 'print', and it errors out with:
The full value is:
I have my app 'chunking' the string up into bite sized pieces because some of the things being printed will be too much for the ble protocol. I would do a PR except that I just can't grok TypeScript. I've looked and looked and looked at it, but it just confuses me compared to other languages I have used (and use) at this present stage. Plus I couldn't understand any of the ble plugin code :( |
@ray73864 one of the principle of the BLE is to allow to connect to a device without any pairing. I dont know why your device requires the the bonding. But i assure you it is not needed in BLE. I have done it with many BLE devices from many different manufacturers. |
Oh I understand that with regards to the development of the plugin. As for the bluetooth side, I'm not sure. It's a Zebra ZQ521 RFID Mobile Printer which according to the specs supports Bluetooth 4.1 (Classic and BLE) with 'Security Models 1-4' and 'Key Bonding'. The CipherLab device is a CipherLab RS35 with support for Bluetooth Class I, V4.2 dual mode, V2.1 with Enhanced Data Rate (EDR). |
Any chance of passkey support?
I have this working with a Zebra ZQ521 that was sent to us by a company we buy our CipherLab devices from, but it requires me to pair to the printer first via the Android Settings app.
Unfortunately we don't give our warehouse staff or store staff access to the Settings app, the CipherLab devices run in a locked down mode, which means connection to the printer via BLE would be required to occur inside the app itself.
Once initially paired though, I have it connecting, getting the list of services, selecting the correct service and characteristic, then writing to the characteristic (Chunking the data up into bite sized pieces because the labels I want to send aren't simple ones).
That all works perfectly, happens nice and quickly too, I would just love to get the whole procedure done inside the app.
Discovery, Pairing, Connecting, Writing, and Disconnecting.
The text was updated successfully, but these errors were encountered: