月落西山

月落西山

0个粉丝

95

问答

0

专栏

3

资料

月落西山  发布于  2019-01-09 11:16:06
采纳率 0%
95个问答
2524

hi3518有没有移植过3G/4G模块的驱动哦?

 
hi3518有没有移植过3G/4G模块的驱动哦?USB接口的4G模块,怎么看不到/dev/ttyUSB*
我来回答
回答2个
时间排序
认可量排序

lesd

0个粉丝

50

问答

0

专栏

2

资料

lesd 2019-01-09 11:17:34
认可0
一般插上就会枚举USB信号的
要不然就是 模块的 ID号这些添加不对

qn1513131564

0个粉丝

13

问答

0

专栏

3

资料

qn1513131564 2019-05-29 14:53:03
认可0
需要给4G模块厂要linux下驱动移植资料,一般需要修改内核支持4G模块,以及在driver/usb/serial目录下修改option.c里的两处。
中兴me3630Linux驱动修改
2.1 ENABLE DRIVERS AND PPP FEATURE FROM KERNEL
USB-modem drivers and PPP features may be not enabled in the kernel, so please go to kernel, do “make menuconfig” and include the following components into building:
1. Device Drivers --->
USB support --->
USB Serial Converter support --->
USB Generic Serial Driver
USB driver for GSM and CDMA modems
2. Device Drivers --->
Network device support --->
PPP (point-to-point protocol) support
PPP multilink support PPP filtering
PPP support for async serial ports
PPP support for sync tty ports
For modems with ECM or NDIS interface, such as ZM5330/ZM8620/ME3620/ME3630, including the following component additionally
3. Device Drivers --->
Network device support --->
USB Network Adapters --->
Multi-purpose USB Networking Framework
After saving the configuration, check the “.config” file, the following lines must exist, if any line doesn’t exist, it means your configuration above is not correct.

static struct usb_device_id option_ids[] = {
{ USB_DEVICE(0x19d2, 0x0117 },
{ USB_DEVICE(0x19d2, 0x0199) },
{ USB_DEVICE(0x19d2, 0x1476) },

you need to add the following code to function option_probe
printk("idVendor=%x, idProduct=%x, bInterfaceNumber =%d\r\n", serial->dev->descriptor.idVendor, serial->dev->descriptor.idProduct, serial->interface->cur_altsetting->desc. bInterfaceNumber);
if (serial->dev->descriptor.idVendor == 0x19d2 && serial->dev->descriptor.idProduct == 0x1476 && serial->interface->cur_altsetting->desc. bInterfaceNumber == 3)
return -ENODEV;
if (serial->dev->descriptor.idVendor == 0x19d2 && serial->dev->descriptor.idProduct == 0x1476 && serial->interface->cur_altsetting->desc. bInterfaceNumber == 4)
return -ENODEV;
if (serial->dev->descriptor.idVendor == 0x19d2 && serial->dev->descriptor.idProduct == 0x1509 && serial->interface->cur_altsetting->desc. bInterfaceNumber == 4)
return -ENODEV;
if (serial->dev->descriptor.idVendor == 0x19d2 && serial->dev->descriptor.idProduct == 0x1509 && serial->interface->cur_altsetting->desc. bInterfaceNumber == 5)
return -ENODEV;

重新编译内核下载,插上模块就可以识别/dev/ttyUSB*了
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区