Hi G Tek IGRS40916 DataSeal User Manual ch6

Hi-G-Tek Ltd DataSeal ch6

Users Manual 3

Download: Hi G Tek IGRS40916 DataSeal User Manual ch6
Mirror Download [FCC.gov]Hi G Tek IGRS40916 DataSeal User Manual ch6
Document ID264919
Application IDolTlcaAGJ8RLK72sBR84Mg==
Document DescriptionUsers Manual 3
Short Term ConfidentialNo
Permanent ConfidentialNo
SupercedeNo
Document TypeUser Manual
Display FormatAdobe Acrobat PDF - pdf
Filesize71.71kB (896394 bits)
Date Submitted2002-08-21 00:00:00
Date Available2002-08-21 00:00:00
Creation Date2002-01-27 15:19:58
Producing SoftwareCorel PDF Engine Version 9.397
Document Lastmod2002-06-16 14:01:33
Document Titlech6.cdr
Document CreatorCorelDRAW Version 9.397
Document Author: roni

Chapter 6
RS 485/232
Communication
Protocol
6
RS 485/232 Communication Protocol
6.1. RS- 485/232 Communication Protocol:
General Description
Communication between the Local Site Controller LSC and the
STAR READER is based on the master/slave approach. The LSC
is the MASTER unit, the READERS are the SLAVE units.
The LSC and the READERS communicate via a RS-485 multi
drop or RS-232 connection. Each READER has its own address,
enabling the LSC to approach each reader individually.
6.2. Physical Layer
6.2.1. Down-link
Down-link is the link from the LSC to the READERS. The link is
RS-485 or RS-232 half duplex. Data rate can be one of the
following: 2400, 4800, 9600, 19200, 38400 BPS. The default rate
is set at 9600 BPS.
6.2.2. Up-link
Up-link is the link from the READERS to the LSC. The link is
RS-485 or RS-232 half duplex. Data rate can be one of the
following: 2400, 4800, 9600, 19200, 38400 BPS. The default rate
is set at 9600 BPS.
6.3. Protocol Flow.
Communication is initiated by a command sent by the LSC to the
READER. The READER executes the command and responds
accordingly. In a long command session, the session is concluded
when the LSC acknowledges the READER within TACK = 50 msec.
If the READERS are in sleep mode, the LSC must ensure they are
awakened prior to the initialization of the session. In this case, the
LSC should wait Tw = 50 msec before sending the main command.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
116
6
RS 485/232 Communication Protocol
There are 2 types of commands: SHORT COMMANDS and LONG
COMMANDS.
Short Commands:
Long Commands:
These are commands that are relevant to
internal tasks at the reader level.
These commands involve sessions with seals.
The READER will respond to commands generated by the LSC
within TRLSC seconds.
For short commands, response time should be: TRLSC = 50 msec.
For long commands, the LSC should return to retrieve the results
after Tsession with the appropriate GET RESULTS command.
Tsession is a derivative of the type of command executed to the seals.
Acknowledge can be positive or negative.
If the LSC detects a problem, Acknowledge will be negative.
The READERS are designed to work in cycles. Following an
internal or external trigger, a READER SESSION is generated.
This is a full communication cycle going back and forth between
a READER and the tags located in the READER's receiving zone.
The LSC operates differently The READERs are scanned on a
different time line, using the same frequency as that of the
READER's cycles or greater.
This protocol supports RS-485 and RS-232 communication
fashions. When working with the LSC using RS-232 communication
opposite only one device, address fields should be set to 0xFFFF.
When using RS-485 communication in broadcast situations, the
address field should be set to 0x0000.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
117
6
RS 485/232 Communication Protocol
Short Commands Mode:
Long Commands Mode:
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
118
6
RS 485/232 Communication Protocol
6.4. String Formats.
6.4.1. LSC to READERS messages.
Commands & Acknowledge strings:
CRC
STX
#B
R#
CMND
data
CRC
ETX
# of bytes
#B
Where:
STX
#B
R#
CMND
DATA
CRC
ETX
This is the marker for the beginning of the
messages. STX = 02 hex.
String length, the string contains the R#,CMND,
the DATA field, and the CRC.
This session's READER address .
This session's command code .
The data field contains the data required to execute
the command
This is the cyclic redundancy check for DATA and
fields #B, R#, CMND.
This is the marker for the end of the messages.
ETX = 03 hex.
6.4.1.1. CRC Calculation.
CRC calculations are based on the following CCITT polynomial:
16
12
X +X +X +1
The result is 2 bytes.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
119
6
RS 485/232 Communication Protocol
6.4.1.2. CMND Field Structure.
The command field is divided into several sections:
Where:
DIR
PK
ERR
CT
CC
Denotes string direction. In case of a command
from the LSC to the reader, it is equal to 0.
Denotes whether the command transmitted is
composed of packets or not. PK = 0 is for non-packet
commands. PK = 1 is for packet commands.
this flag indicates an error.
ERR = 0 no error.
ERR = 1 Error. The first byte in the data field is the
error code.
Is the scenario command type. It describes the
command type, and whether it is in short or long form
00000 designates SHORT commands that stream
from the LCR to the Reader for MCU purposes.
00011 is for LONG commands.
This is the command code .
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
120
6
RS 485/232 Communication Protocol
6.4.2. Reader to LSC Message
Response & Acknowledge strings:
STX
#B
R#
MSGT
MC
R_status
DATA
CRC
ETX
This is the marker for the beginning of the messages.
STX=02 hex.
String length, the string contains the R#, MSGT, MC,
R_status, the DATA field and the CRC.
This is the address of the READER for the current
session.
This is the message type response for the current
session. The MSGT corresponds to a specific
command (see paragraph 6.4.2.1)
This is the message code (see paragraph 5.2)
This is the status field of the reader. The field contains
bytes A&B (see paragraph 6.4.2.2)
The data field contains the relevant response data.
This is the cyclic redundancy check for fields #B,
MSGT, R_status and DATA.
This is the marker for the end of the messages.
ETX=03 hex.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
121
6
RS 485/232 Communication Protocol
6.4.2.1. MSGT Field Structure.
The Message Type field is divided into several sections:
Where:
DIR
PK
Is the string direction.Response will be 1.
Denotes whether the transmitted message is
composed of packets. A response of 1 indicates
that the message is composed of packets. If the
response is 0, the message was transmitted without
packets. (If PK=0 there must be 1 reserved data byte).
ERR
This flag indicates an error.
ERR = 0 no error.
ERR = 1 Error. The first byte in the data field stores
the error code.
MT
This code reflects the nature of the response. A
regular response to a command has the same value
as the CC (See paragraph 6.4.1.2).
MC
This field holds the same value as the Command
Code of the related commands. This field makes it
possible to link the response to the appropriate
command.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
122
6
RS 485/232 Communication Protocol
6.4.2.2. R_Status Field Structure
The READER's STATUS field is 4 bytes.
Byte A
Byte B
Byte C
Byte D
Byte A represents the status of the main motherboard MCU.
The other bytes represent the RF modems' status.
In a general Reader response the R-Status reply contains
bytes A&B only.
In a GET Status command, the reply contains all the R-Status
bytes.
Byte A:
LCK
Where:
LCK
485
PCR
PER
VCCERR
VBERR
PMC
EDC
If the response shows 0, the READER's parameters
are locked.
If the response is 1, the READER's parameters
are unlocked.
If the response is 0, the READER is using RS-232
mode for communication.
485
If the response shows 1, the READER is using
RS-485 mode for communication.
PCR
If the response shows 0, the parameters in the MCU's
E2ROM are OK.
If the reponse is 1, parameters were corrupted and
successfully restored.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
123
6
RS 485/232 Communication Protocol
PER
If the response is 0, the parameters in the
MCU's E2ROM are OK.
If the answer is 1, parameters are corrupted.
VCCERR
If response is 0, internal power is OK.
If response is 1, internal power is faulty.
VBERR
If response shows 0, internal battery is OK.
If response is1, internal battery is faulty.
PMC
If response is 0, program memory in the MCU is OK.
If response is 1, program memory is corrupted.
EDC
This flag indicates that a delayed command was
triggered and is in process.
Byte B:
Ch1
Ch2
Ch3
Ch4
Ch1err
Ch2err
Ch3err
Ch4err
Where:
Ch1
Ch2
Ch3
Ch4
if 0 channel1 is not in use.
If 1 channel1 is in use.
Iif 0 channel2 is not in use.
If 1 channel2 is in use.
If 0 channel3 is not in use.
If 1 channel3 is in use.
If 0 channel4 is not in use.
If 1 channel4 is in use.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
124
6
RS 485/232 Communication Protocol
Ch1err
Ch2err
Ch3err
Ch4err
If 0, channel is OK
If 1, channel is defective, details are in byte C. If
byte C flags are OK, there is a communication
failure with this channel.I
If 0, channe2 is OK.
If 1, channe2 is defective, details are in byte C.
If byte C flags are OK, there is a communication
failure with this channel.
If 0, channe3 is OK.
If 1, channe3 is defective, details are in byte D. If
byte D flags are OK, there is a communication
failure with this channel.
If 0, channe4 is OK.
If 1, channe4 is defective, details are in byte D.
If byte D flags are OK, there is a communication
failure with this channel.
Bytes C&D:
VCCERR
PMC
EMC
EME
If 0, power is OK.
If 1, power is not faulty
If 0, program memory in the module is OK.
If 1, program memory is corrupted.
If 0, E ROM is OK.
If 1, E2ROM was corrupted and then restored.
If 0, E ROM is OK.
If 1, E2ROM was corrupted.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
125
6
RS 485/232 Communication Protocol
6.4.2.3. Reader Messages Packed Data Format
Where:
PK
P#
Ch
The first byte is the total number of packets in
the string.
The second byte is the packet serial number.
The third byte is the channel number from which
the message is received.
Maximum total message length is 128 bytes.
Maximum Data* length is 115 bytes.
6.4.2.3.1. Packed Data from the LSC.
When the packets originate with the LSC, each packet will be
transmitted after an appropriate response from the READER.
The LSC may retransmit the last packet upon receipt of a
response indicating that the last packet was not received
satisfactorily.
6.4.2.3.2. Packed Data from the READER.
When the packets originate with the READER, each packet will be
transmitted after an appropriate acknowledgement from the LSC.
The READER may retransmit the last packet upon receipt of an
acknowledgment indicating that the packet was not received
satisfactorily
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
126
6
RS 485/232 Communication Protocol
6.5. LSC and Reader Messages.
6.5.1. LSC Commands and Acknowledge Table:
Commands Command
Code
Set
Comments
Wakeup
E0 h
20 h
Execute RF
cmnd
Get Results
Get Status
16 h
Get Burs t
Mess age
1C h
Reset
Reader
Write
Parameters
14 h
This comm and wakens REA DERS it hat were in sl eep
mode.
This comm and generates an appropriat e comm and from
the READE R to the tags .
In a tag-reader sess ion, thi s com mand allows t he LSC to
retrieve the results received by the REA DER from the tags .
In case of a sel f-contained c ommand, t he READER will
return to it s current s tatus .
This comm and should be us ed to retrieve the alert
mess ages retrieved from the seal s when using t he alert
burst mode. These are not available through the regular Get
Results .
This comm and resets theREADER.
Read
Parameters
BIT
Sleep
07 h
Unsync Ack
Get Reader’s
baud rate
Set Reader
baud rate
Set Reader’s
Address
Ack nowledge
OK
Ack nowledge
Failed
Save
Command
Exec ute
Saved
command
Read
Channel
Definitions
Write
Channel
Definitions
0A h
FF h
10
11
12
13
14
15
16
17
18
19
20
15 h
06 h
09 h
08 h
This comm and modifies t he PARAM ETERS of a READE R.
After is suing a LOCK c ommand, not all the paramet ers are
accessible.
This comm and is to read t he PARAM ETERS of a READE R.
11 h
Exec utes a built in t est
This comm and puts t he READER int o the sleep m ode of
operation to enabl e power conservation.
Reserved for the unsynchroniz ed response, see table 5. 2
This comm and allows t he LSC to obtain t he reader’s baud
rate.
This comm and allows t he LSC to s et the REA DER’s baud
rate.
This comm and sets the READE R’s address for RS-485
usage
This is an ac knowledgement of a mes sage com ing from a
READER.
This is an ac knowledgement of an improper mess age
coming from a RE ADER.
This comm and saves one of the above commands for lat er
execut ion. It is used to s ynchroniz e readers.
This comm and execut es the c ommand saved in the
READER. When is used in a broadcas t fashion, all the
READERS execut e the com mand sim ultaneousl y.
This comm and allows t he reading of channel definitions ..
10 h
This comm and allows t he writing of channel defini tions.
FE h
12 h
92 h
94 h
0F h
17 h
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
127
6
RS 485/232 Communication Protocol
6.5.2. Message Table:
Message
Wak eup
response
Exec ute RF
cmnd res ponse
Get Results
response
Get Status
response
Get Burs t
Mess age
response
Reset Reader
response
Write
Parameters
response
Read
Parameters
response
BIT response
Sleep response
Unsynch
Mess age
10
11
12
13
14
15
16
17
18
Get Reader’s
baud rate
response
Set Reader
baud rate
response
Set Reader’s
Address
response
Save
Command
response
Exec ute Saved
command
response
Read Channel
Definitions
response
Writ e Channel
Definitions
response
Message Commen ts
Code
No response for W AKE UP st ring
20 h
15 h
16 h
1C h
14 h
06 h
07 h
09 h
08 h
0A h
When a REA DER is i n unsync h mode, the RE ADER
may s end an unsync h mess age. This oc curs after
receiving an alert mes sage from a seal .
FF h
FE h
12 h
0F h
This comm and saves one of the above commands for
later exec ution. It is us ed to sy nchroniz e readers.
This is a broadc ast c ommand. There is noresponse t o
this command.
11 h
This comm and allows t he reading of channel
definitions .
10 h
This comm and allows t he writing of channel definitions ..
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
128
6
RS 485/232 Communication Protocol
6.5.3. Parameters Table:
The following table relates to the Read and Write Parameters
Commands:
Parameter
Name
Parameter
Code
Parameter
Syntax
Version of
MCU_firmwar
Version
of
S1_firmware
Version
of
S2_firmware
RSSI ch1
RSSI ch2
Reader ID
ADI ch1
ADI ch2
OrgID*
Department
ch1
Department
ch2
Thw ch1
Thw ch2
Reader
Address
Transmitter
Power ch1
Transmitter
Power ch2
System ch1
System ch2
Mode ch1
Mode ch2
Hard wakeup
ch1
Hard wakeup
ch2
01 h
MVER
Read/Write Default
Access *
value
[unit]
80 h
SVER1
2 Byte
40 h
SVER2
2 Byte
87 h
47 h
02 h
81 h
41 h
04 h
82 h
RSSI1
RSSI2
RID
ADI1
ADI2
OrgID
DEP1
R/1
R/W
R/W
R/2
R/W
1 Byte
1 Byte
4 Byte
4 Byte
4 Byte
2 Byte
1 Byte
42 h
DEP2
R/W
85 h
45 h
03 h
Thw1
Thw2
RADD
R/W
R/W
R/W
997
997
0000
88 h
TRPOR1
R/W
65
1 Byte
48 h
TRPOR2
R/W
65
1 Byte
83 h
43 h
84 h
44 h
86 h
SYS1
SYS2
MODE1
MODE2
THP1
R/W **
R/W **
R/W
R/W
R/W
00
00
3256
3.072ms
1 Byte
1 Byte
1 Byte
1 Byte
2 Byte
46 h
THP1
R/W
3256
3.072ms
2 Byte
10
11
12
13
14
15
16
17
18
19
20
21
22
Unit
Parameter
length
2 Byte
00000000
00000000
00000000
0000
1 Byte
3.072ms
3.072ms
2 Byte
2 Byte
2 Byte
* /1 or /2 defines the LOCK level.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
129
6
RS 485/232 Communication Protocol
Parameters Format:
6.5.3.1. Reader Master Firmware Version MVER,
MVER is the version of the master firmware. This is a read only
parameter.
Bits assignment:
6.5.3.2. Reader Slave1 Firmware Version SVER1.
SVER1 is the version of the first slave's firmware.
This is a read only parameter.
Bits assignment:
6.5.3.3. Reader Slave1 Firmware Version SVER2,
SVER2 is the version of the second slave's firmware.
This is a read only parameter.
Bits assignment:
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
130
6
RS 485/232 Communication Protocol
6.5.3.4. Reader's receives signal strength RSSI1,
RSSI1 is the amplitude of the received signal from the READER
at the first channel. This value indicates the link's properties to
the READER and the system.
Bits assignment:
1 byte
Reader's receives signal strength RSSI2,
RSSI2 is the amplitude of the received signal from the READER
at the second channel. This value indicates the link's properties
to the READER and the system.
Bits assignment:
1 byte
6.5.3.5. Reader ID RID,
This is a Reader's ID.
Bits assignment:
High byte
Mid byte
Mid byte
Low byte
Reader and Seal IDs format are identical. For additional information,
see paragraph 5.3.2.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
131
6
RS 485/232 Communication Protocol
6.5.3.6. Group Access Identifier ADI.
The identifier allows the READER to access groups that conform
to this value.
Bits assignment:
High byte
mid byte
mid byte
Low byte
6.5.3.7. Organization identifier OrgID*,
This is the end user's identifier. This parameter is used to
segregate between companies.
Bits assignment:
High byte
Low byte
* See paragraph 5.3.3.
6.5.3.8. Department DEP
This is the customer's department identifier. This parameter is
used to segregate between departments within a company.
Bits assignment:
High byte
* See paragraph 5.3.3.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
132
6
RS 485/232 Communication Protocol
6.5.3.9. Reader IH length Thw
This is the Reader's IH string length. The values may be modified
for a specific application.
Bits assignment:
High byte
Low byte
6.5.3.10. Reader Address RADD.
This is the Reader's address on the RS-485 link. For RS-232, the
value is 0xFFFF
Bits assignment:
High byte
Low byte
6.5.3.11. Mode MODE.
The MODE parameter determines the operating mode of the
Reader. Each bit indicates another feature.
CRNC
CRNC
UNSYNC
ABMSG
N.A
N.A
N.A
N.A
N.A
Carrier Sense: In some applications, carrier sense
must be used before bursting into the air.
The Reader uses this flag to decide whether it is
required or not.
CRNC=0 This response determines the regular
mode (no carrier sense).
CRNC=1 This response determines that the Reader
can sense the carrier. The Reader will execute the
RF command only after determining that the air is
free.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
133
6
RS 485/232 Communication Protocol
UNSYNC
In the unsynchronized commands such as
Unsynchronized Alert, the Reader's receiver
must be ON at all times, waiting for incoming
messages from the seals. The mode will be
set according to the flag's value:
UNSYNC=0 Synchronized mode only.
UNSYNC=1 Unsynchronized mode in use,
receiver should be set to ON.
ABMSG
Burst Messages. This flag indicates whether the
alert messages will be sent following Alert GET
Results, or whether the Reader will burst
independently with Alert Messages.
BRMSG=0 determines the independent messages
burst mode.
BRMSG=1 indicates the Alert GET Results mode.
6.5.4. Error Codes
See paragraph 6.4.2
Errors
Unrecognized Command
MCU Error
HF Modem Error
Result is not ready
HF Modem is not responding
MCU I/O Error
HF Modem BIT Error
Parameter is locked
Illegal Parameter Code
Error Code
01 h
02 h
03 h
05 h
06 h
07 h
08 h
09 h
0A h
* Error codes appear in the data field
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
134
6
RS 485/232 Communication Protocol
6.5.5. Detailed Commands.
6.5.5.1. Wakeup
6.5.5.1.1. Command Transmission
To wake a READER in sleep mode, a very short string must
be sent by the LSC. This will be detected by the hardware and
will awaken the READER. As this is a hardware-oriented command,
the format is different then all the other commands.
LSC > Reader
6.5.5.1.2. Wakeup Response
A WAKEUP string transmission wakens the READER. The READER
does not respond to such a string. After the command is issued the
READER is ready to receive regular commands.
6.5.5.2. Execute RF Command.
6.5.5.2.1. Command Transmission
This command enables communication sessions with the seals.
The LSC inserts the relevant information in the data field allowing
the reader to easily compile the final command string.
LSC > Reader
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
135
6
RS 485/232 Communication Protocol
Where the channel field is one of the following:
Channel
Channel 1
Channel 2
Code
01 h
02 h
Time&Date are the current Time and Date of the LSC.
ADI
NOTE:
This parameter allows the User to subgroup seals.
If the response indicates 0,the Reader uses its internal
value for ADI. If not, this is the value which will be
transmitted to the seals.
In the Data Field, #B includes the Time & Data and ADI fields.
6.5.5.2.2. Execute RF Command ACK.
This command involves a RF session with either the tags or seals.
For that reason, the READER carries a Long Command. The
READER responds with an ACK if the command was successfully
received.
Reader > LSC
STX
#B
R#
MSGT(XX20h)
R_status
channel
CRC
ETX
# of bytes
CRC
ETX
# of bytes
In case of an ACK with an error response:
STX
#B
R#
MSGT(XX20h)
R_status
Err code
The final results of this command will be ready later. The LSC
should use the GET RESULTS command to retrieve the results.
For detailed error codes see para 5.4.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
136
6
RS 485/232 Communication Protocol
6.5.5.2.3. Verify.
The Verify command is carried through the high frequency modem.
The data field in the Execute RF Command will be:
Where:
#B
Cnmd*
Tcm
Tiw
Ts
Na
Nr
Nt
#Rr
#Rt
ASID
Parameters
Mask
is the number of bytes in the string from the Cmnd*
field up to the ADI field.
is the opcode of the RF command.
The duration of the calibration message window.
Resolution is in units of 1024 msec.
The duration of the READER interlace window.
Resolution is in units of 1024 msec.
The duration of a slot for receiving responses from
a tag or a seal. Resolution is in units of 1024 msec.
The number of slots in the Fixed Assignment
Receiving Window.
The number of slots in the Random Access
Receiving Window.
The number of slots in the Alert Receiving Window.
The number of random retransmissions from a tag
in the Random Access Receiving Window.
The number of random retransmissions from a tag
in the Alert Receiving Window.
Is a random unique ID that is assigned to a specific
assignment. For details see Assign commands.
Is the parameters bit mask to which the tags and
seal respond.
This is the interrogation cycle for reading short messages from tags
and seals. Tw wakes the tags in random phase.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
137
6
RS 485/232 Communication Protocol
Bit Mask should comply with the following table:
6.5.5.2.4. Tamper
The Tamper command is intended solely for interrogation of
tampered Seals. This command is identical to the Verify command
except for the opcode which is 11h.
In accordance to this, only Seals that have detected tamper status
will respond. The aim of this command is to provide high priority to
tampered Seals in a crowded Seal environment.
6.5.5.2.5. Set
Set command is a command used when it is necessary to approach
a large number of tags or seals. If the string becomes too large it
will be split into packets.
Each packet includes information for up to 8 tags or seals. This is
a very critical command, as it uses internal CRC for each tag data.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
138
6
RS 485/232 Communication Protocol
Where:
P#
PK
CRCp
CRCt
The high 4 bits of the first byte are the packet
serial number.
The low 4 bits of the first byte are the total number
of packets in the BMM string.
Is the CRC of the packet.
Is the CRC of the tag or seal TF & TID
6.5.5.2.6. Suspended set
The Suspended Set command is the command used when it is
necessary to prepare a large number of Seals. The command
functions in the same way as the SET command, the only
difference being that the SET command is executed immediately,
while the Seal executes the Suspended SET command
automatically only after the Seal wire has been plugged into the
Seal.
The opcode for this command is 99h. The response is identical to
that of the SET response, but with 19h as the message type.
6.5.5.2.7. Soft set
This command has the same structure as the SET command.
The difference between the two is at the seal level. The seal
marks this command as an event, but doesn't reset the events
memory. The opcode for this command is 9Ah. The response is
identical to that of the SET response, but with 1Ah as the message
type.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
139
6
RS 485/232 Communication Protocol
6.5.5.2.8. Deep Sleep
6.5.5.2.9. Hard Wakeup
Hard Wakeup is the command used to wake the seal from deep
sleep mode.
6.5.5.2.10. Start Alert Burst Mode
Starting all seals.
Starting specific tags.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
140
6
RS 485/232 Communication Protocol
6.5.5.2.11. Stop Alert Burst Mode
Stopping all tags.
Data*
#B*
(09 h)
Cmnd*
(39h)
# of bytes
Stopping specific tags
Data*
#B*
(n h)
Cmnd*
(B9h)
PK/P#
TF
TID
CRC
TF
TID
CRC
TF
TID
CRC
Seal #1
# of bytes
Seal #j
Seal #2
6.5.5.2.12. Acknowledge Alert Burst Mode
Data*
#B*
(n h)
Cmnd*
(BBh)
PK/P#
TF
TID
CRC
TF
TID
CRC
TF
TID
CRC
Seal #1
# of bytes
Seal #j
Seal #2
6.5.5.2.13. Read Data
Data*
#B*
(nh)
Where:
BA
BL
Cmnd*
(63h)
BA-Base Addres s
BL-Block Length
# of bytes
This is the base address in the block of data's
memory.
This is the data block length.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
141
6
RS 485/232 Communication Protocol
6.5.5.2.14. Write Data
Data*
#B*
(n h)
Cmnd*
(68h)
TF
TID
PK/P#
BA
Base address
Data
# of bytes
PK/P# = 11h. At present the packets are fixed.
6.5.5.2.15. Reset Data
Data*
#B*
(nh)
Cmnd*
(AAh)
PK/P#
TF
TID
CRCt
TF8
TID8
CRC8
Seal #1
# of bytes
Seal #8
Up to 8 seals can be reset in one cycle
6.5.5.2.16. Set/Reset Status.
Data*
#B*
(17 h)
Cmnd*
(6Bh)
TF
TID
Bit mask
Bit value
# of bytes
Only some of the flags can be set and reset.
Bit mask marks the status bits to be reset.
A value of 0 means “don't modify”.
A value of 1 is to “reset value to zero”.
Each bit corresponds to the appropriate bit in the LTS.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
142
6
RS 485/232 Communication Protocol
6.5.5.2.17. Write Parameters
TF&TID=00 is for a broadcast command.
PK/P# = 11h. At present the packets are fixed.
6.5.5.2.18. Read Parameters
6.5.5.2.19. Addressed Verify
The following parameters are not applicable to this command:
Na, Nt, Rt.
6.5.5.2.20. Read Events
Where:
EV#
#EV
is the sequential number of the first Event.
is the number of events to be read from the memory.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
143
6
RS 485/232 Communication Protocol
6.5.5.3. Get Results
6.5.5.3.1. Command Transmission
This command is used to retrieve the results after an RF
communication session.
LSC > Reader
STX
#B
R#
CMND(0015h)
Channel
CRC
ETX
# of bytes
Channel indicates the source channel for the results. The value is
according to the table in paragraph 5.5.2.1.
6.5.5.3.2. Get Results Command General Response
The following string is the general response
Reader > LSC
STX
#B
R#
MSGT(xx20h)
R_status
channel
DATA
PK
P#
CRC
Data*
ETX
# of bytes
# of bytes
Where:
MSGT
DATA
The high byte of MSGT is according the scenario in
use. The low byte is 20 h.
In case the result is not ready, the value of this field
is 05 hex error code see paragraph 5.4. If the results
are ready, the following applies:
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
144
6
RS 485/232 Communication Protocol
PK
P#
Data*
Total number of packets.
Packet number sequence number.
This string contains the seal records. The field
should first be concentrated from all packets
before being analyzed.
Seals Records:
Data*1
Data*2
-------------Data*PK-1 Data*PK
Seal
Seal
Seal
Seal
Seal
Seal record
record
record
record
record
record
#B Data** #B Data** #B Data** #B Data** #B Data** #B Data**
Where:
#B
is the number of bytes for a seal record (including
the #B field)
is the data received after executing the RF command
led by TF, TID and Message Type.
Data**
Data**
TF
TID
Message Type
Data Result
# of bytes
Where:
TF&TID
is the ID of the seal.TF&TID
Message Type is the transmitted Cmnd*.
In case of a problem the Message Type's MSB will be set to “1”.
If no seal is detected:
Data*1
Seal record
#B=0
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
145
6
RS 485/232 Communication Protocol
For the case of an unfinished RF session the complete response is:
Reader > LSC
STX
#B
R#
MSGT(xx15h)
R_status
error
CRC
ETX
# of bytes
6.5.5.3.3. Get Results Command Response for Verify Command.
The response data field is a string of data received from all the seals.
Each seal record is marked with the seal's TF&ID. The internal data
field is according to the Parameters mask transmitted with the
Verify command.
Reader > LSC
Data**
TF
TID
Message
Type
Where:
TF&TID
Message Type
Data results according to the bit
mask
# of
bytes
is the ID of the seal.
is 10 h.
If no seal detected:
Data*1
Seal record
#B=0
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
146
6
RS 485/232 Communication Protocol
6.5.5.3.4. Get Results Command Response for Tamper Command.
Results are the same as for the Verify command.
6.5.5.3.5. Get Results Command Response for SET Command.
Reader > LSC
Data**
TF
TID
Message Type
Seal Long
Status
Seal Stamp
# of bytes
If no seal detected:
Data*1
Seal record
#B=0
6.5.5.3.6. Get Results Command Response for Suspended SET
Command.
Results are the same as for the SET command.
6.5.5.3.7. Get Results Command Response for Soft SET Command.
Results are the same as for the SET command.
6.5.5.3.8. Get Results Command Response for Read Data Command.
Reader > LSC
Data**
TF
TID
Message Type
Short Status
PK/P#
Data
# of bytes
PK/P# = 11h. At present the packets are fixed.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
147
6
RS 485/232 Communication Protocol
6.5.5.3.9. Get Results Command Response for Write Data
Command.
Reader > LSC
Data**
TF
TID
Message Type
Short seal status
# of bytes
6.5.5.3.10. Get Results Command Response for Deep Sleep.
Reader > LSC
Data**
TF
TID
Message Type
Short seal status
# of bytes
If no seal detected:
Data*1
Seal record
#B=0
6.5.5.3.11. Get Results Command Response for Hard Wakeup
Command.
Reader > LSC
Data**
TF
TID
Message Type
Short seal status
# of bytes
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
148
6
RS 485/232 Communication Protocol
6.5.5.3.12. Get Results Command Response for Reset Data
Command.
Reader > LSC
Data**
TF
TID
Message Type
Short seal status
# of bytes
6.5.5.3.13. Get Results Command Response for Start Alert
Burst Mode Command.
Reader > LSC
Data**
TF
TID
Message Type
Short seal status
# of bytes
6.5.5.3.14. Get Results Command Response for Stop Alert
Burst Mode Command.
Reader > LSC
For a group approach:
Data**
Seal record
00 h
For a specific seal response:
Data**
TF
TID
Message Type
Short seal status
# of bytes
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
149
6
RS 485/232 Communication Protocol
6.5.5.3.15. Get Results Command Response for Set/Reset Status
Command.
Reader > LSC
For a group approach:
Data**
Seal record
00 h
For a specific seal response:
Data**
TF
TID
Message Type
Short seal status
# of bytes
6.5.5.3.16. Get Results Command Response for Write
Parameters Command.
Reader > LSC
Data**
TF
TID
Message Type
Short seal status
# of bytes
6.5.5.3.17. Get Results Command Response for Read
Parameters Command.
Reader > LSC
Data**
TF TID Message Short
Type
seal
status
PK/P# Par
Par
Code Value
Par
Par
Code Value
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
# of
bytes
150
6
RS 485/232 Communication Protocol
6.5.5.3.18. Get Results Command Response for Addressed Verify
Command.
Reader > LSC
Data**
TF
TID
Message
Type
Data results according to the bit
mask
# of
bytes
Where:
If no seal detected:
Data*1
Seal record
#B=0
6.5.5.3.19. Get Results Command Response for Read Events
Command.
Data**
TF
TID
Message
Type
Events records
# of
bytes
Events Records:
PK/P#
EV#
PK/P#
EV#
Event
Record
8 or 16
EV#
Event
Record
8 or 16
EV#
Event
Record
8 or 16
EV#
Event Record
8 or 16
Event
Record
8 or 16
EV#
Event Record
8 or 16
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
151
6
RS 485/232 Communication Protocol
If no seal detected:
Data*1
Seal record
#B=0
8 bytes EVENT message format
FSsm
#B
TF
TID
MT(33)
EV#
Event
Code
D&T
STMP
CRC
EM
# of bytes
Where Event Code is one of the following:
Event
Wire Tampered
Low Battery
Wire Open
Wire Closed
RTC Stopped
DB Corrupted
Event Code
0x02
0x03
0x04
0x05
0x08
0x09
16 bytes EVENT message format
FSsm
#B
FSsm
#B
TF
TF
TID
TID
Where:
Event Code*
**
Event
SET
SOFT SET
READ
TIME Changed
MT(33)
MT(33)
EV#
EV#
Event Code
Event Code
D&T
RID
STMP
**
CRC
CHKSUM
EM
# of bytes
EM
# of bytes
is with the value 0x80
is with one of the following values:
Event Code
MSB
LSB
0x01
0x07
0x0A
0x0B
Delta
Data block is a group of events. Events should not be split. If the
event is too long, it should be moved to the next block.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
152
6
RS 485/232 Communication Protocol
6.5.5.4. Get Status.
6.5.5.4.1. Command Transmission
This command is to retrieve the READER status.
Reader > LSC
STX
#B
R#
CMND(0016h)
CRC
ETX
# of bytes
6.5.5.4.2. Get Status Command Response
The following string is the general response.
Reader > LSC
STX
#B
R#
MSGT(xx16h)
R_status
CRC
ETX
# of bytes
6.5.5.5. Get Burst Message
6.5.5.5.1. Command Transmission
This command is used to retrieve the alert messages transmitted
asynchronously by seals that are in alert burst mode.
Reader > LSC
STX
#B
R#
CMND(001Ch)
Channel
CRC
ETX
# of bytes
Channel indicates the source channel for the results. The value is
according to the table in paragraph 5.5.2.1.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
153
6
RS 485/232 Communication Protocol
6.5.5.5.2. Get Burst Message Command General Response.
The following string is the general response.
Reader > LSC
STX
#B
R#
MSGT(xx1Ch)
channel
PK
R_statu
P#
DATA
CRC
ETX
Data*
# of
bytes
# of bytes
Where:
MSGT
DATA
PK
P#
Data*
high byte of MSGT is according the scenario in use.
The low byte is 1C h.
If the result is not ready, the value of this field is 05
hex error code see Paragraph 5.4. If the result is
ready the following applies:
Total number of packets.
Packet number sequence number.
This string ccontains the seal records. The field
should first be concentrated from all packets before
analyzing.
Seals Records:
Data*1
Data*2
-------------Data*PK-1 Data*PK
Seal
Seal
Seal
Seal
Seal
Seal record
record
record
record
record
record
#B Data** #B Data** #B Data** #B Data** #B Data** #B Data**
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
154
6
RS 485/232 Communication Protocol
Where:
#B
is the number of bytes for a seal record (including
the #B fiels).
is the data received after executing the RF command
led by TF, TID and Message Type
DATA**
Data**
TF
TID
Message Type
Data Results
# of bytes
If no seal detected:
Data*1
Seal record
#B=0
6.5.5.6. Reset Reader.
6.5.5.6.1. Command Transmission
This command performs a general reset to all readers at one time.
In this command, the LSC does not prompt.
LSC > Reader
STX
#B
R#
CMND(0014h)
CRC
ETX
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
# of bytes
155
6
RS 485/232 Communication Protocol
6.5.5.6.2. Reset Reader Command Response
The following string is the response.
Reader > LSC
STX
#B
R#
MSGT(xx14h)
R_status
CRC
ETX
# of bytes
6.5.5.7. Write Parameters
6.5.5.7.1. Command Transmission
This command enables modification of the parameter's value in
the reader. Not all the parameters are available for modification.
Please see Table 5.3 .
LSC > Reader
STX
#B
PAR1code
R#
value
CMND(0006h)
PAR2 code
Data
CRC
value
ETX
PARm code
# of bytes
value
# of bytes
6.5.5.7.2. Write Parameters Command Response
The following string is the response.
Reader > LSC
STX
#B
R#
MSGT(xx06h)
R_status
CRC
ETX
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
# of bytes
156
6
RS 485/232 Communication Protocol
6.5.5.8. Read Parameters.
6.5.5.8.1. Command Transmission
This command enables the reading of the parameter's value from
the reader.
LSC > Reader
STX
#B
R#
PAR1code
CMND(0007
h)
PAR2 code
Data
CRC
ETX
PARm code
# of bytes
# of bytes
6.5.5.8.2. Read Parameters Command Response
The following string is the response.
Reader > LSC
STX
#B
R#
MSGT(xx07h)
value
R_status
value
Data
value
CRC
ETX
# of bytes
# of bytes
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
157
6
RS 485/232 Communication Protocol
6.5.5.9. BIT
6.5.5.9.1. Command Transmission.
This command generates a set of built-in test procedures.
LSC > Reader
STX
#B
R#
CMND(0009h)
CRC
ETX
# of bytes
6.5.5.9.2. BIT Command Response.
The following string is the response.
Reader > LSC
STX
#B
R#
MSGT(xx09 h)
R_status
CRC
ETX
# of bytes
6.5.5.10. Sleep.
6.5.5.10.1. Command Transmission
This command places the Reader in sleep mode of operation to
save energy. The Wakeup command wakes the Reader from this
mode.
LSC > Reader
STX
#B
R#
CMND(0008h)
CRC
ETX
# of bytes
6.5.5.10.2. Sleep Command Response.
The following string is the response:
Reader > LSC
STX
#B
R#
MSGT(xx08h)
R_status
CRC
ETX
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
# of bytes
158
6
RS 485/232 Communication Protocol
6.5.5.11. Unsynchronized Reader Message.
6.5.5.11.1. Message Transmission
When in unsynchronized mode of operation the Reader may burst
with a message. The following string will be received for each seal.
Reader > LSC
STX
#B
R#
MSGT(800Ah)
Channel
#B
R_status
TF
TID
Data
Command code
CRC
Short status
ETX
# of bytes
ORG_ID
# of bytes
ORG_ID is an option in the response. It depends on the seal's
configuration.
6.5.5.11.2. Message Command Ack.
The following string is the response:
LSC > Reader
STX
#B
R#
CMND(000Ah)
CRC
ETX
# of bytes
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
159
6
RS 485/232 Communication Protocol
6.5.5.12. Get Reader's Baud Rate.
6.5.5.12.1. Command Transmision
This command places the Reader in a sleep mode of operation
to save energy. The Reader will wakeup from this mode by
receiving a Wakeup command.
LSC > Reader
STX
#B
R# (0000)
CMND (00f f h)
R_ID
CRC
ETX
# of bytes
6.5.5.12.2. Get Reader's Baudrate Response.
The following string is the response:
Reader > LSC
STX
#B
R#
MSGT(80ff h)
R_ID
baudrate
CRC
ETX
# of bytes
Baudrate: 2400, 4800, 9600, 19200, 38400
6.5.5.13 Set Reader's Baud Rate.
The baud rate is interpreted as a decimal number translated
into a 32 bit binary number or vise-versa.
6.5.5.13.1. Command Transmission
This command puts the Reader in a sleep mode of operation to
save energy. The Wakeup command wakes the Reader from this
mode. The baudrate is updated after the completion of this
command and receipt of the response.
LSC > Reader
STX
#B
R# (0000)
CMND (00fe h)
R_ID
baudrate
CRC
ETX
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
# of bytes
160
6
RS 485/232 Communication Protocol
6.5.5.13.2. Set Reader's Baud Rate Response.
The following string is the response:
Reader > LSC
STX
#B
R#
MSGT(80feh)
R_ID
baudrate
CRC
ETX
# of bytes
6.5.5.14. Set Reader's Address
6.5.5.14.1. Command Transmission
This command sets the Reader's address for RS-485 communication
purposes.
LSC > Reader
STX
#B
R#(0000)
CMND(0012h)
R_ID
New add
CRC
ETX
# of bytes
* To modify an old address, the above command can be used with
a specific Reader by specifying R# with the old address.
6.5.5.14.2. Set Reader's Address Response.
If the above command is a broadcast, there will be no response.
The following string is the response for a command transmission to
a specific Reader.
Reader > LSC
STX
#B
R#
MSGT(xx12h)
R_status
CRC
ETX
# of bytes
The R# is with the new address.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
161
6
RS 485/232 Communication Protocol
6.5.5.15 Acknowledge OK.
LSC > Reader
This string is a one-way string that acknowledges a positive message
received from the READER.
LSC > Reader
STX
#B
R#
CMND(0092h)
CRC
ETX
# of bytes
6.5.5.16. Acknowledge Failed.
LSC > Reader
This string is a one-way string that acknowledges a message
indicating a problem coming from the READER.
LSC > Reader
STX
#B
R#
CMND (0094h)
CRC
ETX
# of bytes
6.5.5.17. Save Command
6.5.5.17.1.
Command Transmission
This command sends a command to the Reader for later execution
by using the “Execute Saved Command”.
LSC > Reader
STX
#B
R#
CMND(000Fh)
phase
data
CMND*
CRC
ETX
# of bytes
Data*
# of bytes
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
162
6
RS 485/232 Communication Protocol
Where:
Phase
is the duration from the end of the “Execute Saved
Command” and the time required to execute the
saved command. The phase is in units of 1.024 msec.
is the command code of the saved command for
delayed execution.
is the relevant data field for the CMND*
CMND*
Data*
If data=0 this command will clear the saved command.
6.5.5.17.2. Save Command Response.
The following string is the response:
Reader > LSC
STX
#B
R#
MSGT(XX0Fh)
R_status
CRC
ETX
# of bytes
6.5.5.18. Execute Saved Command
6.5.5.18.1. Command Transmission
This command executes the saved command.
This is a broadcast command sent to all readers.
There will be no response from any reader to this command.
LSC > Reader
STX
#B
R#
CMND(00017h)
Reader I D [1]
data
4*k
Reader I D [2]
CRC
ETX
..........
# of bytes
Reader I D [k]
# of bytes
The data field details the readers by their IDs.
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
163
6
RS 485/232 Communication Protocol
6.5.5.18.2. Execute Saved Command Response
There is no response for this command.
6.5.5.19. Read Channel Definitions Command
6.5.5.19.1. Command Transmission
This command allows the reading of the definitions for a device.
LSC > Reader
STX
#B
R#
CMND(0011h)
channel
CRC
ETX
# of bytes
Where:
Channel
is the channel number that the device is connected to.
Channel can be 0 to indicate the MCU, or 1,2 etc for
the other channels.
6.5.5.19.2. Read Channel Definitions Response.
The following string is the response:
Reader > LSC
STX
#B
Where:
File
R#
MSGT(XX11h)
file
82
CRC
ETX
# of bytes
is the data file that defines the device.
File structure is:
Name
Size
[bytes]
Part number
Serial number
Hardware Version
Production date
Production Batch number
Description
Reserved
16
16
10
32
45
The format is ASCII
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
164
6
RS 485/232 Communication Protocol
6.5.5.20. Write Channel Definitions Command
6.5.5.20.1. Command Transmission
This command enables the writing of definitions of a device.
LSC > Reader
STX
#B
R#
CMND(0010h)
data
channel
Where:
Channel
CRC
file
82
ETX
# of bytes
# of bytes
is the channel number that the device is connected to.
Channel can be 0 to indicate the MCU, or 1,2 etc
for the other channels.
is the data file that defines the device.
File
6.5.5.20.2. Write Channel Definition Response
The following string is the response:
Reader > LSC
STX
#B
R#
MSGT(XX10h)
R_status
CRC
ETX
# of bytes
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
165
6
RS 485/232 Communication Protocol
Hi-G-Tek Ltd. Microelectronics & Asset Tracking Technology
166

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.3
Linearized                      : No
Encryption                      : Standard V1.2 (40-bit)
User Access                     : Print, Fill forms, Extract, Assemble, Print high-res
Create Date                     : 2002:01:27 15:19:58
Modify Date                     : 2002:06:16 14:01:33+02:00
Producer                        : Corel PDF Engine Version 9.397
Author                          : roni
Creator                         : CorelDRAW Version 9.397
Title                           : ch6.cdr
Page Count                      : 52
EXIF Metadata provided by EXIF.tools
FCC ID Filing: OB6-IGRS40916

Navigation menu