KS3030 Keyestudio Raspberry Pi SIM7600X 4G Expansion Board

Download Resource : Resource

1. Product Introduction

This board is based on the design of Raspberry Pi 40PIN GPIO interface, compatible with Raspberry Pi series main board and Arduino.

  • Support dial-up Internet access, telephone, SMS, TCP, UDP, DTMF, HTTP, and FTP.

  • Support GPS, BDS, Glonass and LBS base station positioning.

  • Onboard USB interface, suitable for testing AT commands and obtaining GPS positioning information.

  • Onboard CP2102 USB to UART chip, convenient for serial port debugging.

  • Lead-out module UART control interface, facilitating connection to main control boards like Arduino and STM32.

  • Onboard SIM card slot, suitable for 1.8V or 3V SIM card.

  • Onboard TF card slot, capable to store files, text messages and other data.

  • Onboard audio interface and audio decoding chip, applicable to voice operations such as phone calls.

  • Onboard 2 LED indicators, convenient for operation status supervision of modules.

  • Onboard level conversion circuit, able to convert 3.3V or 5V working level to 1.8V via jumper cap.

  • Applicable baud rate range: 300bps ~ 4Mbps (115200bps as default).

  • Able to automatically identify baud rate (9600bps ~ 115200bps).

2. Parameters

  • Product Model Number : SIM7600G-H

  • Working Frequency

Name

LTE Cat-4/LTE Cat-1

LTE-TDD: B34 / B38 / B39 / B40 / B41
LTE-FDD:B1 / B2 / B3 / B4 / B5 / B7 / B8 / B12 / B13 / B18 / B19 / B20 / B25 / B26 / B28 / B66

3G

UMTS / HSDPA / HSPA+
B1 / B2 / B4 / B5 / B6 / B8 / B19

2G

GSM / GPRS / EDGE
850 / 900 / 1800 / 1900MHz

GNSS

GPS / Beidou / GLONASS / GALILEO / QZSS

  • Data Transmission

Name

LTE Cat-4

150Mbps(DL) / 50Mbps(UL)

LTE Cat-1

Without Support

3G (HSPA+)

42Mbps(DL) / 5.76Mbps(UL)

2G (EDGE)

236.8Kbps(DL) / 236.8Kbps(UL)

2G (GPRS)

85.6Kbps(DL) / 85.6Kbps(UL)

  • Software Features

Name

Internet Protocol

TCP / IP / IPV4 / IPV6 / Multi-PDP / FTP / FTPS / HTTP / HTTPS / DNS

Internet Access

PPP / NDIS / RNDIS

USB Drive

Windows XP/7/8/10, Linux (Raspberry Pi Raspbian System Drive Free)

  • Hardware Interface

Name

SIM Card Slot

Compatible with 1.8V and 3V SIM card

UART Interface

Send and receive AT command via serial port, compatible with 3.3V and 5V working level

USB Interface

Suitable for testing AT commands, obtaining GPS positioning information, and updating firmwares

USB to UART

Applicable to serial port debugging and Raspberry Pi login

Audio Interface

applicable to voice operations such as phone calls

TF Card Slot

Support

Antenna

LTE Main Antenna + LTE Diversity Antenna +

Interface

GNSS Antenna

  • Application Scenario

Name

Applicable Regions

Worldwide used

Typical Application

Medical and health, smart payment, public network intercom, environmental and energy monitoring, fleet management, intellectual industry and agriculture.

3. Resource Introduction

4. Pins Illustration

5. Experiment

5.1 Hardware Preparation

1.Components Needed

Micro USB cable, LTE antenna, GPS antenna, 4G SIM card (China Mobile, China Unicom or China Telecom, in service with GPRS opened), Headphone with microphone (optional), TF card (optional).

2.Connection Diagram

First of all, please keep the power off and install an activated 4G SIM card, TF card (optional) with headphone(optional) plugged in, and then connect the USB cable to your computer.

