UART Application Kit for Digi Embedded Linux User's Manual

Similar documents
Digi document reference number: _A

Digi Connect ME TM. Integration Guide

ConnectPort X2 Wireless M Bus Development Kit. Getting Started Guide

NS9750B-0. Use in conjunction with: Errata , Rev G. Release date: May Phone: Web:

NS9360. Errata _F. Release date: March 2008

XBee-PRO 900HP Development Kit Getting Started Guide

1. Conventions in this tutorial Introduction Check and change configuration settings as needed Start Digi ESP...

XBee Starter Kit Getting Started Guide

USB to RS-422/485 Serial Adapter

LotOS Framework. Getting Started Guide for Banana Pi. Copyright (C) 2015 ilbers GmbH Revision 1.1,

Powered RS Port PCI Card

ECE251: Thursday November 8

AN10955 Full-duplex software UART for LPC111x and LPC13xx

Powered RS Port PCIe Card

XBee ZigBee SMT RF Module Development Kit Getting Started Guide

RS-422/485 PCIe Card

TPMC Channel Isolated Serial Interface RS422/RS485. Version 1.0. User Manual. Issue July 2009

Product Manual. 2 Port USB to RS-422 /485 Optical Isolated Adapter. Coolgear, Inc. Version 1.1 March 2018 Model Number: USB-2COMi-Si-M

RS-422/485 PCI Card User Manual Ver All brand names and trademarks are properties of their respective owners.

Celeron EPIC Computer with GUI and Dual Ethernet SBC4685

ELAN DIGITAL SYSTEMS LTD.

TPMC Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

TPMC Channel Isolated Serial Interface RS232. Version 1.0. User Manual. Issue August 2017

TCP Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

ELAN DIGITAL SYSTEMS LTD. CF428 COMPACT FLASH CF+ CARD USER S GUIDE

UPort 2000 Series User s Manual

Installation Guide of Hi-Speed USB to Industrial Single RS-422/485 Adapter

MAP/950 SERIAL I/O CARD INSTALLATION MANUAL

AN Sleep programming for NXP bridge ICs. Document information

Flasher ATE. Production Programmer. Getting Started. Document: AN08007 Manual Version: 1.0 Revision: 2 Date: January 9, 2018

UPort 1100 Series User s Manual

8S RS232/422/485 Combo to USB2.0 Module Box Installation Guide

Introduction & Specifications of Hi-Speed USB to Industrial Dual Ports RS-422/485 Adapter

EasySYNC Ltd. USB to Serial Converters Manual

ConnectCore 6 Android/Yocto. Getting Started Guide

EMC DiskXtender File System Manager for UNIX/Linux Release 3.5 Console Client for Microsoft Windows

Z8 Encore! Z8F642 MCU Evaluation Kit

SLS Multiple USB Solutions on a Single Chip using MAX10FPGA

TIM-UP 19k-S3-Spartan 6

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed

Introduction & Specifications of Hi-Speed USB to Serial Adapters

FlexCom104-GPS Manual

Connectware Manager Getting Started Guide

ConnectPort X5 R Family Getting Started Guide

Conventions in this tutorial

EMC DiskXtender File System Manager for UNIX/Linux Release 3.5 SP1 Console Client for Microsoft Windows

Spartan-3 MicroBlaze Sample Project

PCIEMODBOX232 RS232 to PCI Module Box Introduction

Default COM Port, IRQ, and Baud Rate Jumper Settings

Installation Guide of Hi-Speed USB to Industrial I/O Adapter

First Steps. esom/sk5 esom/3517 Embedded Linux Starter Kit

Powered RS Port PCIe Card

Advanced 486/586 PC/104 Embedded PC SBC1491

Product Manual. Mini USB to Terminal RS422 RS485 FTDI Plug-in Adapter. Coolgear, Inc. Version 1.1 April 2018 Model Number: USBG-422MiNi

8 Port USB to RS- 232/422/485 Octal Adapter. Product Manual. Coolgear, Inc. Version 1.1 April 2018 Model Number: USB-8COMi-RM.

Firmware Loader. Software. For support mail to: tech mca.nl See also our website: mca.com. Software Manual. Revision 1.

TPMC Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

Sender Receiver Sender

PCI Express 4-Port Industrial Serial I/O Cards

TRP-C08S. USB To 1* RS232 and 1*RS422/485 Isolated Converter. User s Manual. Printed Jun Rev 1.2

Software Manual. Digi International Inc Bren Road Minnetonka, MN (800) (612)

Development Environment Embedded Linux Primer Ch 1&2

USB-TTL-5 PRODUCT IS A COMBINATION OF PRODUCTS USB AND TTL-232-5P BOTH DATASHEETS ARE INCLUDED IN THIS PDF FILE

Dual Serial Shield User Manual

TRP-C08S. USB to 1 RS232 and 1 RS422/485 Isolated Converter. User s Manual

