Difference between revisions of "Template:RK3399-Android-4G-EC20"

From FriendlyELEC WiKi
Jump to: navigation, search
Line 11: Line 11:
 
  | #default =
 
  | #default =
 
}}
 
}}
连接后无需额外的配置,启动Android后就可以使用4G上网了,跟Android手机类拟。<br />
+
Power on the board and you will be able to surf the internet with the 4G module like using an Android phone.<br />
  
====启用EC20的GPS功能====
+
====Activate EC20's GPS Functions====
默认情况下,Android的GPS功能是关闭的 (原因是Android在没有找到任何GPS模块的情况下,会不停的打印LOG信息),在你连接了EC20模块后,就可以开启GPS了。<br />
+
By default GPS functions are disabled in Android. If GPS functions are enabled in Android but no GPS module is detected Android will continuously output log messages. After an EC20 module is connected you can enable GPS functions.<br />
开启方法是修改Android源代码下的 vendor/quectel/ec20/BoardConfigPartial.mk 文件,将下面这行:
+
To enable the GPS functions open the "vendor/quectel/ec20/BoardConfigPartial.mk" file and change the following line:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
BOARD_HAS_GPS := false
 
BOARD_HAS_GPS := false
 
</syntaxhighlight>
 
</syntaxhighlight>
改为
+
to
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
BOARD_HAS_GPS := true
 
BOARD_HAS_GPS := true
 
</syntaxhighlight>
 
</syntaxhighlight>
然后重新编译 Android。
+
and recompile Android。

Revision as of 13:12, 22 November 2018

1 Work with 4G Module EC20 under Android

1.1 Hardware Setup

Connect an EC20 module to a USB to miniPCIe board and connect the board to an ARM board's USB Host. Here is a hardware setup:

Power on the board and you will be able to surf the internet with the 4G module like using an Android phone.

1.2 Activate EC20's GPS Functions

By default GPS functions are disabled in Android. If GPS functions are enabled in Android but no GPS module is detected Android will continuously output log messages. After an EC20 module is connected you can enable GPS functions.
To enable the GPS functions open the "vendor/quectel/ec20/BoardConfigPartial.mk" file and change the following line:

BOARD_HAS_GPS := false

to

BOARD_HAS_GPS := true

and recompile Android。