Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. MyGateway's use of PinChangeInt prevents Nodes from using any Pin change Interrupts

MyGateway's use of PinChangeInt prevents Nodes from using any Pin change Interrupts

Scheduled Pinned Locked Moved Development
6 Posts 4 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GaryStofer
    wrote on last edited by
    #1

    Because the file MyGateway.cpp includes utilities/PinChange.h and because MyGateway is not in it's own library a MySensor node can not make use of any Pin change interrupts.

    The PinChange.h file defines the interrupt vector service routines inside the MyGateway.cpp compile unit and since all of MyGateway.obj is included in every end node you end up with a link error due to multiple defined symbols.

    I suggest to either move MyGateway.cpp and it's associated example files into it's own library so that the conflict can be eliminated -- Or don't use the Pinchange but instead use the regular interrupts since the default Inclusion pin is defined as "3" which is on INT1 and doesn't use a PC_int.

    Gary

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      Check out the development branch on github.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jan Gatzke
        wrote on last edited by
        #3

        Will there be another release before 2.0?

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          Yes, preparing for the 1.5-beta release. So please do help out to test the development-branch.

          2.0 will not be over-the-air/serial protocol backward compatible so the both versions will live in parallel for a long time.

          (no, cant give any time estimates)

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kolaf
            Hero Member
            wrote on last edited by
            #5

            A bit off topic, but what is version 2.0, and should I be worried?

            1 Reply Last reply
            0
            • hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #6

              No, hope not ;)

              We had a lengthy discussion about it here:
              http://forum.mysensors.org/topic/304/2-0-discussion-units-sensor-types-and-protocol

              But then other stuff like multi radio support and signing got "in the way". This will be included in 1.5 as you're probably aware of.

              Hopefully I will have more time for 2.0 soon again where focus is to clean up a little bit of the over-the-air protocol problems we seen and bring in new ideas that could help auto-generating sketches (if I can dream a bit).

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              10

              Online

              11.7k

              Users

              11.2k

              Topics

              113.0k

              Posts


              Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular