I'm looking to create a simulator of a serial device, and I was wondering if anyone knew of any libraries for arduino that are like expect, or even better if anyone has gotten expect to run on the arduino.
The goal is basically to look for start characters [1...n] and end characters [1...n] and then process the message once a full one is received. Additionally, is it safe to hook up the serial port pins on the mega directly to a device (as long as the device is sending out 5v signals)?
Thanks! Regards, Chris