Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 1011 Bytes

LoRa.md

File metadata and controls

28 lines (25 loc) · 1011 Bytes

LoRa

Hereafter some application codes which can be used for RAK811 LoRa board provided by @RAKWireless in #859.

Power on for LoRa chip:

  pinMode(RADIO_XTAL_EN, OUTPUT);  //Power LoRa module
  digitalWrite(RADIO_XTAL_EN, HIGH);

External antenna receiving and transmitting state switching pin configuration:

Receive state:
  pinMode(RADIO_RF_CRX_RX, OUTPUT);  
  digitalWrite(RADIO_RF_CRX_RX, HIGH);  //control LoRa work to receive
  pinMode(RADIO_RF_CTX_PA, OUTPUT);  
  digitalWrite(RADIO_RF_CTX_PA, LOW);
Transmit state:
  pinMode(RADIO_RF_CRX_RX, OUTPUT);  
  digitalWrite(RADIO_RF_CRX_RX, LOW);  
  pinMode(RADIO_RF_CTX_PA,OUTPUT);  
  digitalWrite(RADIO_RF_CTX_PA, HIGH);  //control LoRa send by PA_BOOST

More details can be found here: https://github.com/RAKWireless/RAK811_LoRaWAN_Arduino