{"id":1491,"date":"2018-04-04T15:48:55","date_gmt":"2018-04-04T19:48:55","guid":{"rendered":"http:\/\/www.xavignu.com\/?p=1491"},"modified":"2018-04-09T15:31:34","modified_gmt":"2018-04-09T19:31:34","slug":"pepephone-2g-on-orange-pi-2g-iot","status":"publish","type":"post","link":"https:\/\/www.xavignu.com\/?p=1491","title":{"rendered":"Pepephone 2G on Orange Pi 2G IOT"},"content":{"rendered":"<p>Recently I bought an <a href=\"http:\/\/www.orangepi.org\/OrangePi2GIOT\/\" target=\"_blank\">Orange Pi 2G IOT<\/a>. Pretty decent for $10 I would say, not a lot or RAM or CPU, but the interesting thing from my point of view is the <a href=\"https:\/\/en.wikipedia.org\/wiki\/2G\" target=\"_blank\">2G<\/a> modem. Some pictures below with SIM card installed.<br \/>\n<a href=\"http:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-1.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-1.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-full wp-image-1492\" srcset=\"https:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-1.jpg 1024w, https:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-1-300x169.jpg 300w, https:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-1-768x432.jpg 768w, https:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-1-624x351.jpg 624w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><br \/>\n<a href=\"http:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-2.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-2.jpg\" alt=\"\" width=\"432\" height=\"768\" class=\"aligncenter size-full wp-image-1493\" srcset=\"https:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-2.jpg 432w, https:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/03\/OrangePi-2GIOT-2-169x300.jpg 169w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/a><br \/>\nSo the idea of this post is how to configure this device to connect to <a href=\"https:\/\/www.pepephone.com\/\" target=\"_blank\">Pepephone<\/a> network with a PIN on SIM. After some testing I finally came up with below wvdial.conf which works for me.<br \/>\n[text]<br \/>\n[Dialer defaults]<br \/>\nModem = \/dev\/modem0<br \/>\nBaud = 30720000<br \/>\nDial Command = ATDT<br \/>\nInit1 = ATE1<br \/>\nInit2 = AT+CPIN=&#8221;XXXX&#8221;<br \/>\nInit3 = AT+CFUN=1<br \/>\nInit4 = AT+CGATT=1<br \/>\nInit5 = AT+CGDCONT=1,&#8221;IP&#8221;,&#8221;gprs.pepephone.com&#8221;,&#8221;&#8221;,0,0<br \/>\nFlowControl = CRTSCTS<br \/>\nPhone = *99#<br \/>\nUsername = &#8221; &#8221;<br \/>\nPassword = &#8221; &#8221;<br \/>\nStupid Mode = 1<br \/>\nAuto Reconnect = on<br \/>\n[\/text]<br \/>\nPin entry above should be replaced with your SIM pin.<br \/>\nExecute running wvdial from cli and you should be able to see a new interface named ppp0. Below is a screenshot of both interfaces ppp0 and wlan0.<a href=\"http:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/04\/ppp0.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/04\/ppp0.jpg\" alt=\"\" width=\"432\" height=\"768\" class=\"aligncenter size-full wp-image-1503\" srcset=\"https:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/04\/ppp0.jpg 432w, https:\/\/www.xavignu.com\/wp-content\/uploads\/2018\/04\/ppp0-169x300.jpg 169w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/a>More info <a href=\"http:\/\/surfero.blogspot.com.es\/2017\/04\/freedompop-orange-pi-2g-iot.html?m=1\" target=\"_blank\">here<\/a> (in spanish).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I bought an Orange Pi 2G IOT. Pretty decent for $10 I would say, not a lot or RAM or CPU, but the interesting thing from my point of view is the 2G modem. Some pictures below with SIM card installed. So the idea of this post is how to configure this device to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[92],"tags":[56,22,6,93,94],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/pTQgt-o3","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts\/1491"}],"collection":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1491"}],"version-history":[{"count":7,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts\/1491\/revisions"}],"predecessor-version":[{"id":1505,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts\/1491\/revisions\/1505"}],"wp:attachment":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}