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

Chip-id in port selection (VSC-1359) #1195

Merged
merged 5 commits into from
May 24, 2024
Merged

Conversation

Hahihula
Copy link
Contributor

@Hahihula Hahihula commented May 21, 2024

[## Description

Switcxhed serial port listing to node serialport and providing additional information about connected board chip ( if the board is ESP).

Type of change

  • New feature (non-breaking change which adds functionality)

Steps to test this pull request

Provide a list of steps to test changes in this PR and required output
Click on "Select port to use"
Wait for ~2 seconds
Observe results.

  • Expected behaviour:
image
  • Expected output:

How has this been tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • ESP-IDF Version:
  • OS (Windows,Linux and macOS):

Dependent components impacted by this PR:

  • Component 1
  • Component 2

Checklist

  • PR Self Reviewed
  • Applied Code formatting
  • Added Documentation
  • Added Unit Test
  • Verified on all platforms - Windows,Linux and macOS

@Hahihula Hahihula changed the title Chip Chip-id in port selection May 21, 2024
Copy link
Collaborator

@kolipakakondal kolipakakondal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kolipakakondal
Copy link
Collaborator

Hi @AndriiFilippov Please verify this

@github-actions github-actions bot changed the title Chip-id in port selection Chip-id in port selection (VSC-1359) May 23, 2024
Copy link
Collaborator

@brianignacio5 brianignacio5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few validations I think would be good but otherwise LGTM

src/espIdf/serial/serialPort.ts Show resolved Hide resolved
resolve(choices);
} else {
reject(new Error("No serial ports found"));
serialPort.chipType = chipIdString2[1].trim();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add validation that match exists and it has at least 2 elements here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea!

@AndriiFilippov
Copy link
Collaborator

AndriiFilippov commented May 24, 2024

@kolipakakondal @brianignacio5 hi !

Tested under:
OS - Windows 10
ESP-IDF: v5.2.1

Do see chip info while multiple boards are connected.

image

LGTM 👍

Copy link
Collaborator

@brianignacio5 brianignacio5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brianignacio5 brianignacio5 merged commit 6e47f31 into espressif:master May 24, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

4 participants