Difference between revisions of "PCI7600G LTE module setting"
From ICOP tech wiki
Line 1: | Line 1: | ||
− | = | + | =SIMCom SIM7600G MINI PCIE LTE Module driver setting under Yocto 2.5= |
__FORCETOC__ | __FORCETOC__ | ||
==<big>Procedure</big>== | ==<big>Procedure</big>== | ||
Line 27: | Line 27: | ||
Add the content below to option_probe<pre> | Add the content below to option_probe<pre> | ||
− | /* | + | /* SIM7600 */ |
if (serial->dev->descriptor.idVendor == SIMCOM_SIM7600_VID && | if (serial->dev->descriptor.idVendor == SIMCOM_SIM7600_VID && | ||
serial->dev->descriptor.idProduct == SIMCOM_SIM7600_PID && | serial->dev->descriptor.idProduct == SIMCOM_SIM7600_PID && | ||
Line 41: | Line 41: | ||
− | '''Step 2.''' Mounting the | + | '''Step 2.''' Mounting the sim7600g.ko driver |
− | #Unzip the | + | #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 | #Edit BSP/source/poky/meta-poky/conf/layer.conf | ||
− | #Add MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += | + | #Add MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += “sim7600g” |
#Execute bitbake -C compile linux-imx && bitbake fsl-image-qt5-validation-imx | #Execute bitbake -C compile linux-imx && bitbake fsl-image-qt5-validation-imx | ||
#After the command execute, you will see wwan0 from command ifconfig -a | #After the command execute, you will see wwan0 from command ifconfig -a | ||
− | '''Step 3.''' Testing | + | '''Step 3.''' Testing SIM7600G (Will return an ok if succeed. |
− | #Plugin | + | #Plugin SIM7600G before booting up the board. |
#Open the terminal and enter minicom -d /dev/ttyUSB2. | #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 (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+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 | + | #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+cops? (Checking the telecom) | ||
#Enter at+cpsi? ( Checking UE system data ) | #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. | #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 | + | #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 | #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 ifconfig wwan0 up | ||
#Enter udhcpc -i wwan0 | #Enter udhcpc -i wwan0 | ||
#Enter ping 8.8.8.8 -c 5 to test 4G internet. | #Enter ping 8.8.8.8 -c 5 to test 4G internet. |
Latest revision as of 13:01, 30 March 2022
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.