please choosego to mobile | Continue to access the PC version
View: 5865|Reply: 2

Orange Pi IoT 2G Disconnects ppp after connect

[Copy link]

8

threads

19

posts

118

credits

Registered member

Rank: 2

credits
118
Published in 2020-3-27 09:48:50 | Show all floors |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 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 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?

8

threads

19

posts

118

credits

Registered member

Rank: 2

credits
118
 Author| Published in 2020-4-14 18:36:15 | Show all floors
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.

0

threads

112

posts

322

credits

Intermediate member

Rank: 3Rank: 3

credits
322
Published in 2022-3-31 07:26:01 | Show all floors
This is probably the results We're getting all over. With thanks for your personal site, I sign up to your website. This is usually a awesome site. inches.        Packers and Movers Gurgaon
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list