Announcement

Collapse
No announcement yet.

Strange behaviour with wakeupon() on PAN4561_SE

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strange behaviour with wakeupon() on PAN4561_SE

    Hi,
    to save Consumption I want to use sleep(0,0). My Device should wake up on multiple PinEvents. 2 Counters and 2 RTC-Alarms.

    This works fine:

    wakeupOn(IRQ_RTCA, True, False)
    wakeupOn(IRQ_RTCB, True, False)
    #wakeupOn(IRQ_COUNTER0, True, False)
    #wakeupOn(IRQ_COUNTER1, True, False)
    setPinPullup(IRQ_RTCA, True)
    setPinPullup(IRQ_RTCB, True)
    setPinPullup(IRQ_COUNTER0, True)
    setPinPullup(IRQ_COUNTER1, True)
    sleep(0,0)

    But when I uncomment the wakeupOn() on line 3 and 4 nothing goes. The Device would sleep until next Ice Age.

    IRQ_RTCA = GPIO_21
    IRQ_RTCB = GPIO_22
    IRQ_COUNTER0 = GPIO_19
    IRQ_COUNTER1 = GPIO_20

    I don't have any Idea.

    Thanks for Answers!

  • #2
    SNAP has a built-in fail safe that checks to make sure you have defined a proper wake-up pin before going to sleep forever. If change to a timed sleep (Ex. sleep(0,10)) then the pinWakeUp() will not matter.
    sigpic
    Proven Solutions for the Internet of Things
    www.synapse-wireless.com

    Comment


    • #3
      Ok, but the Device is fallen asleep and it does not wake up.
      There is no Wakeup with the additional Pins.

      (sorry for my bad English)

      Comment


      • #4
        OK, then there are a few things to check :

        - Are you are fully transitioning the pin from either high-to-low or low-to-high? Do you have a pull-up/down resistor? It appears from the script you intend for a falling transition.

        - Are pins properly mapped to the physical pins you intend? You appear to be using a "PAN4561_SE" as the platform settings. Do you have the PAN4561 on a carrier board from a dev kit or as a raw module (which uses a different I/O scheme).

        Note: Only specific pins can be used as wakeup pins (Ex. GPIO_19 aka I/O 0 aka PTA0 aka Physical Pin 41.
        sigpic
        Proven Solutions for the Internet of Things
        www.synapse-wireless.com

        Comment


        • #5
          Thank you for your answer.
          Yes, I have checked it out. The Device works properly (until it goes to bed).
          If there are any wrong assignments I would have already noticed it.

          IRQ_RTCA = GPIO_21 = PIN 39 = IO 2
          IRQ_RTCB = GPIO_22 = PIN 38 = IO 3
          IRQ_COUNTER0 = GPIO_19 = PIN 41 = IO 0
          IRQ_COUNTER1 = GPIO_20 = PIN 40 = IO 1
          These Pins should support Wakeups.

          This is strange:
          The Wakeups on both Pins connected with the RTC works fine until I add one or both of the additional Pins. Then even the RTC Wakeups don't work.

          Comment


          • #6
            Are you using a raw PAN4561 module or a PAN4561 mounted to a carrier board (usually from an eval kit)?
            sigpic
            Proven Solutions for the Internet of Things
            www.synapse-wireless.com

            Comment


            • #7
              I am using a PAN4561 as a raw module.

              Comment

              X