Hello.
First of all this concept was main reason i ended up buying arduino

Im trying to set up router with custom firmware (tomato based) and on that router device is recognised as /dev/ttyACM0
For example
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableTransmit(10);
}
void loop() {
mySwitch.switchOn("11001", "01000");
}
works perfect with my setup - device connected to receiver responds and turns on.
The question is - how can i control that from bash on router.
I tried with:
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableTransmit(10);
}
void loop()
{
}
uploaded to arduino
and echo command to arduino:
echo "mySwitch.switchOn(\"11001\", \"01000\");" > /dev/ttyACM0
but it doesnt seem to work
arduino is blinking and RF transmitter is not

any sugestions for arduino and linux newbie?
Thank You in advance.