View: 19658|Reply: 11

Orange PI 2G IOT GSM modem port in Ubuntu

[Copy link]

1

threads

3

posts

19

credits

Novice

Rank: 1

credits
19
Published in 2017-4-19 22:10:02 | Show all floors |Read mode
Hello,

Has anyone been able to talk to the GSM/GPRS modem on the 2G IOT from Ubuntu? I see 3 serial ports (ttyS0 (console), ttyS1 and ttyS2) but none of them respond to any AT commands. Does the modem need to be enabled via GPIO somehow?

Thank you,
Razvan

1

threads

3

posts

19

credits

Novice

Rank: 1

credits
19
 Author| Published in 2017-4-25 19:04:51 | Show all floors
See http://surfero.blogspot.com.es/2 ... a-orange-pi-2g.html (in Spanish) for how to make it work with wvdial. It worked fine for me.

0

threads

3

posts

45

credits

Novice

Rank: 1

credits
45
Published in 2017-4-23 17:45:01 | Show all floors
Hi, I interested too.

0

threads

2

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2017-4-24 03:54:46 | Show all floors

Hi, I interested too.

2

threads

36

posts

1915

credits

Gold member

Rank: 6Rank: 6

credits
1915
Published in 2017-5-10 06:08:27 | Show all floors
drazvan replied at 2017-4-25 19:04
See http://surfero.blogspot.com.es/2017/04/configurar-modem-gsm-en-la-orange-pi-2g.html (in Spanish) ...

Thank you for your research

2

threads

36

posts

1915

credits

Gold member

Rank: 6Rank: 6

credits
1915
Published in 2017-5-10 07:32:54 | Show all floors
root@OrangePi:~# cat /etc/wvdial.conf
[Dialer defaults]
Modem = /dev/modem0
Baud = 30720000
Dial Command = ATDT
Init1 = ATE1
Init2 = AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
FlowControl = CRTSCTS
Init3 = ATM0
Phone = * 99 #
Username = orange
Password = orange
Stupid Mode = 1
root@OrangePi:~#

  1. root@OrangePi:~# wvdial
  2. --> WvDial: Internet dialer version 1.61
  3. --> Cannot get information for serial port.
  4. --> Initializing modem.
  5. --> Sending: ATE1
  6. ATE1
  7. OK
  8. --> Sending: AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
  9. AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
  10. +CME ERROR:58
  11. --> Bad init string.
  12. --> Cannot get information for serial port.
  13. --> Initializing modem.
  14. --> Sending: ATE1
  15. ATE1
  16. OK
  17. --> Sending: AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
  18. AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
  19. +CME ERROR:58
  20. --> Bad init string.
  21. --> Cannot get information for serial port.
  22. --> Initializing modem.
  23. --> Sending: ATE1
  24. ATE1
  25. OK
  26. --> Sending: AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
  27. AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
  28. +CME ERROR:58
  29. --> Bad init string.
Copy code


Not sure whats up. I am trying to use Straight Talk in US/NC on GSM/Tmobile

0

threads

1

posts

18

credits

Novice

Rank: 1

credits
18
Published in 2017-5-11 21:48:46 | Show all floors
tpickle replied at 2017-5-10 07:32
Not sure whats up. I am trying to use Straight Talk in US/NC on GSM/Tmobile

Try to cahnge this : Init2 = AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0  ---> Init2 = AT+CGDCONT=1,"IP","wap.tracfone","", 0,0
simply remove spaces. I've received error 58 when wvdial send not supported/syntax correct AT command.

2

threads

36

posts

1915

credits

Gold member

Rank: 6Rank: 6

credits
1915
Published in 2017-5-13 08:09:16 | Show all floors
kawapiki replied at 2017-5-11 21:48
Try to cahnge this : Init2 = AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0  ---> Init2 = AT+CGDC ...

Thanks. This did help me. However, not sure what's next
  1. root@OrangePi:/var/log# wvdial &
  2. [1] 18675
  3. root@OrangePi:/var/log# --> WvDial: Internet dialer version 1.61
  4. --> Cannot get information for serial port.
  5. --> Initializing modem.
  6. --> Sending: ATE1
  7. ATE1
  8. OK
  9. --> Sending: AT+CGDCONT=1,"IP","wap.tracfone","",0,0
  10. AT+CGDCONT=1,"IP","wap.tracfone","",0,0
  11. OK
  12. --> Modem initialized.
  13. --> Sending: ATDT*99#
  14. --> Waiting for carrier.
  15. ATDT*99#
  16. CONNECT
  17. --> Carrier detected.  Starting PPP immediately.
  18. --> Starting pppd at Sat May 13 00:01:34 2017
  19. --> Pid of pppd: 18676
  20. --> Disconnecting at Sat May 13 00:01:34 2017
  21. --> The PPP daemon has died: pppd options error (exit code = 2)
  22. --> man pppd explains pppd error codes in more detail.
  23. --> I guess that's it for now, exiting
  24. --> The PPP daemon has died. (exit code = 2)
