Lora-net / lora_gateway

Driver/HAL to build a gateway using a concentrator board based on Semtech SX1301 multi-channel modem and SX1257/SX1255 RF transceivers.
Other
925 stars 746 forks source link

Receive unfiltered LoRa Frames #29

Closed Smarco10 closed 8 years ago

Smarco10 commented 8 years ago

Hi All,

I'm currently working on a projet where I have to receive LoRa frames on a gateway.

I'm facing a trouble receiving frame which come from other GW. I guess that the SX1301 is defaulty configured to filter on end-devices uplink messages.

Is it possible to bypass this filter (through SPI regs by example) in order to receive all kind of messages?

Thank you for your assistance. Sincerely

nestorayuso commented 8 years ago

Hi, gateway -> node data has the I/Q inverted compared to node -> gateway data.

I think you can configure SX1301 with I/Q inversion, in this case you will receive data from other gateways but will not receive from nodes.

Smarco10 commented 8 years ago

Thank you for your quick reply. I've seen that seems possible on the SX1272 (node-side module) but I didn't see any register with this desciption. Do you have any clue about that?

nestorayuso commented 8 years ago

check this registers: LGW_RX_INVERT_IQ LGW_MODEM_INVERT_IQ LGW_MBWSSF_MODEM_INVERT_IQ

https://github.com/Lora-net/lora_gateway/search?utf8=%E2%9C%93&q=LGW_MODEM_INVERT_IQ

Smarco10 commented 8 years ago

OK thanks. Do you have any documentation on I/Q setup?

mcoracin commented 8 years ago

Hello,

You cannot configure a Gateway to receive packets from both nodes and other gateways. But as said above, if you want to configure it to receive frames from other gateways, you have to set this: lgw_reg_w(LGW_MODEM_INVERT_IQ,0);

davidonet commented 7 years ago

Tried it on multitech conduit but get only up message. Is there anything else to setup ?

mcoracin commented 7 years ago

In order to receive frames on a gateway coming from another gateway, you need to set: lgw_reg_w(LGW_MODEM_INVERT_IQ,0); lgw_reg_w(LGW_ONLY_CRC_EN,0);

davidonet commented 7 years ago

Doesn't work can't see any down packet and keep receiving up packet... Anyone succeed in this ?

Smarco10 commented 7 years ago

I got the same issue 2 months ago, but I didn't know that there where a LGW_ONLY_CRC_EN reg. I solved the problem with the second line and it work really well. Verify that you are not to close (>10m) to the Gateway which may have a positive-gain antenna. Did you you filtered on the packet status? Check that you allow STAT_NO_CRC.

mcoracin commented 7 years ago

I'm using a gateway to simulate a mote both for RX and TX with attached patch applied on the HAL. The attached patch is required for RX. For TX, just have to set txpkt.invert_pol to false.

lora_gateway_patch.zip

Smarco10 commented 7 years ago

And do not forget to set no_crc to true if you generate RX from a GW.

davidonet commented 7 years ago

Where can I find the patch required for RX ?

davidonet commented 7 years ago

Tried it on kerlink and receiving some up message and a few down (but not all, only 1/2)

Hexcodes commented 5 years ago

Did anyone find a solution for this? Currently I'm stuck at the same problem like @davidonet where the Gateway detects only some packets, but not all.