USB Relay is a small hardware device to turn other devices on and off, using your computer. It is connected to your computer via usb.
The firmware is based on the avr-usb firmware from http://www.obdev.at/products/avrusb. The avr-usb firmware implements usb completely in software. The device presents itself as a classless device. The device is controlled by vendor type commands. The protocol supports up to 256 relays. But the current implementation supports only one. There are two commandos. The device 2 host command 0 returns the number of relays on this device as one byte. In this implementation this is always 1. The host 2 device command 1 sets the value of one relay. The upper byte of the value in the command is the relay to set, the lower byte is the desired state of the relay. This implementation knows only the relay number 0.
Sorry, comments are closed!