6. Debian Application
6.1 Display
Idea3588 supports Three-Display Function (DP, HDMI and eDP LCD). The board is programmed update-hdmi.img by defaut that support HDMI & DP. If use eDP LCD need to reflash update-edp.img.
Warning
If update-edp.img is programmed, it is required to connect the eDP LCD before starting, otherwise the board will not start normally.
6.2 USB Type-C
6.2.1 ADB
ADB is the command-line debugging tool for debian, and it can use for system logs, uploading and downloading the files, installing the applications, etc. Connect the board and PC host with Type-C cable; Install the adb driver and commands on the windows system. Execute the follow commands to enable ADB.
adb shell
6.2.2 Type-C to HDMI/USB
Idea3588 supports Type-C to HDMI or USB. The device can use directly without install any driver.
HDMI display for example:
Connect a cable from HDMI monitor to the HDMI Port on the docking station.
Plug the docking station to Idea3588 Type-C port and power on (Hot-plug is not supported).
6.3 SD Card
The Idea3588 supports SD Hot-plug.
6.4 USB Host
The USB Host can be used to connect USB mouse, USB keyboard, U-Disk or other USB devices.
The USB3.0 default support Superspeed.
6.5 Audio Player
Copy Audio file to sdcard/udisk then insert it to the board. After system boot execute follow command to play.
aplay -l // View audio hardware devices
Execute follow command to play in earphone:
aplay -Dhw:2,0 test.wav // -Dhw:2,0 is card2 and device0
Execute follow command to play in HDMI:
aplay -Dhw:0,0 test.wav
6.6 Record
The Idea3588 supports record Audio from headphone. Insert the headphone into the jack on the board, then excute the commands to record and play.
arecord -f cd record.wav
aplay -Dhw:2,0 record.wav
6.7 Video Player
❶ Run the following command to start the multimedia device.
/rockchip-test/rockchip_test.sh
❷ Click the Open button and select the video file to play.
❸ If video play fails, select Bilt-in Audio HDMI/Display port 1 Stereo
6.8 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.9 RTC
Execute the command at CRT terminal:
hwclock
Wait a moment then run hwclock again, it can be seen the time has changed.
After the board is turned off, the RTC supports battery power supply, and RTC clock to be saved.
6.10 WiFi
Connect the WiFi antenna, then 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.
After connected, user can ping URL/IP at terminal.
ifconfig
ping www.boardcon.com
6.11 Bluetooth
❶ Execute the following command to enable Bluetooth:
bt_pcba_test
❷ Then click the Buletooth icon in the top right corner of the UI interface, Select Devices enter the Buletooth Devices.
❸ 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.12 Camera
❶ Connect the camera module (DC-IM415-1214V1) to the development board MIPI_CSI1(CON2).
❷ Execute the following command to open the camera.
/rockchip-test/camera/camera_rkaiq_test.sh
6.13 CAN
Connect CAN ports of Board A and Board B with the test line.
For Board A, execute the follow commands at Serial terminal A to set CAN_A as Receiver.
ip link set can0 down
ip link set can0 type can bitrate 1000000 dbitrate 3000000 fd on
ip link set can0 up
candump can0 // set CAN0 as receive
For Board B, execute the follow commands at Serial terminal B to set CAN_B as Transmitter.
ip link set can0 down
ip link set can0 type can bitrate 1000000 dbitrate 3000000 fd on
ip link set can0 up
cansend can0 123#DEADBEEF // CAN0 send characters 0xDE 0xAD 0xBE 0xEF
The Transmitter and receiver can be converted by execute the command
candump can0 // Receiver
or
cansend can0 123#DEADBEEF // Transmitter
6.14 RS485
Connect the RS485 ports of Board A and B with the test line.
Open Test/cmd.exe
. After power on, the PC will
report that found new hardware if it never install the usb adb driver
tools/adb
. At this time user need to click InstallADB(x64).bat
or
InstallADB(x86).bat
to install.
After install driver execute the commands at cmd:
adb push com /system // Before execute need copy com to windows C:/Users/Administrator
adb shell
chmod 777 /system/com // Modify COM properties
For Board A, execute the follow commands at Serial terminal A to set RS485 as Receiver or send.
./system/com /dev/ttyS7 115200 8 0 1
For Board B, execute the follow commands at Serial terminal B to set RS485 as Receiver or send.
./system/com /dev/ttyS7 115200 8 0 1
6.15 UART
Connect the UART RX and TX with the test line. Execute the follow command to test.
For UART7(J2)
./system/com /dev/ttyS0 115200 8 0 1
For UART3(J5)
./system/com /dev/ttyS3 115200 8 0 1
6.16 SATA
Connect the sata and the sata power to the board(SATA3.0).Execute follow command to mount SATA.
ls /dev
mkdir sata
mount /dev/sda1 /sata
ls /sata
Warning
Idea3588 does not support Sata Hot-plug.
6.17 M.2 NVME SSD
Idea3588 SSD only supports ext4 format.
Connect the SSD to the development board before power on. Then execute follow command to erase SSD and mount.
ls /dev/ // view the SSD path
mke2fs -t ext4 /dev/nvme0n1 // If SSD is not ext4 format, format it to ext4 file system
mkdir ssd
mount -t ext4 /dev/nvme0n1 /ssd // mount to a new directory
ls /ssd
6.18 4G
❶ Insert 4G module to PCIe slot (4G model: EC20).
❷ Connect antenna and insert SIM card.
❸ Execute follow command to connect 4G network after power on.
pppd call quectel-ppp &
❹ Execute the following command to test the network.
ifconfig
ping www.boardcon.com
6.19 GPS
Plug the EC20 module and connect GPS antenna, then power on and execute the follow command:
echo -e "AT+QGPS=1\r\n" > /dev/ttyUSB2
cat /dev/ttyUSB1
6.20 IR
You can view the received signals by running commands on the terminal.
echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print