background image

104

www.rabbit.com

 Glossary of Terms

RS-232

Full-duplex, electrically single-ended serial interface standard. The electrical and some mechanical 
and protocol characteristics of the connection are defined including handshaking lines and a communi-
cations protocol. 

RS-485

Half-duplex, differential mode, single driver, multiple receivers serial interface standard.

RTS

Request to Send, a hardware flow control signal driven by a DTE device to tell a DCE device when to 
start or stop.

Serial port geometry

This phrase refers to some of the common serial port configuration parameters that must match on 
both ends of the connection. They are: 

number of bits per character

parity

number of stop bits

These parameters are usually abbreviated; e.g., 8N1 means that there are 8 bits per character, no parity 
and 1 stop bit.

SPDT

Single Pole Double Throw, describes a relay that has one pole that can make electrical contact with 
two separate stationary contacts; i.e., a normally open (N.O.) contact and a normally closed (N.C.) 
contact.

XON/XOFF

This flow control method does not require extra wires. Predefined ASCII values stop (XOFF) and start 
(XON) data transmission. This method is only useful for ASCII data, since the XON/XOFF characters 
are sent in the data stream and could match bytes in a binary stream.

The byte value of XON is 17 (keyboard entry is Ctrl+Q) and XOFF is 19 (keyboard entry is Ctrl+S).

Содержание EM1500

Страница 1: ...EM1500 User s Manual 019 0124 070720 E The latest revision of this manual is available on the Rabbit Semiconductor Web site www rabbit com for free unregistered download...

Страница 2: ...ks of Rabbit Semiconductor Windows is a registered trademark of Microsoft Corporation No part of the contents of this manual may be reproduced or transmitted in any form or by any means without the ex...

Страница 3: ...Wiring the Demo Board to the Selected EM1500 16 2 3 3 Digital Output 16 2 3 4 Digital Input and Relay 17 Chapter 3 Assigning an IP Address to the EM1500 19 3 1 How to Obtain an IP Address 19 3 2 How t...

Страница 4: ...ndix A EM1500 Specifications 77 A 1 Mechanical Characteristics 77 A 1 1 Base Plate 78 A 2 Specification Table 79 A 3 EM1500 EMI EMC Information 80 A 3 1 CE Compliance 80 A 3 2 EM1500 FCC Compliance 82...

Страница 5: ...n all be con nected to different hosts at the same time The remote host may also be another EM1500 In addition to the serial streams which are transferred via TCP Transmission Control Protocol sockets...

Страница 6: ...Internet link is not the bottleneck Short term burst rates up to 1Mbit sec net Any one port may achieve up to 230400 bps FDX The EM1500 interfaces with all types of serial devices modems sensors card...

Страница 7: ...at TTL levels 3 wire RS 232 serial port on 10 pin header aka SER4 RS 485 half duplex aka RS485 5 digital I 0s on 10 pin header PF0 4 2 digital open collector outputs OUT0 and OUT1 on 9 pin header 3 d...

Страница 8: ...485 transmit enable discipline transmit whenever data present transmit only after idle time Internet protocols raw data stream over TCP RFC2217 protocol EM1500 acts as modem server or serial port serv...

Страница 9: ...rnet segment display dynamic unit status in near real time EM1500s can be partially reconfigured during operation without manual intervention using RFC2217 e g change serial port speed Auxiliary I Os...

Страница 10: ...Configuration Parameter Default Setting General Unit Name EM1500 fac dflt TCP Keepalives 7200 Aux I O Direction State PF0 4 In Low State OUT0 and OUT1 Hi Z Relay Open Network Ethernet Enable Connectio...

Страница 11: ...OFF all serial ports Active Open When RI OFF all serial ports Active Open Any char OFF all serial ports Active Open Specific char OFF all serial ports Active Open Char to open 13 all serial ports Clo...

Страница 12: ...Item Rabbit Part Description of Use DE9F DE9F null modem 10 ft cable 540 0063 Serial crossover cable for SER1 if DCD and RI signals are not required DE9M DE9F 10 ft cable 540 0052 Serial straight thru...

