Personal tools

Difference between revisions of "PCI7600G LTE module setting"

From ICOP tech wiki

Jump to: navigation, search
 
Line 1: Line 1:
=PCI7600G MINI PCI-E 4G Module driver setting=
+
=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 */
+
     /* 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 simcom.ko driver
+
'''Step 2.''' Mounting the sim7600g.ko driver
  
#Unzip the SIMCOM driver zip file(https://ftp.icop.com.tw/share/dPJn913l) to /BSP/source/poke/recipe-core/
+
#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 += “simcom”
+
#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 PCI7600G-SIM (Will return an ok if succeed.
+
'''Step 3.''' Testing SIM7600G (Will return an ok if succeed.
  
#Plugin PCI7600G-SIM before booting up the board.
+
#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 PCI_SIM); If it returns +CSQ: 0~31.99 means it’s normal, and 99.99 means it’s an error.
+
#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 PCI7600G-SIM, and if the minicom shows RING means the testing passed.
+
#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

  1. Unzip the sim7600g.zip(https://ftp.icop.com.tw/share/iDBN_fy-) to /BSP/source/poke/recipe-core/
  2. Edit BSP/source/poky/meta-poky/conf/layer.conf
  3. Add MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += “sim7600g”
  4. Execute bitbake -C compile linux-imx && bitbake fsl-image-qt5-validation-imx
  5. After the command execute, you will see wwan0 from command ifconfig -a


Step 3. Testing SIM7600G (Will return an ok if succeed.

  1. Plugin SIM7600G before booting up the board.
  2. Open the terminal and enter minicom -d /dev/ttyUSB2.
  3. Enter at (Ensuring the AT testing command); it will return an ok if it’s working.
  4. 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.
  5. 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.
  6. Enter at+cops? (Checking the telecom)
  7. Enter at+cpsi? ( Checking UE system data )
  8. 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.
  9. Using a phone and dial the number the sim card you used in SIM7600G, and if the minicom shows RING means the testing passed.
  10. Open another terminal and enter echo “at\$qcrmcall=1,1” > /dev/ttyUSB3, and the minicom will return $QCRMCALL:1,V4
  11. Enter ifconfig wwan0 up
  12. Enter udhcpc -i wwan0
  13. Enter ping 8.8.8.8 -c 5 to test 4G internet.