please choosego to mobile | Continue to access the PC version
View: 39607|Reply: 48

Big News! OrangePi 2G-IOT utilize GSM to connect Internet!

[Copy link]

10

threads

35

posts

305

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
305
Published in 2017-6-6 13:36:06 | Show all floors |Read mode
Edited by Buddy at 2017-6-6 13:36

Hi All friends:
  OrangePi 2G-IOT which base on 2G Modem, people can utilze GSM to connect Internet, Some day ago, it has been a hard work to make it work.
  But now, It's OK we can utilze GSM easily to connect Internel.

  Now, new Image (Ubuntu, Debian and Raspbian) has supported connect Internet via GSM.
  So, this section will introduce how to use OrangePi 2G-IOT Linux distro to connect Internet via GSM.
  We have two way to make it work.
1. Use new Linux distro Image from http://www.orangepi.org/downloadresources/
      You can follow steps:
      First, we need a SIM card. OrangePi 2G-IOT SIM support list:
Frequency Range: 850,900,1800,1900
Standard: GSM800

I use China Unicom SIM
               
      Second, Download new OrangePi 2G-IOT Linux distro Image from http://www.orangepi.org/downloadresources/
               
         Then, utilze "dd" write Image into SD-card

      Next.  Plug SIM card and SD card  into OrangePi 2G-IOT, then startup....
               
      Finally, Utilize "wvdial" to connect Internel, such as      
  1. wvdial  Tom &
Copy code
            
              

2. Legacy Linux Image
     The Legacy Linux Image for OragePi 2G-IOT. You can follow steps
     
     First, startup your linux distro, (now support Ubuntu, Debian, Raspbian).
     Install essential tools, such as:         
  1. sudo apt-get install ppp wvdial
Copy code

     Second, Configure wvdial      
  1. vi /etc/wvdial.conf
Copy code
    Adding new contents
  1. [Dialer defaults]
  2. ISDN = 0
  3. Modem Type = Analog Modem
  4. Phone = *99***1#
  5. Stupid Mode = 1
  6. Dial Command = ATDT
  7. Modem = /dev/modem0
  8. Baud = 460800
  9. Init1 = AT+COPS=0
  10. Init2 = AT+CFUN=1
  11. Init3 = AT+CGATT=1
  12. Init4 = AT+CGDCONT=1,"IP","OrangePi_2G-IOT","",0,0
  13. Init5 = AT+CGACT=1,1
  14. Username = " "
  15. Password = " "
Copy code
      Configure ppp, such as:               
  1. vi /etc/ppp/peers/wvdial
Copy code
      Alter contents:
               
  1.   noauth
  2.   name wvdial
  3.   defaultroute
  4.   replacedefaultroute
Copy code
   The last, utilize wvdial to connect Internet. such as:               
  1. wvdial Tom &
Copy code
   Now, you can easily connect Internet.
            
            
   *** End ***

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

3

threads

62

posts

950

credits

Senior member

Rank: 4

credits
950
Published in 2017-6-19 20:51:52 | Show all floors
Buddy replied at 2017-6-19 20:47
Write Linux distro into NAND?

Yes, if that posible. Sd card very unstable not all sd card are work and some of them working with problems

10

threads

35

posts

305

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
305
 Author| Published in 2017-6-7 13:59:55 | Show all floors
crossmax replied at 2017-6-6 22:43
Weeks ago that happened and it was difficult to find the solution.

I would like to load the OS o ...

I am trying porting WiringPi into OrangePi 2G-IOT, please wait.....

3

threads

62

posts

950

credits

Senior member

Rank: 4

credits
950
Published in 2017-6-6 15:36:04 | Show all floors
Thanks Great job

6

threads

70

posts

370

credits

Intermediate member

Rank: 3Rank: 3

credits
370
Published in 2017-6-6 16:16:38 from mobile | Show all floors
Thanks for your work, i use gprs in Spain witch iot since 8 weeks:

6

threads

70

posts

370

credits

Intermediate member

Rank: 3Rank: 3

credits
370
Published in 2017-6-6 16:17:43 from mobile | Show all floors
Now we have problems witch gpio pins, any onfo for this? Thanks

10

threads

35

posts

305

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
305
 Author| Published in 2017-6-6 18:07:31 | Show all floors
surfero75 replied at 2017-6-6 16:17
Now we have problems witch gpio pins, any onfo for this? Thanks

I have a test module for gpio on New Linux image,
you can find in /lib/modules/xxx/kernel/driver/gpio/Non_OrangePi_2G-IOTxxxx.ko
then insmod *.ko
you can find the gpio on /sys/class/gpio_OrangePi/PBX
But, it's a test modules...

6

threads

70

posts

370

credits

Intermediate member

Rank: 3Rank: 3

credits
370
Published in 2017-6-6 18:52:13 from mobile | Show all floors
Edited by surfero75 at 2017-6-6 18:53

Ok, i go to test this gpio modules. thanks for your work

6

threads

70

posts

370

credits

Intermediate member

Rank: 3Rank: 3

credits
370
Published in 2017-6-6 21:02:58 | Show all floors
if you dont modify /etc/ppp/options and edit lcp-echo-failure 4 the gprs conection disconnect after 2 minutes

4

threads

38

posts

337

credits

Intermediate member

Rank: 3Rank: 3

credits
337
Published in 2017-6-6 22:43:45 | Show all floors
surfero75 replied at 2017-6-6 21:02
if you dont modify /etc/ppp/options and edit lcp-echo-failure 4 the gprs conection disconnect after  ...


Weeks ago that happened and it was difficult to find the solution.

I would like to load the OS on emmc and have available a wiringOP library. When? Any estimate?

6

threads

70

posts

370

credits

Intermediate member

Rank: 3Rank: 3

credits
370
Published in 2017-6-7 14:43:41 | Show all floors
Buddy replied at 2017-6-7 13:59
I am trying porting WiringPi into OrangePi 2G-IOT, please wait.....

If you need persons for test please tell us, we have a telegram group for help witch this board:
http://surfero.blogspot.com.es/2 ... ot-referencias.html
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list