ttrftech / NanoVNA

Very Tiny Palmtop Vector Network Analyzer
1.06k stars 297 forks source link

Vbat negative and config not restored #91

Open helgein opened 4 years ago

helgein commented 4 years ago

Firmware: 0.3.1-20191021

Config is not stored, battery icon is empty, vbat returns -1. Battery works fine and powers the device for multiple minutes without usb cable plugged in. After power cycling, all display related configuration of traces, format, channels are lost and a "weird default" shows all 4 traces.

Flashed the "Eraser":

C:\Dell>"C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.6\Bin\DfuSeCommand.exe" -c -d --fn FILLFF.dfu
...

Flashed the image:

C:\Dell>"C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.6\Bin\DfuSeCommand.exe" -c -d --fn ch.dfu
1 Device(s) found :
Device [1]: STM Device in DFU Mode, having [2] alternate targets
Target 00: Upgrading - Download Phase (100)...Duration: 00:00:10
Upgrade successful !
edy555 commented 4 years ago
qrp73 commented 4 years ago

it seems that it's better to make reset after clearconfig, because some peoples trying to do saveconfig just after clearconfig, which leads to write wrong config back. I already seen such reports

edy555 commented 4 years ago

added guide text after doing clearconfig at https://github.com/ttrftech/NanoVNA/commit/e6035a5d96d0fea00d4cd7d5479a8ce865ebd38b

ZeroChaos- commented 4 years ago

I have done a clearconfig and power cycle but vbat shows -1 and I have no battery icon at all. I am using c40d78d80fcba820a9260cfe16b83349537f9a34 (today).

I bought a nanovna off amazon from some no name seller, so I can't really say much about the board other than the battery indicator used to work.

RolandWa commented 4 years ago

Hi Zero,

You have to check if you have soldered diode to the power supply sampling point, see the web page below :

https://www.google.com/amp/s/dw1zws.com/enabling-battery-status-indicator-on-nanovna/amp/

Roland

pon., 9 mar 2020, 18:13 użytkownik Zero_Chaos notifications@github.com napisał:

I have done a clearconfig and power cycle but vbat shows -1 and I have no battery icon at all. I am using c40d78d https://github.com/ttrftech/NanoVNA/commit/c40d78d80fcba820a9260cfe16b83349537f9a34 (today).

I bought a nanovna off amazon from some no name seller, so I can't really say much about the board other than the battery indicator used to work.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ttrftech/NanoVNA/issues/91?email_source=notifications&email_token=AGWQJMQSM5R7WC6IQZOS4R3RGUWVVA5CNFSM4JGBNQQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOIFGMA#issuecomment-596661040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGWQJMSVMPFTN3GVMEFS24LRGUWVVANCNFSM4JGBNQQA .

ZeroChaos- commented 4 years ago

thanks for the pictures, that is my problem.