I wrote a little programm in python, that sends a little command like "P081" over the serial port to an Arduino UNO board.
The Arduino board reacts and works perfectly fine as long as the "Serial Monitor" is opend in the Arduino 1.0.1 application.
But if the Serial Monitor is closed .. the Arduino does nothing.
I start the programm with:
Code: Select all
sudo python ~/python/SendOverSerial.py P081
Code: Select all
import serial
import sys
ser = serial.Serial('/dev/ttyACM0','9600')
commands = sys.argv[1]
ser.write(commands)
Jeff