Skip to content

Real and virtual COM ports are not listed #156

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
zmechanic opened this issue Jun 22, 2017 · 8 comments
Closed

Real and virtual COM ports are not listed #156

zmechanic opened this issue Jun 22, 2017 · 8 comments
Labels
conclusion: stale Closed due to lack of activity status: waiting for information More information must be provided before work can proceed type: support OT: Request for help using the project

Comments

@zmechanic
Copy link

zmechanic commented Jun 22, 2017

It seems that there is a restriction in seriallist.go to list only USB CDC ports. All other non-USB ports are ignored. I removed this restriction in my local repo, and got ports displayed in Arduino Web IDE, but upload is not working for them. After build web front-end is stuck and upload button forever displays BUSY.

@facchinm
Copy link
Member

Hi @zmechanic .
I believe your modification regards this line. It shouldn't have any side effect, but please remember that some boards need a particular reset sequence which involves the extra UART signals like DTS, RTS and so on. Which board are you targeting?

@facchinm facchinm added the type: support OT: Request for help using the project label Jun 23, 2017
@zmechanic
Copy link
Author

Hi @facchinm .
Yes, nearly, just about few lines above.

What I have done is that I added a fake entry into the list (e.g. COM8). This fake COM8 port successfully turned up in Arduino Web IDE. The IDE allows me to assign a board (Arduino Nano) and MCU (ATmega328) to it. Then I'm able to click Upload button in Web IDE. At that moment it compiles code in the cloud, and prints stats about used memory space in the console output on the web page. Unfortunately, nothing happens after that. It just stuck in this state with button displaying BUSY.

From my understanding of arduino-create-agent code, Web IDE must do POST to /upload page self-hosted by arduino-create-agent. This doesn't happen for some reason. I confirmed it with Fiddler and with Chrome network activity view.

I wonder what happens there, and why it decides not to call /upload.

@facchinm
Copy link
Member

Mmmmh, can you post the verbose output (you can enable it from the preferences) and the relevant debug output (right click on the tray icon, "open debug console")? Thanks!

@zmechanic
Copy link
Author

It looks like it was my fault (sort of) in the end. While faking a port I didn't assign correct VID and PID, considering that only USB CDC ports are allowed, which should always report it back.

So, I grabbed VID and PID from real board and assigned them to my fake port. Everything works without a hitch now. I think there is something inside, which does cross reference between VID and PID reported by hardware and upload process. So when those values are absolute nonsense the upload process doesn't start, even if target board was selected from dropdown in the web UI.

Not sure if this need to be closed now, as this indicates some sort of bug, I guess.

@facchinm
Copy link
Member

The problem probably lies in the backend, since the /upload POST is not getting executed. The agent's upload procedure only uses the port name, thus vid and pid are totally useless if you were able to reach that point. I'll report this problem to my colleagues working on the BE, thanks!

@zmoog
Copy link
Contributor

zmoog commented Jan 29, 2021

Hey @zmechanic do you still have this need? If you can describe a compelling use case we can put a task in the backlog. Let us know!

@zmoog zmoog added the status: waiting for information More information must be provided before work can proceed label Jan 29, 2021
@github-actions
Copy link

This issue has been marked as stale because it has been open 14 days with no activity. Remove stale label or comment, otherwise it will be closed in 7 days

@github-actions github-actions bot added the Stale label Feb 22, 2021
@github-actions
Copy link

github-actions bot commented Mar 1, 2021

This issue has been closed becasue has been stale for 7 days. If you think this issue deserves some attention feel free to reopen it

@github-actions github-actions bot closed this as completed Mar 1, 2021
@rsora rsora added the conclusion: stale Closed due to lack of activity label Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: stale Closed due to lack of activity status: waiting for information More information must be provided before work can proceed type: support OT: Request for help using the project
Projects
None yet
Development

No branches or pull requests

4 participants