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 1 - 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 |
|
|
| 0004 |
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 |
|
|
|
| <--------- |
0004 |
00 |
0C |
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 |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
Status
=
solicited
Line =
active
Line =
polling
|
|
|
|
2 - Data Delivery Confirmation:
| <--------- |
0004 |
20 |
0C |
01 |
01 |
00 |
00 |
|
|
|
|
|
|
|
|
|
L
E
N
G
T
H |
P
O
S
I
T
I
V
E
C
O
N
F
I
R
M
A
T
I
O
N |
D
A
T
A
=
S
T
A
T
U
S |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
|
| 3 -
Unsolicited Status: |
|
|
|
| Line down, inactive |
Line up, inactive |
Line up, active |
|
|
|
| <--------- |
0004 |
00 |
0C |
01 |
01 |
00 |
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 |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
| |
| <--------- |
0004 |
00 |
0C |
01 |
01 |
02 |
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 |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
| |
| <--------- |
0004 |
00 |
0C |
01 |
01 |
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 |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
|
|
Extended Header Type 1 - Version 2
| 1 - Solicited
Status: |
|
|
| Status Request |
Status Response |
|
|
| 0004 |
00 |
0C |
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 |
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 |
|
|
|
| <--------- |
0004 |
00 |
0C |
01 |
02 |
|
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 |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
Line = active
Line = polling |
|
| |
2 - Data Delivery Confirmation:
| <--------- |
0004 |
20 |
0C |
01 |
02 |
00 |
00 |
|
|
|
|
|
|
|
|
|
L
E
N
G
T
H |
P
O
S
I
T
I
V
E
C
O
N
F
I
R
M
A
T
I
O
N |
D
A
T
A
=
S
T
A
T
U
S |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
|
| 3 - Unsolicited Status: |
|
|
|
| Line down, inactive |
Line up, inactive |
Line up, active |
|
|
|
| <--------- |
0004 |
00 |
0C |
01 |
02 |
00 |
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 |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
| |
| <--------- |
0004 |
00 |
0C |
01 |
02 |
02 |
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 |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
| |
| <--------- |
0004 |
00 |
0C |
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 |
F
O
R
M
A
T
I
D |
V
E
R
S
I
O
N
I
D |
|
| |
Printer friendly (Adobe
Acrobat) version of this document.
If you have any questions on the headers, please e-mail us at:
support@jbmelectronics.com
|