Страница 13: ...ort files flash ini coldload bin pilot bin to download the firmware Rabbit screw driver 1 4 1 Rabbit Engineering Demo Board The demo board is useful for testing the functionality of the relay and digi...

Страница 14: ...10 www rabbit com Introduction...

Страница 15: ...net card Please note that neither the telnet example described in this chapter nor the configuration process described later in the manual have need of the EM1500 explicitly knowing the IP address of...

Страница 16: ...ck sleeves you may determine which wire is which by looking on the label of the adapter Plug in the adapter and verify that the LED labeled PWR comes on steady 2 1 3 Serial Port Connection After makin...

Страница 17: ...bring up the Serial port setup dialog The serial port geometry e g 8N1 character size is 8 bits there is no parity and there is one stop bit and speed are set in this dialog If you are using some othe...

Страница 18: ...onfiguration for more infor mation about the stand alone program If using DHCP did not result in an IP address being assigned to the EM1500 you will need to assign one manually First get an IP address...

Страница 19: ...OM port of the host PC The keyboard entries will then appear in the Tera Term window You may also send files from Tera Term by selecting File Send file from the Tera Term menu 2 3 Using the Demo Board...

Страница 20: ...ND from the Demo Board to GND screw terminal on the EM1500 3 Connect the 9 wire assembly with plug that came with the Tool Kit to the 9 pin connector on the EM1500 The3 pins for the relay plus the 2 d...

Страница 21: ...on the button is orange when off the color changes to gray Press down SW1 on the Demo Board Depending on the state of the relay you will see either IN0 or IN1 change from bright green to dark green i...

Страница 22: ...18 www rabbit com Getting Started...

Страница 23: ...will act as a server when it is deployed in the field you will need to have a permanent IP address assigned to it so that it can be contacted later The second way to obtain a valid IP address is to h...

Страница 24: ...and one for Win dows emconf exe You will find the stand alone program on the CD that comes with the EM1500 Tool Kit Unlike directed ping this method does not require you to know an IP and MAC address...

Страница 25: ...units at a time or you use directed ping to assign an IP address Figure 4 1 Front Panel of EM1500 Table 4 1 Front Panel Description Connector Description of Use RJ 45 Connects to 10 100Base T Ethernet...

Страница 26: ...interface Orange with brief off period every second Run mode but no IP address has been obtained This means the unit has not been configured or it has been configured to use DHCP but no DHCP server i...

Страница 27: ...female For connection to RS 232 serial port SER2 wired as a DCE 2x5 IDC header For connection to configurable serial port SER3 3 wire pins 3 Rx 5 Tx and 9 GND 5 wire pins 3 Rx 5 Tx 4 RTS 6 CTS and 9...

Страница 28: ...figure below shows the pin out The black circles Tx DTR and RTS denote outputs The white circles denote inputs Figure 4 3 Pin Out for SER1 4 3 2 Serial Port 2 SER2 The serial port known as SER2 is wir...

Страница 29: ...the factory SER3 and SER4 are configured as 3 wire RS 232 serial port avail able on pins 3 Rx and 5 Tx JP2 is jumpered on 1 3 and 2 4 meaning RS 232 signal levels for SER3 To change to TTL levels move...

Страница 30: ...the figure below Note that a common signal ground is recommended Figure 4 6 Multidrop Network For best performance in a multidrop network termination resistors are enabled only on the end nodes and a...

Страница 31: ...support Successful implementation of a particular protocol will require the correct configuration of several other items The most important of these are the specification of the transmitter enable di...

Страница 32: ...of time Each packet must be transmitted without any gaps of more than 1 5 character times Following this specification the Serial tab for the RS485 port is set to Speed 115200 this is arbitrary provid...

Страница 33: ...rt On the RS485 side packets are received for transmission to the network peer Since packets must be delimited by strict idle times on the RS485 side but may arrive from the network in piecemeal fashi...

