Difference between revisions of "Template:RK3399-Android7"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
FriendlyElec provides a full Android7.1 BSP for RK3399 board. The source code is hosted at gitlab.com and is open source. The BSP supports GPU and VPU hardware acceleration.
 
FriendlyElec provides a full Android7.1 BSP for RK3399 board. The source code is hosted at gitlab.com and is open source. The BSP supports GPU and VPU hardware acceleration.
  
===Connect MIPI Camera to T4===
+
===Connect MIPI Camera to {{{1}}}===
  
FriendlyElec developed a MIPI camera CAM1320 for board and it works under Android. You can use this camera to take pictures and record video. The operation is straightforward. You just need to connect the camera at your board's MIPI interface, boot your T4 to Android and start Android's camera app.<br />
+
FriendlyElec developed a MIPI camera CAM1320 for board and it works under Android. You can use this camera to take pictures and record video. The operation is straightforward. You just need to connect the camera at your board's MIPI interface, boot your board to Android and start Android's camera app.<br />
 
+
{{#switch: {{{1}}}
The board has two MIPI interfaces: one front camera and the other rear camera:<br />
+
| NanoPC-T4 =
::{| class="wikitable"
+
The board has two MIPI interfaces: one front camera and the other rear camera:<br />
|-
+
'''MIPI-CSI1'''  <-->  '''Android rear camera'''<br />
|Interface || Camera Type(front or rear)
+
'''MIPI-CSI2'''  <-->  '''Android front camera'''<br /><br />
|-
+
How to connect:<br />
|MIPI-CSI1   || Android rear camera
+
[[File:T4-mipi-dual-camera.jpg|frameless|600px]]<br>
|-
+
| NanoPi-M4 =
|MIPI-CSI2   || Android front camera
+
The board has two MIPI interfaces: one front camera and the other rear camera:<br />
|}
+
'''MIPI-CSI1'''  <-->  '''Android rear camera'''<br />
 
+
'''MIPI-CSI2'''  <-->  '''Android front camera'''<br /><br />
===使用USB摄像头进行拍照和录像===
+
How to connect:<br />
Android系统同时支持USB摄像头拍照和录像,使用系统自带的 Camera 应用即可,有两点需要注意的地方:<br />
+
[[File:M4-mipi-dual-camera.jpg|frameless|600px]]<br>
1)需要根据摄像头规格,选择合适的录像分辨率,可以先选择CIF分辨率,测试OK之后再尝试更高的分辨率,设置界面如下所示:<br />
+
| NanoPi-M4V2 =
[[File:Android8-usbcamera-setting.png|frameless|800px]]; <br />
+
The board has two MIPI interfaces: one front camera and the other rear camera:<br />
2)USB摄像头不能与MIPI摄像头同时使用,也不能热拨插,插入摄像头后需要重新开机才能识别;<br />
+
'''MIPI-CSI1'''  <-->  '''Android rear camera'''<br />
<br />
+
'''MIPI-CSI2'''  <-->  '''Android front camera'''<br /><br />
我们测试过的USB摄像头型号如下:罗技C270,罗技C922 PRO<br />
+
How to connect:<br />
 +
[[File:M4-mipi-dual-camera.jpg|frameless|600px]]<br>
 +
| NanoPi-M4B =
 +
The board has two MIPI interfaces: one front camera and the other rear camera:<br />
 +
'''MIPI-CSI1'''  <-->  '''Android rear camera'''<br />
 +
'''MIPI-CSI2'''  <-->  '''Android front camera'''<br /><br />
 +
How to connect:<br />
 +
[[File:M4-mipi-dual-camera.jpg|frameless|600px]]<br>
 +
| NanoPi-NEO4 =
 +
The board has one MIPI interfaces:<br />
 +
'''MIPI-CSI1'''  <-->  '''Android rear camera'''<br /><br />
 +
How to connect:<br />
 +
[[File:Neo4-mipi-single-camera.jpg|frameless|600px]]<br>
 +
| #default =
 +
}}
  
 
<!---
 
<!---
Line 49: Line 63:
 
===Android7 hardware access===
 
===Android7 hardware access===
 
You can use the FriendlyThings SDK to access and control hardware resources on the motherboard in the Android App, such as Uart, SPI, I2C, GPIO and other interfaces. For details, please refer to the following two documents.:
 
You can use the FriendlyThings SDK to access and control hardware resources on the motherboard in the Android App, such as Uart, SPI, I2C, GPIO and other interfaces. For details, please refer to the following two documents.:
*[[FriendlyThings for RK3399|Android: FriendlyThings for RK3399]]
+
*[[FriendlyThings for Rockchip|Android: FriendlyThings for Rockchip]]
 
*[[FriendlyThings APIs|Android: FriendlyThings APIs]]
 
*[[FriendlyThings APIs|Android: FriendlyThings APIs]]

Latest revision as of 02:46, 4 August 2023

1 Work with Android7.1

rk3399-android7-home
rk3399-android7-icons

FriendlyElec provides a full Android7.1 BSP for RK3399 board. The source code is hosted at gitlab.com and is open source. The BSP supports GPU and VPU hardware acceleration.

1.1 Connect MIPI Camera to {{{1}}}

FriendlyElec developed a MIPI camera CAM1320 for board and it works under Android. You can use this camera to take pictures and record video. The operation is straightforward. You just need to connect the camera at your board's MIPI interface, boot your board to Android and start Android's camera app.


1.2 Set HDMI Display

If your board is connected to an HDMI monitor and it runs Android you can go to "Settings -> Display -> HDMI" to make your setting.

HDMI Resolution By default it is "Auto". You can set its resolution up to 4K
Screen Zoom There will be four arrows you can click on to zoom in/out
HDMI Rotation Set it landscape or portrait.

1.3 Rotate Display

Enter Android's Settings -> Display -> HDMI -> HDMI Rotation. It supports both landscape and portrait.

1.4 Android7 hardware access

You can use the FriendlyThings SDK to access and control hardware resources on the motherboard in the Android App, such as Uart, SPI, I2C, GPIO and other interfaces. For details, please refer to the following two documents.: