enocean | Python library for EnOcean serial protocol
kandi X-RAY | enocean Summary
kandi X-RAY | enocean Summary
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
Top functions reviewed by kandi - BETA
- 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
enocean Key Features
enocean Examples and Code Snippets
Community Discussions
Trending Discussions on enocean
QUESTION
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:10I 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
QUESTION
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:53According 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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install enocean
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page