OpenI6X / opentx

OpenTX for FlySky FS-i6X
GNU General Public License v2.0
169 stars 42 forks source link

USB Joystick reboots #152

Closed xpertcrush closed 1 month ago

xpertcrush commented 2 years ago

Describe the bug When i connect usb as joystick it doesn't work on first go and tx also restarts on connection, on windows after trying 2-3 times it connects but in setup joystick option, none of the axis works, see video for demo.

To Reproduce Steps to reproduce the behavior:

  1. Go to setup and change usb to once
  2. Connect to pc using data cable
  3. It won't connect and you will only see usb input device, Repeat the steps, your tx may reboot on own and it will connect, but your current model selected will have garbled name and settings inside.
  4. See error

Expected behavior It should work on first go and there should be no reboots

Screenshots P_20220214_001451.jpg

P_20220214_001505.jpg

https://youtu.be/cawFnemfd7o

General information

ajjjjjjjj commented 2 years ago

Can you retry on this build? You should manually format eeprom after flashing it. openi6x-usbtest.zip

xpertcrush commented 2 years ago

Yes i can, wait i will do it now and report back, also i am using single cell lipo mode, can you adjust the battery range from 3.5 low to whatever high doesn't matter. So that I can set low alarm at 3.5

xpertcrush commented 2 years ago

Can you retry on this build? You should manually format eeprom after flashing it. openi6x-usbtest.zip

Initially expression:

Looks good so far it didn't rebooted and my sticked detected as well P_20220215_110145.jpg

P_20220215_110155.jpg

Please change batter low range from 3.5

P_20220215_110230.jpg

So i dont hear this continuous beep of low battery on lipo

P_20220215_110245.jpg

xpertcrush commented 2 years ago

Unfortunately It's back again today

https://youtu.be/elJ7mrpUN3A

marianomd commented 2 years ago

Should we try disabling the watchdog to see if its a delay or a lockup?

ajjjjjjjj commented 2 years ago

Sure, if we can reproduce.

xpertcrush commented 2 years ago

Found fix? It's still rebooting and works after 30-40 tries

ajjjjjjjj commented 2 years ago

Can you share your eeprom copy?

ajjjjjjjj commented 2 years ago

@xpertcrush , maybe i found the fix, try latest release.

ajjjjjjjj commented 2 years ago

Closing because stalled

marianomd commented 2 years ago

Still happening on 1.6.1. Will try to debug it (through bluetooth serial💪)

marianomd commented 2 years ago

It seems related to USB cable quality.

marianomd commented 2 years ago

The throttle warning doesn't appear during the bootloops.

https://user-images.githubusercontent.com/274989/172937311-857c1803-8134-447e-afa5-7d77a5330c04.mp4

.

Pmant commented 2 years ago

I have a similar issue, never got joystick mode to work. However, flashing via dfu mode and storage mode do work. In joystick mode I get a broken device (Code 10) in windows and the i6x randomly beeps a couple times.

througer commented 2 years ago

Hello, great work so far. The joystick mode does never work for me in version 1.6.0 or 1.6.1. Tried the older versions. Had to flash back to Version 1.1.0. This will do it every 4th or 5th attempt. In very few cases, the device restarts. Most of the time, an error code 10 appears in the device-manager.

DocTrucker commented 2 years ago

Just updated from the one of the early versions of this that had to be flashed by ST Link Adaptor. Flashed fine by DFU and USB cable on linux. Booted into windows (for simulator) and the Devices and Printers page shows "FS-i6x Joystick" but the hardware tab of the properties shows "Device Status: This device cannot start. (Code 10)"

Version 1.8.0 2022-11-04

WOPR-Computer commented 1 year ago

This bug is still a problem in 1.9.0heli build. I am not a programmer. I have been in electronics sense 1975. Built first computer in 75 using hex readout and 8bit binary switches. This is why over my head. This is a driver problem. Win10 driver needs to be fixed. I do not know how to write custom drivers. I am going to have to reload the original OEM FW. I need to sim heli. I am just getting back into RC after a 20 year break. Much has changed. Back then I did PASCAL programing. I have no C++ experience. I find WIN10 a pain.

ajjjjjjjj commented 1 month ago

Fixed by #424