|
7 months ago | |
---|---|---|
img | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 7 months ago | |
alert.sh | 8 months ago | |
ft232rl_alert.xml | 8 months ago | |
ft232rl_default.xml | 8 months ago |
Use a USB-Serial Converter like the FT232RL for activating a buzzer. Simple and cheap (~1,75€)
/dev/ttyUSB
deviceTo invert the TXD pin on the FTDI device, programming the EEPROM is needed. With the Windoofs tool "FTDI_Prog" the Template ft232rl_alert.xml
is uplouded. For GNU/Linux is ftx-prog available. The only difference to default is the inverted TXD pin.
Make sure the device is after plug in recognized as ttyUSB with dmesg
.
Edit the alert.sh with your device name, like /dev/ttyUSB0
.
Run bash ./alert.sh
for starting the alarm.
opkg update
opkg install kmod-usb-serial
opkg install kmod-usb-serial-ftdi
Make shure the device is recocntied as ttyUSB after plug in with dmesg
.
Edit the alarm.sh with your device name, like /dev/ttyUSB0
.
Run bash ./alert.sh
for starting the alarm.
nano /etc/init.d/alarm
#!/bin/sh /etc/rc.common
START=99
restart() {
bash /root/alert.sh > /dev/null 2>&1 &
bash /root/alert.sh start > /dev/null 2>&1 &
}
start() {
bash /root/alert.sh > /dev/null 2>&1 &
bash /root/alert.sh start > /dev/null 2>&1 &
}
stop() {
bash /root/alert.sh > /dev/null 2>&1 &
}
chmod +x /etc/init.d/alarm
/etc/init.d/alarm start
/etc/init.d/alarm stop