SIM7070G SIM7080G PPP&&ECM 拨号

14 篇文章 0 订阅
8 篇文章 0 订阅

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:

​Add VID and PID

​sudo su
sudo modprobe option
sudo sh -c 'echo "1e0e 9206" > /sys/bus/usb-serial/drivers/option1/new_id'

After successfully adding PID, a series of ttyUSB appears

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 &

ifconfig

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

ping -I ppp0 www.baidu.com

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

Test network

ping -I eth1 www.baidu.com

refer manual

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

信看

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值