Changes

Jump to: navigation, search

Orange Pi 3G- IoT -A

201 bytes removed, 11:28, 1 July 2022
Before Usage
== '''Orange Pi Introduction''' ==
<br>
=== '''What is Orange Pi 3G-IOTIoT?''' ===
<br>
It’s an open-source single-board computer. It can run Android4.4、Linux. It uses the MTK serial MT6572 CPU.<br>
<br>
 === '''What can I do with Orange Pi 3G-IOTIoT?''' ===
<br>
You can use it to build…<br>
* Android
* Scratch
Pretty much anything else, because Orange Pi 3G-IOT IoT is open source.<br>
<br>
 
=== '''Who is it for?''' ===
<br>
Orange Pi 3G-IOT IoT is for anyone who wants to start creating with technology
– not just consuming it. It's a simple, fun, useful tool that you can use to start taking control of the world around you.<br>
<br>
=== '''Orange Pi 3G-IOT IoT Hardware Specification''' ===
<br>
<table border="1" bordercolor="#d8d8d8" cellspacing="0" cellpadding="0" style="width:1000px800px;">
<tr>
<td colspan="2" style="padding:10px 0;text-align:center;">OrangePi 3G-IoT-256MB Hardware Specification</td>
'''256MB DDR2 + 512MB EMMC Version Specs:'''
<br>
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img1.png|800px|]]</div>
<br>
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img2.png|800px|]]</div>
<br>
'''512MB DDR2 + 4GB EMMC Version Specs:'''
<br>
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img3.png|800px|]]</div>
<br>
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img4.png|800px|]]</div>
<br>
<br>
<br>
<div class="table-3g-iot">
<table style="width: 1000px800px;" border="1" bordercolor="#d8d8d8" cellspacing="0" cellpadding="0">
<tr>
<td style="font-weight:700;">PIN1</td>
After receiving the product, please put the antennas of the product from the position of Pic 1 to the position of Pic 2 (or to the outside of the board), which can not be attached to the board so as not to affect the signal.<br>
<br>
<divstyle="width:800px;">[[文件File:Orange-pi-3g-iot-img5.png|800px|]]</divbr><div style="text-align:center;width:400px48%;display:inline-block;">Pic 1</div><div style="text-align:center;width:400px48%;display:inline-block;">Pic 2</div></div> 
<br>
 
