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

Disappearing port #73

Open SziluChannel opened 11 months ago

SziluChannel commented 11 months ago

Hi

I have some problems with the software. I am using an Arduino nano and a FlySky FS-IA6B receiver. I did the setup following the Linux tutorial, that part seems to be fine. The wiring seems to be fine, did it based on the video tutorial. However I am using Linux, Pop-os. I select the port and the protocol, click connect, it says Serial port timeout, because no radio connection no data, that is clear. The problem is: as soon as I power on the transmitter it binds, starts sending data (the TX led lights up on the Arduino) and the device from /dev/ disappears, and the software says that it is missing. After I turn off the transmitter it detects again, and seems to be fine.

Any idea on this weird problem?

Dmesg says:

[ 5014.174983] usb 1-10: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 5014.174986] usb 1-10: Product: USB Serial
[ 5014.189741] ch341 1-10:1.0: ch341-uart converter detected
[ 5014.203762] usb 1-10: ch341-uart converter now attached to ttyUSB0
[ 5107.174399] usb 1-10: USB disconnect, device number 67
[ 5107.175471] usb 1-10: failed to send control message: -19
[ 5107.175720] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 5107.175749] ch341 1-10:1.0: device disconnected
[ 5110.797251] usb 1-10: new full-speed USB device number 68 using xhci_hcd
[ 5111.114950] usb 1-10: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64

I am not really an expert, it is possible that I did something wrong.

Cleric-K commented 11 months ago

Are you sure you have the wiring right? Another possibility is that there could be some problem with the UART chip on the Arduino. Do you have another one to test with?

SziluChannel commented 11 months ago

The wiring has been checked multiple times, seems to be fine based on the video tutorial. The arduino is brand new, the uploading & serial monitor works fine, probably the UART chip is functional.

SziluChannel commented 11 months ago

Oops my fault, didn't mean to do that. Github noob here...

Cleric-K commented 11 months ago

Does the disconnect happen only while the board is connected in vjsf? Or dmesg reports disconnect even if the serial port is not opened by anything?