please choosego to mobile | Continue to access the PC version
View: 11790|Reply: 13

3G-IOT how I installed linux

[Copy link]

5

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
Published in 2019-6-28 06:33:47 | Show all floors |Read mode
Edited by ekim at 2019-6-28 06:30

Hi, I bought a 3G-iot for a project that I am working on. It is a remote beehive monitoring system. I has it working well with an Arduino and a 2G module however 2G was closed in Australia. This lead me to Orange pi. To be honest, it has not been easy so far. This is the method that I have used to get linux on the 3G, and remote SSH as well as tightVNC. It should work for you too. Any comments are welcome. this is my first experience with orange pi. Hopefully it will make it easier for you.....

The first thing that I recomend is setting up PUTTY so you can see what is happening.
I got it from here.
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Install it.

You will need a usb to ttl converter. I used something like this...
https://www.aliexpress.com/item/32335363035.html?spm=a2g0s.9042311.0.0.27424c4dND06oD

Install the required driver on your pc.
Install Putty.

Ok, now connect them

This is the pinout from orange pi 3g


You can see pins 9 is ground. 11 is TX 13 is RX
connect them to your ttl converter  gnd-gnd  tx-rx rx-tx

now on your pc open settings device manager


and check which com port your adapter is on. Mine is on com 6




Open putty and set the settings These are my settings they are serial, your com port , and speed 921600 now click on serial and ensure flow control is none/ none. Just as in the photos.




Ok, you should be able to start your 3g-iot and see the output on your putty session.

One quite important thing.... when it starts, it pauses on some hashes for a few seconds. This seems to be the only time that you can flash to your orange pi. Remember this! It cost me hours to figure this out!

Ok, next get the drivers and flashing software from the orange pi site.
https://mega.nz/#F!WGwUhAZJ!xcc_4wd_UG_0OLruixz3ww

and the linux image
http://www.orangepi.org/downloadresources/orangepi3G-IOT/2018-12-03/c86e082a8b8bdc7a244d873cf3144356.html
note user .. root, password .. orangepi
or user ..orangepi , password ..orange pi

Install the driver, and the MTK flash tool.

Now unzip the linux file.
In the linux files is a file called a scatter file. the path to it on my system, in the linux files that you just unzipped is under image, as you can see from my path to it..
C:\Users\miker\Downloads\orange pi\3G_32g4g_linux_emmc_v01_20181129.tar\3G_32g4g_linux_emmc_v01_20181129\3G_32g4g_linux_system\images

Right, start the flashing tool, and add the scatter file to the apropriate box. The rest will auto populate.
Chose DOWNLOAD ONLY to avoid more work...

OK, fingers crossed, you are good to go.

install 3 jumpers.
The first across con 2
the second and third are in parallal orientation to con2


You can see a box to click to download. Clicking it required a bit of timing.
Have putty open and running.
Now plug a usb cable to the 3G-iot as well.
The 3G should start, and you should get info on putty.
If you have device manager running as well, you will see a comport open and close. Watch putty. When you see hashes like in the image below, click the download button.
There is more info in the 3g-iot manual aswell.
OK, congrats, you should have linux on your 3g-iot.
Next I'll post on resizing and SSH

.













This thread contains more resources

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

x

5

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2019-6-28 10:02:28 | Show all floors
Ok, now hopefully you have a linux on orange pi 3g-iotI recommend now resizing the file system. Unless you do this, you will be very limited in what you can do, as the image you have installed does not use all the memory of the device.

Rather than rehash it, I recommend you go to where I got the answer, on this thread.
http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=4327&extra=page%3D1

Thanks again to StGhost

5

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2019-6-28 10:35:42 | Show all floors
Edited by ekim at 2019-7-2 14:11

Ok, lets set up WIFI...
From a very nice post...
https://dogfeatherdesign.com/network-setup-orange-pi/

We don't have nano, but we do have vi or vim

So from the command prompt.....
$    vi /etc/network/interfaces

Add the following 4 lines to the end of the file:

