+setup instructions

ims100
Hans P. Reiser 2019-04-12 17:57:03 +02:00
rodzic 459673a310
commit 9b0785bc44
2 zmienionych plików z 76 dodań i 0 usunięć

66
Setup.md 100644
Wyświetl plik

@ -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 <whereyouclonedthegit>/rdz_ttgo_sonde/libraries/SondeLib/ .
ln -s <whereyouclonedthegit>/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

Wyświetl plik

@ -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);