== '''Android Compilation Environment Construction''' ==
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
<span style="font-weight:600;">Create directory:</span><br>
mkdir OrangePi_3G-IOT_Android4IoT_Android4.4<br>
<span style="font-weight:600;">Copy Volume Compression Packet to this directory:</span><br>
cp -rf OrangePi_3G-IoT_Android4.4.tar.gz* OrangePi_3G-IOT_Android4IoT_Android4.4/ <br>
<span style="font-weight:600;">Merge Compression Packet:</span><br>
cat OrangePi_3G-IoT_Android4.4.tar.gz*>OrangePi_3G-IOT_Android4IoT_Android4.4.tar.gz <br>
<span style="font-weight:600;">Unzip:</span><br>
tar xzvf OrangePi_3G-IOT_Android4IoT_Android4.4.tar.gz
</div>
<br>
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31<br>
export PATH=$JAVA_HOME/bin:$PATH<br>
export CLASSPATH=.:$JAVA_HOME<br>/lib:$JAVA_HOME/lib/tools.jar<br>
</div>
=== '''Install Software Package''' ===
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
If the board is: 32g4g<br>
$ ./auto.sh IoT03_mt6572_emmc_b1258_32g4g_ry_smt_v1IoT03_mt6572_emmc<br>_b1258_32g4g_ry_smt_v1.1 v00 eng<br>
<br>
If the board is: 4g2g<br>
$ ./auto.sh IoT03L_mt6572_lca_b1258_wg_4g2g_ry_smt_v1IoT03L_mt6572_lca<br>_b1258_wg_4g2g_ry_smt_v1.1 v00 eng
</div>
The meaning of the parameter is:<br>
#$1 project_info [eg: IoT03L_mt6572_lca_b1258_wg_4g2g_ry_smt_v1IoT03L_<br>mt6572_lca_b1258_wg_4g2g_ry_smt_v1.1] <br>
#$2 version_info [eg: v00 v01 ...]<br>
#$3 compile_mode [eng:user userdebug eng]<br>
== '''Android Firmware Flashing''' ==
<br>
Relevant keys and connectors for firmware flashing of 3G-IOTIoT:<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img6.png|800px600px|]]</div>
After compilation, all the firmware will generate on the directory of:<br>
code/IoT03_b1258_32g4g_ry_smt_v1.1 or code/IoT03L_b1258_wg_4g2g_ry_smt_v1.1 , <br> and packed into compression file as the name of IoT03L_b1258_wg_4g2g_ry_smt_v1.1_20180403182516_v00_eng.zip.
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
IoT03L_b1258_wg_4g2g_ry_smt_v1.1<br>
│ └── userdata.img<br>
└── modem<br>
├── APDB_MT6572_S01_MAIN2.1_W101_<br>W10.24<br>├── _APDB_MT6572_S01_MAIN2.1_W101<br>_W10.24.check<br>├── APDB_MT6572_S01_MAIN2.1_W101<br>_W10.24_ENUM<br>├── BPLGUInfoCustomAppSrcP_MT6572_S00_MOLY_WR8_W1315_MD_WG_MP_V47_1_wg_nBPLGUInfoCustomAppSrcP_<br>MT6572_S00_MOLY_WR8_W1315_MD_WG_MP_V47_1_wg_n<br>
├── catcher_filter_1_wg_n.bin<br>
├── DbgInfo_WR8.W1315.MD.WG.MP_HEXING72_CWET_KK_HSPA_MOLY_WR8_W1315_MD_WG_MPMP_<br>HEXING72_CWET_KK_HSPA_MOLY_WR8_W1315_MD_WG_MP<br>
_V47_2017_10_26_22_35_1_wg_n<br>
├── modem_1_wg_n.img<br>
After the above steps, you could refer to the previous section to flash image.<br>
<br>
Or you could use the image we have compiled and pack: <br>http://www.orangepi.org/downloadresourceshtml/ hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3G-IoT-A.html<br>Unzip Android4.4 image via the following command:
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
$ rar x IoT03L_b1258_wg_4g2g_ry_smt_v1.1.rar
You could download the '''Smart Phone Flash Tool''' on the download page of Orange Pi 3G-IoT section. There are tools for Windows and Linux version, you could select a suitable version according to your PC environment.<br>
Interface like the following:
<div>[[文件File:Orange-pi-3g-iot-img7.png|800px|]]</div>
Using method for both Windows and Linux versions are same, here will illustrate with Linux version<br>
<br>
<br>
If it is the first time you use this software, you might receive the warn like the following. It is normal to receive this, you could click OK enter into the software. In the future you could manually specified the path of Scatter File.
<div>[[文件File:Orange-pi-3g-iot-img8.png|800px|]]</div>
* '''Enter into flash mode'''
a.Switch into Download page like the following:
<div>[[文件File:Orange-pi-3g-iot-img9.png|800px|]]</div>
b.Click choose on the right side of Scatter-loading File and select the path of Scatter File like the following:
<div>[[文件File:Orange-pi-3g-iot-img10.png|800px|]]</div>
c.After double click the selection, the '''partition information display section''' will automatically fill the path of each partition file and the absolute starting address to which they are to be flashed.
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img11.png|800px|]]</div>
d.In the top left corner of '''partition information display section''', there would be a drop-down menu. Three of this options:<br>
Format All + Download // Format all information on the partitions and re-download the selected partition<br>
It you select Format All, you will lose the calibration information which we worked before sending out products. If this situation is inadvertent, please contact the Orange Pi service and obtain the calibration parameters through the machine code, and re-flash the calibration parameters.<br>
e.Insert Jumper cap:
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img12.png|800px|]]</div>
f.Then connect with USB on PC and Mirco USB on Orange Pi via USB cable, the red LED will light up.<br>
g.Click Download button[[文件File:Orange-pi-3g-iot-img13.png|100px|]]<br>
h.The interface would show like the following after downloaded:
<div>[[文件File:Orange-pi-3g-iot-img14.png|800px|]]</div>
i.Take of the USB cable and insert Micro USB power supply<br>
Wait around 5 seconds, it will display the charging interface of shutdown<br>
<br>
Windows OS would require to download SP_Flash_Tool_v5.1644_Win.zip, unzip and install it. Then could refer to the manual of Linux to flash image.
 
