5. Buildroot Application
5.1 Serial Terminal
Connect the board and PC with USB Serial cable, then power on, the terminal will output boot information. The default baudrate is 115200.
Serial Terminal
5.2 Display
IdeaT527 provides HDMI and LVDS/MIPI output interfaces. The default configuration supports the following display combinations:
LVDS0 + LVDS2
LVDS0 + HDMI
MIPI0 + HDMI
LVDS0 & LVDS2
LVDS0 & HDMI
MIPI0 & HDMI
5.3 USB
IdeaT527 provides 2x USB2.0 connector, one of which is OTG-compatible.
5.3.1 USB2.0 Host
After connecting the USB flash drive, it will be automatically mounted. Execute the following command to view the path where the device is mounted:
1df -h
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 1.9G 568.0M 1.4G 29% /
tmpfs 972.1M 356.0K 971.7M 0% /tmp
tmpfs 972.1M 248.0K 971.8M 0% /run
devtmpfs 939.2M 0 939.2M 0% /dev
cgroup 972.1M 0 972.1M 0% /sys/fs/cgroup
/dev/sda1 58.0G 33.1G 24.9G 57% /mnt/usb/sda1
/dev/mmcblk0p6 26.8G 16.0K 26.8G 0% /mnt/UDISK
/dev/root 1.9G 568.0M 1.4G 29% /var/lib/docker
/dev/mmcblk1p1 30.0G 4.5G 25.4G 15% /mnt/sdcard/mmcblk1p1
5.3.2 USB2.0 OTG
USB0(up) is OTG-compatible and is configured as Host mode by default.
1echo usb_device > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
# echo usb_device > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
[ 1475.876799] sunxi:sunxi_usbc:[INFO]: rmmod_host_driver
[ 1475.876799]
[ 1475.884236] sunxi:ehci_sunxi:[INFO]: [ehci0-controller]: sunxi_usb_disable_ehci
[ 1475.892442] sunxi:ehci_sunxi:[INFO]: [sunxi-ehci0]: remove, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffc009511a48
[ 1475.905434] sunxi-ehci 4101000.ehci0-controller: remove, state 4
[ 1475.912172] usb usb5: USB disconnect, device number 1
[ 1475.918951] sunxi-ehci 4101000.ehci0-controller: USB bus 5 deregistered
[ 1475.927054] sunxi:ohci_sunxi:[INFO]: [ohci0-controller]: sunxi_usb_disable_ohci
[ 1475.935265] sunxi:ohci_sunxi:[INFO]: [sunxi-ohci0]: remove, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffc0095126d8
[ 1475.948253] sunxi-ohci 4101400.ohci0-controller: remove, state 4
[ 1475.955002] usb usb6: USB disconnect, device number 1
[ 1475.961874] sunxi-ohci 4101400.ohci0-controller: USB bus 6 deregistered
[ 1475.970164] sunxi:sunxi_usbc:[INFO]: insmod_device_driver
[ 1475.970164]
[ 1475.978068] sunxi_usb_udc 4100000.udc-controller: supply udc not found, using dummy regulator
1echo usb_host > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
# echo usb_host > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
[ 1510.916735] sunxi:sunxi_usbc:[INFO]: rmmod_device_driver
[ 1510.916735]
[ 1510.924725] sunxi:sunxi_usbc:[INFO]: insmod_host_driver
[ 1510.924725]
[ 1510.932250] sunxi:ehci_sunxi:[INFO]: [ehci0-controller]: sunxi_usb_enable_ehci
[ 1510.940356] sunxi:ehci_sunxi:[INFO]: [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffc009511a48, 0x:ffffffc0099b5000, irq_no:88
[ 1510.956677] sunxi-ehci 4101000.ehci0-controller: supply hci not found, using dummy regulator
[ 1510.967556] sunxi-ehci 4101000.ehci0-controller: EHCI Host Controller
[ 1510.974820] sunxi-ehci 4101000.ehci0-controller: new USB bus registered, assigned bus number 5
[ 1510.984631] sunxi-ehci 4101000.ehci0-controller: irq 136, io mem 0x04101000
[ 1511.008476] sunxi-ehci 4101000.ehci0-controller: USB 2.0 started, EHCI 1.00
[ 1511.016529] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 1511.025794] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1511.033894] usb usb5: Product: EHCI Host Controller
[ 1511.039362] usb usb5: Manufacturer: Linux 5.15.147 ehci_hcd
[ 1511.045606] usb usb5: SerialNumber: sunxi-ehci
[ 1511.051335] hub 5-0:1.0: USB hub found
[ 1511.055628] hub 5-0:1.0: 1 port detected
[ 1511.060616] sunxi:ohci_sunxi:[INFO]: [ohci0-controller]: sunxi_usb_enable_ohci
[ 1511.068704] sunxi:ohci_sunxi:[INFO]: [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffc0095126d8
[ 1511.082749] sunxi-ohci 4101400.ohci0-controller: supply hci not found, using dummy regulator
[ 1511.092527] sunxi-ohci 4101400.ohci0-controller: OHCI Host Controller
[ 1511.099783] sunxi-ohci 4101400.ohci0-controller: new USB bus registered, assigned bus number 6
[ 1511.109509] debugfs: Directory 'sunxi-ohci' with parent 'ohci' already present!
[ 1511.117744] sunxi-ohci 4101400.ohci0-controller: irq 137, io mem 0x04101400
[ 1511.188694] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[ 1511.197970] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1511.206072] usb usb6: Product: OHCI Host Controller
[ 1511.211538] usb usb6: Manufacturer: Linux 5.15.147 ohci_hcd
[ 1511.217789] usb usb6: SerialNumber: sunxi-ohci
[ 1511.223487] hub 6-0:1.0: USB hub found
[ 1511.227777] hub 6-0:1.0: 1 port detected
5.4 Ethernet
❶ Connect the board and router with an Ethernet cable. According to the log, it can be seen that the Gigabit Ethernet recognition is successful.
[ 34.383585] sunxi-gmac 4500000.gmac0 eth0: Link is Up - 1Gbps/Full - flow control off
[ 34.392365] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
❷ View the status of the network interface.
1ifconfig
# ifconfig
eth0 Link encap:Ethernet HWaddr D2:8F:10:82:93:74
inet addr:192.168.0.40 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::afbe:e1fa:c0e8:8642/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:266 errors:5 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24588 (24.0 KiB) TX bytes:1620 (1.5 KiB)
Interrupt:173
❸ Network connection test.
1ping -I eth0 www.armdesigner.com
# ping -I eth0 www.armdesigner.com
PING www.armdesigner.com (67.222.54.196): 56 data bytes
64 bytes from 67.222.54.196: seq=0 ttl=49 time=181.806 ms
64 bytes from 67.222.54.196: seq=1 ttl=49 time=183.407 ms
64 bytes from 67.222.54.196: seq=2 ttl=49 time=181.398 ms
64 bytes from 67.222.54.196: seq=3 ttl=49 time=184.866 ms
64 bytes from 67.222.54.196: seq=4 ttl=49 time=183.466 ms
64 bytes from 67.222.54.196: seq=5 ttl=49 time=181.048 ms
^C
--- www.armdesigner.com ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 181.048/182.665/184.866 ms
5.5 4G & SSD (M.2)
4G(USB2) cannot be used with SSD(PCIe) simultaneously. The Boardcon firmware enables 4G by default.
5.5.1 4G
❶ Insert 4G module to M.2 slot (4G model: EM05).
❷ Connect antenna and insert SIM card.
❸ Power on.
❹ Initiate the PPP connection.
1killall pppd
2pppd call quectel-ppp &
# pppd call quectel-ppp &
[1] 634
# pppd options in effect:
debug # (from /etc/ppp/peers/quectel-ppp)
nodetach # (from /etc/ppp/peers/quectel-ppp)
dump # (from /etc/ppp/peers/quectel-ppp)
noauth # (from /etc/ppp/peers/quectel-ppp)
user test # (from /etc/ppp/peers/quectel-ppp)
password ?????? # (from /etc/ppp/peers/quectel-ppp)
remotename 3gppp # (from /etc/ppp/peers/quectel-ppp)
/dev/ttyUSB3 # (from /etc/ppp/peers/quectel-ppp)
115200 # (from /etc/ppp/peers/quectel-ppp)
lock # (from /etc/ppp/peers/quectel-ppp)
connect chat -s -v -f /etc/ppp/peers/quectel-chat-connect # (from /etc/ppp/peers/quectel-ppp)
disconnect chat -s -v -f /etc/ppp/peers/quectel-chat-disconnect # (from /etc/ppp/peers/quectel-ppp)
nocrtscts # (from /etc/ppp/peers/quectel-ppp)
modem # (from /etc/ppp/peers/quectel-ppp)
hide-password # (from /etc/ppp/peers/quectel-ppp)
novj # (from /etc/ppp/peers/quectel-ppp)
novjccomp # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-local # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-remote # (from /etc/ppp/peers/quectel-ppp)
ipparam 3gppp # (from /etc/ppp/peers/quectel-ppp)
noipdefault # (from /etc/ppp/peers/quectel-ppp)
ipcp-max-failure 30 # (from /etc/ppp/peers/quectel-ppp)
defaultroute # (from /etc/ppp/peers/quectel-ppp)
usepeerdns # (from /etc/ppp/peers/quectel-ppp)
noccp # (from /etc/ppp/peers/quectel-ppp)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
AT^M^M
OK
-- got it
send (ATE0^M)
expect (OK)
^M
ATE0^M^M
OK
-- got it
❺ Test 4G Network.
1ifconfig
2ping -I ppp0 www.armdesigner.com
# ifconfig
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.53.108.177 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:96 (96.0 B) TX bytes:254 (254.0 B)
# ping -I ppp0 www.armdesigner.com
PING www.armdesigner.com (67.222.54.196): 56 data bytes
64 bytes from 67.222.54.196: seq=0 ttl=49 time=316.754 ms
64 bytes from 67.222.54.196: seq=1 ttl=49 time=284.508 ms
64 bytes from 67.222.54.196: seq=2 ttl=49 time=396.862 ms
64 bytes from 67.222.54.196: seq=3 ttl=49 time=357.051 ms
64 bytes from 67.222.54.196: seq=4 ttl=49 time=315.873 ms
64 bytes from 67.222.54.196: seq=5 ttl=49 time=284.217 ms
64 bytes from 67.222.54.196: seq=6 ttl=49 time=395.615 ms
^C
--- www.armdesigner.com ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 284.217/335.840/396.862 ms
5.5.2 SSD
Note
IdeaT527 Buildroot firmware only supports ext4-formatted SSDs. If devices that are not in ext4 format, the user can choose to format them on the board. After formatting, the files on the device will be permanently lost, so please proceed with caution.
1mke2fs -t ext4 /dev/block/nvme0n1p1
❶ Insert SSD module to M.2 slot.
❷ Power on.
❸ The system will automatically mount it, view the device mount path.
1df -h
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 1.9G 567.6M 1.4G 29% /
tmpfs 971.9M 396.0K 971.5M 0% /tmp
tmpfs 971.9M 256.0K 971.7M 0% /run
devtmpfs 939.0M 0 939.0M 0% /dev
/dev/nvme0n1 468.4G 40.0K 444.5G 0% /mnt/nvme
cgroup 971.9M 0 971.9M 0% /sys/fs/cgroup
/dev/mmcblk0p6 26.8G 16.0K 26.8G 0% /mnt/UDISK
/dev/root 1.9G 567.6M 1.4G 29% /var/lib/docker
5.6 SD Card
❶ Insert the micro SD card into the card slot.
❷ The system will automatically mount it, view the device mount path.
1df -h
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 1.9G 567.6M 1.4G 29% /
tmpfs 971.9M 540.0K 971.4M 0% /tmp
tmpfs 971.9M 248.0K 971.7M 0% /run
devtmpfs 939.0M 0 939.0M 0% /dev
/dev/nvme0n1 468.4G 40.0K 444.5G 0% /mnt/nvme
cgroup 971.9M 0 971.9M 0% /sys/fs/cgroup
/dev/mmcblk0p6 26.8G 48.0K 26.8G 0% /mnt/UDISK
/dev/root 1.9G 567.6M 1.4G 29% /var/lib/docker
5.7 Audio I/O
5.7.1 Audio Input
Note
This platform supports two audio input sources for recording: Headset and MIC. Only one input source can be enabled at a time. To switch input sources, disable the currently active input source first.
❶ Plug the headset into the 3.5mm Audio jack.
❷ Set the recording source to Headset.
1amixer -c 0 cset name='MIC1 Switch' on
2amixer -c 0 cset name='MIC2 Switch' off
❸ Start recording.
1arecord -Dhw:0,0 -d 10 -r 48000 -f S16_LE test.wav
❶ Connect the MIC to the connector (2-pin/2.0mm pitch).
❷ Switch to MIC input if it was previously set to headset input.
1amixer -c 0 cset name='MIC1 Switch' off
2amixer -c 0 cset name='MIC2 Switch' on
❸ Start recording.
1arecord -Dhw:0,0 -d 10 -r 48000 -f S16_LE test.wav
5.7.2 Audio Output
❶ Plug the headset into the 3.5mm Audio jack.
❷ Switch the audio output to the headset channel.
1amixer -c 0 cset name='HPOUT Switch' on
❸ Play audio.
1aplay -Dhw:0,0 test.wav
❶ Cconnect the speakers to the speaker port.
❷ Switch the audio output to the speaker channel.
1amixer -c 0 cset name='SPK Switch' on
2amixer -c 0 cset name='LINEOUTL Switch' on
3amixer -c 0 cset name='LINEOUTR Switch' on
❸ Play audio.
1aplay -Dhw:0,0 test.wav
5.8 WiFi & Bluetooth
5.8.1 WiFi
❶ Connect the WiFi antenna.
❷ View the device information.
1ifconfig
# ifconfig
wlan0 Link encap:Ethernet HWaddr A8:B5:8E:B9:3C:10
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan1 Link encap:Ethernet HWaddr AA:B5:8E:B9:3C:10
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
❸ Scan for available WiFi hotspots.
# iw wlan0 scan
BSS b4:f1:8c:6d:d1:24(on wlan0)
TSF: 49047311 usec (0d, 00:00:49)
freq: 2412
beacon interval: 100 TUs
capability: ESS Privacy ShortPreamble ShortSlotTime RadioMeasure (0x1431)
signal: -52.00 dBm
last seen: 0 ms ago
Information elements from Probe Response frame:
SSID: Boardcon
Supported rates: 1.0* 2.0* 5.5* 6.0 9.0 11.0* 12.0 18.0
DS Parameter set: channel 1
TPC report: TX power: 30 dBm
RM enabled capabilities:
Capabilities: 0x73 0x02 0x00 0x00 0x00
Link Measurement
Neighbor Report
Beacon Passive Measurement
Beacon Active Measurement
Beacon Table Measurement
Channel Load
Nonoperating Channel Max Measurement Duration: 0
Measurement Pilot Capability: 0
ERP: <no flags>
❹ Connect to the hotspot.
1wifi-connect.sh SSID PSK //'SSID': user SSID, 'PSK': password
After connected, check the network status and ping URL to test.
1ifconfig
2ping -I wlan0 www.armdesigner.com
5.8.2 Bluetooth
The audio output channel is disabled by default. When the device is used as a Bluetooth speaker, the audio output channel needs to be manually enabled.
1amixer -c 0 cset name='SPK Switch' 1
2amixer -c 0 cset name='LINEOUTL Switch' 1
3amixer -c 0 cset name='LINEOUTR Switch' 1
❶ Enable Bluetooth.
1bt-init.sh
❷ View the Bluetooth device status.
1hciconfig -a
❸ Control and configure the Bluetooth device.
1bluetoothctl
# bluetoothctl
[bluetooth]# bluetoothd[630]: src/agent.c:add_default_agent() Default agent set to :1.2 /org/bluez/agent
bluetoothd[630]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[630]: src/agent.c:agent_ref() 0x55b501fa70: ref=1
bluetoothd[630]: src/agent.c:register_agent() agent :1.2
bluetoothd[630]: src/adapter.c:new_settings_callback() Settings: 0x00000adb
bluetoothd[630]: src/adapter.c:settings_changed() Changed settings: 0x00000010
bluetoothd[630]: src/adapter.c:settings_changed() Pending settings: 0x00000000
Agent registered
[CHG] Controller A8:B5:8E:B9:3C:11 Pairable: yes
[bluetooth]#
❹ Scan for nearby Bluetooth devices.
After scanning, turn off scanning to prevent continuous searching and refreshing.
1[bluetooth]# scan on # Enable scanning
2[bluetooth]# scan off # Disable scanning
3[bluetooth]# devices # List devices
[bluetooth]# scan on
….
[bluetooth]# scan off
….
[bluetooth]# devices
Device 48:EE:FF:F4:91:D1 48-EE-FF-F4-91-D1
Device 5D:C1:CC:1D:E7:D3 NPEOGtpSvkMsA8PJ7WNsqBMIs
Device 72:FD:40:EE:02:69 72-FD-40-EE-02-69
Device 78:C1:42:64:6D:0D 78-C1-42-64-6D-0D
Device 68:A2:9D:23:CE:E6 68-A2-9D-23-CE-E6
Device 74:F0:3A:40:39:71 74-F0-3A-40-39-71
Device 54:67:06:C6:25:D6 OPPO Reno6 5G
Device 5D:36:9A:87:03:86 5D-36-9A-87-03-86
Device 68:5B:FB:9C:F9:22 68-5B-FB-9C-F9-22
Device 6E:86:63:2F:0A:39 6E-86-63-2F-0A-39
Device 69:7A:4C:AE:98:29 69-7A-4C-AE-98-29
Device 7E:35:47:65:69:B7 7E-35-47-65-69-B7
Device 55:AB:57:07:A9:6F 55-AB-57-07-A9-6F
Device 72:39:81:54:C5:D0 72-39-81-54-C5-D0
Device 5E:AE:76:B7:2D:7A 5E-AE-76-B7-2D-7A
Device 50:8A:06:FA:35:A5 TY
Device A8:35:12:9A:EB:4D liuy
❺ Pair the device.
1pair A8:35:12:9A:EB:4D
[bluetooth]# pair A8:35:12:9A:EB:4D
Attempting to pair with A8:35:12:9A:EB:4D
bluetoothd[684]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[684]: src/agent.c:agent_ref() 0x559112d4e0: ref=2
bluetoothd[684]: src/device.c:bonding_request_new() Requesting bonding for A8:35:12:9A:EB:4D
bluetoothd[684]: src/agent.c:agent_ref() 0x559112d4e0: ref=3
bluetoothd[684]: src/agent.c:agent_unref() 0x559112d4e0: ref=2
bluetoothd[684]: src/adapter.c:suspend_discovery()
bluetoothd[684]: src/adapter.c:adapter_bonding_attempt() hci0 bdaddr A8:35:12:9A:EB:4D type 0 io_cap 0x04
bluetoothd[684]: src/adapter.c:add_whitelist_complete() A8:35:12:9A:EB:4D added to kernel whitelist
[bluetooth]# bluetoothd[684]: src/adapter.c:connected_callback() hci0 device A8:35:12:9A:EB:4D connected eir_len 11
[CHG] Device A8:35:12:9A:EB:4D Connected: yes
[liuy]# bluetoothd[684]: src/adapter.c:user_confirm_request_callback() hci0 A8:35:12:9A:EB:4D confirm_hint 0
bluetoothd[684]: src/device.c:new_auth() Requesting agent authentication for A8:35:12:9A:EB:4D
bluetoothd[684]: src/agent.c:agent_ref() 0x559112d4e0: ref=3
bluetoothd[684]: src/agent.c:agent_request_confirmation() Calling Agent.RequestConfirmation: name=:1.3, path=/org/bluez/agent, passkey=658812
Request confirmation
[agent] Confirm passkey 658812 (yes/no): yes
[liuy]# bluetoothd[684]: src/agent.c:agent_ref() 0x559112d4e0: ref=4
❻ Connect the device.
1connect A8:35:12:9A:EB:4D
[bluetooth]# connect A8:35:12:9A:EB:4D
Attempting to connect to A8:35:12:9A:EB:4D
bluetoothd[684]: src/device.c:connect_profiles() /org/bluez/hci0/dev_A8_35_12_9A_EB_4D (all), client :1.3
bluetoothd[684]: profiles/audio/a2dp.c:a2dp_source_connect() path /org/bluez/hci0/dev_A8_35_12_9A_EB_4D
bluetoothd[684]: profiles/audio/avdtp.c:avdtp_ref() 0x5591141ca0: ref=1
bluetoothd[684]: profiles/audio/avdtp.c:avdtp_ref() 0x5591141ca0: ref=2
bluetoothd[684]: profiles/audio/a2dp.c:setup_ref() 0x5591148f40: ref=1
bluetoothd[684]: profiles/audio/source.c:source_set_state() State changed /org/bluez/hci0/dev_A8_35_12_9A_EB_4D: SOURCE_STATE_DISCONNECTED -> SOURCE_STATE_CONNECTING
bluetoothd[684]: profiles/audio/source.c:source_connect() stream creation in progress
bluetoothd[684]: src/service.c:change_state() 0x5591136be0: device A8:35:12:9A:EB:4D profile a2dp-source state changed: disconnected -> connecting (0)
[bluetooth]# bluetoothd[684]: src/adapter.c:connected_callback() hci0 device A8:35:12:9A:EB:4D connected eir_len 11
[CHG] Device A8:35:12:9A:EB:4D Connected: yes
5.9 IR
Execute the command to retrieve the data reported by the IR module:
1hexdump /dev/input/event1
# hexdump /dev/input/event1
0000000 d8ea 694b 0000 0000 385b 0007 0000 0000
0000010 0004 0004 1865 0018 d8ea 694b 0000 0000
0000020 385b 0007 0000 0000 0000 0000 0000 0000
0000030 d8ea 694b 0000 0000 2465 0008 0000 0000
0000040 0004 0004 1865 0018 d8ea 694b 0000 0000
0000050 2465 0008 0000 0000 0000 0000 0000 0000
0000060 d8eb 694b 0000 0000 409b 0002 0000 0000
0000070 0004 0004 1865 0018 d8eb 694b 0000 0000
0000080 409b 0002 0000 0000 0000 0000 0000 0000
0000090 d8eb 694b 0000 0000 2c75 0003 0000 0000
00000a0 0004 0004 1865 0018 d8eb 694b 0000 0000
00000b0 2c75 0003 0000 0000 0000 0000 0000 0000
View the event node for the input device corresponding to the IR-RX module:
1cat /proc/bus/input/devices
5.10 RS485
❶ Connect PC and board with USB-to-RS485 adapter.
RS485 connection
❷ Open the Serial Terminal of board and RS485 adapter respectively. Set the baud rate to 115200.
❸ Execute the following commands on the terminal serial ports of board.
1com /dev/ttyAS5 115200 8 0 1
❹ Input character to test RS485 communication.
5.11 CAN
The device name for CAN0 is awlink0.
❶ Connect PC and board with USB-to-CAN adapter.
CAN connection
❷ Open the CAN application and set the baudrate to 1000000 on PC.
❸ Execute commands on Serial Terminal to configure and start the CAN network.
1ip link set awlink0 down
2ip link set awlink0 type can bitrate 1000000
3ip link set awlink0 qlen 300
4ip link set awlink0 up
❹ Configure CAN as receiver.
1candump awlink0 &
❺ Set CAN as Transmitter.
1cansend awlink0 123#1122334455667788
5.12 UART (RS232)
❶ Connect RX and TX of UART.
❷ Execute command and input character to test.
1com /dev/ttyAS3 115200 8 0 1
# com /dev/ttyAS3 115200 8 0 1
port = /dev/ttyAS3
baudrate = 115200
cs = 8
parity = 0
stopb = 1
mmmmm
RECV: mmmmm
5656ioioioi
RECV: 5656ioioioi
5.13 RTC
❶ Insert a CR1220 battery before test. It keeps the time running when the main power is off.
❷ Set date and time manually.
1date -s "2026-10-09 16:30:30" //set system date
2hwclock -w //set the hardware clock to current system time
3hwclock //display date and time
❸ Power off. Wait a while, then reapply power. If the RTC is functioning correctly, the clock should maintain its time and keep running while the board is powered off.
5.14 ADC
Note
The ADC input voltage must not exceed 1.8 V.
5.15.1 LRADC
1cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
The following logs show the ADC readings when the ADC input is connected to 0V and 1.8 V, respectively:
# cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
0
# cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
1323
5.15.2 GPADC
1cat /sys/bus/iio/devices/iio\:device1/in_voltage5_raw
The following logs show the ADC readings when the ADC input is connected to 0V and 1.8 V, respectively:
# cat /sys/bus/iio/devices/iio\:device1/in_voltage5_raw
0
# cat /sys/bus/iio/devices/iio\:device1/in_voltage5_raw
1797