Custom TCP communication system
Project description
FrakkComm kommunikáció
Disclaimer: If you have to ask what this is, it's not for you. Trust me.
v1.0 specifikáció
TCP alapú kommunikáció
Komponensek:
- Byte 1, Kezdő:
- Blockmarker
- Értéke mindig
0x55
- Byte 2, Hossz:
- Az adatcsomag hossza byteban kifejezve
- Byte 2, Címzett:
- Milyen eszközt címez meg
0xFFmindenkit megcímez (?)
- Byte 3, Feladó:
- Nincs használva itt,
0x00egyelőre jó
- Nincs használva itt,
- Byte 4, Üzenet ID:
- Az üzenet azonosítója
0xF4működik ha ez nem fontos
- Byte 5, Parancs:
- ???
0x56működik, többit nem tudjuk még
- Byte 6-8, Adat:
- adat csomag amit küldeni kell
- Lámpák esetén:
- Byte 1: Lámpa ID
- Byte 2: szín
- 64 fehér esetén
- 128 kék esetén,
- 64+128 mindkettő szín esetén
- Byte 3: Fényerő
- Byte 9, Checksum
Fontos: Minden bytenál ha az érték 0x55, akkor meg kell duplázni.
Package build
A Python kód lefordítása:
Előfeltételek
- Python 3, pip
pip install buildpip install wheelpip install pytest
Lefordítás
python3 -m build
A lefordított package pedig a ./dist mappában van, a *.whl file ami általában kell.
Tesztelés
Pytest-et használva könnyen lehet tesztelni a kódot.
python3 -m pytest tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file frakkcomm-1.0.1.tar.gz.
File metadata
- Download URL: frakkcomm-1.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eafdca153a46c40855041fb1a8c7415c84c58efa01a0de8052db9a06b40bc11a
|
|
| MD5 |
49100101e5d36d480e13aea378346cb1
|
|
| BLAKE2b-256 |
e4d9756420d4ea047905e570a0e33e9af89ae1e29c2d74182f6abf0f4b29e744
|
File details
Details for the file frakkcomm-1.0.1-py3-none-any.whl.
File metadata
- Download URL: frakkcomm-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f3bb23bcd53ebbe6d0ed4ce933def08fbbef48588be661c67922d9030ee79aa
|
|
| MD5 |
1f1b216bad4978c7586b01ca8362ebd5
|
|
| BLAKE2b-256 |
7044e9c2cadadccc052ac49fdd8072bd1025ce9bc7243fff808b34f7d515c881
|