enocean | Python library for EnOcean serial protocol

 by   kipe Python Version: 0.60.1 License: MIT

kandi X-RAY | enocean Summary

kandi X-RAY | enocean Summary

enocean is a Python library. enocean has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install enocean' or download it from GitHub, PyPI.

A Python library for reading and controlling EnOcean devices. Started as a part of Forget Me Not design challenge @ element14.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              enocean has a low active ecosystem.
              It has 65 star(s) with 91 fork(s). There are 27 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 21 open issues and 36 have been closed. On average issues are closed in 168 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of enocean is 0.60.1

            kandi-Quality Quality

              enocean has 0 bugs and 17 code smells.

            kandi-Security Security

              enocean has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              enocean code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              enocean is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              enocean releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are available. Examples and code snippets are not available.
              enocean saves you 844 person hours of effort in developing the same functionality from scratch.
              It has 3418 lines of code, 105 functions and 30 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed enocean and discovered the below as its top functions. This is intended to give you an instant insight into enocean implemented functionality, and help decide if they suit your requirements.
            • Start the server
            • Parse incoming messages
            • Create a response packet
            • Send a packet to the network
            • Returns the base ID for the request
            • Start the serial connection
            • Get packet from send queue
            • Build the packet
            • Parse packet
            • Parse the UTETOM packet
            • Parses the message
            • Parse EEP
            • Get values from bitarray
            • Get boolean value
            • Get raw data from source
            • Return the bit data
            • Combine a list of hexadecimal values
            • Convert a hex value to a list of integers
            • Assemble a radio packet
            • Add a packet to the network
            • Set the position
            • Send packet to given host and port
            • Convert an integer to a hex string
            • Create a RADIO packet
            • Create packet
            • Parses a buffer
            Get all kandi verified functions for this library.

            enocean Key Features

            No Key Features are available at this moment for enocean.

            enocean Examples and Code Snippets

            No Code Snippets are available at this moment for enocean.

            Community Discussions

            QUESTION

            How to set up node-red on rasbian to get information from a ble-energy-harvesting button?
            Asked 2020-Dec-21 at 23:10

            at first: I'm not a BLE expert so I try to describe my problem as good as I can and I apologize in advance if I don't use the right terms or definitions.

            • I've bought a BLE-Energy-Harvesting button of type PTM 215B (1).
            • I've installed node-red on Raspberry-Pi 2b (2)
            • Locally on node-red the package node-red-contrib-generic-ble was install with npm (3)

            when node-red is started I can see the elements of generic-ble-package and so I tried to configure the "Generic Ble In"-Item.

            When I scan for devices, I have to push and release the button several times till it is shown in the list - that's no wonder because without these actions the button has no energy. But then it gets complicated. When I click on "Apply", the item tries to get the GATT(ributes) from the button.The problem is - as far as I understood - the button doesn't have any.

            From the CLI I've used bluetoothctl to scan for devices and I've seen that the button is always recognized by the system (on-button-pressed and on-button-released).

            I've also tried with different other node-red packaged but they had even more problems ( e.g. noble (4) could not be installed properly and it looks like abandoned )

            I assume the problem is sitting in front of the screen but this is the second Saturday I'm trying to "install a button" and I really don't know how to proceed.

            I've read (somewhere) that one of the strength of BLE is the possible usage of energy-harvesting -sensors. But does the "general-ble"-package do the job?

            -If yes, how? -If no, which package should I use?

            I'd really like to use a node-red-package because I want to expand an already existing flow.

            I appreciate any help and/or link.

            Thank you in advance.

            Regards,

            Mr P

            Additional info:

            • Raspbian: VERSION="10 (buster)"
            • npm --version: 6.14.8
            • node-red: 1.2.6: Maintenance Release

            Ref.

            ...

            ANSWER

            Answered 2020-Dec-21 at 23:10

            I found the way to do the job:

            I installed the ble-beacon-scanner (1) and that works fine for my purpose.

            As I understood: Beacons use ble-notifications, which don't share attributes and don't need a continuous connectivity.

            The generic library unfortunately doesn't offer this part of the ble-protocol.

            Thank you all.

            Regards,

            Mr P

            (1) https://flows.nodered.org/node/node-red-contrib-blebeacon-scanner

            Source https://stackoverflow.com/questions/65371943

            QUESTION

            "Tag connection lost" error when reading a Mifare Ultralight NFC tag on iOS 13
            Asked 2020-Feb-29 at 09:53

            I'm trying to read a page of a Mifare Ultralight tag (more specifically EnOcean PTM 215B) using NFCMifareTag.sendMifareCommand method after it has been discovered and connected onto. The problem is that all commands I've tried to send cause a "Tag connection lost" error which is quite odd as I've just successfully connected to it.

            The (simplified) code looks like:

            ...

            ANSWER

            Answered 2020-Feb-29 at 09:53

            According to the API (CoreNFC/NFCMiFareTag) the CRC will be calculated and inserted automatically. So in your case you only need to send [0x30, 0x04] to read page 4 to 7, the read command 0x30 will read 4 pages you will get 16 bytes.

            Source https://stackoverflow.com/questions/60418159

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install enocean

            If not installed already, install pip by running. After pip is installed, install the module by running. sudo pip install enocean (or sudo pip install git+https://github.com/kipe/enocean.git if you want the "bleeding edge"). After this, it's just a matter of running enocean_example.py and pressing the learn button on magnetic contact or temperature switch or pressing the rocker switch. You should be displayed with a log of the presses, as well as parsed values (assuming the sensors are the ones provided in the EnOcean Starter Kit). The example script can be stopped by pressing CTRL+C.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install enocean

          • CLONE
          • HTTPS

            https://github.com/kipe/enocean.git

          • CLI

            gh repo clone kipe/enocean

          • sshUrl

            git@github.com:kipe/enocean.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link