Closed porkcharsui closed 1 year ago
This issue has been mentioned on Meshtastic. There might be relevant details there:
https://meshtastic.discourse.group/t/lilygo-t3s3-v1-1/7405/6
Does this board have an actual SX1280 radio (2.4 GHz)? The T3S3 can have different radios.
Board used to produce that log was ordered here: https://www.aliexpress.us/item/3256804440825086.html - specifically SX1280 2.4G With PA model
The silkscreen on the board reads T3S3 V1.1 2021205
the radio is initialized with the wrong frequency range. there's code in there that should switch to LORA_24 and reboot in that case, but a recent refactor to support the Sub-GHz chips might have invalidated that check.
INFO | ??:??:?? 7 Radio freq=906.875, config.lora.frequency_offset=0.000
INFO | ??:??:?? 7 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30
INFO | ??:??:?? 7 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)
INFO | ??:??:?? 7 Radio myRegion->numChannels: 104 x 250.000kHz
INFO | ??:??:?? 7 Radio channel_num: 20
INFO | ??:??:?? 7 Radio frequency: 906.875000
INFO | ??:??:?? 7 Slot time: 42 msec
INFO | ??:??:?? 7 Set radio: final power level=13
INFO | ??:??:?? 12 SX128x init result -705
@caveman99 Maybe we can do the same as for SX1268 radios? Overriding getFreq()
to set it to 2.4GHz when there is no saved_freq
yet, such that it initializes on the first attempt.
i chose the approach to switch region and reboot because BW setting is different in 2.4GHz too. The slots are not compatible and need to be remapped.
Ah, I see. Actually it is not rebooting now because the error returned by RadioLib is different. -705 is SPI command timeout. Invalid frequency should be -12.
yes, saw that as well. maybe we need to compare to rediolib_ok, since 1280 is tried to init last anyway.
It could also be a wrong DIO2 / BUSY assignment (e.g. 36 instead of 34). In that case I saw random failures when I tested with the SX1262 chipset. If you look at the variant.h you'll notice that SX1280 has different DIO assignments than SX1262/SX1276 although these three share the same schematics!?
it's right according to the scematics (the 1280 uses a module called HPD-17PA) - what intrigues me is that the Interrupt TX example from Lilygo is working with radiolib 5.5.0 but not with 5.7.0 any more.
@caveman99 Seems related to https://github.com/jgromes/RadioLib/issues/716
@caveman99 Seems related to jgromes/RadioLib#716
@GUVWAF indeed good catch - will be fixed in Firmware 2.1.7 or in current Master branch
Category
Hardware Compatibility
Hardware
Other
Firmware Version
2.1.4.958d2cf
Description
Attempted to boot with
firmware-tlora-t3s3-v1-2.1.4.958d2cf.bin
flashed to a new T3S3 V1.1. It appears the radio isn't being detected.Code: https://github.com/meshtastic/firmware/blob/958d2cf630559c6864da70560957efbf0813af2f/src/main.cpp#L630 Related discussion: https://meshtastic.discourse.group/t/lilygo-t3s3-v1-1/7405/5
Relevant log output