Page 1
User Manual RSB-4221 RISC 3.5inch SBC based on TI Sitara AM3358 Cortex A8 1Ghz High Performance Processor...
Page 2
The documentation and the software included with this product are copyrighted 2016 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to improve the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated, or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd.
Follow these simple precautions to protect yourself from harm and the products from damage. To avoid electrical shock, always disconnect the power from your PC chassis before you work on it. Don't touch any components on the CPU card or other cards while the PC is on. RSB-4221 User Manual...
Packing List Before installation, please ensure the following items have been shipped: 1 x RSB-4221 3.5inch SBC Optional Accessories Part No. Description 170022161-11 UART Cable 96PSA-A36W12R1 Adapter A/D 100-240V 36W 12V 1700023575-01 CAN Cable 1700023576-01 USB Cable 1700023707-01 Debug Cable...
The equipment has been dropped and damaged. The equipment has obvious signs of breakage. DISCLAIMER: This set of instructions is given according to IEC 704-1. Advantech disclaims all responsibility for the accuracy of any statements contained herein. RSB-4221 User Manual...
2.4.1 Debug Port Connection............... 24 2.4.2 Debug Port Setting..............24 Figure 2.20Hyper Terminal Settings for Terminal Setup .... 24 Chapter Software Functionality ......25 Test Tools ....................26 eMMC Test....................26 USB Test....................26 SD Test ....................27 RSB-4221 User Manual...
Page 8
4.14.4 System Restore ................55 4.15 Watchdog Function ................. 55 Chapter Advantech Services......57 RISC Design-in Services ................ 58 Contact Information................. 61 Technical Support and Assistance............62 Global Service Policy ................62 5.4.1 Warranty Policy................62 5.4.2 Warranty Period................62 RSB-4221 User Manual viii...
Page 9
Obtaining an RMA Number............63 5.5.2 Returning the Product for Repair ..........63 5.5.3 Service Charges ................. 64 5.5.4 Repair Report................65 5.5.5 Custody of Products Submitted for Repair........65 5.5.6 Shipping Back to Customer ............65 RSB-4221 User Manual...
Introduction RSB-4221 is a RISC SBC integrated with a TI Sitara AM3358 Cortex-A8 processor. It is an ideal solution for automation control applications such as smart grids, and industrial and machinery automation due to its ample I/O interface and network func- tionality.
Chapter H/W Installation This chapter gives mechanical and connector information on the RSB-4221 3.5inch SBC. Sections include: Jumper Information Connector Information Mechanical Drawing Quick Start Guide...
This pin header is designed for selecting LCD power level. Backlight power level select (CN2) Part Number 1653003100 Footprint HD_3x1P_100_D Description PIN HEADER 3x1P 2.54mm 180D(M) DIP 205-1x3GS Setting Function (1-2) (2-3) +V12 This pin header is designed for selecting LCD backlight power level. RSB-4221 User Manual...
Page 18
(5-6 7-9 8-10 13- RS232 mode (CN10must be set RS232 at the same time) 15 14-16) (3-59-11 10-12 15- RS422 mode 17 16-18) (1-2 9-11 10-12 RS485 mode (CN10must be set RS485 at the same time) 15-17 16-18) RSB-4221 User Manual...
CN16 CAN CONN CN12 GPIO CONN CN20 USB Type A Connector CN19 USB Type A Connector CN18 USB PinBox JTAG Connector CN19 Ethernet Connector CN20 Ethernet Connector SD Card LVDS CONN LVDS Backlight CN21 DC-Power Jack Recovery RSB-4221 User Manual...
Figure 2.2 M.2 CONNECTOR 2.2.2.3 UART0 debug port (COM0) RSB-4221 can communicate with a host server (Windows or Linux) by using stan- dard DB9. Description COM0_RX COM0_TX RSB-4221 User Manual...
Figure 2.3 COM PORT 2.2.2.4 UART1 COM port (COM1) RSB-4221provides a standard DB9 which can support RS232/RS422/RS485 by changing CN10/ JSETCOM1 jumper. Description COM1_DCD COM1_RX COM1_TX COM1_DTR COM1_RTS COM1_CTS Figure 2.4 COM PORT RSB-4221 User Manual...
2.2.2.5 UART2 and UART3 COM port Pin Connector (COM2_3) RSB-4221 provides a 2X3 pin connector, which contains 2 two-wire COM ports (RS232 level). Description COM2_TX COM3_TX COM2_RX COM3_RX Figure 2.5 COM port pin header 2.2.2.6 UART4 and UART5 COM port Pin Connector (COM4_5) RSB-4221 provides a 2X3 pin connector, which contains 2 two-wire COM ports (RS232 level).
Figure 2.9 USB port connector 2.2.2.10 USB Type A Connector (CN19) Description USB_P2L_N USB_P2L_P Figure 2.10 USB port connector 2.2.2.11 USB Pin Box (CN18) RSB-4221supports a pin box header that contains two USB2.0 ports. Description USB_P3L_N USB_P4L_N USB_P3L_P USB_P4L_P RSB-4221 User Manual...
2.2.2.13 Ethernet Connector (CN19) RSB-4221 provides two RJ45 LAN interface connectors which are compliant with 1000 base-T IEEE 802.ab,100 base-TX IEEE 802.u, 10 base-t IEEE 802.3.The Ethernet ports provide standard RJ-45 jack connector with LED indicators on the front side to show Active/Link status and speed status.
2.2.2.16 LVDS Connector (CN5) RSB-4221 provides an LVDS 10x2-pin board-to-board connector for single channel 18 bit LVDS panel up to 1366x768. To avoid damaging the LCD panel, please make sure to set the right voltage level before powering on (refer to jumper setting descrip- tion for CN3 and LCD datasheet that you will use).
To avoid damaging the LCD panel, please make sure set the right voltage level before powering on (refer to jumper setting description for CN2 and LCD datasheet that you will use). Description +VDD_BKLT_LVDS LCD_BKLT_A LCD_BKLT_PWM_A Figure 2.17 LVDS Inverter Power Connector RSB-4221 User Manual...
Figure 2.18 DC-Power Jack 2.2.2.19 Recovery (SW2) RSB-4221 supports a recovery function when it runs on Android OS. Under Linux OS the recovery button (SW2) is useless. You must press SW2 for about 5 seconds as the board powers up.
Figure 2-7. After the bootloader is programmed on the SD card, insert power adapter con- nector to DC jack on RSB-4221 to power up the board. The bootloader prompt is displayed on the terminal screen. Figure 2.20 Hyper Terminal Settings for Terminal Setup...
After inserting the SD Card, the eMMC NAND Flash will be mmcblk1 USB Test Step 1: Insert the USB flash disk and make sure it is in RSB-4221 device list Step 2: Erase and check #dd if=/dev/zero of=/dev/sdabs=1024 count=1 seek=25118...
Step 2: Insert an SD card into an SD card slot (SD1) and check your device again. You should be able to see more directories. /dev/block/mmcblk1 is the SD card stor- age (Ex. SD Card has 2 partitions). #ls /dev/ block/mmcblk* /dev/block/mmcblk0 /dev/block/mmcblk0boot0 /dev/block/mmcblk0boot1 /dev/block/mmcblk0p1/dev/block/mmcblk0p2/dev/block/mmcblk0p3/dev/block/ mmcblk0p4/dev/block/mmcblk0p5/dev/block/mmcblk0p6/dev/block/mmcblk0p7/ dev/block/mmcblk0p8/dev/block/mmcblk1/dev/block/mmcblk1p1/dev/block/ mmcblk1p2/dev/block/mmcblk1p3/dev/block/mmcblk1p4/dev/block/mmcblk1p5 /dev/block/mmcblk1p6/dev/block/mmcblk1p7/dev/block/mmcblk1p8 RSB-4221 User Manual...
GPIO Test RSB-4221 GPIO default setting. RSB-4221 Android OS/sys/class/gpio GPIO0 gpio200 GPIO1 gpio201 GPIO2 gpio202 GPIO3 gpio203 GPIO4 gpio204 GPIO5 gpio205 GPIO6 gpio206 GPIO7 gpio207 GPIO8 gpio208 GPIO9 gpio209 GPIO10 gpio2010 GPIO11 gpio2011 #cd /sys/class/gpio You can use “ls” to list all GPIO devices, and you should also see GPIO ports in above table.
I2C Test There is one I2C bus in RSB-4221. #ls /sys/class/i2c-dev i2c-1 #i2cdetect -l i2c-1 i2c OMAP I2C adapter I2C adapter Please try the command below to know if there is any device connected to i2c bus 1. #i2cdetect -y –r 1...
If you would like to config IP manually, please use the below command: #busyboxifconfig eth0 xxx.xxx.xxx.xxx up Here’s a real case for your reference.The hosts (RSB-4221) IP is 192.168.0.10; the target (A desktop computer) IP is 192.168.0.12 #busyboxifconfig eth0 down #busyboxifconfig eth0 192.168.0.10...
Note! The target computer (Client) firewall needs to be closed. RGB Test Execute the following commands to run the photo demo application on RSB-4221. #ping 192.168.0.12 PING 192.168.0.12 (192.168.0.12): 56 data bytes 64 bytes from 192.168.0.12: seq=0 ttl=128 time=7.417 ms 64 bytes from 192.168.0.12: seq=1 ttl=128 time=0.203 ms...
3.10 RS232 /RS422/RS485 Test As you can see below, there are 5 UART supported by RSB-4221./dev/ttyO0is reserved for RSB-4221debug port, the other UART ports could be applied by the user. Test RS232 This is loopback test, you need to connect a loopback connector for rs232 to the testing port.
UART1 Jump RS485 mode, you can refer to detailed jump information from the 2.1.1 Jumper List 3.11 Can Test Prepare one Advantech PCI-1680U Can card and install the driver. Connect RSB-4221 CAN Port CAN1_D+ /CAN1_D- and GND with Advantech PCI-1680U can card. RSB-4221 User Manual...
Page 46
Use the following command under rsb4221 to send data through to the can card: # cancard_send.sh 1000000 # cancard_send.sh 1000000 Use the following command under rsb4221 to receive data form the opposite side: #cancard_receive.sh 1000000 RSB-4221 User Manual...
Ubuntu 14.04LTS 64bit installed to your host PC before starting RSB-4221 evaluation/development. Board Support Package We an offer you two different kinds of Android package for RSB-4221. One is a pre- built system image for system recovery, another is a source code package (BSP). 4.2.1 Pre-built System Image You can find the pre-built image 4221AIVxxxx_yyyy-mm-dd.tar.gz from RSB-4221...
Before invoke other script, you should invoke following script: root@tylor-Zhaoyang-K29:~# make TARGET_PRODUCT=<product name> OMAPES=4.x -j<N> sdcard_build where<product name> is: •rsb4221 for rsb-4221 board Note:*<N> should be twice the number of processors on your host machine. For example, a dual core machine would use -j4. 4.4.2...
./4221AIVxxxx_yyyy-mm-dd/scripts root@tylor-Zhaoyang-K29:~#./mksd-recovery.sh /dev/sdb Type “y” (Start to copy files, wait until it shows [Done]) Then insert the Linux system SD card to RSB-4221, and it will boot up with android. 4.6.3 Transfering System to Onboard eMMC Open the debug console...
Open the terminal console and change directory to BSP scripts folder Perform the following command: root@tylor-Zhaoyang-K29:~# cdandroid/kernel root@tylor-Zhaoyang-K29:~# make ARCH=arm menuconfig LinuxKernelConfigurationshowsupasbelow: From the menu, DeviceDrivers/Networkdevicesupport, you can select device(s) you want to build in linux kernel Refer Chapter section 4.4.1 rebuild everything. RSB-4221 User Manual...
Put whole package directory to BSP’s folder: ./android/packages/apps/ Createafile,Android.mk,atpackagedirectory;thecontentslooklikebelow: LOCAL_PATH:=$(callmy?dir) include$(CLEAR_VARS) LOCAL_MODULE_TAGS:=optional LOCAL_SRC_FILES:=$(callall?java?files?under,src) LOCAL_PACKAGE_NAME:=PROJECT_NAME_HERE LOCAL_CERTIFICATE:=platform include$(BUILD_PACKAGE) #Usethefollowingincludetomakeourtestapk. include$(callall-makefiles-under,$(LOCAL_PATH)) Editfollowingfile: ./android/device/Advantech/rsb4221/device.mk toinsertcorrectprojectname: PRODUCT_PACKAGES+=\ PROJECT_NAME_HERE\ librxtxSerial\ SerialJ Serial Port Test 4.8.1 Setup Serial Port Click Serial Port. Click Setup. RSB-4221 User Manual...
Click Baudrate, and choose used baudrate (ex.115200) 4.8.2 Console Test Using serial cable to connect ttyO5withPC/NB's serial port that should be config- ured to 1152008N1, and opening serial terminal AP (like minicom, putty or tera- term). Click Console. RSB-4221 User Manual...
The loop back test result will showup as below. 4.8.4 Send01010101 Test Using serial cable to connect to ttyO5 with PC/NB's serial port that should be configured to 1152008N1, and opening serial terminal AP (like minicom, putty or teraterm) RSB-4221 User Manual...
ClickSend01010101. The character "U" (b'01010101) will show up as below: Network Setup 4.9.1 Wi-Fi Click Settings Turn Wi-Fi on Choose ESSID (for example, ESSD Testing) Input correct password. Wi-Fi Authenticating/Connecting/ObtainingIP address RSB-4221 User Manual...
Wi-Fi connected 4.10 Bluetooth Click Settings, switch the Bluetooth switch to ON to turn on Bluetooth: Click Settings / Bluetooth for the main interface: RSB-4221 User Manual...
Page 58
Click “RSB-4221 Board” to let rsb4221 Bluetooth be visible to other Bluetooth devices. RSB-4221 User Manual...
Click any available devices to pair with. After pairing successfully you can now communicate. 4.11 Ethernet Click Settings / Ethernet configuration, then Turn on Ethernet Click Ethernet configuration RSB-4221 User Manual...
Choose Connection Type (DHCP or Static IP) 4.12 Can Test Click Flexcan: Edit “interface”,”ID”and ”Data”, then Click “Send” to send data to the Can Port. Recieved Data is displayed under the Can Dump area. RSB-4221 User Manual...
(3) copy the corresponding build.prop to the folder “rsb4221” Note! Build.prop and update.zip refer to 4221AIVxxxx_yyyy-mm-dd/scripts Click Settings/ About tablet/ Addition system updates: Wait a moment, the system will reboot to update. It will take some time to update. RSB-4221 User Manual...
This sub function will restore your user data. The main function is as follows: (Click Settings / Backup & reset) 4.14.1 Factory Data Reset Click Settings / Backup & reset, then enter into main interface Click Factory data reset: Click Reset tablet: RSB-4221 User Manual...
Click Settings / Backup & reset, then into main interface Insert your u disk. Note! Make sure your u disk is FAT32 and has a update.zip filed under the first partition, such as /dev/sdb1. Click System Update: RSB-4221 User Manual...
Please refer to 2.2.2.19 Recovery (SW2) 4.14.3 System Backup Click Settings / Backup & reset Click System Backup: Click backup and reboot, the system will reboot to backup user data. Note! Data is backed up to /data/data/ folder RSB-4221 User Manual...
These two values can be modified. Edit init.am335xevm.rc (you can find it under android_source _code/advantech/ rsb4221/): # [Advantech]Set watchdog timer to 1 seconds and every 400 milliseconds to get a 600 millisecond margin service watchdogd /sbin/watchdogd 2000 58000 class core Note! The “2000”...
Chapter Advantech Services This chapter introduces Advan- tech design in serviceability, tech- nical support and warranty policy for RSB-4221 evaluation kit.
Easy Development Advantech has support firmware, root file-system, BSP or other develop tools for cus- tomers. It helps customers to easy develop their carrier board and differentiate their embedded products and applications.
Page 69
Advantech has been involved in the industrial computer industry for many years and found that customers usually have the following questions when implementing modu- lar designs.
Page 70
RISC COM. Design stage When a product moves into the design stage, Advantech will supply a design guide of the carrier board for reference. The carrier board design guide provides pin defini- tions of the COM connector with limitations and recommendations for carrier board design, so customers can have a clear guideline to follow during their carrier board development.
RISC platforms usually have less support for ready-made drivers on the carrier board, therefore the customer has to learn from trial and error and finally get the best solution with the least effort. Advantech’s team has years of experience in customer support and HW/SW development knowledge. Conse- quently, we can support customers with professional advice and information as well as shortening development time and enabling more effective product integration.
(Dead-on-Arrival). The DOA Cross-Shipment excludes any shipping damage, cus- tomized and/or build-to-order products. For those products which are not DOA, the return fee to an authorized ADVANTECH repair facility will be at the customers' expense. The shipping fee for reconstructive products from ADVANTECH back to customers' sites will be at ADVANTECH's expense.
"Problem Description". Vague entries such as "does not work" and "failure" are not acceptable. If you are uncertain about the cause of the problem, please contact ADVANTECH's Application Engineers (AE). They may be able to find a solution that does not require sending the product for repair.
Product updates and tests upon the request of customers who are without war- ranty. If a product has been repaired by ADVANTECH, and within three months after such a repair the product requires another repair for the same problem, ADVANTECH will do this repair free of charge.
5.5.5 Custody of Products Submitted for Repair ADVANTECH will retain custody of a product submitted for repair for one month while it is waiting for return of a signed P/I or payment (A/R). If the customer fails to respond within such period, ADVANTECH will close the case automatically. ADVAN- TECH will take reasonable measures to stay in proper contact with the customer dur- ing this one month period.
Need help?
Do you have a question about the RSB-4221 and is the answer not in the manual?
Questions and answers