victronenergy / venus

Victron Energy Unix/Linux OS
https://github.com/victronenergy/venus/wiki
551 stars 69 forks source link

Victron rs485 usb dongle not recognized anymore #1185

Closed legraml closed 7 months ago

legraml commented 7 months ago

I have two identical originial VE rs485 usb dongles, both labeled "USB-RS485-WE" on ttyUSB0 and ttyUSB1, ttyUSB0 is connected to EM24, ttyUSB1 is connected to ET112. They were both detected and running until some days ago when I made an upgrade to Cerbo GX latest firmware. Since then the dongle on ttypUSB0 is not detected anymore. When I plug it in, logs show:

Dec 14 11:44:58 einstein user.info kernel: [ 386.958913] usb 4-1: new full-speed USB device number 4 using ohci-platform Dec 14 11:44:59 einstein user.info kernel: [ 387.245907] usb 4-1: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00 Dec 14 11:44:59 einstein user.info kernel: [ 387.254195] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Dec 14 11:44:59 einstein user.info kernel: [ 387.261429] usb 4-1: Product: USB <-> Serial Dec 14 11:44:59 einstein user.info kernel: [ 387.265740] usb 4-1: Manufacturer: FTDI Dec 14 11:44:59 einstein user.info kernel: [ 387.273241] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected Dec 14 11:44:59 einstein user.info kernel: [ 387.280192] usb 4-1: Detected FT232RL Dec 14 11:44:59 einstein user.info kernel: [ 387.289525] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0

product is not FT232R USB UART but USB <-> Serial serial number is not shown.

When I plug this dongle into my PC and fire up FT_Prog, the dongle shows serial number and also the correct product id. The dongle also shows the EM24 in UCS 7 software and I can read on-line data coming in.

Compared to the dongle on ttyUSB1, they are idential besides having different serial numbers.

I really need help!

legraml commented 7 months ago

Status update:

I could solve the problem by renaming the product id from "FT232R USB UART" to "USB-RS485_Cable" by using FT-Programmer. It was detected and started working immediately after plugging into the Cerbo GX.

Strange enough, the other dongle had exactly the same settings and still keeps running like a charm. So I don't really understand the problem.

mpvader commented 7 months ago

Hey @legraml thank you for reporting and that is really strange. I'll remember it and for now consider it a one off / case closed.

legraml commented 6 months ago

Unfortunately, this issue just appeared again after updating to the latest firmware for Cerbo GX. This time "USB-RS485_Cable" is not detected properly and the product type is listed again as: USB <-> Serial and not FT232R USB UART.