Set of Commands for ARE K1 / RS232
Inhalt 1 INTRODUCTION ............................................................................................................ 5 2 MODES OF OPERATING ............................................................................................... 5 2.1 Change of Operating mode ........................................................................................................................5 2.2 Operating mode 0 - continuous mode ..............................................................
4.5 DIAG ......................................................................................................................................................14 4.6 EC ..........................................................................................................................................................15 4.7 GT ..........................................................................................................................................................15 4.8 INIT ......
6.2 list of control characters..........................................................................................................................24 6.3 List of error messages .............................................................................................................................25 6.4 List of system commands.........................................................................................................................25 6.5 List of parameters and default values ..
1 Introduction The individual command set of a readers or decoders manufactured by AEG ID base on standardized command sets, that are specific to each class of readers/decoders. This standardized command sets are designated as ASB, which means AEG ID Standardized Command Set. The standardized command sets make it possible to use different hardware components (within a class of readers/decoders) without modification of the software application. The command set of the ARE K1 is compatible to the ASB 1.0.
2.2 Operating mode 0 - continuous mode When operating continuously the exciter is switched on permanently. The reading cycles are initiated periodically. After an accomplished reading cycle the reading information is evaluated. After that data (either transponder number or NoRead code) is output to the serial interface. exciter processor reading cycle interface reading cycle ID reading cycle ID ID Figure 2.1: continuous operation 2.
trig_in exciter processor reading cycle reading cycle interface reading cycle NoRead reading process Figure 2.
2.4 Operating mode 2 - reading triggered by the serial interface In operating mode 2, the exciter is always turned off. Triggered by the command GT, the exciter is activated. After successful reading of a transponder number the exciter is turned off automatically. exciter processor reading cycle GT interface ID Figure 2.
If the echo function is activated using the EC command, every signal sent to the reader is immediately sent back (echoed) after receipt. Thus the echo function can be used as life indication. If the reader is controlled by a terminal, the echo function should normally be activated. If an echo function is not intended, e.g. in automation applications where the reader might be connected to an PLC, the echo function should be deactivated. 3.
After entering an invalid parameter value, the system answers with the corresponding error code (see chapter 3.6 ). 3.3.3 Response to a parameter query Parameter settings can be queried by sending the command without adding an parameter value. Example: Command: MD Output: 1 3.4 Parameters Generally a command comes with one parameter value at the most. Command code and paramter value are separated by SP>. 3.4.
Please note: If echo mode is active, a single forces the reader to output (echo plus output). 3.6 Erroneous entering of commands - error codes If a command is not entered correctly, the reader sends one of the following error codes: 3.7 Wrong command: #00 Wrong parameter: #02 Boot message After booting the system (cold and warm start) the software version is output as described for the VER command (see chapter 4.17), if echo is active.
The transponder ID 001F37BD92 will be transmitted on the interface using the characters 30H, 30H, 31H, 46H, 33H, 37H, 42H, 44H, 39H, 32H and . 3.10.1 Output format for the NoRead information An unsuccessful reading cycle is represented by the NoRead character sequence (see CN command in chapter 4.3). Normally the NoRead is coded by the number FFFFFFFFFF, which can never appear as transponder code. Alternativly at the ARE K1 a NoRead information can be output using the error messages #09 .
Input format: BD Parameter Parameter value 0 1 24 3 4.3 Function 4800 baud 9600 baud 19200 baud 38400 baud output (example): 2 note: The settings are effective after a warm start using the RST command. CID With CID=1 only the first of in succession identical transponder numbers is output on the serial interface. The possibly following identical transponder numbers are suppressed, as long as no new valid transponder number is received, processed and output.
• after entering the command line CID 1 This causes that the next transponder code is output definitely. The filter function CID picks up the results of the complete reading cycles, while the parameter NID proceeds from the results of single readings! The filter function CID has effect on the serial interface only. The digital output QR1 is not effected by CID. caution: 4.4 CN The CN parameter defines the type of NoRead output.
4.6 EC The EC parameter changes of the echo function setting. input format: Parameter 0 1 output (example): 4.7 EC parameter Function echo on echo off 0 GT The reading command code is GT. For details to this function see chapter 2. input format: GT output: Dependent of the parameter settings and the actual antenna input signal, three different responses are possible in operating mode 2: • Transponder number, e.g. 001F37BD92 • NoRead, e.g.
EPROM RAM INIT set of parameter ex work (default values) actual set of parameter Figure 4.1: function of INIT 4.9 MD The command MD changes the operating mode. input format: MD parameter Parameter 0 1 2 Function continuous operation externally triggered triggered via serial interface output(example): 0 4.10 NID NID specifies the number of identical transponder numbers, which have to appear for the result ”successful reading” within a reading cycle.
table 4.2: example for a reading cycle with NID=1 4.11 NRD For improvement of the signal to noise ratio, a number of telegrams can be superimposed. The number of superimpositions is determined by the value NRD. input format: Parameter 0 1 2 NRD parameter Function no superimposition - evaluation of one telegram only superimposition of 2 telegrams superimposition of 4 telegrams output (example): 1 4.12 QR1 The command QR1 changes the parameters of the digital port QR1.
4.14 RNR Setting RNR not to 0 activtes the RNR fuction. Then each reader answer is preceded by a reader number and a space character as well (i.e 15 ). input format: RNR parameter Parameter 0 1 ... 9 Function RNR function not active the one-digit reader number and is preceded to each reader answer the two-digit reader number and is preceded to each reader answer 10 ... 99 output (example): 99 after entering RNR 99 NAK#02 after entering RNR 1A 4.
Parameter7 0 1 2 ... 5 ... 255 Function limits the reading process duration to exactly one reading cycle Tmax = 100ms Tmax = 200ms Tmax = 500ms Tmax = 25,5s output (example): 2 , this means 200ms. 4.17 VER The command VER outputs the software version of the reader. The software version is permanently stored in the program memory together with the firmware. input format: VER output: AEG ID - V1.4E 4.18 VS The command VS lists all current parameter settings.
RAM actual set of parameter EEPROM VSAVE set of parameter specific to the application figure 4.2: function of VSAVE function: While storing the parameter values the EEPROM is tested by „write and verify“. On EEPROM-error the message #03 is transmitted.
5 Description of hardware near functions 5.1 Cold start After a cold start the system is initialized using the parameter values out of the EEPROM. The indicating elements (relays / LEDs) are cleared. 5.2 Interface to the master The serial interface permits communication between the reader and a master (e.g. terminal or PC). The basic configuration of the interface is 19200baud and 8N1 (8 bit, no parity and 1 stop bit). With the command BD the reader can be set to a different baud rate.
Output QR1 QN1 Function trigger output - transponder read (QREAD) trigger output - NoRead (QNoREAD) Table 5.1: definition of the digital output channels 5.4.1 Logical level At rest all digital outputs are logical 0. This means the rest contact is closed and the working contact is open. 5.4.2 Logical function The logical function of the digital outputs is determined by the particular parameter setting. If QR1 = 2 resp.
On 1 2 DIP-Switch 3 4 5 6 7 8 If switch 1 is in position ON, the default values (see chapter 3 - firmware) are loaded out of the EPROM at a cold start (when reader is put in operation). DIP-switches 2 ... 8 have no function.
6 Appendix 6.1 Glossary 6.2 Telegram: Sequence of 64 data bits transferred from the transponder to the reader. Superimposition: Number of superimposed telegrams for an improved signal to noise ratio adjusted by the parameter NRD. Reading: Interval of several telegrams, whose number is fixed by NRD. The result of a reading is a transponder number or NoRead.
6.3 List of error messages error number #00 #01 #02 #03 #04 #05 #06 #07 #08 #09 #10 #99 function command code not known, wrong code stack-error (under- / overflow) parameter value not valid error in EEPROM function not supportet reserved reserved reserved reserved kein Code gelesen (NoRead) antenna error system o.k. (DIAG state messages) error-LED no no no no no no no no no no yes no Table 6.2: List of error messages 6.
QN1 digital output QN1 0 .. 2 0 .. 2 QR1 digital output QR1 0 .. 2 0 .. 2 timeout parameter for unsuccessfull reading 0...9 0...255 TOR 2 (controlled by reading process) 2 (controlled by reading process) 5 (500ms) Table 6.