drazvan post at 2017-4-19 22:10:02

Orange PI 2G IOT GSM modem port in Ubuntu

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

drazvan post at 2017-4-25 19:04:51

See http://surfero.blogspot.com.es/2017/04/configurar-modem-gsm-en-la-orange-pi-2g.html (in Spanish) for how to make it work with wvdial. It worked fine for me.

aaminotti post at 2017-4-23 17:45:01

Hi, I interested too.

forcead post at 2017-4-24 03:54:46


Hi, I interested too.

tpickle post at 2017-5-10 06:08:27

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

tpickle post at 2017-5-10 07:32:54

root@OrangePi:~# cat /etc/wvdial.conf

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:~#

root@OrangePi:~# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATE1
ATE1
OK
--> Sending: AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
+CME ERROR:58
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATE1
ATE1
OK
--> Sending: AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
+CME ERROR:58
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATE1
ATE1
OK
--> Sending: AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
AT + CGDCONT = 1, "IP", "wap.tracfone", "", 0,0
+CME ERROR:58
--> Bad init string.

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

kawapiki post at 2017-5-11 21:48:46

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.

tpickle post at 2017-5-13 08:09:16

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 nextroot@OrangePi:/var/log# wvdial &
18675
root@OrangePi:/var/log# --> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATE1
ATE1
OK
--> Sending: AT+CGDCONT=1,"IP","wap.tracfone","",0,0
AT+CGDCONT=1,"IP","wap.tracfone","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.Starting PPP immediately.
--> Starting pppd at Sat May 13 00:01:34 2017
--> Pid of pppd: 18676
--> Disconnecting at Sat May 13 00:01:34 2017
--> The PPP daemon has died: pppd options error (exit code = 2)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 2)
root@OrangePi:/var/log# cat /etc/wvdial.conf

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



tpickle post at 2017-5-13 08:16:25

root@OrangePi:/var/log# wvdial &
18910
root@OrangePi:/var/log# --> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATE1
--> Sending: ATQ0
--> Re-Sending: ATE1
--> Modem not responding.

+Exit 1                  wvdial

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

tpickle post at 2017-5-13 09:34:24

Some log data and configs

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

#plugin passwordfd.so

defaultroute
replacedefaultroute
root@OrangePi:~# cat /etc/ppp/peers/wvdial
noauth
name wvdial
debug
usepeerdns
defaultroute
noipdefault
mtu 472
root@OrangePi:~# cat /etc/wvdial.conf

