ADB fast download and debug

FlywizOS can quickly download programs to the machine via USB cable or WIFI. Specific steps are as follows:

First, make sure that the computer and the machine are successfully connected. There are two ways to connect:

[!Note]

Note: If you buy a version with WIFI, you can only connect via WIFI, and the USB cable cannot be used;
The Ethernet version preferentially use the USB cable connection. If the USB connection is unsuccessful, the WIFI connection (network connection) is used. If the connection fails, please contact us.
In the same way, if you purchase a version without WIFI, you can only connect via USB cable.
USB cable connection is successful, you can see

  1. Use the USB cable to connect the computer and the machine. If the computer can recognize the machine as an Android device, the connection is normal. If you can't connect normally and the computer prompts a driver problem, you can try Download Update Driver.

  2. Connect via WIFI. (This method requires the machine to support WIFI.) First enter the WIFI setting of the machine, and connect the machine to the same network as the computer, that is, the computer and the machine must be connected to the same WIFI. (If a different network will cause the subsequent download procedure to fail). After the network connection is successful, click the menu button in the upper right corner of the WIFI setting to view the IP address of the machine, then open the FlywisOS IDE development tool, and on the menu bar, select the menu Debug Configuration -> ADB IP Configuration, fill in the machine IP and select OK. The tool will try to connect with the machine. If it prompts that the connection is successful, it means normal. If it fails, you need to check whether the IP is correct? Is the machine connected to WIFI normal?

    WIFI setting activity

    Operation process animation

Download and debug

After completing the previous step, you can download the program directly. In the Project Explorer, select the project name, right-click, and select the Download and Debug menu in the pop-up menu. After selection, it will automatically compile once. After the compilation is successful, download the program to the machine. If there is no error, then you can see that the machine program has been updated. Similarly, after selecting the project, you can also use the shortcut keys Ctrl + Alt + R to download and debug.

View log

Attention

  • If an Android phone is connected to the computer, it may conflict with the machine and cause the download to fail. When using it, it is recommended to disconnect the Android phone temporarily.
    • **Note: Run the program in this way, and the program cannot be solidified into the machine. If you unplug the TF card or restart after a power failure, the program will automatically resume. If you want the firmware to be stored in the device, you can select make upgrade image and then upgrade.
powered by Gitbooklast modified: 2020-12-08 18:24:17

results matching ""

    No results matching ""