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. Announcements
  3. 💬 RFID Lock Sensor

💬 RFID Lock Sensor

Scheduled Pinned Locked Moved Announcements
25 Posts 14 Posters 8.0k Views 13 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.
  • mfalkviddM mfalkvidd

    @miro the node is unable to connect to your gateway. What type of gateway are you using? Could you post the debug log from the gateway?

    samburner3S Offline
    samburner3S Offline
    samburner3
    wrote on last edited by samburner3
    #16

    @miro said in 💬 RFID Lock Sensor:

    @mfalkvidd

    I have followed the guide here (https://www.mysensors.org/build/rfid) to the letter. Yes, it could be me that have problems but this isn´t so hard project. Feels like something is missing?

    In the description it says:

    "To find out the unique ID of your tag just run the example while looking at serial monitor. Hold tag in front of reader and your identifier should pop up."

    This I did, but the monitor don`t show anything, just this

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    

    ... And yes, I have switched the little pin to I2C on my PN532 RFID reader.

    @mfalkvidd said:

    @miro the node is unable to connect to your gateway. What type of gateway are you using? Could you post the debug log from the gateway?

    I had the same question as @miro however my node is communicating and connected to the gateway correctly.
    I only see the mysensors radio debug info on the serial monitor, and no application serial prints eg (Serial.print("Couldn't find PN53x board");) doesn't show up in the serial monitor at all.
    Neither does "Found NFC chip" or anything else in the main code...
    My radio is working and as I said no errors in the radio debug.
    Is the main application even running?
    I cannot get it to scan a card at all.

    However if I comment out the <MySensors.h> library along with its dependencies in the main program, it works and I can scan cards, and get the Uid from them...

    Any clues?
    Thanks.

    1 Reply Last reply
    0
    • ostgardhO Offline
      ostgardhO Offline
      ostgardh
      wrote on last edited by
      #17

      Hi.

      Started using mysensors with RFID readers.
      I have a suggestion by I am bad code programmer.

      Is better to save the RFID tag key in the EPROM approved.
      And If you want to add a key/tag with special tag which add new or remove tag.

      What do you think?

      1 Reply Last reply
      0
      • cadetC Offline
        cadetC Offline
        cadet
        wrote on last edited by
        #18

        Hi can you modify scetch for spi interface??

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DirkB19
          wrote on last edited by
          #19

          PN532.h: No such file or directory
          Is driving me crazy ... I have Downloaded the zip file and extracted the 4 folders(PN532, PN532_SPI, PN532_I2C and PN532_HSU) into Arduino's libraries.
          Same error.
          I've tried adding the library as .zip : it says not a valid library file
          what could be the problem ?

          D 1 Reply Last reply
          0
          • D DirkB19

            PN532.h: No such file or directory
            Is driving me crazy ... I have Downloaded the zip file and extracted the 4 folders(PN532, PN532_SPI, PN532_I2C and PN532_HSU) into Arduino's libraries.
            Same error.
            I've tried adding the library as .zip : it says not a valid library file
            what could be the problem ?

            D Offline
            D Offline
            DirkB19
            wrote on last edited by
            #20

            @DirkB19
            Nevermind, I placed the PN532 related folders into the C:\Program Files (x86)\Arduino\libraries folder and now it works.
            Before, I placed them into the \libraries folder where all my sketches are which does not work for this libary .

            1 Reply Last reply
            0
            • Michel - ItM Michel - It

              Hi, I have a MFRC522 module, and I would like to implement it with 2.0 library. could I use this code?

              Aron SjöbergA Offline
              Aron SjöbergA Offline
              Aron Sjöberg
              wrote on last edited by
              #21

              @Michel---It said in 💬 RFID Lock Sensor:

              Hi, I have a MFRC522 module, and I would like to implement it with 2.0 library. could I use this code?

              I would also really like to know how to use a RFID-RC522 module instead of the PN532 NFC RFID Reader/Writer Module used in the example! The RC522 is included in a lot of different beginner kits.

              1 Reply Last reply
              0
              • AnticimexA Offline
                AnticimexA Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #22

                It would make much sense if this example used signing.

                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                1 Reply Last reply
                0
                • jopebeJ Offline
                  jopebeJ Offline
                  jopebe
                  wrote on last edited by
                  #23

                  Hallo,
                  I like this example of RFID Lock Sensor.
                  But I`m not able to change it for my aim myself (just a user and beginner).
                  Here my imaginations:

                  1. There should be always a default after switching on, after calling seriell monitor or after power cut.
                    This should be "Sensor Locked"
                  2. Every change to "Sensor open" should be for only let`s say 3 seconds or another adjustable time and than fall back to Default = "Sensor Locked" . Time enough e.g. to open the door or s.e.
                    Is there anybody who can give me some hints how to ad this features into the given sketch?
                    Thank You in advance
                    Jopebe
                  T 1 Reply Last reply
                  0
                  • ben999B Offline
                    ben999B Offline
                    ben999
                    wrote on last edited by ben999
                    #24
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • jopebeJ jopebe

                      Hallo,
                      I like this example of RFID Lock Sensor.
                      But I`m not able to change it for my aim myself (just a user and beginner).
                      Here my imaginations:

                      1. There should be always a default after switching on, after calling seriell monitor or after power cut.
                        This should be "Sensor Locked"
                      2. Every change to "Sensor open" should be for only let`s say 3 seconds or another adjustable time and than fall back to Default = "Sensor Locked" . Time enough e.g. to open the door or s.e.
                        Is there anybody who can give me some hints how to ad this features into the given sketch?
                        Thank You in advance
                        Jopebe
                      T Offline
                      T Offline
                      The-Holgi
                      wrote on last edited by
                      #25

                      @jopebe said in 💬 RFID Lock Sensor:

                      1. Every change to "Sensor open" should be for only let`s say 3 seconds or another adjustable time and than fall back to Default = "Sensor Locked" . Time enough e.g. to open the door or s.e.
                        Is there anybody who can give me some hints how to ad this features into the given sketch?
                        Thank You in advance
                        Jopebe

                      Hello,
                      i have the same problem.
                      Does anyone have a solution? The relay should only put on for 3 seconds.
                      Greeting Holger

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


                      8

                      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