首页 > 技术知识 > 正文

环境

linux3.10

高新兴物联ME3630-W pid:c3c

内核中已经有了usb serial的驱动 命令

echo 0x19d2 0x1476 > /sys/bus/usb-serial/drivers/option1/new_id

如下所示,就不需要去修改内核中的static const struct usb_device_id option_ids[]结构体了

# echo 0x19d2 0x1476 > /sys/bus/usb-serial/drivers/option1/new_id

[ 87.036901] option 3-1:1.0: GSM modem (1-port) converter detected

[ 87.045534] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0

[ 87.053459] option 3-1:1.1: GSM modem (1-port) converter detected

[ 87.061535] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1

[ 87.069580] option 3-1:1.2: GSM modem (1-port) converter detected

[ 87.077486] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2

猜你喜欢