Usart/Development Board Startup
Open hyper terminal. Plug in the exit line connected with the serial port (if the laptop has no serial port, can use the serial port-USB converter), the development board starts, and hyper terminal output interface. If you do not have relevant experience, you can refer to Chapter 1.3.2 of Appendix 1
Can enter relevant command via hyper terminal for interactions can such as ls
Button
Enter command./saradc_test to execute the saradc_test program, can test button.
Ethernet
Set IP address via ifconfig, and test the network via ping command
Wifi
Access to wifi hotspots, where Baiduiot is the hotspot name, LinuxIOT123 is the wifi password and needs to be replaced with own wifi information.
./wpa_passphrase Baiduiot "LinuxIOT123" >> /usr/wpa_supplicant.conf
./wpa_supplicant -Dwext -ira0 -c/usr/wpa_supplicant.conf -B
Get IP
ifconfig ra0 `udhcpc -i ra0 | grep 'Lease of'| awk '{print $3}'`
route add default gw `ifconfig|grep 'inet addr'|grep -v '127.0.0.1'|cut -d: -f2 |awk '{print $1}'|awk '{split($0,ip,"." ); printf "%s.%s.%s.1\n",ip[1],ip[2],ip[3] }'`
Test
TF card
Load tf card by command mount -t vfat /dev/mmcblk0p1 /usr/tfcar
d
Audio
Test audio input and output by executing audio_livesound
Video
Enter /mnt/mtd, execute the rtspd program, to play real-time video on the PC side through the VLC and other players.
Function Introduction
Function demos need to be done through interaction with the development board. Read Appendix 1 at first and complete the installation of HyperTerminal in accordance with appendix 1.3.2, if you don’t have experience in embedded Linux usage or development.
Set Network
The development board configures two ways of network communication including wifi and wired; developers are free to choose any one of them.
Wired network
Command to set IP address : ifconfig eth0 192.168.200.172 Command to set network: route add default GW 192.168.200.1 wifi
WIFI
Enter the/usr/onenet directory and open wifi.sh, change the wifi name and wifi password to those you want to set, and save them.
Execute wifi.sh script; connect to wifi.sh wifi.sh
Note: All experience experiments require network, please ensure to set up the network first.
Live Streaming Experience
Purpose: Let users to quickly experience video capabilities.
OneNET video experience experiment function:
Based on official SDK to realize live streaming function.
Experience flow:
Please follow the steps described in https://open.iot.10086.cn/doc/art388.html#68 to create video products and devices, and obtain product ID and registration code on OneNET. To get product ID and registration code in the product management page.
Enter the development board catalog /usr/onenet
Modify the config.json file by using the vi config.json command
Modify the values of productid and pass to the product ID of the video device created above, the registration code, deviceid can be set to 0, id can be set autonomously.
Run./sample_test
Watch videos from the onenet Video Management page