Wykres commitów

608 Commity (65c4c6bcfe73b83024d053a7590b74d8112f3f9c)

Autor SHA1 Wiadomość Data
Thomas Osterried 65c4c6bcfe Fix for syslog server config in taskWebserver.
index_html: changed info (syslog is per default compiled in).

changed IP addeess in platformio.in to broadcast IP

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-20 13:10:13 +01:00
Thomas Osterried 96706f35c0 Added "MHz" to CPU freq
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-18 09:16:02 +01:00
Thomas Osterried 6746424c9c Changed message in webiface about reboot when gps is changed
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-18 09:07:39 +01:00
Thomas Osterried 800de5cfca Added closing ')'
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-18 08:34:23 +01:00
Thomas Osterried 5901a3589b Better variable names:
-String infoApName = "";
-String infoApPass = "";
-String infoIpAddr = "";
-// for SPIFFS WLAN Credentials
-String stdApName = "";
-String stdApPass = "";
-String safeApName = "";
-String safeApPass = "";
+String oled_wifi_SSID_curr = "";
+String oled_wifi_PASS_curr = "";
+String oled_wifi_IP_curr = "";
+String wifi_ModeAP_SSID;
+String wifi_ModeAP_PASS;
+String wifi_ModeSTA_SSID;
+String wifi_ModeSTA_PASS;
+// comes for SPIFFS WLAN Credentials:
+String wifi_ModeSTA_SSID_fallback;
+String wifi_ModeSTA_PASS_fallback;

And marked gps_enable in Webserver for need to reboot after config change

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-18 08:29:46 +01:00
Thomas Osterried 5eb6a5ef06 Merge branch 'master' of github.com:dl9sau/TTGO-T-Beam-LoRa-APRS 2022-11-17 21:40:01 +01:00
Thomas Osterried 0e8c504418 - Soft-reconfiguration in runtime without need for rebot
(not for all, but for many changed settings). Thanks to dl3el
- added a once_a_second_timer

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-17 21:38:13 +01:00
Thomas Osterried b1854b408f Example preferences.cfg
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-17 21:35:36 +01:00
Thomas Osterried cb5351a0cf Testing runtime reload function of changed settings
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-09 07:42:13 +01:00
Thomas Osterried 464e505c1b Fix in /wifi.cfg
I did a mistake when applying Thomas' patches.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-07 16:15:26 +01:00
Thomas Osterried ab96db25e5 This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-04 09:19:05 +01:00
Thomas Osterried 6890ec9114 This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-04 09:14:30 +01:00
Thomas Osterried 6c6297afba This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-04 09:11:01 +01:00
Thomas Osterried c918b816d8 This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-04 07:20:22 +01:00
Thomas Osterried 500c9a1b4b This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-04 06:35:19 +01:00
Thomas Osterried 57530319d9 This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-04 06:34:07 +01:00
Thomas Osterried 48fcc174d1 This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-04 06:23:01 +01:00
Thomas Osterried 229a84027b This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-04 06:16:34 +01:00
Thomas Osterried 14069e93c4 This is a commit that needs testing
Migrated Thomas dl3el's patches for SPIFFS preferences.cfg.

taskTNC can initiate the storage of preferences.cfg file,
and can show the runing config.

In taskWebserver we now do anti-idle on the connection.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-11-03 07:23:37 +01:00
Thomas Osterried 6ee195f253 In newer espressif32 we observerd strange issues in combination with BT and WIFI.
Check for enable_bluetooth before SerialBT.hasClient(). Just tu be sure.
-> .ino and taskTNC.cpp changed

