This article explains the application of transplanting Huawei-ME909S-4G module to the domestic A40i development board . This article is mainly applicable to the Feiling OKA40i platform Linux 3.10.65 operating system. Other arm platforms can also be used as references, but there will be differences between different platforms. Please modify it yourself to adapt to your own use. The main purpose of writing this article is to assist customers in accelerating the development of products. Due to limited level, no guarantee of integrity, reliability, etc. is provided. After the software version is updated, some location names and other contents may be updated in time. Please refer to the modification method.
1. Check the kernel configuration file: arch/arm/configs/sun8iw11p1smp_oka40i_c_defconfig
C ONFIG_USB_SERIAL_OPTION=y
CONFIG_USB_SERIAL_WWAN=y
Recompile the image and burn it.
2. Check whether nodes are generated: (Note: First, make sure that the Huawei -ME909S-4G module, antenna and
SIM card)
#ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3 /dev/ttyUSB4
If the node appears, the 4G module is correctly identified.
3. Enter the command dial
#echo "ATE0" > /dev/ttyUSB2
#cat /dev/ttyUSB2&
# echo "ATE0" > /dev/ttyUSB2
# cat /dev/ttyUSB2&
^RSSI: 27
^HCSQ: "LTE",63,56,66,20
OK
#echo "AT^LEDCTRL=1"> /dev/ttyUSB2 turn on the status light
#echo "AT^NDISDUP=1,1,\"cmnet\""> /dev/ttyUSB2
(Note: cmnet is China Mobile APN , 3gnet is China Unicom APN, ctnet is China Telecom APN ), please connect
Select the dialing instruction according to the card you actually use.
The serial port prints the following information:
OK
^NDISSTAT: 1,,,"IPV4"
^NDISSTAT: 1,,,"IPV6"
Enter the following command:
#ifconfig eth0 down
#ifconfig eth1 down
#ifconfig usb0 up
#udhcpc -iusb0
The debug serial port outputs the following information:
You can now access the network.
4. Internet test
Enter the command: # ping www.forlinx.com
5. Disconnect from the Internet
echo "AT^NDISDUP=1,0"> /dev/ttyUSB2 disconnects from the network
6. Reset
echo "AT^RESET" > /dev/ttyUSB2