TR 515
TR 515
TR 515
Time Recorder
V1.4-C
Attention! Firmware Management mode (FMM)
The TR515 has two different modes of operation. Normal mode provides regular device
functionality. Firmware Management mode (FMM) is provided for internal firmware checkup
and upgrades (see Section 5).
The Normal mode is entered by powering the TR515 up while not pressing the IN button.
Switching the TR515 on while holding the IN button or both IN and OUT buttons down forces
the unit into the FMM. The FMM mode of operation cannot be exited other than by switching
the TR515 off and back on again.
Contents
communications (twisted pair Cat. III or V). You only need to use one twisted pair of wires
inside the cable.
Note: depending on the cable type, up to 4 twisted pairs may be available, it doesn’t
matter which one you use, just make sure that you are using both wires of the same wire
pair.
To connect the TR515 to the twisted pair bus, cut the RS232 cable supplied with each
TR515 and locate 2 wires inside: Orange and Green. Attach each wire to one of the wires
on the twisted pair bus. Mind the polarity! Orange and Green wires cannot be switched. It is
recommended that you keep the length of each “bus stem” (i.e. the cable that is used to
attach a certain TR515 to the bus) as short as possible, ideally under 10 cm (see the
drawing below).
CON485
<10cm
485+ Green #4
120
One side of the bus must be attached to the CON485: Orange connects to pin #3, Green
connects to pin #4.
Another side of the twisted pair bus must be properly terminated. This is especially
important for long buses. Standard termination resistor value is 120 Ohm.
Note: It is not always necessary to have the termination resistor. It really
depends on the actual wiring and connection circumstances.
Before testing the network, make sure that all Terminals and the CON485 are powered
and that the CON485’s baudrate selector is in the 19200 position (selector must be set prior
to powering the CON485 up).
TR515RX’s interface connector pin assignment can be found in Appendix B.
2
TR515 User’s Manual
WAS-1499 WAS-1498
HUB
3
TR515 User’s Manual
BELL
POWER CONNECTOR
JACK
RDL401A
Wireless Communication
4
TR515 User’s Manual
• While still keeping the OUT button pressed, push the IN button (several times if
necessary) to change the machine number to the desired value
• When the desired machine number is displayed, release the OUT button- the
Terminal will resume normal operation
This method allows you to set the numbers in the 0-10 range only (which would
actually cover most of the actual installation requirements). If you need to set the machine
number to, say, 25, then you will have to follow this procedure:
• Connect the TR515 to the PC using the RS232 cable
• Launch the TR515 Control Center software and select the Terminal #0 (i.e. use
the universal machine number to address the Terminal)
• Use the “Set M#” button to set the new machine number for this Terminal
• Unplug the RS232 cable and put the Terminal back on the RS485 network.
5
TR515 User’s Manual
Note: machine number is displayed briefly at the Terminal power-up (even if you don’t
push the OUT button).
Bell relay
The TR515 features a built-in bell relay. The relay is capable of controlling a low -power
external bell. A daily bell schedule of up to 32 different bell times can be defined.
NO COM NC
Relay connector is located under the metal back plate. Figure above shows connector
position and pin assignment. Both Normally Closed (N.C.) and Normally Opened (N.O.)
contacts are provided.
6
TR515 User’s Manual
The last four digits of the ID-cards ID-code are displayed on the LED when the ID-card is
read. “Err” is displayed and meanwhile beeps three times in case of read error:
Error conditions
The TR515 can detect and notify you of a number of different error conditions. Please refer to
Appendix A for complete list of all possible errors.
Normal operation of the TR515 is suspended upon encountering an error condition other
than “card read error”. New records cannot be added to the database in this situation.
Communications with the TR515 from the PC side is still possible, however. This gives
you an opportunity to access the TR515 online and attempt to correct the problem.
7
TR515 User’s Manual
3. Communications protocol
The TR515 communications protocol is based on the GNET protocol specification.
Communications parameters are 19200-8-N-1.
Communications between the TR515 and the PC takes place in the form of commands
sent by the PC and replies from the TR515. Commands and replies are packets of data.
Each packet begins with an STX (02H) character and ends with CR (0DH) character.
Selected commands and replies include a checksum field as an additional safety measure.
All characters between the STX and the CR characters must be in the 20H...7FH range.
The STX character of a command packets is followed by a one-character command
code. The STX character of a reply packet is followed by a one-character reply code. Both
command and reply packets may contain some relevant data after the command (reply)
character:
STX Cmd/Rpl C1 C2 CR
02H code Data (if any) Checksum* 0DH
* Checksum field is not included into certain commands and replies
All available commands are described later in this Section. Of reply codes, only two are
possible: ‘A’ (completed successfully) and ‘N’ (some error was encountered). Depending on
the command given to the TR515, reply packets with reply code ‘A’ may contain some data
(as shown on the Figure above). Reply packets with the reply code ‘N’ always contain a 2-
digit error code that can be used to analyze the source of a problem.
The checksum is an 8-bit sum of all characters between the STX and CR, represented
as a 2-character HEX string. For an example packet below, the checksum is calculated as
follows. The data part of the packet is “A1XYZ”. The sum of these character codes is:
41H+31H+58H+59H+5AH=17DH. Eight least significant bits contain 7DH. The string
representation of this value is “7D” (i.e. 2 ASCII characters- ‘7’ and ‘D’).
STX A 1 X Y Z 7 D CR
02H 41H 31H 58H 59H 5AH 37H 44H 0DH
Packet portion the checksum is calculated Checksum
on
8
TR515 User’s Manual
Summarized below are all supported commands. Command characters are found in the
“CC” column, their corresponding ASCII codes- in “Hex”. “CS” lists commands that require
the checksum in the command packet (“C”) or reply packet (“R”). “Error code” column lists
errors that may result from each command execution:
Follows is the detailed command description. Command and reply packets are shown
without STX, Checksum and CR characters.
9
TR515 User’s Manual
‘D’ is a special command. It is used to select a particular TR515 terminal. All terminals
power up in a “deselected” state. Each terminal ignores all incoming commands until it
receives the D-command whose machine number is either equal to the machine number of
this terminal, or 00. After that, the terminal switches into “selected” state and responds to all
subsequent commands until new D-command with a different machine number is issued.
Thus, the D-command should always be used to initiate communications between the host
and the designated TR515.
Note: the TR515 never returns any error codes in reply to this command. This holds
true for both “Illegal command” error and “Command failed” error. The former is not
responded to, because when there is some discrepancy in the format of the D-command
issued by the Host (which can only be in the Machine Number field), no particular terminal
can be “sure” that it is being addressed. Therefore, no terminal on the network assumes
responsibility for sending a reply. “Command failed” situation can only arise because of
incorrect machine number setting value in the TR515 memory. In this case, the terminal will
be unable to compare its internal machine number with the one supplied in the D-command.
Hence, the Terminal will not be able to make sure that it is being addressed.
Since 00 is a universal machine number, it works with any terminal. Use it only when
you have a single terminal connected to the host. Universal machine number also comes
handy during initial terminal setup (to assign a unique machine number to the terminal prior to
placing it on a multi-terminal network).
The terminal replies with its actual machine number even if you address it using 00.
The only exception is when the terminal is unable to retrieve its own machine number due
to some internal malfunction. Reply will contain 00 instead of an actual machine number in
this case.
10
TR515 User’s Manual
This command is used to assign a new machine number to the terminal. Machine
numbers provide a way to distinguish between the terminals on a multi-terminal network.
See D-command description for more details.
This command is used to retrieve the terminal’s machine number. Machine numbers
provide a way to distinguish between the terminals on a multi-terminal network. See D-
command description for more details.
This command is used to set the TR515’s internal clock. Date/time supplied must be
valid. Incorrect data (like 31st of February) will be rejected (error 04).
11
TR515 User’s Manual
This command is used to get the TR515’s current date and time.
This command can be used to verify the TR515’s internal firmware version. Although
version string can be any ASCII string, the following format is adopted:
“VX.X cc…….c”, where “VX.X” is a version number (i.e. “V1.0”) and “c c … c” is a
comment string. Comment string is separated from the version number by a single space
character. Version number will never have any spaces in it.
This command is used to initialize the TR515. Initialization takes place on the next
power-up, not immediately. Upon initialization, all setting values are restored to their factory
defaults. TR515’s internal date and time are also checked and, if contained garbage,
initialized to 1999/01/01 and 00:00:00 respectively. The database data is not erased, this
must be done using the E-command.
12
TR515 User’s Manual
This command is used to set one of the TR515 “registers”. Registers are actually
functioning parameters (Settings). Complete description of all available registers can be found
in Section 4.
This command is used to retrieve the data contained in the designated “register”.
Registers are actually functioning parameters (settings). Complete description of all available
registers can be found in Section 4.
This command can be used to retrieve the number of records currently found in the
database. Leading zeroes are not omitted, so reply string length is always the same.
13
TR515 User’s Manual
This command is used to retrieve the database record with a specified number. Record
number must be supplied in Hex format, leading zeroes must be preserved or error 04 will
be returned. Record numbers start from 0000. Specifying record number beyond N-1 (where
N is the number of records in the database returned by the N-command) will cause error 06.
Returned data string contains the record number, ID-code of the ID-card that was used to
create this record, event code (i.e. which button was pressed), and the date and time of
record creation.
The TR515 verifies all database records before sending them out to the PC. This is
done because the FLASH memory may actually contain a garbage data. There is a special
M-command that lets you initialize the database in such a way that it appears to be 100% full
(you can “recover” entire database memory contents then). Naturally, some database
records may turn out to contain invalid data.
Database record validity is verified on a field-by -field basis. Should the field turn out to
be invalid, its contents are substituted for a “safe” default data:
• ID-code. If ID-code turns out to contain illegal characters (i.e. with codes outside
of 20H-7FH range), then these characters are substituted for “_”. If ID-code length
is outside of valid margins then entire ID-code is substituted for the following code:
“0000000000” (ten ‘0’ characters)
• Date. If the date is invalid (i.e. December, 32nd) then default date (1999/01/01) is
used
• Time. If the time is invalid (i.e. 24:00:00) then default time is used
• Event. if Event code exceeds 1, then this field is substituted for “0”.
Note: for JIS-II code, the valid margin of ID-code length is (1<= margin <=69); for Track1
code, the valid margin of ID-code length is (1<= margin <=76); for Track2 code, the valid
margin of ID-code length is (1<= margin <=37).
14
TR515 User’s Manual
Executing this commands initializes the database. This command can be used to delete
all database data and restore the database functionality in case of database malfunction.
E-command doesn’t really delete the data itself- just some internal database
housekeeping is initialized. The data can still be (partially) recovered using an M-command.
This command alters the database in such a way that it appears to be 100% full. The
M-command, therefore, can be used for data recovery purposes. For example, if E-
command is executed accidentally while TR515 had some useful data inside, then M-
command can be used to download entire database memory contents. Naturally, this
recovered data may not be consistent. Some records may contain “garbage” data (more on
this in G-command description), newer records may overlap older ones, etc.
This command is used to force the TR515 into a special Test mode. No reply is issued
by the TR515 upon receiving this command. Details of TR515’s operation in the Test mode
are provided in Section 6. Note, that Test mode destroys database memory contents in
such a way that the data cannot be recovered even with the M-command.
.
15
TR515 User’s Manual
4. Registers
The TR515 features a number of programmable “registers”. Basically, registers are the
TR515’s functioning parameters (Settings). Registers can be written to using the C-command,
and read from using the B-command (see Section 3 for details).
Table below lists all available registers:
This register is used to set the LED display mode. Because TR515 can be used both as
a wall-mount and as a desktop device, the LED data must be displayed in either orientation.
Setting register to 00 (default) adjusts LED picture for wall-mount operation. Setting the
register to 01 rotates the image so that it appears correctly when operating as a desktop
device. Note: the mode parameter must be supplied as a 2-digit number, i.e. “00” or “01”.
Supplying just one digit will generate error 04.
16
TR515 User’s Manual
The TR515 features a relay that can be used for external bell control. Bell schedule can
be programmed using bell table registers (02H-21H, 22H-41H). This register specifies the
number of seconds the bell will be activated for each time it is enabled.
Note: the DD parameter must always be a 2-digit number (i.e. “3A”). Supplying just one
digit will generate error 04.
The TR515 features a relay that can be used for external bell control. Up to 32 different
ring times can be specified for which the bell will be activated. Each bell table entry consists
of two fields: time field (set through these 32 registers) and a corresponding enable/disable
field (set through registers 22H-41H).
17
TR515 User’s Manual
The TR515 features a relay that can be used for external bell control. Up to 32 different
bell times can be specified for which the bell will be activated. Each bell table entry consists
of 2 fields: time field (set through registers 02H-21H) and a corresponding enable/disable field
(set through these registers).
18
TR515 User’s Manual
This setting defines if the TR515 will allow the User to choose the event (IN or OUT), or
event selection will be fixed to IN only or OUT only. Fixing event may be desirable in case
several TR515s are used, with some machines installed at the entrance and serving for
registering IN events, and some machines installed at the exit and serving for OUT
registration only. TR515 also features another event selection mode- scheduled selection,
which allow user to set event schedule table for user to schedule the event selection.
The TR515 features an event schedule table. Up to 32 different scheduled times can be
specified for which the event selection will be activated. Each event table entry consists of
two fields: time field (set through these 32 registers) and a corresponding event selection
(IN/OUT) field (set through registers 64H-83H).
Note: Arranging time schedule ascending is required.
The TR515 features an event selection table. Up to 32 different scheduled times can be
specified for which the event selection will be activated. Each event table entry consists of
2 fields: time field (set through registers 44H-63H) and a corresponding event selection
(IN/OUT) field (set through these registers).
Note: If you want the event table activation immediately issue register number 42H
(event selection mode: 03H) is required after set done the event table.
19
TR515 User’s Manual
20
TR515 User’s Manual
button pressed. The unit will generate a long beep and display “FLLD” (FLASH
Load):
• When receiving the file, the TR515 will blink its IN LED (the LED is on while the
TR515 is receiving or expecting to receive a block of data from the PC; the LED
is off while the TR515 is programming the data received into its internal FLASH
memory)
• Once the downloading is finished, the TR515 will execute one long beep and
display “DONE”:
• You may start using the newly downloaded firmware after switching the unit off
and back on again.
A number of errors may occur during the download. Errors are displayed in the ”ERRx”
format, where x is the error number, for example:
In addition, the TR515 generates a beep pattern comprised of a long beep followed by
one or several short beeps. The number of beeps corresponds to the error number.
All possible download-related error codes are listed in the table below:
Err1 Communications error (invalid data received from the PC). The most
probable cause of this error is incorrect communications parameters you’ve
set in the HyperTerminal
Err2 The download file is too big (exceeds 64K). All TR515 firmware files
must be exactly 64K in size. Make sure you are trying to downloading a
correct one
Err3 FLASH memory failure. This normally indicates a serious internal
malfunction
The LED display is turned off after displaying the message for some time.
21
TR515 User’s Manual
Finally, there is a timeout error that occurs when you start the download but PC doesn’t
send any data (or the TR515 cannot receive the data sent by the PC). This happens when
you either set communications parameters of the HyperTerminal incorrectly or if you
switch the TR515 on (with the IN button pressed) before starting the XMODEM on the PC
side (it should always be the other way around: start XMODEM first, then switch the TR515
on).
The timeout error is indicated by a long beep and four dashes displayed by the LED:
6. Test mode
The TR515 provides a hardware Test mode that can be initiated by issuing a Z-
command (see Section 3).
Warning! Hardware test destroys the database contents (not just deletes it
logically), so the data cannot be recovered even using the M-command! The test
mode also sets a so -called Reset flag: the TR515 will be completely reinitialized on
the next power -up after the test.
Once initiated, the Test mode cannot be exited other than by switching the TR515 off.
The Test mode is comprised of two phases. Phase 1 performs automated SRAM, RTC
(real-time clock) and FLASH memory tests. Phase 2 consists of manual button and reader
tests.
Phase 1 begins immediately upon entering the Test mode. The LED displays “TEST” at
this time:
22
TR515 User’s Manual
A number of errors can occur during this portion of the test: All errors are displayed in
the “ERRx” format, where x is the error number, for example:
Upon successful completion of the automated tests, the TR515 will beep and display
“b1-5” (OUT LED will be switched on):
This means that the manual test phase has commenced. This phase consists of three
steps: OUT button test, IN button test, and reader test. Each step must be repeated five
times.
Press the OUT button and notice that “b1-5” changes to “b1-4”, “b1-3”, etc.
When you press the OUT button for the fifth time, the display will change to “b2-5” and
the IN LED will be switched on. Press the IN button five times to finish this test step.
The display reads “rd-5” at the beginning of the reader test. Read any ID-card five times
to pass this portion of the test.
When all manual tests are finished, the TR515 will generate a long beep and display
“PASS”:
This indicates that the test sequence has been completed successfully. You can still
continue testing the buttons and the reader at this point. The TR515 will behave as if in the
Normal Mode of operation, but no records will be added to the database.
23
TR515 User’s Manual
This Section lists all possible error messages that may be generated during the TR515’s
normal operation. The table below does not apply to the Test and FMM modes of the TR515
(see Sections 5 and 6 respectively for complete details on errors generated in these modes).
Ethernet Wireless/RS-232/RS-485
#1 TX+
#5 RS485, (+)
#6 RX- Ground
#7 RS485, (-)
#8
24
TR515 User’s Manual
Appendix C. Cable
PIN1
PIN8
WAS-1436 : LENGH - 2000 mm , WIRE - 8P8C / AWG #28
WAS-1436
DB 9P FEMALE PIN COLOR RJ-11 8P8C PIN
7 GRAY 1
2 ORANGE 2
8 BLACK 3
3 RED 4
NC * GREEN 5
5 YELLOW 6
NC * BLUE 7
NC * BROWN 8
* NC - No Connect
PIN8
PIN7
PIN1 PIN5
WAS-1467
RJ-11 8P8C PIN COLOR WIRE
1 GRAY CUT*
2 ORANGE CUT*
3 BLACK CUT*
4 RED CUT*
5 GREEN 5
6 YELLOW CUT*
7 BLUE 7
8 BROWN CUT*
* CUT - Cut wire
25
TR515 User’s Manual
Side A Side B
WAS-XXXX REV.X
PIN1 PIN1
CABLE P/N :
PIN8 PIN8
WAS-1498
Side A COLOR Side B
*1 WHITE 3
*2 ORANGE 6
*3 WHITE 1
4 BLUE 4
5 WHITE 5
*6 GREEN 2
7 WHITE 7
8 BROWN 8
* (1,2) and (3,6) must share the same twisted pair
Side A Side B
WAS-XXXX REV.X
PIN1 PIN1
CABLE P/N :
PIN8 PIN8
WAS-1499
Side A COLOR Side B
*1 WHITE 1
*2 ORANGE 2
*3 WHITE 3
4 BLUE 4
5 WHITE 5
*6 GREEN 6
7 WHITE 7
8 BROWN 8
* (1,2) and (3,6) must share the same twisted pair
26
TR515 User’s Manual
Appendix D. Specifications
27
TR515 User’s Manual
Appendix F. Installation
Please install DISK5151 Software before using TR515 series. DISK5151 includes [DS
Manager ] and [TR515 Application Program ]. Setting procedure is as follows.
2. Click [Change IP] to change the IP address to be used by TR515, and then click [OK].
P.S. The IP address must not be the existing one.
28
TR515 User’s Manual
29
TR515 User’s Manual
5. Enable [Allow [on-the-fly] serial port parameter changes]. This helps TR515E to remote
control the serial parameters.
6. Click [OK] to finish TCP/IP configuration.
30
TR515 User’s Manual
8. Open the Application Program of TR515. Input the IP address of the on-line TR515 and
select Com Port as [DS100V2]. Then double click [000-default] to complete the connection
with TR515 terminal.
31
TR515 User’s Manual
1. Open the Application Program of TR515. Select the [Com Port ]of the on-line TR515.
Then double click[000-default]to complete the connection with TR515 terminal.
P.S. Please make sure that the settings of RDL401A -00 are 433.92 MHz, 19200 bps.
32
TR515 User’s Manual
d. To add a new ID , pls follow the installation procedure 1~8 above to set a
New Device. Move the cursor to[000-default]to set the IP address of the New
Device. Cursor must be at [000-default]position before setting the IP
Address, otherwise the other machine’s IP address will be changed .
33
TR515 User’s Manual
34
TR515 User’s Manual
35