Prototype RF driver for STM Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo.
Prototype RF Driver for STM Sub-1 GHz RF Expansion Boards based on the SPSGRF-868 and SPSGRF-915 Modules for STM32 Nucleo
Currently supported boards:
Note, in order to use expansion board X-NUCLEO-IDS01A4 in mbed you need to perform the following HW modifications on the board:
- Unmount resistor
R4 - Mount resistor
R7
Furthermore, on some Nucleo development boards (e.g. the NUCLEO_F429ZI), in order to be able to use Ethernet together with these Sub-1 GHz RF expansion boards, you need to compile this driver with macro SPIRIT1_SPI_MOSI=PB_5 defined, while the development board typically requires some HW modification as e.g. described here!
This driver can be used together with the 6LoWPAN stack (a.k.a. Nanostack).
Diff: SimpleSpirit1.h
- Revision:
- 11:b769d6caad82
- Parent:
- 9:3db68ab23070
- Child:
- 12:b8056eda4028
--- a/SimpleSpirit1.h Tue Oct 25 10:56:52 2016 +0200
+++ b/SimpleSpirit1.h Wed Oct 26 15:08:44 2016 +0200
@@ -401,11 +401,17 @@
/** Get latest value of RSSI **/
float get_last_rssi_dbm(void) {
+ if(last_rssi == 0) {
+ last_rssi = qi_get_rssi();
+ }
return (-120.0+((float)(last_rssi-20))/2);
}
/** Get latest value of LQI **/
uint8_t get_last_lqi(void) {
+ if(last_lqi == 0) {
+ last_lqi = qi_get_lqi();
+ }
return last_lqi;
}
X-NUCLEO-IDS01A4 Sub-1GHz RF Expansion Board