1
0
mirror of https://github.com/sandeepmistry/arduino-LoRa.git synced 2025-05-07 18:41:43 +03:00

47 Commits

Author SHA1 Message Date
Sergio
75caa6ba00
fix mid band threshold and add function to get current RSSI value ()
* correct mid band threshold on rssi calculatio
* add function to get current rssi value from RegRssiValue
2020-11-18 20:10:58 -05:00
IoTThinks.com
090fe65108
Added setGain for LNA Gain ()
* Added setGain for LNA Gain

Added setGain for LNA Gain

* Update API.md

Added API for setGain

* Added example to use setGain

Just use setGain after LoRa.begin
// set maximum LNA for better RX sensitivity
// 0: ADC is used and LNA gain is not used.
// 1-6: ADC is not used and LNA gain is used.
LoRa.setGain(6);

* Fixed spacing only

To change tabs to spaces.

* Delete LoRaReceiverCallbackWithLNAGain.ino

To remove as unnecessary.

* To add example for setGain

To add example for setGain as an optional setting.

* Added setGain

To add setGain

* Fixed typo for AGC

Fixed typo for AGC

* Fixed comment for LoRa.setGain(6)

* Make comment for setGain simpler

Make comment for setGain simpler
2020-11-10 20:51:26 -05:00
Morgan 'ARR\!' Allen
4f90e754f1 accidental re-inclusion of FIFO PTR reset in dio0 handler 2020-03-28 10:38:21 -07:00
Luiz Henrique Cassettari
e641518510 OnTxDone
Add callback onTxDone
2020-01-13 19:01:39 -03:00
Martino Facchin
c2987d5952 Slowdown SPi bus to take extra ASM into account 2019-10-28 12:23:07 -04:00
Martino Facchin
731854ba4d Port to MKRWAN1310 2019-10-28 12:23:07 -04:00
Phill Kelley
896df75082 Corrects conditional compilation problem on ESP8266 and ESP32
Version 0.6.0 introduced a mechanism to supply the ICACHE_RAM_ATTR
prefix to the onDio0Rise() interrupt service routine when compiling
for ESP32 or ESP8266 boards. As written, "#ifdef ESP8266 || ESP32"
produces "warning: extra tokens at end of #ifdef directive" when
compiling in the Arduino IDE 1.8.9. If the board is an ESP8266 then
ISR_PREFIX has the value ICACHE_RAM_ATTR (correct) but if the board is
an ESP32, ISR_PREFIX is null (incorrect) This PR proposes alternative
syntax "#if (ESP8266 || ESP32)" which compiles without warning and
provides ICACHE_RAM_ATTR to both ESP8266 and ESP32 boards.
2019-09-01 14:03:44 +10:00
Anthony Elder
e272b2ef6a Don't reset REG_FIFO_ADDR_PTR 2019-07-12 14:41:24 +01:00
Anthony Elder
1cf44e5bb9 Merge branch 'master' into fix-ISR-not-in-IRAM 2019-06-08 10:31:45 +01:00
Anthony Elder
77a7643dee Add ISR_PREFIX for ESP8266 and ESP32 2019-06-08 10:25:50 +01:00
Samuel Lang
9d2a8c9c82 non blocking functions added () 2018-08-19 10:34:32 -04:00
Luiz
07bfead143 Add function to invert IQ signal register ()
Add function to change register (REG_INVERTIQ) to support communication node and gateway

The register does not exist in datasheet but use on but used in Semtech code.
Reference : https://github.com/intel-iot-devkit/upm/blob/master/src/sx1276/sx1276.cxx

* Add LoRa Simple Gateway/Node Exemple

Example how to use InvertIQ function to create a simple Gateway/Node logic.
2018-08-19 09:53:52 -04:00
Sandeep Mistry
403738660b Fix warning 2018-08-06 19:26:01 -04:00
Sandeep Mistry
6a6e9c39d0 Remove trailing white space 2018-08-06 19:25:34 -04:00
Evgeny Dontsov
884769e206 sx127x 20dBm support () 2018-08-06 19:23:53 -04:00
Sandeep Mistry
039b138d80
Add support for Arduino MKR WAN 1300 boards ()
* Add support for Arduino MKR WAN 1300 board
* Add new LoRa.setSPI(...) API to use radio with a different SPI interface
* Disable LoRa.onReceive(...) and LoRa.receive() on Arduino MKR WAN 1300
* Add errors on sketches not compatible with the Arduino MKR WAN 1300
2018-05-07 13:02:06 -04:00
Anthony Elder
cd0df701a9 Issue 85 setting ldo flag ()
* Add getting the frequency error of a packet

