USB Host Shield

Von USB-Host-Shield-Library-2.0 versuchte ich, etwas über angeschlossene
USB Geräte zu erfahren. Aber:
Die einzige Antwort im Serial Monitor ist Start.
Ich kann den USB Anschluss brauchen, um Batterien zu laden, aber Geräte werden keine erkannt.
Gäbe es noch andere Diagnose-Möglichkeiten, die vielleicht mit der Meldung enden: Ihr USB Host Schield ist KAPUTT?

Danke für die rasche Antwort.

Ich würde gern eine Hardware-Prüfung machen, nachdem visuell nichts zu erkennen ist. Ich hätte wohl ein Multimeter, aber ich weiss nicht, was ich messen soll, um sagen zu können, die Platine ist kaputt oder hat gar keine Firmware drauf.

Der Hersteller oder sonst wer sollte mir Sollwerte oder Soll-Versuche angeben können, aber ich weiss nicht, auf welche Internet Seite gehen, um so was zu erfahren. Vielleicht finde ich sie ja noch, aber wenn das beschleunigt werden könnte, bin ich dankbar.

Ich habe kein USB-Gerät, auf das hub_demo mehr als Start antwortet. Kann man ein solches substituieren?

Freundliche Grüsse

image001.jpg

@kleinerpascha,

Ich habe die Antwort auf Ihre Frage gelöscht, weil die Person, die sie verfasst hat, das Forum mit zahlreichen KI-generierten Antworten in verschiedenen Sprachen "zugespammt" hat.

In vielen Fällen waren die Antworten in von der Anfrage abweichenden Sprachen verfasst. Ich hoffe, dass Sie eine hilfreiche Rückmeldung von jemand anderem erhalten werden.

Werd mal etwas konkreter.
Welche USB-Geräte? USB2 oder USB3? PD2oder PD3?
Grüße Uwe

void setup()
{
  Serial.begin( 115200 );
#if !defined(__MIPSEL__)
  while (!Serial); // Wait for serial port to connect - used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
#endif
  Serial.println("Start");

  if (Usb.Init() == -1)
    Serial.println("OSC did not start.");

  delay( 200 );

  next_time = (uint32_t)millis() + 10000;
}

Baue das doch mal so um:

void setup()
{
  Serial.begin( 115200 );
#if !defined(__MIPSEL__)
  while (!Serial); // Wait for serial port to connect - used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
#endif
  Serial.println("Start");
  uint8_t _init = Usb.Init();
  if (_init  == -1) {
    Serial.println("OSC did not start.");
} else {
Serial.print("Init: ");
Serial.println(_init);
}

  delay( 200 );

  next_time = (uint32_t)millis() + 10000;
}

Danke soweit. Nach diesem Umbau kommt folgende zusätzliche Zeile.

Init: 0

Was sagt uns das?

Das der Init schon einmal funktioniert.

Jetzt muss man weiter untersuchen. Was willst du eigentlich am Ende ereichen?

Ich habe eine USB Maus angeschlossen.

USB Hub gibt keine Details darüber auf dem Serial Monitor aus.

Muss ich noch Verbindungen stecken?

Der Scetch für die USB Maus sollte Maus Daten auf dem Serial Monitor ausgeben. Da er dies nicht tat,

fiel ich mal auf die USBHub_Demo zurück.

Sobald diese die Maus erkennen würde, wäre Hoffnung, dass es doch noch einen Weg gäbe, Maus oder Joystick Daten auf dem Arduino Uno R3 zu bekommen.

image001.jpg

image002.jpg

Logitech USB-Maus mit optischer Positionserkennung direkt oder über USB-Hub.

Ok, danke. Andere haben geantwortet.

I am sorry but I do not speak German.

"Start" is a good thing, as you do not have any errors.
I am not sure which shield you are using but it probably needs to be modified to connect power to the mouse.
Try read this first.

Thank you for the link “read this first”.

At VBUS are 5.0 V. The red light at mouse when connecting flashes for a short while and then goes out. Connecting to Labtop Computer this red light remains lighted stable.

The discussion about SS and INT seems unclear especially how to cut connection. Really necessary, I have a ZYduino UNO?

image001.jpg

Yes, the documents can get confusing.
Unfortunately I am using the USB Host Mini so I am unfamiliar with the Shields for the UNO.

With the SS and INT, you do not have to do any modifications, unless your UNO has some other port connected to those header pins where the Shield connects. You will have to check the pinouts on your documentation to work this out.

I did a quick search on what you want to do.
Check out this youtube about the power of the shield.
And this youtube on connecting a mouse (it is in Indonesian sorry!)

Good luck. :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.