User space drivers

The architecture of Android Things is composed of two stacks: one managed by Google containing the kernel, hardware libraries, and the Android Things framework, and one open to developers containing user drivers and apps.

User drivers are components registered from within apps that extend existing Android framework services. They allow any application to inject hardware events into the framework that other apps can process using the standard Android APIs.

We will use this type of driver when we interact with the temperature and pressure sensor. That specific type of user driver uses sensor fusion to work that way. We will see how buttons can also be integrated as input drivers.

However, in general we can just use a simple driver that handles the communication with the peripheral we want to integrate with. These are just device drivers, and they do not need to be integrated into the platform.

And we can start with the equivalent of the Hello World for Internet of things: blinking an LED.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.27.232