Closed eroniki closed 7 years ago
I also realize that I usually obtain 0 with getFrequency()
as well.
The library is tested on Moteinos and the provided examples are tested on various applications for this platform, without the need to write anything else to the registers (except in expert mode where you know what exactly you are doing). One issue is you may have faulty modules. Please consult the examples once you are certain the modules are good and wired correctly to a Moteino or supported AVR.
Hello,
I have been struggling with my RFM69HCW modules for a while. Even though the transmitting side seems to be working, I cannot receive anything at the other end of the transmission. I started investigating the issue by reading the registers. This is how I realized something interesting.
In details, as far as I understand the register 0x30 of the module is used for network id which set during the initialization process. In theory, when the register is read after initialization I should be reading the value set during initialization. However, when I read the value with the function
readReg(0x30)
I receive 0 no matter what value was assigned during the initialization.I would be glad if you let me know if it is problem with my modules or I am reading the wrong register.
I am providing a hunk of the code running the nodes below.
Thanks in advance.
Bests, M