Changes

Jump to: navigation, search

Orange Pi 4G- IoT

1,551 bytes added, 19:30, 30 June 2022
no edit summary
* Scratch
<br>
Pretty much anything else, because Orange Pi 4G-IOT IoT is open source.<br>
<br>
 
=== '''Who is it for?''' ===
<br>
Orange Pi 4G-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 4G-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;">Orange Pi 4G-IoT Specification</td>
<table style="min-width: 800px;text-align: center;" border="1" bordercolor="#d8d8d8" cellspacing="0" cellpadding="0">
<tr>
<td>OrangePi(4G-IOTIoT)</td>
<td></td>
<td></td>
'''Interface instructions:'''
<br>
<div>[[文件File:Orange-pi-4g-iot-img1.png|800px|]]</div>
<br>
<div>[[文件File:Orange-pi-4g-iot-img2.png|800px|]]</div>
<br>
 
== '''Using Method''' ==
<br>
<br>
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.
<div>[[文件File:Orange-pi-4g-iot-img3.png|800px|]]</div>
<div style="display:flex;width:800px;">
<div style="flex:1;text-align:center;">Pic 1</div>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
'''Create directory:'''<br>
mkdir OrangePi_4G-IOT_Android6IoT_Android6.0 <br>
'''Copy Volume Compression Packet:'''<br>
cp -rf OrangePi_4G-IoT_Android6.0_V1.0.tar.gz.* <br>
OrangePi_4G-IOT_Android6IoT_Android6.0/<br>
'''Merge Compression Packet:'''<br>
cat OrangePi_4G-IoT_Android6.0_V1.0.tar.gz.* > <br>
OrangePi_4G-IOT_Android6IoT_Android6.0.tar.gz<br>
'''Unzip:'''<br>
tar xzvf OrangePi_4G-IOT_Android6IoT_Android6.0.tar.gz
</div>
* '''Android 8.1'''
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
Create directory<br>
mkdir OrangePi_4G-IOT_Android8IoT_Android8.1 <br>
Copy compress package<br>
cp -rf x00 x01 x02 ... x10 <br>
Merge compression package<br>
cat x*>OrangePi_4G-IOT_Android8IoT_Android8.1.tar.gz <br>
Decompression<br>
tar xzvf OrangePi_4G-IOT_Android8IoT_Android8.tar.gz
</div>
<br>
 
=== '''Construct Compilation Environment''' ===
<br>
Relevant keys and connectors for firmware flashing of '''Orange Pi 4G-IoT:'''
<br>
<div>[[文件File:Orange-pi-4g-iot-img4.png|800px|]]</div>
<br>
'''List of generated firmwares:'''<br>
└── APDB_MT6735_S01_alps-mp-m0.mp1_W17.21_ENUM<br>
You could download the packed image partition files from the official website: <br>
[http://www.orangepi.org/downloadresourceshtml/ <span style="color:#0000ff;">http:hardWare/computerAndMicrocontrollers/service-and-support/wwwOrange-Pi-4G-IoT.orangepi.org/downloadresources/</span>]html
<br>
Unzip the file with the following command:
You could download the '''Smart Phone Flash''' Tool on the download page of Orange Pi 4G-IoT part. 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-4g-iot-img5.png|800px|]]</div>
<br>
Using method for both Windows and Linux versions are same, here will illustrate with Linux version.<br>
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
If you cannot connect the Orange Pi 4G-IOT IoT to the computer, pls try:<br>
$sudo apt-get remove modemmanager<br>
$sudo /etc/init.d/udev retstart<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-4g-iot-img6.png|800px|]]</div>
<br>
* '''Enter into flash mode'''
a.Switch into Download page like the following:
<div>[[文件File:Orange-pi-4g-iot-img7.png|800px|]]</div>
<br>
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-4g-iot-img8.png|800px|]]</div>
<br>
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>[[文件File:Orange-pi-4g-iot-img9.png|800px|]]</div>
<br>
d.In the top left corner of '''partition information display section''', there would be a drop-down menu. <br>
e.Use USB data cable to connect PC and Orange Pi, the right side of Orange Pi will be in red LED. <br>
<span style="color:red;">In this case do not need to connect DC power supply.</span><br>
f.Click Download button[[文件File:Orange-pi-4g-iot-img10.png|50px|]]<br>
<br>
g.The interface would show like the following after downloaded:
<div>[[文件File:Orange-pi-4g-iot-img11.png|800px|]]</div>
<br>
h.Take of the USB cable and insert DC power supply<br>
When the updated partition is more, the first boot will take a long time (the full partition update needs 8min), please be patient.<br>
<br>
 
