Page 3 - Table of Contents
3 / 58 Table of Contents 1 Package and operating conditions .................................................................................................................5 Starter Kit contents ...........................................................................................................
Page 4 - Revision history
4 / 58 Revision history Revision Date Author Note Firmware version Applet version Win32 app version 1.0 05.05.06 AG - First version Since 1.0 Since 1.0 Since 3.0 1.1 09.06.06 AG - Update specifications - Text corrections Since 1.0 Since 1.0 Since 3.0 1.2 14.08.06 AG - I2C speed correction. - Warning...
Page 5 - Package and operating conditions; Starter Kit contents; CD-Rom with dedicated software and Java applet sample; Absolute maximum rating; Preliminary; Parameter; the internal polifuse will cut the supply
5 / 58 1 Package and operating conditions Starter Kit contents The FMod-TCP BOX “Starter kit” should contain: FMod-TCP BOX device RS232 DSub cable DIN 41651 40 lines cable CD-Rom with dedicated software and Java applet sample This manual Absolute maximum rating Damage may occur if the devi...
Page 6 - Over view; Applications; Qty Type; Relays; Software operating principle; use, the operation is really simple. Any byte sent to port
6 / 58 2 Over view Applications The FMod-TCP BOX is a TCP/IP server that allows system integrators to connect different devices such as home appliances, industrial sensors and industrial control systems directly to the Ethernet network, (10BaseT) and to remotely monitor and control those using stand...
Page 7 - Hardware description; Front view
7 / 58 "Question & Answer" oriented. The PC should send a Question, wait for the Answer and so on. To configure the device's parameters and to access I/O and A/D features, the protocol uses an Internal Registers Access routine (see chapter 4 and 7). The code samples available on the Five...
Page 8 - Left side
8 / 58 See page 9 to know how the SOS button works. Two LEDs illuminate the SOS button and the displayed color as the following meanings: Green Everything is normal. Red There is an error. See Warning register to know the source of the error. Red-Green The device found another one with the same IP a...
Page 9 - ht side; Rig; while the device is running
9 / 58 The I2C pins are provided through a Philips PCA9512 driver chip. 10k Ω pull ht side Standard RS232 DSub 9 connector (male like on a computer) 1 NC 6 NC 2 Receive data 7 Request To Send 3 Transmit data 8 Clear To Send 4 NC 9 NC 5 GND -ups are connected to A. SCL and SD Rig The RS232 connector ...
Page 10 - Quick star t; Changing IP address; Plug your new device on your PC network.
10 / 58 3 Quick star t This section is intended to help users to quickly plug the module into their system and establish a connection between the computer and the device. You can find the device’s factory communication settings on the following label. This device is not intended to be used in a medi...
Page 12 - Controlling the FMod-TCP BOX by TCP or UDP; General Information; simultaneous
12 / 58 4 Controlling the FMod-TCP BOX by TCP or UDP General Information All the device's parameters (configuration registers) and features can be accessed through a TCP or UDP port. In addition, an HTTP-TCP port is available for web pages downloading and another TCP port for RS232 bus access. Those...
Page 13 - For Windows; improperly changes done in the Windows registry can
13 / 58 So, with speeds greater than 9600bds, the buffer may be filled faster than data can be sent by TCP and part of those will be lost if no RS232 hardware flow control is used between the FMod-TCP BOX and the RS232 device (CTS and RTS lines). If you cannot use hardware flow control on RS232 bus ...
Page 14 - Registers access feature; Number of bits
14 / 58 Registers access feature TCP/IP works in big endian: most significant byte first, followed by least significant byte. The access to the data is done through an easy (6 byte header) protocol over TCP. Structure of each packet: 1. Function ID (2 bytes), 2. Transaction ID (2 bytes) 3. Length of...
Page 15 - I2C feature; Write
15 / 58 Write register(s) command: Byte# Number of bits Example 0x00 Write (0x0022) 16 bits 0x0022 0x02 TransactionID 16 bits 0x1B34 0x04 Number of bytes in command 16 bits 0x0003 0x06 Register Addresses 8 bits 0x02 0x07 Register value 8 — 64 bits 0x1234 The two previous entries are replicated for e...
Page 17 - I2C Bus scanning
17 / 58 Note that the max length of those sequences is 180 bytes. Pay close attention to building sequences that do not exceed this and not to ask too much byte in answer ! The FMod-TCP BOX translates automatically those sequences to I2C sequences. It is mandatory that the sequence has to be transmi...
Page 18 - CSpeed
18 / 58 3. The I2C controller does not match all I2C specifications at speed higher than 100kHz. This feature will therefore not work with all I2C slaves. The value of the I2CSPD parameter must be computed with the following formula: 1 2 10 2 7 − = wanted CSpeed I CSPD I The I2C speed cannot be save...
Page 20 - Checksum calculation; sum of 1’s complement of all 16 bits words of whole message
20 / 58 Checksum calculation This checksum is the same as the IP checksum. Definition: sum of 1’s complement of all 16 bits words of whole message (FiveCo packet) except checksum bytes. Note: all values are unsigned! Sequence: 1. Clear accumulator Loop x. Only if last word is not made of two bytes, ...
Page 22 - Java A pplet; Overview; Please note that on an MSWindows; based computer, a few seconds delay can
22 / 58 5 Java A pplet A specific Java Applet is provided with the module to control any of its ports without having to write any specific code. Overview To connect to the http server on the device, simply open your web browser and type the IP address of the module. Example with default address: “ht...
Page 23 - Main Config
23 / 58 Main Config The Main panel shows the general information related to the device. • The first part allows the user to change the main settings of the device. Don't forget to use the "Save user parameters" button to make changes permanent! • The second part allows the user to save/resto...
Page 26 - Test I2C
26 / 58 Test I2C This page can be used to access I2C bus. The panel is divided in two parts: The part on the right allows scanning the I2C bus to find available slave devices. The part on the left allows sending a read or a write command to a device on the I2C bus. You should first check if you ...
Page 28 - Win32 A pplication; Connected
28 / 58 6 Win32 A pplication A specific application is provided with the module to control any of its ports without having to write a specific code. Overview IP address of the module Open or close TCP port TCP port number Depends on port Connection status To open a TCP port on the module, the user h...
Page 29 - WARNING; : it only works with devices in your subnet!
29 / 58 This application uses the IP address of your computer and its subnet mask to find the scan broadcast address. When you click on scan, a broadcast message will be sent to all devices in your subnet and answers will be listed. WARNING : it only works with devices in your subnet! How does it wo...
Page 31 - “Load web files” interface; is available for that
31 / 58 “Load web files” interface File(s) list operations List of files to load Number of bytes in list Create file for factory upload Load files intomodule This option allows users to load their personal web files (html, java, jpeg, gif, txt …) into the flash memory. A maximum of 44kB is available...
Page 32 - Main port interface; The user can change the RS232 baud rate and enable or
32 / 58 Main port interface Change RS232 baud rate Outputs state and flow control Change disconnection timeout Inputs state and voltage Change IP address of the module Change subnet mask of the module Scan I2C bus Number of bytes to read from I2C Module MAC address Change module name Hex data to wri...
Page 33 - Write mode; , the bytes (in hexadecimal like 41 42 45 separated by; Read mode; , the steps are the same except that the user must specify how
33 / 58 The I2C interface is an easy way to test the I2C connection between the module and the user's electronic. The user has to choose between an I2C Read or Write operation. In Write mode , the bytes (in hexadecimal like 41 42 45 separated by spaces!) must be written in the dedicated line and the...
Page 34 - Registers management; Memory Organization; USER; RUNNING; SaveUserParameters
34 / 58 7 Registers management Memory Organization The user must know that a new register value sent through the communication port is loaded to the running parameters in RAM and used for the current process. All these parameters are lost upon power-down. It is required to save them to “User Paramet...
Page 36 - Register Address Register; Register Size Register; Product identifier composed with a
36 / 58 TYPE Register Address Register Name Function Read/Write Control 0x00 TYPE Product ID Read only Register Size Register structure 4 Bytes Unsigned Int 16bits (HH-HL) TYPE Unsigned Int 16bits (LH-LL) MODEL Description: Product identifier composed with a Type and Model number. It defines which k...
Page 38 - RESET CPU; Function Address Function; Reboots the device. The communication will be lost.
38 / 58 RESET CPU Function Address Function Name Function Read/Write Control 0x02 RESETCPU Restart processor Write only Register Size Register structure Unit 0 Byte none none Description: Reboots the device. The communication will be lost. FMod-TCP User Manual v.2.8
Page 39 - SAVE USER PARAMETERS; IPADDRESS
39 / 58 SAVE USER PARAMETERS Function Address Function Name Function Read/Write Control 0x03 SAVEUSERPARAMETERS Saves all in EEPROM Write only Register Size Register structure Unit 0 Byte none none Description: Saves the following parameters to user EEPROM space: 0x12 IPADDRESS 0x13 SUBNETMASK ...
Page 40 - RESTORE USER PARAMETERS
40 / 58 RESTORE USER PARAMETERS Function Address Function Name Function Read/Write Control 0x04 RESTOREUSERPARAMETERS Restores saved values Write only Register Size Register structure Unit 0 Byte none none Description: Restores the following parameters from user EEPROM space: 0x12 IPADDRESS 0x13...
Page 41 - RESTORE FACTORY PARAMETERS; Function Name Function Read/Write
41 / 58 RESTORE FACTORY PARAMETERS Function Address Function Name Function Read/Write Control 0x05 RESTOREFACTORYPARAMETERS Factory default Write only Register Size Register structure Unit 0 Byte none none Description: Restores the following parameters from factory EEPROM space: 0x12 IPADDRESS 0...
Page 42 - SAVE FACTORY PARAMETERS
42 / 58 SAVE FACTORY PARAMETERS Function Address Function Name Function Read/Write Control 0x06 SAVEFACTORYPARAMETERS Save factory default Write only Register Size Register structure Unit 0 Byte none none Description: Saves the following parameters to factory EEPROM space: 0x12 IPADDRESS 0x13 SU...
Page 43 - Max
43 / 58 VOLTAGE Register Address Register Name Function Read/Write Control 0x07 VOLTAGE Power input voltage Read only Register Size Register structure Unit 4 Bytes Signed (2’s cplt) Int 16 (HH-HL) +16 bits fixed point (LH-LL) Volt Description: Input Voltage Limits: Max 0x7FFFFFFxx = 32’767.996 Min 0...
Page 44 - Bits; Each time the processor is running
44 / 58 WARNING Register Address Register Name Function Read/Write Control 0x08 WARNING Bit to bit state R/W Register Size Register structure Unit 4 Byte Unsigned Int 32 bits , each bit independent none Description: Each information/warning/error is contained in 2 bits: the first one (from LSB to MS...
Page 45 - COM OPTIONS; This register is reserved for future use.
45 / 58 COM OPTIONS Register Address Register Name Function Read/Write Control 0x10 COMOPTIONS Communication options Read/Write Register Size Register structure Unit 4 Bytes 32 individual bits none Description: This register is reserved for future use. FMod-TCP User Manual v.2.8
Page 46 - ETHERNET MAC
46 / 58 ETHERNET MAC Register Address Register Name Function Read/Write Control 0x11 ETHERNETMAC Hardware network ID Read only Register Size Register structure Unit 6 Bytes 6 x Unsigned Bytes none Description: A standard hardware unique identifier (worldwide) for each device on an Ethernet network. ...
Page 47 - IP ADDRESS
47 / 58 IP ADDRESS Register Address Register Name Function Read/Write Control 0x12 IPADDRESS IP network ID Read/Write Register Size Register structure Unit 4 Bytes 4 x Unsigned Bytes none Description: Network identifier used for TCP/IP and UDP/IP. The values 255 (0xFF) and 0 (0x00) are reserved for ...
Page 48 - SUBNET MASK
48 / 58 SUBNET MASK Register Address Register Name Function Read/Write Control 0x13 SUBNETMASK IP subnet mask Read/Write Register Size Register structure Unit 4 Bytes 4 x Unsigned Bytes none Description: Network IP subnet mask used for TCP/IP and UDP/IP. Notes: The module will change for a new subne...
Page 49 - TCP TIMEOUT
49 / 58 TCP TIMEOUT Register Address Register Name Function Read/Write Control 0x14 TCPTIMEOUT Timeout for TCP connection Read/Write Register Size Register structure Unit 1 Byte Unsigned Int 8 bits sec Description: The TCP timeout is a value (in seconds) after which the user will be disconnected if ...
Page 50 - MODULE NAME
50 / 58 MODULE NAME Register Address Register Name Function Read/Write Control 0x15 MODULENAME Module’s ASCII name Read/Write Register Size Register structure Unit 16 Bytes 16 (only) x Unsigned Bytes (CHAR) none Description: Name and/or description of the module. Example: For the name “Hello Module”...
Page 52 - I2C SPeeD
52 / 58 I2C SPeeD Register Address Register Name Function Read/Write Control 0x18 I2CSPD I2C speed setting Read/Write Register Size Register structure Unit 1 Byte Unsigned Int 8 bits none Description: I2C speed setting between ~39kHz and 400kHz. The value of this parameter must be computed with the ...
Page 53 - TCP CONNECTIONS OPENED
53 / 58 TCP CONNECTIONS OPENED Register Address Register Name Function Read/Write Control 0x1A TCPCONNECTIONSOPENED Number of TCP connections that are opened Read only Register Size Register structure Unit 1 Byte Unsigned Int 8 bits none Description: Number of users connected to the device using TCP...
Page 54 - ANALOG INPUTS THRESHOLD; If your inputs use 5V TTL signals, set this value between 1 and 4 V.
54 / 58 ANALOG INPUTS THRESHOLD Register Address Register Name Function Read/Write Control 0x20 ANALOGINPUTSTHRESHOLD AD converter threshold on inputs Read/Write Register Size Register structure Unit 4 Bytes Signed (2’s cplt) Int 16 (HH-HL) +16 bits fixed point (LH-LL) Volt Description: Defines the ...
Page 55 - Inputs number 1, 2 and 3 are high and others
55 / 58 INPUTS Register Address Register Name Function Read/Write Control 0x21 INPUTS 16 inputs states Read only Register Size Register structure Unit 2 Bytes Unsigned Int 16 bits, each bit independent none Description: Show digital state of each inputs pin. The state is defined by comparing actual ...
Page 56 - Outputs number 1, 2 and 3 are high and others
56 / 58 OUTPUTS Register Address Register Name Function Read/Write Control 0x23 OUTPUTS Sets outputs states Read/Write Register Size Register structure Unit 2 Bytes Unsigned Int 16 bits, each bit independent none Description: Controls the state of each of the output pins. Bit 0 OUTPUT#1 (Relay A) Bi...
Page 57 - INPUT VOLTAGE x VALUE; Register Name Function Read/Write; s and is asynchronous with the read
57 / 58 INPUT VOLTAGE x VALUE Registers Addresses Register Name Function Read/Write Control 0x30 to 0x3F INPUTVOLTAGExVALUE Last INPUTVx A/D conversion result Read only Register Size Register structure Unit 4 Bytes Signed (2’s cplt) Int 16 (HH-HL) +16 bits fixed point (LH-LL) Volt Description: Volta...