Страница 34: ...7 9 Pin Connector 4 3 6 10 Pin Connector The 10 pin connector is shown in Figure 4 5 If SER3 is not configured in software to be a 9 wire port 4 of the pins on the 10 pin connector PF0 3 become avail...

Страница 35: ...lly in the GUI of emconf The categories are summarized here and explained fully in the rest of this chapter General This is where you set display router and nameserver addresses and the security optio...

Страница 36: ...RFC2217 modem server as well as make it compatible with the use of a PC COM port redirector that complies with RFC2217 You may also choose to enable extensions to the protocol the exten sions are usef...

Страница 37: ...e EM1500 entries Area 2 Status Debug for Selected Unit The area immediately under the listbox is the status debug area Unless an EM1500 entry is selected in the listbox the status debug area is empty...

Страница 38: ...he unit name is a text string chosen by the user to uniquely identify the unit It may be left blank if the unit is unnamed A unit s name will be displayed in the listbox on the left side of the progra...

Страница 39: ...his protection only applies to configuration The unit does not currently support any protection of the data connections Secure configuration is rec ommended if the EM1500 is to be connected to an Ethe...

Страница 40: ...uration program is started and deleted when it fin ishes If the program is terminated forcibly e g by using the Task Manager then this file may be left in existence which will prevent the configuratio...

Страница 41: ...be secure against snooping attacks The current firmware release does not support changing the key once it is set except by turning secure configuration off then back on The key is a 128 bit AES key a...

Страница 42: ...F0 4 I Os on boot up If SER3 uses PF0 3 is checked then only PF4 is available as an extra I O line State These parameters control the initial state of the 2 open collector outputs of the EM1500 on boo...

Страница 43: ...r one or more of the serial ports checked here is receiving or transmitting The user LED also gives status for the unit as a whole Please see Table 4 2 for a description of the possible LED patterns 5...

Страница 44: ...is checked any IP address entered here will be used as a fallback if DHCP is not available IMPORTANT If the EM1500 is no longer readily accessible i e it s no longer on your desktop or maybe it s not...

Страница 45: ...llow the use of a web browser for configuration Please see the Gen eral tab for instructions on how to select a login name and password to limit access by a web browser Enable config This must be chec...

Страница 46: ...bit rates including non standard speeds The actual rates which are obtainable must be equal to the base clock divided by an integer between 6 and 256 inclusive The base clock is 1 382 400 Hz giving a...

Страница 47: ...k the parity bit is always one Odd data bits plus the parity bit equals an odd number Even data bits plus the parity bit equals an even number Space and Mark are seldom used parity methods because the...

Страница 48: ...ccept more data from the EM1500 XON XOFF software sent by the device receiving data to stop or restart the data flow DSR hardware an input to indicate that the attached device is ready DCD hardware an...

Страница 49: ...oftware DTR hardware output to indicate that SER1 is ready These same options exist for SER3 when it is configured as a full DTE serial inter face If SER3 is not a full DTE serial interface then DTR i...

Страница 50: ...h off Momentary on Momentary off Relay timer ms Relay timer for momentary actions NOTE It is possible to enter contradictory or nonsensical settings for the relay For example SER1 causes Latch on and...

Страница 51: ...pline is defined Figure 5 6 Serial Tab for RS485 Tx Enable Transmitter enable control used for half duplex RS485 The choices are None Rx Idle Rx idle time char times If Rx Idle was chosen for transmit...

Страница 52: ...epeating the AT prefix Commands can be strung together without spaces or spaces can be used to delimit the commands for readabil ity If commands are strung together then those commands which do not ta...

Страница 53: ...cted redial DL Reconnect to the host that was last connected redial D domainname Connect to specified domain name e g em1500 foo com using the TCP port that was last used D domainname tcp_port Connect...

Страница 54: ...g connection this gets out of AT command mode and back to normal data transfer mode Q0 Disable quiet mode i e respond with numeric or English result codes Q1 Enable quiet mode no responses V0 Use nume...

