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
924 stars 745 forks source link

SX1301 register description #15

Closed x893 closed 8 years ago

x893 commented 8 years ago

Hello, can anybody help with SX1301 register description ?

Thanks in advance

mcoracin commented 8 years ago

Hello,

What do you need to know? Semtech does not provide the full description of the registers, and the present code is there to show how to use it.

But if you have specific questions, I can try to answer.

Regards

x893 commented 8 years ago

Hello, i've simple question - how to use interrupt mode for SX1301 ?

mcoracin commented 8 years ago

Hello, There is no interrupt mode on SX1301, you have to poll registers.

x893 commented 8 years ago

Hi, it very strange - DIO lines exists. Semtech looks as most china company w/o any documentation.

mcoracin commented 8 years ago

Hello, No interrupt mode on SX1301. Concerning the documentation, SX1301 is an exception in the sense that it is purposely not documented. The present source code is given as a reference of usage and configuration.

If you have specific questions about the driver code, you can ask, we'll try to answer.

Regards

x893 commented 8 years ago

I port gateway from linux to FreeRTOS with low power MCU (STM32L and may be to EFM32) but to reduce consumption think about interrupt mode. Also i use GSM modem to provide link to internet or microSD for standalone application. Thanks for your answer about interrupt.

fanjm95 commented 6 years ago

SX1301 How to set register Low Data Rate Optimization?

1082008 commented 5 years ago

https://github.com/Lora-net/lora_gateway/wiki/SX1301-GPIO-output-configuration

@x893 If you wire RX_BUFFER_NOT_EMPTY GPIO of SX1301 to one of your MCU's GPIOs, you can spare your SPI busy loop polling and just read received LoRa data packets on a rising edge. It works, I've just tried. This also means a better response time because we are possibly not in sleep when a packet arrives but can react instantly.

ttangzr commented 3 years ago

Hi, I try to get the GPIO output of SX1308 pico gateway with STM32F4 MCU. I set the LGW_GPIO_SELECT_OUTPUT as follows:

lgw_reg_w(LGW_GPIO_MODE, 31);
lgw_reg_w(LGW_GPIO_SELECT_OUTPUT, 4);

GPIOs table will be then as follow (refer to Table 7 of SX1308 DS)

But I have some questions:

  1. Does anybody know the TYPE of these output values? Analog or digital high/low level signals?
  2. What does the 1’b0 mean?

Thanks.