TRP-C08X. USB To 4 RS232/422/485 Converter. User s Manual

Xtreme/104. PC/104 Serial Communications. User Manual

USB to Single RS-422/485 Adapter - with optical isolation and surge protection (USB-COMi-SI)

Parallel-to-Serial and Serial-to-Parallel Converters

Software Manual. Digi International Inc Bren Road Minnetonka, MN (800) (612)

User Manual VScom PCI Cards VScom Industrial Card

Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment

IC232 PC- CARD USER S GUIDE

Back-up Server. SENT2015_backupserver_guide_en_050815

Installation Guide of Hi-Speed USB-to-Optically Isolated RS-422/485 Adapter

NCOM SERIAL DEVICE SERVER 1XX SERIES USER S MANUAL

USB 3.0 Dual Port Gigabit. Ethernet Cable

MODEL P104-COM232-8 USER MANUAL

DX 32xx and DX 36xx Quick Start

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

SER-4485-SI-M USER S MANUAL

Z8 Encore! XP Family of Microcontrollers Development Kits

AN5179. RS232 communications with a terminal using the STM8 Nucleo-64 boards. Application note. Introduction

Product Manual. USB to Optical Adapter Industrial Isolated RS- 232/422/485. Coolgear, Inc. Version 2.1 December 2018 Model Number: USB-COMi-Si-M

4I32 SERIAL PORT MANUAL

EasySYNC Ltd. USB to Serial Converters Manual

PCI, PCIe, cpci, and PC104+ Plus Modules

ARM. Streamline. Performance Analyzer. Using ARM Streamline. Copyright 2010 ARM Limited. All rights reserved. ARM DUI 0482A (ID100210)

NCOM SERIAL DEVICE SERVER 4XX SERIES USER S MANUAL

PetaLinux SDK User Guide. Eclipse Plugin Guide

ELAN DIGITAL SYSTEMS LTD. CF232 COMPACT FLASH CF+ CARD USER S GUIDE

First Steps. esom/sk4 esom/3517 Embedded Linux Starter Kit

User Guide. Date Apr BlueEva+C11/G2. Stollmann. E + V GmbH. User Guide

Korenix JetCard Series Multiport Serial Card/Ethernet Switch Card User s Manual

ELAN DIGITAL SYSTEMS LTD. SL332 PC- CARD USER S GUIDE

Baltos ir Contact Online. More Pictures. Click on the thumbnails for the large picture

Integrator /CP Board Support Package for Microsoft Windows CE.NET

TCP Channel Serial Interface RS232 / RS422 cpci Module. User Manual. The Embedded I/O Company. Version 1.0. Issue 1.

4-port USB to RS232 Adapter FTDI Cable. Product Manual. Coolgear, Inc. Version 1.1 September 2017 Model Number: CG-4X232FTDI.

Technical Brief Exporting a List of Device MAC Addresses from Xcalibur Global Document Version 1.0

Transcription:

UART Application Kit for Digi Embedded Linux User's Manual Digi document reference number: 90000920_A

Digi International Inc. 2008. All Rights Reserved. The Digi logo is a registered trademark of Digi International, Inc. All other trademarks mentioned in this document are the property of their respective owners. Information in this document is subject to change without notice and does not represent a commitment on the part of Digi International. Digi provides this document as is, without warranty of any kind, expressed or implied, including, but not limited to, the implied warranties of fitness or merchantability for a particular purpose. Digi may make improvements and/or changes in this manual or in the product(s) and/or the program(s) described in this manual at any time. This product could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes may be incorporated in new editions of the publication. Digi International Inc. 11001 Bren Road East Minnetonka, MN 55343 (USA) * +1 877 912-3444 or +1 952 912-3444 http://www.digi.com 2

Contents 1 Introduction... 6 1.1 Features...6 2 Requirements... 7 2.1 Host system requirements...7 3 Installation... 8 3.1 Creating a new project...8 4 Testing... 9 4.1 Load of driver...9 4.2 Simple test of ports...9 4.3 Using the serial ports...10 3

Conventions used in this manual Here is a list of the typographical conventions used in this manual: Style New terms and variables in commands, code, and other input. Style In examples, to show the contents of files, the output from commands. In, text the C code. Variables to be replaced with actual values are shown in italics. Style For menu items, dialogs, tabs, buttons, and other controls. In examples, to show the text that you enter Menu name > option A menu followed by one or more options; for example, File > New. This manual also uses these frames and symbols: This is a warning. It helps solve or avoid common mistakes or problems. This is a hint. It contains useful information about a topic. > This is a host computer session > Bold text indicates what must be entered. > This is a target session > Bold text indicates what must be entered. 4

