Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Conversation

@Lenardgeorge
Copy link
Contributor

Added images to the sections and Feature Description

![The Arduino core is built on top of the Mbed stack](assets/Arduino-Logo.svg)
# USB Host and Device mode

As we know, Portenta H7 functions as a USB host. This means that the Portenta H7 can receive and manage the information provided by other USB peripherals connected to it through the hub. In this scenario, the Portenta H7 is referred as "USB host" or "master" device, and the peripheral is known as the "client" device, ( usually a mouse or a keyboard ). Computers are by default USB hosts too, as they receive the information that USB peripherals provide. PCs follows a “plug and play” mechanism, this means that whenever a USB device is connected, the Host detects the device and loads the appropriate drives for the device to establish a communication channel over the serial bus.Besides being a host point for peripherals, Portenta H7 can also be connected to the computer as the "client". In this case, the PC is the USB host and Portenta H7 the peripheral. We see this scenario whenever we upload sketches to the board or when we monitor data through the serial monitor.Furthermore, the Portenta H7 can also be set to be a mouse or keyboard itself. With the corresponding sketch, circuitry and components, we could send keyboard or mouse data to a PC, but this would be a different project.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Portenta H7 can switch between a USB host and device based on our preferrence.

i-herrera and others added 29 commits June 18, 2020 14:37
* Created new tutorial

* Updated content.md file

* Update content.md

* Update content.md

Co-authored-by: Lenard George Swamy <lenardgeorge92@gmail.com>
Added first 3 steps of the tutorial
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
* Feature description correct and extended

* USB OTG addition

* Zadig step removed

* update

* update

* Merge branch 'usb-host-tutorial' of https://github.com/i-herrera/arduino-pro-content into usb-host-tutorial

* Update content/tutorials/portenta-h7/por-ard-usb/content.md

Co-authored-by: per1234 <accounts@perglass.com>

Co-authored-by: Sebastian <hunkeler.sebastian@gmail.com>
Co-authored-by: per1234 <accounts@perglass.com>
Co-authored-by: Sebastian <s.hunkeler@arduino.cc>
@sebromero sebromero force-pushed the usb-host-tutorial branch from 42d4427 to ca651e5 Compare June 18, 2020 12:38
@sebromero sebromero merged commit 0108cf1 into master Jun 18, 2020
@sebromero sebromero deleted the usb-host-tutorial branch June 18, 2020 12:43
sebromero added a commit that referenced this pull request Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants