Giter VIP home page Giter VIP logo

mottura_xnova_mod's Introduction

Mottura XNova kernel module

This kernel module is designed for the Mottura XNova lock. The XNova lock enters sleep mode after 3 seconds of inactivity. To prevent this, our module sends a keep-alive signal every 2 seconds, ensuring the lock remains awake. When the lock is in sleep mode, it does not provide status information via its output pins. However, with this module, we can read the lock's status at any time. Additionally, this module provides functionality to open, close, or set the lock to autoclose by sending a specific signal to the lock. It's important to note that running similar programs in user-space could lead to the application being preempted or even killed by the Out-Of-Memory (OOM) killer. Running this as a kernel module ensures more reliable operation.

Available commands:

echo "open" > /dev/mottura_xnova

echo "close" > /dev/mottura_xnova

echo "autoclose" > /dev/mottura_xnova

THis module do for WirenBoard 6.5. It may work on other devices, but not tested. GPIO configured for A1 A2 A3 pins. You can change it in the source code.

How to build and install

Prepare the kernel source code:

apt update
apt install build-essential libncurses5-dev fakeroot lzop bc git bison flex libssl-dev rsync
apt install gcc-arm-linux-gnueabihf

cd ~
git clone https://github.com/wirenboard/linux
cd linux
git submodule update --init --recursive

export KDIR=~/linux
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export KBUILD_OUTPUT=.build-wb6

make prepare

Build the module:

cd ~/mottura_xnova
make

mottura_xnova_mod's People

Contributors

yarreg avatar

Watchers

 avatar

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.