Home Contents | # rawio:info | Rawio | Core4 Lua Event System

## SYNOPSIS

table = handle:info()

## DESCRIPTION

Query information about an USB device. The result is a table with information about the device.

vid | The USB vendor ID. This is a publicly registered identification number of the manufacturer of the device. The official USB homepage should have a list.
pid | The USB product ID. This number is allocated by the manufacturer and identifies the device type.
vendor | The name of the device vendor, as reported by the device.
product | The name of the product, as reported by the device.
serial | The serial number of the device. Not all USB devices do have a serial number, so this field might be empty.
locid | The USB location ID of the device.

## RETURN VALUE

On success, returns a table. On error, returns nil. In case of an error, the error can be retrieved using rawio:lastError().

## NOTES

Currently only supported on USB printer devices.

An USB location ID consists of one or more digits. Each digit numbers the port at the USB hub where the device is connected.

A device connected directly to the controller has a location ID consisting of a single digit, .e.g '1'. When using one hub, the location ID has two digits, .e.g '14': First port on controller, fourth port on hub.

## SEE ALSO

rawio:lpstatus