background image

08/09/2020

NanoVNA User Guide | NanoVNA User Guide

https://cho45.github.io/NanoVNA-manual/#7-

トレース状態

34/51

There are various ways to write it, but here I will explain using 

dfu-util

 . dfu-util is a cross-platform tool, and binaries are also

provided for Windows, so you can download and use it.

Writing with dfu-util (Ubuntu)

You can  nd dfu-util in the standard package repository.

sudo apt-get install dfu-util 
dfu-util --version

Boot the device in DFU mode. Use one of the following methods to enter DFU mode.

Turn on the power by jumpering the BOOT  pin on the PCB. (After turning on the power, remove the jumper.) The screen
becomes white but it is normal.

CONFIG

 

→DFU

 

RESET AND ENTER DFU

 Select

Execute the following command. build/ch.bin describes the path to the .bin of the downloaded  rmware  le.

dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/ch.bin 

Writing with dfu-util (macOS)

We recommend using 

homebrew

 to install.

Install the brew command.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

Install the dfu-util command.

Summary of Contents for NanoVNA

Page 1: ...dforoperation iii BasicsofNanoVNA iv OscillationfrequencyofNanoVNA 2 Firstthing 3 inputmethod 4 Howtoreadthescreen i Mainscreen a 1 START2 STOPfrequency b 3 Marker c 4 Calibrationstatus d 5 Referencep...

Page 2: ...Tracechannel ii marker iii Timedomainoperation a Timedomainbandpass b Timedomainlowpassimpulse c Timedomainlowpassstep a Stepresponseexample d Timedomainwindow e Settingthewavelengthreductionfactor Ve...

Page 3: ...version rmware c Buildityourself ii Howtowritethe rmware a Writingwithdfu util Ubuntu b Writingwithdfu util macOS c Writingwithdfu util Windows10 iii Howtowritethe rmware WindowsGUI a Convertthe lefo...

Page 4: ...08 09 2020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 4 51 iii Cablecheck iv Commonmode ltermeasurement...

Page 5: ...chasdiscrepancieswiththelatest rmware ItisalsoavailableinPDFformatontheReleasespageonGitHub https github com cho NanoVNA manual releases WhatisNanoVNA ThereareseveraltypesofNanoVNAhardwareandthisdocum...

Page 6: ...thefrequencycharacteristicsofre ectedpowerandpassedpowerofahighfrequency network RFNetwork NanoVNAmeasuresthefollowingfactors InputvoltageI Qsignal I Qsignalofre ectedvoltage I Qsignalofpassingvoltage...

Page 7: ...o MHz Frequenciesabovethisuseharmonicmode Thefundamentalwaveisnot attenuatedeveninharmonicmode Theusagemodesforeachfrequencyareasfollows Upto MHz fundamentalwave From MHzto MHz rdharmonic MHzto MHz th...

Page 8: ...NanoVNA User Guide https cho45 github io NanoVNA manual 7 8 51 Firstthing Itmustalwaysbecalibrated rstbeforeitcanbeused Initiallycalibrateasfollows MakesureSTARTisat kHz MakesureSTOPis MHz Calibrateac...

Page 9: ...noVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 9 51 inputmethod TheNanoVNAhasthefollowinginputs Touchpanellongtap Leverswitch L Llongpress R Rlongpress Push Pushandhold Pow...

Page 10: ...s cho45 github io NanoVNA manual 7 10 51 Howtoreadthescreen Mainscreen 1 START2 STOPfrequency Displaystherespectivefrequencieswhenstart stopisspeci ed 3 Marker Thepositionofeachmarkeronthetraceisdispl...

Page 11: ...ompensationisbeingusedforerrorcorrection D directivityIndicatesthaterrorcorrectionisapplied R refrectiontrackingIndicatesthaterrorcorrectionisapplied S sourcematchIndicatesthaterrorcorrectionisapplied...

Page 12: ...noVNA manual 7 12 51 ChannelCH re ection format LOGMAG Scaleis10dB Currentvalueis dB Inaddition thechanneldisplayisreversedfortheactivetrace 8 Batterystatus Ifthebatteryisinstalledandis D2 alreadymoun...

Page 13: ...io NanoVNA manual 7 13 51 9 CENTERfrequency10 span Whenthecenterfrequencyandspanarespeci ed therespectivefrequenciesaredisplayed Menuscreen 11 Menu Youcandisplaythemenubythefollowingoperations Whenyo...

