OneNET IoT Platform Platform Introduction Introduction Manual Guidline for Device Development Guideline for Application Development
API
API Usage API List SDK MQTT LwM2M EDP Modbus TCP
HTTP Push MQ
Other Service Common Question

Development Board Live Broadcast Experience

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

pic

Can enter relevant command via hyper terminal for interactions can such as ls

pic

Button

Enter command./saradc_test to execute the saradc_test program, can test button.

pic

Ethernet

Set IP address via ifconfig, and test the network via ping command

pic

pic

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

pic

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] }'`

pic

Test

pic

TF card

Load tf card by command mount -t vfat /dev/mmcblk0p1 /usr/tfcard

pic

Audio

Test audio input and output by executing audio_livesound

pic

Video

Enter /mnt/mtd, execute the rtspd program, to play real-time video on the PC side through the VLC and other players.

pic

pic

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.

pic

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.

pic

Enter the development board catalog /usr/onenet

Modify the config.json file by using the vi config.json command

pic

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

pic

Watch videos from the onenet Video Management page

results matching ""

    No results matching ""