See page 10 for quick start Ethernet Converter Device FMod-TCP BOX User Manual Version 1.2
10 / 58 3 Quick start This section is intended to help users to quickly plug the module into their system and establish a connection between the co
11 / 58 You can now connect the device with the Win32 software or open its web page by typing its new IP address into a web browser. Notes: The
12 / 58 4 Controlling the FMod-TCP BOX by TCP or UDP General Information All the device's parameters (configuration registers) and features ca
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
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
15 / 58 Write register(s) command: Byte# Number of bits Example 0x00 Write (0x0022) 16 bits 0x0022 0x02 TransactionID 16 bits 0x1B34 0x
16 / 58 To be able to do all of these 3 sequences, use this command: Byte# Number of bits Example 0x00 I2CRWwithAck (0x0007) 16 bits 0x00
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 to
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 s
19 / 58 Easy IP address config (UDP # 7010) A really useful feature of the UDP port #7010 is the "Easy IP config" one. The user who wants
2 / 58 Version: 1.2 Last revision: August 14th, 2006 Printed in Switzerland © Copyright 2003-2006 FiveCo Sàrl. All rights re
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 (
21 / 58 Here is an example of a checksum calculation function in C: int RetCheckSum(Byte* ByteTab, int Size) { // This function returns the calc
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. Ov
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 setting
24 / 58 Test A/D and I/Os This page can be used to access Inputs state and voltage and change Outputs state. The Inputs state and voltage are regula
25 / 58 Test RS232 This page can be used to access RS232 bus. If you click on the "Connect to RS232 TCP Port" you can send ASCII data to R
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 t
27 / 58 checked the "Read" box, the FMod-TCP BOX will use the read after write I2C feature). After writing the I2C address (7bits hexa) and
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
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 bro
3 / 58 Table of Contents 1 Package and operating conditions ...
30 / 58 RS232 interface chain to send Send ASCII, Hex, or Decimal chain Bytes received from RS232 The RS232 interface is easy to use. Just write th
31 / 58 “Load web files” interface File(s) list operationsList of files to load Number of bytes in list Create file for factory uploadLoad files in
32 / 58 Main port interface Change RS232 baud rate Outputs state and flow control Change disconnection timeout Inputs state and voltage Change IP a
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
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
35 / 58 Full Register Description List of registers Address Bytes Name General Information 0x00 (00) 4 TYPE 0x01 (01) 4 VERSION 0x02 (02)
36 / 58 TYPE Register Address Register Name Function Read/Write Control 0x00 TYPE Product ID Read only Register Size Register structure 4 Bytes Un
37 / 58 VERSION Register Address Register Name Function Read/Write Control 0x01 VERSION Software ID Read only Register Size Register structure 4 B
38 / 58 RESET CPU Function Address Function Name Function Read/Write Control 0x02 RESETCPU Restart processor Write only Register Size Register st
39 / 58 SAVE USER PARAMETERS Function Address Function Name Function Read/Write Control 0x03 SAVEUSERPARAMETERS Saves all in EEPROM Write only Re
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 S
40 / 58 RESTORE USER PARAMETERS Function Address Function Name Function Read/Write Control 0x04 RESTOREUSERPARAMETERSRestores saved values Write onl
41 / 58 RESTORE FACTORY PARAMETERS Function Address Function Name Function Read/Write Control 0x05 RESTOREFACTORYPARAMETERSFactory default Write on
42 / 58 SAVE FACTORY PARAMETERS Function Address Function Name Function Read/Write Control 0x06 SAVEFACTORYPARAMETERSSave factory default Write only
43 / 58 VOLTAGE Register Address Register Name Function Read/Write Control 0x07 VOLTAGE Power input voltage Read only Register Size Register stru
44 / 58 WARNING Register Address Register Name Function Read/Write Control 0x08 WARNING Bit to bit state R/W Register Size Register structure Unit
45 / 58 COM OPTIONS Register Address Register Name Function Read/Write Control 0x10 COMOPTIONS Communication options Read/Write Register Size Regis
46 / 58 ETHERNET MAC Register Address Register Name Function Read/Write Control 0x11 ETHERNETMAC Hardware network ID Read only Register Size Regist
47 / 58 IP ADDRESS Register Address Register Name Function Read/Write Control 0x12 IPADDRESS IP network ID Read/Write Register Size Register struc
48 / 58 SUBNET MASK Register Address Register Name Function Read/Write Control 0x13 SUBNETMASK IP subnet mask Read/Write Register Size Register st
49 / 58 TCP TIMEOUT Register Address Register Name Function Read/Write Control 0x14 TCPTIMEOUT Timeout for TCP connection Read/Write Register Size
5 / 58 1 Package and operating conditions Starter Kit contents The FMod-TCP BOX “Starter kit” should contain: FMod-TCP BOX device RS232 DSub
50 / 58 MODULE NAME Register Address Register Name Function Read/Write Control 0x15 MODULENAME Module’s ASCII name Read/Write Register Size Registe
51 / 58 RS232 CONFIG Register Address Register Name Function Read/Write Control 0x16 RS232CONFIG RS232 baud rate and flow control configuration Read
52 / 58 I2C SPeeD Register Address Register Name Function Read/Write Control 0x18 I2CSPD I2C speed setting Read/Write Register Size Register struc
53 / 58 TCP CONNECTIONS OPENED Register Address Register Name Function Read/Write Control 0x1A TCPCONNECTIONSOPENEDNumber of TCP connections that ar
54 / 58 ANALOG INPUTS THRESHOLD Register Address Register Name Function Read/Write Control 0x20 ANALOGINPUTSTHRESHOLDAD converter threshold on input
55 / 58 INPUTS Register Address Register Name Function Read/Write Control 0x21 INPUTS 16 inputs states Read only Register Size Register structure
56 / 58 OUTPUTS Register Address Register Name Function Read/Write Control 0x23 OUTPUTS Sets outputs states Read/Write Register Size Register stru
57 / 58 INPUT VOLTAGE x VALUE Registers Addresses Register Name Function Read/Write Control0x30 to 0x3F INPUTVOLTAGExVALUE Last INPUTVx A/D conversi
58 / 58 FMod-TCP User Manual v.2.8 Contact address : FiveCo - Innovative Engineering PSE-C CH-1015 Lausanne Switzerland
6 / 58 2 Overview Applications The FMod-TCP BOX is a TCP/IP server that allows system integrators to connect different devices such as home applian
7 / 58 "Question & Answer" oriented. The PC should send a Question, wait for the Answer and so on. To configure the device's para
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 Ev
9 / 58 The I2C pins are provided through a Philips PCA9512 driver chip. 10kΩ pullht sideStandard RS232 DSub 9 connector (male like on a computer) 1 N
Komentarze do niniejszej Instrukcji