.ino:
  - re-ordered code in setup() {}
  - SPIFFS: now calling SPIFFS.end() on finish

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-06 08:55:00 +02:00
Thomas Osterried 7a914e5f7c Fix: did not compile without wifi,
due to one missing check in the quite new function
do_send_status_message_about_shutdown_to_aprsis

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-05 21:24:14 +02:00
Thomas Osterried 57a8574158 - ledcSetup(0,1E5,12): changed to ledcSetup(0,5000,12);
framwork-arduinoespressif32 library now warns if frequency is too high:
  ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=50
  [E][esp32-hal-ledc.c:75] ledcSetup(): ledc setup failed!
  Examples in documentation use 5000. If your buzzer does not work correctly, please find a correct value,
  and report us (along with the info which CPU frequency you configured).

- taskWebserver: read_from_aprs(): also regar call-0 as invalid

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-05 14:01:08 +02:00
Thomas Osterried 1e7610ffae - tempOled state was hard to understand. changed concept to remember state of oled: display_is_on, instead of looking if oled should be temporary on ;)
this is much clearer than
  -  if (enabled_oled) {
  -    if (oled_timeout > 0) {
  -      display.dim(!tempOled);
  -    } else {
  -      // If timeout is 0 keep OLED awake
  -    }
  -  }
  -
  -  if (tempOled && oled_timeout > 0 && millis() >= oled_timer) {
  -    tempOled = false; // After some time reset backlight

  ;)

- we now avoid unnecessary displpay.dim() calls (was every 10ms..):
  is on? not on? -> switch on. is off? be on? -> on

- in writedisplaytext,
   if (!enabled_oled){                         // disable oled
     display.dim(true);
   }
   ..was, in my opinion, not needed.
   -> removed.

- setup(): if not enable_oled, switch oled on boot and dim iti after a few seconds

- aprsis_data_allow_inet_to_rf defaults to 0, as documented in webserver

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-04 20:50:54 +02:00
Thomas Osterried f07bd4455b changes in taskWebserver
- feature: if we are flooded from aprs-is (lora TX needs 3-5s), we clear
  the queue after 25s
- aprsis-to-lora: src-callsign AX.25-compatibility check only for loraSend
-  more esp_task_wdt_reset

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-03 18:45:24 +02:00
Thomas Osterried 2cf29bf43e TNC: send also to aprsis.
Also added wdt triggers, just 2b sure

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-02 16:57:41 +02:00
Thomas Osterried de4914b331 next typo fix
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-02 16:32:12 +02:00
Thomas Osterried ce4a07d5ed Next beauty fix
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-02 16:29:36 +02:00
Thomas Osterried 0f39eeed97 next fix in typo
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-02 16:27:58 +02:00
Thomas Osterried 601765d442 fixed formating
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-02 16:20:59 +02:00
Thomas Osterried 3505443696 - INSTALL.md: corrected library section
- taskWebserver: added wdt_reset's (tried to fix an issue)

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-02 16:13:27 +02:00
Thomas Osterried 42fce418ca - webserver docu in web for "Accept own positions via KISS" was wrong
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-02 10:12:37 +02:00
Thomas Osterried a0a00d267d - Fix for third-party traffic encoding.
- webserver docu in web for "Accept own positions via KISS" was wrong

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-02 10:06:09 +02:00
Thomas Osterried ed560ece19 - important bugfix (Q&D): in read_from_aprsis: header_end was 0 but
it was assured it's not. -> this lead to a memory access violation
- usb_serial_data_type & 2: now also traces own bacon and aprsis 3rd party packet

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-01 21:53:39 +02:00
Thomas Osterried bc808f533c There's a instability issue: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Perhaps a String concatenation fuckup. Like the problem described here:
  https://forum.arduino.cc/t/guru-meditation-error-core-1-paniced-loadprohibited-exception-was-unhandled/876182/14

Perhaps, this patch solves the issue.
The modification in taskWebserer was quite new.
The other "+ int()" operation was in main .ino.
-> changed them both for this test.

..and fixed a typo

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-01 17:30:32 +02:00
Thomas Osterried 7739a5d1c0 There's a instability issue: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Perhaps a String concatenation fuckup. Like the problem described here:
  https://forum.arduino.cc/t/guru-meditation-error-core-1-paniced-loadprohibited-exception-was-unhandled/876182/14

