Code Monkey home page Code Monkey logo

Comments (6)

beegee-tokyo avatar beegee-tokyo commented on May 19, 2024

Extension after wondering why it is always 5 seconds to return from sleep().
From the datasheet

9.3 Sleep Mode
In this mode, most of the radio internal blocks are powered down or in low power mode and optionally the RC64k clock
and the timer are running. The chip may enter this mode from STDBY_RC and can leave the SLEEP mode if one of the
following events occurs:
• NSS pin goes low in any case
• RTC timer generates an End-Of-Count (corresponding to Listen mode)
When the radio is in Sleep mode, the BUSY pin is held high.

Which means when you send the sleep command, BUSY will go high and held high until the chip wakes up again. So the SPIwriteCommand will always go to timeout with the current implementation.
I want to move this from feature request to bug-fix. Wait for busy should be always false for the sleep() command.

from radiolib.

jgromes avatar jgromes commented on May 19, 2024

You're right, obviously it makes no sesnse to wait for BUSY to drop low in sleep mode. That's probably why I added the waitForBusy parameter - and then forgot to actually use it...

from radiolib.

jgromes avatar jgromes commented on May 19, 2024

Should be fixed in a04a376, release later today or tomorrow.

from radiolib.

beegee-tokyo avatar beegee-tokyo commented on May 19, 2024

Thanks!

Let's see what else I stumple upon 😉

from radiolib.

jgromes avatar jgromes commented on May 19, 2024

More bugs, probably - I was in bit of a hurry when writing the SX126x driver ;)

from radiolib.

mmrein avatar mmrein commented on May 19, 2024

@jgromes
Before you make a release, I would have an enhancement to Sx126x driver - possibility to set a sync word length in bits. I just have to write down the issue and sum up possible solutions. Probably later on today.

from radiolib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.