This program is guided to help establish a connection between two RFM95 900MHz LoRa radio modules using Maxim Integrated's Feather MCUs (MAX32630FTHR Mbed and the MAX32620FTHR Mbed). Once the radios are configured after powering on and if the radios are wired correctly, the two radios will self identify as either a master or a slave, and will then proceed to PING and PONG back and forth. Information about what is happening between the radios can be seen if the two boards are hooked up to a USB COM port through the included DAPLINK/MAX32625PICO modules.
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT max32630fthr
Fork of MAX326xxFTHR_LoRa_PingPong by
PinMap.h
- Committer:
- Helmut64
- Date:
- 2017-08-08
- Revision:
- 13:5a32a1922fbc
- Parent:
- 9:2f9e4be4d046
- Child:
- 15:c70f65d606c4
File content as of revision 13:5a32a1922fbc:
/* * Copyright (c) 2017 Helmut Tschemernjak * 30826 Garbsen (Hannover) Germany * Licensed under the Apache License, Version 2.0); */ #ifdef TARGET_NUCLEO_L476RG #define FEATURE_LORA 1 #elif TARGET_DISCO_L072CZ_LRWAN1 #define FEATURE_LORA 1 #endif #if defined(TARGET_DISCO_L072CZ_LRWAN1) #define LORA_SPI_MOSI PA_7 #define LORA_SPI_MISO PA_6 #define LORA_SPI_SCLK PB_3 #define LORA_CS PA_15 #define LORA_RESET PC_0 #define LORA_DIO0 PB_4 #define LORA_DIO1 PB_1 #define LORA_DIO2 PB_0 #define LORA_DIO3 PC_13 #define LORA_DIO4 PA_5 #define LORA_DIO5 PA_4 #define LORA_ANT_RX PA_1 #define LORA_ANT_TX PC_2 #define LORA_ANT_BOOST PC_1 #define LORA_TCXO PA_12 // 32 MHz #elif defined(TARGET_NUCLEO_L476RG) // using the RFM95 board #define LORA_SPI_MOSI PC_12 #define LORA_SPI_MISO PC_11 #define LORA_SPI_SCLK PC_10 #define LORA_CS PA_0 #define LORA_RESET PA_1 #define LORA_DIO0 PD_2 // DIO0=TxDone/RXDone #define LORA_DIO1 PB_7 // #define LORA_DIO2 PC_14 // DIO2=FhssChangeChannel #define LORA_DIO3 PC_15 // DIO3=CADDone #define LORA_DIO4 PH_0 // ???? #define LORA_DIO5 NC // unused? #endif