Releases: fphammerle/python-cc1101
Releases · fphammerle/python-cc1101
spi max speed
Added
- declare compatibility with
python3.11
- allow parametrization of
spi_max_speed_hz
duringC1101
class instantiation
to solve #128 (@matteo-briani)
Changed
CC1101.transmit
: raiseRuntimeError
instead ofException
when
attempting to transmit in non-idle state
Removed
- compatibility with
python3.5
&python3.6
radio performance fix
Fixed
- change
IOCFG0.GDO0_CFG
as 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_power
to configure/retrieve output power settings
(PATABLE
andFREND0.PA_POWER
) - all commands: added parameter
-p/--output-power
- command
cc1101-export-config
: append values ofPATABLE
register as comment
Fixed
- default config via private/unstable method
_set_power_amplifier_setting_index
:
no longer setFREND0.LODIV_BUF_CURRENT_TX
to0
(default:1
)
fixed _set_modulation_format
Fixed
- private/unstable method
_set_modulation_format
: fixed incorrect configuration ofMDMCFG2
register
export config
Added
- command
cc1101-export-config
to export / inspect config register values
after configuration via command-line arguments & options matchingcc1101-transmit
Fixed
cc1101-transmit
command:- set
flock
on 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-transmit
to 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-blockingflock
on the SPI device file/dev/spidev?.?
- method
.unlock_spi_device()
to releaseflock
manually