Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 301|Reply: 1

Orange Pi IoT 2G Disconnects ppp after connect

[Copy link]

5

Threads

13

Posts

67

Credits

Registered member

Rank: 2

Credits
67
Post time 2020-3-27 09:48:50 | Show all posts |Read mode
Edited by mkgokp7s at 2020-3-27 17:33

I try to setup an Internet connection on an OrangePi IoT 2G board with build-in modem. The at-commands are working fine, even connect and start pppd, but one second later it disconnects and therefore ppp daemon dies with exit code=1. According man pacges exit code=1: "Pppd has detached, or otherwise the connection was successfully established and terminated at the peer's request."


The output of wvdial:
  1. --> WvDial: Internet dialer version 1.61
  2. --> Cannot get information for serial port.
  3. --> Initializing modem.
  4. --> Sending: ATZ
  5. ATZ
  6. OK
  7. --> Sending: AT+CFUN=1
  8. AT+CFUN=1
  9. OK
  10. --> Sending: AT+EGMR=1,7,xxxxxxxxxxxxxxx
  11. AT+EGMR=1,7,xxxxxxxxxxxxxxx
  12. OK
  13. --> Sending: AT+CGDCONT=1,"IP","internet.t-mobile"
  14. AT+CGDCONT=1,"IP","internet.t-mobile"
  15. OK
  16. --> Modem initialized.
  17. --> Sending: ATDT*99#
  18. --> Waiting for carrier.
  19. ATDT*99#
  20. CONNECT
  21. --> Carrier detected.  Starting PPP immediately.
  22. --> Starting pppd at Fri Mar 27 00:44:41 2020
  23. --> Pid of pppd: 576
  24. [  334.253234] PPP generic driver version 2.4.2
  25. --> Disconnecting at Fri Mar 27 00:44:41 2020
  26. --> The PPP daemon has died: Fatal pppd error (exit code = 1)
Copy the Code
My /etc/wvdial.conf:
  1. [Dialer Defaults]
  2. Modem Type = Analog Modem
  3. ISDN = 0
  4. Init1 = ATZ
  5. Init2 = AT+CFUN=1
  6. Modem = /dev/modem0
  7. Baud = 460800
  8. Auto Reconnect = on
  9. #Dial Attemps = 2

  10. [Dialer congstar]
  11. Carrier Check = no
  12. Init3 = AT+EGMR=1,7,xxxxxxxxxxxxxxx
  13. Init4 = AT+CGDCONT=1,"IP","internet.t-mobile"
  14. Stupid Mode = 1
  15. Phone = *99#
  16. Dialer Command = ATD
  17. Dial Attemps = 2
  18. Username = tm
  19. Password = tm
Copy the Code

To prevent using the IMEI=000000000000000 I set it with the at-command "AT+EGMR=1,7,xxxxxxxxxxxxxxx" to a valid one, but this don't help.
The carrier I'm using is Congstar by T-Mobile Germany.

What could be the problem, any idea?

5

Threads

13

Posts

67

Credits

Registered member

Rank: 2

Credits
67
 Author| Post time 2020-4-14 18:36:15 | Show all posts
I found a solution - in case anybody else once have the same issue:
1. Use ppp command pon/poff which is much easier to handle and shows better logs
2. Use E-Plus carrier instead of T-Mobile because it simply works with this set of AT-commands. Maybe there are other AT-commands needed by T-Mobile and it works too.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-6-3 08:27 GMT+8 , Processed in 0.027785 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list