trboxcmp
This is a library that interfaces with the MotoTRBO XCMP protocol. This allows control of a radio via remote.
!! NOTE !!
This is beta software. Not everything will work and it will be buggy. I am by no means a real developer, I just try stuff until it works.
TODOs
Todos:
- Add brightness control and parsing
- Add channel, display text, etc parsing
- Add keypad button opcodes
Basic Layout
Most of the basic data services can be set up as such:
from trboxcmp import xcmp
keys = [
0x00000000,
0x00000000,
0x00000000,
0x00000000
]
delta = 0x00000000
listener = xcmp.XCMP(keys, delta)
listener.connect()
listener.sendChUp()
The true keys and delta are property of Motorola Solutions and will not be included with this library.
Documentation
listener.close()
Closes the connection to the radio.
listener.setChannel(chan)
Sets the radio to channel number in the current zone.
listener.setZone(zone)
Sets the radio to zone number .
listener.chUp()
Increments the current channel.
listener.chDown()
Decrements the current channel.
listener.enterRSSI()
Quick macro to enter the "hidden" RSSI menu on the radio (left, left, left, right, right, right).
listener.pressButton(button)
Presses on the radio. can be any of those found in ButtonCodes: class ButtonCodes(): STATUS_PRESSED = b'\x01' STATUS_RELEASED = b'\x00' LEFT = b'\x80' RIGHT = b'\x82' UP = b'\x87' DOWN = b'\x88' MENU = b'\x8b' BACK = b'\x81' OK = b'\x55' P1 = b'\xa0' P2 = b'\xa1' P3 = b'\xa2' P4 = b'\xa3'
Release files for trboxcmp 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trboxcmp-0.0.6.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trboxcmp-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / trboxcmp-0.0.6.tar.gz
| Download URL | trboxcmp-0.0.6.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
977c8ff80582921c866705b96008b6480f07551dd25d8bb7084843e91dfd306e
|
|
BLAKE2b-256 checksum How to use checksums |
7fba6bf46b7472ec34ce58a5d1ad08117a80f0aeeb4f5144ba79c4e7017b302d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|
Release files / trboxcmp-0.0.6-py3-none-any.whl
| Download URL | trboxcmp-0.0.6-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3fbba4e155b3dbe28e64b11b427b7a5201381f94d23c4cc62c7a0a092588c5a
|
|
BLAKE2b-256 checksum How to use checksums |
07bb1f7ec68d5c3917756953e591fdb7f632a488c4819f166889ff936992d021
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|