Skip to content

New send variant: listenMode - #41

Open
ingoha wants to merge 18 commits into
etrombly:masterfrom
ingoha:bidirectional
Open

New send variant: listenMode#41
ingoha wants to merge 18 commits into
etrombly:masterfrom
ingoha:bidirectional

Conversation

@ingoha

@ingoha ingoha commented Dec 25, 2020

Copy link
Copy Markdown

This new sending method was developed in a study project some time ago; are you interested to merge it?
If so, I can provide you with some background information...

@ingoha

ingoha commented Dec 25, 2020

Copy link
Copy Markdown
Author

Or would it be a better practice for our project to extend the class RFM69?

@etrombly

Copy link
Copy Markdown
Owner

I like adding the timeout to sending, would want it to be configurable though. What is the difference with this mode? I'd want to change the name of init to something like configureListenMode.

@ingoha

ingoha commented Dec 27, 2020

Copy link
Copy Markdown
Author

We are using this mode in a project with battery powered sensor nodes communicating with a gateway on a Raspberry Pi (cf. https://gitlab.com/ingoha/diy-homeautomation).
To save power, the nodes are in a sleep mode and can be woke up by sending a "burst" to their RFM chip which then triggers an interrupt on the µC.
So this is what the new mode does: it wakes up a node and e.g. transmits a command to control an actor.

@ingoha

ingoha commented Dec 27, 2020

Copy link
Copy Markdown
Author
  • What do you mean with configurable?
  • Yes, the name init is not well chosen ;-) If you consider merging, i could do some tidy up of the code...

@etrombly

Copy link
Copy Markdown
Owner

the sleep timeout is hard coded to 1 second.
if slept > 1.0:

I think it could be useful, maybe call it wakeMode, or something along those lines. If you do the code cleanup and add an example I'd be happy to merge it.

@ingoha

ingoha commented Dec 28, 2020

Copy link
Copy Markdown
Author

Could you please review the changes? If the changes are ready to merge, I will remove the commits to other files than RFM69.py and stash the rest into one...

@etrombly

etrombly commented Aug 19, 2021

Copy link
Copy Markdown
Owner

It looks good, sorry for the huge delay on this. I started a new job and ended up forgetting about it.

@ingoha

ingoha commented Aug 20, 2021

Copy link
Copy Markdown
Author

No problem ;-)
Should I stash the commits?

@etrombly

Copy link
Copy Markdown
Owner

Yes, thank you

@ingoha

ingoha commented Aug 27, 2021

Copy link
Copy Markdown
Author

As I have just read; you can simply use the option "squash and merge" when merging the PR...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants