2024-02-20 02:47 AM
Hi Team,
We are using the STM32F103RDT6 microcontroller in one of our projects. The end-user application of our project is a laptop vending machine. Simply put, students can acquire laptops/tablets by using their IDs. However, we are facing difficulties in verifying whether the laptops/tablets returned by the students are the same devices they took. All of the devices are Type-C only.
Therefore, we are planning to automatically read the Vendor ID (VID) and Product ID (PID) of the devices (laptops/tablets) using the STM32 microcontroller. Can you suggest or help us with the procedure to make this happen? Is it possible to read the Product ID using STM32?
2024-02-20 02:53 AM
Surely, the VID & PID are properties of the USB Device (ie, your STM32) - not the Host (ie, the laptop) ?
:thinking_face:
2024-02-20 10:58 PM
It sounds like, you have a misunderstanding about USB VID and PID:
as Andrew Neil has pointed out: the VID and PID are provided by a USB Device:
If you connect a laptop with an USB Device - this USB device (your STM32 MCU) will send the VID and PID:
So, I assume this use case:
What you could do:
2024-02-21 01:10 AM - edited 2024-02-21 01:23 AM
@tjaekel wrote:
- You need SW on your laptop: STM32 with USB cannot "solve" your issue [alone].
^^^ This! ^^^
Some other things often used for creating a "Unique ID" for a computer include:
https://stackoverflow.com/questions/99880/generating-a-unique-machine-id
I guess, on a modern PC, the TPM could be used?