6. Debian Application
6.1 Display
Compact3566 supports HDMI and LVDS display. Connect the board and monitor with a HDMI cable, then power on.
Note
The Boardcon factory default HDMI display. If change to LVDS LCD, please reflash the corresponding boot.img.
10.1” LVDS LCD: boot_10.1inch_lvds.img
7” LVDS LCD: boot_7inch_lvds.img
HDMI: boot_hdmi.img
6.2 Audio
aplay -l // view sound card devices
arecord -D hw:1,0 -f cd test.wav // record and store as test.wav. Priority: headset > MIC
aplay -D plughw:1,0 test.wav // play test.wav. sound card 1, device 0
6.3 Video Player
Copy the video file to SD card/U-disk and plug it into the board. After the system starts, open SD card/U-disk and execute the following command to play.
Test 1920x1080
gst-play-1.0 --flags=3 --videosink=xvimagesink /usr/local/test.mp4 //play test.mp4
or
gst-play-1.0 --videosink=xvimagesink XXX // XXX is vedio file path
Test 4K (max-fps to 50fps)
export GST_MPP_VIDEODEC_DEFAULT_ARM_AFBC=1 // set AFBC
cat /sys/kernel/debug/dri/0/state | grep "plane\[" // view the plane id (select Cluster0-win0)
cat /sys/kernel/debug/dri/0/state | grep "plane\["
GST_DEBUG=*mpp*:4 gst-play-1.0 --flags=3 --videosink="kmssink plane-id=70" /XXX // play video. XXX is the video file path
GST_DEBUG=*mpp*:4 gst-play-1.0 --flags=3 --videosink="kmssink plane-id=70" /media/linaro/NEW/4K.mp4 --audiosink="alsasink device=hw:1,0" // Specify audio channel output
6.4 SD Card
Compact3566 supports SD Hot-plug.
6.5 USB Host
6.5.1 USB2.0
Compact3566 features 3x USB2.0 Host(USB OTG can be used for Host).
6.5.2 USB3.0
6.6 M.2 SSD
Connect the SSD to the development board before power on. Then execute follow command to erase SSD and mount.
ls /dev //View SSD device name
mke2fs -t ext4 /dev/nvme0n1 // If SSD is not ext4 format, format it to ext4
mkdir /mnt/ssd // Create a new directory
mount -t ext4 /dev/nvme0n1 /mnt/ssd // Mount SSD to the new directory
ls /mnt/ssd // View the contents of the ssd
6.7 WiFi
Connect the WiFi antenna, then click the network icon in the lower right corner of the UI interface, select the SSID from the list of available networks and enter the password. After connected, can ping the URL/IP at the terminal.
ifconfig
ping www.boardcon.com
6.8 Bluetooth
bt_load_rtk_firmware //turn on bluetooth
click the Bluetooth icon in the lower right corner of the desktop and select the Devices… option.
click the Search button to start searching and select the available device in the list to pair. After pairing, devices can connect with each other automatically.
6.9 Ethernet
Connect the board and router with an Ethernet cable (default DHCP=Yes). User can ping URL/IP at terminal. or open the browser to test Network.
ifconfig
ping www.boardcon.com
6.10 RTC
Execute the follow command to set the RTC time.
hwclock -w
After the board is turned off, the RTC supports battery power supply, and RTC clock to be saved.
6.11 UART
The UART loopback test is for reference only.
copy com
to SD card and then insert it to the card slot. Powered on, after the system boot, execute the command to copy com
from SD card to the board.
copy /media/linaro/New/com /system //com absolute path: /media/linaro/New/
chmod 777 /system/com //Modify com file properties
connect the transmit (TX) pin to the receive (RX) pin of UART. After executes the command, input character to test UART.
./system/com /dev/ttyS3 115200 8 0 1 //Test UART3
Press Ctrl+C to exit UART3 testing, execute the command to test UART4.
./system/com /dev/ttyS4 115200 8 0 1 //Test UART4
The method for testing UART5(ttyS5) and UART9(ttyS9) is similar.
6.12 SPI
Execute the following command after short-circuit SPI0_MOSI_M0 and SPI0_MISO_M0 of SPI0, you can see the change of SPI0 data.
spidev0.0_test
6.13 IR
echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print //obtain the data
6.14 Camera(ov13850)
grep ov13850 /sys/class/video4linux/v*/name //check device number
grep "" /sys/class/video4linux/v*/name | grep mainpath
gst-launch-1.0 v4l2src device=/dev/video8 ! video/x-raw,format=NV16,width=1280,height=800, framerate=30/1 ! kmssink //preview
gst-launch-1.0 v4l2src device=/dev/video8 num-buffers=100 ! video/x-raw,format=NV12,width=1920,height=1088,framerate=30/1 ! videoconvert ! mpph264enc ! h264parse ! mp4mux ! filesink location=/tmp/h264.mp4 //Video recording
gst-launch-1.0 -v v4l2src device=/dev/video8 num-buffers=10 ! video/x-raw,format=NV12,width=1280,height=800 ! mppjpegenc ! multifilesink location=/tmp/test%05d.jpg //take a picture
Files storage path is /tmp