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
main.h
00001 /* 00002 * Copyright (c) 2018 Helmut Tschemernjak 00003 * 30826 Garbsen (Hannover) Germany 00004 * Licensed under the Apache License, Version 2.0); 00005 */ 00006 00007 00008 #include "mbed.h" 00009 #include "PinMap.h" 00010 #include "BufferedSerial.h" 00011 #ifdef FEATURE_USBSERIAL 00012 #include "USBSerialBuffered.h" 00013 #endif 00014 #include "GenericPingPong.h" 00015 00016 00017 #define FEATURE_LORA 00018 00019 00020 00021 extern BufferedSerial *ser; 00022 #ifdef FEATURE_USBSERIAL 00023 extern USBSerialBuffered *usb; 00024 #endif 00025 extern bool _useDprintf; 00026 extern void InitSerial(int timeout, DigitalOut *led); 00027 extern void dump(const char *title, const void *data, int len, bool dwords = false); 00028 00029 extern void dprintf(const char *format, ...) __attribute__((format(printf,1,2))); 00030 extern void rprintf(const char *format, ...) __attribute__((format(printf,1,2))); 00031 extern void VAprintf(bool timstamp, bool newline, bool printEnabled, const char *format, va_list arg);
Generated on Tue Jul 12 2022 19:49:37 by 1.7.2