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

Connect NanoVNA-H to Windows 7 Machine and Assign COM Port #62

Closed
rpi-maker opened this issue Oct 28, 2021 · 1 comment
Closed

Connect NanoVNA-H to Windows 7 Machine and Assign COM Port #62

rpi-maker opened this issue Oct 28, 2021 · 1 comment

Comments

@rpi-maker
Copy link

Updated firmware on NanoVNA-H to current version 1.0.70, Windows 7 shows "ChibiOS/RT Virtual COM Port" under Universal Serial Bus devices, but won't assign an actual COM Port Number under Ports (COM & LPT) in Windows Computer Management - Device Manager.

Running Windows 7 Professional with SP1
Installed Microsoft Visual C++ Redistributable packages
Successfully Installed STSW-STM32102 - STM32 Virtual COM Port Driver (VCP_V1.5.0_Setup_W7_x64_64bits.exe)

Trying to connect to NanoVNA-Saver, but wont connect without a COM port assigned
https://github.com/NanoVNA-Saver/nanovna-saver

Any help would be appreciated, maybe an issue with the firmware or need a specific Windows 7 driver?

Also, possibly related to the following issue:

"Cannot connect via USB immediately after plugging in" #58

NanoVNA-H USB Connection Details on Windows 7 Machine
=========================== USB Port8 ===========================

Connection Status : 0x01 (Device is connected)
Port Chain : 1-1-8

  ========================== Summary =========================

Vendor ID : 0x0483 (STMicroelectronics)
Product ID : 0x5740
USB Version : 1.10
Port maximum Speed : High-Speed
Device maximum Speed : Full-Speed
Device Connection Speed : Full-Speed
Self powered : yes
Demanded Current : 100 mA
Used Endpoints : 4

  ======================== USB Device ========================

    +++++++++++++++++ Device Information ++++++++++++++++++

Device Description : ChibiOS/RT Virtual COM Port
Device Path 1 : \?\USB#VID_0483&PID_5740#400#{a5dcbf10-6530-11d2-901f-00c04fb951ed} (GUID_DEVINTERFACE_USB_DEVICE)
Device Path 2 : \?\USB#VID_0483&PID_5740#400#{f445ae01-1799-49a0-b833-8ebf2fec9ebb}
Kernel Name : \Device\USBPDO-7
Device ID : USB\VID_0483&PID_5740\400
Hardware IDs : USB\VID_0483&PID_5740&REV_0200 USB\VID_0483&PID_5740
Driver KeyName : {88bae032-5a81-49f0-bc3d-a4ff138216d6}\0014 (GUID_DEVCLASS_USBDEVICE)
Driver : system32\DRIVERS\WinUsb.sys (Version: 6.1.7601.17514 Date: 2010-11-20)
Driver Inf : C:\Windows\inf\oem117.inf
Legacy BusType : PNPBus
Class : USBDevice
Class GUID : {88bae032-5a81-49f0-bc3d-a4ff138216d6} (GUID_DEVCLASS_USBDEVICE)
Service : WinUSB
Enumerator : USB
Location Info : Port_#0008.Hub_#0003
Location IDs : PCIROOT(0)#PCI(1D00)#USBROOT(0)#USB(1)#USB(8)
Container ID : {760c3622-4a59-596d-bacb-13523c1ebcfe}
Manufacturer Info : STMicroelectronics
Capabilities : 0x14 (Removable, UniqueID)
Status : 0x0180600A (DN_DRIVER_LOADED, DN_STARTED, DN_DISABLEABLE, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER)
Problem Code : 0
HcDisableSelectiveSuspend: 0
EnableSelectiveSuspend : 0
SelectiveSuspendEnabled : 0
EnhancedPowerMgmtEnabled : 0
IdleInWorkingState : 0
WakeFromSleepState : 0
Power State : D0 (supported: D0, D2, D3, wake from D0, wake from D2)

    ---------------- Connection Information ---------------

Connection Index : 0x08 (Port 8)
Connection Status : 0x01 (DeviceConnected)
Current Config Value : 0x01 (Configuration 1)
Device Address : 0x08 (8)
Is Hub : 0x00 (no)
Device Bus Speed : 0x01 (Full-Speed)
Number Of Open Pipes : 0x03 (3 pipes to data endpoints)
Pipe[0] : EndpointID=2 Direction=IN ScheduleOffset=5 Type=Interrupt
Pipe[1] : EndpointID=1 Direction=OUT ScheduleOffset=0 Type=Bulk
Pipe[2] : EndpointID=1 Direction=IN ScheduleOffset=0 Type=Bulk
Data (HexDump) : 08 00 00 00 12 01 10 01 02 00 00 40 83 04 40 57 ...........@..@W
00 02 01 02 03 01 01 01 00 08 00 03 00 00 00 01 ................
00 00 00 07 05 82 03 08 00 FF 05 00 00 00 07 05 ................
01 02 40 00 00 00 00 00 00 07 05 81 02 40 00 00 ..@..........@..
00 00 00 00 ....

