Send channels over Trainer Bluetooth

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
Xmars
Posts: 1
Joined: Fri Dec 25, 2020 6:56 pm
Country: -

Send channels over Trainer Bluetooth

Post by Xmars »

Hi! :)
As you probably know, there are BLE Bluetooth in some TXs and you can pair two of them and use Trainer mode.
I'm trying to develop a device that will pretend as a Slave and send channels to the Master TX.
Here is an example of how you can read Slave data https://github.com/garyjohnson/opentx-b ... e-joystick
But I need the opposite, I want to control the TX so I need to provide channels and TX should read them.

Slave provides FFF0 Service and FFF6 characteristic that you can read (https://github.com/garyjohnson/opentx-b ... rser.m#L32)

So I did the same, my device provides FFF6 characteristic with channels in the same way (data type etc), TX finds my device and binds. But the problem is that it doesn't subscribe to FFF6 characteristic and doesn't read it. I think there is some workflow and I miss something.

https://github.com/opentx/opentx/blob/2 ... etooth.cpp

Thanks!

Post Reply

Return to “openTx”