Skip to content

Settings will not persist after device restart #265

@dfloer

Description

@dfloer

Hardware: Heltec V2.1
Meshtastic: 1.2.55
Python: 3.10.2
OS: Windows 11 Pro build 22000

I'm trying to write configuration settings to the device, for example meshtastic.exe --port COM3 --setalt x --setlat a.b --setlon c.d. The settings sometimes take effect, but usually do not. Calling --export-config repeatedly will produce different configurations, with settings appearing and disappearing without any configuration changes actually happening. Setting WiFi settings also seems to always fail in 20+ different attempts. This seems to have started when I upgraded to Windows 11.

Someone on Discord mentioned that Windows 11 may reset the serial device, and something definitely is resetting the device. Keeping this in mind, I wondered if it was getting reset before the settings were persisted on the device, so I bumped the sleep in stream_interface:92 up to 1 second and tried changing the settings again. This time my settings persisted after the device rebooted.

I'm not sure this is the only/best workaround, but it's annoying not being able to set any settings reliably, and this seems to "fix" the problem (or help fix, I tried it 5x and it worked each time). I did not have any issues flashing the device, either using the install script or meshtastic-flasher.

If there's anything else I can do to help troubleshoot this, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions