Main Site Documentation

Usb host events


#1

Hello
I have some questions :

  1. what is difference between these events :

and

```cs]Controller.UsbSerialConnected += Controller_UsbSerialConnected;[/code

and

```cs] Controller.RawDeviceConnected += Controller_RawDeviceConnected;[/code


2) this is very important for me to know if there anyway to [b]execute [/b]any other event (except those in documentation) as result of connecting a usb device to USB Host?

#2

simplistically, the first is for a device not recognised by the firmware, the second is when a recognised USB-to-serial (eg FTDI) device is connected, and the third is when a device with a raw stream is connected.

For a list of events, go to the source of truth, the documentation library. https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.3/ But exactly what do you mean by execute an event not in documentation ?


#3

thanks, helps a bit to figure out I have a transfer error, I couldn’t find what error 2 means :clap:


#4

@ Ehsan Ansari and Brett - UnknownDeviceConnected replaced RawDeviceConnected in one of the recent SDKs. Otherwise Brett is correct.


#5

great, I was having trouble thinking the best way to describe how they may be different…

https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.3/html/ed9281ff-0f1e-3246-e187-65f4352c0d21.htm is the direct link to the doco for the controller and shows the devices in question as well as the connection failure event.