=== '''FAQ''' ===
<br>
<br>
①Modify .jack file on the path of $HOME:
<div>[[文件File:Orange-pi-4g-iot-img12.png|800px|]]</div>
<br>
②Modify .jack-settings file on the path of $HOME:
<div>[[文件File:Orange-pi-4g-iot-img13.png|800px|]]</div>
(These two files TCP port should not be used before, and these two files and ports should be with same configure.)<br>
<br>
When the sim card cannot be recognized, you need to format SD card when it could not recognize it, and need to formatting flash.<br>
<br>
 
== '''Linux Compilation Environment Construction''' ==
<br>
Enter the root password and press Enter<br>
<br>
<div>[[文件File:Orange-pi-4g-iot-img14.png|800px|]]</div>
<br>
Choose 0 Build system with kernel/uboot/rootfs, enter the development board model selection interface.<br>
<br>
<div>[[文件File:Orange-pi-4g-iot-img15.png|800px|]]</div>
<br>
Choose 23 orangepi 4G-iot,Press IoT,Press Enter and start download Orange Pi 4G-iot IoT Linux Source Code.<br>
<br>
<div>[[文件File:Orange-pi-4g-iot-img16.png|800px|]]</div>
<br>
The downloaded source code will be stored in the same directory as OrangePi_Build. Orange Pi 4G-IOT IoT Linux source code directory structure is as follows
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
├── bootloader<br>
</div>
<br>
 
=== '''Compilation of Linux Source Code''' ===
<br>
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
$ cd OrangePi4GOrange Pi 4G-iotIoT<br>
$ ./build.sh
</div>
<br>
Enter the root password and press Enter, then select the function needed to execute.
<div>[[文件File:Orange-pi-4g-iot-img17.png|800px|]]</div>
<br>
The functions of each option are as follows:<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
output/images/<br>
├── OrangePi_4g-iot_ubuntu_xenial_server_linux3IoT_ubuntu_xenial_server_linux3.18.19_v1.1<br>
│ ├── boot.img<br>
│ ├── lk.bin<br>
│ ├── rootfs.img<br>
│ └── trustzone.bin<br>
└── OrangePi_4g-iot_ubuntu_xenial_server_linux3IoT_ubuntu_xenial_server_linux3.18.19_v1.1.tar.gz<br>
<br>
1 directory, 10 files
We click on the far right of the Scatter-loading File column And select the path of Scatter File, as shown below<br>
<br>
<div>[[文件File:Orange-pi-4g-iot-img18.png|800px|]]</div>
<br>
First disconnect the board from the PC and click the Download button
<div>[[文件File:Orange-pi-4g-iot-img19.png|800px|]]</div>
<br>
Next, use a USB download cable to connect the host's USB to the machine's MircoUSB interface. Burning completed
<div>[[文件File:Orange-pi-4g-iot-img20.png|800px|]]</div>
<br>
Start the system.<br>
Connect the board to a 5V 3A power adapter. Connect the serial port to see the system startup.
<div>[[文件File:Orange-pi-4g-iot-img21.png|800px|]]</div>
<br>
If the onboard space is not enough, you can burn the rootfs to the TF card. Proceed as follows.烧录支<br>Hold the lk of the mounted TF card rootfs<br>
Click on the content in the box below
<div>[[文件File:Orange-pi-4g-iot-img22.png|800px|]]</div>
<br>
Select lk_sd.bin in the popup window.
<div>[[文件File:Orange-pi-4g-iot-img23.png|800px|]]</div>
<br>
Click download, download is complete
<div>[[文件File:Orange-pi-4g-iot-img24.png|800px|]]</div>
<br>
Burn rootfs to TF card<br>
Insert the tf card into the board and start it after power on.<br>
<br>
 
