Binary: [1 0 1 1 1 1 1 1] [0 0 0 1 0 0 0 0] [0 0 0 0 0 0 in out]
This command sets the handshaking mode for the parallel port.
The upper bits of the 3rd byte, shown as 0 above, can actually be anything. Their value makes no difference.
The "in" bit determines the input handshaking mode. 1 means enabled; 0 means disabled.
The "out" bit determines the output handshaking mode. 1 means enabled; 0 means disabled.
Use a Get Handshaking Mode command to query the current handshaking mode.
When input handshaking is enabled, the DISTB/DIO7 pin on the parallel port is DISTB: a handshaking pin, and the port has one fewer data pins. A rising edge on the DISTB input causes the Slink-e to receive a port message. I.e. it samples the parallel port data lines and generates reports indicating that it received a port message. The port message data consists of a single byte indicating the sampled values of the pins. See Port Messages. When input handshaking is disabled, the DISTB/DIO7 pin is DIO7: an extra data pin. With input handshaking disabled, the Slink-e receives port message only when you send a Sample Parallel Port command.
I don't know anything more about the timing of the handshaking -- rise time, setup time, etc.
The factory default is input handshaking disabled.
When output handshaking is enabled, the DOSTB/DIO6 pin on the parallel port is DOSTB: a handshaking pin, and the port has one fewer data pins. When the Slink-e sends a port message on the parallel port, it accompanies each data byte with a positive pulse on the DOSTB pin lasting one IR sampling period. When output handshaking is disabled, the DOSTB/DIO6 pin is DIO6: an extra data pin.
I don't know anything more about the timing of the handshaking -- rise time, setup time, etc.
The factory default is output handshaking disabled.
The Slink-e normally generates a Handshaking Mode Is Control Report to confirm that it executed your command.