Template: Dail-up Internet

From Waveshare Wiki
Jump to: navigation, search

Dailing up

PC Windows

  • Usually, when we use the Windows 10 operating system, make sure that the hardware and software drivers are installed. After the module is powered on, the PWR light is on normally, the NET light is flashing normally, and it will automatically connect to the Internet. If the Internet cannot be automatically connected, we can also use NDIS or PPPD to connect to the Internet

NDIS

Enter.png

The steps for Windows NDIS dialing are as follows:
1. Open the SIM7600 AT port, and send the command (if using SSCOM to generate AT command, you must check "Enter")

AT$QCRMCALL=1,1 //must press "Enter"

2. At this point, the NDIS dialing takes effect, and the computer can connect to the network.

PPPD

Raspbian

Sim7600CE-14.png
  1. Insert the module into the Raspberry Pi, and connect the USB interface to the USB port of the Raspberry Pi, turn it on, and the hardware is as shown below:
  2. Refer to "Raspberry Pi initialization settings" below, The Raspberry Pi does the initial setup.
  3. For dial-up Internet access, refer to the following operation video (for dial-up Internet access, it is recommended to use a USB interface connection, which is faster):

Raspberry Pi RNDIS dial-up Internet access

NDIS dial-up and self-starting

NDIS Dial-Up

PPPD dial-up

  • PPPD dial-up
  • After dialing up the Internet, if the DNS cannot be resolved and the Internet cannot be accessed, you can add the command:
route add -net 0.0.0.0 ppp0

GNSS

GNSS Position

  • Plug in the GPS antenna, and place the receiver in an open space (note that it cannot be tested in rainy weather). It takes about 1 minute to receive the positioning signal after power-on;

GNSS Position.png

  • AT Command
AT+CGPS=1 //Open GPS
AT+CGPSINFO //Print GPS information to serial port
AT+CGPS=0 //close GPS
  • SSCOM Software Test:

Sscom test.png

TCP/IP Network Data

GPRS debugging requires a SIM card with GPRS networking function enabled
We takes accessing a mobile SIM card as an example:
Correctly install the mobile phone card (the GPRS networking function must be enabled), the GSM antenna, and connect the USB cable to the computer; Press the PWR key to start the module and wait for more than ten seconds;
Observe whether the indicator light is normal, the PWR indicator is always on, and the NET indicator is flashing;

Set up a local computer virtual server

The virtual server defines the mapping relationship between the WAN service port and the LAN network server. All access to the WAN service port will be relocated to the LAN network server specified by the IP address. (Please refer to your router's corresponding manufacturer's manual) Use a browser to log in to the router management interface (please refer to your router manual for the specific address)
Set the port number: 2317 (it does not conflict with the existing port number. In this example, it is set to 2317)
Set the intranet IP of the computer (the IP obtained by the computer in the local area network can be run CMD on the local machine, enter the command line prompt, enter ipconfig to view the IPv4 address, the intranet IP of the computer in this example is 192.168.1.168), as shown in the following figure :
LOCAL SERVER.png

Set up GPRS

AT+CGDCONT=1,"IP","CMNET" //Set APN
AT+CSQ //Query the network signal quality, the first parameter is the maximum network signal quality is 31, the larger the value, the stronger the network signal
AT+CREG? //Query the network registration status, where the second parameter is 1, it means the registration has been successful
AT+CIPMODE=1 //Set TCP/IP mode
AT+CSOCKSETPN=1 //Select TCP/IP application mode
AT+CIPMODE=0 //Select TCP/IP application mode
AT+NETOPEN //Open mode
AT+CIPOPEN=0,"TCP","113.81.233.65",2317 //Set TCP, IP and port number to establish TCP/IP connection
AT+CIPSEND=0,9, //To specify to send 9 characters of data, return > to start sending 9 characters of content
AT+CIPCLOSE=0, //Close the TCP connection
AT+NETCLOSE, //Close the network

The operation steps are shown in the following figure:
Operate.png

TF Card Debugging

Tfcard.png

1. Insert the TF card when the power is off (press the pop-up), follow the normal boot steps, and select the port number:
2. Select the TF card directory as the current directory

AT+FSCD=D: //Select TF card path
+FSCD: D:/
OK
AT+FSLS //View subdirectories
+FSLS: SUBDIRECTORIES:
overlays
MyDir
System Volume Information
...
...
OK

Tfcard2.png
3.Create a folder with content on the TF card. Use the statement to set the MyDir folder in the root directory and create a t1.txt file in the folder, and write the content test content at the same time

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

