4. Quick Use

This chapter describes how to use the official baseboard of CORE-1126-JD4/CORE-1109-JD4, and does not include specific application development.

4.1. Power Supply Instructions

Since the CAM-C1126S2U device has a built-in high-power IR fill light, the CAM-C1126S2U must be connected to the rear USB 3.0 interface of the host motherboard. If the USB 2.0 or USB 3.0 interface on the front of the host chassis is used, the device may not be powered enough. In addition, the USB interface of the laptop may also be insufficiently powered. In this case of insufficient power supply current, the device may restart or disconnect from the host computer.

Power supply solutions for different application scenarios:

  1. If it is a Facial_Gate application scenario, and data communication with the host computer is not required via USB, a higher power supply can be used to power the device. For example, a 5V 2A or 5V 3A power adapter can be used to power the device.

  2. If data communication with the host computer is required via USB, use a usb hub that can be connected to an external power supply to power the CAM-C1126S2U device.

4.2. Application Scenario Introduction

The ArcSoft face recognition algorithm suite demo sample software is divided into two categories:

  1. Facial_Gate (face recognition gate) application scenario. The working principle of this application scenario is that CAM-C1126CS2U/CAM-C1109S2U obtains video frame data from the camera, performs AI face recognition algorithm inference locally, and compares the inference result with the face image reserved in the local database. Then the recognition result is presented on the MIPI screen.

  2. AI_UVC (AI UVC camera) application scenario. The working principle of this application scenario is to use CAM-C1126CS2U/CAM-C1109S2U as a UVC camera, and simulate the USB interface into a network card device through the USB RNDIS protocol, so that the host computer and CAM-C1126CS2U/CAM-C1109S2U can communicate using network protocols, such as socket communication. CAM-C1126CS2U/CAM-C1109S2U obtains video frame data from the camera, performs AI face recognition algorithm inference locally, and transmits the inference results to the host computer through the USB network card. The host computer processes the inference results and presents the recognition results through the screen display. This application scenario does not require access to the MIPI screen.

Important Note:

  1. The Facial_Gate and AI UVC software provided by ArcSoft are both demonstration demos, without source code and ArcSoft’s corresponding technical support. It is used to demonstrate ArcSoft’s face recognition algorithm. It cannot be used for commercial purposes. Since it is a demonstration example demo software, there may be some bugs. If you encounter some bugs in the process of using the demo, such as the ArcAICamera host computer may have the problem of failed to insert the face database. Please try to re-burn the firmware and re-operate to verify. It is best not to make any operation errors in the middle to prevent triggering the demonstration example software bug.

  2. ArcSoft provides the underlying API technical support for the face recognition algorithm.

  3. The factory firmware of the CAM-C1126S2U device is AI_UVC firmware.

  4. If you encounter problems during use, please try to update the firmware first. For example: the problem of RNDIS network card not being recognized or the yellow exclamation mark appearing in some Windows systems has been fixed. If the device has this problem, you can try to update the firmware first.

4.3. Facial_Gate Firmware

For the first use, you need to connect to the host computer for deployment and debugging, please refer to method 1. After the host computer is deployed, you can use method 2 to use the device. Facial_Gate application scenario requires access to a MIPI screen.

Method 1: Host computer deployment and debugging steps:

  1. The device is connected to a MIPI screen. For the connection method of the MIPI screen, please refer to: 《Display Usage》.

  2. Connect the device to the USB 3.0 interface on the host computer motherboard, and use the TYPE-C cable to power it on.

  3. If the host computer searches for the ADB device, it means that the device has been powered on normally.

  4. After booting up, the Windows host will recognize a USB network card. Set the static IP address properties of the network card as follows:

    • IP address: 172.16.110.5

    • Subnet mask: 255.255.255.0

    • Gateway: 172.16.110.1

    • Preferred DNS: 8.8.8.8

  5. Open the browser address bar and enter 172.16.110.2 to enter the Web backend management platform. PS: If the driver network card device is not normal, you can use third-party driver installation tools such as Driver Genius to install or update the driver.

  6. You need to set a login password when using the Web backend management platform for the first time:

    _images/ArcFaceGo_login.png

  7. After logging in, select Device Activation. Please contact the business department to purchase the activation code.

    _images/ArcFaceGo_activate.png

  8. After activating the device, click [Personnel Management–>Personnel Registration] on the Web backend management platform to perform face registration. Perform face registration.

  9. After completing face registration, face the camera and you can see the face recognition result output on the MIPI screen.