Page 14: ...eypadscreen 12 Numerickeys Tapanumbertoenteronecharacter 13 Backkey Deleteonecharacter Ifyouhavenotenteredanycharacters theentryiscanceledandthepreviousstatusisrestored 14 Unitkey Immediatelyendsthein...

Page 15: ...08 09 2020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 15 51 15 Input eld Theinputitemnameandtheenterednumberaredisplayed...

Page 16: ...08 09 2020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 16 51 Startmeasurement Basicmeasurementsequence 1 Setthefrequencyrangetomeasure 2 Calibrate 3 ConnectDUT...

Page 17: ...mationandgiveasomewhatcorrectdisplay Thishappensif youchangethefrequencyrangeafterloadingthecalibrationdata Atthistime thedisplayofthecalibrationstatusonthescreenis cn D R S T X nisthedatanumberyouare...

Page 18: ...ecablestotheCH andCH ports connectthecableswiththethroughconnector CAL CALIBRATE THRU and execute 7 Finishcalibrationandcalculateerrorcorrectioninformation CAL CALIBRATE DONE 8 Specifythedatanumberand...

Page 19: ...etracecandisplayonlywhatyouneed DISPLAY TRACE TRACE n Selecttoswitchthedisplay Therearethefollowingmethodstoswitchtheactivetrace Tapthetracemarkeryouwanttoactivate DISPLAY TRACE TRACE n Selecttodispla...

Page 20: ...OLAR Polarcoordinateformat LINEAR Absolutevalueofmeasuredvalue REAL Realnumberofmeasuredvalue IMAG Imaginarynumberofmeasuredvalue RESISTANCE Resistancecomponentofthemeasuredimpedance REACTANCE Reactan...

Page 21: ...maindata DISPLAY TRANSOFRM TRANSFORM ON Selecttoconvertthemeasurementdatatothetimedomain TRANSFORM ON Ifisenabled the measurementdataisimmediatelytransformedanddisplayedinthetimedomain Thetimedomainan...

Page 22: ...nbandpass Inbandpassmode youcansimulatetheDUT sresponsetoanimpulsesignal Thetraceformat LINEAR LOGMAG SWR canbesetto Belowisanexampleoftheimpulseresponseofabandpass lter Timedomainlowpassimpulse Inlow...

Page 23: ...https cho45 github io NanoVNA manual 7 23 51 Timedomainlowpassstep Inlowpassmode youcansimulateTDR Inlowpassmode thestartfrequencymustbesetto kHzandthestopfrequencymustbe setaccordingtothedistanceyouw...

Page 24: ...08 09 2020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 24 51 short Stepresponseexample Capacitiveshort Inductiveshort...

Page 25: ...VNA manual 7 25 51 Capacitivediscontinuity Cinparallel Inductivediscontinuity Linseries Timedomainwindow Themeasurablerangeisa nitenumber andthereareminimumandmaximumfrequencies Windowscanbeusedtosmoo...

Page 26: ...on Thisisalwaysstatedinthecablespeci cations Inthetimedomain thedisplayedtimecanbedisplayedintermsofdistance Thewavelengthreductionrateusedfordistance display DISPLAY TRANSFORM VELOCITY FACTOR canbese...

Page 27: ...tfrequencyandstopfrequency Setcenterfrequency span Zerospan Settingthestartfrequencyandstopfrequency Each STIMULUS START STIMULUS STOP andselectingandsetting Setcenterfrequency span Each STIMULUS CENT...

Page 28: ...rilystopthemeasurement Calibrationandsetuprecall Youcansaveupto5calibrationdata TheNanoVNAloadsthedataofnumber0immediatelyafterstarting Calibrationdataisdatathatincludesthefollowinginformation Frequen...

Page 29: ...ecurrentsettingsbyselecting CAL RESET Youcanresetthecurrentcalibrationdatabyselecting Ifyou RESET wanttorecalibrate youmustdo CAL CORRECTION Indicateswhethererrorcorrectioniscurrentlybeingperformed Yo...

Page 30: ...generalsettingsforthedevice Touchpanelcalibrationandtesting CONFIG TOUCH CAL Selecttocalibratethetouchpanel Ifthereisalargedi erencebetweentheactualtappositionandthe recognizedtapposition thiscanbesol...

Page 31: ...youreleaseitfromthe touchpanel itreturnstotheoriginalstate Saveinstrumentsettings CONFIG SAVE Selecttosavethegeneralsettingsofthedevice Generaldevicesettingsaredatathatincludesthefollowing information...

