====== EM06 LTE 4G Module ======
===== Introduction =====
This page mainly introduces how to use the [[https://www.khadas.com/product-page/4g-lte-module | EM06 LTE module]] from three parts. The first part is about how to query the support list of the LTE module, the second is some related operations under Ubuntu, and the third is some related operations under Android.
===== Support Check =====
You can view it on the following two pages:
* [[https://www.frequencycheck.com/carriers|Frequency check]]
* [[https://www.spectrummonitoring.com/frequencies|Spectrum monitoring]]
===== Ubuntu =====
==== Preparation ====
=== Setup LTE Module ===
Install ''minicom'' in your SBC.
```shell
sudo apt update
sudo apt install minicom
```
Setting to ''usbnet'' mode.
```shell
sudo minicom -D /dev/ttyUSB2
```
After open ''minicom'' , enter:
```txt
AT+QCFG="usbnet",2
OK
```
LTE module needs power down and restart to switch mode. Unplug your SBC and plug again. LTE module now works in ''usbnet'' mode.
How to restore your LTE module?
```
AT+QCFG="usbnet",0
```
Unplug your SBC and plug again to switch back to default mode.
==== Connect Network ====
Find ''edit connections'' in network menu.
{{/products/sbc/common/add-ons/xfce-lte1.png?800|xfce1}}
Add a new connection.
{{/products/sbc/common/add-ons/xfce-lte2.png?800|xfce2}}
Choose the connection type ''Mobile Broadband''.
{{/products/sbc/common/add-ons/xfce-lte3.png?800|xfce3}}
Choose where you are.
{{/products/sbc/common/add-ons/xfce-lte4.png?800|xfce4}}
Choose provider, this needs to be set according to your SIM card.
{{/products/sbc/common/add-ons/xfce-lte5.png?800|xfce5}}
Set your LTE module connection passwork, you need to remember it .
{{/products/sbc/common/add-ons/xfce-lte6.png?800|xfce6}}
Now, you can connect it, LTE module connections will be found in network menu.
{{/products/sbc/common/add-ons/xfce-lte7.png?800|xfce7}}
Input the password which you set.
{{/products/sbc/common/add-ons/xfce-lte8.png?800|xfce8}}
Finally, you will connect successfully!
Click the menu bar in the upper right corner to see the ''mobile board settings'' option.
{{/products/sbc/common/add-ons/gnome-lte1.png?800|gnome-lte1}}
Click the ''Network'', choose ''Add new connection'', and then click ''Next''.
{{/products/sbc/common/add-ons/gnome-lte2.png?800|gnome-lte2}}
{{/products/sbc/common/add-ons/gnome-lte3.png?800|gnome-lte3}}
Choose where you are.
{{/products/sbc/common/add-ons/gnome-lte4.png?800|gnome-lte4}}
Choose provider, this needs to be set according to your SIM card.
{{/products/sbc/common/add-ons/gnome-lte5.png?800|gnome-lte5}}
After choosing provider, the next two steps are to use defconfiguration. So you just need to choose ''next''. And then click ''apply'' . Now, you need a password, default is ''000''.
{{/products/sbc/common/add-ons/gnome-lte6.png?800|gnome-lte6}}
{{/products/sbc/common/add-ons/gnome-lte7.png?800|gnome-lte7}}
After entering the password, you can connect normally.
{{/products/sbc/common/add-ons/gnome-lte8.png?800|gnome-lte8}}
Open the corresponding settings and update the password in ''mobile broadband''.
{{/products/sbc/common/add-ons/gnome-lte9.png?800|gnome-lte9}}
```shell
$ sudo nmcli connection add type gsm apn 3gnet user 0000 password 0000 con-name "EM06 4G"
```
==== Check Network ====
```shell
$ ifconfig ppp0
ppp0: flags=4305 mtu 1500
inet 10.142.115.111 netmask 255.255.255.255 destination 10.64.64.64
inet6 2408:8456:3230:3bc4:ea2c:150e:a766:2645 prefixlen 64 scopeid 0x0
inet6 fe80::76b9:a691:80fe:992e prefixlen 64 scopeid 0x20
inet6 2408:8456:3230:3bc4:a25f:a92d:d49:f994 prefixlen 64 scopeid 0x0
inet6 fe80::5008:29a0:42fb:cd12 prefixlen 64 scopeid 0x20
inet6 2408:8456:3230:3bc4:a7ab:fe70:2367:66d6 prefixlen 64 scopeid 0x0
inet6 2408:8456:3230:3bc4:5008:29a0:42fb:cd12 prefixlen 64 scopeid 0x0
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 100 bytes 8864 (8.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 109 bytes 8083 (8.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
```
Use ping command to test.
```shell
$ sudo ping www.baidu.com -I ppp0
```
```shell
$ ifconfig wwan0
wwan0: flags=4291 mtu 1430
inet 10.31.233.176 netmask 255.255.255.224 broadcast 10.31.233.191
ether 46:57:61:32:f4:a5 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 764 (764.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
```
Use ping command to test.
```shell
$ sudo ping www.baidu.com -I www0
```
If your LTE module works normally, it will be successful.