(In common embedded peripherals, serial communication is a common communication mechanism. This article brings you how to access serial devices in Android system.
In Android, how to access the device driver of the underlying Linux must use Hal, that is, the hardware abstraction layer. For the concept and framework analysis of Hal, please check the author's blog post below.)