3.Power on/off illustration

  1. Default (power on automatically)

  2. Take off the jumper cap (power on manually)

  3. Jump to D6 pin (Raspberry Pi D6 pin controls power on/off)

    • Manual switch: power on/off is controlled via “PWRKEY” or “Raspberry Pi D6 pin”.

    • “PWRKEY”control: press PWRKEY about 1s and wait for 10s. When NET light starts flashing once every second, the module begins working. If you want to shut it down, press and hold the PWRKEY for 3~5s till NET light off.

    • “Raspberry Pi pin D6” control: upload code to control the D6 pin to output high/low power level to control power on/off.

Power on automatically: this module automatically powers on after connected to the device and will keep this status unless turning off the RF or entering airplane mode to reduce power consumption.

4.Airplane Mode Illustration

Airplane mode is not enabled by default.

If you want control airplane mode through Raspberry Pi pin, place jumper cap to airplane and D4.

5.NET Light Working Status Illustration

NET Light Status

Module Working Status

Always light on

Looking for network or calling

200ms on/ 200ms off

Data connection established

800ms on/ 800ms off

Net registered

Light off

Power off or sleep

5.2 Software Condition

Here we take Windows 10 operation system as an example, and others are for reference only.

1.Driver Installation

①Wire up SIM7600X 4G expansion board as previous hardware diagram and connect this board to computer via USB cable.

Please make sure that SIM7600X 4G expansion board is powered on (refer to above for power on/off).

② Unzip the drive file (SIMCOM_Windows_USB_Drivers_V1.0.2.zip), left mouse button double click exe drive file –> choose an installation path –> NEXT –> wait for installation complete –> restart your computer –> complete the driver installation.

③ Install all recognized devices according to the above, and then open the device manager. The driver is installed as follow:

2.Commonly Used Command

Command

Description

Output

AT

AT test command

OK

ATE

ATE1 set echoATE0 close echo

OK

AT+CGMI

Inquire for module maker

OK

AT+CGMM

Inquire for module number

OK

AT+CGSN

Inquire for product serial number

OK

AT+CSUB

Inquire for module version and chip

OK

AT+CGMR

Inquire for firmware version serial number

OK

AT+IPREX

Set module hardware serial port baud rate

+IPREX:
OK

AT+CRESET

Reset module

OK

AT+CSQ

Inquire for network signal quality and output signal value

+CSQ: 17,99
OK

AT+CPIN?

Inquire for SIM card status and output READY(SIM card can be recognized normally)

+CPIN: READY

AT+COPS?

Inquire for current carrier, output carrier information after normal networking

+COPS:
OK

AT+CREG?

Inquire for network registration status

+CREG:
OK

AT+CPSI?

Inquire for UE system information

AT+CNMP?

Network mode selection command:
2:Automatic
13:GSM only

OK

38:LTE only
48 : Any modes but LTE
… …

3.AT Command Receive and Send Test

① Open device manager and find corresponding port number of AT Port.

② Unzip fileand open sscom app; then choose HS-USB AT port and baud rate 11520, and tick “Enter for a new line”. Click “EXT” and pull out the preset AT command; and you had better open the serial port to send corresponding AT command for testing.

The screenshot of the test is shown below:

6. TF Card Debugging

1.Insert the TF card (press to pop-up) when power off; follow the normal boot steps and select the port number:

2.Choose TF card directory as current directory

Command

Function

AT+FSCD=D:

Choose TF card path

AT+FSLS

Check sub-directory

3.Create new folder and file content in TF card; command to set MyDir folder in the root directory and create a t1.txt writing “test content” in this folder.

AT+CFTRANRX="D:/MyDir/t1.txt",12        //file name
>test content                              //content
OK

4.Open TF card file

AT+CFTRANTX="D:/MyDir/t1.txt"
+CFTRANTX: DATA,012
test content
+CFTRANTX:0
ok

7. GPS Positioning Presentation

Insert GPS antenna and place the receiver outdoor (Unable in rainy weather), and wait for about 1 minute to receive positioning signal after power on.

