Arduino USB2Serial Issue?

Need help? Ask here and someone will help
Post Reply
Moudi
Posts: 3
Joined: Mon Dec 19, 2016 5:53 pm

Arduino USB2Serial Issue?

Post by Moudi »

Hi There,

i want to use my old LT Driving Force GT Wheel with the PS4.

At start i get the following output:

Code: Select all

global option -l with value `log.txt'
global option -c with value `LogitechDrivingForceGT_G29.xml'
controller #1: option -p with value `/dev/ttyACM0'
now reading arguments for controller #2
status flag is set
subpos flag is set
force_updates flag is set
GIMX 6.3 ARMv6
Raspbian GNU/Linux 8.0 (jessie)
Linux 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 unknown
Bus 001 Device 007: ID 046d:c29a Logitech, Inc. 
Bus 001 Device 005: ID 2a03:003b  
Bus 001 Device 010: ID 054c:09cc Sony Corp. 
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
        |__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 10, If 0, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 3: Dev 10, If 1, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 3: Dev 10, If 2, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 3: Dev 10, If 3, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 5, If 0, Class=Communications, Driver=cdc_acm, 12M
        |__ Port 4: Dev 5, If 1, Class=CDC Data, Driver=cdc_acm, 12M
        |__ Port 5: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M
USB adapter detected, controller type is: G29 PS4.
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x25
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x25
found pass-through device 0x054c:0x09cc
using default refresh period: 5.00ms
native mode is already enabled for HID device 01:01:05:00:00 (PID=c29a)
macros are not available for: joystick Sony Computer Entertainment Wireless Controller (0)
Warning: can't open macro directory /home/pi//.gimx//macros/
0 1482163090.286486
0 1482163098.435267, wheel (-405), PS (255)
0 1482163098.625170, wheel (-405)
0 1482163100.015236, wheel (-405), cross (255)
What does the "unhandeld descriptor type"-message indicate?

However, the emualtion seems to work but only for a limited amount of time. :roll: After a while (seconds to minutes, in-game only a few seconds) no input is recognized anymore. No error messages neither on PS4 nor on GIMX. If i restart GIMX no adapter is found. I can restore it by detaching/reataching the adapter from/to the PS4 and restarting GIMX. So i guess the adapter is the source of the problem.

I made my adapter with an Arduino Leonardo Board and a Arduino USB2serial Adapter.

https://www.arduino.cc/en/Main/USBSerial Might this adapter be the source of the issue? Has anyone some experience with it? It uses an Atmega16u2 controller. On the other hand, i do not have to reset this part to get everything running again.

Sometimes it get the following error messages on GIMX, but it continues to work:

Code: Select all

0 1482171652.252177, wheel (-602), gas (40316)
0 1482171652.267078, wheel (-618), gas (40316)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
0 1482171652.277150, wheel (-634), gas (40316)
libusb_transfer failed with status LIBUSB_TRANSFER_TIMED_OUT (endpoint=0x01)
0 1482171652.297070, wheel (-654), gas (40316)
0 1482171652.327161, wheel (-670), gas (40316)
libusb_transfer failed with status LIBUSB_TRANSFER_ERROR (endpoint=0x81)
0 1482171652.382206, wheel (-686), gas (40316)
0 1482171652.622206, wheel (-670), gas (40316)
0 1482171652.672207, wheel (-654), gas (40316)
I tested this on both Win10 and a Raspi3. Same problem :cry: .

Any suggestions are welcome.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Arduino USB2Serial Issue?

Post by Matlo »

GIMX creator
Moudi
Posts: 3
Joined: Mon Dec 19, 2016 5:53 pm

Re: Arduino USB2Serial Issue?

Post by Moudi »

Hi,

yes i did, everything seems to be fine. Although in the Windows Device Manager i can set the adapter to max. 128000Bps.
Post Reply