Skip to content

Conversation

@lobodpav
Copy link
Contributor

It is not supported and no hub uses USB anyway. Addresses #24.

@laurensvalk
Copy link
Member

Thanks for submitting this.

I just realized that while it is true that USB is not supported on hubs with Pybricks, we do allow USB for running programs on hubs with the standard firmware. Sorry for the confusion - my bad.

Anyway, rather than updating the README, would it make more sense to validate pybricksdev arguments and print an error when run and usb arguments are used together?

So if we want to clarify this beyond just the README, we'd need to check the USB device name or something else to identify which firmware the hub is running.

@lobodpav
Copy link
Contributor Author

I see. I'll ditch my changes and update the README. Not sure if I'm able to detect on my own, what type of firmware the hub is running 😞

@lobodpav
Copy link
Contributor Author

lobodpav commented Jan 3, 2022

Will we at least merge the doc changes?

README.md Outdated
#
# usb connection examples:
# NOTE: running programs via usb connection works for standard firmwares only
Copy link
Member

Choose a reason for hiding this comment

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

It could be more clear to say "official LEGO firmware" instead of "standard firmware"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

"conntype",
metavar="<connection type>",
help="connection type: %(choices)s",
help="connection type: %(choices)s; "
Copy link
Member

Choose a reason for hiding this comment

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

I think I would rather keep the help short and document the details at https://docs.pybricks.com/projects/pybricksdev (i.e. add a new section explaining the pybricksdev command line too and all of the commands). Otherwise we should also have to add a note here about ssh only working with EV3 running ev3dev and ble not working on EV3 to be complete.

Copy link
Contributor Author

@lobodpav lobodpav Jan 3, 2022

Choose a reason for hiding this comment

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

I think I'll leave this one with you. You know the best what the tool is compatible with rather than me.

@dlech dlech merged commit 97364a3 into pybricks:master Jan 3, 2022
@dlech
Copy link
Member

dlech commented Jan 3, 2022

Merged, thanks!

@lobodpav lobodpav deleted the feature/remove-usb-run branch January 3, 2022 22:39
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.

3 participants