6. Debian Application

6.1 Display

Compact3566 supports HDMI and LVDS display. Connect the board and monitor with a HDMI cable, then power on.

Debian_HDMI_Display

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

reflash_boot

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
_images/image074.png
_images/image076.png
_images/image078.png

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
_images/test_1080_1.png
_images/test_1080_2.jpg

or

gst-play-1.0 --videosink=xvimagesink XXX   //XXX is vedio file path
_images/test_1080_3.png

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
_images/4K_test_1.png
_images/4K_test_2.png
_images/4K_test_3.png
_images/4K_test_4.png

6.4 SD Card

Compact3566 supports SD Hot-plug.

_images/Debian_sd.png

6.5 USB Host

6.5.1 USB2.0

Compact3566 features 3x USB2.0 Host(USB OTG can be used for Host).

_images/Debian_USB2.png

6.5.2 USB3.0

_images/Debian_USB3_1.png
_images/Debian_USB3_2.png

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
_images/Debian_SSD.png

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
_images/Debian_wifi.png
ping www.boardcon.com
_images/Debian_ping.png

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.

_images/Bluetooth_icon.png

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.

_images/select_bt.png

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
_images/image080.png
ping www.boardcon.com
_images/image082.png

6.10 RTC

Execute the follow command to set the RTC time.

hwclock -w
_images/Debian_rtc.png

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
_images/Debian_Test_UART3.png

Press Ctrl+C to exit UART3 testing, execute the command to test UART4.

./system/com /dev/ttyS4 115200 8 0 1   //Test UART4
_images/Debian_Test_UART4.png

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
_images/Debian_SPI.png

6.13 IR

echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print   //obtain the data
_images/Debian_IR.png

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

_images/debian_check_device_number.png
_images/debian_preview.png
_images/debian_Files_path.png