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

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 1623|Reply: 3

OPi 2g IoT - Automate 2g Connection

[Copy link]

3

Threads

19

Posts

87

Credits

Registered member

Rank: 2

Credits
87
Post time 2017-10-9 19:38:31 | Show all posts |Read mode
Hi everybody,

I am using the Ubuntu distro on my OPi 2g IoT

How can I configure Modem Manager & Network Manager so that a 2G-PPP connection is required for networking to start the board? What would help:

- 2G PPP connection established to initiate the board in a way that if I don't have it connected it does not initiate.
- Set the Network Manager & Modem Manager to redial and reconnect everytime it drops or fails to initiate.

I am not really experienced with Network Manager and Modem Manager so if you can please leave the step-by-step instruction since the installation till the final configuration itself would be really helpful for all users for sure.

Many thanks!

58

Threads

662

Posts

3754

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
3754
Post time 2017-10-9 19:49:00 | Show all posts
Can the user manual help you?

3

Threads

19

Posts

87

Credits

Registered member

Rank: 2

Credits
87
 Author| Post time 2017-10-9 20:13:50 | Show all posts
Hi! Thanks for the answer

The version 9.9 does have instructions for how to establish a ppp connection. It is great. But this I have already accomplished. What I am having trouble by now is how to automate this connection and set this to be always connected, redial when it drops and so on. I believe it should be done through Network Manager and Modem Manager but I don't have experience with those

Thanks!

3

Threads

19

Posts

87

Credits

Registered member

Rank: 2

Credits
87
 Author| Post time 2017-10-23 20:03:07 | Show all posts
Problem solved using a python script that contains the 'os' library to call an external command and runs repeatedly, for example, os.system('sudo wvdial &'). It calls wvdial on terminal.

It can also initiate automatically on the /etc/rc.local file calling the .py file

Further information if needed let me know, thanks!
You have to log in before you can reply Login | Register

Points Rules

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

2020-2-28 20:13 GMT+8 , Processed in 0.029504 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list