Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix t-echo gps failure #3763

Merged
merged 1 commit into from
May 2, 2024
Merged

Fix t-echo gps failure #3763

merged 1 commit into from
May 2, 2024

Conversation

lewisxhe
Copy link
Contributor

@lewisxhe lewisxhe commented May 2, 2024

When I changed the T-echo factory default firmware to 2.3.7 or 2.3.6, I encountered the problem of GPS being unable to locate. I had to find the problem in the source code. I don’t know why. PIN_GPS_TX has been renamed to GPS_RX_PIN, but The pin names in t-echo have not been changed, so the default compiled firmware will not have GPS functionality.

@lewisxhe
Copy link
Contributor Author

lewisxhe commented May 2, 2024

Fixed log

//\ E S H T /\ S T / C

DEBUG | ??:??:?? 0 Filesystem files:
DEBUG | ??:??:?? 1  channels.proto (57 Bytes)
DEBUG | ??:??:?? 1  db.proto (312 Bytes)
DEBUG | ??:??:?? 1 Using analog input 4 for battery level
INFO  | ??:??:?? 1 Scanning for i2c devices...
DEBUG | ??:??:?? 1 Scanning for i2c devices on port 1
DEBUG | ??:??:?? 1 I2C device found at address 0x51
INFO  | ??:??:?? 1 PCF8563 RTC found
INFO  | ??:??:?? 1 1 I2C devices found
DEBUG | ??:??:?? 1 acc_info = 0
INFO  | ??:??:?? 1 Meshtastic hwvendor=7, swver=2.3.8.102a20d2
DEBUG | ??:??:?? 1 Reset reason: 0x0
DEBUG | ??:??:?? 1 Setting random seed 3090297759
INFO  | ??:??:?? 1 Initializing NodeDB
INFO  | ??:??:?? 1 Loading /prefs/db.proto
INFO  | ??:??:?? 1 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 1 Loaded saved devicestate version 22, with nodecount: 1
INFO  | ??:??:?? 1 File /prefs/config.proto not found
INFO  | ??:??:?? 1 Installing default LocalConfig
INFO  | ??:??:?? 1 Setting default channel and radio preferences!
DEBUG | ??:??:?? 1 Expanding short PSK #1
INFO  | ??:??:?? 1 Wanted region 0, using UNSET
INFO  | ??:??:?? 1 File /prefs/module.proto not found
INFO  | ??:??:?? 1 Installing default ModuleConfig
INFO  | ??:??:?? 1 Loading /prefs/channels.proto
INFO  | ??:??:?? 1 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 1 Loaded saved channelFile version 22
INFO  | ??:??:?? 1 File /oem/oem.proto not found
DEBUG | ??:??:?? 1 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 1 Using nodenum 0x246967f 
DEBUG | ??:??:?? 1 Expanding short PSK #1
INFO  | ??:??:?? 1 Wanted region 0, using UNSET
DEBUG | ??:??:?? 1 Using GPIO42 for button
DEBUG | ??:??:?? 1 Set Timezone to GMT0
DEBUG | ??:??:?? 1 Read RTC time from PCF8563 as 536901888
INFO  | 06:58:09 1 Setting GPS power=1
INFO  | 06:58:09 1 Waking GPS
DEBUG | 06:58:09 1 WANT GPS=1
INFO  | 06:58:09 1 Setting GPS power=1
INFO  | 06:58:09 1 Waking GPS

2.3.7.30 version firmware log

//\ E S H T /\ S T / C

