Forenex FR-E2S Series Reference Manual

Ethernet to serial interface

Advertisement

Quick Links

FR-E2Sxy
Ethernet to Serial interface
Reference Manual (Preliminary)
Version:
0.4.2
benson
Lon Yu
Approved By
Checked By
Prepared By
***The content of this document is subject to be change without notice.***
www.forenex.com.tw
- 1 -

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FR-E2S Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Forenex FR-E2S Series

  • Page 1 FR-E2Sxy Ethernet to Serial interface Reference Manual (Preliminary) Version: 0.4.2 benson Lon Yu Approved By Checked By Prepared By ***The content of this document is subject to be change without notice.*** www.forenex.com.tw - 1 -...
  • Page 2 Record of revision: Version Revise Date Page Description 2014/11/28 First issue 0.3.5 2014/12/24 For PCB revision 2.0 0.4.0 2014/12/31 Added description about “ETH to SPI” 0.4.1 2015/1/8 0.4.2 2015/05/18 Modified E.g.1 and E.g.2 of A-1 www.forenex.com.tw - 2 -...
  • Page 3: Table Of Contents

    7.3) Implement existing serial communications via Ethernet cable directly. 7.4) Implement existing serial communications via LAN. 7.5) Connect to Remote Server via INTERNET. Appendix A. Flow Control Packet over Ethernet ---------------------------------- 21 Appendix B. Communication with SPI device over Ethernet ------------------25 www.forenex.com.tw - 3 -...
  • Page 4: Introduction

    1.2) System Architecture Figure 1. System Architecture. 1.3) Ordering Information Part number : FR-E2S-xy Serial interface: • x =〝U〞- interface Uart-TTL. =〝R〞- interface RS232. =〝S〞- interface RS485. =〝P〞- interface SPI. • y =〝F〞- Commercial version. =〝I〞- Industrial version. www.forenex.com.tw - 4 -...
  • Page 5: Features

    Automatically enable control for the transmitter/ receiver of RS-485. Baud Rate: Support up to 115200 bps. E2S-PF/PI model SPI signals: 5-wire (nSS, SCLK, MOSI, MISO, GND) SPI working in the Master mode, support up to 1MHz clock. www.forenex.com.tw - 5 -...
  • Page 6: Electrical Characteristics

    RS-485 signal level Note.2 (E2S-SF/SI model) Baudrate 1200 115200 bps In/out 5V tolerant SPI Interface (E2S-PF/PI model) Frequency 200K ºC Commercial Operation Temperature ºC Industrial Storage Temperature ºC Note.1 Detail refers to SP3232EET. Note.2 Detail refers to ISL4485E. www.forenex.com.tw - 6 -...
  • Page 7: Overview & Dimension

    Overview & Dimension 4.1) Dimension : 67mm(L) × 40mm(W) × Max. 19.5mm(H) Unit:mm Figure 2. Dimension Diagram. www.forenex.com.tw - 7 -...
  • Page 8: Connector Overview

    When Ethernet is in receiving or transmitting state. Light Ethernet work in 100BASE-TX mode. Speed LED Dark Ethernet work in 10BASE-T mode. Light Ethernet work in Full-duplex mode Full duplex LED Dark Ethernet work in Half-duplex mode www.forenex.com.tw - 8 -...
  • Page 9: Pin Assignment Of Connector

    Signal Description Ground Receive Data form external Device Transmitte Data to external Device Ground Request To Send Clear to send DC-IN External DC input (as same as W1) DC-IN External DC input (as same as W1) www.forenex.com.tw - 9 -...
  • Page 10 Receive Data form external Device MOSI Transmitte Data to external Device Ground SCLK SPI Clock output Slave Select output (Active low) DC-IN External DC input (as same as W1) DC-IN External DC input (as same as W1) www.forenex.com.tw - 10 -...
  • Page 11: Connect To Rs-485 Device

    The E2S-UF/UI connects to UART-TTL device with flow control. Figure 5. Connect to 5-wire RS-232/UART-TTL device 5.5) The E2S-SF/SI connects to RS-485 device. Figure 6. Connect to RS-485 device 5.6) The E2S-PF/PI connects to SPI slave device. Figure 7. Connect to SPI slave device www.forenex.com.tw - 11 -...
  • Page 12: Remote Configuration Over Web Page

    The E2S board connects to LAN. 6.2) Authentication page. Open a web browser and enter http://192.168.0.3. When the login window appears, set the user name to admin and set the password to admin. Click Login to continue. Figure 8. Authentication page. www.forenex.com.tw - 12 -...
  • Page 13 6.3) Basic Page: This page can change Serial settings and Ethernet settings for E2S. Figure 9. Basic settings page. www.forenex.com.tw - 13 -...
  • Page 14 CPOL = 1, CPHA = 0 Mode 2 Capture SCLK = Falling Edge SCLK Inactive = High Level CPOL = 1, CPHA = 1 Mode 3 Capture SCLK = Rising Edge SCLK Inactive = High Level MOSI www.forenex.com.tw - 14 -...
  • Page 15 The default value is 192.168.0.2 (Note.2) Destination Host Name/IP Can accept either host name or IP address format; (under Client mode) e.q. you can enter “forenex.com.tw” or “192.168.0.2”in this field. Destination Port The default value is 5000 (Note.2) (under Client mode)
  • Page 16 E2S board can only be configured by these four IP address over Web page. **When you change the accessible IP successful, you must reboot device to take it effect. Please confirm settings before reboot device. www.forenex.com.tw - 16 -...
  • Page 17: Ethernet Application Examples

    Host to establish a TCP/UDP connection. Figure 11. Working in Client Mode to connect the Host via Ethernet cable directly Figure 12. Working in Server Mode to connect the Host via Ethernet cable directly www.forenex.com.tw - 17 -...
  • Page 18: Connect To The Host Via Lan

    IP of E2S before establish a TCP/UDP connection. Following up the 7.1) c, d and e section. Figure 13. Working in Client mode to connect the Host via LAN Figure 14. Working in Server mode to connect the Host via LAN. www.forenex.com.tw - 18 -...
  • Page 19: Implement Existing Serial Communications Via Ethernet Cable Directly

    As shown in figure11, E2S-1 set to client mode and E2S-2 set to server mode. c. The setting of “Listening Port” on E2S-2 and “Destination Port” on E2S-1 must be the same. Figure 16. Implement existing serial communications via LAN www.forenex.com.tw - 19 -...
  • Page 20: Connect To Remote Server Via Internet

    This setting of “Destination Host Name/IP” must as same as the remote server IP or server name. Remote server need to listen the listen port of E2S for wait a TCP/UDP connection. Figure 17. Connect to Remote Server via INTERNET. www.forenex.com.tw - 20 -...
  • Page 21: Appendix A. Flow Control Packet Over Ethernet

    The description of Appendix A. is only available for below models E2S-UF/UI (UART TTL), E2S-RF/RI (RS-232) and E2S-SF/SI (RS-485). When you enable “Flow Control Packet” at Web page setting, you must follow below Data format or Command format to transmit/ receive Ethernet packet. www.forenex.com.tw - 21 -...
  • Page 22 Serial Target should continue to send 312 bytes data after the leading bytes (32 01 38) were sent from RS232. A-2. Command format of Packet (for flow control using) a. Packet head code should be fixed with 0x33 b. Byte 3 is length between in 1~3. www.forenex.com.tw - 22 -...
  • Page 23 Bit.4, Complement of the CTS input 1: CTS was input logic 0. 0: CTS was input logic 1. Bit.1, Request To Send (RTS) signal control. 1: RTS will output logic 0. 0: RTS will output logic 1. www.forenex.com.tw - 23 -...
  • Page 24 Bit.0, Delta Clear To Send indicator. 1: The CTS line has changed its state. Bit.4, Complement of the CTS input 1: CTS was input logic 0. 0: CTS was input logic 1. A-3.3. Command: CLR_RTS(0x12), SET_RTS(0x14) www.forenex.com.tw - 24 -...
  • Page 25: Appendix B. Communication With Spi Device Over Ethernet

    E.g. If you want to write 4 Bytes data to the AMIC A25LQ64, The packet form Host should be “1 Byte Command + 3 Bytes Address + 4 Bytes Data”. When single packet processing is completed, the E2S will be returned 8 Bytes data to Host. www.forenex.com.tw - 25 -...
  • Page 26 The packet form Host should be “1 Byte Command + 3 Bytes Address + 4 Bytes Dummy” When single packet processing is completed, the E2S will be returned 8 Bytes data to Host. The valid data was after 4 position 4 bytes in E2S returned. www.forenex.com.tw - 26 -...

This manual is also suitable for:

E2s-uf/ uiE2s-rf/ri

Table of Contents