Cleric-K / vJoySerialFeeder

Feed Virtual Joystick driver with data from a serial port
GNU General Public License v3.0
252 stars 55 forks source link

rfcomm bluetooth serial ports in Linux #48

Closed aarotronics closed 3 years ago

aarotronics commented 3 years ago

Hi, I've just followed the tutorial in order to get vJoy Serial Feeder working on Linux (using in this case uinput instead of vJoy) and appliaction runs without problem. The problem comes when I want to select my transmitter serial port. I use an ESP32 inside my Taranis in order to bridge directly SBUS stream from transmitter to Laptop wirelessly via Bluetooth. For this I bind my ESP32 to a rfcomm, but I can't select rfcomm inside the application, only can select serial ports from ttyS0 to ttyS31. Any ideas for getting this working?? thank you!!

Cleric-K commented 3 years ago

Hi, Unfortunately I don't have control on this. To list the serial ports I use standard C# method: https://docs.microsoft.com/en-us/dotnet/api/system.io.ports.serialport.getportnames?view=dotnet-plat-ext-5.0

I don't know how the Linux implementation of Mono decides what are the serial ports. If it does that based on name guessing, you may try to make a symbolic link for rfcomm. sudo ln -s rfcomm ttyS33 This will hopefully allow you to open ttyS33 in vjsf.

aarotronics commented 3 years ago

Woooaaaa!!! That actually worked like a charm!! Thank you so much for this awesome project and support

Cleric-K commented 3 years ago

Cool :) I'm glad it worked out! Happy flying!