Method 2: Steps for use without connecting to the host computer:

  1. Connect the device to the MIPI screen. For the connection method of the MIPI screen, please refer to: 《Display Usage》.

  2. Connect TYPE-C to a 5V/2A power supply alone.

  3. Face the camera and you can see the face recognition result output on the MIPI screen.

Note:

When the device is connected to a MIPI screen, you will first see the Firefly startup logo. After a while, the interface will enter the preset gate application. If the gate application is not authorized, it will display “Unauthorized” or “Authorization failed” and cannot perform face recognition.

_images/authorization.png

4.4. AI_UVC Firmware

AI_UVC requires different host computer APP tools to be installed depending on the platform used. ArcSoft provides Windows host computer APP tools and Android host computer APP tools, but does not provide Linux host computer APP tools.

ArcAICameraSetup.exe, Android APK and instructions can be downloaded from this repository:

https://gitlab.com/firefly-linux/external/arcuvc_app.git

4.4.1. Windows

Official test uses Windows 10 system. Test steps are as follows:

  1. Click to download Windows host computer tool: ArcAICameraSetup .

  2. CAM-C1126S2U connects to the rear USB 3.0 interface of the chassis that comes out of the Windows host motherboard.

  3. After normal startup, the infrared fill light will light up.

  4. After normal startup, the Windows host will recognize a USB RNDIS network card. The Windows host sets the static IP address properties of the network card as follows:

    • IP address: 172.16.110.5

    • Subnet mask: 255.255.255.0

    • Gateway: 172.16.110.1

    • Preferred DNS: 8.8.8.8

  5. After the settings are completed, you can communicate with the CAM-C1126S2U device. PS: If the driver network card device is not normal, you can use a third-party driver installation tool such as Driver Genius to install or update the driver.

  6. Install the Windows host tool ArcAICameraSetup.exe and open it. After authorization according to the prompts, you can use the built-in AI_UVC application. PS: Please contact the business to purchase the authorization code.

  7. In the settings interface, click the button in the upper right corner to enter the face registration:

    _images/arcsetting.png

  8. Successful recognition, after successful registration, you can return to the preview page to view the effect:
    _images/arcuvc_face.png

  9. Recognition record, after the face is recognized, it will be recorded in the background:
    _images/arcuvc_log.png

4.4.2. Android

Official test uses RK3399 Andorid 7.1. Test steps are as follows:

  1. Click to download Android host computer APP tool: Android APK.

  2. Connect to the USB 3.0 interface of the Android device.

  3. After normal startup, the infrared fill light will light up.

  4. Download and install ArcSoft_AICamera_xxx.apk and open the application. After authorization according to the prompts, you can use the built-in AI_UVC application. PS: Please contact the business to purchase the authorization code.

  5. Authorization, obtain device information and contact us to generate offline authorization files based on device information:

    _images/androi_activation.png

  6. Preview, after successful authorization, return to the preview screen to see that the face recognition function has been activated:

    _images/android_detect1.png

  7. Settings, click the gear in the upper right corner of the preview interface to enter the settings interface, the default administrator password is 123456:
    _images/android_password.png

  8. Change your company’s logo and company name:

    _images/androi_info.png

  9. Configure your own recognition parameters according to your needs:
    _images/android_setting.png

  10. Click the face registration in the upper right corner to register your first face:
    _images/androi_register.png

  11. After successful registration, return to the preview interface to view the effect:
    _images/android_detect2.png

  12. You can enter the settings to browse the recognition success and failure records:
    _images/androi_log1.png

    _images/androi_log2.png

4.5. Application Authorization

Whether you use Windows or Android for activation, you will enter an interface similar to the following. Please click Collect device information to copy the file generated by the prompt and save it. And send the file to the business and then contact the business to purchase authorization. The business will provide the corresponding device offline activation file, and you can use this file to activate the device.

Important Note:

  1. For customers who need to use the underlying API of the ArcSoft face recognition algorithm. Please ask the business for the activation authorization: APP_ID, SDK_KEY and ACTIVE_KEY information.

  2. The activation file and the device are one-to-one correspondence. Please be sure to save the activation file after obtaining it.

  3. After upgrading the official firmware normally, you can use the corresponding activation file to reactivate.

  4. After activating the device, you must never erase or perform other operations to modify the backup partition, otherwise you will need to repurchase authorization activation.

_images/androi_activation.png

4.6. Device Debugging

CAM-C1126S2U/CAM-C1109S2U devices can use TYPE-C OTG cable and serial port for device debugging.

4.6.1. USB Cable Debugging

4.6.1.1. Hardware Wiring

  1. Prepare a TYPE-C cable. Connect one end of the TYPE-C cable to the USB port of the computer and the other end to the USB OTG debugging interface. The wiring is as shown below: _images/upgrade_otg_interface.jpg

  2. Install ADB based on your system.

4.6.1.2. Windows 下的 ADB 安装:

4.6.1.3. ADB installation under Windows:

Windows version download link: https://dl.google.com/android/repository/platform-tools-latest-windows.zip

  1. Unzip platform-tools-latest-windows.zip to a custom directory

  2. Press windows + r to open Run, enter sysdm.cpl, and press Enter. Advanced–>Environment Variables–>System Variables–>Double-click Path–>New

  3. Example: Set as shown below: _images/set_path.png

  4. Note: The path needs to be changed to the custom directory you unzipped

  5. 以管理员权限打开命令提示符,此时电脑 USB 接口连接了 RV1126 的 USB 调试口。命令提示符终端输入 adb devices

    C:\Users\lvsx>adb devices
    * daemon not running; starting now at tcp:5037
    * daemon started successfully
    List of devices attached
    d70a14329414b400        device
    
  6. 使用 ADB 进行调试。

    adb shell
    

4.6.1.4. ADB installation under Ubuntu

  1. Install android-tools-adb package with apt-get

    sudo apt-get update
    sudo apt-get install android-tools-adb
    
  2. Verify installation:

    lvsx@lvsx:~$ adb devices
    * daemon not running; starting now at tcp:5037
    * daemon started successfully
    List of devices attached
    d70a14329414b400	device
    
  3. Use ADB to enter device debugging.

    adb shell
    
  4. Use ADB to copy the linux pc file to the userdata directory of the rv1126 device.

    adb push /path/to/your-file /userdata/
    
  5. Use ADB to copy the rv1126 device file to the local directory of the PC. Replace rv1126-file with the actual file name.

    adb pull /path/to/rv1126-file ./
    

4.6.2. Network Port Debugging

CAM-C1126S2U The device needs to set a static IP address for network port debugging. This debugging method can only be performed after the user manually sets a static IP.

Note: The AI_UVC firmware does not open the service for SSH login terminal by default. Only ADB and serial port debugging can be used. If the SSH login terminal service is required, it needs to be turned on in the buildroot configuration.

4.6.2.1. Network ADB Debugging

  1. Connect the device to the TYPE-C port

  2. Connect the device to the ADB network. Assume that the static IP address of the CAM-C1126S2U device is set to 172.16.110.5. Then execute the following command to connect:

    adb connect 192.168.22.33
    
  3. Use ADB for debugging.

    adb shell
    

4.6.2.2. SSH Debugging

  1. ssh to log in to the development board for debugging

  2. The default account of the firmware before September 2021 is: root, and the default password is: rockchip.

  3. The default account of the firmware after September 2021 is: root, and the default password is: firefly.

    ssh root@192.168.22.33
    

    The default account of Debian10 system is: firefly, and the default password is: firefly.

    ssh firefly@192.168.22.33
    

4.6.3. Serial Port Debugging

  1. Prepare a USB to serial port module. It is recommended to use Firefly’s serial port module.

  2. Connect the USB serial port module to the host USB port and the device serial port.

  3. Set the baud rate to 1.5 M.

  4. Download, install, and open the serial port debugging tool supported by your system platform according to your system (minicom is recommended for Ubuntu and putty is recommended for Windows). If there is a configuration item for software and hardware flow control in the serial port debugging tool, please turn off this function.

  5. Serial port wiring instructions: As shown in the figure below, from top to bottom, they are RX, TX, GND.

    _images/cam_debug_instruction.png