11.07.2015 Views

BCL Programmers Manual V2.00 (PDF) - Barix

BCL Programmers Manual V2.00 (PDF) - Barix

BCL Programmers Manual V2.00 (PDF) - Barix

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The key-event queue is accessible to the application via the file handle -2 interface using thefollowing calls:LASTLEN ( -2 )Returns the number of key-events in the queue.READ -2, S$, ERemoves the topmost key-event from the queue and returns it in S$. If E is non-zero and thequeue is empty blocks until the next event arrives (wait for a key-press or key-release).Otherwise returns immediately.7.8.3 IR interface (audio devices only)An external infrared remote-control receiver attached to the first serial port can be read viathe special handle -3. This handle is always present, no need to call open or close.The commands sent by the remote-control are decoded on a high level and, the format isautodetected. See the Exstreamer Technical Documentation for more detailed description ofthe format.If a file remote.ini is present in the device's FLASH memory, the received commands areautomatically searched in this file and the appropriate line-number (counting from 1) isreturned as well. The structure of the file is the same as for the Exstreamer (a text file withone command per line, the lines start with the command code; see the Exstreamer TechnicalDocumentation for more details). If the received code is not found in the remote.ini thereturned line number is 0.A repetitive command is signalised with a star ( '*'), the line number is zero in that case.READ -3, S$Returns a formatted string: ,E.g.024,NE: 00FED02F006,NE: 00FE6897If no command has been received or the infrared receiver is not available returns an emptystring (without blocking).7.9 The Wiegand reader (Barionet 100 only)It is possible to access up to two connected Wiegand readers with the RDR filetype:OPEN "RDR:" AS HThe Wiegand interface is read-only. The READ command reads raw bit output of the Wiegandreader and returns the data in the following format:B0 B1 B2 B3 B4 ...b7 b6..b0 b7...b0 b7...b0 b7...b0 b7...b0 ...adr len DataDataDataData...b0...b7b8...b15b16...b23b24...b31The byte 0 contains address adr of the reader in the highest bit (0-first reader, 1-secondreader) and length len in bits of the raw data returned by the reader (the lower 7 bits) .Byte 1 and following contain the raw bit output of the reader in the big-endian format (see theabove figure). Bit 0 of the raw output is in bit 7 of the first data byte and bit 7 of the rawoutput is stored in bit 0 of the first data byte.<strong>Barix</strong> AG | 41/106

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!