AT Test Command

Command

Function

AT+CGPS=1

Open GPS

AT+CGPSINFO

Print GPS information to serial port

AT+CGPS=0

Close GPS

SSCOM Software Test Screenshot

8. Text Massage Receiving and Sending

8.1 Send English Text Massage

① Install SIM phone card and LTE antenna, and connect the USB interface to your computer with USB cable to power on this module.

② Observe the indicator light, the normal state is that PWR indicator light always light on and NET is flashing.

③ Set local SMS center (none necessary because SMS center of phone card is already set.)

④ AT+CSCA=“+8613500755500”+ Enter, output OK.

Note: SMS service tel of China Mobile is +861380xxxx500, in which xxxx is your local long-distance call area number. SMS centers may vary from place to place, so please Baidu or dial customer service for details. This SMS center belongs to Shenzhen (0755).

⑤ AT+CMGF=1: set SMS mode as TEXT.

⑥ AT+CMGS=“phone number” SEND, set receiver’s telephone number and output “>”, and then input content such as “Test!”. Don’t press “Enter” at the end.

⑦ Send massage 1A in hexadecimal format after editing the SMS (1A is “CTRL+Z” value, applicable to order module to send, and send 1B/“ESC” to cancel this order).

⑧ After successfully sending, module outputs “ +CMGS:xx ” for you to confirm the sending is successful.

As follow:

8.2 Receive English Text Massage

① Send “This is a receive test for SIM7600X!”from phone to test module.

② The serial port report massage automatically when receiving it. “SM”, 20 means that 20 massages exist in SM, the 20th of which is the massage just sent.

③ Read massage: AT+CMGR=20 to read 20th massage (AT+CMGL=“ALL” means “read all massages”)

④ Delete massage: AT+CMGD=20

⑤ Use Unicode Conversion Software to convert the displayed massage into text via code converter

8.3 Send Chinese Text Massage

① Set sending massage parameters

AT+CMGF=1

Set text mode

AT+CSCS=”UCS2”

Set text massage as UCS code set

AT+CSMP=17,167,2,25

Set text mode parameters

AT+CMGS=“XXXXXXXXXXX”

Set UCS of receiver’s telephone number

② Wait the output “>”, and directly input Chinese Unicode value converted by the code converter after “>”. Note: If you directly copy and paste Chinese Unicode value after “>”, the content of sending massage may displays nothing, so please manually input this code. Don’t press “Enter”when Unicode input is done, but send massage 1A in hexadecimal format (or ctrl+z to send massage). The massage is sent successfully as follow:

8.4 Receive Chinese Text Massage

① Set massage receive parameters first:

AT+CMGF=1

Set text display

AT+CSCS=“GSM”

Set GSM code set

AT+CNMI=2,1

Set a new massage reminder

②The serial port report massage automatically after receiving it. For example, read the returned 21st massage as shown below:

AT+CMGR=21 //read 21st massage

③ Convert the massage into Chinese in software:

9. Audio Phone Calls

9.1 Dialing

① Referring to Chapter Hardware Preparation, connect the LTE antenna, SIM card (with activated telephone function) and headphone with microphone, and then the module will power on.

② Commonly used command when dialing:

AT+CNUM

Inquire for local number (not supported in all SIM card)

+CNUMOK

AT+CSDVC

AT+CSDVC=1:shift to headphoneAT+CSDVC=3:shift to speaker

OK

AT+CLVL=?

Inquire for volume range

OK

AT+CLVL=2

Set volume as 2

OK

ATD<phone_number>;

ATD10086; : dial 10086, the service tel of China Mobile

OK

AT+CHUP

Hang up the call

OK

AT+CLIP=1

Set caller ID

OK

ATA

Answer the call

OK

③ Detailed operation as follow:

Note: tick “ENTER for a new line” when using SSCOM serial port to receive and send AT command.

9.2 Audio Output Mode and Volume Adjustment

AT+CSDVC=1

Shift to headphone

AT+CSDVC=3