== '''Serial Debugging Tool''' ==
<br>
First need to prepare a USB to TTL serial cable, need to support 921600 baud rate
The debugging serial port of 4G-iot is not brought out, so users need to fly their own wires. The solder joints of the following figure boxes are TXD and RXD of the serial port. GND, RXD and TXD need to be brought out.
<div>[[文件File:Orange-pi-4g-iot-img25.png|800px|]]</div>
<br>
Connection mode:<br>
* '''Install USB driver'''
Download the latest version of the driver PL2303_Prolific_DriverInstaller_v130.zip, download and extract.
<div>[[文件File:Orange-pi-4g-iot-img26.png|800px|]]</div>
<br>
Select application installation as an administrator
<div>[[文件File:Orange-pi-4g-iot-img27.png|800px|]]</div>
<br>
Waiting for installation and click.
<div>[[文件File:Orange-pi-4g-iot-img28.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.
<div>[[文件File:Orange-pi-4g-iot-img29.png|800px|]]</div>
<br>
* '''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-4g-iot-img30.png|800px|]]</div>
<br>
* '''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-4g-iot-img31.png|800px|]]</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-4g-iot-img31img32.png|800px|]]</div>
<br>
 
== '''Usage of GPIO''' ==
<br>
<br>
You could get the 40pin GPIO specifications from this manual or from schematic which have been uploaded to our official website: [<br>http://www.orangepi.org/downloadresourceshtml/. <span style=color:#808080;text-decoration: underline;">http:hardWare/computerAndMicrocontrollers/www.orangepi.org/downloadresourcesservice-and-support/Orange-Pi-4G-IoT.html</spanbr>] For example the 37th pin on 40pins is GPIO123,<br>
echo -wdout123 1 > pin -This is Set the GPIO to output high <br>
<br>
high level<br>
<br>
 
== '''History''' ==
<br>
<table style="min-width: 800px;text-align: center;" border="1" bordercolor="#d8d8d8" cellspacing="0" cellpadding="0"> <tr style="background-color: #b7b7b7;"> <td>Ver</td> <td>Data</td> <td style="font-weight: normal;">Author</td> <td>Brief</td> <td>Publish</td> <td>Me</td> </tr> <tr> <td>1.1</td> <td>2018-01-26</td> <td style="font-weight: normal;">Younix</td> <td>Create File</td> <td>2018-3-27</td> <td></td> </tr> <tr> <td>1.2</td> <td>2018-05-10</td> <td style="font-weight: normal;">Engineer Pan</td> <td>Add Android8.1</td> <td>2018-5-15</td> <td></td> </tr> <tr> <td>1.3</td> <td>2018-10-18 </td> <td style="font-weight: normal;">Engineer Pan</td> <td>Add Usage of GPIO</td> <td>2018-10-19</td> <td></td> </tr> <tr> <td>1.4</td> <td>2019-06-24</td> <td style="font-weight: normal;">Csy</td> <td>Linux source code compilation and serial port debugging </td> <td>2019-06-25</td> <td></td> </tr> <tr> <td>1.5</td> <td>2020-03-18 </td> <td style="font-weight: normal;">csy</td> <td>Linux Firmware Flashing</td> <td></td> <td></td> </tr> </table><br><br>== '''Download the Orange Pi 4G-IoT User Manual''' ==<br>For more information on using the Orange Pi 4G-IoT, please see the [[httphttps://192drive.168google.1.10:8086/com/index.phpopen?titleid=%E6%96%87%E4%BB%B6%3AOrange_Pi_4G-IoT.docx 1nHRikLzsu0B85_ESL2Hcu5ns8kEBGkTd <span style="color:red;">Orange Pi 4G-IoT User Manual</span>]]. (Click to download)

Navigation menu