Sending commands over serial without IDE?

Posted on
  • Hi,
    I would like to send commands over to my espruino via serial.
    I think this is the way:

    echo 'digitalWrite(LED1, 1) < /dev/tty.usbmodem1421

    However, it doesn't do anything. My terminal shows me no feedback whatsoever, even if I press enter or ctrl+c.
    Am I doing something wrong?
    I have to do it over serial; I can't have my board connected with a prompt always on because I have this home automation project for my dorm and I would like to send serial commands wirelessly with bluetooth, and the espruino's going to be stuck somewhere on the wall.


  • Something like that should work, but you do have a missing end quote in that code and the wrong arrow...

    I just tried:

    echo "LED1.reset()" > /dev/ttyACM0 

    and that works great on Linux (and should do on mac if you change the /dev/tty... path.

    This might help you?

  • And one more thing - there is a command-line app to do some other simple things for you too:

    But if all you want to do is send commands, the echo is probably best :)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Sending commands over serial without IDE?

Posted by Avatar for user73202 @user73202