15. Human Interface Devices Flashcards
Cos’è una Human Device Interface?
A human interface device or HID is a type of computer device usually used by humans.
HID takes input from humans and gives output to humans.
The term “HID” is used to indicate the physical devices and also the USB-HID specification.
Perchè usare HDI?
The HID protocol makes implementation of devices very simple.
Devices define their data packets and then present a “HID descriptor” to the host.
Cosa deve fare l’host?
The host is expected to be a more complex entity than the device. The host needs to retrieve the HID descriptor from the device and parse it before it can fully communicate with the device.
descrivi HID report protocol
Devices define their data packets and then present a “HID descriptor” to the host.
The HID descriptor is a hard coded array of bytes that describes the device’s
data packets.
This includes:
● how many packets the device supports,
● the size of the packets,
● the purpose of each byte and bit in the packet.
For example, a keyboard with a calculator program button can tell the host that the
button’s pressed/released state is stored as the 2nd bit in the 6th byte in data
descrivi HID boot protocol
In boot protocol, only specific
devices are supported with only specific features because fixed data packet
formats are used.
The HID descriptor is not used in this mode so innovation is limited.
However, the benefit is that minimal functionality is still possible on hosts that
otherwise would be unable to support HID.
The only devices supported in boot protocol are: Keyboard and Mouse
In quante categorie puoi dividere i dispositivi HID?
input devices,
output devices
Descrivi gli input devices
Input devices are based on sensors (a device, module, or subsystem whose
purpose is to detect events or changes in the physical world its environment and
convert it in analog or digital electronic information)
Descrivi gli output devices
Output devices are based on actuators (a device, module, or subsystem whose
purpose is to convert analog or digital electronic signals in physical events aimed
at changing the physical)
layout : fisico vs visivo vs funzionale
Physical layout is the actual positioning of keys on a keyboard.
Visual layout the arrangement of the legends (labels, markings, engravings) that appear on those keys.
Functional layout is the arrangement of the key-meaning association or keyboard
mapping, determined in software, of all the keys of a keyboard: this (rather than
the legends) determines the actual response to a key press.
Can keyboard be dynamically mapped?
keyboards are designed to send a scancode to the operating
system (OS) when a key is pressed or released: this code reports only the key’s
row and column, not the specific character engraved on that key.
RFID
Il sistema RFID è composto principalmente da due componenti: un tag (o etichetta) RFID e un lettore RFID.
Unlike a barcode, the tag doesn’t need to be within the line of sight of the reader, so it may be embedded in the tracked object.
NFC
Near field communication
NFC offers a low-speed connection with simple setup that can be used to
bootstrap more-capable wireless connections.
Cos’è un pointing device?
A pointing device is an input interface that allows a user to input spatial (i.e., continuous and multi-dimensional) data to a computer.
Movements of the pointing device are echoed on the screen by movements
of the pointer (or cursor) and other visual changes.
Cosa dice la Fitts’s law
This scientific law predicts that the time required
to rapidly move to a target area is a function
of the ratio between the distance (D) to the
target and the width of the target (W).
Classificazione dei pointing devices
direct,indirect, absolute, relative, isotonic, elastic, isometric, position controll vs rate controll
Spiega direct input
In case of a direct-input pointing device, the on-screen pointer is at the same
physical position as the pointing device (e.g., finger on a touch screen, stylus
on a tablet computer).
Spiega indirect input
An indirect-input pointing device is not at the same physical position as the
pointer but translates its movement onto the screen (e.g., computer mouse,
joystick, stylus on a graphics tablet).
Spiega absolute movement
An absolute-movement input device (e.g., stylus, finger on touch screen) provides
a consistent mapping between a point in the input space (location/state of the
input device) and a point in the output space (position of pointer on screen).
Spiega relative movement
A relative-movement input device (e.g., mouse, joystick) maps displacement in the
input space to displacement in the output state. It therefore controls the relative
position of the cursor compared to its initial position.
speiga isotonic pointing devices
An isotonic pointing device is movable and measures its displacement
Spiega isometric pointing devices
isometric device is fixed and measures the force
which acts on
Spiega elastic pointing devices
An elastic device
increases its force resistance with displacement (joystick).
Spiega position control
A position-control input device (e.g., mouse, finger on touch screen) directly
changes the absolute or relative position of the on-screen pointer.
Spiega rate control
A rate-control input device (e.g., trackpoint, joystick) changes the speed and direction of the movement of the on-screen pointer.