# MC7350 Linux pppd connect script centos 6

**URL:** <https://forum.sierrawireless.com/t/mc7350-linux-pppd-connect-script-centos-6/8374>\
**Category:** MC/EM Series\
**Created:** [January 20, 2016, 7:38pm UTC](https://forum.sierrawireless.com/t/mc7350-linux-pppd-connect-script-centos-6/8374 "2016-01-20T19:38:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![trcorp99](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@trcorp99](https://forum.sierrawireless.com/u/trcorp99)\
**Post date:** [January 20, 2016, 7:38pm UTC](https://forum.sierrawireless.com/t/mc7350-linux-pppd-connect-script-centos-6/8374/1 "2016-01-20T19:38:17Z")

</div>

Does any one have a working pppd config they can post, I am using a MC7350 on Centos 6.6 and I am having trouble connecting.

I was able to compile and load the Gobi drivers version SierraLinuxQMIdriversS2.25N2.36 and I can see the MC7350.

[centos6.6]# uname -a  
Linux centos6.6 2.6.32-573.12.1.el6.i686 #1 SMP Tue Dec 15 18:25:17 UTC 2015 i686 i686 i386 GNU/Linux  
[centos6.6]# lsmod  
Module Size Used by  
sierra 14980 0  
ppp\_generic 21173 0  
slhc 5201 1 ppp\_generic  
ipv6 270937 24  
GobiSerial 9204 0  
usbserial 30493 2 sierra,GobiSerial  
GobiNet 50901 0  
usbnet 30456 1 GobiNet  
serio\_raw 3530 0  
sg 24006 0  
snd\_hda\_codec\_hdmi 40044 1  
r8169 63274 0  
snd\_hda\_codec\_via 17812 1  
snd\_hda\_codec\_generic 54394 1 snd\_hda\_codec\_via  
mii 4476 2 usbnet,r8169  
snd\_hda\_intel 45473 0  
snd\_hda\_codec 114217 4 snd\_hda\_codec\_hdmi,snd\_hda\_codec\_via,snd\_hda\_codec\_generic,snd\_hda\_intel  
snd\_hwdep 5474 1 snd\_hda\_codec  
snd\_seq 49055 0  
snd\_seq\_device 5689 1 snd\_seq  
snd\_pcm 73758 3 snd\_hda\_codec\_hdmi,snd\_hda\_intel,snd\_hda\_codec  
snd\_timer 17504 2 snd\_seq,snd\_pcm  
snd 55156 10 snd\_hda\_codec\_hdmi,snd\_hda\_codec\_via,snd\_hda\_codec\_generic,snd\_hda\_intel,snd\_hda\_codec,snd\_hwdep,snd\_seq,snd\_seq\_device,snd\_pcm,snd\_timer  
soundcore 6390 2 snd\_hda\_codec,snd  
snd\_page\_alloc 7236 2 snd\_hda\_intel,snd\_pcm  
ext4 339812 5  
jbd2 75927 1 ext4  
mbcache 6017 1 ext4  
sd\_mod 33249 3  
crc\_t10dif 836 1 sd\_mod  
xhci\_hcd 162628 0  
ahci 36204 2  
video 17202 0  
output 1741 1 video  
dm\_mirror 11969 0  
dm\_region\_hash 9644 1 dm\_mirror  
dm\_log 8322 2 dm\_mirror,dm\_region\_hash  
dm\_mod 84711 17 dm\_mirror,dm\_log  
[centos6.6]# lsusb  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub  
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub  
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub  
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub  
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub  
Bus 001 Device 002: ID 1199:68c0 Sierra Wireless, Inc.  
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  
[centos6.6]# cat /etc/ppp/peers/vzw\_chat  
‘’ ‘ATZ’  
‘’ ‘at+cgdcont=1,“IP”,“ne01.vzwstatic”’  
‘OK’ ‘ATDT#777’  
‘CONNECT’ ‘’  
[centos6.6]# cat /etc/ppp/peers/vzwconnect  
name someusername  
connect “/usr/sbin/chat -v -f /etc/ppp/peers/vzw\_chat”  
defaultroute  
usepeerdns  
ttyUSB2  
local  
usepeerdns  
debug  
-detach

---

<div class="post-metadata">

**Author:** ![trcorp99](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@trcorp99](https://forum.sierrawireless.com/u/trcorp99)\
**Post date:** [January 20, 2016, 7:56pm UTC](https://forum.sierrawireless.com/t/mc7350-linux-pppd-connect-script-centos-6/8374/2 "2016-01-20T19:56:24Z")

</div>

I removed ATZ from my chat script since its not a command listed in the AirPrime MiniCard MC73xx/8805 AT Command Reference and it was causing an error anyway. Below is the output from running pppd again.

[centos6.6]# pppd call vzwconnect  
Script /usr/sbin/chat -v -f /etc/ppp/peers/vzw\_chat finished (pid 14512), status = 0x3  
Connect script failed  
[centos6.6]# cat /etc/ppp/peers/vzw\_chat  
‘’ ‘at+cgdcont=1,“IP”,“ne01.vzwstatic”’  
‘OK’ ‘ATDT#777’  
‘CONNECT’ ‘’  
[centos6.6]# tail -n 14 /var/log/messages  
Jan 20 19:50:29 avF3B1 pppd[14009]: pppd 2.4.5 started by sos, uid 0  
Jan 20 19:50:29 avF3B1 chat[14010]: send (at+cgdcont=1,“IP”,“ne01.vzwstatic”^M)  
Jan 20 19:50:29 avF3B1 chat[14010]: expect (OK)  
Jan 20 19:50:29 avF3B1 chat[14010]: at+cgdcont=1,“IP”,“ne01.vzwstatic”^M^M  
Jan 20 19:50:29 avF3B1 chat[14010]: OK  
Jan 20 19:50:29 avF3B1 chat[14010]: – got it  
Jan 20 19:50:29 avF3B1 chat[14010]: send (ATDT#777^M)  
Jan 20 19:50:30 avF3B1 chat[14010]: expect (CONNECT)  
Jan 20 19:50:30 avF3B1 chat[14010]: ^M  
Jan 20 19:50:30 avF3B1 chat[14010]: ATDT#777^M^M  
Jan 20 19:50:30 avF3B1 chat[14010]: NO CARRIER^M  
Jan 20 19:50:47 avF3B1 chat[14010]: SIGINT  
Jan 20 19:50:47 avF3B1 pppd[14009]: Connect script failed  
Jan 20 19:50:47 avF3B1 pppd[14009]: Exit.

---

<div class="post-metadata">

**Author:** ![trcorp99](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@trcorp99](https://forum.sierrawireless.com/u/trcorp99)\
**Post date:** [January 20, 2016, 9:24pm UTC](https://forum.sierrawireless.com/t/mc7350-linux-pppd-connect-script-centos-6/8374/3 "2016-01-20T21:24:32Z")

</div>

I got it working!

My chat script needed some changes. The key line was ‘OK’ ‘atdt_99_\*\*3#’.

[centos6.6]# cat /etc/ppp/peers/vzw\_chat  
‘’ ‘ATZ’  
‘’ ‘ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0’  
‘’ ‘at+cgdcont=1,“IP”,“ne01.vzwstatic”’  
‘OK’ ‘atdt_99_\*\*3#’  
‘CONNECT’ ‘’  
[centos6.6]# cat /etc/ppp/chap-secrets  
“\<your\_phone\_number\>@vzw3g.com” \* “vzw”[root@avF3B1 sos]# ifconfig ppp0  
[centos6.6]# ifconfig ppp0  
ppp0 Link encap:Point-to-Point Protocol  
inet addr:\<static\_ip\_removed\> P-t-P:10.64.64.64 Mask:255.255.255.255  
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1  
RX packets:30967 errors:0 dropped:0 overruns:0 frame:0  
TX packets:58719 errors:0 dropped:0 overruns:0 carrier:0  
collisions:0 txqueuelen:3  
RX bytes:1290095 (1.2 MiB) TX bytes:87156146 (83.1 MiB)

I also want to mention that the account we are using has a static ip assignment and our apn is allocated in the northeast.

If anyone has any questions you can email me at andrew[at][solarrigtech.com](http://solarrigtech.com)

---

<div class="post-metadata">

**Author:** ![trcorp99](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@trcorp99](https://forum.sierrawireless.com/u/trcorp99)\
**Post date:** [January 20, 2016, 10:31pm UTC](https://forum.sierrawireless.com/t/mc7350-linux-pppd-connect-script-centos-6/8374/4 "2016-01-20T22:31:37Z")

</div>

This method may not be the best way, it appears that Sierra Wireless recommends their Linux QMI SDK.

[source.sierrawireless.com/resour … 03,-d-,13/](http://source.sierrawireless.com/resources/airprime/software/linux-qmi-sdk-software-03,-d-,03,-d-,13/)

---

<div class="post-metadata">

**Author:** ![trcorp99](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@trcorp99](https://forum.sierrawireless.com/u/trcorp99)\
**Post date:** [January 28, 2016, 7:52pm UTC](https://forum.sierrawireless.com/t/mc7350-linux-pppd-connect-script-centos-6/8374/5 "2016-01-28T19:52:39Z")

</div>

I am getting good speeds using pppd, so it appears to be a workable solution. The issue with the provided Sierra Wireless connection manager is that it appears to only work in an interactive manor. Someone please correct me if I’m wrong and if passing cli arguments to it is possible. It is possible to write ones own connection program using the API’s but for my case if standard linux tools can handle the job that solution is fine.

Speed test info on my device while connected via the MC7350, over 2 megabytes per second.

[root@centsos6.6 tmp]# wget -O /dev/null [speedtest.wdc01.softlayer.com/do … est500.zip](http://speedtest.wdc01.softlayer.com/downloads/test500.zip)  
–2016-01-28 19:34:14-- [speedtest.wdc01.softlayer.com/do … est500.zip](http://speedtest.wdc01.softlayer.com/downloads/test500.zip)  
Resolving [speedtest.wdc01.softlayer.com](http://speedtest.wdc01.softlayer.com)… 208.43.102.250, 2607:f0d0:3001:78::2  
Connecting to speedtest.wdc01.softlayer.com|208.43.102.250|:80… connected.  
HTTP request sent, awaiting response… 200 OK  
Length: 524288000 (500M) [application/zip]  
Saving to: “/dev/null”

100%[============================================================================================================\>] 524,288,000 2.58M/s in 3m 40s

2016-01-28 19:40:55 (2.27 MB/s) - “/dev/null” saved [524288000/524288000]

[root@centsos6.6 tmp]# tail -n 34 /var/log/signal  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Device State 😃EVICE CONNECTED  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Manufacture :Sierra Wireless, Incorporated  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Model Id :MC7350  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Firmware Revisions :SWI9X15C\_05.05.58.01 r27044 carmd-fwbuild1 2015/03/05 00:02:40  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Boot Revisions :SWI9X15C\_05.05.58.01 r27044 carmd-fwbuild1 2015/03/05 00:02:40  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: PRI Revisions :9903209 05.03  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: PRL Version :15425  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: PRL Preference :1  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: IMSI :[redacted]  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Hardware Revision :1.0  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Home Network :Verizon Wirele  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: PDP Type :UNKNOWN  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Authentication :UNKNOWN  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Profile Name :UNKNOWN  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: APN Name :UNKNOWN  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: User Name :UNKNOWN  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: ESN Number :[redacted]  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: IMEI Number :[redacted]  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: MEID Number :[redacted]  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Call Status 😃ISCONNECTED  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: ECIO :5  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: SINR :8  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: IO :-106  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: RSRQ :-13  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Signal Strength :-71  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: IP Address :0.0.0.0  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Primary DNS :0.0.0.0  
Jan 28 19:40:47 centsos6.6 connectionmgrhosti686: Secondary DNS :0.0.0.0  
Jan 28 19:40:48 centsos6.6 connectionmgrhosti686: Signal Strength :-125  
Jan 28 19:40:48 centsos6.6 connectionmgrhosti686: ECIO :5  
Jan 28 19:40:48 centsos6.6 connectionmgrhosti686: SINR :8  
Jan 28 19:40:48 centsos6.6 connectionmgrhosti686: IO :-106  
Jan 28 19:40:48 centsos6.6 connectionmgrhosti686: Signal Strength :-71  
Jan 28 19:40:48 centsos6.6 connectionmgrhosti686: RSRQ :-11

[root@centsos6.6 tmp]# route -n  
Kernel IP routing table  
Destination Gateway Genmask Flags Metric Ref Use Iface  
10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0  
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1  
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0  
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0  
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1  
0.0.0.0 10.64.64.64 0.0.0.0 UG 0 0 0 ppp0
