0
点赞
收藏
分享

微信扫一扫

SIM7070G SIM7080G PPP&&ECM 拨号


Initialize the pin to avoid automatic switch

sudo nano pi_gpio_init.sh

echo "4" > /sys/class/gpio/export

sleep 0.1

echo "out" > /sys/class/gpio/gpio4/direction

echo "0" > /sys/class/gpio/gpio4/value

sh pi_gpio_init.sh

Add PID

The PID of SIM7070 is 9206, and the PID of SIM7080 is 9205. Generally, the linux system does not have this PID. You need to add the following:

SIM7070G SIM7080G PPP&&ECM 拨号_物联网


Enter the option folder to edit the option.c file and add the corresponding PID

cd SIM8200_for_RPI/option

sudo nano option.c

Search for 9011, find the PID and VID codes corresponding to 9011, add 9205 and 9206 after copying, as shown below:

SIM7070G SIM7080G PPP&&ECM 拨号_Test_02


Load device symbol

SIM7070G SIM7080G PPP&&ECM 拨号_linux_03


After successfully adding PID, a series of ttyUSB appears

SIM7070G SIM7080G PPP&&ECM 拨号_物联网_04


PPP dial

sudo su

sudo apt-get install ppp

cd /etc/ppp

sudo nano sim7080-chat.dat

#/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 ''

cd /etc/ppp/peers

sudo nano sim7080option

#/etc/ppp/peers/ sim7080option

# This is pppd script for China Mobile, used SIMCOM Module

/dev/ttyUSB2

#/dev/pts/11

115200

nocrtscts

noauth

connect '/usr/sbin/chat -v -s -f /etc/ppp/sim7080-chat.dat'

disconnect '/usr/sbin/chat -e -v "" +++ath'

debug

ipcp-accept-local

ipcp-accept-remote

usepeerdns

defaultroute

lcp-echo-failure 3

lcp-echo-interval 2

#asyncmap ffffffff

#idle 48

pppd call sim7080option &

SIM7070G SIM7080G PPP&&ECM 拨号_物联网_05


ifconfig

SIM7070G SIM7080G PPP&&ECM 拨号_linux_06


When the ppp0 network port appears, it means successful ppp dialing is successful.

ping -I ppp0 www.baidu.com

SIM7070G SIM7080G PPP&&ECM 拨号_Test_07


ECM dial

After connecting SIM7080 and Raspberry Pi via USB, enter minicom

sudo minicom -D /dev/ttyUSB2

Enter the following commands in the minicom interface

ATE1

AT+CUSBSELNV=1 //Configure VID=0x1E0E, and PID=0x9205 OK

AT+SECMEN=1 //Enable ECM auto connecting. OK

AT+CREBOOT //Reboot the module OK

SIM7070G SIM7080G PPP&&ECM 拨号_Test_08


Test network

ping -I eth1 www.baidu.com

SIM7070G SIM7080G PPP&&ECM 拨号_sed_09


refer manual

举报

相关推荐

0 条评论