== '''Linux Compilation Environment Construction''' ==
=== '''Get Linux Source Code''' ===
<br>
Enter the root password and press Enter
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img15.png|800px|]]</div>
Choose 0 Build system with kernel/uboot/rootfs, enter the development board model selection interface.
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img16.png|800px|]]</div>Choose 22 orangepi 3G-iot,Press IoT,Press Enter and start download Orange Pi 3G-iot IoT Linux Source Code<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img17.png|800px|]]</div>The downloaded source code will be stored in the same directory as OrangePi_Build. Orange Pi 3G-IOT IoT Linux source code directory structure is as follows
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
├── bootloader&nbsp;&nbsp;&nbsp;&nbsp;Store preloader and lk source code<br>
6 directories, 1 file
</div>
 
=== '''Compilation of Linux Source Code''' ===
<br>
<br>
According to the board model to choose and press Enter.
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img18.png|800px|]]</div>
Enter the root password and press Enter, then select the function needed to execute.
<div style="padding-left:200px;">[[文件File:Orange-pi-3g-iot-img19.png|800px|]]</div>
<br>
The functions of each option are as follows:<br>
│ ├── preloader_hexing72_cwet_lca.bin<br>
│ └── rootfs.img<br>
├── OrangePi_3g-iot-A_ubuntu_xenial_server_linux3A_ubuntu_xenial_server<br>_linux3.4.67_v1.1.tar.gz
</div>
Android burning tool can be used to burn the above image file into flash, please refer to Android firmware burning chapter.
You can only login system via a serial port。After connecting to wifi, you can log in via ssh。<br>
When programming the system, the jumper cap connection method is as follows.
<div>[[文件File:Orange-pi-3g-iot-img20.png|500px|]]</div>
<br>
=== '''3G-iotIoT-A linux firmware burning''' ===
<br>
Burn the preloader, lk, boot.img to the on-board nand flash with the burning tool.
The previous "Android Firmware Burning" has introduced how to use the burning tool, so I won't go into details here, just open the burning tool directly.<br>
a.We click on the far right of the Scatter-loading File column And select the path of Scatter File, as shown below.
<div>[[文件File:Orange-pi-3g-iot-img21.png|800px|]]</div>
<br>
b.Disconnect the board from the PC first, and click the Download button
<div>[[文件File:Orange-pi-3g-iot-img22.png|800px|]]</div>
c.Next, use a USB download cable to connect the host's USB to the machine's MircoUSB interface.
<div>[[文件File:Orange-pi-3g-iot-img23.png|800px|]]</div>d.Only the lk and kernel were burned in the front. Since 3G-iotIoT-A only has 512M on-board storage, there is a problem of insufficient space, so you need to burn the rootfs to a TF card, and prepare a TF card with more than 8G and class10. After formatting. Burn roofs.img as follows
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
If it is a windows system, you can also use Win32DiskImager software to burn.<br>
<br>
 Insert the tf card into the board, and it can start after power on. (Note that 3G-iotIoT-A and other two LED lights are on, then plug in the serial port, otherwise it will not start)<div>[[文件File:Orange-pi-3g-iot-img39.png|600px|]]</div>
<br>
 === '''3G-iotIoT-B linux firmware burning''' ===
