Personal tools

Difference between revisions of "PCI7600G LTE module setting"

From ICOP tech wiki

Jump to: navigation, search
Line 43: Line 43:
 
'''Step 2.''' Mounting the simcom.ko driver
 
'''Step 2.''' Mounting the simcom.ko driver
  
# Unzip the driver zip file to /BSP/source/poke/recipe-core/  
+
#Unzip the SIMCOM driver zip file(https://ftp.icop.com.tw/share/dPJn913l) 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 += “simcom”
# 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 PCI7600G-SIM (Will return an ok if succeed.
  
# Plugin PCI7600G-SIM before booting up the board.
+
#Plugin PCI7600G-SIM 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 MAN 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 MAN of PCI_SIM); 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 PCI7600G-SIM, 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.

Revision as of 17:28, 23 September 2021

PCI7600G SIM Driver setting

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 simcom.ko driver

  1. Unzip the SIMCOM driver zip file(https://ftp.icop.com.tw/share/dPJn913l) to /BSP/source/poke/recipe-core/
  2. Edit BSP/source/poky/meta-poky/conf/layer.conf
  3. Add MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += “simcom”
  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 PCI7600G-SIM (Will return an ok if succeed.

  1. Plugin PCI7600G-SIM 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 MAN of PCI_SIM); 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 PCI7600G-SIM, 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.