Does CmdMessenger Run on Teensy?

Status
Not open for further replies.

chrisgr99

Member
My goal is to send text messages and data back and forth between two Teensies. I'm looking for a library that parses incoming messages and does callbacks when messages are received.

CmdMessenger does this but is normally used for communicating between an Arduino and a host computer over USB. I'm hoping it also works over a UART serial link.

The first question is does CmdMessenger Run on Teensy? This listing of Teensy supported libs says CmdMessenger doesn't run on any version of the Teensy:
https://www.pjrc.com/teensy/td_libs.html

But on the CmdMessenger Github page it says it does run on Teensy:
https://github.com/thijse/Arduino-CmdMessenger

Assuming the listing is not up to and and CmdMessenger runs on Teensy does anyone know if it can be used to communicate between two Teensys over a TTL serial link (UART)?
 
A quick look onto the library’s source code let’s me guess that it should work on two Teensies because it uses nothing exotic but is based on the Stream library. But why don’t you just try it out?
To use it with the h/w UARTs instead of USB, you’d have to initialize the CmdMessenger object with Serial1/2/3 instead of the default Serial.
 
Thanks. I thought it should work but in web searches could find no reference to anyone having used it between two Teensies. It seems very useful.

I'm asking because I don't have the hardware setup to try it yet. It's research into software to use when I do implement a serial link.
 
Status
Not open for further replies.
Back
Top