How to get the device manufacturer name attached to the serial port - serial-port

I want to know a method in Win32 to get the device manufacturer name attached with the serial port.
I have already tried the SetupDiGetDeviceRegistryProperty API with the SPDRP_MFG
option but getting manufacturer name which is mentioned by the driver. What I want manufacturer name associated with the device not with the driver.
My Device is a USB device and appearing as a USB Serial Port(COM4) in the device manager.
Thanks

A serial device does not send this type of meta data to the computer. There is no hand-shaking done like in a USB connection where the device identifies itself. With a serial device, the computer just starts sending or receiving data.

Run the USBView sample which comes with the WDK to get the manufacturer name and other information about the USB devices.

Related

Uniquely identify computer connected to Arduino

Is there a way to uniquely identify the computer connected to my Arduino, say using a MAC address or something similar?
Assume I have some data stored on the EEPROM of my Arduino UNO, and my PC's MAC address is stored in the uploaded sketch. Now, I want to compare it with the MAC address of the connected PC, and if the two do not match, I clear the data stored on the EEPROM of the board (so that the currently connected PC isn't able to read it).
Is there any way to get the MAC address of the PC (or something similar) that can help me identify the PC uniquely?
If you use a custom-made Serial port program that runs on your different PCs, you could send some message to the Arduino after connecting. But just from Arduino and the Serial Monitor in the IDE, it is not possible.

Attach emulated serial port to software and get results

I want to get comport on my PC without connecting any peripheral device and outputs from there like some device attached to that port. Can any software do that or commands can do that for me?
Here you can find a free application which can emulate unlimited number of ports and send one port output to another's input.

Underlying hardware beneath virtual Com port

I have a device connected to USB port via USB cable to my PC and in device Manager it says - > "XYZ corp Virtual COM port (COM A)"
Is this is same as Serial Com Port.?What is the underlying hardware under it both at device side and Host Side - a Uart or a USB or both at either end respectively?
It sounds like your USB device uses a driver that provides a serial port interface inside your computer. This means that other software can use the serial port APIs that Windows provides to connect to it and use it as a serial port. That software doesn't need to know the details of your USB device; it just needs to know about using serial ports in Windows. Windows ships with a driver that is often used to do this, and that driver is named usbser.sys. Your device might be using usbser.sys or it might be using some other driver.
The serial data is transferred via your computer's USB port and a USB cable. If you look at the signals on the USB cable, you will not see typical serial signals: you will see regular USB packets that just happen to be carrying that data needed for a serial port.
The USB device on the end of that cable might then translate that data into serial signals and act like a normal serial port, or that data might just be used directly inside the device. Without a link to the product in question, it is hard to tell you more than that.

Implementing I2C slave with FT201XB via USB

I've been trying to test a FT201XQ USB-I2C breakout board: UMFT201XB-01, so I can connect it to a master device such as an Arduino and sniff what that device is sending through I2C.
To see the output of the slave device I have successfully configured a Virtual COM PORT by installing the D2XX drivers provided by ftdchip.com. I can open the serial port through puTTY and everything seems fine in that regard.
Then, i've loaded the "master_writer" example on my Arduino, which sends 1 byte at a time to an address (0x22 is specified in the UM201XB-01 datasheet as the default address).
Nothing seems to happen in the COM port that i've earlier opened. Do I need to configure/program the FTDI device in some way? In that case, how can I do it, in a general way?
UMFT201XB-01 board http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_UMFT201_220_230XB.pdf
Thank you in advance, and sorry if this is a "noob" question : P

WinUSB driver for Arduino

I'm using an Arduino to read data from the web and display it. I can easily pass the data as serial using the supplied drivers, because they identify the COM port so I can send serial to the COM port.
However, I want to use 'real' USB techniques so the device can be plugged in and out like a normal USB device. I'm looking at using WinUSB as the driver. However, USB is all new to me. Is there an .inf file that uses WinUSB and an Arduino (I have an Uno)?
The lack of information on this is making me think I am going about this incorrectly.
Turns out that an Arduino Uno is not a genuine USB device.
It acts as a Serial to USB adapter. Consequently USB drivers don't talk to it.
I got round this by writing a sketch which reported back what device it was when it got the correct query from the PC.
On the PC I just iterated the Serial ports and sent the query to each port. The one that replied was the Arduino.
After that I record the port number and send serial data to the Arduino.
To learn the USB portion, maybe you could combine V-USB and the UNO?
Check out V-USB.
V-USB is a software-only implementation of a low-speed USB device for Atmel’s AVR® microcontrollers, making it possible to build USB hardware with almost any AVR® microcontroller, not requiring any additional chip.
While not necessarily Arduino, it may provide you the learning exprience you want, and let you use incorporate your UNO device.

Resources