6. Debian Application

6.1 Display

_images/Display_interface.png

EM3288 Debian11 supports LVDS and HDMI dual-screen different display by default.

EM3288_dual_display

6.2 SD Card

_images/SD.jpg

Step 1, insert the micro SD card into the card slot

Step 2, an SD icon will appear on the desktop, click the icon to make it mount automatically.

Debian_test_SD _images/Debian_SD-2.png

6.3 USB Host

_images/USB2.jpg

Step 1, insert the USB flash drive into the USB interface.

Step 2, an USB icon will appear on the desktop, click the icon to make it mount automatically.

Debian_test_SD _images/Debian_USB-2.png

6.4 Video playback

6.4.1 Built-in playback

The script instruction directory is in /rockchip-test/video, just run it.

_images/Built-in_playback.png

6.4.2 Browser playback

Start the browser with a command to play.

chromium --no-sandbox xx.mp4                //xx.mp4 is the video file name
_images/Browser_playback.png

6.5 Ethernet

_images/Ethernet.jpg

Connect the Board and router with an Ethernet cable.

ifconfig
ping -I eth0 www.armdesigner.com
Debian_Test_Ethernet ping URL

6.6 Record & Audio

_images/MIC.jpg

EM3288 supports recording via line-in(headset) or differential MIC.

Recording via MIC

amixer -c 0 cset numid=21 2
amixer -c 0 cset numid=33 0
arecord -Dhw:0,0 -f cd ww.wav
_images/record_MIC.png

Recording via Line_in (Audio input via PC)

amixer -c 0 cset numid=21 2
amixer -c 0 cset numid=33 1
arecord -Dhw:0,0 -f cd ww.wav
_images/record_Line-in.png

Audio playback

aplay -Dhw:0,0 ww.wav     //HDMI and headset output synchronously
_images/Audio_play.png

View more audio parameter configurations

amixer -c 0 contents

6.7 RTC

_images/RTC.png

Insert a CR1220 battery before test. It keeps the time running when the main power is off. If we do not insert the battery, the time information is lost if the main power is off and you need to set the time again.

date -s "2023-11-16 17:39:00"       //set system date
hwclock -w                   //set the hardware clock to current system time
hwclock
_images/set_system_date.png

Power off. Wait for a moment, power on again, and then execute the command hwclock. You will find that the time is saved.

Debian_Test_RTC

6.8 WiFi

_images/WiFi%2Bbt.png
wifi_rtk_on         //open WiFi
_images/open_WiFi.png

Click the network icon in the top right corner of the UI interface, select the SSID from the list of available networks and enter the password.

_images/WiFi_SSID.png _images/WiFi_PW.png _images/WiFi_connected.png
ifconfig         //view the network interface status
ping -I p2p0 www.armdesigner.com     //ping URL to test
Debian_Test_WIFI Debian_Test_WIFI_2

6.9 Bluetooth

_images/WiFi%2Bbt.png
bt_load_rtk_firmware         //enable Bluetooth
_images/enable_Bt.png

Click the Buletooth icon in the top right corner of the UI interface, then click Devices…

_images/BT_Device.png

The Bluetooth device name is hidden by default. Set the Bluetooth device name to be visible.

_images/BT_1.png _images/BT_2.png

Click Search to select the available device in the list to pair.

_images/BT_3.png

6.10 4G

_images/4G-EC.jpg

Step 1, Insert 4G module to PCIe slot (4G model: EC20/EC25).

Step 2, Connect antenna and insert SIM card.

Step 3, Execute follow command to connect 4G network after power on.

pppd call quectel-ppp &             //realize ppp dialing
ifconfig                            //view the network interface status
ping -I ppp0 www.armdesigner.com    //check network
_images/Debian_4G-1.png _images/Debian_4G-2.png _images/Debian_4G-3.png

6.11 GPS

_images/GPS.jpg

EC20 module combines high-speed wireless connectivity with embedded multi-constellation high-sensitivity GPS+GLONASS receiver for positioning.

echo -e "AT+QGPS=1\r\n" > /dev/ttyUSB2
cat /dev/ttyUSB1
_images/Debian_GPS.png

In addition, the development board also supports a standalone GPS module(Model: ST-91-U7).

cat /dev/ttyS3

6.12 Camera

_images/camera_ov13850.png

Connect the camera module (OV13850) to the development board before power on.

Check if there are threads in rkisp_3A_server, which indicates automatic startup.

pidof rkisp_3A_server

rkisp_3A_server has started

_images/rkisp_started.png

If there are no threads, execute the following command to start rkisp_3A_server.

/etc/init.d/rkisp_3A.sh start

Execute the following command to preview

/rockchip-test/camera/camera_rkisp_test.sh
_images/Debian_camera_preview.png

6.13 UART

_images/UART1.jpg

Connect the transmit (TX) pin to the receive (RX) pin of UART1. After executes the command, input character to test UART.

com /dev/ttyS1 115200 8 0 1
_images/Debian_UART.png

6.14 ADB

_images/Micro_USB.jpg

Install the ADB driver to PC before test.

Connect Micro USB cable and power on. Use the shortcut keys WIN + R to open the windows command run box, type cmd, open the windows console command window.

_images/cmd.png
adb shell    //enable ADB
_images/enable_ADB.png

6.15 SATA

_images/SATA.png

EM3288 Debian OS only supports ext4 format SATA hard disk.

Format hard disk to ext4 file system. If the device is ext4 format, skip this step.

mke2fs -t ext4 /dev/sda                //format SATA to ext4
ls /dev                                //view SATA device name
mkdir /mnt/sata                        //create a Mount Point
mount /dev/sda /mnt/sata/              //mount SATA
ls /mnt/sata/                          //view SATA contents
df -h                                  //view the space size of the mounted disk
_images/Debian_sata_name.png _images/Debian_sata.png