Saturday, April 12, 2014

android4.0 camera hal how to call to the underlying driver of


As the title! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! Online
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Camera.java--> Camera.java (framework) ---> android_hardware_camera.cpp (jni) ----> Camera.cpp--> ICameraService --- (via binder mechanism) - -> CameraService.cpp--> V4LCameraAdapter.cpp--> Camera drivers
Reply:
cited a floor GuoQun02 reply:
Camera.java--> Camera.java (framework) ---> android_hardware_camera.cpp (jni) ----> Camera.cpp--> ICameraService --- (via binder mechanism) ----> CameraService.cpp--> V4LCameraAdapter.cpp--> Camera drivers
......


I want to know is from CameraService.cpp--> Camera Driver
-> V4LCameraAdapter.cpp-Many articles are analyzed to CameraHardwareInterface or analysis to obtain hardware hw_get_module says the
I want to know is how to go down seek advice
Reply:
reference to the second floor shen332401890 reply:
cited a floor GuoQun02 reply: Camera.java--> Camera.java (framework) ---> ; android_hardware_camera.cpp (jni) ----> Camera.cpp--> ICameraService --- (via binder mechanism) ----> CameraService.cpp--> V4LCameraAdapter.cpp ......


I'm also learning, so the bottom yet come. . . .
Reply:
Their top one! ! ! ! ! ! ! ! ! !
Reply:
Their top! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
Reply:
Or your own roof! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
Reply:
This depends on different platforms, different platforms in the HAL layer implementation is not the same, such as Qualcomm is calling HAL driver excuse camerainterface2.c (remember) transferred driven down
Reply:
I also see this part of the Great God seek advice ah
Reply:
The value passed to the software driver, the driver of the value converted to the corresponding binary value (where the value is already know binary hardware) is then passed to the hardware (usually the value stored in the hardware storage area). Hardware based on the appropriate response to these values ​​set within it, to respond.

Reply:
reference to the 9th floor jdflying reply:
software to the value passed to the driver, the driver put the value into the corresponding binary value (where the value is already understood by the hardware Binary) is then passed to the hardware (usually the value stored in the hardware storage area). Hardware based on the appropriate response to these values ​​set within it, to respond.

Added: SCM proposal under study, you'll understand. The following is a brief introduction of IC USB development, probably introduced about hardware design, driver development. I hope you have a reference.
FTDI released for the Android platform optimized for USB host IC

Advanced chip USB host bridge and supports a variety of standard interfaces, widely used in networking, automotive, most new network silver U Shield, Pos machines, medical care and other connected smartphone or tablet USB port best solution to turn.
British companies Feitediya Company (FTDI) continue to promote innovative Android open-source parts, launched FT311D. The new USB full-speed (12 Mbit / s) control IC is designed for the Android platform, such as a computer or smart phone platforms, connected by using an internal USB technology provides the end-product of the system.
More than a year ago Google launched Android open-source components. This specification uses industry standard USB bus technology combined with an enumeration step. Therefore, USB connection enables the platform to be a role Andrews USB slave terminal / device. This eliminates the need to seek power, storage class drivers, and support for USB bus master is responsible for controlling the stack needs. Eventually, USB host function is now relegated to the Android platform connected to the end product.
FT311D is a standard 3.3-volt power supply, absorption at 48 MHz full operating current of only 25 mA in standby mode power consumption of 128μA, the USB port can be bridged to six different user selectable interface types, namely GPIO, UART, I2C, SPI slave terminal and remote. It can be used on any platform supported by Android open accessory mode connection (usually 3.1 or later of the Android operating system, although some platforms may support the 2.3.4 version of the Android Open Source accessory mode).
When the IC's peripheral interface is configured as UART mode, the interface as a basic asynchronous serial UART port with flow control. FT311D the UART can support a rate of 300 bit / s to 6 Mbit / s data stream, while its I2C host excuse can be connected to support 125K bit / sec end I2C slave interface. Interface can also be configured to provide 4 pulse width modulation (PWM) output signal. These outputs can be used to control the motor for generating a brake sensor, DC / DC converter or AC / DC power supply PWM signal, and toys, lighting applications, home appliances and industrial equipment.
FT311D development module is available now, board size (UMFT311EV) 68.58 mm x 55.38 mm x 14.00 mm, can be expected to be used as a simple assessment of the chip hardware platform that allows engineers to develop a wide range of accessories compatible with the open source Android applications. Through a series of jumper settings to select the desired interface mode. This module is 66.60 mm x 55.38 mm x 22 mm of GPIO (UMFT311GP) board, there are buttons above the keyboard can be used as user input, as well as a set of 8 LED emitter display can be used to deploy effective output.
"With this new master IC, we have enhanced the Android related products for engineers to explore new possibilities open accessory mode can provide," FTDI's CEO and founder Fred Dart said. " Through this chip, plus our development tools, software and application support, our goal is to be easily integrated into the customer's USB host terminal products, just as our R-series and X-Chip series devices. "FT311D 32-pin QFN and LQFP package options. These chips operating temperature range is -40 ° C to +85 ° C.

No comments:

Post a Comment