echo 0 > /sys/class/gpio/gpio85/value # RESET
sleep 2
echo 1 > /sys/class/gpio/gpio85/value # UNRESET
sleep 2
echo 0 > /sys/class/gpio/gpio86/value # OFF
sleep 2
echo 1 > /sys/class/gpio/gpio86/value # ON
sleep 2
echo 0 > /sys/class/gpio/gpio47/value # SWITCH TO 4G
echo 1 > /sys/class/gpio/gpio47/value # SWITCH TO USB
sleep 2
echo 0 > /sys/class/gpio/gpio90/value # POWER OFF
sleep 2
echo 1 > /sys/class/gpio/gpio90/value # POWER ON
调用:
pppd call air-ppp&
没有天线可能无法生存设备端口
打印:
local IP address 10.92.71.240
remote IP address 192.168.0.1
primary DNS address 202.103.224.68
/etc/resolv.conf 初始为一个链接文件;需要删除。
上面步骤会自动更新他的DNS配置
自动生成下面的一个网络设备:
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.140.83.215 P-t-P:192.168.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:70 (70.0 B) TX bytes:86 (86.0 B)
default via 192.168.0.1 dev ppp0
192.168.0.1 dev ppp0 scope link src 10.140.83.215
ping: bad address ‘www.baidu.com’
ping 163.177.151.110PING 163.177.151.110 (163.177.151.110): 56 data bytes
64 bytes from 163.177.151.110: seq=0 ttl=51 time=193.922 ms
64 bytes from 163.177.151.110: seq=1 ttl=51 time=49.516 ms
64 bytes from 163.177.151.110: seq=2 ttl=51 time=67.497 ms
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)