Settings | Sign in | Sign up

There are currently 34 posts.

移遠EC200A模塊linux usb驅動包下載地址

Floor 23 巨大八爪鱼 12/25/25 11:53

要想正常使用qcserial.ko,同樣需要修改qcserial.c,否則沒法匹配上usb設備。


static const struct usb_device_id id_table[]裡面在

{USB_DEVICE(0x0AF0, 0x8120)},    /* Option GTM681W */

後面添加

{USB_DEVICE(0x2C7C, 0x6005)},


在qcprobe函數裡面找到case QCSERIAL_G2K:

if (nintf == 5 && id->idProduct == QUECTEL_EC20_PID) {

改成

if (nintf == 5 && (id->idProduct == QUECTEL_EC20_PID || id->idProduct == 0x6005)) {

然後重新編譯。


insmod usb_wwan.ko和qcserial.ko後,就會出現/dev/ttyUSB0和/dev/ttyUSB1。/dev/ttyUSB1裡面也可以正常收發AT命令。

這說明,qcserial.ko和option.ko的作用是相同的,都是在USB接口2和3上產生ttyUSB0和ttyUSB1兩個設備。

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.