DEBUG | ??:??:?? 0 Filesystem files:
DEBUG | ??:??:?? 1  channels.proto (57 Bytes)
DEBUG | ??:??:?? 1  db.proto (312 Bytes)
DEBUG | ??:??:?? 1 Using analog input 4 for battery level
INFO  | ??:??:?? 1 Scanning for i2c devices...
DEBUG | ??:??:?? 1 Scanning for i2c devices on port 1
DEBUG | ??:??:?? 1 I2C device found at address 0x51
INFO  | ??:??:?? 1 PCF8563 RTC found
INFO  | ??:??:?? 1 1 I2C devices found
DEBUG | ??:??:?? 1 acc_info = 0
INFO  | ??:??:?? 1 Meshtastic hwvendor=7, swver=2.3.7.30fbcab
DEBUG | ??:??:?? 1 Reset reason: 0x0
DEBUG | ??:??:?? 1 Setting random seed 2196796418
INFO  | ??:??:?? 1 Initializing NodeDB
INFO  | ??:??:?? 1 Loading /prefs/db.proto
INFO  | ??:??:?? 1 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 1 Loaded saved devicestate version 22, with nodecount: 1
INFO  | ??:??:?? 1 File /prefs/config.proto not found
INFO  | ??:??:?? 1 Installing default LocalConfig
INFO  | ??:??:?? 1 Setting default channel and radio preferences!
DEBUG | ??:??:?? 1 Expanding short PSK #1
INFO  | ??:??:?? 1 Wanted region 0, using UNSET
INFO  | ??:??:?? 1 File /prefs/module.proto not found
INFO  | ??:??:?? 1 Installing default ModuleConfig
INFO  | ??:??:?? 1 Loading /prefs/channels.proto
INFO  | ??:??:?? 1 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 1 Loaded saved channelFile version 22
INFO  | ??:??:?? 1 File /oem/oem.proto not found
DEBUG | ??:??:?? 1 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 1 Using nodenum 0x246967f 
DEBUG | ??:??:?? 1 Expanding short PSK #1
INFO  | ??:??:?? 1 Wanted region 0, using UNSET
DEBUG | ??:??:?? 1 Using GPIO42 for button
DEBUG | ??:??:?? 1 Set Timezone to GMT0
DEBUG | ??:??:?? 1 Read RTC time from PCF8563 as 536901888
DEBUG | 06:59:23 1 NeighborInfoModule is disabled
INFO  | 06:59:23 1 External Notification Module Disabled
INFO  | 06:59:23 1 Doing EInk init
DEBUG | 06:59:23 1 initialized, determineMode(): refresh=FAST, reason=FLAGGED_DEMAND_FAST, frameFlags=0x9
DEBUG | 06:59:23 1 Updating E-Paper... done
INFO  | 06:59:25 3 Turning on screen
DEBUG | 06:59:25 3 determineMode(): refresh=FAST, reason=FLAGGED_DEMAND_FAST, frameFlags=0xb
DEBUG | 06:59:25 3 Updating E-Paper... done
DEBUG | 06:59:26 5 Module wants a UI Frame
DEBUG | 06:59:26 5 SX126xInterface(cs=24, irq=20, rst=25, busy=17)
DEBUG | 06:59:26 5 SX126X_DIO3_TCXO_VOLTAGE defined, using DIO3 as TCXO reference voltage at 1.800000 V
INFO  | 06:59:26 5 Starting meshradio init...
DEBUG | 06:59:26 5 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | 06:59:26 5 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO  | 06:59:26 5 Radio freq=906.875, config.lora.frequency_offset=0.000
INFO  | 06:59:26 5 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30
INFO  | 06:59:26 5 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)
INFO  | 06:59:26 5 Radio myRegion->numChannels: 104 x 250.000kHz
INFO  | 06:59:26 5 Radio channel_num: 20
INFO  | 06:59:26 5 Radio frequency: 906.875000
INFO  | 06:59:26 5 Slot time: 42 msec
INFO  | 06:59:26 5 Set radio: final power level=22
INFO  | 06:59:26 5 SX126x init result 0
INFO  | 06:59:26 5 Frequency set to 906.875000
INFO  | 06:59:26 5 Bandwidth set to 250.000000
INFO  | 06:59:26 5 Power output set to 22
DEBUG | 06:59:26 5 Current limit set to 140.000000
DEBUG | 06:59:26 5 Current limit set result 0
DEBUG | 06:59:26 5 Setting DIO2 as RF switch
DEBUG | 06:59:26 5 SX126X_RXEN not defined, defaulting to RADIOLIB_NC
DEBUG | 06:59:26 5 SX126X_TXEN not defined, defaulting to RADIOLIB_NC
DEBUG | 06:59:26 5 Using MCU pin -1 as RXEN and pin -1 as TXEN to control RF switching
INFO  | 06:59:26 5 Set RX gain to boosted mode; result: 0
INFO  | 06:59:26 5 SX1262 Radio init succeeded, using SX1262 radio
DEBUG | 06:59:26 5 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=237, time 2000 ms
DEBUG | 06:59:26 5 LoRA bitrate = 118.500000 bytes / sec
INFO  | 06:59:26 5 PowerFSM init, USB power=1
DEBUG | 06:59:26 5 Enter state: BOOT
DEBUG | 06:59:26 5 [Power] Battery: usbPower=0, isCharging=0, batMv=3839, batPct=64
DEBUG | 06:59:26 5 [Screen] Screen: Started...
DEBUG | 06:59:26 5 [Screen] determineMode(): refresh=SKIPPED, reason=FRAME_MATCHED_PREVIOUS, frameFlags=0x3
INFO  | 06:59:26 5 [RangeTestModule] Range Test Module - Disabled
DEBUG | 06:59:27 6 [Screen] determineMode(): refresh=SKIPPED, reason=FRAME_MATCHED_PREVIOUS, frameFlags=0x3
DEBUG | 06:59:28 7 [Screen] determineMode(): refresh=SKIPPED, reason=FRAME_MATCHED_PREVIOUS, frameFlags=0x3
DEBUG | 06:59:29 8 [Screen] determineMode(): refresh=SKIPPED, reason=FRAME_MATCHED_PREVIOUS, frameFlags=0x3
INFO  | 06:59:30 8 [PowerFSM] Loss of power in Powered
INFO  | 06:59:30 8 [PowerFSM] Loss of power in Powered
DEBUG | 06:59:30 8 [PowerFSM] Initializing NRF52 Bluetooth
INFO  | 06:59:30 8 [PowerFSM] Initialize the Bluefruit nRF52 module
INFO  | 06:59:30 8 [PowerFSM] Bluetooth pin set to '746137'
INFO  | 06:59:30 8 [PowerFSM] Configuring the Device Information Service
INFO  | 06:59:30 8 [PowerFSM] Configuring the Battery Service
INFO  | 06:59:30 8 [PowerFSM] Configuring the Mesh bluetooth service
INFO  | 06:59:30 8 [PowerFSM] Setting up the advertising payload(s)
INFO  | 06:59:30 8 [PowerFSM] Advertising
DEBUG | 06:59:30 8 [PowerFSM] Enter state: ON
DEBUG | 06:59:30 8 [Screen] refresh=SKIPPED, reason=EXCEEDED_RATELIMIT_FAST, frameFlags=0x3
DEBUG | 06:59:30 8 [Screen] refresh=SKIPPED, reason=EXCEEDED_RATELIMIT_FAST, frameFlags=0x3
DEBUG | 06:59:31 9 [Screen] determineMode(): refresh=SKIPPED, reason=FRAME_MATCHED_PREVIOUS, frameFlags=0x3
INFO  | 06:59:32 10 [Screen] Done with boot screen...
DEBUG | 06:59:32 10 [Screen] showing standard frames
DEBUG | 06:59:32 10 [Screen] Showing 0 module frames
DEBUG | 06:59:32 10 [Screen] Total frame count: 103
DEBUG | 06:59:32 10 [Screen] Added modules.  numframes: 0
DEBUG | 06:59:32 10 [Screen] Finished building frames. numframes: 2
DEBUG | 06:59:32 10 [Screen] determineMode(): refresh=FULL, reason=FLAGGED_COSMETIC, frameFlags=0x5
DEBUG | 06:59:32 10 [Screen] Updating E-Paper... 

@caveman99 caveman99 merged commit 40e361e into meshtastic:master May 2, 2024
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants