G4lile0 / tinyGS

📡 Open Ground Station Network 🛰
GNU General Public License v3.0
923 stars 177 forks source link

Web Installer and S3 #250

Open pacmac opened 3 days ago

pacmac commented 3 days ago

Just tried using the web installer on a Lilygo T3-S3 and it gets into an endless boot loop, I suspect that it is not recognising the S3 chipset.

Has anyone else succeeded using a non-standard S3 chip ?

Thanks

pacmac commented 2 days ago
Screenshot 2024-06-30 at 3 37 38 PM

OK, well I spent a day on this and managed to get the T3-S3 (SX1262/866) to compile, but I cannot get the radio to work:

07:26:29 TinyGS Version 2403241 - 2403241
07:26:29 Chip  ESP32-S3 - 0
07:26:29 AXPxxx chip?
07:26:29 [SX12xx] Initializing ... 
07:26:29 Radio failed, code -2
 Check that the configuration is valid for your board
15:26:31 ------------- Controls -------------
15:26:31 !e - erase board config and reset
15:26:31 !b - reboot the board
15:26:31 !p - send test packet to nearby stations (to check transmission)
15:26:31 ------------------------------------
15:26:47 Attempting MQTT connection...
15:26:48 Connected to MQTT!
15:27:17 Radio failed, code -2
 Check that the configuration is valid for your board

Here's my config string which is based on the GPIO pin usage for the T3-S3 and other parameters found from other peoples issue configs:

{"name":"[868] LilyGo_T3-S3 SX1262", "aADDR":60,"oSDA":18,"oSCL":17,"oRST":-1,"pBut":0,"led":37,"radio":0,"lNSS":7,"lDIO0":-1,"lDIO1":33,"lBUSSY":34,"lRST":8,"lMISO":3,"lMOSI":6,"lSCK":5,"lTCXOV":1.6}

Also tried adding a modem config string, but that was pretty much guessed as I could not find all of the required params:

{"mode":"LoRa","freq":866,"bw":250.0,"sf":10,"cr":5,"sw":18,"pwr":22,"cl":120,"pl":8,"gain":0,"crc":true,"fldro":1,"sat":"Norbi","NORAD":46494}

I have made small changes to the config and double checked the GPIO pin outs for the LilyGo T3-S3 and as far as I can tell they are correct.

Any pins that are not used by the hardware I have set to -1, for example OLED reset and IDIO0.

Also found conflicting info on which RADIO type to select, as the documentation does not appear to mention the SX1262.

Is it possible to increase the debug log level so that I can get some kind of clue as to what specifically is wrong ?

Any help / suggestions would be appreciated as I have exhausted all of my ideas now.

pacmac commented 2 days ago

OK, well finally managed to get it working by looking into the source code and finding that the RADIO type for SX1262 is 6, and once I changed that it all came alive.

pacmac commented 2 days ago

But I'm still not sure how to set the modem string, and dont understand why my device is 868/915 and yet the web console seems to say that it is listening on 400.13 mhz.

Screenshot 2024-06-30 at 7 50 12 PM

Do I have to set a value for all of the keys in the modem string or can I just set one or 2 ?

pacmac commented 1 day ago

the device has been up and pointed at clear sky for 1 day, and despite using a known good groundplane antenna, I have not received a single ping:

This is the output from today, yesterdays was similar with no contacts.

03:39:16 TinyGS Version 2403241 - 2403241
03:39:16 Chip  ESP32-S3 - 0
03:39:16 AXPxxx chip?
03:39:16 [SX12xx] Initializing ... 
03:39:16 [SX1262] Starting to listen to Waiting
11:39:18 ------------- Controls -------------
11:39:18 !e - erase board config and reset
11:39:18 !b - reboot the board
11:39:18 !p - send test packet to nearby stations (to check transmission)
11:39:18 ------------------------------------
11:39:35 Attempting MQTT connection...
11:39:36 Connected to MQTT!
11:40:59 [SX1262] Starting to listen to PY4-1
13:33:39 [SX1262] Starting to listen to PY4-2
13:48:39 [SX1262] Starting to listen to PY4-1
14:14:40 [SX1262] Starting to listen to PY4-4
15:04:49 [SX1262] Starting to listen to PY4-2
15:21:52 [SX1262] Starting to listen to PY4-1

As my board is not directly supported (Lilygo T3-S3).

"Custom ESP32-S3 433MHz SX1278" and "433MHz HELTEC LORA32 V3" are the only 2 options, neither of which match my board which is a 1262 868/915 so which one do I select ? - I cannot select neither and these are the only 2 options.

I now suspect that although the dashboard says it is working and the OLED is working, the radio is not, and is possibly due to the config and / or inability to select a similar board ?