Страница 55: ...asserted Kn Other flow control n is a number which has two fields The low 3 bits of n select the transmit flow control as follows 0 none 1 CTS or RTS for SER2 2 XON XOFF 3 DSR or DTR for SER2 4 DCD SE...

Страница 56: ...ER2 only Specify how to use the RI modem control line The choices are Inactive Pulse for 1 second when connection first established 5 1 6 1 Modem Tab Parameters for SER3 and SER4 The configuration par...

Страница 57: ...levels1 JP32 JP23 Comment4 0 0 x A D SER3 true 3 wire RS232 SER4 true 3 wire RS232 0 0 x B D SER3 true 3 wire RS232 SER4 3 wire TTL 0 0 x A E SER3 3 wire TTL SER4 true 3 wire RS232 0 0 x B E SER3 3 w...

Страница 58: ...0 pin B means 3 5 and 4 6 i e SER4 is TTL on 10 pin C means 7 9 and 8 10 i e internal modem installed future option use PD4 5 on 10 pin for CTS RTS 3 JP2 is internal jumper setting D means JP2 is jump...

Страница 59: ...tions become enabled These options are described below Note that polling is inserted by the EM1500 at arbitrary points from the point of view of the attached device or network peer Thus if you select...

Страница 60: ...applied whether or not a network connection is established Oth erwise polling is only performed when there is no network connection This is most useful when packetizing is in use otherwise the pollin...

Страница 61: ...in response to CRLF then that data will be forwarded over the network if a connection is established The next level up in complexity is to actually expect a particular response to a query For example...

Страница 62: ...ed to include whitespace in a token then the token should be wrapped in single quote characters A backslash character in a token denotes an escape sequence for inserting special characters as follows...

Страница 63: ...the choices for Incoming con nections and Active open Figure 5 10 Opening Tab for SER1 Local TCP port This is the local TCP port number for incoming connections from the network When acting as a serv...

Страница 64: ...bandwidth requirements Don t Purge When checked data received by the serial port before a connection is established will be sent to the peer If not checked then pre connection data is discarded Check...

Страница 65: ...e DCD indicates good carrier from remote modem Available on SER1 and SER3 as 9 wire port When RI Open when RI line becomes active Available on SER1 or SER3 as 9 wire port When any char received Open w...

Страница 66: ...igured as a 9 wire port DTR dropped is available on SER2 Both DSR and DTR are used by attached serial devices to indicate that they are ready Modem control not close on DSR drop When DSR DTR line is d...

Страница 67: ...m emulation software is active on this serial port Available on all serial ports Timeout ms This field may be filled in when Network timeout is checked It is the number of milliseconds that may elapse...

Страница 68: ...ing connections will see this as an RFC2217 modem server Otherwise a raw data link is established NOTE This should be checked if you want to use a COM port redirector on a host PC to allow the PC to t...

Страница 69: ...ode which recognizes the end of packet 9th bit mode looks for the start of the packet A packet is started by a 9th bit low This is not compatible with normal parity checking any parity setting in the...

Страница 70: ...ytes 0 to 8 to send at end of packet This may be used if checksum fol lows terminating string etc It should only be used for String packetization other wise the results are undefined 5 1 11 Status Deb...

Страница 71: ...he Internet with usually a reduction in response times The listbox and status debug area are pictured below One EM1500 responded to the broadcast so only one unit shows up in the listbox It has been s...

Страница 72: ...ach serial port tray con tains mainly status information with but tons to manually override some functions The status indicators show the state of each of the modem control lines that are actually ava...

Страница 73: ...the peers can get confused or crash in this case the connection sometimes gets stuck which requires a manual reset The text display on the 3rd and final line shows the current serial port setup inclu...

Страница 74: ...signal The SER2 RTS LED will go off This prevents the EM1500 from transmitting more data out of its serial port Thus the Flow LED will come on yellow indicating a flow control stall If data is still...

Страница 75: ...tting of a login name and password can be done from the stand alone program only 4 Multiple units may be configured during one session with the stand alone program A web browser may only point to one...

Страница 76: ...72 www rabbit com EM1500 Configuration...

Страница 77: ...pen check When any char received Make sure DHCP is disabled Do this for both units Using serial cables connect either SER1 or SER2 from each EM1500 to the free PC COM ports Then using the Ethernet cro...

Страница 78: ...ght through M F cable Access to an Ethernet network from the PC and the EM1500 A likely scenario is a hub to which the PC and the EM1500 are both connected The EM1500 must be configured with the follo...

Страница 79: ...r SER2 to the free PC COM port Now you need access to a network The EM1500 must be connected via its Ethernet port to a network to which the host PC is also connected It can be a small desktop LAN tha...

Страница 80: ...when you configured the EM1500 You can define what TCP Wedge will consider the start and end of a record in the Input Data Record Structure a menu item from Defines There are two ways to cause TCP Wed...

Страница 81: ...nmental specifications EMI EMC information Jumper locations for changing default behavior Battery life and replacement A 1 Mechanical Characteristics The following figure shows the mechanical dimensio...

Страница 82: ...dimensions of the base plate and the locations of the mounting holes The base plate is made from 0 050 aluminum Figure A 2 Base Plate Dimensions 0 25 6 4 mm 4 60 116 8 mm 0 25 6 4 mm 3 78 96 mm 4 10...

Страница 83: ...elay Output SPDT 1 A 30 V DC 0 3 A 120 V AC Serial Ports 1 DTE RS 232 1 DCE RS 232 1 RS 485 half duplex 1 configurable serial port 3 5 and 9 wire option 1 3 wire RS 232 Serial Rate 75 230400 bps 7 8 d...

Страница 84: ...mity with the following applicable immunity and emission standards EM1500s that are CE compliant have a label with the CE mark on the front panel of the unit similar to that shown in Figure A 3 Figure...

Страница 85: ...gn practices When installing or servicing the EM1500 it is the responsibility of the end user to use proper ESD pre cautions to prevent ESD damage to the EM1500 To meet EMC requirements and in particu...

Страница 86: ...ection against harmful interference in a residential installation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions...

Страница 87: ...the black box housing The following figure shows the jumper header locations The dashed line represents the location of the Rabbit Core Module Header JP5 which is used to configure the RS 485 bias an...

Страница 88: ...ins Connected Factory Default JP1 Digital inputs pulled up 1 2 Digital inputs pulled down 2 3 JP2 RS 232 levels for SER3 Rx Tx 1 3 2 4 TTL levels for SER3 Rx Tx 3 5 4 6 JP3 RS 232 levels for CTS RTS l...

Страница 89: ...he Backup Battery To replace the battery first remove the old one The battery snaps in and out of place so just apply pres sure under its rim to get it out Use a Renata CR2477N or equivalent replaceme...

Страница 90: ...86 www rabbit com EM1500 Specifications...

Страница 91: ...not eliminate the confusion but helps minimize it The following discussion focuses on the electrical connections between two RS232 devices Once this is established we talk about the data signalling c...

Страница 92: ...s state of the attached devices These lines DTR Data Terminal Ready and DSR Data Set Ready i e modem ready are less important than RTS CTS but are nevertheless used often The wiring for these is And i...

Страница 93: ...asing set of capabilities The first arrangement with only Tx and Rx is known as 3 wire Adding RTS and CTS gives 5 wire The last arrangement is full 9 wire 7 wire is also possible dropping the problema...

Страница 94: ...ate and 12 V when inactive A discon nected input will yield 0 V which will be interpreted as inactive which is as it should be Now the computer equipment which is using RS232 is probably happier with...

Страница 95: ...fer capacity is simply dis carded It is then up to the higher level application to realize that data has gone missing When a 3 wire link is in use the only alternative is to insert some special signal...

Страница 96: ...ely used but some equipment may require it The EM1500 handles hardware flow control as follows When the receive buffer becomes approximately half full about 500 bytes then the RTS line is dropped The...

Страница 97: ...data including XON XOFF when it is throttled but that would be violating the flow con trol rules The EM1500 handles XON XOFF flow control as follows It assumes the data stream from the network does no...

Страница 98: ...e sends an XOFF to pause the flow For the above reason it is best to use end to end flow control only when the network bandwidth is high and the latency short in practice that means that the network c...

Страница 99: ...the data stream will be corrupted If you are using some of the more advanced features of the EM1500 like packetization and protocol trans lation then you will have to use Rabbit extensions Without thi...

Страница 100: ...the packet must be sent in one continuous stream the entire packet must be buffered in the EM1500 before it can start being sent If only part of the packet had been received from the network the EM15...

Страница 101: ...his is from the point of view of the serial device and is unrelated to the length limitation imposed on a TCP packet Packets are terminated when a particular character sequence is received The string...

Страница 102: ...tion and the other uses idle timing The end that uses idle timing cannot start sending a packet until the EOP indicator is received Thus if the 9th bit end does not get a new packet for a long time th...

Страница 103: ...etwork latency is low and it is desired to start transmitting the packet even before the EOP indicator has been received This is usually only needed for idle packetizing mode and is done in the hope t...

Страница 104: ...100 www rabbit com Serial and TCP Protocols...

Страница 105: ...l port A COM port redirector is a good solution for legacy software applications that you either can not or will not modify A Google search shows that there are many of these products available on the...

Страница 106: ...ed when the DTE is ready to receive CTS Clear to Send an input the DTE waits for before sending DTR Data Terminal Ready an output to indicate readiness DSR Data Set Ready an input to indicate readines...

Страница 107: ...odem Server A modem server allows multiple user connections at one time The name originates from the fact that it applies to multiple users of a modem but it applies to other uses as well E g a device...

Страница 108: ...match on both ends of the connection They are number of bits per character parity number of stop bits These parameters are usually abbreviated e g 8N1 means that there are 8 bits per character no pari...

Страница 109: ...uy an EM1500 Why are there 2 types of serial cables in the EM1500 Tool Kit Why are there 2 types of Ethernet cables in the EM1500 Tool Kit Network Why is there no default IP address for the EM1500 Why...

Страница 110: ...I set web browser userid and password but now the browser can t log in even though I am supply ing the correct userid and password What has gone wrong I checked Secure config in the General tab I got...

Страница 111: ...there no default IP address for the EM1500 A What would it be There are however 2 default configurations that you can easily copy to your EM1500 if you are using the stand alone configuration program...

Страница 112: ...t panic You can recover from this without losing your configuration settings You must do a hard reset of the EM1500 back to its factory default condition Do this by holding the reset button down for...

Страница 113: ...er of stop bits set for the serial port of the EM1500 must match those set for the attached serial device For SER3 and SER4 also check the jumper settings for JP2 and JP3 to make sure they are set to...

Страница 114: ...set up the telnet connections Q Can I monitor the data that is sent received by a serial port A Not directly however there are several ways of doing this Use an Ethernet sniffer program such as Ethere...

Страница 115: ...nfiguration parameters as an entry in a configuration database All you do is select the EM1500 whose settingsyou wish to save and press Ctrl C Now select a configuration database In the screencapturep...

Страница 116: ...browser s stop button if necessary then manually type in the unit s new IP address e g http 10 10 9 99 If the new IP address is valid the browser should be able to pick up from there If this did not f...

Страница 117: ...cess the unit any more and it doesn t even come up in the list of units A Check that You are using the same PC that you initially used to turn on secure config The secret keys are held on only one mac...

Страница 118: ...114 www rabbit com EM1500 FAQ...

Страница 119: ...scovery 41 DNS name server 35 DSR 44 52 61 62 DTR 44 51 61 62 E EMI EMC information 80 82 emissions standards 81 F FCC compliance 82 H hardware connections 11 hub 12 I immunity standards 80 IP address...

Страница 120: ...rabbit com router 35 RS 485 26 29 RTS 44 52 88 S secure configuration 35 send expect 57 58 straight through cable 8 12 87 89 T technical support 9 throughput 2 transmit buffer 96 U User LED 22 V volt...

Отзывы: