Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
1234Next
Return to list New
View: 4444|Reply: 32

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
Post time 2017-6-6 13:36:06 | Show all posts |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 the 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 the Code

     Second, Configure wvdial      
  1. vi /etc/wvdial.conf
Copy the 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 the Code
      Configure ppp, such as:               
  1. vi /etc/ppp/peers/wvdial
Copy the Code
      Alter contents:
               
  1.   noauth
  2.   name wvdial
  3.   defaultroute
  4.   replacedefaultroute
Copy the Code
   The last, utilize wvdial to connect Internet. such as:               
  1. wvdial Tom &
Copy the Code
   Now, you can easily connect Internet.
            
            
   *** End ***

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

1

Threads

48

Posts

684

Credits

Senior member

Rank: 4

Credits
684
Post time 2017-6-19 20:51:52 | Show all posts
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| Post time 2017-6-7 13:59:55 | Show all posts
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.....

1

Threads

48

Posts

684

Credits

Senior member

Rank: 4

Credits
684
Post time 2017-6-6 15:36:04 | Show all posts
Thanks Great job

6

Threads

70

Posts

364

Credits

Intermediate member

Rank: 3Rank: 3

Credits
364
Post time 2017-6-6 16:16:38 From the mobile phone | Show all posts
Thanks for your work, i use gprs in Spain witch iot since 8 weeks:

6

Threads

70

Posts

364

Credits

Intermediate member

Rank: 3Rank: 3

Credits
364
Post time 2017-6-6 16:17:43 From the mobile phone | Show all posts
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| Post time 2017-6-6 18:07:31 | Show all posts
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

364

Credits

Intermediate member

Rank: 3Rank: 3

Credits
364
Post time 2017-6-6 18:52:13 From the mobile phone | Show all posts
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

364

Credits

Intermediate member

Rank: 3Rank: 3

Credits
364
Post time 2017-6-6 21:02:58 | Show all posts
if you dont modify /etc/ppp/options and edit lcp-echo-failure 4 the gprs conection disconnect after 2 minutes

2

Threads

23

Posts

195

Credits

Registered member

Rank: 2

Credits
195
Post time 2017-6-6 22:43:45 | Show all posts
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

364

Credits

Intermediate member

Rank: 3Rank: 3

Credits
364
Post time 2017-6-7 14:43:41 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2017-10-22 21:53 GMT+8 , Processed in 0.040328 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list