---------------------- Device Descriptor ----------------------

bLength : 0x12 (18 bytes)
bDescriptorType : 0x01 (Device Descriptor)
bcdUSB : 0x110 (USB Version 1.10)
bDeviceClass : 0x02 (Communications and CDC Control)
bDeviceSubClass : 0x00
bDeviceProtocol : 0x00 (No class specific protocol required)
bMaxPacketSize0 : 0x40 (64 bytes)
idVendor : 0x0483 (STMicroelectronics)
idProduct : 0x5740
bcdDevice : 0x0200
iManufacturer : 0x01 (String Descriptor 1)
Language 0x0409 : "STMicroelectronics"
iProduct : 0x02 (String Descriptor 2)
Language 0x0409 : "ChibiOS/RT Virtual COM Port"
iSerialNumber : 0x03 (String Descriptor 3)
Language 0x0409 : "400"
bNumConfigurations : 0x01 (1 Configuration)
Data (HexDump) : 12 01 10 01 02 00 00 40 83 04 40 57 00 02 01 02 .......@..@W....
03 01 ..

------------------ Configuration Descriptor -------------------

bLength : 0x09 (9 bytes)
bDescriptorType : 0x02 (Configuration Descriptor)
wTotalLength : 0x0043 (67 bytes)
bNumInterfaces : 0x02 (2 Interfaces)
bConfigurationValue : 0x01 (Configuration 1)
iConfiguration : 0x00 (No String Descriptor)
bmAttributes : 0xC0
D7: Reserved, set 1 : 0x01
D6: Self Powered : 0x01 (yes)
D5: Remote Wakeup : 0x00 (no)
D4..0: Reserved, set 0 : 0x00
MaxPower : 0x32 (100 mA)
Data (HexDump) : 09 02 43 00 02 01 00 C0 32 09 04 00 00 01 02 02 ..C.....2.......
00 00 05 24 00 10 01 05 24 01 00 01 04 24 02 02 ...$....$....$..
05 24 06 00 01 07 05 82 03 08 00 FF 09 04 01 00 .$..............
02 0A 00 00 00 07 05 01 02 40 00 00 07 05 81 02 .........@......
40 00 00 @..

    ---------------- Interface Descriptor -----------------

bLength : 0x09 (9 bytes)
bDescriptorType : 0x04 (Interface Descriptor)
bInterfaceNumber : 0x00
bAlternateSetting : 0x00
bNumEndpoints : 0x01 (1 Endpoint)
bInterfaceClass : 0x02 (Communications and CDC Control)
bInterfaceSubClass : 0x02 (Abstract Control Model)
bInterfaceProtocol : 0x00 (No class specific protocol required)
iInterface : 0x00 (No String Descriptor)
Data (HexDump) : 09 04 00 00 01 02 02 00 00 .........

@rpi-maker
Copy link
Author

I solved this myself. Ended up using Zadig to replace the drivers for the "ChibiOS/RT Virtual COM Port". For others with the same problem, try the following:

  1. Install Microsoft Visual C++ Redistributable packages
  2. Install STSW-STM32102 - STM32 Virtual COM Port Driver (VCP_V1.5.0_Setup_W7_x64_64bits.exe) from https://www.st.com/en/development-tools/stsw-stm32102.html
  3. In Zadig - Options - List All Devices.
  4. In Zadig - Select "ChibiOS/RT Virtual COM Port" device in the drop down list
  5. In Zadig - Select "USB Serial (CDC)" as the replacement driver
  6. In Zadig - Upgrade Driver
  7. Verify Windows Computer Management - Device Manager assigned a COM Port # for the NanoVNA
  8. Open NanoVNA-Saver - Serial Port Control (lower left) should show COM Port # assigned to NanoVNA (for me "COM16 (NanoVNA)" is listed)
  9. NanoVNA-Saver - Serial Port Control - Connect to Device

Hope this helps someone else get NanoVNA-Saver up and running with the current firmware.

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

1 participant