SEARCH 

Status Messge Exchange Examples

Header Information

JBM Electronics Co. has developed a set of headers to provide a mechanism for bridging the different characteristics between the "frame-type" data of a polled legacy protocol and the "stream-type" data of a TCP/IP connection. The headers pass information between a customer-developed application and the Gateway. The header is stripped before the data is sent to the serial device.

We provide an expanded theory of operation, examples of header (status) processing logic and example code which can be used to as a guide when adding support for our headers to a TCP application. This code will simplify the effort necessary to support the headers. The available information is:


Extended Header Type 2 - Version 1

This document illustrates examples of message interchanges for the TYPE 2 headers supported by the Gateways.

1 - Solicited Status:
Status Request Status Response
0006 00 0C 00 00 01 01 01 00  ---------->
L
E
N
G
T
H
R
E
S
E
R
V
E
D
D
A
T
A

=

S
T
A
T
U
S
P
O
L
L

C
O
D
E

1
P
O
L
L

C
O
D
E

2
F
O
R
M
A
T

I
D
V
E
R
S
I
O
N

I
D
L
I
N
E

S
T
A
T
U
S

R
E
Q
U
E
S
T
 

 

<--------- 0006 00 0C 00 00 01 01 16 00
L
E
N
G
T
H
R
E
S
E
R
V
E
D
D
A
T
A

=

S
T
A
T
U
S
P
O
L
L

C
O
D
E

1
P
O
L
L

C
O
D
E

2
F
O
R
M
A
T

I
D
V
E
R
S
I
O
N

I
D
Line = active

Line = polling
 

Extended Header Type 2 - Version 2

1 - Solicited Status:
Status Request Status Response
0006 00 0C 00 00 01 02 10 00  ---------->
L
E
N
G
T
H
R
E
S
E
R
V
E
D
D
A
T
A

=

S
T
A
T
U
S
P
O
L
L

C
O
D
E

1
P
O
L
L

C
O
D
E

2
F
O
R
M
A
T

I
D
V
E
R
S
I
O
N

I
D
L
I
N
E

S
T
A
T
U
S

R
E
Q
U
E
S
T
 

 

<--------- 0006 00 0C 00 00 01 02 06 00
L
E
N
G
T
H
R
E
S
E
R
V
E
D
D
A
T
A

=

S
T
A
T
U
S
P
O
L
L

C
O
D
E

1
P
O
L
L

C
O
D
E

2
F
O
R
M
A
T

I
D
V
E
R
S
I
O
N

I
D
Line = active

Line = polling

 

2 - Begin Polling (device x'4141):

0004 00 0C 41 41 01 02 20 00  ---------->
L
E
N
G
T
H
R
E
S
E
R
V
E
D
D
A
T
A

=

S
A
T
U
S
P
O
L
L

C
O
D
E

1
P
O
L
L

C
O
D
E

2
F
O
R
M
A
T

I
D
V
E
R
S
I
O
N

I
D
B
E
G
I
N
 
P
O
L
L
I
N
G
 


To download the Acrobat file to
	your PC - right-mouse-click and select 'save as'. To view in your web browser - left-mouse-click.Printer friendly (Adobe Acrobat) version of this document.

If you have any questions on the headers, please e-mail us at:   support@jbmelectronics.com