4. Android Application

4.1 Serial Terminal

Debug

Connect the board and PC with USB Serial cable, then power on, the terminal will output boot information. The default baudrate is 115200.

Terminal_UI

4.2 Display

Display IO

IdeaT527 provides HDMI and LVDS/MIPI output interfaces. The default configuration supports the following display combinations:

  • LVDS0 + LVDS2

  • LVDS0 + HDMI

  • MIPI0 + HDMI

Android_Display

LVDS0 & LVDS2

Android_Display

LVDS0 & HDMI

Android_Display

MIPI0 & HDMI

4.3 USB

USB

IdeaT527 provides 2x USB2.0 connector, one of which is OTG-compatible.

4.3.1 USB Host

After connecting the USB flash drive, the device will automatically mount, and it can be accessed directly through the FileManager icon.

USB
USB

4.3.2 USB OTG

USB

USB0(up) is OTG-compatible and is configured as Host mode by default.

Switch to Device mode
1echo usb_device > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
Serial terminal output
console:/ # echo usb_device > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
[ 3622.018705][ T2203] sunxi:sunxi_usbc:[INFO]: rmmod_host_driver
[ 3622.018705][ T2203]
[ 3622.028053][ T2203] sunxi:ehci_sunxi:[INFO]: [ehci0-controller]: sunxi_usb_disable_ehci
[ 3622.038658][ T2203] sunxi:ehci_sunxi:[INFO]: [sunxi-ehci0]: remove, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffc0019d2030
[ 3622.053072][ T2203] sunxi-ehci 4101000.ehci0-controller: remove, state 4
[ 3622.060951][ T2203] usb usb5: USB disconnect, device number 1
[ 3622.071555][  T296] healthd: battery none chg=u
[ 3622.076674][ T2203] sunxi-ehci 4101000.ehci0-controller: USB bus 5 deregistered
[ 3622.078868][ T2203] sunxi:ohci_sunxi:[INFO]: [ohci0-controller]: sunxi_usb_disable_ohci
[ 3622.094215][ T2203] sunxi:ohci_sunxi:[INFO]: [sunxi-ohci0]: remove, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffc0019d24b0
[ 3622.108858][  T296] healthd: battery none chg=u
[ 3622.110328][ T2203] sunxi-ohci 4101400.ohci0-controller: remove, state 4
[ 3622.115340][  T296] healthd: battery none chg=u
[ 3622.122514][ T2203] usb usb6: USB disconnect, device number 1
[ 3622.128084][  T296] healthd: battery none chg=u
[ 3622.140110][ T2203] sunxi-ohci 4101400.ohci0-controller: USB bus 6 deregistered
[ 3622.141346][  T296] healthd: battery none chg=u
[ 3622.149608][ T2203] sunxi:sunxi_usbc:[INFO]: insmod_device_driver
[ 3622.149608][ T2203]
[ 3622.156931][  T296] healthd: battery none chg=u
[ 3622.163044][ T2203] sunxi_usb_udc 4100000.udc-controller: supply udc not found, using dummy regulator
[ 3622.170034][  T296] healthd: battery none chg=u
[ 3622.186592][  T296] healthd: battery none chg=u
[ 3622.193347][  T296] healthd: battery none chg=u
[ 3622.429471][ T2421] android_work: sent uevent USB_STATE=CONNECTED
[ 3622.470429][ T2421] android_work: sent uevent USB_STATE=CONFIGURED
Switch to Host mode
1echo usb_host > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
Serial terminal output
console:/ #echo usb_host > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
[ 3711.414712][ T2203] sunxi:sunxi_usbc:[INFO]: rmmod_device_driver
[ 3711.424325][ T2421] android_work: did not send uevent (0 0 0000000000000000)
[ 3711.434868][ T2203] sunxi:sunxi_usbc:[INFO]: insmod_host_driver
[ 3711.447001][ T2203] sunxi:ehci_sunxi:[INFO]: [ehci0-controller]: sunxi_usb_enable_ehci
[ 3711.459902][ T2203] sunxi:ehci_sunxi:[INFO]: [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffc0019d2030, 0x:ffffffc00ce7d000, irq_no:8b
[ 3711.480447][  T296] healthd: battery none chg=u
[ 3711.482753][ T2203] sunxi-ehci 4101000.ehci0-controller: supply hci not found, using dummy regulator
[ 3711.499732][  T296] healthd: battery none chg=u
[ 3711.502190][ T2203] sunxi-ehci 4101000.ehci0-controller: EHCI Host Controller
[ 3711.513721][ T2203] sunxi-ehci 4101000.ehci0-controller: new USB bus registered, assigned bus number 5
[ 3711.524967][ T2203] sunxi-ehci 4101000.ehci0-controller: irq 139, io mem 0x04101000
[ 3711.546034][ T2203] sunxi-ehci 4101000.ehci0-controller: USB 2.0 started, EHCI 1.00
[ 3711.554959][ T2203] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 3711.565031][ T2203] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3711.573895][ T2203] usb usb5: Product: EHCI Host Controller
[ 3711.580155][ T2203] usb usb5: Manufacturer: Linux 5.15.119 ehci_hcd
[ 3711.587198][ T2203] usb usb5: SerialNumber: sunxi-ehci
[ 3711.604915][ T2203] hub 5-0:1.0: USB hub found
[ 3711.616444][ T2203] hub 5-0:1.0: 1 port detected
[ 3711.629276][ T2203] sunxi:ohci_sunxi:[INFO]: [ohci0-controller]: sunxi_usb_enable_ohci
[ 3711.629285][ T2203] sunxi:ohci_sunxi:[INFO]: [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffc0019d24b0
[ 3711.631720][ T2203] sunxi-ohci 4101400.ohci0-controller: supply hci not found, using dummy regulator
[ 3711.634286][ T2203] sunxi-ohci 4101400.ohci0-controller: OHCI Host Controller
[ 3711.634310][ T2203] sunxi-ohci 4101400.ohci0-controller: new USB bus registered, assigned bus number 6
[ 3711.634353][ T2203] debugfs: Directory 'sunxi-ohci' with parent 'ohci' already present!
[ 3711.634430][ T2203] sunxi-ohci 4101400.ohci0-controller: irq 140, io mem 0x04101400
[ 3711.698231][ T2203] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[ 3711.764164][ T2203] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3711.773092][ T2203] usb usb6: Product: OHCI Host Controller
[ 3711.779381][ T2203] usb usb6: Manufacturer: Linux 5.15.119 ohci_hcd
[ 3711.786447][ T2203] usb usb6: SerialNumber: sunxi-ohci
[ 3711.794848][  T296] healthd: battery none chg=u
[ 3711.795532][ T2203] hub 6-0:1.0: USB hub found

