fphammerle / python-cc1101

Python Library & Command Line Tool to Transmit RF Signals via CC1101 Transceivers
https://pypi.org/project/cc1101/
GNU General Public License v3.0
78 stars 15 forks source link

Infinite packet length mode #141

Open LennP opened 1 year ago

LennP commented 1 year ago

Hi,

I am trying to use this library to send packets that are about 600 bytes long using a CC1101. I see the PacketLengthMode.INFINITE has been commented out in the options.py file. Is this because it has not yet been implemented?

Best regards, Lenn

fphammerle commented 1 year ago

Hi,

yes, currently the library does not yet support PacketLengthMode.INFINITE (missing implementation).

Use of PacketLengthMode.INFINITE is documented in section 15.2.2 "Packet Length > 255" of CC1101's manual: https://www.ti.com/lit/ds/symlink/cc1101.pdf

With the current implementation you could use CC1101.asynchronous_transmission() instead. However, that mode requires manual encoding and timing of the signal (by setting pin GDO0)

LennP commented 1 year ago

Hi,

Thanks for your reply. So if I'm right you have not given it a try to implement it, therefore it would likely be possible?

fphammerle commented 1 year ago

Yes, I haven't tried yet but I assume that it is possible with a few hours of effort