An I/O controller for virtual pinball machines: accelerometer nudge sensing, analog plunger input, button input encoding, LedWiz compatible output controls, and more.

Dependencies:   mbed FastIO FastPWM USBDevice

Fork of Pinscape_Controller by Mike R

Issue: Continuous reset loop

On linux my pinscape controller resets every 10 seconds. When disabling the reset the lights blink red-yellow. Keyboard works but joystick not.

Any hints on how to debug this issue?

2023-11-07T14:25:53.262102+01:00 MrOmen kernel: [88411.105383] usb 1-5: USB disconnect, device number 90
2023-11-07T14:25:53.934070+01:00 MrOmen kernel: [88411.773411] usb 1-5: new full-speed USB device number 91 using xhci_hcd
2023-11-07T14:25:54.086079+01:00 MrOmen kernel: [88411.926857] usb 1-5: New USB device found, idVendor=fafa, idProduct=00f7, bcdDevice= 0.0a
2023-11-07T14:25:54.086100+01:00 MrOmen kernel: [88411.926861] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2023-11-07T14:25:54.086117+01:00 MrOmen kernel: [88411.926862] usb 1-5: Product: Pinscape Controller
2023-11-07T14:25:54.086120+01:00 MrOmen kernel: [88411.926863] usb 1-5: Manufacturer: mjrnet
2023-11-07T14:25:54.086123+01:00 MrOmen kernel: [88411.926864] usb 1-5: SerialNumber: PSC0026700258804E45C008
2023-11-07T14:25:54.086123+01:00 MrOmen kernel: [88411.929217] input: mjrnet Pinscape Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:FAFA:00F7.014E/input/input347
2023-11-07T14:25:54.086123+01:00 MrOmen kernel: [88411.929271] hid-generic 0003:FAFA:00F7.014E: input,hidraw5: USB HID v1.11 Joystick [mjrnet Pinscape Controller] on usb-0000:00:14.0-5/input0
2023-11-07T14:25:54.090078+01:00 MrOmen kernel: [88411.929970] input: mjrnet Pinscape Controller Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:FAFA:00F7.014F/input/input348
2023-11-07T14:25:54.154066+01:00 MrOmen kernel: [88411.993565] hid-generic 0003:FAFA:00F7.014F: input,hidraw6: USB HID v1.11 Keyboard [mjrnet Pinscape Controller] on usb-0000:00:14.0-5/input1

1 comment:

04 Aug 2024

You need to set the option to disable automatic reboot on connection loss. The Linux HID driver doesn't automatically poll the joystick input (it only does so when an application is running that's reading the joystick), so the firmware takes this to mean that the host is no longer connected, and initiates a reboot on the device side to try to re-establish the connection. If you disable the "reboot on lost connection" option in the config tool, it will prevent the automatic reboot. The KL25Z will still think it's disconnected, so you might see the LED flashes complaining about that, but it'll keep running anyway.