Page 32: ...ttps cho45 github io NanoVNA manual 7 32 51 CONFIG VERSION Selecttodisplaytheversioninformationofthedevice Firmwareupdate CONFIG DFU RESET AND ENTER DFU SelecttoresetthedeviceandenterDFU DeviceFirmwar...

Page 33: ...ersionedandisfrequentlydeveloped GitHubreleases CircleCIbuild GitHubreleaseshasareasonablystablereleaseversionofthe rmware CircleCIhasallthe rmwarepercommit Usethisifyouwanttotrythelatestfeaturesorche...

Page 34: ...sion BootthedeviceinDFUmode UseoneofthefollowingmethodstoenterDFUmode TurnonthepowerbyjumperingtheBOOT pinonthePCB Afterturningonthepower removethejumper Thescreen becomeswhitebutitisnormal CONFIG DFU...

Page 35: ...gcommand build ch bindescribesthepathtothe binofthedownloaded rmware le dfu util d 0483 df11 a 0 s 0x08000000 leave D build ch bin Writingwithdfu util Windows10 ForWindows connectingtheNanoVNAinDFUmod...

Page 36: ...lSerialBuscontrollers of DeviceManager and execute Uninstalldevice ThedriverwillbeinstalledautomaticallywhentheUSBconnectorisremovedandreinserted Next placedfu util Downloadandextractdfu util win zipf...

Page 37: ...ser Guide https cho45 github io NanoVNA manual 7 37 51 Draganddropdfu util exefromExplorertoPowerShelltoinsertthepathautomatically Thefollowingso version youcanstartto whentheversiondisplayofdfu utilw...

Page 38: ...scribesthepathtothe binofthedownloaded rmware le C dfu util dfu util exe d 0483 df11 a 0 s 0x08000000 leave D build ch bin Howtowritethe rmware WindowsGUI ForthosewhoarenotfamiliarwithCUI somecomplica...

Page 39: ...de https cho45 github io NanoVNA manual 7 39 51 isincluded Convertthe leformatwithDFUFileManager First startDFUFileManager I want to GENERATE a DFU file from S19 HEX or BIN files Choose S19 or Hex Cli...

Page 40: ...Writing rmwarewithDfuSeDemo FirstbootthedeviceinDFUmode UseoneofthefollowingmethodstoenterDFUmode TurnonthepowerbyjumperingtheBOOT pinonthePCB Afterturningonthepower removethejumper Thescreen becomesw...

Page 41: ...08 09 2020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 41 51 Selectthe dfu leyousavedearlier...

Page 42: ...08 09 2020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 42 51 Upgrade Clickthebutton...

Page 43: ...020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 43 51 Afterwriting thisscreenwill Leave DFU mode appear ClickthebuttontoexitDFUmode Thedevicewillresetandbootwiththenew...

Page 44: ...ildthe rmwarewith git clone git github com ttrftech NanoVNA git cd NanoVNA git submodule update init recursive make BuildwithDocker Youcanusedockertobuildwithoutanyhassles dockerisafree cross platform...

Page 45: ...nbedonebyGUI byintroducingCortex DebugExtension Iwillomittheplatform dependentpart butinadditiontotheabove thefollowingisrequired openocd VSCode Cortex Debug Cortex DebugissearchedfromVSCodeExtensions...

Page 46: ...Link interface stlink cfg wo interface jlink cfg replaceitwith version 0 2 0 configurations type cortex debug servertype openocd request launch name OpenOCD Debug executable build ch elf configFiles i...

Page 47: ...Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 47 51 IfyoudoStartDebugging F5 OpenOCDwillautomaticallystartandthe rmwarewillbetransferredafterthebuildbymake Whenthetransferiscomplete...

Page 48: ...08 09 2020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 48 51 svdFile Ifisspeci ed thede nedMCUregisterswillbedisplayedinthedebugscreen...

Page 49: ...08 09 2020 NanoVNA User Guide NanoVNA User Guide https cho45 github io NanoVNA manual 7 49 51...

Page 50: ...mpleofuse Bandpass lteradjustment TODO Antennaadjustment HereisanexampleofusingNanoVNAasanantennaanalyzer Thefollowingtwopointsareimportantinadjustingtheantenna Whethertheantennaisinatuned resonantsta...

Page 51: ...ethefrequencyisthetuningpoint ifthereisadeviation adjusttheantennasothatthetuningpointcomestothetargetfrequency Ifthetuningpointisatthedesiredfrequency makesurethattrace0 whichisdisplayingSWR isdispla...

Reviews: