Messages to Stdiodemo

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have just connected up the new version of Stdiodemo which allows spreading connections over more than a single port.

It works fine and obeys the u q & l commands when sent from my computer keyboard.
As an example when I send

 l the_message [enter]

I see on the display

 Got the_message_

However I have gone a step further and connected another AVR by cross coupling the rx tx pins.
The intention being to send messages from that rather than a computer.

My question is what exactly do I send?
Something like

 l the_message\n

does not work. All I get on the display is Hello_worlds and bye_byes.

The message is being sent continuously and I see it on the computer screen.

John

If all else fails, read the instructions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

First connect the sending AVR to the PC and verify that it is actually transmitting what you think it is (that is that there is no clocking problem -> FAQ#3)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am monitoring on the PC.
That is what I ment by I see it on the computer screen.

I see

l the_message
l the_message
l the_message

Sent about every 2 seconds on the PC but only Hello_world and bye_bye when I reset the stiodemo.

Both avrs work fine when connected independently to the PC.

The big question in my mind is am I sending the right message?

Since stdiodemo worked fine when connected to the PC what exactly did the PC send?

John

If all else fails, read the instructions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, it should work that way. From uart.c:

        /* behaviour similar to Unix stty ICRNL */
        if (c == '\r')
          c = '\n';
        if (c == '\n')
          {
            *cp = c;
            uart_putchar(c, stream);
            rxp = b;
            break;
          }

i.e., either of or will terminate an input line.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.