Abbreviations ASCII CPU ESD FIFO GPIO MEI OS PC RAM ROOTFS TFTP TTL UART American Standard Code for Information Interchange Central Processing Unit Electrostatic Discharge First In First Out General Purpose Input/Output Multiple Electrical Interface Operating System Personal Computer Random Access Memory Root File System Trivial File Transfer Protocol Transistor Transistor Logic Universal Asynchronous Receiver Transmitter 5

UART Application Kit for Digi Embedded Linux - User's Manual 1 Introduction The UART Application Kit is a product that extends the number of serial ports available on your Digi Development board or JumpStart board. The UART Application Kit board connects to the development board via the Peripheral Application Header and the provided 50-pin flat cable. It mounts a quadruple UART chip and additional logic for providing 4 independent configurable RS-232/422/485 serial ports. Each port can be configured, via an on-board switch, for RS-232, RS-422 or RS-485 asynchronous serial communication in either full-duplex or half-duplex mode. The UART Application Kit board is powered from the Development board. The software package contains the driver needed to support the extended UARTs in Digi Embedded Linux. This User's Manual assumes that the reader is able to create, compile and install a kernel + kernel modules project using Digi Embedded Linux environment. 1.1 Features The following are the main features of the UART Application Kit: Four independent configurable RS-232/422/485 serial ports 64-byte transmit/receive FIFO with error flags Up to 5Mbits/sec baud rate Full modem RS-232 Configurable full-duplex or half-duplex RS-422/485 ports Configurable termination resistor for RS-422/485 ports Four 9 way D type connectors All ports accessible at TTL level (connector not mounted) One shared open collector interrupt for all the ports Power save mode ±15kV ESD protection 6

UART Application Kit for Digi Embedded Linux - User's Manual 2 Requirements 2.1 Host system requirements To create a DigiEL project with support for the UART Application kit, the Host PC should meet the following requirements: Linux OS Digi Embedded Linux 4.0 (or higher) 7

UART Application Kit for Digi Embedded Linux - User's Manual 3 Installation To install the software place the installer file uart_appkit_installer.run into any folder of a Linux host, and then execute it. >./uart_appkit_installer.run This will install UART Application Kit software package Do you want to proceed? [y]: After you have accepted the license agreement you will be prompted for the installation folder of Digi Embedded Linux, and whether you want the installer to generate backups for the files it will replace. The script installs the UART AppKit driver as a loadable module into your Digi Embedded Linux distribution. Any new project will include this module. 3.1 Creating a new project The UART Application Kit driver has been designed as a loadable module based on the generic Linux 8250/16550 UART driver. Create a new kernel + kernel modules + rootfs Digi EL project based on your hardware platform. The new project will include the driver for the UART Application Kit as a loadable module. You can find the source code in the folder modules/uartkit/ of your project's root folder. 3.1.1 Build the project Compile and install the kernel and rootfs (with make and make install). The UART AppKit driver will be stored as two loadable modules called 8250_uak.ko and uart_appkit.ko within the project rootfs. 8

UART Application Kit for Digi Embedded Linux - User's Manual 4 Testing 4.1 Load of driver The UART Application Kit driver is based on a modified version of the generic 8250/16550 UART driver. The first thing to do is to load this driver: > modprobe 8250_uak Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing enabled Then, load the UART Application Kit driver: > modprobe uart_appkit uart_appkit V1.0 serial8250.0: ttysuak0 at MMIO map 0x40000000 mem 0xc2864000 (irq = 29) is a ST16654 serial8250.0: ttysuak1 at MMIO map 0x40000008 mem 0xc2866008 (irq = 29) is a ST16654 serial8250.0: ttysuak2 at MMIO map 0x40000010 mem 0xc2868010 (irq = 29) is a ST16654 serial8250.0: ttysuak3 at MMIO map 0x40000018 mem 0xc286a018 (irq = 29) is a ST16654 This will populate the target's file system with the following device nodes: /dev/ttysuak0, /dev/ttysuak1, /dev/ttysuak2, and /dev/ttysuak3. These modules are not designed to be unloaded from the kernel at runtime. 4.2 Simple test of ports To test the ports, connect a serial cable between two ports. For example port 0 and port 3. Configure the ports in RS-232 mode (switch S1.1 is ON and rest are OFF). Open a telnet session to the target and listen on port 0 with the cat command: > cat /dev/ttysuak0 Open a second telnet session and write to port 3 with the echo command (using redirection): > echo "HELLO FROM PORT 3" > /dev/ttysuak3 The message will be echoed into the session that listens to port 0. 9

UART Application Kit for Digi Embedded Linux - User's Manual 4.3 Using the serial ports The UART Application Kit serial ports can be handled like any other serial port in Linux. Please refer to the following documents for information about serial ports programming: Serial Programming HOWTO: http://tldp.org/howto/serial-programming-howto/ Serial Programming Guide for POSIX Operating Systems: http://www.easysw.com/~mike/serial/ 10