中移 ML307A/R/C模组

ASR1602是新一代单模Cat.1 bis芯片,具有高集成度、低功耗、低成本的特点,尺寸小,仅为6.2mm x 6.6mm。
基于Cortex-R5处理器主频达到624MHz (ASR1602 614MHz),ASR1602内置了4MB Flash + 4MB pSRAM或者2MB pSRAM,还可通过外接存储器进行扩容。
ASR1602支持512bit OTP密钥,支持Security BOOT/Strap/Bonding,提供了较高的安全系数。
ASR1602更侧重于经济型市场,支持openCPU方案,减少开发复杂度和成本。

当前最具性价比的通信模组:
中移 ML307A/R/C模组

usb设备信息

usb 1-13: new high-speed USB device number 9 using xhci_hcd
 usb 1-13: New USB device found, idVendor=2ecc, idProduct=3004, bcdDevice= 0.00
 usb 1-13: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 usb 1-13: Product: Arom Usb Boot Port
 usb 1-13: Manufacturer: ASR Microelectornics
 usb 1-13: SerialNumber: arom0123456789
 cdc_acm 1-13:1.0: ttyACM0: USB ACM device
 usb 1-13: USB disconnect, device number 9
 usb 1-13: new high-speed USB device number 10 using xhci_hcd
 usb 1-13: New USB device found, idVendor=2ecc, idProduct=3012, bcdDevice= 1.00
 usb 1-13: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 usb 1-13: Product: ML307B
 usb 1-13: Manufacturer: CMIOT
 usb 1-13: SerialNumber: 200806006809080000
 rndis_host 1-13:1.0 eth0: register 'rndis_host' at usb-0000:00:14.0-13, RNDIS device, ac:0c:29:a3:9b:6d
 rndis_host 1-13:1.0 enxac0c29a39b6d: renamed from eth0

    |__ Port 013: Dev 010, If 0, Class=Wireless, Driver=rndis_host, 480M
    |__ Port 013: Dev 010, If 1, Class=CDC Data, Driver=rndis_host, 480M
    |__ Port 013: Dev 010, If 2, Class=Vendor Specific Class, Driver=[none], 480M
    |__ Port 013: Dev 010, If 3, Class=Vendor Specific Class, Driver=[none], 480M
    |__ Port 013: Dev 010, If 4, Class=Vendor Specific Class, Driver=[none], 480M

主动加载option 串口驱动

modprobe option
echo 2ecc 3012 | sudo tee /sys/bus/usb-serial/drivers/option1/new_id

就会看到驱动加载

 usbcore: registered new interface driver usbserial_generic
 usbserial: USB Serial support registered for generic
usbcore: registered new interface driver option
 usbserial: USB Serial support registered for GSM modem (1-port)

 option 1-13:1.4: GSM modem (1-port) converter detected
 usb 1-13: GSM modem (1-port) converter now attached to ttyUSB0

 option 1-13:1.3: GSM modem (1-port) converter detected
 usb 1-13: GSM modem (1-port) converter now attached to ttyUSB1

 option 1-13:1.2: GSM modem (1-port) converter detected
 usb 1-13: GSM modem (1-port) converter now attached to ttyUSB2

# lsusb -v -d 2ecc:3012

Bus 001 Device 010: ID 2ecc:3012 ASR Microelectronics ML307B
Negotiated speed: High Speed (480Mbps)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 [unknown]
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x2ecc ASR Microelectronics
  idProduct          0x3012 ML307B
  bcdDevice            1.00
  iManufacturer           1 CMIOT
  iProduct                2 ML307B
  iSerial                 3 200806006809080000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x00c4
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA

    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass        224 Wireless
      bFunctionSubClass       1 Radio Frequency
      bFunctionProtocol       3 RNDIS
      iFunction               5 Mobile RNDIS Network Adapter


    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      3 RNDIS
      iInterface              5 Mobile RNDIS Network Adapter
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 01
      ** UNRECOGNIZED:  04 24 02 00
      ** UNRECOGNIZED:  05 24 06 00 01
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              16


    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0 
      iInterface              5 Mobile RNDIS Network Adapter
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0c  EP 12 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0



    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0 
      iInterface              8 Mobile Diag Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0b  EP 11 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0



    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0 
      iInterface             11 Mobile AT Interface
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x89  EP 9 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              16
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0f  EP 15 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0



    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0 
      iInterface             11 Mobile AT Interface
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              16
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0a  EP 10 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         0 
  bMaxPacketSize0        16
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

改IMEI步骤:
0. 查看当前IMEI (此步骤用于记录修改前的IMEI)

AT+CGSN

1. 进入工厂模式

AT*PROD=1

2. 删除原来IMEI

AT*MRD_IMEI=D

3. 写入新的IMEI(以IMEI 012345678912345 为例子)

AT*MRD_IMEI=W,0,01JAN1970,012345678912345

4. 退出工厂模式

AT*PROD=0

5. 重启

AT+RESET

其他

写入mac
AT*MRD_WIFIID=W,0,01JAN1970,
写入sn
AT*MRD_SN=W,0,01JAN1970,

切换卡1/卡2
AT+SWSIM=0 / AT+SWSIM=1

参考资料:
https://github.com/huwangkeji/Asr-Tools/blob/main/README.md

picocom -b 11520 -c /dev/ttyUSB2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注