Page 4
June 2004 IFSF - STANDARD FORECOURT PROTOCOL IFSF_FP2_1.012
COMMUNICATION SPECIFICATION
9 NETWORKING AND NAME RESOLUTION.............................................................18
10 SEQUENCE DIAGRAMS...........................................................................................19
10.1 FIGURE 1 STARTUP AND INITIALIZATION SEQUENCE ....................................................19
10.2 FIGURE 2 SENDING A TCP MESSAGE ...........................................................................20
10.3 FIGURE 3 TWO IFSF APPLICATIONS ON ONE HOST COMMUNICATING WITH REMOTE
IFSF DEVICES............................................................................................................................21
10.4 DETAILED EXAMPLES...................................................................................................22
10.4.1 Configuration used in the following example......................................................23
10.4.2 Establishing Heartbeats.......................................................................................24
10.4.3 Simple message transfer.......................................................................................25
This section shows controller 1 sending a command to dispenser 1.....................................25
10.4.4 Two controllers sending commands to one device...............................................26
11 APPENDIX 1 MINIMUM NUMBER OF TCP-IP SOCKETS REQUIRED FOR
IFSF DEVICE TYPES ............................................................................................................27
12 APPENDIX 2 IFSF OVER TCP/IP IMPLEMENTATION USING SOCKET API .28
12.1 TERMS AND ABBREVIATIONS........................................................................................28
12.2 INTRODUCTION.............................................................................................................29
12.3 IFSF LOWER LAYER......................................................................................................31
12.3.1 IFSF Message Router module..............................................................................31
12.3.2 IFSF TCP/IP Gate module ..................................................................................32
12.3.3 Socket API............................................................................................................33
12.3.3.1 Socket address structure ............................................................................................................. 33
12.3.3.2 Function socket ............................................................................................................................ 33
12.3.3.3 Function bind................................................................................................................................ 34
12.3.3.4 Function listen .............................................................................................................................. 34
12.3.3.5 Function accept ............................................................................................................................ 35
12.3.3.6 Function connect.......................................................................................................................... 35
12.3.3.7 Function send ............................................................................................................................... 36
12.3.3.8 Function recv ................................................................................................................................ 36
12.3.3.9 Function sendto............................................................................................................................ 37
12.3.3.10 Function recvfrom........................................................................................................................ 37
12.3.4 TCP/IP Connection Architectures .......................................................................39
12.3.4.1 Single TCP connection between two hosts.............................................................................. 39
12.3.4.2 Multiple TCP connections between two hosts........................................................................ 40
12.3.5 TCP/IP overhead of IFSF messages....................................................................40
12.3.5.1 TCP/IP overhead of IFSF heartbeat........................................................................................... 41
12.3.6 TCP/IP Gate module............................................................................................42
12.3.6.1 Outgoing IFSF heartbeat message............................................................................................. 42
12.3.6.2 Incomming IFSF heartbeat message.......................................................................................... 43
12.3.6.3 Outgoing IFSF message .............................................................................................................. 43
12.3.6.4 Incomming IFSF message............................................................................................................ 43
12.3.6.5 Connection request...................................................................................................................... 44
12.4 EXAMPLE OF THE STARTUP..........................................................................................45
评论3
最新资源