FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
602 views 0 comments
by anonymous

I've followed the instructions given for the trm240 at https://wiki.teltonika-networks.com/view/Setting_up_mobile_interface_on_raspberry_pi

on running sudo pppd call gprs& I get:

...

AAT^M^M

OK

 -- got it

send (ATE0^M)

expect (OK)

^M

ATE0^M^M

OK

 -- got it

send (ATI;+CSUB;+CSQ;+COPS?;+CGREG?;&D2^M)

expect (OK)

^M

^M

Quectel^M

BG96^M

Revision: BG96MAR02A07M1G^M

^M

SubEdition: V02^M

^M

+CSQ: 21,99^M

^M

+COPS: 0,0,"O2 - UK KPN",8^M

^M

+CGREG: 0,4^M

^M

OK

 -- got it

send (AT+CGDCONT=1,\"IP\",\"intelligence.m2m\",,0,0^M)

expect (OK)

^M

^M

OK

 -- got it

send (ATD*99#^M)

expect (CONNECT)

^M

^M

CONNECT

 -- got it

Script chat -s -v -f /etc/chatscripts/quectel-chat-connect -T "intelligence.m2m" finished (pid 1370), status = 0x0

Serial connection established.

using channel 3

Using interface ppp1

Connect: ppp1 <--> /dev/ttyUSB2

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x45a27dcb> <pcomp> <accomp>]

rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xd08c686b> <pcomp> <accomp>]

No auth is possible

sent [LCP ConfRej id=0x0 <auth chap MD5>]

rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x45a27dcb> <pcomp> <accomp>]

rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd08c686b> <pcomp> <accomp>]

sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xd08c686b> <pcomp> <accomp>]

sent [LCP EchoReq id=0x0 magic=0x45a27dcb]

sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]

rcvd [LCP DiscReq id=0x2 magic=0xd08c686b]

rcvd [LCP EchoRep id=0x0 magic=0xd08c686b 45 a2 7d cb]

rcvd [IPCP ConfReq id=0x0]

sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>]

rcvd [IPCP ConfNak id=0x1 <addr 10.108.30.52> <ms-dns1 194.151.228.34> <ms-dns2 194.151.228.18>]

sent [IPCP ConfReq id=0x2 <addr 10.108.30.52> <ms-dns1 194.151.228.34> <ms-dns2 194.151.228.18>]

rcvd [IPCP ConfReq id=0x1]

sent [IPCP ConfAck id=0x1]

rcvd [IPCP ConfAck id=0x2 <addr 10.108.30.52> <ms-dns1 194.151.228.34> <ms-dns2 194.151.228.18>]

Could not determine remote IP address: defaulting to 10.64.64.65

not replacing default route to wwan0 [0.0.0.0]

local  IP address 10.108.30.52

remote IP address 10.64.64.65

primary   DNS address 194.151.228.34

secondary DNS address 194.151.228.18

Script /etc/ppp/ip-up started (pid 1382)

Script /etc/ppp/ip-up finished (pid 1382), status = 0x0

ifconfig gives:

ppp1: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500

        inet 10.108.30.52  netmask 255.255.255.255  destination 10.64.64.65

        ppp  txqueuelen 3  (Point-to-Point Protocol)

        RX packets 4  bytes 52 (52.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 4  bytes 58 (58.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wwan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 169.254.4.190  netmask 255.255.0.0  broadcast 169.254.255.255

        inet6 fe80::f531:3098:db6a:26b1  prefixlen 64  scopeid 0x20<link>

        ether a2:6a:30:fc:7c:9d  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 420  dropped 0 overruns 0  carrier 0  collisions 0

So I have an IP address however no internet connectivity:

acies@0009-c:~ $ ping 8.8.8.8

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

From 169.254.4.190 icmp_seq=1 Destination Host Unreachable

From 169.254.4.190 icmp_seq=2 Destination Host Unreachable

From 169.254.4.190 icmp_seq=3 Destination Host Unreachable

From 169.254.4.190 icmp_seq=5 Destination Host Unreachable

From 169.254.4.190 icmp_seq=6 Destination Host Unreachable

^C

--- 8.8.8.8 ping statistics ---

9 packets transmitted, 0 received, +5 errors, 100% packet loss, time 362ms

pipe 4

acies@0009-c:~ $ ping -I 10.108.30.52 8.8.8.8

PING 8.8.8.8 (8.8.8.8) from 10.108.30.52 : 56(84) bytes of data.

From 10.108.30.52 icmp_seq=1 Destination Host Unreachable

From 10.108.30.52 icmp_seq=2 Destination Host Unreachable

From 10.108.30.52 icmp_seq=3 Destination Host Unreachable

^C

--- 8.8.8.8 ping statistics ---

6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 192ms

pipe 4

acies@0009-c:~ $ ping -I 169.254.4.190 8.8.8.8

PING 8.8.8.8 (8.8.8.8) from 169.254.4.190 : 56(84) bytes of data.

From 169.254.4.190 icmp_seq=1 Destination Host Unreachable

From 169.254.4.190 icmp_seq=2 Destination Host Unreachable

From 169.254.4.190 icmp_seq=3 Destination Host Unreachable

From 169.254.4.190 icmp_seq=4 Destination Host Unreachable

From 169.254.4.190 icmp_seq=5 Destination Host Unreachable

From 169.254.4.190 icmp_seq=6 Destination Host Unreachable

^C

--- 8.8.8.8 ping statistics ---

9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 361ms

pipe 4

I've spent many hours trouble shooting this.  Modem connects with internet access fine on Windows at the same location but not on my PI which is used for an industrial monitoring solution (signal strength is fine).  

Can someone help please?  I've tried everything I can think of including using alternatives such as using wvdial but get exactly the same result.  

1 Answer

0 votes
by anonymous

Hello, 

Sorry for the late reply.

If the problem still persists, before running sudo pppd call gprs& command, I would like you to try to enter this command first:

sudo ifconfig wwan0 down.

As you see from the ping results, the IP address the raspberry device is trying to ping from is related to wwan0 interface, not ppp1.

Best regards,

Žygimantas