PCI7600G LTE module setting
From ICOP tech wiki
SIMCom SIM7600G MINI PCIE LTE Module driver setting under Yocto 2.5
Procedure
Step 1. Installing USB serial driver
Essential Yocto Project host packages:
- < > USB Serial Converter Support --- > - [ ] USB Generic Serial Driver - < > USB driver for GSM and CDMA modems + <*> USB Serial Converter Support --- > + [*] USB Generic Serial Driver + <*> USB driver for GSM and CDMA modems
Revise the content in kernel/drivers/usb/serial/option.c
/* SIM7600 */ #define SIMCOM_SIM7600_VID 0x1E0E #define SIMCOM_SIM7600_PID 0x9001
Add the content below to option-ids list
{ USB_DEVICE(SIMCOM_SIM7600_VID, SIMCOM_SIM7600_PID)}, /*SIM7600 */
Add the content below to option_probe
/* SIM7600 */ if (serial->dev->descriptor.idVendor == SIMCOM_SIM7600_VID && serial->dev->descriptor.idProduct == SIMCOM_SIM7600_PID && serial->interface->cur_altsetting->desc.bInterfaceNumber == 5 ) return -ENODEV;
Execute the command below and there will have 5 different devices:
ttyUSB0 ttyUSB1 ttyUSB2 ttyUSB3 ttyUSB4
-C compile linux-imx && bitbake fsl-image-qt5-validation-imx
Step 2. Mounting the sim7600g.ko driver
- Unzip the sim7600g.zip(https://ftp.icop.com.tw/share/iDBN_fy-) to /BSP/source/poke/recipe-core/
- Edit BSP/source/poky/meta-poky/conf/layer.conf
- Add MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += “sim7600g”
- Execute bitbake -C compile linux-imx && bitbake fsl-image-qt5-validation-imx
- After the command execute, you will see wwan0 from command ifconfig -a
Step 3. Testing SIM7600G (Will return an ok if succeed.
- Plugin SIM7600G before booting up the board.
- Open the terminal and enter minicom -d /dev/ttyUSB2.
- Enter at (Ensuring the AT testing command); it will return an ok if it’s working.
- Enter at+cpin? (Checking the status of the SIM card); it will return a “READY” if it’s working, and if return +CME ERROR: SIM not inserted means the SIM card is not plugged in.
- Enter at+csq (Checking the strength of the signal, and the antenna should be installed on the MAIN of SIM7600G); If it returns +CSQ: 0~31.99 means it’s normal, and 99.99 means it’s an error.
- Enter at+cops? (Checking the telecom)
- Enter at+cpsi? ( Checking UE system data )
- Enter at+cmgs=“+8869xxxxxxxx”(Phone number), and it will return >; enter some content like “testing” and press ctrl+z to send it out. You will receive the message on your phone.
- Using a phone and dial the number the sim card you used in SIM7600G, and if the minicom shows RING means the testing passed.
- Open another terminal and enter echo “at\$qcrmcall=1,1” > /dev/ttyUSB3, and the minicom will return $QCRMCALL:1,V4
- Enter ifconfig wwan0 up
- Enter udhcpc -i wwan0
- Enter ping 8.8.8.8 -c 5 to test 4G internet.