Problem with com port (Teensy 2.0 + CP2102)

Need help? Ask here and someone will help
N20
Posts: 14
Joined: Sat Aug 20, 2016 5:29 pm

Problem with com port (Teensy 2.0 + CP2102)

Post by N20 »

Laptop cannot recognize cp2102 and it seems like COM 3 port disappeared in device manager. I installed all drivers and before changing wiring in cp2102 laptop saw it as a COM3 port. But even with COM working I couldn't emulate signal - gimx showed error and quit after 5 second (but that's another problem). Right now after I changed wiring (again) laptop doesn't recognize cp2102 AT ALL. I'll post pictures of wiring. I hope somebody will help with this..





I' ve noticed that yellow cable is quite loose on the teensy side, may it affect the signal ?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by Matlo »

Moved to the support section.
Wiring looks wrong, and the header pins have to be soldered on the Teensy.
http://gimx.fr/wiki/index.php?title=DIY ... he_adapter
GIMX creator
N20
Posts: 14
Joined: Sat Aug 20, 2016 5:29 pm

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by N20 »

Thanks for moving the post and help.

So i managed to get adapter working but gimx shuts down. Here's log report :

global option -l with value `log.txt'
global option -c with value `LogitechG25_G29.xml'
controller #1: option -p with value `COM3'
now reading arguments for controller #2
status flag is set
subpos flag is set
force_updates flag is set
GIMX 5.9 x86_64
Windows 10 (or later) x64
Kernel version: 10.0 (10586)
native mode is already enabled for HID device \\?\hid#vid_046d&pid_c299#6&1352a93c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (PID=c299)
ReadFile failed: timeout expired.
can't read packet header
No controller detected.
adapter_detect failed

I've also tested cp2102 in Arduino and it works well.
Last edited by N20 on Mon Aug 22, 2016 9:10 pm, edited 1 time in total.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by Matlo »

Are the header pins soldered on the Teensy board?
GIMX creator
N20
Posts: 14
Joined: Sat Aug 20, 2016 5:29 pm

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by N20 »

Yes, they are soldered now. :)

Here's photo of usb adapter and connection.

https://s13.postimg.org/6uxg30dpj/IMG_0896.jpg
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by Matlo »

Wiring is still wrong.

GND -> GND
D2 -> TXO
D3 -> RXI
GIMX creator
N20
Posts: 14
Joined: Sat Aug 20, 2016 5:29 pm

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by N20 »

Thanks, I'll try it later today :)
N20
Posts: 14
Joined: Sat Aug 20, 2016 5:29 pm

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by N20 »

I switched the cables in their right position but gimx still shuts down. Here's the log report:

global option -l with value `log.txt'
global option -c with value `LogitechG25_G29.xml'
controller #1: option -p with value `COM3'
now reading arguments for controller #2
status flag is set
subpos flag is set
force_updates flag is set
GIMX 5.9 x86_64
Windows 10 (or later) x64
Kernel version: 10.0 (10586)
native mode is already enabled for HID device \\?\hid#vid_046d&pid_c299#6&1352a93c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (PID=c299)
src/windows/async.c:246 ReadFile failed with error: The supplied user buffer is not valid for the requested operation.


can't read packet data
No controller detected.
adapter_detect failed
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by Matlo »

Did you install the CP210x driver at the end of the GIMX installation?
GIMX creator
N20
Posts: 14
Joined: Sat Aug 20, 2016 5:29 pm

Re: Problem with com port (Teensy 2.0 + CP2102)

Post by N20 »

It worked for a while i forgot to plug the mini usb cable from the device into ps4. After 2 hours of driving converter stopped working but laptop still sees the device. Here's the log report:

global option -l with value `log.txt'
global option -c with value `LogitechG25_G29.xml'
controller #1: option -p with value `COM3'
now reading arguments for controller #2
status flag is set
subpos flag is set
force_updates flag is set
GIMX 5.9 x86_64
Windows 10 (or later) x64
Kernel version: 10.0 (10586)
native mode is already enabled for HID device \\?\hid#vid_046d&pid_c299#6&14c37c39&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (PID=c299)
ReadFile failed: timeout expired.
can't read packet header
No controller detected.
adapter_detect failed

UPDATE:

It works fine now, mini usb cable was the problem. Thank You for your help :)
Last edited by N20 on Tue Aug 23, 2016 8:46 pm, edited 1 time in total.
Post Reply