Closed roylee17 closed 6 years ago
I'm actually also working on porting this library over to golang, but it looks like you're a little farther along than me. I'm planning to do some more work on this tonight and will post up any findings I have here as well :-)
Here's some of the work I've done: https://github.com/EvanPurkhiser/go-tikteck
Up to the point, the byte sequences seem to be the same. Guess I missed something in the command encryption, or else. I'll try your implementation when you got the command part, and hook up the ble part.
I'm glad you opened this issue, as I did not know about the ble
library :-) I was going to attempt to use paypal/gatt
(which you also seem to be a large contributor of!), but was having some difficulty understanding it.
I gave your example code a try to see if I might be able to debug it, but it seems to hang at discovering the device
2016/07/19 11:33:24 dev: hci0 up
2016/07/19 11:33:24 dev: hci0 reset
2016/07/19 11:33:24 dev: hci0 down
2016/07/19 11:33:24 dev: hci0 opened
I'll be out of town for the next week, so probably won't have any updates on this just yet.
By example and "discovering", I guess you're trying examples/explorer? If that's the case, you can use parameter -name or -addr to specify which device to explorer. You can try examples/scanner to find out their name and address.
Issues and PR are welcome.
Sorry to say I'll be abandoning this. I've bought some Philips Hue bulbs which are much better supported.
hi.. its a little late :p but you have continued this project? tks
Hi,
I've been working on a BLE library in GO language, and is trying to port the python-tikteck to it. Wrote up equivelent / similar code, but haven't got it work yet. Also having problem to get the BluetoothSocket.py work, otherwise, it'd be helpful to debug by comparision the hcidump or in program logs.
I'm wondering if you'd take a look and see if any obvious point missing?
https://github.com/currantlabs/ble/tree/master/examples/devices/tikteck
Write request to pair char
Read response from pair char
Write to command char