Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Is it possible to send Jevois serial monitor message to Arduino?

+1 vote
Hello, I have succeeded in passing serial commands from Jevois to Arduino and vice versa, however, there is one more thing I'd wish to do. I'd like to display the serial monitor output from Jevois's "help" and "listmappings" command to Arduino's serial monitor as well. Is there a way to do this? Would Serial1.readBytesUntil solve the problem in any way?
asked Jul 16 in Programmer Questions by JeVoisNewbie (410 points)

1 Answer

0 votes
Best answer

It is very simple. Just use a modified version of the Arduino example "SerialPassThrough".

The modification is changing the "Serial.write..." to "Serial.print..."

Something like this:

void loop() {
    if (Serial1.available()) {     // If anything comes in Serial1 (pins 0 & 1)
    Serial.print(Serial1.read());   // read it and send it out Serial (USB)

answered Jul 16 by Billbo911 (1,000 points)
selected Jul 17 by JeVoisNewbie
Thank you for answering my question! The code you shared with me resulted in integer outputs. By adding an additional "(char)" converter to your code, it works like a charm!



Also, I think I set my "Serial1.setTimeout()" parameter to be too small, so that might have been an issue as well.
Thank you so much for your help!