kberry
FT1.2 and cEMI for the Weinzierl KNX BAOS 838 kBerry and similar serial KNX modules, in pure Python. Connects a Raspberry Pi (or any computer with a UART) to the KNX bus without a KNX/IP gateway: send and receive group telegrams in link layer mode, or record everything including acknowledgements in bus monitor mode.
The same protocol as the Dart package knx_io used in
Busclear; both test against the shared vectors in
test-vectors/ft12.json.
Install
pip install 'kberry[serial]'
Without the serial extra the package has no dependencies; bring your own line (anything with
write(bytes), read() -> bytes and close()).
Example
from kberry import CemiLink, SerialLine
with CemiLink(lambda baud: SerialLine("/dev/ttyAMA0", baud)) as link:
print("connected:", link.label) # e.g. "FT1.2 link layer 15.15.255"
# L_Data.req: GroupValueWrite 1/2/3 = on (cEMI, source is set by the link)
link.send(bytes.fromhex("1100bce000000a03010081"))
while True:
for cemi in link.receive(): # L_Data.ind / L_Data.con as raw cEMI
print(cemi.hex())
Bus monitor mode: CemiLink(..., busmonitor=True) delivers L_Busmon.ind frames;
busmon_to_ldata turns data telegrams into L_Data.ind, BusmonCounters counts
acknowledgements, rejections and damaged frames.
For decoding cEMI into addresses and values, use a KNX library such as xknx.
Raspberry Pi setup
/boot/firmware/config.txt:enable_uart=1anddtoverlay=disable-bt(Pi 3/4) so that/dev/ttyAMA0is the PL011 UART on GPIO 14/15.- Turn off the serial console (
raspi-config→ Interface → Serial: no login shell, port on). - The kBerry speaks 19200 baud 8E1 by default;
CemiLinkalso tries 115200.
What we measured on the kBerry
- Bus monitor mode loses frames. On a kBerry with a Pi 4, about every second data frame
is missing in bus monitor mode, at 19200 and at 115200 baud: the sequence number in the
status jumps, and acknowledgements arrive without the data frame before them
(
BusmonCounters.seq_gaps,orphan_acks). The link layer delivers all of them. To record telegrams reliably, use link layer mode; use bus monitor mode only to see acknowledgements. - Lost acknowledgements. If the module misses the host's acknowledgement, it repeats the frame with the same control byte; the session drops the repetition.
- Restarts. After an ETS download or a bus voltage drop the module sends
M_Reset.indand is back in BAOS mode;CemiLinkreports the connection as lost, connect again.
Status
Beta. The protocol runs on a kBerry in Busclear (Dart); this Python version is so far tested against a simulated module and the shared vectors. Reports from real hardware are welcome. Not affiliated with Weinzierl or the KNX Association.
Licence
BSD 3-Clause.
Metadata
Release files for kberry 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kberry-0.1.0.tar.gz | 12.3 kB | With provenance | Details for kberry-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kberry-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kberry-0.1.0-py3-none-any.whl |
Total release size: 24.6 kB
Release files / kberry-0.1.0.tar.gz
| Download URL | kberry-0.1.0.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55e39b7a27b00f32f0f7716c157ecede85cd6798db7b146fc06bd984996b041d
|
|
BLAKE2b-256 checksum How to use checksums |
ccfc548deb3dffd2a77c99bcfa7e5926fe5a6e0763544d45fc452957d3ddd952
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / kberry-0.1.0-py3-none-any.whl
| Download URL | kberry-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d97f6fd09526b0125599488923f2ef42c6b86a7cff6269c9064455722db9d385
|
|
BLAKE2b-256 checksum How to use checksums |
09f43cc14082e5c0b13066b378651841ce7762b29ed37e0dc547c52ed1f34ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for kberry 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kberry-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.