Page 1 of 1

Control Radio from pc over USB - Howto

Posted: Tue May 30, 2017 5:32 pm
by wirelessdreamer
I'm currently using a PCTx from endurance rc http://www.endurance-rc.com/pctx.php and a Spektrum dx6 to control a drone from a pc over usb.

With the open source firmware i'm wondering if someone else has already accomplished this on a Taranis. If it can remove the need for the PCTx i'd gladly buy a taranis.

I'm looking for the radio to present itself over usb as a hid device, and then let me control all channels from the pc.

Re: Control Radio from pc over USB - Howto

Posted: Tue May 30, 2017 6:07 pm
by Kilrah
There is currently no support for such a function. It's open source, so you could implement it.

Re: Control Radio from pc over USB - Howto

Posted: Tue May 30, 2017 6:12 pm
by wirelessdreamer
any suggested reading on getting started?

Re: Control Radio from pc over USB - Howto

Posted: Tue May 30, 2017 9:35 pm
by Kilrah
You'd probably want to check the OpenTX github repo, and check the code for the joystick feature since that uses HID already.

You might also want to get in contact with the developers via the chat and/or issue tracker since this is the kind of thing that requires deciding of a protocol and would be best done in coordination with other project goals.

Re: Control Radio from pc over USB - Howto

Posted: Tue May 30, 2017 9:53 pm
by MikeB
The Taranis has a serial port (RS232 levels) in the battery bay. If you use ersky9x firmware on the Taranis, this may be used to input SBUS trainer data at 57600 baud. The PC support program (eepskye) also supports this, and can output the required SBUS serial data from the simulator, thus providing the type of control required.

Mike.

Re: Control Radio from pc over USB - Howto

Posted: Tue May 30, 2017 10:29 pm
by Kilrah
That's indeed a thing, in OpenTX too. I stopped on the USB requirement and didn't think of mentioning that.

Re: Control Radio from pc over USB - Howto

Posted: Tue May 30, 2017 10:57 pm
by MikeB
I wasn't sure if openTx supported 57600 baud as well as 100K baud. You can't (usually) get a serial port from a PC to work at 100K baud.

Mike.

Re: Control Radio from pc over USB - Howto

Posted: Wed May 31, 2017 7:32 am
by Kilrah
No 100k only, but AFAIK the common USB-serial converters are perfectly happy to run at arbitrary baudrates.

Re: Control Radio from pc over USB - Howto

Posted: Wed May 31, 2017 8:26 am
by MikeB
It seems to me that all mine accept the setting, but then use the "nearest standard" baudrate, so if I ask for 100000 I get 115200.
That's why I added a 57600 baud option in ersky9x, I couldn't get 100K baud to work.
If I get some spare time I run some more tests.

Mike.

Re: Control Radio from pc over USB - Howto

Posted: Mon Jun 05, 2017 5:03 pm
by wirelessdreamer
thanks. Once I get the money together for the Taranis I'll post some updates.