UNO-220 - EN - AdvRaspbian - User Manual - V1.2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

UNO-220

Software User Manual

V1.2

UNO-220 Software User Manual


Revision History

Date Version Description Author


2021/2/9 V1.2 Add UNO-220-P4N2AE support. Yuchun.Chen
2020/6/10 V1.1 Initial draft. Gino.Chiu

UNO-220 Software User Manual


Contents
UNO-220 AdvRaspbian Image Feature List .............................................................................................. 4
Write AdvRaspbian image to SD card ...................................................................................................... 5
AdvRaspbian File List .............................................................................................................................. 6
How to test UNO-220 ............................................................................................................................. 7

UNO-220 Software User Manual


UNO-220 AdvRaspbian Image Feature List
- Support Advantech UNO-220 IO Board.
- RTC-RX8010
- TI TCA9554 IO extender
- Serial to RS-232/485
- Infineon TPM SLx9670
- CPU temperature monitor sample code (C & Python) and C binary testing tool.
- SSH server enabled
- Based on 2021-01-11-raspios-buster-armhf-full.img and 2021-01-11-raspios-buster-
armhf.img from Raspberry official website

UNO-220 Software User Manual


Write AdvRaspbian image to SD card
Prerequisite
1. AdvRaspbian Image
2. Micro SD card (Recommended 8GB or more)
3. Host PC (Recommended ubuntu 16.04 x86_64 or newer)

Write image to Micro SD card


1. Open terminal and type “sudo fdisk –l ” (Micro SD card must be inserted)
 Check Micro SD device name

2. Type “sudo dd if={image file path} of={Micro SD device name} bs=4M status=progress conv=fsync”
 Start write image to device

3. Type “sudo fdisk –l {Micro SD device name}”


 Check disk partitions
4. If the disk partitions are created correctly, eject the Micro SD card from the host PC and plug in to
UNO220. Now you can use AdvRaspbian OS on UNO220.

UNO-220 Software User Manual


AdvRaspbian File List

├── define.mk # defined function


├── macro.mk # variables
├── Makefile # Makefile
├── mountimage.sh
├── writesdimage.sh
└── files
├── boot # boot backup files
│ ├── cmdline.txt
│ └── config.txt
└── root # root files for uno-220
├── etc
│ ├── modules-load.d
│ │ ├── gpio-i2c.conf
│ │ └── rtc-i2c.conf
│ ├── udev
│ │ └── rules.d
│ │ ├── 50-i2c_gpio.rules
│ │ └── 50-i2c_rtc.rules
│ └── version
└── usr
└── sbin
├── uno220gpio
├── uno220uart
├── uno220uartrecv
└── uno220uartsend

UNO-220 Software User Manual


How to test UNO-220
RTC
# Get RTC time
pi@raspberrypi:~ $ sudo hwclock -r

# Set RTC by system time


pi@raspberrypi:~ $ sudo hwclock -w

GPIO
# Show usage
pi@raspberrypi:~ $ sudo uno220gpio -h

# Get all GPIO Status


pi@raspberrypi:~ $ sudo uno220gpio

# Export all
pi@raspberrypi:~ $ sudo uno220gpio --export=all
pi@raspberrypi:~ $ sudo uno220gpio

UNO-220 Software User Manual


# Set direction (ex: pin=0, direction=out)
pi@raspberrypi:~ $ sudo uno220gpio --pin=0 --direction=out
pi@raspberrypi:~ $ sudo uno220gpio

# Set value (ex: pin=0, direction=out, value=1)


pi@raspberrypi:~ $ sudo uno220gpio --pin=0 --value=1
pi@raspberrypi:~ $ sudo uno220gpio

Serial Port
Serial port test - PC (Ubuntu 16.04 x86-64) vs Pi
Connect PC's RS-232 TxD/RxD/GND pins to IO Board corresponding pins.
a. PC send data to Pi
# Pi side command:
pi@raspberrypi:~ $ sudo uno220uartrecv

# PC side command:
UNO-220 Software User Manual
$ ./files/host-x86_64/host_send /dev/ttyUSB0 $(echo -ne "\x01\x02\x03")

# Then, Pi will show received data prompt.

b. Pi send data to PC
# PC side command:
$ sudo ./host_recv /dev/ttyUSB0

# Pi side command:
pi@raspberrypi:~ $ sudo uno220uartsend /dev/ttyS0 $(echo -ne "\x01\x02\x03")

#Then, Pi will show received data prompt.

UNO-220 Software User Manual

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy