Page 1 of 1

Serially attached RC transmitter?

Posted: 11 Nov 2012 03:50
by Grant_Edwards
The Heli-X home page says that a USB interface or transmitter is required.

I've got an "FMS PIC" serial cable for my transmitter, and I have written a driver so that it shows up as a 6-axis joystick device /dev/input/js0. [It works the same way that the Linux zhenhua joystick driver does.]

Will this work with Heli-X or do I really need a USB transmitter?

Re: Serially attached RC transmitter?

Posted: 11 Nov 2012 11:28
by Michael
Hi,

it should, I guess. Just try it out and let us know.

Michael

Re: Serially attached RC transmitter?

Posted: 11 Nov 2012 19:53
by Grant_Edwards
Michael wrote:it should, I guess. Just try it out and let us know.
It works fine. :)

I had the Java "link error" using the jinput library included with the heli-x download library, so I had to get a newer copy of of libjinput-linux.so from

http://java.net/projects/jinput.

If anybody else wants to use an RC transmitter with an "FMS PIC" serial cable, you
can get my fmspic Linux joystick driver from

http://www.panix.com/~grante/files/rc/fmspic.tar.gz

Here's the Readme.txt file from the above tarball

Code: Select all


This is a joystick driver for an RC transmitter connected to a serial
port via a 9600 baud "FMS PIC" adapter cable.  [It was developed using
3.3 and 3.5 kernels, but probably isn't too version-specific.]

Note: there are two mutually-incompatible types of "FMS PIC" serial
cables:

  1) Sync byte of 0XF0+(#channels) running at 9600 baud.

  2) Sync byte of 0xFF running at 19200 baud.

This driver only supports the 0xF0+#channels variety. It shouldn't be
hard to add support for the other variety, but I don't have one to
test with.

This driver was based on the "zhenhau.c" driver found in the the
kernel source tree.

The included Makefile, will build against the currently running kernel
and also also includes these targets:

   insert: inserts the fmspic.ko module into the running kernel
           (removing it first if it's already loaded).

   remove: removes the fmspic module from the running kernel

   attach: runs the "inputattach" command to connect the serial port
           specified by the SERPORT variable to the fmspic module.


Re: Serially attached RC transmitter?

Posted: 06 Oct 2019 23:39
by Grant_Edwards
Grant_Edwards wrote:
11 Nov 2012 19:53
If anybody else wants to use an RC transmitter with an "FMS PIC" serial cable, you
can get my fmspic Linux joystick driver from ...
Moved to https://github.com/GrantEdwards/fmspic/

Re: Serially attached RC transmitter?

Posted: 16 Oct 2019 04:11
by Grant_Edwards
There's a user-space version of the driver that uses the uinput API at

https://github.com/GrantEdwards/fmspic-uinput/

It's simpler to build/use than the kernel module.