Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


apu_arch_linux_huawei_mu609_minipcie

PC Engines APU - Arch Linux - Huawei MU609 miniPCIe

Configure Huawei MU609 miniPCIe

  • Install minicom.
    # pacman -S minicom
  • Add yourself to the uucp group.
  • Check to see if device is recognized.
    # lsusb |grep Huawei
    Bus 002 Device 002: ID 12d1:1573 Huawei Technologies Co., Ltd. 
    
    dmesg |grep CDC
    cdc_ether 2-1:2.0 eth3: register 'cdc_ether' at usb-0000:00:13.2-1, CDC Ethernet Device, 00:a0:c6:41:37:70
  • Determine USB tty's.
    # ls /dev |grep -i ttyusb
    ttyUSB0
    ttyUSB1 
    ttyUSB2
    ttyUSB3
    ttyUSB4
    • ttyUSB0: MODEM port: simulated using USB, for AT command interaction and establishing data connection.
    • ttyUSB1: DIAG port: simulated using USB, for DIAG (diagnostic) command interaction (mainly used to debug modules at present).
    • ttyUSB2: PCUI port: simulated using USB, for AT command interaction only.
    • ttyUSB3: GPS NMEA port: simulated using USB, sending unsolicited indications for NMEA positioning data only.
    • ttyUSB4: GPS Control port: simulated using USB, for GPS AT command interaction only.
    • eth3: ECM port: for establishing communication connection.
  • Connect to the gsm module.
    # minicom -s
  • Go to 'Serial port setup' →
    • Serial Device: /dev/ttyUSB2
    • Bps/Par/Bits: 115200 8N1
  • Go back and then to 'Modem and dialing parameter setup'
    • Clear init string and reset string.
  • Select 'Save setup as dfl'.
  • Select 'Exit'.
  • Check SIM.
    AT+CREG?
    +CME ERROR: SIM PIN required
  • If you see +CME ERROR: SIM failure check if the SIM card is inserted and the module is in mPCIe 2 slot.
  • enter SIM PIN.
    AT+CPIN="1234"
    OK
    
    ^SIMST: 1
    
    ^SRVST: 2
    
    AT+CPIN?
    +CPIN: READY
    
    OK
  • Check status operator selection. In this case; 0=automatic, 0=long alfanumeric, string, 2=current.
    AT+COPS?
    +COPS: 0,0,"simyo",2
    
    OK
  • Check network status. 0=report off, 1=registered
    AT+CREG?
    +CREG: 0,1
    
    OK
  • Query signal strength. Good signal strength here: -79 dBm (17 * 2 – 113).
    AT+CSQ
    +CSQ: 17,99
    
    OK

Install and configure gammu (optional)

# pacman -S gammu dialog
# gammu --identify
# gammu --networkinfo
# gammu --monitor 1
# echo "Testing a test." | gammu --sendsms TEXT +31623456789

sudo mkdir /var/log/gammu
sudo chown root.uucp /var/log/gammu
sudo chmod 775 /var/log/gammu

gammu-config

cat ~/.gammurc 
port = /dev/ttyUSB2
connection = at
synchronizetime = no
logfile = /var/log/gammu/gammu.log
logformat = textall

Internet connection using cdc_ether device

dmesg |grep cdc_ether
[   13.265612] cdc_ether 2-1:2.0 eth3: register 'cdc_ether' at usb-0000:00:13.2-1, CDC Ethernet Device, 00:a0:c6:41:37:70
[   13.265743] usbcore: registered new interface driver cdc_ether
[   13.705124] cdc_ether 2-1:2.0 enp0s19f2u1c2: renamed from eth3

Configure NDIS dialing, and APN:
echo "at^ndisdup=1,1,portalmmm.nl" >


at^ndisdup=1,1,"portalmmm.nl"

dhclient -v enp0s19f2u1c2

Internet connection using netctl

pacman -S ppp 
cp /etc/netctl/examples/mobile_ppp /etc/netctl/
vi  /etc/netctl/mobile_ppp
netctl start mobile_ppp

Firmware, model, status

Firmware version:
AT+GMR
AT+CGMR

Manufacturer:
AT+GMI
AT+CGMI

Model:
AT+GMM
AT+CGMM

Serial:
AT+GSN
AT+CGSN

IMEI:
AT^IMEISV?

Chip temperature (0.1 deg. C)
AT^CHIPTEMP?

apu_arch_linux_huawei_mu609_minipcie.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1