Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello Receive examples #41

Open
matoxbr opened this issue Jul 26, 2021 · 7 comments
Open

Hello Receive examples #41

matoxbr opened this issue Jul 26, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@matoxbr
Copy link

matoxbr commented Jul 26, 2021

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

@fphammerle fphammerle added the enhancement New feature or request label Jul 26, 2021
@fphammerle
Copy link
Owner

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)

@oragamiman01
Copy link

Hello,

Do you plan to add receiving support? :)

Thanks

@fphammerle
Copy link
Owner

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.

@Crsarmv7l
Copy link

Crsarmv7l commented Feb 1, 2024

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?

@fphammerle
Copy link
Owner

fphammerle commented Feb 1, 2024

Yes, see CC1101._get_received_packet. In summary:

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

@balaboooot
Copy link

balaboooot commented Jun 5, 2024

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!

@fphammerle
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants