add LTE Network Over COM Tutorial

This commit is contained in:
Gitshaoxiang
2021-01-15 17:38:37 +08:00
parent fe3d548970
commit c44650debe
10 changed files with 170 additions and 21 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

+8 -2
View File
@@ -182,9 +182,15 @@ The following content is for reference only.
## Example
To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMX_LTE)
### Arduino IDE
<el-divider content-position="right">Last updated: 2020-12-24</el-divider>
[Arduino Example Code](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMX_LTE)
### UIFlow
[UIFLow Network Over COM.LTE Tutorial](en/quick_start/comx_lte/network_over_com)
<el-divider content-position="right">Last updated: 2021-1-15</el-divider>
<script>
@@ -0,0 +1,123 @@
# Network Over COM.LTE tutorial
>Network Over COM.LTE mode enables all network data to be sent via LTE when the device uses UIFlow.
>Note: When `CORE2` uses `Network Over COM.LTE mode`, the 5V power supply of the M-BUS will be switched to input mode, please directly input 5V power to M-BUS or use a DC adapter to connect to LTE The module supplies power.
## Pre-requirements
### Driver Installation
>Before we start programming, users of M5Core type host (including BASIC/GRAY/M5GO/FIRE/FACES/CORE2) should download the corresponding CP210X driver compressed package according to the operating system you are using. After decompressing the package, Select the installation package corresponding to the number of operating systems to install.
* __Download CP210X driver__
<div class="files_download">
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_Windows.zip">
<img src="/image/base/Windows_logo.webp" width="50">
<span class="item-title">Windows10</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_MacOS.zip">
<img src="/image/base/MacOS_logo.webp" width="50">
<span class="item-title">MacOS</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_Linux.zip">
<img src="/image/base/Linux_logo.webp" width="50">
<span class="item-title">Linux</span>
</a>
</p>
</div>
<img src="/image/base/CP210X_install.gif "width="80%">
### Burning tool
>Please click the button below to download the corresponding M5Burner firmware burning tool according to the operating system you are using. Unzip and open the application.
<div class="files_download">
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner.zip">
<img src="/image/base/Windows_logo.webp" width="50">
<span class="item-title">Windows10</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner_MacOS.zip">
<img src="/image/base/MacOS_logo.webp" width="50">
<span class="item-title">MacOS</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner_Linux.zip">
<img src="/image/base/Linux_logo.webp" width="50">
<span class="item-title">Linux</span>
</a>
</p>
</div>
<img src="assets/img/getting_started_pics/how_to_burn_firmware/M5Burner/M5Burner_01.webp">
?>Note: After installation for MacOS users, please put the application into the Application folder, as shown in the figure below.
<img src="/image/base/application.webp" width="80%">
?>Note: For Linux users, please switch to the decompressed file path and run `./M5Burner` in the terminal to run the application.
### Firmware burning
>1. Double-click to open the Burner burning tool, select the corresponding device type in the left menu, select the firmware version you need, and click the download button to download.
<img src="assets/img/quick_start/core/burner_m5core01.webp" width="80%">
>2. Then connect the M5 device to the computer through the Type-C data cable, select the corresponding COM port, and click "Burn" to start burning.
<img src="assets/img/quick_start/core/burner_m5core02.webp" width="80%">
>3. When the burning log prompts `Burn Successfully`, it means that the firmware has been burned.
<img src="assets/img/quick_start/core/burner_done.webp" width="80%">
### LTE module
>1. Insert the MicroSIM card into the module card slot, adjust the DIP switch, `enable pins 13,5`, and connect the external antenna.
?>When using the CORE1 device, please adjust the DIP switch to `pin 13,5`, and CORE2 adjust the DIP switch to `pin 16,17`
<img src="assets/img/quick_start/comx_lte/lte_network_over_com_01.webp" width="80%">
## Set APN/Switch Mode
>1. Click `Configuration`, the software will start to read the configuration information of the current device. In the pop-up configuration box, you can reconfigure the APN according to the operator you are using. (The default APN is CMNET)
<img src="assets/img/quick_start/comx_lte/configuration.webp" width="80%">
<img src="assets/img/quick_start/comx_lte/config_window.webp" width="80%">
>2. Switch the device to COM.LTE working mode, you can set the `COM.X` option in the configuration box to `True`, or after the device is started, enter the Setup configuration page to switch modes.
<img src="assets/img/quick_start/comx_lte/lte_network_over_com_02.webp" width="80%">
## start using
>1. After the configuration is completed, it will be automatically activated after booting, and the inspection will begin. After passing the test, you will enter the programming mode page.
>2. Refer to the following case and request the URL `https://httpbin.org/ip` through http to obtain the current IP of the machine.
<img src="assets/img/quick_start/comx_lte/http_get_ip.webp" width="80%">
<script>
anchor_search();
scrollFunc();
</script>
+13 -9
View File
@@ -164,15 +164,6 @@
<img src = "assets/img/product_pics/module/com.x_lte/com.x_lte_sch.webp">
## 案例程序
### Arduino IDE
以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMX_LTE)
### UIFlow
[UIFLow Network Over COM.LTE使用教程](zh_CN/quick_start/comx_lte/network_over_com)
### 管脚映射
@@ -181,6 +172,19 @@
<tr><td>COM.LTE</td><td>RX</td><td>TX</td><td>VIN</td><td>GND</td></tr>
</table>
## 案例程序
### Arduino IDE
[Arduino Example Code](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMX_LTE)
### UIFlow
[UIFLow Network Over COM.LTE使用教程](zh_CN/quick_start/comx_lte/network_over_com)
<el-divider content-position="right">Last updated: 2021-1-15</el-divider>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/com-lte-modulesim7600g';
@@ -35,7 +35,7 @@
</p>
</div>
><img src="/image/base/CP210X_install.gif " width="70%">
><img src="/image/base/CP210X_install.gif " width="80%">
### 烧录工具
@@ -70,7 +70,7 @@
?>注意:MacOS用户安装完成后请将应用放入Application文件夹内,如下图所示。
><img src="/image/base/application.webp" width="70%">
><img src="/image/base/application.webp" width="80%">
?>注意:Linux用户请切换至解压文件路径下,在终端中运行`./M5Burner`, 运行应用。
@@ -78,21 +78,36 @@
>1.双击打开Burner烧录工具,在左侧菜单中选择对应的设备类型,选择你所需要的固件版本,点击下载按钮进行下载。
<img src="assets\img\quick_start\core\burner_m5core01.webp" width="70%">
<img src="assets/img/quick_start/core/burner_m5core01.webp" width="80%">
>2.然后将M5设备通过Type-C数据线连接到电脑,选择对应的COM口,点击"Burn"开始烧录.
<img src="assets\img\quick_start\core\burner_m5core02.webp" width="70%">
<img src="assets/img/quick_start/core/burner_m5core02.webp" width="80%">
>3.当烧录日志提示`Burn Successfully`时,则表示固件已经烧录完成。
<img src="assets\img\quick_start\core\burner_done.webp" width="70%">
<img src="assets/img/quick_start/core/burner_done.webp" width="80%">
### LTE模块
>1.将MicroSIM卡插入模块卡槽,并将拨码开关调整,`启用引脚13,5`,并连接好外部天线。
?>当使用CORE1设备时,请将拨码开关调整至`引脚13,5`CORE2则将拨码开关调整至`引脚16,17`
<img src="assets/img/quick_start/comx_lte/lte_network_over_com_01.webp" width="80%">
## 设置APN/切换模式
>1.点击`Configuration`,软件将开始读取当前设备的配置信息,在弹出的配置框中,你可以根据你所使用的运营商,重新配置APN。(默认APN为CMNET
>2.将设备切换至COM.LTE工作模式,你可以在配置框中将`COM.X`选项设置为`True`或是,在设备的启动后,进入Setup配置页面进行模式切换。
<img src="assets/img/quick_start/comx_lte/configuration.webp" width="80%">
<img src="assets/img/quick_start/comx_lte/config_window.webp" width="80%">
>2.将设备切换至COM.LTE工作模式,你可以在配置框中将`COM.X`选项设置为`True`,或是在设备的启动后,进入Setup配置页面进行模式切换。
<img src="assets/img/quick_start/comx_lte/lte_network_over_com_02.webp" width="80%">
## 开始使用
@@ -100,8 +115,9 @@
>2.参考以下案例,通过http请求URL`https://httpbin.org/ip`,获取本机当前IP。
<img src="assets/img/quick_start/comx_lte/http_get_ip.webp" width="80%">
<img src="assets\img\quick_start\comx_lte\http_get_ip.jpg" width="70%">
<script>
anchor_search();
scrollFunc();
</script>