python-cc1101 icon indicating copy to clipboard operation
python-cc1101 copied to clipboard

Hello Receive examples

Open matoxbr opened this issue 4 years ago • 7 comments

Guys in the examples folder just found it for shipping. Does anyone have an example to receive? thanks

matoxbr avatar Jul 26 '21 14:07 matoxbr

Hi,

receiving is not officially supported yet. I implemented some basic support (private / unstable API).

You can receive packages by calling transceiver._wait_for_packet(timeout_seconds=21, gdo0_gpio_line_name="GPIO25") (or similar)

Example: https://github.com/fphammerle/wireless-sensor/blob/v0.4.0/wireless_sensor/init.py#L150

Currently, I cannot guarantee backward-compatibility in future releases yet (thus, the method has a _ prefix)

fphammerle avatar Jul 26 '21 17:07 fphammerle

Hello,

Do you plan to add receiving support? :)

Thanks

oragamiman01 avatar Feb 01 '24 15:02 oragamiman01

Yes, I do. Actually, I have been using transceiver._wait_for_packet for several months already but I haven't found time to make the method / API public yet.

fphammerle avatar Feb 01 '24 15:02 fphammerle

Yes, I do. Actually, I have been using transceiver._wait_for_packet for several months already but I haven't found time to make the method / API public yet.

I assume you are using the FIFO buffer due to pythons slow speed?

Crsarmv7l avatar Feb 01 '24 16:02 Crsarmv7l

Yes, see CC1101._get_received_packet. In summary:

self._read_burst(
    start_register=FIFORegisterAddress.RX,
    length=self._read_status_register(StatusRegisterAddress.RXBYTES)
)

fphammerle avatar Feb 01 '24 19:02 fphammerle

Hello! I have a WS90 weather station, a Respi zero2w, a cc1101. I tried to receive the signal the way you did but failed. So I just need a simple example to receive fsk2 signal. Thanks!

balaboooot avatar Jun 05 '24 16:06 balaboooot

Hi, sorry, I do not have enough resources/time to provide support. You first need to know all the properties of the FSK2 signal (center frequency, bandwidth, sample rate, preamble/sync word) and configure CC1101 accordingly. I would recommend analyzing the signal with a RTL-SDR receiver first.

fphammerle avatar Jun 05 '24 16:06 fphammerle