Galil DMC-1700 Home Security System User Manual


 
DMC-1700/1800 Chapter 4 - Software Tools and Communications • 65
DOS, Linux, and QNX tools
Galil offers unsupported code examples that demonstrate communications to the controller using the following operating
systems.
DOS
DOS based utilities & Programming Libraries for Galil controllers, which includes a terminal, utilities to upload and
download programs, and source code for BASIC and C programs. Download DMCDOS at
http://www.galilmc.com/support/download.html#dos.
Linux
Galil has developed code examples for the Linux operating system. The installation includes sample drivers to establish
communication with Galil PCI and ISA controllers. The current version of the software has been tested under Redhat 6.X
O.S. All source codes for the drivers and other utilities developed for Linux are available to customers upon request.
Linux drivers are available for ISA and PCI cards under Kernel 2.2. Drivers are also available for the PCI card only for
Kernel 2.4.
For more information on downloading and installing the Linux drivers for Galil controllers, download the Linux manual
at:
http://www.galilmc.com/support/manuals/lnxmanual.pdf.
QNX
Galil offers sample drivers for ISA and PCI cards for the QNX 4.24 operating system. We also offer drivers and utilities
for QNX 6.2 for PCI only. Download at
http://www.galilmc.com/support/download.html#linux.
Controller Event Interrupts and User Interrupts
The DMC-1700/1800 provides a hardware interrupt line that will, when enabled, interrupt the PC. This allows the
controller to notify the host application of particular events occurring on the controller. Interrupts free the host from
having to poll for the occurrence of certain events such as motion complete or excess position error.
The DMC-1700/1800 uses only one of the PC’s interrupts; however, it is possible to interrupt on multiple conditions.
For this reason, the controller provides a status byte register that contains a byte designating each condition.
The DMC-1700/1800 provides an interrupt buffer that is 16 deep. This allows for multiple interrupt conditions to be
stored in sequence of occurrence without loss of data.
The DMC-1700/1800 provides two command forms of interrupt functionality, EI and UI. Specific interrupt conditions
can be enabled using the EI command, or explicit user defined interrupts can be sent using the UI command.
Enabling Event Interrupts (EI command)
To enable certain conditions, use the command EIm,n. Where the first field “m” represents a 16-bit
value of conditions described in the table below. For example, to enable interrupts on X and Y motion
complete and position error, set EI515 (i.e. 515=2
0
+2
1
+2
9
). Once the EI command is enabled for a
specific condition, an interrupt will occur for every instance of that condition, except for the items
marked with an asterisk (*), they must be re-enabled after every occurrence.