Skip to main content

Async Python library for Proteus Ecometer (TEK603) ultrasonic level sensors

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tek603-0.2.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tek603-0.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file tek603-0.2.0.tar.gz.

File metadata

  • Download URL: tek603-0.2.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tek603-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e9d528b6bee93b23e4bc0fe22b9de9f373f93f9979abab86edd6f164fd695df0
MD5 f2f335d5f0160b05bc0dbd9a1844888c
BLAKE2b-256 be573cf8bdb309f2e8293b08023b91b0b8f210909a56544f1b008e38af8bb723

See more details on using hashes here.

File details

Details for the file tek603-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tek603-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tek603-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09c0a10ecf13426ae50867536496ef38f24d66b649007c3dc56cc0ca6ad954f7
MD5 eb4ff11dd3155c730438b277c0761180
BLAKE2b-256 1ec92f6c4e5987093f2522e9e22bc047f12200aa7347ede083cd2681fe468e4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page