I'm trying to write a script on AppleScript that monitors the serial port and when it receives certain characters from Arduino places a call on Skype, or sends a message.
Communicating with Skype on AppleScript is pretty straightforward but I haven't figured out how to make AppleScript send and receive characters via serial port.
Hello, I am a newbie, and I am trying to interface Arduino with AppleScript.
I am using SerialPortX for the connection.
At this point I can easily connect to the board, and can send and receive from AppleScript.
The problem is that, like in the Arduino Serial Monitor, all data are sent to Arduino as ascii characters.
I was wondering if someone knew how to send raw bytes (or integers?) instead of ascii characters.
In that way the communication will have 256 possible values with only one byte, and it will be really easy to control PWM pins.
If I am asking something stupid, and there is a better way to do this, please give me some informations!
Thank you for the help.