Copy code

  1. root@OrangePi:/var/log# cat /etc/wvdial.conf
  2. [Dialer defaults]
  3. Modem = /dev/modem0
  4. Baud = 30720000
  5. Dial Command = ATDT
  6. Init1 = ATE1
  7. Init2 = AT+CGDCONT=1,"IP","wap.tracfone","",0,0
  8. FlowControl = CRTSCTS
  9. #Init3 = ATM0
  10. Phone = *99#
  11. #Username = orange
  12. #Password = orange
  13. Stupid Mode = 1
Copy code




2

threads

36

posts

1915

credits

Gold member

Rank: 6Rank: 6

credits
1915
Published in 2017-5-13 08:16:25 | Show all floors
  1. root@OrangePi:/var/log# wvdial &
  2. [1] 18910
  3. root@OrangePi:/var/log# --> WvDial: Internet dialer version 1.61
  4. --> Cannot get information for serial port.
  5. --> Initializing modem.
  6. --> Sending: ATE1
  7. --> Sending: ATQ0
  8. --> Re-Sending: ATE1
  9. --> Modem not responding.

  10. [1]+  Exit 1                  wvdial
Copy code


I think the modem is hung now. Wish i knew AT commands to clear it.

2

threads

36

posts

1915

credits

Gold member

Rank: 6Rank: 6

credits
1915
Published in 2017-5-13 09:34:24 | Show all floors
Some log data and configs

  1. root@OrangePi:~# cat /etc/ppp/peers/wvdial-pipe
  2. noauth
  3. name wvdial

  4. #plugin passwordfd.so

  5. defaultroute
  6. replacedefaultroute
Copy code
  1. root@OrangePi:~# cat /etc/ppp/peers/wvdial
  2. noauth
  3. name wvdial
  4. debug
  5. usepeerdns
  6. defaultroute
  7. noipdefault
  8. mtu 472
Copy code
  1. root@OrangePi:~# cat /etc/wvdial.conf
  2. [Dialer defaults]
  3. Modem = /dev/modem0
  4. Baud = 9600
  5. Dial Command = ATDT
  6. Init1 = ATE1
  7. #Init2 = AT&V
  8. Init3 = AT+CSQ
  9. Init4 = AT+CGDCONT=1,"IP","tfdata","",0,0
  10. #Init2 = AT+CGDCONT=1,"IP","wap.tracfone","",0,0
  11. FlowControl = CRTSCTS
  12. #Init3 = ATM0
  13. Phone = *99#
  14. Username = orange
  15. Password = orange
  16. Stupid Mode = 1