Perhaps, this patch solves the issue.
The modification in taskWebserer was quite new.
The other "+ int()" operation was in main .ino.
-> changed them both for this test.

..and fixed a typo

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-01 17:19:28 +02:00
Thomas Osterried a274a250c3 There's a instability issue: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Perhaps a String concatenation fuckup. Like the problem described here:
  https://forum.arduino.cc/t/guru-meditation-error-core-1-paniced-loadprohibited-exception-was-unhandled/876182/14

Perhaps, this patch solves the issue.
The modification in taskWebserer was quite new.
The other "+ int()" operation was in main .ino.
-> changed them both for this test.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-10-01 16:52:52 +02:00
Thomas Osterried beb633e158 Add uptime to boot message
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-30 14:26:40 +02:00
Thomas Osterried ad44070476 String Rebooted -> Booted
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-29 12:24:34 +02:00
Thomas Osterried 5835bc9568 info about shutdown or reboot
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-29 11:08:57 +02:00
Thomas Osterried 01a909b7e3 Webinterface: better description of the hardware buttons of the TTGO T-Beam
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-29 09:13:00 +02:00
Thomas Osterried 94f8a976c9 New feature: usb-serial TNC-mode
usb-serial: 4 options: KISS, logging, tnc-format-trace, logging AND tnc-format-trace,
almost no logging

Test: platform.ini: enabled syslog for all devides

Moved spiffs config reading to the place before starting the webserver

Serial.println() uses obviously CRLF. Some Serial.printf() functions only \n;
changed them to \r\n.

Moved do_send_status_message_to_aprsis to connect_to_aprsis; displayed
fixes tries counter.

Changed syslog prio from KERN to LOG_LOCAL0. Tracker should not
mess up remote servers kernel warnings.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-25 10:15:58 +02:00
Thomas Osterried 8c2820ca88 New feature: usb-serial TNC-mode
usb-serial: 4 options: KISS, logging, tnc-format-trace, logging AND tnc-format-trace,
almost no logging

Test: platform.ini: enabled syslog for all devides

Moved spiffs config reading to the place before starting the webserver

Serial.println() uses obviously CRLF. Some Serial.printf() functions only \n;
changed them to \r\n.

Moved do_send_status_message_to_aprsis to connect_to_aprsis; displayed
fixes tries counter.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-25 09:51:57 +02:00
Thomas Osterried f4d5d4496c New feature: usb-serial TNC-mode
usb-serial: 4 options: KISS, logging, tnc-format-trace, logging AND tnc-format-trace,
                       almost no logging

Test: platform.ini: enabled syslog for all devides

Moved spiffs config reading to the place before starting the webserver

Serial.println() uses obviously CRLF. Some Serial.printf() functions only \n;
changed them to \r\n.

Moved do_send_status_message_to_aprsis to connect_to_aprsis; displayed
fixes tries counter.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-25 09:02:08 +02:00
Thomas Osterried f6bf611d65 Logging on Webserver events like reboot-button-pressed.
Thanks to dl3el for the idea

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-21 07:37:41 +02:00
Thomas Osterried 81c0b82e8b Shorter reconnect timer to aprs-is
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-20 22:39:47 +02:00
Thomas Osterried a4f3df510b Fix for preferences for statusmessage
..and some other smaller issues

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-20 22:08:44 +02:00
Thomas Osterried e574248503 Next fixes after the larger redesign
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-20 20:42:09 +02:00
Thomas Osterried 57ee8dc18c syslog fix
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-20 13:44:37 +02:00
Thomas Osterried a70f39294e Next try connection fix. Fix in receive_from_aprsis(). syslog: allow empty syslog server.
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-20 12:52:25 +02:00
Thomas Osterried 5924c838a6 Tried to separate code in functions in aprsis part.
It compiles, but still needs to be testet.

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2022-09-20 11:36:51 +02:00