mchr3k / arduino-libs-manchester

173 stars 113 forks source link

Strange behaviour with Serial.begin #14

Open jberthe opened 10 years ago

jberthe commented 10 years ago

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

mchr3k commented 10 years ago

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 notifications@github.com 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.

combomatrix commented 10 years ago

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?

lluiscanals commented 9 years ago

Try in your setup()

Serial.begin(9600);

It's is working fine for me in attiny85