lora-aprs / LoRa_APRS_iGate

This is a LoRa APRS iGate/Digi based on an ESP32
https://www.lora-aprs.info
MIT License
357 stars 112 forks source link

On ESP32-S3 (Heltec V3 board), WiFi quits shortly after init #324

Open Ingineerix opened 1 year ago

Ingineerix commented 1 year ago

First off, thanks for adding support for the Heltec V3! I have it working great on the SX1262 at 915MHz. Only problem it has is WiFi, when it initially connects if I do not start a high volume of pings to it from another device, the WiFi radio will lose connection and not make it to connecting to APRS-IS. But with the high-rate ping in place it connects, and then I can stop the ping and everything is normal. I'll open a separate ticket.

W/O ping:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x28 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a38
entry 0x403c98d4
[INFO][Main] LoRa APRS iGate by OE5BPA (Peter Buchegger)
[INFO][Main] Version: 23.31.01
[INFO][Main] Board HELTEC_WIFI_LORA_32_V3 loaded.
[INFO][Main] Will start watchdog now...
[INFO][TaskManager] will setup all tasks...
[DEBUG][TaskManager] call setup for WifiTask
[INFO][WiFiEvent] WiFi Started
[DEBUG][WifiTask] Looking for AP: Maxwell Vehicles
[DEBUG][TaskManager] call setup for DisplayTask
[DEBUG][TaskManager] call setup for RadiolibTask
[DEBUG][RadiolibTask] [00:00:01] using SX1268
[DEBUG][TaskManager] call setup for RouterTask
[DEBUG][TaskManager] call setup for BeaconTask
[DEBUG][TaskManager] call setup for OTATask
[DEBUG][TaskManager] call setup for NTPTask
[DEBUG][TaskManager] call setup for AprsIsTask
[INFO][Main] setup done...
[INFO][WiFiEvent] WiFi Connected
[INFO][WiFiEvent] WiFi MAC: F4:12:FA:6A:48:98
[INFO][WiFiEvent] WiFi IPv4: 10.0.1.235
[INFO][WiFiEvent] WiFi Gateway: 10.0.0.1
[INFO][WiFiEvent] WiFi DNS1: 10.0.0.1
[INFO][WiFiEvent] WiFi DNS2: 0.0.0.0
[INFO][WiFiEvent] WiFi Hostname: K6CQU-15
[DEBUG][WifiTask] WiFi IP address: 10.0.1.235
[INFO][BeaconTask] [00:00:08] K6CQU-15>APLG01:=4046.66NL11912.27W&LoRa iGate 913.5MHz
[INFO][AprsIsTask] connecting to APRS-IS server: oregon.aprs2.net on port: 14580, with filter: ''
[INFO][WiFiEvent] WiFi Disconnected
[ 13107][E][WiFiGeneric.cpp:1578] hostByName(): DNS Failed for oregon.aprs2.net
[ERROR][AprsIsTask] Something went wrong on connecting! Is the server reachable?
[ERROR][AprsIsTask] Connection failed.
[INFO][WiFiEvent] WiFi Disconnected
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[DEBUG][RadiolibTask] [00:00:13] Transmitting packet 'Source: K6CQU-15, Destination: APLG01, Path: , Type: Error, Data: =4046.66NL11912.27W&LoRa iGate 913.5MHz'
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!
[ERROR][WifiTask] WiFi not connected!

With ping going from another host at 200ms rate:

ESP-ROM:esp32s3-20210327                                                                                             
Build:Mar 27 2021                                                                                                    
rst:0x1 (POWERON),boot:0x28 (SPI_FAST_FLASH_BOOT)                                                                    
SPIWP:0xee                                                                                                           
mode:DIO, clock div:1                                                                                                
load:0x3fce3808,len:0x44c                                                                                            
load:0x403c9700,len:0xbe4                                                                                            
load:0x403cc700,len:0x2a38                                                                                           
entry 0x403c98d4                                                                                                     
[INFO][Main] LoRa APRS iGate by OE5BPA (Peter Buchegger)                                                             
[INFO][Main] Version: 23.31.01                                                                                       
[INFO][Main] Board HELTEC_WIFI_LORA_32_V3 loaded.
[INFO][Main] Will start watchdog now...
[INFO][TaskManager] will setup all tasks...
[DEBUG][TaskManager] call setup for WifiTask
[INFO][WiFiEvent] WiFi Started
[DEBUG][WifiTask] Looking for AP: Maxwell Vehicles
[DEBUG][TaskManager] call setup for DisplayTask
[DEBUG][TaskManager] call setup for RadiolibTask
[DEBUG][RadiolibTask] [00:00:01] using SX1268
[DEBUG][TaskManager] call setup for RouterTask
[DEBUG][TaskManager] call setup for BeaconTask
[DEBUG][TaskManager] call setup for OTATask
[DEBUG][TaskManager] call setup for NTPTask
[DEBUG][TaskManager] call setup for AprsIsTask
[INFO][Main] setup done...
[INFO][WiFiEvent] WiFi Disconnected
[INFO][WiFiEvent] WiFi Connected
[INFO][WiFiEvent] WiFi MAC: F4:12:FA:6A:48:98
[INFO][WiFiEvent] WiFi IPv4: 10.0.1.235
[INFO][WiFiEvent] WiFi Gateway: 10.0.0.1
[INFO][WiFiEvent] WiFi DNS1: 10.0.0.1
[INFO][WiFiEvent] WiFi DNS2: 0.0.0.0
[INFO][WiFiEvent] WiFi Hostname: K6CQU-15
[DEBUG][WifiTask] WiFi IP address: 10.0.1.235
[INFO][BeaconTask] [00:00:08] K6CQU-15>APLG01:=4046.66NL11912.27W&LoRa iGate 913.5MHz
[INFO][NTPTask] Current time: 17:12:54
[INFO][AprsIsTask] connecting to APRS-IS server: oregon.aprs2.net on port: 14580, with filter: ''
[INFO][AprsIsTask] Connected to APRS-IS server!
[DEBUG][RadiolibTask] [17:12:54] Transmitting packet 'Source: K6CQU-15, Destination: APLG01, Path: , Type: Error, Data: =4046.66NL11912.27W&LoRa iGate 913.5MHz'
[DEBUG][RadiolibTask] [17:12:54] TX done
[DEBUG][RadiolibTask] [17:13:29] Received packet 'Source: Loowit, Destination: APLT00-1, Path: WIDE1-1, Type: Position Without Timestamp, Data: !3759.03N/12142.05W[K6C
QU 3.6V' with RSSI -25dBm, SNR 13.00dB and FreqErr 267.375000Hz
[INFO][RouterTask] APRS-IS: Source: Loowit, Destination: APLT00-1, Path: WIDE1-1,qAO,K6CQU-15, Type: Position Without Timestamp, Data: !3759.03N/12142.05W[K6CQU 3.6V
[INFO][RouterTask] DIGI: Source: Loowit, Destination: APLT00-1, Path: K6CQU-15*, Type: Position Without Timestamp, Data: !3759.03N/12142.05W[K6CQU 3.6V
[DEBUG][RadiolibTask] [17:13:29] Transmitting packet 'Source: Loowit, Destination: APLT00-1, Path: K6CQU-15*, Type: Position Without Timestamp, Data: !3759.03N/12142.0
5W[K6CQU 3.6V'
[DEBUG][RadiolibTask] [17:13:29] TX done