Control Radio from pc over USB - Howto

Not sure what firmware to use? Making a new firmware? Ask in here!
Post Reply
wirelessdreamer
Posts: 3
Joined: Tue May 30, 2017 5:29 pm
Country: -

Control Radio from pc over USB - Howto

Post 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.

User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Control Radio from pc over USB - Howto

Post by Kilrah »

There is currently no support for such a function. It's open source, so you could implement it.
wirelessdreamer
Posts: 3
Joined: Tue May 30, 2017 5:29 pm
Country: -

Re: Control Radio from pc over USB - Howto

Post by wirelessdreamer »

any suggested reading on getting started?
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Control Radio from pc over USB - Howto

Post 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.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Control Radio from pc over USB - Howto

Post 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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Control Radio from pc over USB - Howto

Post by Kilrah »

That's indeed a thing, in OpenTX too. I stopped on the USB requirement and didn't think of mentioning that.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Control Radio from pc over USB - Howto

Post 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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Control Radio from pc over USB - Howto

Post by Kilrah »

No 100k only, but AFAIK the common USB-serial converters are perfectly happy to run at arbitrary baudrates.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Control Radio from pc over USB - Howto

Post 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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
wirelessdreamer
Posts: 3
Joined: Tue May 30, 2017 5:29 pm
Country: -

Re: Control Radio from pc over USB - Howto

Post by wirelessdreamer »

thanks. Once I get the money together for the Taranis I'll post some updates.

Post Reply

Return to “other”