tek603
Async Python library for Proteus Ecometer ultrasonic liquid level sensors (TEK603 protocol) over USB serial or from an IP-socket (socat).
Measures distance to liquid via ultrasound and reports level, temperature, and tank capacity.
Installation
pip install tek603
Usage
import asyncio
import serial_asyncio_fast
from tek603 import TEK603
async def main():
transport, protocol = await serial_asyncio_fast.create_serial_connection(
asyncio.get_event_loop(),
TEK603,
"/dev/ttyUSB0", # or "socket://192.168.2.97:2001"
baudrate=115200
)
def on_data():
print("Level:", protocol.read_sensor(2), "cm")
print("Temp:", protocol.read_sensor(1), "°C")
protocol.register_callback(on_data, dp_nbr=2)
await asyncio.sleep(60)
asyncio.run(main())
Sensors
| ID | Name | Unit |
|---|---|---|
| 1 | Temperature | °C |
| 2 | Liquid level | cm |
| 3 | Available capacity | l |
| 4 | Total capacity | l |
Hardware
- Proteus Ecometer USB (CP2102 / Silicon Labs USB-to-serial adapter)
- Protocol fully reverse-engineered; reference: sarnau.info
License
MIT
Metadata
Release files for tek603 0.2.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 |
|---|---|---|---|---|
| tek603-0.2.0.tar.gz | 5.1 kB | Without provenance | Details for tek603-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tek603-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for tek603-0.2.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / tek603-0.2.0.tar.gz
| Download URL | tek603-0.2.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9d528b6bee93b23e4bc0fe22b9de9f373f93f9979abab86edd6f164fd695df0
|
|
BLAKE2b-256 checksum How to use checksums |
be573cf8bdb309f2e8293b08023b91b0b8f210909a56544f1b008e38af8bb723
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / tek603-0.2.0-py3-none-any.whl
| Download URL | tek603-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09c0a10ecf13426ae50867536496ef38f24d66b649007c3dc56cc0ca6ad954f7
|
|
BLAKE2b-256 checksum How to use checksums |
1ec92f6c4e5987093f2522e9e22bc047f12200aa7347ede083cd2681fe468e4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for tek603 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.