Modem = /dev/modem0
Baud = 9600
Dial Command = ATDT
Init1 = ATE1
#Init2 = AT&V
Init3 = AT+CSQ
Init4 = AT+CGDCONT=1,"IP","tfdata","",0,0
#Init2 = AT+CGDCONT=1,"IP","wap.tracfone","",0,0
FlowControl = CRTSCTS
#Init3 = ATM0
Phone = *99#
Username = orange
Password = orange
Stupid Mode = 1
root@OrangePi:~# journalctl -t pppd
-- Logs begin at Sat 2017-05-13 00:54:01 UTC, end at Sat 2017-05-13 01:24:06 UTC. --
May 13 00:58:12 OrangePi pppd: pppd 2.4.7 started by tpickle, uid 0
May 13 00:58:12 OrangePi pppd: speed 30720000 not supported
May 13 00:58:12 OrangePi pppd: using channel 1
May 13 00:58:12 OrangePi pppd: Using interface ppp0
May 13 00:58:12 OrangePi pppd: Connect: ppp0 <--> /dev/modem0
May 13 00:58:12 OrangePi pppd: sent
May 13 00:58:12 OrangePi pppd: rcvd
May 13 00:58:12 OrangePi pppd: rcvd
May 13 00:58:12 OrangePi pppd: sent
May 13 00:58:12 OrangePi pppd: sent
May 13 00:58:12 OrangePi pppd: kernel does not support PPP filtering
May 13 00:58:13 OrangePi pppd: 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>
May 13 00:58:40 OrangePi pppd: 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>
May 13 00:58:42 OrangePi pppd: sent
May 13 00:58:43 OrangePi pppd: IPCP: timeout sending Config-Requests
May 13 00:58:43 OrangePi pppd: sent
May 13 00:58:43 OrangePi pppd: rcvd
May 13 00:58:43 OrangePi pppd: Connection terminated.
May 13 00:58:43 OrangePi pppd: Exit.
May 13 01:00:57 OrangePi pppd: pppd 2.4.7 started by tpickle, uid 0
May 13 01:00:57 OrangePi pppd: speed 30720000 not supported
May 13 01:00:57 OrangePi pppd: using channel 2
May 13 01:00:57 OrangePi pppd: Using interface ppp0
May 13 01:00:57 OrangePi pppd: Connect: ppp0 <--> /dev/modem0
May 13 01:00:57 OrangePi pppd: sent
May 13 01:00:57 OrangePi pppd: rcvd
May 13 01:00:57 OrangePi pppd: rcvd
May 13 01:00:57 OrangePi pppd: sent
May 13 01:00:57 OrangePi pppd: sent
May 13 01:00:57 OrangePi pppd: kernel does not support PPP filtering
May 13 01:00:57 OrangePi pppd: 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>
May 13 01:01:24 OrangePi pppd: 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>
May 13 01:01:27 OrangePi pppd: sent
May 13 01:01:27 OrangePi pppd: IPCP: timeout sending Config-Requests
May 13 01:01:27 OrangePi pppd: sent
May 13 01:01:27 OrangePi pppd: rcvd
May 13 01:01:27 OrangePi pppd: Connection terminated.
May 13 01:01:27 OrangePi pppd: Exit.
May 13 01:21:08 OrangePi pppd: pppd 2.4.7 started by tpickle, uid 0
May 13 01:21:08 OrangePi pppd: using channel 3
May 13 01:21:08 OrangePi pppd: Using interface ppp0
May 13 01:21:08 OrangePi pppd: Connect: ppp0 <--> /dev/modem0
May 13 01:21:08 OrangePi pppd: sent
May 13 01:21:08 OrangePi pppd: rcvd
May 13 01:21:08 OrangePi pppd: rcvd
May 13 01:21:08 OrangePi pppd: sent
May 13 01:21:08 OrangePi pppd: sent
May 13 01:21:08 OrangePi pppd: kernel does not support PPP filtering
May 13 01:21:08 OrangePi pppd: 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>
May 13 01:21:32 OrangePi pppd: 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>
May 13 01:21:35 OrangePi pppd: 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>
May 13 01:21:38 OrangePi pppd: sent
May 13 01:21:38 OrangePi pppd: IPCP: timeout sending Config-Requests
<b>May 13 01:21:38 OrangePi pppd: sent
May 13 01:21:38 OrangePi pppd: rcvd </b>
May 13 01:21:38 OrangePi pppd: Connection terminated.
May 13 01:21:38 OrangePi pppd: Exit.
May 13 01:22:13 OrangePi pppd: pppd 2.4.7 started by tpickle, uid 0
May 13 01:22:13 OrangePi pppd: using channel 4
May 13 01:22:13 OrangePi pppd: Using interface ppp0
May 13 01:22:13 OrangePi pppd: Connect: ppp0 <--> /dev/modem0
May 13 01:22:13 OrangePi pppd: sent
May 13 01:22:14 OrangePi pppd: rcvd
May 13 01:22:14 OrangePi pppd: rcvd
May 13 01:22:14 OrangePi pppd: sent
May 13 01:22:14 OrangePi pppd: sent
May 13 01:22:14 OrangePi pppd: kernel does not support PPP filtering
May 13 01:22:14 OrangePi pppd: 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>
May 13 01:22:41 OrangePi pppd: 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>
May 13 01:22:44 OrangePi pppd: sent
May 13 01:22:44 OrangePi pppd: IPCP: timeout sending Config-Requests
May 13 01:22:44 OrangePi pppd: sent
May 13 01:22:44 OrangePi pppd: rcvd
May 13 01:22:44 OrangePi pppd: Connection terminated.
May 13 01:22:44 OrangePi pppd: Exit.
May 13 01:23:30 OrangePi pppd: pppd 2.4.7 started by tpickle, uid 0
May 13 01:23:30 OrangePi pppd: using channel 5
May 13 01:23:30 OrangePi pppd: Using interface ppp0
May 13 01:23:30 OrangePi pppd: Connect: ppp0 <--> /dev/modem0
May 13 01:23:30 OrangePi pppd: sent
May 13 01:23:30 OrangePi pppd: rcvd
May 13 01:23:30 OrangePi pppd: rcvd
May 13 01:23:30 OrangePi pppd: sent
May 13 01:23:30 OrangePi pppd: sent
<b>May 13 01:23:30 OrangePi pppd: kernel does not support PPP filtering</b>
May 13 01:23:31 OrangePi pppd: 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>
May 13 01:23:55 OrangePi pppd: 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>
May 13 01:23:58 OrangePi pppd: 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>
May 13 01:24:00 OrangePi pppd: sent
May 13 01:24:01 OrangePi pppd: IPCP: timeout sending Config-Requests
May 13 01:24:01 OrangePi pppd: sent
May 13 01:24:01 OrangePi pppd: rcvd
May 13 01:24:01 OrangePi pppd: Connection terminated.
May 13 01:24:01 OrangePi pppd: Exit.
page: [1] 2
View full version: Orange PI 2G IOT GSM modem port in Ubuntu