* Update for review comments

* Add functions to set low data rate optimization flag

* Typo

* Fixes

* Add packetFrequencyError to API.md

* WIP

* Simplify

* Make getSpreadingFactor private

* Correct LDO bit calculation

* Update LDO determination

* Correct calculation

* Correct calculation

* Revert back to old LDO calculation
2018-05-05 16:12:22 -04:00
torntrousers
5d6a7a398a Correct type of _frequency from int to long 2018-03-18 20:06:04 -04:00
torntrousers
27e2963c97 Add getting the frequency error of a packet () 2018-03-18 20:02:47 -04:00
Sandeep Mistry
f5cae9c25d Only call SPI.usingInterrupt if SPI_HAS_NOTUSINGINTERRUPT is defined 2018-03-18 20:02:01 -04:00
Sandeep Mistry
3ec90c02b4 Stabilize onReceive(...) callback handling
By using SPI.usingInterrupt(…) and SPI.notUsingInterrupt(…)
2018-03-18 20:02:01 -04:00
Morgan Allen
61c390f837 ensure pin DIO0 is set to input 2018-02-04 20:38:36 -05:00
universam1
da80e8bf65 saving reset pin ()
* releasing pins ss and reset

* only make reset optional

* style and description

* Update API doc
2017-12-17 20:16:41 -05:00
universam1
79a33cee83 stabilize ESP8266 watchdog ()
* stabilize ESP8266 watchdog

* remove guard for ESP8266

* Add brackets
2017-12-17 20:12:27 -05:00
YannikW
4857e1b4c3 fix SNR register 2017-11-12 20:32:04 -05:00
Sandeep Mistry
71f92ebe9a Remove left over Serial print outs 2017-11-12 20:15:38 -05:00
Sandeep Mistry
24b1533963 Add license header to source files 2017-09-10 20:43:54 -04:00
Sandeep Mistry
b894e71202 Set Stream timeout to 0 in constructor
as the Stream input is packet based and buffered.
2017-05-28 18:44:07 -04:00
Sandeep Mistry
2f20d9902d Rename crc()/noCrc() to enableCrc()/disableCrc() 2017-05-28 17:39:10 -04:00
Sandeep Mistry
73e42aca9c Lower default SPI frequency to 8 MHz (from 10 MHz) 2017-04-23 20:38:04 -04:00
Sandeep Mistry
c1eb2b70f4 enable auto AGC 2017-03-15 21:10:49 -04:00
Sandeep Mistry
9c9914a2c4 Add option to specify PA output pin in Lora.setTxPower(...) () 2017-03-12 16:17:13 -04:00
Sandeep Mistry
ee09672759 Add LoRA.setSPIFrequency(frequency) API () 2017-03-12 15:45:21 -04:00
Sandeep Mistry
0db821227e Update API documentation 2016-10-22 15:55:58 -04:00
Sandeep Mistry
d879e50d33 Change arg type for beginPacket to int (instead of bool) 2016-10-22 14:47:44 -04:00
Sandeep Mistry
8aa75b10a3 Add support for implicit header mode and SF 6 2016-10-22 14:33:27 -04:00
Sandeep Mistry
9b19623a1c Add packetSnr and random API's 2016-10-16 19:02:32 -04:00
Sandeep Mistry
96bafb9cc7 Set LNA boost 2016-10-10 18:36:33 -04:00
Sandeep Mistry
bd5a6de310 Re-use some functions 2016-10-10 18:35:34 -04:00
Sandeep Mistry
5af0578293 Add setFrequency API 2016-10-10 18:33:12 -04:00
Sandeep Mistry
199072565f Add more API's to control radio parameters 2016-10-09 08:22:26 -04:00
Sandeep Mistry
57e28d1067 Add receive callback mode using DIO0 2016-09-25 10:49:01 -04:00
Sandeep Mistry
caed5b1c4c Don't clear all IRQ flags, just the ones read 2016-09-25 08:39:08 -04:00
Sandeep Mistry
7f75498dfc Correct formula for packet RSSI, should be based on frequency 2016-09-25 08:34:59 -04:00
Sandeep Mistry
1e8f3835a1 Rename packetRSSI to packetRSSI 2016-08-21 14:35:33 -04:00
Sandeep Mistry
ecbb114c42 Set PA config 2016-08-21 12:22:38 -04:00
Sandeep Mistry
038378c139 Add initial library source 2016-08-20 09:11:49 -04:00