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

Heltec V3 Crash with Python CLI #669

Open
BenParker2022 opened this issue Sep 8, 2024 · 13 comments
Open

Heltec V3 Crash with Python CLI #669

BenParker2022 opened this issue Sep 8, 2024 · 13 comments

Comments

@BenParker2022
Copy link

I have narrowed it down to a problem with the API. i have tried different computers, different installations of drivers, meshtastic, python, pip, and also changed between two devices. when trying to post a command like "meshtastic --info" the device shuts down and starts back up again. when using the command "meshtastic --noproto" the device stays on and displays information. I am new at this and if I messed something up or did something wrong let me know. but have not seen this problem on any forum or discord group.

@pdxlocations
Copy link
Member

Have you tried different USB cables? USB ports? I'm thinking it could be a power issue. Have you updated your CLI? FW? Tried a full erase and reinstall of the firmware on the node? I'm running a V3 without issues using the CLI.

@BenParker2022
Copy link
Author

I have tried different usb ports. The usb cable is an interesting thought though. I only have one that allows me to connect to the node so I will go buy a new one. I have tried the update and the erase and flash for the latest 3 stable firmware versions. Not sure if this is anything but When running the noproto I saw a text in red that said “could not open / read /oem/oem.proto. Really got thrown in a loop here. Trying to learn all this stuff at the same time is fun but at some points like right now is aggravating.

@BenParker2022
Copy link
Author

Also I tried turning on my battery to try and see if the problem was the power supply. It did not change it turning off when sending a command.

@thebentern
Copy link
Contributor

thebentern commented Sep 8, 2024

Are you running on windows? I've definitely noticed some inconsistently bad handling of DTR/RTS by pySerial in Windows vs OSX and Linux.

@BenParker2022
Copy link
Author

Yes Windows 11. I'm not familiar with this, are you saying the computer's side is the problem? Also what driver version is everyone running for Silicon labs? Should I try using Linux to see if windows is the culprit?

@slash128v6
Copy link

I am having this same issue. I have 2x Heltec V3 devices that flash fine but when I attempt to use the CLI the devices just restart. Not showing "rebooting" but the screen goes blank and the device restarts. No settings are saved. Tried several cables (they all work for flashing). Tried several laptops all running Win11 and Python 3.12.

@BenParker2022
Copy link
Author

Do you also have any VPN or firewall configuration? Trying to determine if that is the issue.

@slash128v6
Copy link

No VPN. I tried with Windows Defender firewall enabled and disabled, same result. Seems to be a Windows thing though, as CLI works for me using Linux.

@BenParker2022
Copy link
Author

I am able to run meshtastic --noproto fine. I think it is a problem with the API implementation possibly.

@slash128v6
Copy link

Same for me.

@BenParker2022
Copy link
Author

You said running Linux is fine though? Might give that a try

@slash128v6
Copy link

Yes, CLI using Ubuntu Linux 22.04 in VMware Workstation 17 on Windows 11 works for me.

@BenParker2022
Copy link
Author

I was able to run it fine on a computer running windows 10. I think it might be a problem with windows thinking the node is a HID mouse or something. Definitely not the actual python script or the API. Still trying to figure this out.

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

No branches or pull requests

4 participants