plainRFM69 icon indicating copy to clipboard operation
plainRFM69 copied to clipboard

How to debug receiving side?

Open ramanc51 opened this issue 2 years ago • 6 comments

Hi i am using your code, data sending part seems working and able to debug( prints Flags1: 0 Flags2: 0), but on receiving side unable to debug, not receiving anything, MinimalInterruptUnoDIO0 example used with ESP8266-12F controller with RFM69HCW-915MHz, could you provide any idea to resolve data reception issue?

ramanc51 avatar Feb 24 '23 15:02 ramanc51

Hi @ramanc51, 915 MHz would overflow, you're likely running into #12 , I filed #13 to mitigate it, but no one ever reported back with test results on that branch, so I didn't merge it.

Could you try the branch from #13 and check if you get the same results with that branch?

iwanders avatar Feb 24 '23 23:02 iwanders

Ok thanks to your update, today i will try it let you know on later.


From: Ivor Wanders @.> Sent: Saturday, February 25, 2023 4:39 AM To: iwanders/plainRFM69 @.> Cc: Ramachandran @.>; Mention @.> Subject: Re: [iwanders/plainRFM69] How to debug receiving side? (Issue #15)

Hi @ramanc51https://github.com/ramanc51, 915 MHz would overflow, you're likely running into #12https://github.com/iwanders/plainRFM69/issues/12 , I filed #13https://github.com/iwanders/plainRFM69/pull/13 to mitigate it, but no one ever reported back with test results on that branch, so I didn't merge it.

Could you try the branch from #13https://github.com/iwanders/plainRFM69/pull/13 and check if you get the same results with that branch?

— Reply to this email directly, view it on GitHubhttps://github.com/iwanders/plainRFM69/issues/15#issuecomment-1444643372, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADEH7PRE6SWV645BZPP7NELWZE5S7ANCNFSM6AAAAAAVG774B4. You are receiving this because you were mentioned.Message ID: @.***>

ramanc51 avatar Feb 25 '23 03:02 ramanc51

I tried setFrequency(uint64_t freq) it dosn't resolve my issue.

ramanc51 avatar Mar 17 '23 14:03 ramanc51

Ok, then I'd start very simple to debug this.

Read up on the datasheet to make one radio module a dumb listener (no addressing, no crc, fixed length packages (or infinite length)) and have it just print whatever is received to the serial port.

On the other radio emit the preamble, see if you see the preamble on the receiving side. If you don't there's a frequency mismatch / hardware problem. If you do, switch the preamble to a simple and short packet, see if you can receive that on the receiving side without bit errors, then slowly increase the length up to your desired length and see if you can still receive without errors, remember any error would invalidate the CRC and lead to the packet being discarded.

iwanders avatar Mar 17 '23 22:03 iwanders

Hi on plainRFM69.h you defined following

#define RFM69_PLAIN_STATE_RECEIVING 0 #define RFM69_PLAIN_STATE_SENDING 1

Pls confirm whether we need to change it for receiver/sender modules or not required.

On receiving end now i received following only.

Going Receiver! Flags1: 0

Sender sending continuously numeric numbers as given on sampel code.

ramanc51 avatar Mar 24 '23 15:03 ramanc51

Please see my comment above, start simple by testing the radio's without even trying to send payloads. This will take more work than setting a single define.

iwanders avatar Mar 24 '23 16:03 iwanders