Comments (11)
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.
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.
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.
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.
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:
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.
Hi,
thank you for the quick answer :-)
from nuki_hub.
Did you make any progress on this, or need any help?
from nuki_hub.
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.
ok thanks for the update
from nuki_hub.
Hey, any update on this.
Feel free to join us on discord:
from nuki_hub.
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 will have a look at disfhord
from nuki_hub.
Related Issues (20)
- Lock status not updated if manually operated HOT 4
- Feature request: report intermediate lock states (locking, unlocking, jammed) HOT 1
- Feature request: update Nuki Hub firmware via HA HOT 1
- Feature request: Control permission via MQTT HOT 4
- GPIO legend HOT 5
- Supported ESP32 Version HOT 5
- Feature Request - HTTP/HTTPS REST Interface HOT 3
- Can I downgrade via OTA? HOT 1
- OTA functionality not ready. Please wait a moment and reload. (from 8.22 to 8.23) HOT 5
- Feature Request: Adding a link to current Releases in the UI HOT 1
- Olimex boards generating command timeouts HOT 7
- Emulate door sensor HOT 8
- MQTT battery/level not updated after initial publishing HOT 3
- Unlach Help HOT 4
- MQTT connection issues with SL 3 since v8.24 HOT 12
- Unreliability Issue HOT 6
- Support for simulating the door sensor HOT 3
- Bluetooth connection lost HOT 11
- Installation on Shelly 1 Plus HOT 3
- Drain Nuki Battery HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuki_hub.