4.4 Ethernet

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.

Network identification successful
console:/ # [ 4279.426567][ T2454] sunxi-gmac 4500000.gmac0 eth0: Link is Up - 1Gbps/Full - flow control off
[ 4279.437015][ T2454] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

❷ View the status of the network interface.

1ifconfig
Serial terminal output
console:/ # ifconfig
eth0      Link encap:Ethernet  HWaddr a0:e3:91:de:5e:74  Driver sunxi-gmac
          inet addr:192.168.0.156  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::7e5a:2a9d:fa57:f798/64 Scope: Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:290 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:32352 TX bytes:7591
          Interrupt:176

❸ Network connection test.

1ping -I eth0 www.armdesigner.com
Serial terminal output
console:/ # ping -I eth0 www.armdesigner.com
PING www.armdesigner.com (67.222.54.196) from 192.168.0.156 eth0: 56(84) bytes of data.
64 bytes from www.armdesigner.com (67.222.54.196): icmp_seq=1 ttl=49 time=206 ms
64 bytes from www.armdesigner.com (67.222.54.196): icmp_seq=2 ttl=49 time=208 ms
64 bytes from www.armdesigner.com (67.222.54.196): icmp_seq=3 ttl=49 time=205 ms
64 bytes from www.armdesigner.com (67.222.54.196): icmp_seq=4 ttl=49 time=208 ms
64 bytes from www.armdesigner.com (67.222.54.196): icmp_seq=5 ttl=49 time=205 ms
64 bytes from www.armdesigner.com (67.222.54.196): icmp_seq=6 ttl=49 time=205 ms
^C
--- www.armdesigner.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5004ms
rtt min/avg/max/mdev = 205.330/206.663/208.644/1.349 ms

4.5 4G & SSD (M.2)

4G+SSD

4G(USB2) cannot be used with SSD(PCIe) simultaneously. The Boardcon firmware enables 4G by default.

4.5.1 4G

❶ Insert 4G module to M.2 slot (4G model: EM05).

❷ Connect antenna and insert SIM card.

❸ Power on. The default connection is 4G network.

_images/android_4G_test.webp

4G network connection

User can open WebView Browser Tester or ping URL/IP to test 4G Network.

1ifconfig
2ping -I wwan0 www.armdesigner.com

4.5.2 SSD

Note

IdeaT527 Android 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.

❸ Mount SSD.

1su
2mkdir /mnt/ssd1
3mount /dev/block/nvme0n1p1 /mnt/ssd1
4ls /mnt/ssd1
Serial terminal output
console:/ $ su
130|console:/ # mkdir /mnt/ssd1
console:/ # mount /dev/block/nvme0n1p1 /mnt/ssd1
[   86.480227][ T2052] exFAT-fs (nvme0n1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
console:/ #
console:/ # ls /mnt/ssd1
Alarms      DCIM       Download  Music          Pictures  Recordings
Audiobooks  Documents  Movies    Notifications  Podcasts  Ringtones
console:/ #

4.6 MicroSD

SD

❶ Insert the micro SD card into the card slot.

❷ Click FileManager to view the device auto-mount directory.

_images/Android_SD.webp

4.7 Audio I/O

Audio I/O

Audio input priority: Headset > MIC; audio output priority: Headset > HDMI > Speaker

4.7.1 Audio Input

  • Headset

    ❶ Plug the headset into the 3.5mm Audio jack.

    _images/Headset_detected.webp

    Headset insertion detected

    ❷ Open Sound Recorder

    _images/Record_icon.webp

    ❸ Click Start to start recording.

    _images/Android_Recording.webp

    ❹ After recording is complete, click Stop to end the recording. Then, click play to play back the recording and verify it.

  • MIC

    ❶ Connect a MIC to the connector (2-pin/2.0mm pitch).

    ❷ Open Sound Recorder

    ❸ Click Start to start recording.

    ❹ After recording is complete, click Stop to end the recording. Then, click play to play back the recording and verify it.

4.7.2 Audio Output

Plug the headset into the 3.5mm Audio jack, or connect the speakers to the speaker port, then click any audio file to play.

_images/Record_play.webp

4.8 WiFi & Bluetooth

WiFi&BT

4.8.1 WiFi

❶ Connect the WiFi antenna.

❷ Click Settings -> Network & internet -> Internet -> Wi-Fi -> turn on

❸ Select the SSID from the list of available networks and enter the password.

_images/Android_wifi_setting.png

After connected, user can open the browser or ping URL/IP at terminal to test Network.

1ifconfig
2ping -I wlan0 www.armdesigner.com

4.8.2 Bluetooth

Click Settings -> Connected devices -> Pair new device

Select the available device in the list to pair.

_images/Android_BT_pair.png

After pairing, devices can connect with each other automatically.

4.9 IR

IR

❶ Use getevent to monitor the IR input device.

1getevent /dev/input/event2

❷ Press buttons on the IR remote. The terminal output shows the reported key/scancode values.

❸ To customize the key mapping, edit bsp/drivers/ir-rx/sunxi-ir-keymap.h

4.10 RS485

_images/RS485.webp

❶ Connect PC and board with USB-to-RS485 adapter.

RS485 connection

RS485 connection

❷ Open the Serial Terminal of board and RS485 adapter respectively. Set the baud rate to 115200.

_images/RS485_baudrate.png

❸ Execute the following commands on the terminal serial ports of board.

1su
2com /dev/ttyAS5 115200 8 0 1

❹ Input character to test RS485 communication.

_images/Android_RS485_Test.png

4.11 CAN

CAN

The device name for CAN0 is awlink0.

❶ Connect PC and board with USB-to-CAN adapter.

CAN connection

CAN connection

❷ Open the CAN application and set the baudrate to 1000000 on PC.

_images/CAN_baudrate.png

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

❹ Configure CAN as receiver.

1candump awlink0
_images/Android_CAN_receiver.png

❺ Set CAN as Transmitter.

1cansend awlink0 123#1122334455667788
_images/Android_CAN_Transmitter.png

4.12 UART (RS232)

_images/UART.webp

❶ Connect RX and TX of UART.

❷ Execute command and input character to test.

1com /dev/ttyAS3 115200 8 0 1
Serial terminal output
console:/# com /dev/ttyAS3 115200 8 0 1
port = /dev/ttyAS3
baudrate = 115200
cs = 8
parity = 0
stopb = 1
1234567890
RECV: 1234567890
abcdefg
RECV: abcdefg

4.13 RTC

RTC

❶ Insert a CR1220 battery before test. It keeps the time running when the main power is off.

❷ Set date and time manually.

1su
2date -s "2026-10-09 16:30:30"           //set system date
3hwclock -w                              //set the hardware clock to current system time
4hwclock                                 //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.

4.14 ADC

RTC

Note

The ADC input voltage must not exceed 1.8 V.

4.14.1 LRADC

1cat /sys/bus/iio/devices/iio\:device1/in_voltage0_raw

The following logs show the ADC readings when the ADC input is connected to 0 V and 1.8 V, respectively:

Serial terminal output
console:/ # cat /sys/bus/iio/devices/iio\:device1/in_voltage0_raw
0
console:/ # cat /sys/bus/iio/devices/iio\:device1/in_voltage0_raw
1323

4.14.2 GPADC

1cat /sys/bus/iio/devices/iio\:device0/in_voltage5_raw

The following logs show the ADC readings when the ADC input is connected to 0 V and 1.8 V, respectively:

Serial terminal output
console:/ # cat /sys/bus/iio/devices/iio\:device0/in_voltage5_raw
0
console:/ # cat /sys/bus/iio/devices/iio\:device0/in_voltage5_raw
1795