Giter Club home page Giter Club logo

Comments (11)

technyon avatar technyon commented on May 24, 2024

Hi,

I don't really have experience with the wiegand protocol, but there are some libraries available for the Arduino - they might need some tweaking to get them working on the ESP. Plus I guess you'd need a level shifter as wiegand runs on 5V.

from nuki_hub.

uvs1313de avatar uvs1313de commented on May 24, 2024

Hi, thank you for the quick reply. Right. I created the sketch (first very simple version) for wiegand on ESP32 using some of the existing libraries and as you wrote "tweaking" to get them work. I used Pin 4 and 5 for Data0 and Data1 of the wiegand interface and level shifter to convert 5V to 3.3V. At the first version i just hardcoded the keypad and Rfid number in the sketch. Just for testing. Pin 16 is now connected as Output to another ESP32 running with your code for Nuki Hub and there to the Pin for "unlatch". This is works fine. Now i am trying to combining it with your code, if its ok for you, to use only one ESP32 and use the web interface to maintain even the keypad numbers (create new or delete existing).

from nuki_hub.

technyon avatar technyon commented on May 24, 2024

Hi,

go ahead and add it. For now I'd hardcode the GPIOs, but I see the need to make the GPIOs configurable sooner or later. There's already a request to make it compatible with a certain board which uses GPIO 26 which kicks the firmware into ethernet mode, thus no Wifi connection is possible. I'll see to add something to the web interface, but we can do that in a later step.

P.S.: It should be possible to enable and disable this in the web interface for security reasons, same as GPIO. Otherwise if the ESP is for some reason located outside someone could wire it to open the door without authorization.

from nuki_hub.

uvs1313de avatar uvs1313de commented on May 24, 2024

Hi,
you are right. Will add this to disable this in web interface on my list. At the moment I am struggling a bit with cmake and the arduino tool chain to use your source code. Normally I use Arduino IDE and platformio. In parallel I go through your code to understand where to put the code for wiegand in and how to design the HTML. My first idea was to place the wiegand code in loop in main.cpp as a first test. To build the bin files I then need cmake. So still a lot of things to do 😊

from nuki_hub.

technyon avatar technyon commented on May 24, 2024

For a howto on the toolchain check my other project:

https://github.com/technyon/coffeetimer

Also, you have to copy the partitions.csv into the cmake directory:

partitions.csv

This project uses FreeRTOS, so you can't use the main loop. Instead create a new task (see setupTasks() in main.cpp). Make sure to put a delay into the tasks loop, otherwise you'll trigger the watchdog and get a reboot.

Setting up the web server is quite straightforward, check the option to enable or disable GPIO. It's two places where you have to add code, one to display the option, the other one to check wether it has changed or not.

from nuki_hub.

uvs1313de avatar uvs1313de commented on May 24, 2024

Hi,
thank you for the quick answer :-)

from nuki_hub.

technyon avatar technyon commented on May 24, 2024

Did you make any progress on this, or need any help?

from nuki_hub.

uvs1313de avatar uvs1313de commented on May 24, 2024

Well, I started to rewrite my code for rtos but have still some interrupt and timing problems.
In parallel I started to create web interface to maintain the pin codes.
At the moment I am using a second Esp32 for wiegand and connected it on pin 27 of another ESP with your code. I think it takes a bit more time to get the wiegand code for rtos working.

from nuki_hub.

technyon avatar technyon commented on May 24, 2024

ok thanks for the update

from nuki_hub.

technyon avatar technyon commented on May 24, 2024

Hey, any update on this.

Feel free to join us on discord:

https://discord.gg/feB9FnMY

from nuki_hub.

uvs1313de avatar uvs1313de commented on May 24, 2024

Hi, unfortunately not because of less time. I was working on epaper display as information panel.
But Esp32 hub and wiegand is still on my todo list 😊 I rewrote my wiegand code a bit and at the moment use a nuki fob which needs only 5 seconds to open the door. That was at the moment the fastest way. I am still struggling a bit with rtos and the way of programming. But everything starts with a first step 😊

I will have a look at disfhord

from nuki_hub.

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.