iii
Table of Contents
Disclaimers.....................................................................................................ii
Chapter 1 Introduction............................................. 1
1.1 Specifications......................................................................................2
Chapter 2 Getting Started ....................................... 5
2.1 Connecting the rBOX630....................................................................5
2.1.1 Serial Console............................................................................................. 6
2.1.2 SSH over Ethernet ...................................................................................... 8
2.2 How to Develop a Sample Program.................................................10
2.2.1 Install Yocto Toolchain............................................................................... 10
2.2.2 Setting Up the Cross-Development Environment......................................11
2.2.3 Write and Compile Sample Program..........................................................11
2.3 How to Put and Run a Sample Program..........................................12
2.3.1 Via FTP (Default disable) .......................................................................... 12
2.3.2 Via USB Flash Drive.................................................................................. 13
2.3.3 Via TFTP ................................................................................................... 14
Chapter 3 The Embedded Linux ............................ 15
3.1 Embedded Linux Image Managing ..................................................15
3.1.1 System Version ......................................................................................... 15
3.1.2 System Time.............................................................................................. 15
3.1.3 Internal RTC Time..................................................................................... 15
3.1.4 External RTC Time.................................................................................... 16
3.1.5 Adjusting System Time.............................................................................. 16
3.2 Networking.........................................................................................17
3.2.1 FTP –File Transfer Protocol ..................................................................... 17
3.2.2 TFTP –Trivial File Transfer Protocol......................................................... 17
3.2.3 NFS –Network File System...................................................................... 17
Chapter 4 Programming Guide .............................. 19
4.1 librb217 API Functions .....................................................................19
4.2 librb217 API Examples......................................................................24
4.2.1 Get Board ID and Power Status................................................................ 24
4.2.2 COM Port Configuration............................................................................ 24
4.2.3 Watchdog Timer ........................................................................................ 25
4.2.4 Digital Input and Output............................................................................. 26
4.2.5 LEDs Control............................................................................................. 26
4.3 CAN Bus.............................................................................................27