Shift to speaker

AT+CSDVC=?

Inquire for volume range and output +CLVN:(0-5)//: adjustable volume 0~5

AT+CLVL=2

Set the volume as 2

9.3 Answering Calls

9.4 Audio Parameter Debugging

AT+CACDBFN=? // Recommend to refer to setting this set of parameters
OK

① Module power-on initialization stage. Before dialing, increase as follow:

AT^PWRCTL=0,1,3       // Improvement TDD noise effect
OK

② During the establishment of voice call

VOICE CALL:BEGIN     // Command the module to establish a call, improve the call quality. 
AT+CECM=1          // Echo suppression processing
AT+CECH=0x500    // Improve the voice quality on the mobile phone
OK

③ Commonly used command when dialing:

AT+CNUM

Inquire for local number (not supported in all SIM card)

ATD < phone number> ;

ATD10086; dial 10086, the service tel of China Mobile

AT+CLIP=1

Set Caller ID

10. Raspberry Pi

10.1 Hardware Connection

Superimpose SIM7600X 4G expansion board on Raspberry Pi GPIO pin, compatible with all versions of Raspberry Pi. The connection between Raspberry Pi pins and module pins is shown below:

10.2 Raspberry Pi Initialization

In order to make sure SIM7600X 4G HAT will normally work after accessing to Raspberry Pi, power level output of some Raspberry Pi pins need to be initialized. Details as follows:

① Unzip file,and copy SIM7600X in Raspberry file to /home/pi in Raspberry Pi system.

Enter Raspberry Pi system terminal and set boot initialization script execution command:

cd SIM7600X
sudo nano /etc/rc.local

Add before exit 0 (as shown in the figure below):

sh /home/pi/SIM7600X/sim7600_4G_hat_init

10.3 Raspberry Pi Serial Port Configuration

Raspberry Pi serial port is used for terminal debugging by default, so you need to modify Raspberry Pi settings if using this port. Execute the following command to enter the Raspberry Pi configuration:

sudo raspi-config

Select Interfacing Options ->Serial ->no -> yes to close serial port debugging function.

Open /boot/config.txt, and find the following configuration statement to enable the serial port, if not, please add it at the end of file:

enable_uart=1

Restart the system to take effect:

sudo reboot

10.4 Raspberry Pi minicom Serial Port Debugging

① Install minicom,which is a serial port debugging tool on linux platform:

sudo apt-get install minicom

② Command minicom -D /dev/ttyS0 (ttyS0 is the serial port of Raspberry Pi 3B/3B+/4B)

Baud rate is 115200 by default.

Raspberry Pi 2B/zero users serial device number is ttyAMA0, Raspberry Pi 3B/3B+/4B serial device number is ttyS0.

③ Take the AT synchronization test as an example and send relevant commands, as follow:

Minicom allows to enter setup mode by pressing Ctrl+A and Z in sequence, and select X to exit.

④ Enter bcm2835 directory to compile and install the BCM2835 library:

cd SIM7600X/bcm2835
chmod +x configure && ./configure && sudo make && sudo make install

⑤ Enter the corresponding instance directory to compile and run the program. The relevant instructions are as follows:

(Take PhoneCall program as an example)

cd SIM7600X/PhoneCall
sudo make clean       //Clear the original executable file
sudo make             //Recompile
sudo ./PhoneCall       //operate the program

⑥PHONECALL Program

⑦SMS Receiving and Sending Program

⑧GPS Positioning Program

⑨TCP Network Communication Program

⑩FTP Download and Upload Program

11. Arduino Program

11.1 Hardware Connection

Connect hardware to Arduino UNO development board:

SIM7600X 4G HAT

Arduino UNO

5V

5V

GND

GND

TXD

0 (RX)

RXD

1 (TX)

PWR

2

11.2 Example Programs

Open Arduino in file SIM7600X-4G:

①PHONECALL program

②SMS receiving and sending program

③GPS positioning program

④TCP network communication program

⑤FTP download and upload program