A collection of libraries to handle the XCMP protocol for Motorola radios
Project description
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'
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 trboxcmp-0.0.6.tar.gz.
File metadata
- Download URL: trboxcmp-0.0.6.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
977c8ff80582921c866705b96008b6480f07551dd25d8bb7084843e91dfd306e
|
|
| MD5 |
ad2ecce26381309dd8ba512f35cb568b
|
|
| BLAKE2b-256 |
7fba6bf46b7472ec34ce58a5d1ad08117a80f0aeeb4f5144ba79c4e7017b302d
|
File details
Details for the file trboxcmp-0.0.6-py3-none-any.whl.
File metadata
- Download URL: trboxcmp-0.0.6-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3fbba4e155b3dbe28e64b11b427b7a5201381f94d23c4cc62c7a0a092588c5a
|
|
| MD5 |
7ff170a3900ce8cfe67b8e31f2743bb4
|
|
| BLAKE2b-256 |
07bb1f7ec68d5c3917756953e591fdb7f632a488c4819f166889ff936992d021
|