Skip to content

Incorrect PID in "view board info" tab #1647

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

Closed
LiquidCGS opened this issue Nov 7, 2022 · 2 comments
Closed

Incorrect PID in "view board info" tab #1647

LiquidCGS opened this issue Nov 7, 2022 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@LiquidCGS
Copy link

On newer versions (I tested the latest, 2.0.1) of the Arduino IDE there is a bug in the "View board info" tab in which the PID of the Arduino in question isn't displayed correctly.

The first digit of the PID of the Arduino gets displayed as a 0 when it should be an 8 in my case.

I've done my testing with an Arduino Leonardo, Arduino IDE version 1.8.13 shows VID: 2341 PID 8036 while version 2.0.1 shows VID: 2341 with an incorrect PID of "0036"

Double checking this information in windows device manager shows that the correct information is "VID 2341, PID 8036".

imagen
This is what windows device manager shows as PID and VID

imagen
This is a screenshot of the view board info tab from arduino IDE version 1.18.13.

imagen
This is a screenshot of the view board info tab from arduino IDE version 2.0.1 (latest at the moment of writing this), Notice how the PID has changed even though I am consulting the VID and PID of the same board as before

This bug also happens in Linux and it might happen on mac too, however I have no way of testing that at the moment.
Something possibly worth noting is that the arduino has no active serial ports (no Serial.begin in the program).

Cheers.

@LiquidCGS
Copy link
Author

goes in IDE 2.x repo

@per1234 per1234 transferred this issue from arduino/Arduino Nov 7, 2022
@per1234
Copy link
Contributor

per1234 commented Nov 7, 2022

Hi @LiquidCGS. Thanks for taking the time to submit an issue.

The discrepancy is caused by a difference in the way Arduino IDE 2.x populates this menu compared to Arduino IDE 1.x. Arduino IDE 1.x gets the information from the hardware on the port you have selected from the Tools > Port menu. Arduino IDE 2.x gets the information from the software definition of the board you have selected from the Tools > Board menu.

You can see here that four VID/PIDs are associated with the Leonardo's board definition (two different manufacturers x application+bootloader ports):

https://github.com/arduino/ArduinoCore-avr/blob/1.8.6/boards.txt#L390-L397

The IDE arbitrarily uses the first of these to populate the dialog, regardless of whether that is the VID/PID of the hardware on the port you have selected.

I see we have another report about this at #1489.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: CLI Related to Arduino CLI labels Nov 7, 2022
@per1234 per1234 self-assigned this Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants