返回

从零开始:用Firefly的AIO-3399J开发板,在Android11下使用移远4G模块EC20

Android

在Firefly AIO-3399J 开发板上使用移远 EC20 4G 模块:Android 11 系统集成指南

准备工作

embarking on this exciting journey, ensure you have the following resources at your disposal:

  • Essential Hardware and Software:
    • Firefly AIO-3399J development board
    • Quectel EC20 4G module
    • Android 11 system image
    • Firefly porting tools
    • Quectel RIL library
  • Development Environment Setup:
    • Install Linux operating system
    • Install Android SDK and NDK
    • Install Firefly porting tools
    • Install Quectel RIL library

固件更新

Before integrating the EC20 module with your Android 11 system, it's crucial to update its firmware to the latest version. This ensures optimal performance and compatibility.

  • Acquire EC20 Firmware: Head to Quectel's official website to download the latest firmware for the EC20 module.
  • Flash EC20 Module: Utilize a serial port tool to flash the downloaded firmware onto the EC20 module, following the manufacturer's instructions.

移植Android系统

Now, let's dive into the exciting world of Android system移植.

  • Configure Android System Image: Open the Android system image and navigate to the device/rockchip/rk3399j-firefly-aiot/ directory. Within this directory, locate the rk_configs.mk file and modify the BOARD_HAS_RK_4G_MODEM option to true . Additionally, copy the Quectel RIL library to the vendor/lib/ directory within the Android system image.
  • Build Android System Image: Employ the Android SDK and NDK to compile the Android system image, following the official Android documentation.

烧录Android系统镜像

With the Android system image ready, it's time to burn it onto the AIO-3399J development board.

  • Flash Android System Image: Use Firefly's burning tool to transfer the Android system image onto the AIO-3399J development board. Follow the tool's instructions to complete the flashing process.

调试和测试

After a successful burn, let's power up the AIO-3399J development board and witness the magic unfold.

  • Boot AIO-3399J Development Board: Turn on the AIO-3399J development board and allow the Android system to boot up.
  • Verify 4G Connectivity: Access the Android settings, locate the Cellular Network settings, enable cellular network, and select the EC20 module. Check if the device can establish a stable connection to the cellular network.

常见问题解答

In the realm of technology, challenges may arise. Here are some common issues you might encounter and their potential solutions:

  1. Unable to Connect to Cellular Network:
    • Ensure the EC20 module's firmware is up to date.
    • Verify the RIL library is correctly installed.
    • Double-check the Android system image configuration.
  2. Unstable Cellular Network Signal:
    • Examine the EC20 module's signal strength.
    • Inspect the RF connection between the AIO-3399J development board and the module.
  3. Cannot Make or Receive Calls:
    • Re-examine the Android system image configuration.
    • Ensure the RIL library is properly installed.
    • Update the EC20 module's firmware to the latest version.
  4. Slow Data Transfer Speed:
    • Check the cellular network's signal strength and stability.
    • Consider optimizing the network configuration settings.
  5. RIL Crash:
    • Update the RIL library to the latest version.
    • Ensure the Android system image is compatible with the RIL library version.

结语

Congratulations! You have successfully integrated the Quectel EC20 4G module with the Android 11 system on the Firefly AIO-3399J development board. This achievement opens up a world of possibilities, empowering you to develop and deploy cutting-edge applications that harness the power of cellular connectivity. We hope this guide has been an invaluable resource throughout your journey. If you encounter any further challenges, do not hesitate to reach out for assistance.