-
Notifications
You must be signed in to change notification settings - Fork 288
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
How to receive downlinks from other gateways #129
Comments
Hello, In LoRaWAN, uplinks and downlinks do not use the same polarity. Uplinks use non-inverted polarity, and downlinks use inverted polarity. Basically, it is not possible to capture the complete LoRaWAN uplink/traffic with a single gateway. Best regards, |
Thanks for your quick response! That helped a lot. Is there a configuration for the polarity so that I can switch between capturing uplink and downlink packets? I am thinking of using two devices/boards, one capturing the uplink frames and the other the downlink frames. I need this to work on all channels, the single channel solution does not work for me. |
You can try the following: /* Chirp invert */
err |= lgw_reg_w(SX1302_REG_RX_TOP_RX_CFG0_CHIRP_INVERT, 0); This should configure the 8 multi-SF channels to receive inverted polarity packets. (note that the register value meaning is reversed). If you also want to configure the lora_std/lora_service channel (single SF), for example to receive the RX2 downlinks, you can update the sx1302_lora_service_modem_configure() function by adding the following lines: /* Chirp invert */
err |= lgw_reg_w(SX1302_REG_RX_TOP_LORA_SERVICE_FSK_RX_CFG0_CHIRP_INVERT, 0); |
I'm only getting uplinks from my end devices when I start the packet forwarder on my sx1302. But I also want to see the downlink replies from the infrastructure (separate gateway). Is there an option or configuration where I can enable capturing downlink packets as well?
What is the goal:
I want to capture all LoRa packets in my environment for debug purposes (all uplinks from end devices and the downlinks from the gateways). So I don't want to use my setup as a standalone gateway. It should just passively listen to the environment and print out all packets it concentrates over the air (like a sniffer).
I use the following hardware:
The text was updated successfully, but these errors were encountered: