Project

General

Profile

rf12_control: setting RF baudrate

Added by jalmasi almost 5 years ago

Hi,

I attempted to set baudrate to 9600, as suggested on forum, like this:
rf12_initialize(…);
rf12_control(0xC623);

But sometimes later, when actually attempting to send something, JeeLink hangs.

Then I modified rf12_initialize(), changed
rf12_xfer(0xC606); // approx 49.2 Kbps, i.e. 10000/29/(1+6) Kbps
to
rf12_xfer(0xC623); // 9600

and it seems to work fine.
Didn’t try to receive anything just yet, but at least it does not hang.

What’s the catch?


Replies (1)

RE: rf12_control: setting RF baudrate - Added by jalmasi over 4 years ago

The catch is - Arduino IDE!
Tomorrow it fixed itself:)
Took me a while to recreate the issue, accidentally.
But when such nonsense happens, restarting IDE then reprogramming helps.

    (1-1/1)