Hello,
Not sure if this is the best forum to ask this, but here it goes:
I want to connect an UART device to my openwrt router. Its basically an arduino that sends messages via its USB UART.
This arduino has some presence sensors and is sleeping all the time. Whenever some presence is detected, it generates an interrupt and sends a message to USB UART. This is not the native router's UART, its a /dev/ttyUSBxx that appears when connecting the arduino to the openwrt.
With minicom, I'm able to see the messages coming to the router, but what I need is to have somekind of script listening to the UART, that wakes up when a new message arrives, and then makes some action, like sending an e-mail or something.
I don't even know what would be the correct terms to search for.
Anyone could point me into the right direction?
Thanks,
Jabss