From 9b0785bc44b1346d8e570f63df7b98469c1c0a3b Mon Sep 17 00:00:00 2001 From: "Hans P. Reiser" Date: Fri, 12 Apr 2019 17:57:03 +0200 Subject: [PATCH] +setup instructions --- Setup.md | 66 +++++++++++++++++++++++++++++++++++++++ libraries/SondeLib/aprs.h | 10 ++++++ 2 files changed, 76 insertions(+) create mode 100644 Setup.md diff --git a/Setup.md b/Setup.md new file mode 100644 index 0000000..ca907fc --- /dev/null +++ b/Setup.md @@ -0,0 +1,66 @@ +# Prerequisites + +## Arduini IDE + +Get the latest Arduino IDE software from arduino.cc/en/Main/Software + +## ESP32 support + +File -> Preferences (or Arduino -> Preferences on MacOS) + +go to "Additional Board Manager URLs" + +Add *https://dl.espressif.com/dl/package_esp32_index.json* and press oK + + +Tool -> Boad -> Boards Manager + +search for "esp32" + +Install "esp32 by Espressif Systems" + +## ESP32 Flash Filesystem Upload support + +Get the zip file of the latest release from +https://github.com/me-no-dev/arduino-esp32fs-plugin/releases/ + +Unzip the content to the tools folder of your Arduino IDE (~/Documents/Arduino/tools on MacOS, +similar on other OS) and restart IDE + +## Additional libraries + +Select Tools -> Library Manager + +Install "U8g2" + +## Additional libraries, part 2 + +From https://github.com/me-no-dev/ESPAsyncWebServer select "Download ZIP", extract to the libraries +folder of your Arduino IDE (~/Documents/Arduino/libraries on MacOS), rename main folder to ESPAsyncWebServer +(remove the "-master") + +From https://github.com/me-no-dev/AsyncTCP select "Download ZIP", extract to the libraries folder +of your Arduino IDE, and rename main folder to AsyncTCP + +## Additional libraries, part 3 + +Copy the libraries/SX1278FSK and libraries/SondeLib folder of this project to your Arduino IDE's libraries +folders, or, alternatively, create symbolic links (MacOS/Linux): + +cd ~/Documents/Arduino/libraries +ln -s /rdz_ttgo_sonde/libraries/SondeLib/ . +ln -s /rdz_ttgo_sonde/libraries/SX1278FSK/ . + +Restart the Arduino IDE + +## Final steps + +In the IDE Tools -> Board: -> +Select "TTGO LoRa32-OLED v1" + +Compile and Upload code + +Upload data to SPIFFS with Tools -> ESP32 Sketch Data Upload + + + diff --git a/libraries/SondeLib/aprs.h b/libraries/SondeLib/aprs.h index 4894fc8..7b1f26b 100644 --- a/libraries/SondeLib/aprs.h +++ b/libraries/SondeLib/aprs.h @@ -2,6 +2,16 @@ #ifndef _aprs_h #define _aprs_h +enum IDTYPE { ID_DFMDXL, ID_DFMREAL, ID_DFMAUTO }; + +typedef struct st_feedinfo { + bool active; + int type; // 0:UDP(axudp), 1:TCP(aprs.fi) + char *host; + int port; + int rate; + int idformat; // 0: dxl 1: real 2: auto +} #define MAXLEN 201 void aprs_gencrctab(void); int aprsstr_mon2raw(const char *mon, char raw[], int raw_len);