markqvist / RNode_Firmware

RNode is an open, free and flexible digital radio interface with many uses
https://unsigned.io/rnode
GNU General Public License v3.0
186 stars 65 forks source link

LilyGO T3_v1.6.1 TCXO failure #67

Closed faragher closed 8 months ago

faragher commented 8 months ago

Board is marked 20210104. New FCC tag, some updated components, but appears identical to old version excepting LoRa module. I'll check to see if they have updated datasheets.

The firmware is much chattier on the serial line, but that might be from recent updates (1.61 to 1.69)

Serial output (hand modified for clarity) follows:

// kiss_indicate_phy_stats - 3x
C0 FEND
26 CMD_STAT_PHYPRM
04 LoRa Symbol Time
00 LoRa Symbol Time
03 LoRa Symbol Rate
D0 LoRa Symbol Rate
00 LoRa Preamble Symbols
16 LoRa Preamble Symbols
00 Preamble Time?
16 Preamble Time?
00 CSMA slot
32 CSMA slot
C0 FEND

// Radio is up
C0 FEND
06 CMD_RADIO_STATE
01 CMD_FREQUENCY
C0 FEND

// It always seems to repeat itself
C0 FEND
06 CMD_RADIO_STATE
01 CMD_FREQUENCY
C0 FEND

// kiss_indicate_channel_stats 5x
C0 FEND
25 CND_STAT_CHTM
00 Airtime
00 Airtime
00 Longterm Airtime
00 Longterm Airtime
00 Channel Utilization
00 Channel Utilization
00 Long Term Channel Utilization
00 Long Term Channel Utilization
C0 FEND

Radio reports up, but shows no waterfall and repeats channel data 1-2 times per second. Red and blue LEDs active, green off. On attempted transmit, green LEDs illuminates brightly and is steady on, RNode appears to freeze entirely at this time. No further serial communication is sent.

Detect seems to perform as expected:

C0 FEND
08 CMD_DETECT
46 DETECT_RESP
C0 FEND
C0 FEND
50 CMD_FW_VERSION
01 1
45 69
C0 FEND
C0 FEND
48 CMD_PLATFORM
80 PLATFORM_ESP32
C0 FEND
C0 FEND
49 CMD_MCU
81 MCU_ESP32
C0 FEND

It thinks it initializes correctly, but the waterfall display doesn't function, which gives a place to start digging. I'm going to check data sheets first, since this might be more obvious to someone more familiar with the firmware.

faragher commented 8 months ago

Again with the freaking undocumented power supply changes.

https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/blob/master/examples/ArduinoLoRa/LoRaReceiver/utilities.h#L160

DIO1 (pin 33?) is the TCXO enable. Pull it high, supposedly problem solved. I'll see if I can can test it, but I don't know the right way to set this up for RNodeConf, etc.

HPDIO1 according to the schematic, which is just IO33 through a resistor. Physical pin 13, not that it matters.

faragher commented 8 months ago

So . . . apparently it's supported, but not in RNodeConf. Not a firmware issue.