type "i" to go to insert mode.
then ad the following lines...

auto wlan0
iface wlan0 inet dhcp
wpa-ssid ≺Your Access Point Name aka SSID≻          # wpa-ssid myNetwork
wpa-psk ≺Your WPA Password≻                         # wpa-psk myPassword

now press esc

now type ":w"
enter
and ":q"

type sudo reboot

now log back in

try ifconfig
you should have wifi.
Another method ...
http://sirlagz.net/2012/08/27/how-to-use-wpa_cli-to-connect-to-a-wireless-network/

5

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2019-6-28 10:49:28 | Show all floors
Now...

sudo apt-get update
sudo apt-get upgrade

sudo dpkg-reconfigure tzdata

Here is the sauce of this info

https://lucsmall.com/2017/01/19/ ... the-orange-pi-zero/

5

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2019-6-28 10:52:15 | Show all floors
My next project is getting a data connection via 3G
Any help would be appreciated.

5

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2019-7-6 14:48:59 | Show all floors
Edited by ekim at 2019-7-6 14:51

Ok, things are going slowly...
I finally got a static IP sorted...

vim /etc/network/interfaces

to open vim editor
Type i then edit the file


# interfaces(5) file used by ifup(8) and ifdown(8)auto lo wlan0
iface lo inet loopback
iface wlan0 inet static      
address xxx.xxx.xxx.xxx(enter your ip here)      
netmask xxx.xxx.xxx.xxx        
gateway xxx.xxx.xxx.xxx(enter gateway ip here,usually the address of your router)

Then esc
next  :wq
and reboot

https://www.howtoforge.com/tutorial/howto-set-a-static-ip-on-ubuntu/

5

threads

15

posts

109

credits

Registered member

Rank: 2

credits
109
 Author| Published in 2019-7-6 16:11:52 | Show all floors
Install & Access Graphical Desktop on Ubuntu/Debian VPS
Note: It is better not to run these commands as root user. Add a new user and give them sudo permission. Install and run these from the user account, more secured.
Check and do system update with the two following commands
sudo apt-get updatesudo apt-get upgrade
Installing the required packages.
sudo apt-get install nano xorg lxde-core tightvncserver
We can start our tightvncserver with the following command.
vncserver
This will ask you for a password. When it asks if you want read only access, type ‘n‘ and press Enter. The server will start at your_ip_or_domain:1. Don’t try to access it yet. First kill the vncserver using the following command.
vncserver -kill :1
Then we need to change the config file.
nano ~/.vnc/xstartup
Add the following two lines at the end of the file.
lxterminal & /usr/bin/lxsession -s LXDE &
After the edit the config file will look like this:
#!/bin/shxrdb $HOME/.Xresourcesxsetroot -solid grey#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &#x-window-manager &# Fix to make GNOME workexport XKL_XMODMAP_DISABLE=1/etc/X11/Xsessionlxterminal &/usr/bin/lxsession -s LXDE &
Save and close the file by pressing ctrl + x, then y and press Enter. Restart your vncserver with the following command:
vncserver
Now use any VNC-client software in your computer, phone or tablet to connect to your Linux VPS. You can use your domain name or ip ending with :1 and the password your entered earlier. And, the here you go. GUI enabled on your Ubuntu / Debian server or VPS.





1

threads

3

posts

23

credits

Novice

Rank: 1

credits
23
Published in 2021-1-9 03:24:51 | Show all floors
Hi there!
Thanks for your post. Would you tell me please what are the maximum bandwidths of its uplink and downlink?

0

threads

4

posts

70

credits

Registered member

Rank: 2

credits
70
Published in 2023-4-1 05:38:11 | Show all floors
This post was finally edited by DyadyaGenya at 2023-4-1 05:45

Can you re-take screenshots, because for some reason your old ones do not open for me?

0

threads

139

posts

784

credits

Senior member

Rank: 4

credits
784
Published in 2024-6-13 15:16:00 | Show all floors
Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for.        https://wartasatu.id/wp-content/news/
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list