tinytuya icon indicating copy to clipboard operation
tinytuya copied to clipboard

Can one connect to the fingerbot directly using Bluetooth without a hub?

Open falhumai96 opened this issue 1 year ago • 6 comments

I am planning to buy a Fingerbot, but I would like to know if this API allows for a local Bluetooth communication with the device (say, from a raspberry pi).

Thanks.

falhumai96 avatar May 19 '23 20:05 falhumai96

Hi @falhumai96 - tinytuya uses TCP/IP via WiFi or LAN communication, not bluetooth directly.

jasonacox avatar May 20 '23 23:05 jasonacox

I see, so it seems it requires a Hub to function properly.

falhumai96 avatar May 21 '23 06:05 falhumai96

Yes, I suspect that is the case. I have tested using a hub to manage simple bluetooth devices via tinytuya. I don't know about the fingerbot, but would love to know if that works as well.

jasonacox avatar May 22 '23 02:05 jasonacox

Although TinyTuya currently does not support it, I don't see why it couldn't be added. It would take some R&D time to reverse engineer the BLE endpoints, but it should be possible. Unfortunately I'm out of town and didn't bring a hub or fingerbot with me so I won't be able to look into it until later next month.

uzlonewolf avatar May 22 '23 03:05 uzlonewolf

Well, I looked into this, and it's not looking too good. It turns out BT devices use an entirely different protocol and as such I feel it's going to be out of scope for the TinyTuya project. I was hoping it was going to be the same protocol as the LAN just wrapped in GATT messages, however that is not the case and pretty much none of the existing code can be used in implementing it. There is already a hubless Fingerbot demo program at https://github.com/redphx/poc-tuya-ble-fingerbot however.

uzlonewolf avatar Jul 01 '23 10:07 uzlonewolf

Bummer. Thanks for exploring this @uzlonewolf !

jasonacox avatar Jul 01 '23 17:07 jasonacox