Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 2G-IoT

391 bytes removed, 20:11, 30 June 2022
no edit summary
<br>
* Insert the TF card with written image into the TF card slot
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img5.png|400px]]</div>
<br>
* Make sure the toggle switch is showing like the following, booting from SD card.
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img6.png|400px]]</div>
<br>
* Insert the keyboard or mouse into the USB port.
* Connect wifi antenna and base-band antenna
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img7.png|400px]]</div>
<br>
* Connect LCD and Camera
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img8.png|400px]]</div>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img9.png|400px]]</div>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img10.png|400px]]</div>
<br>
* Connect TTL cable, you could refer to the Debug method in this instruction.
Serial port uses TTL to USB cable to connect.<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img11.png|400px]]</div>
<br>
* It is the power input interface on the right side for connecting a 5V and at least 2A or bigger than 2A power adapter. Avoid using smaller power GSM mobile phone charger, it is not able to output 2A even if it marked "5V/2A".
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img12.png|400px]]</div>
<br>
 If the above steps are successful, the OrangePi will start in a few minutes. The monitor Graphical interface of display system. It may take a long time to start the first time, please wait patiently. The next time will boot very fast.<br>
b.$ usermod -l zhangsan orangepi <br>
Change account of orangepi into Zhangsan
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img25.png|600px]]</div>
<br>
c.$ groupmod -n zhangsan orangepi <br>   
'''1)Use WiringPi on OrangePi 2G-IoT to connect network'''<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img17.png|600px]]</div>
<br>
OrangePi 2G-IoT could support WiringPi, you could have a try according to the introduction on this section. The following is 40 Pin of OrangePi. <br>
Physical line represents the actual hardware number.<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img32.png|600px]]</div>
<br>
ii Use "gpio export pin mode" to explore wiringPi GPIO to the directory of /sys/class/gpio and set the GPIO mode into mode.<br>
According to the above WiringPi pin mapping, hardware pin number 37 is corresponding to WiringPi pin number GPIO 25, explore the number 25 and set it into output mode.<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img18.png|600px]]</div>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img19.png|600px]]</div>
<br>
iii Use "gpio unexport pin" to cancel explore pin to /sys/class/gpio. For example:
orangepi# gpio unexport 25<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img20.png|600px]]</div>
<br>
iv Use "gpio exports" to check the current explored gpio. For expample:
orangepi# gpio exports<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img21.png|600px]]</div>
<br>
v Use "gpio mode pin mode" command to configure wiringPi pin mode. For example:<br>
orangepi# gpio read 25<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img33.png|600px]]</div>
<br>
viii.If you want to learn more "gpio" command, you could refer to "gpio -h" obtain.<br>
Complie GPIO LED<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img34.png|600px]]</div>
<br>
Usage of C library on wiringPi:<br>
Standard: GSM800<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img23.png|600px]]</div>
<br>
ii.Install SIM card<br>
Please note the direction of when inserting SIM card. <br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img25.png|600px]]</div>
<br>
iii.Login Linux system<br>
After inserting SIM card, power on and enter into Linux system. You could login the system via serial port or SSH. If you are going to use serial port to login, please be remember to set the baud rate into 921600.<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img26.png|600px]]</div>
<br>
iv.SMS Usage<br>
After input the command, you will enter the configure interface, select "'''Serial port setup'''"<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img27.png|600px]]</div>
<br>
Push A to modify Serial Device into /'''dev/modem0'''<br>
<br>
<div style="padding-left:100px; ">[[File:Orange-pi-2g-iot-img28.png|600px]]</div>
<br>
'''Use AT command to send message'''<br>
'''6)Start debug'''<br>
Power Orange Pi on and boot it, the serial port will automatic print out debug log.
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img80.png|600px]]</div>
<br>