My two wonderful project partners: Gerel Enrile and Joyce Gong.
|
|
|
- Moses Hodges
- 9 years ago
- Views:
Transcription
1 *** The `Linux Serial Port Programming mini-howto' is posted automatically by the *** Linux HOWTO coordinator, Greg Hankins Please *** direct any comments or questions about this HOWTO to the author, *** Antonino Iannella BEGIN Linux Serial Port Programming mini-howto part 1/1 --- Linux Serial Port Programming Mini-Howto Antonino Iannella, Version 1.0, March 9th Introduction This document describes how to program the RS-232 ports for serial communications, under PC-Linux. It covers information about the serial ports, RS232 connections, modem issues, and the C programming logic. 2. Background For our final year project, our group had to design a concept World Wide Web browser. Our prototype was a hand-held device which plugged into a PC's COM2 (25-pin) serial port. The user would issue commands to the browser (eg Back, Open, etc) by sending character commands to the PC. The browser software would detect it, and perform the required operation. The method provided in the 'Linux I/O port programming mini-howto' did not act reliably. Often, an incorrect value would be received. The information within provided a 100% reliable, quasi-posix-compliant approach to communication. The program provided at the end of this 0 formed the basis of the PC's communication program. This document is written from the 1 needed for the web browser project. It revolves around C programming for Linux, for a 9600 baud device attached to COM2. 3. Acknowledgements The information here comes mainly from these sources - Heavily based on the 'Serial Programming Guide for POSIX Compliant Operating Systems', at by [email protected]. If you need greater detail or more information, then this is the place to visit. Most of the information in this 0 originated here. The 'Linux I/O port programming mini-howto', by Riku Saikkonen ([email protected]). This document provides a different approach to Linux serial programming. 'The Linux Serial HOWTO', by Greg Hankins, [email protected] describes how to set up serial communications devices on a Linux box. It describes many aspects of serial devices and 0. My two wonderful project partners: Gerel Enrile and Joyce Gong. 4. Copyright This document is copyright (C) 1997 by Antonino Iannella. It is covered under the general Linux HOWTO copyright agreement.
2 It is intended for the general public. it may be reproduced and distributed in whole or in part, using any electronic or physical medium. However, this copyright notice must remain on all copies. Please forward question, suggestions, corrections, and all tidbits of information to the author at (or You will be acknowledged in future HOWTO revisions. 5. RS-232 connections RS-232 is a standard for serial communications. It comes in different varieties. The most common is RS-232C which defines a 'mark' bit as a voltage between -3V and -12V, and a 'space' bit as a voltage between +3V and +12V. RS-574 is the standard for 9-pin PC connectors and voltages. RS-232 basically consists of wires for serial communications; sending and receiving, timing, status, and handshaking. You can use a null modem cable as your connector. The following pins are what were used for our project. We connected the device to the DB-25 pin COM2 port. Please note that the Transmit line from the PC must connect to the Receive line of the device, and vice versa. Also, please note that a parallel port is different to a serial port! PC's pins Device's pins TxD Transmit Data 2-3 RxD Receive Data RxD Receive Data 3-2 TxD Transmit Data SG Signal Ground 7-7 SG Signal Ground Refer to the Linux Serial HOWTO for more specialised connections, and detailed RS-232 pins. 6. Serial 0 and RS-232 definitions The way that data get transmitted in serial communications is, well, serially. One data bit is sent at a time. Each bit is either on (or the 'mark' state), or off (or the 'space' state). The serial data throughput is usually expressed in bits-per-second (bps) or baudot (baud). Throughput is the number of data bits (2 or off) that may be sent in a second. Your modem might be able to support baud. The project's web browser device was designed to run at 9600 baud. RS-232 provides 18 different signals. About 6 are available to UNIX for programming. GND - Logic ground Very important. Acts as a reference voltage, so the devices know the relative voltage of the data transmitted. TxD - Transmitted data Carries the data transmitted from your PC. A 'mark' voltage is interpreted as 1, while a 'space' voltage is interpreted as 0. RxD - Received data
3 Carries the data transmitted to your PC from the other device. DCD - Data carrier detect Is sent from the other device to your PC. A 'space' voltage means that the device is still connected, or 'on-line'. This signal is not always used or available. DTR - Data terminal ready Is sent from your PC to tell the device that you are ready (space) or not-ready (mark). DTR is usually enabled automatically whenever you access the serial interface. CTS - Clear to send Is sent from the other device to your PC. A 'space' voltage means that your PC may send some data. It is usually used to regulate the flow of serial data from your PC, but it is not currently supported by all UNIX flavours. RTS - Request to send Is set to the 'space' voltage by your PC when it requests to send more data. It also used to regulate data flow. Many systems leave it on 'space' voltage all the time. 7. Communication issues This section covers other issues of serial communication which might be relevant to your particular application. Since we are programming for asynchronous communication, we need the PCs/devices to know where each character starts and ends in the serial data flow. In asynchronous mode, the serial data line stays in the mark state until a character is sent. A 'start bit' is sent before each character; it is always 0 and tells the PC/device that a character will follow. After the start bit, the character's bits are sent, then a 'parity' bit, and one or more stop bits. The parity bit is a checksum of the data bits, indicating the number of 1 bits it contained - Even parity - parity bit is 1 if there is an even number of 1s Odd parity - parity bit is 1 if there is an odd number of 1s Space parity - parity bit is always 0 Mark parity - parity bit is 1 No parity - no parity bit is sent or present. 'Stop' bits come at the end of every character. There may be 1, 1.5, or 2 stop bits. They used to be used to give the computer time to process the character, but now they are used to synchronise the computer to the incoming characters. Asynchronous data is usually described like '8N1' - 8 data bits, no parity bits, 1 stop bit. Another common one is '7N1'. Flow control is used to regulate the data flow between devices, if there is some sort of limitation, such as a slow device. There is 'Software Flow Control' using special characters, XON and XOFF, to regulate the flow. This method is not useful for transmitting non-textual data. 'Hardware Flow Control' uses the RTS and CTS signals instead of special
4 characters. The receiver sets CTS to space when it is ready to receive, and to mark when it's not. The sender uses RTS the same way. This method is faster than Software Flow Control, since it uses a separate set of signals instead of extra bits. Since the receive or transmit signal is at mark voltage until a new character is sent. A 'break' condition exists when the line is set to low for 1/4 to 1/2 a second. It is used to reset a communications line, or change the operation mode of devices like modems. 8. Basic port programming Hopefully, all of the above is reasonably clear to you, so you may proceed to program with confidence! In UNIX all system devices are treated as (special) files. All serial ports are opened, read from, written to, and closed, just like a binary file. In Linux, the PC serial ports are COM1 - /dev/ttys0 COM2 - /dev/ttys1 COM3 - /dev/ttys2 COM4 - /dev/ttys3 Firstly, open the serial port as a file. However, UNIX does not allow devices to be accessed by normal users. To solve this, either run the program as the superuser, or change the permission on the device as root, eg chmod a+rw /dev/ttys1 (lets everyone access COM2) To open the file do the following. Notice the three flags used in the open() function. O_RDWR means that we open the port for reading and writing. O_NOCTTY specifies that the program won't be the controlling entity for the port. Most user programs don't want this feature. O_NDELAY means that your program ignores the DCD line. If it didn't, the program will be put to sleep until DCD is set to 'space' voltage. /* * 'open_port()' - Open serial port 1 - COM2. * * Returns the file descriptor on success or -1 on error. int open_port(void) { int fd; /* File descriptor for the port fd = open("/dev/ttys1", O_RDWR O_NOCTTY O_NDELAY); if (fd == -1) { /* Could not open the port fprintf(stderr, "open_port: Unable to open /dev/ttys1 - %s\n", strerror(errno)); return (fd); If you need to write data to the port, do something like n = write(fd, "ATZ\r", 4); if (n < 0)
5 puts("write() of 4 bytes failed!\n"); Reading from the port is more complicated. If you open the port in 'raw data' mode (the norm), each read() returns the number of characters actually available in the serial buffers. However, if no characters are available, read() will block until it receives characters, an interval timer expires, or an error occurs. Use the following to make read return immediately. FNDELAY makes read() return 0 if no characters were read. fcntl(mainfd, F_SETFL, FNDELAY); /* Configure port reading To close the serial port, simply use close(fd); 9. Port configuration This section discusses how to configure the serial port for your device. You will need to set the terminal attributes related to the port. To do this, include <termios.h> and access the termios structure using the POSIX tcgetattr() and tcsetattr() functions. The termios structure contains c_cflag - Control options c_lflag - Line options c_iflag - Input options c_oflag - Output options c_cc - Control characters See section 12 for a list of c_cflag control modes. They are used to set the baud rate, parity and stop bits, and flow control. Always enable CLOCAL and CREAD, so the program does not own the port, and so the serial interface driver will read incoming bytes Accessing the termios structure and the baud rate Use cfsetospeed() and cfsetispeed() to set the baud rate. CRTSCTS might be called CNEW_RTSCTS on other systems. The following uses a termios structure called 'options'. For our project, the device transmitted at 9600 baud and transmitted nothing special. tcgetattr(mainfd, &options); /* Get the current options for the port cfsetispeed(&options, B9600); /* Set the baud rates to 9600 cfsetospeed(&options, B9600); /* Enable the receiver and set local mode options.c_cflag = (CLOCAL CREAD); /* Set the new options for the port tcsetattr(mainfd, TCSANOW, &options); The tcsetattr() function replaces the port's termios structure with the settings you provided. The TCSANOW constant means that the changes should occur immediately, without waiting for data transmission to complete. Alternative choices are TCSADRAIN and TCSAFLUSH, which wait until buffers are cleared. Refer to section Character size and parity
6 To set the character size, you must use bitwise logic. The following code sets the character size to 8 data bits, and no parity. options.c_cflag &= ~PARENB; /* Mask character size to 8 bits, no parity options.c_cflag = CS8; /* Select 8 data bits For other methods, refer to section Hardware flow control To enable hardware flow control, use options.c_cflag = CRTSCTS; /* Enable hardware flow control To disable it, options.c_cflag &= ~CRTSCTS; /* Disable hardware flow control 9.4. Canonical and raw input Canonical input means that all incoming characters are placed in a buffer which may be edited by the user, until a carriage return or line feed (CR or LF) are received. Typically, you would use options.c_lflag = ~(ICANON ECHO ECHOE); Raw input is unprocessed, so they may be used as they are read. Our device sent raw data. options.c_lflag &= ~(ICANON ECHO ISIG); Whether you use canonical or raw input, make sure you never enable input echo when connected to a computer/device which is echoing characters to you. Refer to section 14 for local mode constants POSIX input modes Set the port's input modes for any input processing. Set input parity when you have enabled parity in the c_cflag part. Usually you'd use the following to enable parity checking, and strip the parity bit off the data, before your program reads it. options.c_iflag = (INPCK ISTRIP); You might use IGNPAR, which ignores all parity errors. PARMRK marks parity errors by inserting a DEL(255) and NUL character before the bad character. If IGNPAR is enabled, only a NUL is inserted. You may set software flow control using options.c_iflag = (IXON IXOFF IXANY); Refer to section 15 for input mode constants POSIX output modes To set port output modes, use the c_oflag member. To select processed output, use the following. Of all the output modes, you will probably only use ONCLR to convert newlines into CR and LFs.
7 options.c_oflag = OPOST; For raw output, use options.c_oflag &= ~OPOST; Refer to section 16 for output mode constants POSIX control modes You may set the control characters using the c_cc part. Set the software flow control characters in the VSTART and VSTOP elements. The standard is DC1(17) and DC3(19) for XON and XOFF. VMIN specifies the minimum number of 0 to read. If it is 0, then VTIME specifies the time to wait for each character. If VMIN is not 0, VTIME is the time to wait to read the first character. If the first character is read, then any read() will be blocked until all VMIN characters are read. VTIME is specified in tenths of seconds. If it is 0, then read()s will be permanently blocked unless NDELAY was previously specified with fcntl(). Refer to section 17 for control mode constants. 10. Sample program This program is a skeleton COM2 reader, which was used for our project. It did not need all of the information specified above for configuring ports. The 20ms delay is used to indicate that data coming into the port is buffered, and is available for the next read(). /* Better port reading program v This test program uses quasi-posix compliant UNIX functions to open the ABU port and read. Uses termio functions to initialise the port to 9600 baud, at 8 data bits, no parity, no hardware flow control, and features character buffering. The 20ms delay after the port read indicates that characters are buffered if a button is pressed many times. This program was derived from instructions at #include <stdio.h> /* Standard input/output definitions #include <string.h> /* String function definitions #include <unistd.h> /* UNIX standard function definitions #include <fcntl.h> /* File control definitions #include <errno.h> /* Error number definitions #include <termios.h> /* POSIX terminal control definitions /* * 'open_port()' - Open serial port 1. * * Returns the file descriptor on success or -1 on error. int open_port(void) {
8 int fd; /* File descriptor for the port fd = open("/dev/ttys1", O_RDWR O_NOCTTY O_NDELAY); if (fd == -1) { /* Could not open the port fprintf(stderr, "open_port: Unable to open /dev/ttys1 - %s\n", strerror(errno)); return (fd); void main() { int mainfd=0; /* File descriptor char chout; struct termios options; mainfd = open_port(); fcntl(mainfd, F_SETFL, FNDELAY); /* Configure port reading /* Get the current options for the port tcgetattr(mainfd, &options); cfsetispeed(&options, B9600); /* Set the baud rates to 9600 cfsetospeed(&options, B9600); /* Enable the receiver and set local mode options.c_cflag = (CLOCAL CREAD); options.c_cflag &= ~PARENB; /* Mask the character size to 8 bits, no parity options.c_cflag = CS8; /* Select 8 data bits options.c_cflag &= ~CRTSCTS; /* Disable hardware flow control /* Enable data to be processed as raw input options.c_lflag &= ~(ICANON ECHO ISIG); /* Set the new options for the port tcsetattr(mainfd, TCSANOW, &options); while (1) { read(mainfd, &chout, sizeof(chout)); /* Read character from ABU if (chout!= 0) printf("got %c.\n", chout); chout=0; usleep(20000); close(mainfd); /* Close the serial port 11. Character and parity settings No parity (8N1):
9 options.c_cflag &= ~PARENB; options.c_cflag = CS8; Even parity (7E1): options.c_cflag = PARENB; options.c_cflag &= ~PARODD; options.c_cflag = CS7; Odd parity (7O1): options.c_cflag = PARENB; options.c_cflag = PARODD; options.c_cflag = CS7; Mark parity is simulated by using 2 stop bits (7M1): options.c_cflag &= ~PARENB; options.c_cflag = CSTOPB; options.c_cflag = CS7; Space parity is setup the same as no parity (7S1): options.c_cflag &= ~PARENB; options.c_cflag = CS8; 12. POSIX control mode flags The following table lists the possible control modes for c_cflag. Constant Description CBAUD B0 B50 B75 B110 B134 B150 B200 B300 B600 B1200 B1800 B2400 B4800 B9600 B19200 B38400 EXTA EXTB CSIZE CS5 Bit mask for baud rate 0 baud (drop DTR) 50 baud 75 baud 110 baud baud 150 baud 200 baud 300 baud 600 baud 1200 baud 1800 baud 2400 baud 4800 baud 9600 baud baud baud External rate clock External rate clock Bit mask for data bits 5 data bits
10 CS6 6 data bits CS7 7 data bits CS8 8 data bits CSTOPB 2 stop bits (1 otherwise) CREAD Enable receiver PARENB Enable parity bit PARODD Use odd parity instead of even HUPCL Hangup (drop DTR) on last close CLOCAL Local line - do not change 'owner' of port LOBLK Block job control output CRTSCTS Enable hardware flow control (not supported on all platforms) 13. POSIX tcsetattr Constants Constant Description TCSANOW Make changes now without waiting for data to complete TCSADRAIN Wait until everything has been transmitted TCSAFLUSH Flush input and output buffers and make the change 14. POSIX Local Mode Constants Constant Description ISIG Enable SIGINTR, SIGSUSP, SIGDSUSP, and SIGQUIT signals ICANON Enable canonical input (else raw) XCASE Map uppercase \lowercase (obselete) ECHO Enable echoing of input characters ECHOE Echo erase character as BS-SP-BS ECHOK Echo NL after kill character ECHONL Echo NL NOFLSH Disable flushing of input buffers after interrupt or quit characters IEXTEN Enable extended functions ECHOCTL Echo control characters as ^char and delete as ~? ECHOPRT Echo erased character as character erased ECHOKE BS-SP-BS entire line on line kill FLUSHO Output being flushed PENDIN Retype pending input at next read or input char TOSTOP Send SIGTTOU for background output 15. POSIX Input Mode Constants Constant Description INPCK IGNPAR PARMRK ISTRIP IXON IXOFF IXANY IGNBRK BRKINT INLCR IGNCR ICRNL IUCLC IMAXBEL Enable parity check Ignore parity errors Mark parity errors Strip parity bits Enable software flow control (outgoing) Enable software flow control (incoming) Allow any character to start flow again Ignore break condition Send a SIGINT when a break condition is detected Map NL to CR Ignore CR Map CR to NL Map uppercase to lowercase Echo BEL on input line too long
11 16. POSIX Output Mode Constants Constant Description OPOST Postprocess output (not set = raw output) OLCUC Map lowercase to uppercase ONLCR Map NL to CR-NL OCRNL Map CR to NL NOCR No CR output at column 0 ONLRET NL performs CR function OFILL Use fill characters for delay OFDEL Fill character is DEL NLDLY Mask for delay time needed between lines NL0 No delay for NLs NL1 Delay further output after newline for 100 milliseconds CRDLY Mask for delay time needed to return carriage to left column CR0 No delay for CRs CR1 Delay after CRs depending on current column position CR2 Delay 100 milliseconds after sending CRs CR3 Delay 150 milliseconds after sending CRs TABDLY Mask for delay time needed after TABs TAB0 No delay for TABs TAB1 Delay after TABs depending on current column position TAB2 Delay 100 milliseconds after sending TABs TAB3 Expand TAB characters to spaces BSDLY Mask for delay time needed after BSs BS0 No delay for BSs BS1 Delay 50 milliseconds after sending BSs VTDLY Mask for delay time needed after VTs VT0 No delay for VTs VT1 Delay 2 seconds after sending VTs FFDLY Mask for delay time needed after FFs FF0 No delay for FFs FF1 Delay 2 seconds after sending FFs 17. POSIX Control Character Constants Constant Description Key VINTR Interrupt CTRL-C VQUIT Quit CTRL-Z VERASE Erase Backspace (BS) VKILL Kill-line CTRL-U VEOF End-of-file CTRL-D VEOL End-of-line Carriage return (CR) VEOL2 Second end-of-line Line feed (LF) VMIN Minimum number of characters to read VTIME Time to wait for data (tenths of seconds) End of Linux Serial Programming Mini-Howto
Serial Programming HOWTO
Gary Frerking [email protected] Peter Baumann Revision History Revision 1.01 2001 08 26 Revised by: glf New maintainer, converted to DocBook Revision 1.0 1998 01 22 Revised by: phb Initial document release
PCMCIA 1 Port RS232 2.1 EDITION OCTOBER 1999
232 232232 PCMCIA 1 Port RS232 2.1 EDITION OCTOBER 1999 Guarantee. FULL 36 MONTHS GUARANTEE. We guarantee your interface card for a full 36 months from purchase, parts and labour, provided it has been
Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System
Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System ECU DB9 USB 20-060_A.DOC Page 1 of 18 9/15/2009 2009 Precision Airmotive LLC This publication may not be copied
RJ45 Shielded (standard) port pinout. CS9000, Jetstream 4000 + 8500, Lanstream 2000, RTA8/RJX, RRC16, MTA8/RJX & SXDC8/RJX
Shielded (standard) port pinout Pin Circuit Function 1 DCD Input Data Carrier Detect 2 DSR Output Data Set Ready 3 DTR Input Data Terminal Ready 4 S/GND Signal Ground 5 TXD Output Transmit Data 6 RXD Input
RS-232 Communications Using BobCAD-CAM. RS-232 Introduction
RS-232 Introduction Rs-232 is a method used for transferring programs to and from the CNC machine controller using a serial cable. BobCAD-CAM includes software for both sending and receiving and running
LS-101 LAN to Serial Device server. User s Manual
LS-101 LAN to Serial Device server User s Manual Revision History Revision No Date Author Remarks 0.1 August 29, 2001 IDC Initial document INTRODUCTION Overview Almost all instruments and most industrial
WHQL Certification Approval...2 User Interface...3 SUNIX s COMLab..4
INDEX WHQL Certification Approval...2 User Interface....3 SUNIX s COMLab..4 1.0 Introduction...5 2.0 Specification..5 2.1 Features 2.2 Universal Serial PCI Card 2.3 RS-232 Specification 2.4 Low Profile
LTM-1338B. Plus Communications Manual
LTM-1338B Plus Communications Manual 2000. Best Power, Necedah, Wisconsin All rights reserved. Best Power The System Setup option from the Main Menu on the front panel is passwordprotected. The default
When we look at the connector pinout of the RS232 port, we see two pins which are certainly used
1 Null modem - an introduction Serial communications with RS232 1. One of the oldest and most widely spread communication methods in computer world. The way this type of communication can be performed
Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0
Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0 Copyright, 1999-2007 Virtual Integrated Design, All rights reserved. 1 Contents: 1. The Main Window. 2. The Port Setup Window. 3.
RS-232 COMMUNICATIONS
Technical Note D64 0815 RS-232 COMMUNICATIONS RS-232 is an Electronics Industries Association (EIA) standard designed to aid in connecting equipment together for serial communications. The standard specifies
Appendix A. This Appendix includes the following supplemental material:
Appendix A This Appendix includes the following supplemental material: Cabling Diagrams and Instructions Connectors (9-pin D-type) Data Transfer Protocols Usage/Handshaking Ultimax Dual Screen Console
How to setup a serial Bluetooth adapter Master Guide
How to setup a serial Bluetooth adapter Master Guide Nordfield.com Our serial Bluetooth adapters part UCBT232B and UCBT232EXA can be setup and paired using a Bluetooth management software called BlueSoleil
Cable Guide. Click on the subject to view the information. Digi Cables Building Cables General Cable Information
Cable Guide Click on the subject to view the information. Digi Cables Building Cables General Cable Information Digi Cables Click on the subject to view the information. Digi Connector Options Digi Connector
RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide
RS-422/485 Multiport Serial PCI Card Installation Guide 21 Contents 1. Introduction...1 2. Package Check List...2 3. Board Layouts and Connectors...3 3.1 2S with DB9 Male Connectors...3 3.1.1 JP5: UART
The Secrets of Flow Control in Serial Communication
in Serial Communication Casper Yang, Senior Product Manager [email protected] Although RS-232/422/485 serial communication is no longer considered to be high speed, flow control is still an important function
BLUETOOTH SERIAL PORT PROFILE. iwrap APPLICATION NOTE
BLUETOOTH SERIAL PORT PROFILE iwrap APPLICATION NOTE Thursday, 19 April 2012 Version 1.2 Copyright 2000-2012 Bluegiga Technologies All rights reserved. Bluegiga Technologies assumes no responsibility for
16-Port RS232 to USB2.0 High Speed Multi Serial Adapter (w/ Metal Case) Installation Guide
16-Port RS232 to USB2.0 High Speed Multi Serial Adapter (w/ Metal Case) Installation Guide 1. Introduction Thank you for purchasing this 16-Port RS232 to USB2.0 High Speed Multi Serial Adapter. It is an
ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme 2015 - Alle Rechte vorbehalten
ALL-USB-RS422/485 USB to Serial Converter RS422/485 User Manual ALL-USB-RS422/485 USB to RS-422/485 Plugin Adapter This mini ALL-USB-RS422/485 is a surge and static protected USB to RS-422/485 Plugin Adapter.
Allen-Bradley. Bar Code. 2-D Hand-Held. Programming Guide. Bar Code. Scanners. (Cat. No. 2755-HTG-4)
Allen-Bradley 2-D Hand-Held Bar Code Scanners Bar Code Programming Guide (Cat. No. 2755-HTG-4) Important User Information The illustrations, charts, sample programs and layout examples shown in this guide
BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter
BIT COMMANDER Serial RS232 / RS485 to Ethernet Converter (Part US2000A) Copyrights U.S. Converters 1 Contents Overview and Features... 3 Functions..5 TCP Server Mode... 5 Httpd Client Mode.5 TCP Auto mode....6
RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: 91-79-4002 4896 / 97 / 98 (M) 0-98253-50221 www.interfaceproducts.info
RS232C < - > RS485 CONVERTER S MANUAL Model: LD15U INTRODUCTION Milestone s model LD-15U is a RS232 to RS 485 converter is designed for highspeed data transmission between computer system and or peripherals
--[ Contents. 1. - Introduction 2. - Motivation 3. - RDS 4. - RDS-TMC 5. - Sniffing circuitry 6. - Simple RDS Decoder 0.1 7. - Injection circuitry
=-----------------------------------------------------------------------= =----------------------=[ Hijacking RDS-TMC Traffic ]=------------------= =----------------------=[ Information signal ]=------------------=
Manual Serial PCI Cards
Manual Serial PCI Cards W&T Models 13011, 13410 13411, 13610 13611, 13812 Version 1.4 Subject to error and alteration 37 01/2005 by Wiesemann & Theis GmbH Subject to errors and changes: Since we can make
Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring 2007-08) Serial Interfacing. By Dr.
CMPE328 Microprocessors (Spring 27-8) Serial Interfacing By Dr. Mehmet Bodur Objectives Upon completion of this chapter, you will be able to: List the advantages of serial communication over parallel communication
ASCII Code. Numerous codes were invented, including Émile Baudot's code (known as Baudot
ASCII Code Data coding Morse code was the first code used for long-distance communication. Samuel F.B. Morse invented it in 1844. This code is made up of dots and dashes (a sort of binary code). It was
NVT (Network Virtual Terminal) description
NVT (Network Virtual Terminal) description English version Czech version Communication with the TCP/IP device over the Ethernet network can be extended to more functions using NVT (Network Virtual Terminal)
CENTRONICS interface and Parallel Printer Port LPT
Course on BASCOM 8051 - (37) Theoretic/Practical course on BASCOM 8051 Programming. Author: DAMINO Salvatore. CENTRONICS interface and Parallel Printer Port LPT The Parallel Port, well known as LPT from
Application Note 83 Fundamentals of RS 232 Serial Communications
Application Note 83 Fundamentals of Serial Communications Due to it s relative simplicity and low hardware overhead (as compared to parallel interfacing), serial communications is used extensively within
LINDY ELECTRONICS LIMITED & LINDY-ELEKTRONIK GMBH - SECOND EDITION
RS-422/485 PCI Card User Manual English No. 51200 (2 Port) No. 51202 (4 Port) No. 51204 (8 Port) www.lindy.com LINDY ELECTRONICS LIMITED & LINDY-ELEKTRONIK GMBH - SECOND EDITION (Nov 2005) 1.0 Introduction
MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual
MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual Version: 1.0.1 Dec. 2005 Table of Contents I. Introduction 2 II. Operations 2 II.1. Theory of Operation 2 II.2. Configuration (PC-PC
Using Xbee 802.15.4 in Serial Communication
Using Xbee 802.15.4 in Serial Communication Jason Grimes April 2, 2010 Abstract Instances where wireless serial communication is required to connect devices, Xbee RF modules are effective in linking Universal
Quectel Cellular Engine
Cellular Engine GSM UART Port Application Notes GSM_UART_AN_V1.01 Document Title GSM UART Port Application Notes Version 1.01 Date 2009-11-16 Status Document Control ID Release GSM_UART_AN_V1.01 General
Using HyperTerminal with Agilent General Purpose Instruments
Using HyperTerminal with Agilent General Purpose Instruments Windows HyperTerminal can be used to program most General Purpose Instruments (not the 531xx series counters) using the RS-232 Serial Bus. Instrument
LOW COST GSM MODEM. Description. Part Number
Dual Band 900 / 1800 MHz Fax, SMS and Data Integral SIM Card holder Siemens TC-35i GSM Engine Rugged Extruded Aluminium Enclosure Compact Form Factor 86 x 54 x 25mm RS232 Interface with Auto baud rate
Modbus Communications for PanelView Terminals
User Guide Modbus Communications for PanelView Terminals Introduction This document describes how to connect and configure communications for the Modbus versions of the PanelView terminals. This document
Future Technology Devices International Ltd
Future Technology Devices International Ltd Datasheet Chipi-X Cable Chipi-X is a USB to full-handshake RS232 cable with a male DB9 connector. This cable is available with or without an enclosure. 1 Introduction
1-Port R422/485 Serial PCIe Card
1-Port R422/485 Serial PCIe Card Installation Guide 1. Introduction Thank you for purchasing this 1-Port RS422/485 Serial PCI Express (PCIe) Card. It is a universal add in card that connects to a PC or
Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000
Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000 1.0 Introduction A Technical Application Note from Doppler System July 5, 1999 Version 3.x of the DDF6000, running version
Single channel data transceiver module WIZ2-434
Single channel data transceiver module WIZ2-434 Available models: WIZ2-434-RS: data input by RS232 (±12V) logic, 9-15V supply WIZ2-434-RSB: same as above, but in a plastic shell. The WIZ2-434-x modules
TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL
TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL w w w. c d v g r o u p. c o m CA-ETHR-A: TCP/IP Module Installation Manual Page Table of Contents Introduction...5 Hardware Components... 6 Technical Specifications...
isco Connecting Routers Back to Back Through the AUX P
isco Connecting Routers Back to Back Through the AUX P Table of Contents Connecting Routers Back to Back Through the AUX Ports...1 Introduction...1 Before You Begin...1 Conventions...1 Prerequisites...1
Software Manual RS232 Laser Merge Module. Document # SU-256521-09 Rev A
Laser Merge Module Document # SU-256521-09 Rev A The information presented in this document is proprietary to Spectral Applied Research Inc. and cannot be used for any purpose other than that for which
IP SERIAL DEVICE SERVER
IP SERIAL DEVICE SERVER ( 1 / 2 / 4 serial port ) Installation guide And User manual Version 1.0 1Introduction... 5 1.1Direct IP mode...5 1.2Virtual COM mode...5 1.3Paired mode...6 1.4Heart beat... 6
18.04.2005 version 3.1. Security modem with USB port user guide
18.04.2005 version 3.1 Security modem with USB port user guide Introduction Congratulations on selecting the new SECURITY MODEM data transfer device. We designed this modem for special users who are involved
CONCEPT1 RS232 COMMUNICATION
Concept 1 RS-232 Communication Communication with Concept 1 via RS-232 is done with simple ASCII Commands and Replies. The port settings are 19200Baud, 8bits, no parity and 1 stop bit. The physical connection
PRT3 Printer Module: ASCII Protocol Programming Instructions
PRT3 Printer Module: ASCII Protocol Programming Instructions We hope this product performs to your complete satisfaction. Should you have any questions or comments, please visit www.paradox.com and send
SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual
SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual Version 1.0 - January 20, 2015 CHANGE HISTORY Version Date Description of Changes 1.0 January 20, 2015 Initial Publication
1.1 Connection. 1.1.1 Direct COM port connection. 1. Half duplex RS232 spy cable without handshaking
POS function Marchen POS-DVR surveillance system is a professional surveillance integrated with POS system. By bringing video and POS transaction data together, the POS-DVR surveillance system provides
Keep it Simple Timing
Keep it Simple Timing Support... 1 Introduction... 2 Turn On and Go... 3 Start Clock for Orienteering... 3 Pre Start Clock for Orienteering... 3 Real Time / Finish Clock... 3 Timer Clock... 4 Configuring
ELAN DIGITAL SYSTEMS LTD. SL232 PC- CARD USER S GUIDE
ELAN DIGITAL SYSTEMS LTD. LITTLE PARK FARM ROAD, SEGENSWORTH WEST, FAREHAM, HANTS. PO15 5SJ. TEL: (44) (0)1489 579799 FAX: (44) (0)1489 577516 e-mail: [email protected] website: http://www.pccard.co.uk
Making a DB to RJ45 adapter.
Making a DB to RJ45 adapter. DB9 to RJ45 adapters are often used in combination with a RS232 repeater for extending the distance of a serial RS232 link, but can be used for any adapter or converter purposes.
WHQL Certification Approval...2 User Interface...3 128K software FIFO 4 Universal PCI Interface...5 Ready for 64-bit System...5
0 INDEX WHQL Certification Approval...2 User Interface...3 128K software FIFO 4 Universal PCI Interface...5 Ready for 64-bit System...5 1.0 Introduction 6 2.0 Features.. 6 3.0 Hardware Guide... 7 3.1 System
User s Manual TCP/IP TO RS-232/422/485 CONVERTER. 1.1 Introduction. 1.2 Main features. Dynamic DNS
MODEL ATC-2000 TCP/IP TO RS-232/422/485 CONVERTER User s Manual 1.1 Introduction The ATC-2000 is a RS232/RS485 to TCP/IP converter integrated with a robust system and network management features designed
User Manual. AS-Interface Programmer
AS-Interface Programmer Notice: RESTRICTIONS THE ZMD AS-INTERFACE PROGRAMMER HARDWARE AND ZMD AS-INTERFACE PROGRAMMER SOFTWARE IS DESIGNED FOR IC EVALUATION, LABORATORY SETUP AND MODULE DEVELOPMENT ONLY.
Introduction: Implementation of the MVI56-MCM module for modbus communications:
Introduction: Implementation of the MVI56-MCM module for modbus communications: Initial configuration of the module should be done using the sample ladder file for the mvi56mcm module. This can be obtained
How To Connect A Directsofl To A Powerpoint With An Acd With An Ctel With An Dm-Tel Modem On A Pc Or Ipad Or Ipa (Powerpoint) With A Powerline 2 (Powerline
Application Note Last reviewed: 03/17/2008 AN-KEP-003.doc Page 1 of 23 Introduction... 1 Recommended s and ports to use... 1 Cable Wiring... 2 MDM-TEL Configuration ( Wizard)... 3 Direct Logic Communications
To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:
PURPOSE Verify that communication is established for the following products programming option (488.2 compliant, SCPI only): DCS - M9C & DCS M130, DLM M9E & DLM-M9G & DLM M130, DHP - M9D, P series, SG,
VSCOM USB PRO Series Industrial I/O Adapters
VSCOM USB PRO Series Industrial I/O Adapters 1.Introduction The VSCOM USB PRO Series Industrial I/O Adapters are advanced USB to Serial Adapters that connect to 1, 2, 4 or 8 RS-232/422/485 serial devices.
2 ASCII TABLE (DOS) 3 ASCII TABLE (Window)
1 ASCII TABLE 2 ASCII TABLE (DOS) 3 ASCII TABLE (Window) 4 Keyboard Codes The Diagram below shows the codes that are returned when a key is pressed. For example, pressing a would return 0x61. If it is
XR-500 [Receipt Printer User s Manual ]
XR-500 [Receipt Printer User s Manual ] All specifications are subjected to change without notice TABLE OF CONTENTS 1. Parts Identifications 2 2. Setting up the printer 3 2.1 Unpacking 3 2.2 Connecting
Advanced Data Capture and Control Systems
Advanced Data Capture and Control Systems Tronisoft Limited Email: [email protected] Web: www.tronisoft.com RS232 To 3.3V TTL User Guide RS232 to 3.3V TTL Signal Converter Modules P/N: 9651 Document
CNC File Transfer Box. Connecting the CNC File Transfer. CNC Transfer Program
CNC File Transfer Box The CNC File Transfer connects a serial CNC device to the network so files can be easily transferred from a computer to the CNC equipment. Any computer on the network can transfer
8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems 1 5-1 8051 Peripherals
8051 Serial Port The 8051 contains a UART Universal Asynchronous Receiver Transmitter The serial port is full-duplex It can transmit and receive simultaneously 2 Port 3 pins are used to provide the serial
Cable Specifications and Information
APPENDIX A This appendix provides the connector and pinout information you need for making or purchasing cables used with Cisco VG224 voice gateway. To order cables from Cisco, see the Obtaining Technical
2-Port RS232/422/485 Combo Serial PCI Card
2-Port RS232/422/485 Combo Serial PCI Card Installation Guide 1. Introduction Thank you for purchasing this 2-Port RS232/422/485 Combo Serial PCI Card. It is a universal add in card that connects to a
Serial Communications
April 2014 7 Serial Communications Objectives - To be familiar with the USART (RS-232) protocol. - To be able to transfer data from PIC-PC, PC-PIC and PIC-PIC. - To test serial communications with virtual
The Analyst RS422/RS232 Tester. With. VTR, Monitor, and Data Logging Option (LOG2) User Manual
12843 Foothill Blvd., Suite D Sylmar, CA 91342 818 898 3380 voice 818 898 3360 fax www.dnfcontrolscom The Analyst RS422/RS232 Tester With VTR, Monitor, and Data Logging Option (LOG2) User Manual Manual
PFB366 Profibus-DP Gateway User Manual
PFB366 Profibus-DP Gateway User Manual Table of Contents CHAPTER 1 OVERVIEW...4 CHAPTER 2 INSTALLATION...5 MOUNTING...5 WIRING...6 Profibus-DP Interface...6 Serial Channel Interface...7 Wiring Examples...7
Date Rev. Details Author
Jtech engineering ltd J - Te c h E n g i n e e ring, L t d. 11080 Bond Boulevard Delta BC V4E 1M7 Canada Tel: 604 543 6272 Fax: 604 543 6476 http://www.jtecheng.com AUTODIALER USER S MANUAL REVISION HISTORY
Using IDENT M System T with Modbus/TCP
Using IDENT M System T with Modbus/TCP Introduction The Pepperl+Fuchs IDENT M System T consists of two models MTT3000-F180-B12- V45-MON, which is a read only unit and the MTT6000-F120-B12-V45 which is
Cabling Guide for Console and AUX Ports
Cabling Guide for Console and AUX Ports Contents Introduction Prerequisites Requirements Components Used Conventions Table of Routers with Console and AUX Ports Console Port Settings for Terminal Connection
Connecting the Console Port to a PC
This document covers tasks associated with connecting a console port to a PC, and includes the following topics: Console (rollover) Cable and Adapters Making the physical connection Connecting using HyperTerminal
Industrial Multi-port Serial Cards
SUNIX I.N.C. Success Stories Industrial Multi-port Cards Multi-port Cards Introduction & Features Universal PCI Cards - Lite Interface Cards RS-232/422/485 Interface Cards PCI Express Cards - Lite Interface
TASCAM SS-CDR200/SS-R200 CONTROL I/O Terminals RS-232C Protocol Specifications
TASCAM CONTROL I/O Terminals RS-232C Protocol Specifications TEAC Corporation - 1 - ATTENTION TEAC Corporation ("TEAC") licenses you the protocol specified in this document, assuming that you agree to
A RF18 Remote control receiver MODULE
A RF18 Remote control receiver MODULE User Guide No part of this document may be reproduced or transmitted (in electronic or paper version, photocopy) without Adeunis RF consent. This document is subject
RS232 Board datasheet
RS232 Board datasheet Contents 1. About this document 2. General information 3. Board Layout 4. Getting Started 5. Circuit Description Appendix 1 Circuit Diagram Copyright 2004 Matrix Multimedia Limited
Serial to Bluetooth Adapter
Serial to Bluetooth Adapter Serial (RS-232) to Bluetooth Class 1 Adapter ICRS232BT1 Actual product may vary from photo FCC Compliance Statement This equipment has been tested and found to comply with the
SenseLink TM. End-Point Controller. Addendum
SenseLink TM End-Point Controller Addendum MKS Instruments, Inc. Control & Information Technology Products Group 3350 Scott Blvd Bldg 4 Santa Clara, CA 95054 Main: 408.235.7620 Fax: 408.235.7625 SenseLink
RS-232 Baud Rate Converter CE Model 232BRC Documentation Number 232BRC-3903 (pn5104-r003)
S-232 Baud ate Converter CE Model 232BC Documentation Number 232BC-3903 (pn5104-r003) International Headquarters B&B Electronics Mfg. Co. Inc. 707 Dayton oad -- P.O. Box 1040 -- Ottawa, IL 61350 USA Phone
Remote Serial over IP Introduction on serial connections via IP/Ethernet
Remote Serial over IP Introduction on serial connections via IP/Ethernet TABLE OF CONTENT TABLE OF CONTENT... I TABLE OF IMAGES... I INTRODUCTION... 1 Classic Style of Communication... 1 Ethernet and
F2103 GPRS DTU USER MANUAL
F2103 GPRS DTU USER MANUAL Add:J1-J2,3rd Floor,No.44,GuanRi Road,SoftWare Park,XiaMen,China 1 Zip Code:361008 Contents Chapter 1 Brief Introduction of Product... 3 1.1 General... 3 1.2 Product Features...
USB TO SERIAL ADAPTER
USB TO SERIAL ADAPTER (Model: U232-P9V2) SPECIFICATIONS CONTENTS 1. GENERAL SPECIFICATIONS... 1 1.1 PRODUCT SURFACE... 1 1.2 PRODUCT DIMENSION... 2 1.3 PRODUCT FEATURES... 3 1.4 PRODUCT SPECIFICATIONS...
2-Port RS232/422/485 Combo Serial to USB2.0 Adapter (w/ Metal Case and Screw Lock Mechanism) Installation Guide
2-Port RS232/422/485 Combo Serial to USB2.0 Adapter (w/ Metal Case and Screw Lock Mechanism) Installation Guide 1. Introduction Thank you for purchasing this 2-Port RS232/422/485 Combo Serial to USB Adapter.
Concept XXMIT / RTXMIT Transmit (Receive) Function Block
Concept XXMIT / RTXMIT Transmit (Receive) Function Block 840 USE 499 00 eng 2002 Schneider Electric All Rights Reserved 33002196.01 2 Table of Contents About the Book.......................................5
Docklight Pro Monitor User Manual 10/2015
Docklight Pro Monitor User Manual 10/2015 2 Table of Contents 1. Copyright 4 2. Welcome to Docklight Pro Monitor 5 2.1 Docklight Pro Monitor - Overview... 6 2.2 Typical Hardware Setups... 6 2.3 System
Omron I/O Driver (Series 2) Programmable Serial Interface Card
Omron I/O Driver (Series 2) Programmable Serial Interface Card USER MANUAL Rev. P1.55 June 8, 2012 DeltaV is a trademark of Emerson Process Management, Inc Emerson Process Management, Inc. 1998, 1999.
LAN / WAN Connection Of Instruments with Serial Interface By Using a Terminal Server
Products: EFA with EFA Scan, DVRM and DVMD with Realtime Monitor or Stream Explorer DVMD-B1 LAN / WAN Connection Of Instruments with Serial Interface By Using a Terminal Server Remote control of test and
TRP-C31M MODBUS TCP to RTU/ASCII Gateway
TRP-C31M MODBUS TCP to RTU/ASCII Gateway User s Manual Printed Feb. 2007 Rev 1.0 Trycom Technology Co., Ltd 1F, No.2-11, Sihu street, Yingge Township, Taipei, Taiwan ROC Tel: 886-2-86781191, Fax: 886-2-86781172
Application Note. Terminal Server G6
MICROSENS GmbH & Co. KG Küferstr. 16 59067 Hamm/Germany Tel. +49 2381 9452-0 FAX +49 2381 9452-100 E-Mail [email protected] Web www.microsens.de Summary As of firmware version v10.6 MICROSENS Generation
a8251 Features General Description Programmable Communications Interface
a8251 Programmable Communications Interface June 1997, ver. 2 Data Sheet Features a8251 MegaCore function that provides an interface between a microprocessor and a serial communication channel Optimized
TTL-232R-3V3 USB to TTL Serial Converter Cable
Future Technology Devices International Ltd. TTL-232R-3V3 USB to TTL Serial Converter Cable The TTL-232R-3V3 is a USB to TTL serial converter cable incorporating FTDI s FT232RQ USB - Serial UART interface
TruePort Windows 2000/Server 2003/XP User Guide Chapter
TruePort Windows 2000/Server 2003/XP User Guide Chapter 0 This document provides the procedure for installing and using TruePort on Windows 2000/Server 2003/XP. Table of Contents What is TruePort?...3
Why you need to monitor serial communication?
Why you need to monitor serial communication Background RS232/RS422 provides 2 data lines for each data channel. One is for transmitting data and the other for receiving. Because of these two separate
Dial-Up / Leased-Line Modem. User Manual. AGM Electronics, Inc Dial-Up / Leased-Line Modem, Series ( ) 5019-1 Manual Rev A + - DLM CTS RTS DTR DSR
AGM Electronics, Inc Dial-Up / Leased-Line Modem, Series ( ) 5019-1 Manual Rev A User Manual + - CD CTS RTS DTR. DSR RI RX TX PHONE LINE DLM Dial-Up / Leased-Line Modem Dial-Up / Leased-Line Modem CONTENTS
Teleservice via RS232 interface XC100/XC200
User Manual 10/10 MN0500005Z-EN replaces 07/04 AWB74-1490GB Teleservice via RS interface XC100/XC00 All brand and product names are trademarks or registered trademarks of the owner concerned. Emergency
NortechCommander Software Operating Manual MAN-00004 R6
NortechCommander Software Operating Manual MAN-00004 R6 If the equipment described herein bears the symbol, the said equipment complies with the applicable European Union Directive and Standards mentioned
Timeout The Crosspoint Status Request message has a timeout, which means that you need to wait 1 second in between request messages.
Network Control Protocol Important notes Binary Code The strings shown on the next pages are in binary coded format. Please be aware that any terminal program you may use to control a Network unit from
UART IP Core Specification. Author: Jacob Gorban [email protected]
UART IP Core Specification Author: Jacob Gorban [email protected] Rev. 0.6 August 11, 2002 This page has been intentionally left blank Revision History Rev. Date Author Description 0.1 Jacob Gorban
