Releases: fphammerle/python-cc1101
Releases · fphammerle/python-cc1101
spi max speed
Added
- declare compatibility with
python3.11 - allow parametrization of
spi_max_speed_hzduringC1101class instantiation
to solve #128 (@matteo-briani)
Changed
CC1101.transmit: raiseRuntimeErrorinstead ofExceptionwhen
attempting to transmit in non-idle state
Removed
- compatibility with
python3.5&python3.6
radio performance fix
Fixed
- change
IOCFG0.GDO0_CFGas recommended in docs to "optimize RF performance"
chip version 0
Fixed
- recommend to check wiring & bus selection when receiving chip version
0
unlock on init error
Fixed
- close & unlock SPI device file when error occurs while entering context
configure output power
Added
- method
set/get_output_powerto configure/retrieve output power settings
(PATABLEandFREND0.PA_POWER) - all commands: added parameter
-p/--output-power - command
cc1101-export-config: append values ofPATABLEregister as comment
Fixed
- default config via private/unstable method
_set_power_amplifier_setting_index:
no longer setFREND0.LODIV_BUF_CURRENT_TXto0(default:1)
fixed _set_modulation_format
Fixed
- private/unstable method
_set_modulation_format: fixed incorrect configuration ofMDMCFG2register
export config
Added
- command
cc1101-export-configto export / inspect config register values
after configuration via command-line arguments & options matchingcc1101-transmit
Fixed
cc1101-transmitcommand:- set
flockon SPI device file to avoid race conditions,
if other processes attempt to use the same transceiver - configure transceiver after reading from stdin
to avoid delay between configuration and transmission, if pipe is slow
- set
command-line interface
Added
- added command
cc1101-transmitto transmit via command-line interface - warn when selecting frequency below supported range
chip version 0x04
Added
- support chip version
0x04
flock
Added
- option
CC1101(lock_spi_device=True)sets an advisory, exclusive,
non-blockingflockon the SPI device file/dev/spidev?.? - method
.unlock_spi_device()to releaseflockmanually