Copy code
  1. root@OrangePi:~# journalctl -t pppd
  2. -- Logs begin at Sat 2017-05-13 00:54:01 UTC, end at Sat 2017-05-13 01:24:06 UTC. --
  3. May 13 00:58:12 OrangePi pppd[1456]: pppd 2.4.7 started by tpickle, uid 0
  4. May 13 00:58:12 OrangePi pppd[1456]: speed 30720000 not supported
  5. May 13 00:58:12 OrangePi pppd[1456]: using channel 1
  6. May 13 00:58:12 OrangePi pppd[1456]: Using interface ppp0
  7. May 13 00:58:12 OrangePi pppd[1456]: Connect: ppp0 <--> /dev/modem0
  8. May 13 00:58:12 OrangePi pppd[1456]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7fcd002b> <pcomp> <accomp>]
  9. May 13 00:58:12 OrangePi pppd[1456]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7fcd002b> <pcomp> <accomp>]
  10. May 13 00:58:12 OrangePi pppd[1456]: rcvd [LCP ConfReq id=0x65 <asyncmap 0x0> <magic 0x80cd002b> <pcomp> <accomp>]
  11. May 13 00:58:12 OrangePi pppd[1456]: sent [LCP ConfAck id=0x65 <asyncmap 0x0> <magic 0x80cd002b> <pcomp> <accomp>]
  12. May 13 00:58:12 OrangePi pppd[1456]: sent [LCP EchoReq id=0x0 magic=0x7fcd002b]
  13. May 13 00:58:12 OrangePi pppd[1456]: kernel does not support PPP filtering
  14. May 13 00:58:13 OrangePi pppd[1456]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  15. May 13 00:58:40 OrangePi pppd[1456]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  16. May 13 00:58:42 OrangePi pppd[1456]: sent [LCP EchoReq id=0x1 magic=0x7fcd002b]
  17. May 13 00:58:43 OrangePi pppd[1456]: IPCP: timeout sending Config-Requests
  18. May 13 00:58:43 OrangePi pppd[1456]: sent [LCP TermReq id=0x2 "No network protocols running"]
  19. May 13 00:58:43 OrangePi pppd[1456]: rcvd [LCP TermAck id=0x2 "No network protocols running"]
  20. May 13 00:58:43 OrangePi pppd[1456]: Connection terminated.
  21. May 13 00:58:43 OrangePi pppd[1456]: Exit.
  22. May 13 01:00:57 OrangePi pppd[1831]: pppd 2.4.7 started by tpickle, uid 0
  23. May 13 01:00:57 OrangePi pppd[1831]: speed 30720000 not supported
  24. May 13 01:00:57 OrangePi pppd[1831]: using channel 2
  25. May 13 01:00:57 OrangePi pppd[1831]: Using interface ppp0
  26. May 13 01:00:57 OrangePi pppd[1831]: Connect: ppp0 <--> /dev/modem0
  27. May 13 01:00:57 OrangePi pppd[1831]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf79e11a> <pcomp> <accomp>]
  28. May 13 01:00:57 OrangePi pppd[1831]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf79e11a> <pcomp> <accomp>]
  29. May 13 01:00:57 OrangePi pppd[1831]: rcvd [LCP ConfReq id=0x65 <asyncmap 0x0> <magic 0x1079e11a> <pcomp> <accomp>]
  30. May 13 01:00:57 OrangePi pppd[1831]: sent [LCP ConfAck id=0x65 <asyncmap 0x0> <magic 0x1079e11a> <pcomp> <accomp>]
  31. May 13 01:00:57 OrangePi pppd[1831]: sent [LCP EchoReq id=0x0 magic=0xf79e11a]
  32. May 13 01:00:57 OrangePi pppd[1831]: kernel does not support PPP filtering
  33. May 13 01:00:57 OrangePi pppd[1831]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  34. May 13 01:01:24 OrangePi pppd[1831]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  35. May 13 01:01:27 OrangePi pppd[1831]: sent [LCP EchoReq id=0x1 magic=0xf79e11a]
  36. May 13 01:01:27 OrangePi pppd[1831]: IPCP: timeout sending Config-Requests
  37. May 13 01:01:27 OrangePi pppd[1831]: sent [LCP TermReq id=0x2 "No network protocols running"]
  38. May 13 01:01:27 OrangePi pppd[1831]: rcvd [LCP TermAck id=0x2 "No network protocols running"]
  39. May 13 01:01:27 OrangePi pppd[1831]: Connection terminated.
  40. May 13 01:01:27 OrangePi pppd[1831]: Exit.
  41. May 13 01:21:08 OrangePi pppd[3045]: pppd 2.4.7 started by tpickle, uid 0
  42. May 13 01:21:08 OrangePi pppd[3045]: using channel 3
  43. May 13 01:21:08 OrangePi pppd[3045]: Using interface ppp0
  44. May 13 01:21:08 OrangePi pppd[3045]: Connect: ppp0 <--> /dev/modem0
  45. May 13 01:21:08 OrangePi pppd[3045]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa31604ee> <pcomp> <accomp>]
  46. May 13 01:21:08 OrangePi pppd[3045]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xa31604ee> <pcomp> <accomp>]
  47. May 13 01:21:08 OrangePi pppd[3045]: rcvd [LCP ConfReq id=0x65 <asyncmap 0x0> <magic 0xa41604ee> <pcomp> <accomp>]
  48. May 13 01:21:08 OrangePi pppd[3045]: sent [LCP ConfAck id=0x65 <asyncmap 0x0> <magic 0xa41604ee> <pcomp> <accomp>]
  49. May 13 01:21:08 OrangePi pppd[3045]: sent [LCP EchoReq id=0x0 magic=0xa31604ee]
  50. May 13 01:21:08 OrangePi pppd[3045]: kernel does not support PPP filtering
  51. May 13 01:21:08 OrangePi pppd[3045]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  52. May 13 01:21:32 OrangePi pppd[3045]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  53. May 13 01:21:35 OrangePi pppd[3045]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  54. May 13 01:21:38 OrangePi pppd[3045]: sent [LCP EchoReq id=0x1 magic=0xa31604ee]
  55. May 13 01:21:38 OrangePi pppd[3045]: IPCP: timeout sending Config-Requests
  56. <b>May 13 01:21:38 OrangePi pppd[3045]: sent [LCP TermReq id=0x2 "No network protocols running"]
  57. May 13 01:21:38 OrangePi pppd[3045]: rcvd [LCP TermAck id=0x2 "No network protocols running"]</b>
  58. May 13 01:21:38 OrangePi pppd[3045]: Connection terminated.
  59. May 13 01:21:38 OrangePi pppd[3045]: Exit.
  60. May 13 01:22:13 OrangePi pppd[3142]: pppd 2.4.7 started by tpickle, uid 0
  61. May 13 01:22:13 OrangePi pppd[3142]: using channel 4
  62. May 13 01:22:13 OrangePi pppd[3142]: Using interface ppp0
  63. May 13 01:22:13 OrangePi pppd[3142]: Connect: ppp0 <--> /dev/modem0
  64. May 13 01:22:13 OrangePi pppd[3142]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x5e19d54d> <pcomp> <accomp>]
  65. May 13 01:22:14 OrangePi pppd[3142]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x5e19d54d> <pcomp> <accomp>]
  66. May 13 01:22:14 OrangePi pppd[3142]: rcvd [LCP ConfReq id=0x65 <asyncmap 0x0> <magic 0x5f19d54d> <pcomp> <accomp>]
  67. May 13 01:22:14 OrangePi pppd[3142]: sent [LCP ConfAck id=0x65 <asyncmap 0x0> <magic 0x5f19d54d> <pcomp> <accomp>]
  68. May 13 01:22:14 OrangePi pppd[3142]: sent [LCP EchoReq id=0x0 magic=0x5e19d54d]
  69. May 13 01:22:14 OrangePi pppd[3142]: kernel does not support PPP filtering
  70. May 13 01:22:14 OrangePi pppd[3142]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  71. May 13 01:22:41 OrangePi pppd[3142]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  72. May 13 01:22:44 OrangePi pppd[3142]: sent [LCP EchoReq id=0x1 magic=0x5e19d54d]
  73. May 13 01:22:44 OrangePi pppd[3142]: IPCP: timeout sending Config-Requests
  74. May 13 01:22:44 OrangePi pppd[3142]: sent [LCP TermReq id=0x2 "No network protocols running"]
  75. May 13 01:22:44 OrangePi pppd[3142]: rcvd [LCP TermAck id=0x2 "No network protocols running"]
  76. May 13 01:22:44 OrangePi pppd[3142]: Connection terminated.
  77. May 13 01:22:44 OrangePi pppd[3142]: Exit.
  78. May 13 01:23:30 OrangePi pppd[3230]: pppd 2.4.7 started by tpickle, uid 0
  79. May 13 01:23:30 OrangePi pppd[3230]: using channel 5
  80. May 13 01:23:30 OrangePi pppd[3230]: Using interface ppp0
  81. May 13 01:23:30 OrangePi pppd[3230]: Connect: ppp0 <--> /dev/modem0
  82. May 13 01:23:30 OrangePi pppd[3230]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb32a50e9> <pcomp> <accomp>]
  83. May 13 01:23:30 OrangePi pppd[3230]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xb32a50e9> <pcomp> <accomp>]
  84. May 13 01:23:30 OrangePi pppd[3230]: rcvd [LCP ConfReq id=0x65 <asyncmap 0x0> <magic 0xb42a50e9> <pcomp> <accomp>]
  85. May 13 01:23:30 OrangePi pppd[3230]: sent [LCP ConfAck id=0x65 <asyncmap 0x0> <magic 0xb42a50e9> <pcomp> <accomp>]
  86. May 13 01:23:30 OrangePi pppd[3230]: sent [LCP EchoReq id=0x0 magic=0xb32a50e9]
  87. <b>May 13 01:23:30 OrangePi pppd[3230]: kernel does not support PPP filtering</b>
  88. May 13 01:23:31 OrangePi pppd[3230]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  89. May 13 01:23:55 OrangePi pppd[3230]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  90. May 13 01:23:58 OrangePi pppd[3230]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>
  91. May 13 01:24:00 OrangePi pppd[3230]: sent [LCP EchoReq id=0x1 magic=0xb32a50e9]
  92. May 13 01:24:01 OrangePi pppd[3230]: IPCP: timeout sending Config-Requests
  93. May 13 01:24:01 OrangePi pppd[3230]: sent [LCP TermReq id=0x2 "No network protocols running"]
  94. May 13 01:24:01 OrangePi pppd[3230]: rcvd [LCP TermAck id=0x2 "No network protocols running"]
  95. May 13 01:24:01 OrangePi pppd[3230]: Connection terminated.
  96. May 13 01:24:01 OrangePi pppd[3230]: Exit.
Copy code
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list