SIM7070 - SIM7080 - SIM7090 Series - Linux - Application Note - V1.02
SIM7070 - SIM7080 - SIM7090 Series - Linux - Application Note - V1.02
Series_Linux
_Application Note
LPWA Module
GENERAL NOTES
COPYRIGHT
www.simcom.com 2 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
About Document
Version History
Scope
www.simcom.com 3 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
Contents
About Document.................................................................................................................................. 3
Version History.........................................................................................................................................................3
Scope........................................................................................................................................................................ 3
Contents................................................................................................................................................. 4
1 Introduction.................................................................................................................................... 5
1.1 Purpose of the document...........................................................................................................................5
1.2 Related documents.....................................................................................................................................5
1.3 Conventions and abbreviations................................................................................................................ 5
2 USB Introduction...........................................................................................................................6
3 AT Commands for USB configuration.....................................................................................7
4 Install USB Serial Driver..............................................................................................................8
4.1 Precondition................................................................................................................................................. 8
4.2 Add VID and PID......................................................................................................................................... 8
4.3 Kernel debug message.............................................................................................................................. 9
5 Verification .................................................................................................................................. 11
5.1 Verification of VID=0x1E0E and PID=0x9205......................................................................................11
5.2 Verification of VID=0x1E0E and PID=0x9206......................................................................................11
6 Usage of ECM.............................................................................................................................. 13
7 PPPD Call ....................................................................................................................................14
7.1 Configure PPP protocol........................................................................................................................... 14
7.2 Configure PPPD........................................................................................................................................14
7.2.1 Create option file...........................................................................................................................14
7.2.2 Create chat file.............................................................................................................................. 15
7.3 PPPD call................................................................................................................................................... 15
www.simcom.com 4 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
1 Introduction
This document will introduce how to install USB driver on Linux and how to run PPP application on
SIM7070\7080\7090 series of module. Developers could understand and develop application quickly and
efficiently based on this document.
Developers could understand and develop application quickly and efficiently based on this document.
In application, controlling device controls the GSM engine by sending AT Command via its serial interface.
The controlling device at the other end of the serial line is referred to as following term:
TE (Terminal Equipment);
DTE (Data Terminal Equipment) or plainly "the application" which is running on an embedded system;
www.simcom.com 5 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
2 USB Introduction
The USB (Universal Serial BUS) protocol states that all USB devices have a VID (Vendor ID) and a PID
(Product ID). The VID is applied by the supplier to the USB-IF (Implementers Forum, Applicant Forum). The
VID of each supplier is unique and the PID is at the discretion of the supplier. The host uses VID and PID to
identify different USB devices. Depending on them (and the version number of the device), the
corresponding driver can be loaded or installed on the device. Both VID and PID are two bytes in length.
For SIM7070/SIM7080/SIM7090 series of module, there are two types of VID and PID. One is VID=0x1E0E,
and PID=0x9205 and another is VID=0x1E0E, and PID=0x9206. The two types can be switched by
AT+CUSBSELNV. If AT+CUSBSELNV=1, VID=0x1E0E, and PID=0x9205. If AT+CUSBSELNV=86,
VID=0x1E0E, and PID=0x9206. The default is VID=0x1E0E, and PID=0x9206.
www.simcom.com 6 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
Command Description
AT+CUSBSELNV Select the USB configuration
AT+SECMEN Enable ECM auto connecting.
AT+CREBOOT Reset the module
AT+SECMAUTH Set APN of ECM auto connecting
www.simcom.com 7 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
Before install USB driver, please make sure module has been powered up and connected with Linux,
developer can check the hardware connection by lsusb or dmesg log.
4.1 Precondition
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_OPTION=y
{ USB_DEVICE(SIMCOM_SIM7080_VID, SIMCOM_SIM7080_PID),
.driver_info = (kernel_ulong_t)& simcom_SIM7080_blacklist t
},
……
If kernel version is below V3.2
#define SIMCOM_SIM7080_VID 0x1E0E
/* If you want to use VID=0x1E0E, and PID=0x9205.*/
#define SIMCOM_SIM7080_PID 0x9205
www.simcom.com 8 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
{ USB_DEVICE(SIMCOM_SIM7080_VID, SIMCOM_SIM7080_PID) },
};
If USB serial driver is installed successfully, kernel will print below message automatically after module was
re-started. And from this message, we could confirm if dev/ttyUSB# was enumerated successfully or not.
www.simcom.com 9 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
www.simcom.com 10 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
5 Verification
Now developer can verify if driver has been installed, when VID=0x1E0E, and PID=0x9205.
1) Connect physical USB interface of module and power on it.
2) Open Linux terminal and type the shell command “dmesg” to view kernel print information.
This information indicates device driver is installed successfully and the module was recognized by the PC
device.
Now developer can verify if driver has been installed, when VID=0x1E0E, and PID=0x9206.
1) Connect physical USB interface of module and power on it.
2) Open Linux terminal and type the shell command “dmesg” to view kernel print information.
www.simcom.com 11 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
This information indicates device driver is installed successfully and the module was recognized by the PC
device.
www.simcom.com 12 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
6 Usage of ECM
The MDM9205 only supports ECM. When ECM is used, VID should be 0x1E0E and PID should be 0x9205.
The following way is to enable ECM.
After setting the AT command and waiting for the module registering the network, you can use ping to check
the connection.
www.simcom.com 13 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
7 PPPD Call
Since PPP dialing requires the chat and PPPD command, you need to download the PPP protocol.
Confirm that the following files already exist in Linux file system. If not, you need to apt-get install PPP.
/etc/ppp/chap-secrets
/etc/ppp/pap-secrets
/etc/ppp/ip-up
/etc/ppp/ip-down
/etc/ppp/peer/
Create 2 files under the file system /etc/ppp directory as follows: sim7080option and sim7080-chat.dat
www.simcom.com 14 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
ipcp-accept-remote
usepeerdns
defaultroute
lcp-echo-failure 3
lcp-echo-interval 2
#asyncmap ffffffff
#idle 480
AT+CGDCONT sets the APN of the module, ibox.tim.it will be changeable according your modem APN.
The sim7080-chat.dat file contents are as follows:
#/etc/ppp/sim7080-chat.dat
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'ERROR'
ABORT 'NO ANSWER'
ABORT 'BUSY'
TIMEOUT 120
'' AT
OK ATE1
OK AT+CGDCONT=1,"IPV4V6","ibox.tim.it"
OK ATD*99#
CONNECT ''
www.simcom.com 15 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
abort on (ERROR)
abort on (NO ANSWER)
abort on (BUSY)
timeout set to 120 seconds
send (AT^M)
expect (OK)
^M
OK
-- got it
send (ATE1^M)
expect (OK)
^M
^M
OK
-- got it
send (AT+CGDCONT=1,"IPV4V6","ibox.tim.it"^M)
expect (OK)
^M
AT+CGDCONT=1,"IPV4V6","ibox.tim.it"^M^M
OK
-- got it
send (ATD*99#^M)
expect (CONNECT)
^M
ATD*99#^M^M
CONNECT
-- got it
send (^M)
Script /usr/sbin/chat -v -s -f /etc/ppp/sim7000-chat.dat finished (pid 12254), status = 0x0
Serial connection established.
using channel 5
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB4
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfa37b19e> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xc5bc7416> <pcomp> <accomp>]
sent [LCP ConfNak id=0x0 <auth pap>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfa37b19e> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xc5bc7416> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0xc5bc7416> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xfa37b19e]
sent [PAP AuthReq id=0x1 user="ubuntu" password=<hidden>]
rcvd [LCP DiscReq id=0x2 magic=0xc5bc7416]
www.simcom.com 16 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
www.simcom.com 17 / 18
SIM7070_SIM7080_SIM7090 Series_Linux_Application Note_V1.02
www.simcom.com 18 / 18