Tfcard3.png
4.Open TF Card
Tfcard4.png
Tfcard5.png
For more information, please refer to SIM7600X AT Commands

Phone Call

Dail

  • Refer to the "Hardware Configuration" chapter to connect the LTE antenna, SIM card (the phone function must be enabled) and the headset cable with microphone, and the module is turned on.
  • Common commands for making calls:
AT+CNUM Query the phone number (not all SIM cards support this command) +CNUM
OK
AT+CSDVC AT+CSDVC=1: switch to headphone output
AT+CSDVC=3: switch to speaker output
OK
AT+CLVL=? Query volume range OK
AT+CLVL=2 Set volume to 2 OK
ATD<phone_number>; ATD10086; : Dial the customer service number of Mobile 10086 OK
AT+CHUP hang up OK
AT+CLIP=1 Set Caller ID OK
ATA Answer the call OK
  • The detailed operation screenshots are as follows:

Enter3.png
【Note】: When using the SSCOM serial port assistant to send and receive AT commands, you must check "Enter"

Voice output mode and volume adjustment

AT+CSDVC=1 //Switch to headset
AT+CSDVC =3 //Switch to speaker
AT+CLVL =? //Query the volume range, return +CLVL: (0-5) //Indicates that the volume is adjustable from 0 to 5
AT+CLVL=2 //Set the volume to 2, return OK

Answer the call

Incoming call serial display: RING
send "ATA" // answer the call
Send "AT+CHUP" //hang up

Audio parameter debugging

AT+CACDBFN=?
+CACDBFN: (Handset_cal.acdb,Handset_tianmai.acdb) // It is recommended to consider setting this set of parameters
OK

A. In the initialization stage of the module startup, before making a call, add the following

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

B. The module is in the process of establishing a voice call

VOICE CALL:BEGIN // The module call is established and executed to improve the call effect
AT+CECM=1 //Echo suppression processing
OK
AT+CECH=0x500 //Improve the volume effect of the mobile phone
OK

SMS sending and receiving

Send English SMS

1. Install the SIM card and LTE antenna, connect the module's USB interface to the computer with a USB cable, and turn on the module; 2. Observe whether the indicator light is normal, the PWR indicator is always on, and the NET indicator is flashing;
3. Set the local SMS center: AT+CSCA="+8613800755500"+Enter, return OK.
4. AT+CMGF=1: Set the SMS mode to TEXT;
5. AT+CMGS=" phone number "<Enter>, set the recipient's mobile phone number, and then return: ">", send the desired content, such as "Send message test!", no need to enter at the end, after editing the text message Send 1A to send information in hexadecimal format (1A is the key value of "CTRL+Z", which is used to tell the module to execute the sending operation, or 1B or "ESC" to cancel the operation), after successful sending, the module returns + CMGS: 15 Confirmation that the transmission was successful. As shown below.
English SMS.png

Receive English SMS

Eceive English SMS.png

1. Send a message on the phone: "This is a receive test for SIM7600X!" to the test module

2. When receiving the information, the serial port will report the information, "SM", 20, which means there are 20 pieces of information in the SM, and the message just sent is the 20th piece of information.

3. Read information: AT+CMGR=20 to read the 20th information (AT+CMGL="ALL" to read all information)

4. Delete information: AT+CMGD=20, as shown below

5. Convert the displayed information to text through a code converter.

Send Chinese SMS

1. Set the parameters for sending SMS

AT+CMGF=1 //Set to text mode
AT+CSCS="UCS2" //Set the message text to UCS2 encoding set
AT+CSMP=17,167,2,25 //Set text mode parameters.
AT+CMGS="00310033003400330032003100310039003100300031" //Set the UCS2 set of the receiver's mobile phone number;

2. Waiting to return to >, at this time send the converted information content (00530049004D003700360030003000584E2D658777ED4FE16D4B8BD5), no carriage return is required at the end, after editing the SMS, send 1A to send the message in hexadecimal format, as follows As shown:
Sim7600CE-10.png

Receive Chinese SMS

1. Set SMS receiving parameters

AT+CMGF=1 //Set text display
AT+CSCS="GSM" //Set GSM code set
AT+CNMI=2,1 //Set new information reminder

2. When receiving the information, the serial port will automatically report the information, and read the returned 21st information as shown in the figure below:

AT+CMGR=21 //Read the SMS content of serial number 21

3. Convert the information into Chinese in the software, as shown in the figure below:
Sim7600CE-9.png

RPi Demo