/SIM7100-7230-7250-LinuxDriver

SIM7100,SIM7230,SIM7250 USB串口驱动

Primary LanguageC

驱动安装详细步骤

  1. 把 SIM7100CE 通过 USB 插入安装了Linux的PC或者树莓派 image
  2. 执行 lsusb,查找 vid:pid 是 1e0e:9001 的USB设备 image
  3. 执行sudo rmmod usbserial命令移除usb串口设备,这时候会报错,直接忽略就行

    rmmod: ERROR: Module usbserial is in use by: option usb_wwan

  4. 编译GobiSerial.c
    $ make
    rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order
    make -C /lib/modules/6.6.31+rpt-rpi-v8/build M=/home/dy/code/SIM7100-7230-7250-LinuxDriver modules
    make[1]: Entering directory '/usr/src/linux-headers-6.6.31+rpt-rpi-v8'
    CC [M]  /home/dy/code/SIM7100-7230-7250-LinuxDriver/GobiSerial.o
    /home/dy/code/SIM7100-7230-7250-LinuxDriver/GobiSerial.c:630:12: warning: ‘GobiSuspend’ defined but not used [-Wunused-function]
    630 | static int GobiSuspend(
       |            ^~~~~~~~~~~
    MODPOST /home/dy/code/SIM7100-7230-7250-LinuxDriver/Module.symvers
    CC [M]  /home/dy/code/SIM7100-7230-7250-LinuxDriver/GobiSerial.mod.o
    LD [M]  /home/dy/code/SIM7100-7230-7250-LinuxDriver/GobiSerial.ko
    make[1]: Leaving directory '/usr/src/linux-headers-6.6.31+rpt-rpi-v8'
    
    如果能生成 GobiSerial.ko 这个文件,就表示成功编译了,忽略警告信息就行
  5. 启用驱动sudo modprobe usbserial && sudo insmod GobiSerial.ko
    $ sudo modprobe usbserial && sudo insmod GobiSerial.ko
    如果能看到6个USB串口表示驱动安装成功: image

各个串口的作用

Notes: there are 6 ports for SIM7100 modules in Linux host.

  1. /dev/ttyUSB0 : diag port for output developing messages
  2. /dev/ttyUSB1 : NMEA port for GPS NMEA data output
  3. /dev/ttyUSB2 : AT port for AT commands
  4. /dev/ttyUSB3 : Modem port for ppp-dial
  5. /dev/ttyUSB4 : audio port
  6. /dev/ttyUSB5 : Virtual Net card

SIMCOM7系列PCM情况

SIM7000x ✅

SIM7020 ❌

SIM7060G 国内没有卖的,不考虑

SIM7100E ✅ AT+CPCMREG 文档中有

SIM7500A ✅ AT+CPCMREG 文档中有

SIM7500E ✅ AT+CPCMREG 文档中有

SIM7600C ✅ AT+CPCMREG 文档中有

SIM7600E ✅ AT+CPCMREG 文档中有

SIM A7670E ✅ AT+CPCMREG 文档中有

驱动文件来源:https://simcom.ee/documents/?dir=SIM7100E/Driver/Linux

SIMCOM各系列模块的文档列表:https://simcom.ee/documents/