You are not logged in.

#1 2012-07-03 09:06:44

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

How to poke USB IDs to kernel driver

Hi,

I have an FTDI USB to RS232 converter, but it is not detected and the driver is not loaded because the vendor uses his own vendor and device ID's. I wonder if it possible to poke the ID's to the kernel driver so that the converter is detected.

My thanks in advance.


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#2 2012-07-03 12:43:28

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,664

Re: How to poke USB IDs to kernel driver

An udev rule may solve your problem, but for that we need data.

Does lsusb show the device ?

What does dmesg show if you plug/unplug it ?

Last edited by Lone_Wolf (2012-07-03 12:44:30)


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#3 2012-07-03 14:55:15

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: How to poke USB IDs to kernel driver

Lone_Wolf wrote:

An udev rule may solve your problem, but for that we need data.

Does lsusb show the device ?

What does dmesg show if you plug/unplug it ?

Hi,

lsusb shows the device:

Bus 009 Device 002: ID 2100:9e56  

Actually it is an FTDI USB to RS232 cable for an FT857 ham radio transceiver but the maker uses his own vendor and device ID's which are unknown to the kernel. The driver would normally be ftdi_sio.
dmesg shows the following for disconnect/connect:

[  833.346668] usb 9-2: USB disconnect, device number 2
[  858.109949] usb 9-2: new full-speed USB device number 3 using uhci_hcd

Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#4 2012-07-03 15:41:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to poke USB IDs to kernel driver

Grab the kernel source and edit drivers/usb/serial/ftdi_sio_ids.h as required - vendor id 2100 is already there, you just need to add a line for the 9e56 device.

Offline

#5 2012-07-03 16:31:54

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: How to poke USB IDs to kernel driver

tomk wrote:

Grab the kernel source and edit drivers/usb/serial/ftdi_sio_ids.h as required - vendor id 2100 is already there, you just need to add a line for the 9e56 device.

Thanks, I will give it a try. Actually, I just tried an idea I found on Google, using

modprobe ftdi_sio vendor=0x2100 product=0x9e56

This produces a device /dev/ttyUSB0 which I can open through my transceiver control program, but the transceiver is not reponding.

Anyhow, thanks - we are stuck with the tricks of Windoze - only manufacturers. Wht harm will it do to be more open....they just want to sell their wares.


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#6 2012-07-03 18:51:18

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: How to poke USB IDs to kernel driver

neok wrote:
tomk wrote:

Grab the kernel source and edit drivers/usb/serial/ftdi_sio_ids.h as required - vendor id 2100 is already there, you just need to add a line for the 9e56 device.

Thanks, I will give it a try. Actually, I just tried an idea I found on Google, using

modprobe ftdi_sio vendor=0x2100 product=0x9e56

This produces a device /dev/ttyUSB0 which I can open through my transceiver control program, but the transceiver is not reponding.

Anyhow, thanks - we are stuck with the tricks of Windoze - only manufacturers. Wht harm will it do to be more open....they just want to sell their wares.

OK, I got it to work eventually as above. The transceiver itself had to be set up to match the baud rate in the control program.
My thanks for the help given here in the Arch forums.


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

Board footer

Powered by FluxBB