arduino-libs-manchester icon indicating copy to clipboard operation
arduino-libs-manchester copied to clipboard

Strange behaviour with Serial.begin

Open jberthe opened this issue 11 years ago • 3 comments

Hi,

First of all, thanks for your great work :)

I have an issue with the library. I'm using an Arduino UNO to receive data. In fact it doesn't work so I want to debug the program.

So I added this code : image

In the Serial Monitor I get this : image

What I seen is it is this statement wich make it crazy :

man.setupReceive(RX_PIN, MAN_1200);

Do you have any idear how can I use the Serial Monitor with your library ?

Regards,

ps: sorry for my poor english

jberthe avatar Jan 01 '14 11:01 jberthe

I'm sorry to say I'm not actively working on any electronics at the moment so I can't help you much.

Perhaps you could move the calls to Serial.begin above the calls to man? I'm not sure whether that would make a difference.

On 1 Jan 2014, at 11:45, jberthe [email protected] wrote:

Hi,

First of all, thanks for your great work :)

I have an issue with the library. I'm using an Arduino UNO to receive data. In fact it doesn't work so I want to debug the program.

So I added this code :

In the Serial Monitor I get this :

What I seen is it is this statement wich make it crazy :

man.setupReceive(RX_PIN, MAN_1200);

Do you have any idear how can I use the Serial Monitor with your library ?

Regards,

ps: sorry for my poor english

— Reply to this email directly or view it on GitHub.

mchr3k avatar Jan 03 '14 14:01 mchr3k

Hi, I too am facing the same issue. It looks like the clock speed is changed after the beginReceive() call. I tried a simple trick of blinking LED in the loop with 500ms delay. The delay seems to get lower and lower as the baud rate gets higher.

I am not sure if something is happening internally wrt to the clock speed depending on the rx/tx transmission/receive speeds.

@jberthe: were you able to get your setup working?

combomatrix avatar Aug 20 '14 09:08 combomatrix

Try in your setup()

Serial.begin(9600);

It's is working fine for me in attiny85

lluiscanals avatar Jan 27 '15 11:01 lluiscanals