Skip to main content

A small library to communicate with ICOM devices using CI-V protocol

Project description

IU2FRL ICOM CI-V Library

Python library for communicating with iCOM radios using CI-V.

Compatible devices

  • IC-7300 (fw: 1.42)

Usage

1. Installing dependencies

  • Install the package using pip install iu2frl-civ

2. Importing the module

  • Import the module using from iu2frl_civ import iu2frl_civ

3. Creating the device object

  • Initialize the target device using device = iu2frl_civ.Device("0x94", port="/dev/tty", debug=True)

Where:

  • 0x94 is the transceiver address

Then, additional arguments can be passed:

  • port = "/dev/ttyUSB0": communication port of the transceiver
  • baudrate: int = 19200: baudrate of the device
  • debug = False: useful to troubleshoot communication issues
  • controller_address = "0xE0": address of the controller (this library)
  • timeout = 1: serial port communication timeout in seconds
  • attempts = 3: how many attempts to perform in case of timeout or errors

4. Use the radio object

Once the device object is created, any supported method can be used, for example:

  • Power on the transceiver: device.power_on()
  • Get the current frequency: device.read_operating_frequency()

Some test code

Some sample commands are available in the tests/main.py file

Original project

This project was forked and then improved from: siyka-au/pycom

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

iu2frl_civ-0.0.11.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

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

iu2frl_civ-0.0.11-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file iu2frl_civ-0.0.11.tar.gz.

File metadata

  • Download URL: iu2frl_civ-0.0.11.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for iu2frl_civ-0.0.11.tar.gz
Algorithm Hash digest
SHA256 aa9b6d4139c6251fa2e1f092b712ad098b968a369a46390f3024288e4fa0b27a
MD5 86ffbf245d35b548124358d809095d1d
BLAKE2b-256 09a4fc11f140edfc8ebae79c30e781ace175d2e7846146b7e5c5ad1ab0338159

See more details on using hashes here.

Provenance

The following attestation bundles were made for iu2frl_civ-0.0.11.tar.gz:

Publisher: publish.yaml on iu2frl/iu2frl-civ

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iu2frl_civ-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: iu2frl_civ-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for iu2frl_civ-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 258c665f3662f436680b5ee697f534b4ef3e2f73dea555d7ffa9d8b75f1c7a77
MD5 2814ca3a1c6aebacdea5c17947bfdb5a
BLAKE2b-256 e3aa92ee857c20c927bd7a4aee7bd1309c416c1567b23c8b32e9b95d804ba4c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for iu2frl_civ-0.0.11-py3-none-any.whl:

Publisher: publish.yaml on iu2frl/iu2frl-civ

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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