<br>
The board has 4G of onboard storage, so you can burn all the images directly to the onboard EMMC.<br>
And select the path of Scatter File, as shown below<br>
<br>
<div>[[文件File:Orange-pi-3g-iot-img24.png|800px|]]</div>
<br>
b . First disconnect the board from the PC and click the Download button<br>
<br>
<div>[[文件File:Orange-pi-3g-iot-img25.png|800px|]]</div>
<br>
C. Next, use a USB download cable to connect the host's USB to the machine's MircoUSB interface. Burning completed
<div>[[文件File:Orange-pi-3g-iot-img26.png|800px|]]</div>
<br>
Start the system.<br>
Connect the board to a 5V2A power adapter. Connect the serial port to see the system startup。
<div>[[文件File:Orange-pi-3g-iot-img27.png|600px|]]</div>
<br>
If the onboard space is not enough, you can burn the rootfs to the TF card. Proceed as follows.<br>
Burn boot.img that supports mounting TF card rootfs<br>
Click on the content in the box below
<div>[[文件File:Orange-pi-3g-iot-img28.png|800px|]]</div>
<br>
In the pop-up window, select boot_sd.img.
<div>[[文件File:Orange-pi-3g-iot-img29.png|800px|]]</div>
<br>
Download completed
<div>[[文件File:Orange-pi-3g-iot-img30.png|800px|]]</div>
<br>
Burn rootfs to TF card<br>
Start the system<br>
Insert the tf card into the board and start it after power on.
 
== '''Serial Debugging Tool''' ==
<br>
First need to prepare a USB to TTL serial cable, need to support 921600 baud rate<br>
The debugging serial port of 3G-iot IoT is serial port 1, which has been led to 40pin, and the baud rate is 921600.<br>
Connect the serial cable as shown below. The functions of the different color lines are as follows:
* Black——GND
* Green——RX
* White——TX
<div>[[文件File:Orange-pi-3g-iot-img31.png|500px|]]</div>
<br>
=== '''Usage based on Windows platform''' ===
* '''Install USB driver'''
Download the latest version of the driver PL2303_Prolific_DriverInstaller_v130.zip, download and extract.
<div>[[文件File:Orange-pi-3g-iot-img32.png|800px|]]</div>
<br>
Select application installation as an administrator
<div>[[文件File:Orange-pi-3g-iot-img33.png|800px|]]</div>
<br>
Waiting for installation and click.
<div>[[文件File:Orange-pi-3g-iot-img34.png|800px|]]</div>
<br>
* '''Download and install Putty'''
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Double-click the downloaded putty.exe to open putty. The software interface is shown below.<br>
<div>[[文件File:Orange-pi-3g-iot-img35.png|800px|]]</div>
* '''Acquisition of device information'''
In Windows 7, we can check whether the serial port connection is normal and the serial port device No. through Device Manager. If the device is not recognized properly, please check if the driver is installed successfully. If there is a problem with the driver installation, try using the 360 Driver Master to scan the installation driver.
<div>[[文件File:Orange-pi-3g-iot-img36.png|800px|]]</div>
* '''Putty configuration'''
Set the serial port to the corresponding port number (COM4), turn off the flow control, and set the speed to 921600.
<div>[[文件File:Orange-pi-3g-iot-img36.png|600px|]]</div>
<br>
* '''Start debugging serial output'''
The baud rate needs to be set to 921600<br>
And turn off flow control
<div>[[文件File:Orange-pi-3g-iot-img37.png|600px|]]</div>
<br>
 
== '''Other settings''' ==
<br>
== '''History''' ==
<br>
<table style="min-width: 1000px800px;text-align: center;" border="1" bordercolor="#d8d8d8" cellspacing="0" cellpadding="0">
<tr style="background-color: #b7b7b7;height: 50px;">
<td>Ver</td>
<br>
<br>
== '''Download the Orange Pi 3G-IoT User Manual''' ==For more information on using the Orange Pi 3G-IoT, please see the [httphttps://localhost:8080drive.google.com/index.phpopen?titleid=%E6%96%87%E4%BB%B6:Orange-pi-3G-iot.docx 1nHRikLzsu0B85_ESL2Hcu5ns8kEBGkTd <span style="color:red;">Orange Pi 3G-IoT User Manual</span>]. (Click to download)

Navigation menu