Ethernet IP address configuration method and system for non-screen RK3588 equipment, terminal and storage medium
By connecting to the PC via the HDC tool, mounting the device file system, and pushing the configuration tool, an interactive interface is provided for configuring the Ethernet IP address of the screenless RK3588 device. This solves the problem of the screenless device's IP address being unstable, and achieves a stable and reliable network connection and efficient configuration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 深圳开鸿数字产业发展有限公司
- Filing Date
- 2025-12-25
- Publication Date
- 2026-05-01
AI Technical Summary
The RK3588 screenless device has an unfixed IP address after Ethernet connection, and the existing configuration methods are complex, inflexible, and difficult to achieve a stable and reliable network connection.
Connect to the PC via the debugging tool HDC, mount the device file system, push and authorize the Ethernet configuration management tool, provide an interactive configuration interface, input numerical commands to set network parameters, and perform network connectivity tests.
It enables simple, reliable, and efficient configuration of fixed IP addresses for screenless devices, ensuring network stability and deployment flexibility, reducing operational difficulty and error probability, and supporting batch configuration and configuration persistence.
Smart Images

Figure CN121967373A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of embedded device network communication technology, and in particular to an Ethernet IP address configuration method, system, terminal, and computer-readable storage medium for screenless RK3588 devices. Background Technology
[0002] With the rapid development of IoT, edge computing, and industrial automation technologies, Ethernet technology, with its high bandwidth, low latency, strong anti-interference capabilities, and mature protocol system, has become one of the core infrastructures for device network communication. Embedded devices based on high-performance processors (such as the Rockchip RK3588) are widely used in various application scenarios, particularly in industrial control, intelligent security, vehicle systems, and smart terminals.
[0003] As a high-performance, low-power embedded processor, the RK3588 integrates powerful computing capabilities and rich peripheral interfaces, giving it significant advantages in screenless terminal devices, network devices, server auxiliary devices, and other fields. These devices are typically designed in a screenless form to reduce power consumption, save space and cost, and are suitable for application environments that require concealed installation or remote deployment.
[0004] However, in actual deployment, these screenless devices face significant challenges in network configuration. Traditional Ethernet configuration methods typically rely on the following approaches: Screen interaction method: Most consumer devices use a graphical user interface (GUI) or command line interface (CLI) for network setup, which requires connecting to a display device and an input device. This is obviously not suitable for devices without a screen or peripheral interfaces.
[0005] DHCP automatic acquisition: Devices automatically obtain IP addresses through Dynamic Host Configuration Protocol (DHCP). Although this method is simple, it has obvious shortcomings in scenarios such as industrial control and equipment management that require fixed IP addresses: IP addresses may change with DHCP lease updates, resulting in unstable device addressing; after a network restart, devices may be assigned different addresses, affecting system reliability and service continuity.
[0006] Serial command line configuration: Configuration is performed via UART serial port connection. This method requires physical contact with the device, which is difficult to implement when the device is deployed in remote, high-altitude, enclosed or hazardous environments, and is inefficient when deployed on a large scale.
[0007] Pre-programmed configuration: The network configuration is fixed into the system during the equipment production stage. It lacks flexibility after deployment, cannot adapt to changes in the network environment, and has high maintenance and update costs.
[0008] Existing alternatives, such as web-based network configuration, require the device to first obtain an initial IP address and establish an HTTP service, which is difficult to achieve when deploying screenless devices for the first time; while Bluetooth or Wi-Fi-based network configuration methods are not suitable for purely wired Ethernet devices.
[0009] The limitations of existing technologies are particularly evident in the following application scenarios: multiple screenless control terminals deployed in industrial automated production lines require fixed IP addresses to achieve reliable control communication; screenless network devices embedded in walls in intelligent building systems require remote configuration and management; screenless information processing units integrated in vehicle systems require stable network identity identifiers; and screenless server auxiliary equipment serving as computing nodes in data centers requires reliable network addressing.
[0010] In addition, existing technologies have the following drawbacks: the configuration process is complex, requires professional knowledge, and increases the difficulty of deployment and maintenance; there is a lack of configuration verification mechanisms, and incorrect configuration may lead to network failures; batch configuration is not supported, resulting in low efficiency during large-scale deployment; there is a lack of configuration persistence mechanisms, and configurations may be lost after device restarts; and there is a lack of network status monitoring and adaptive adjustment capabilities.
[0011] Therefore, existing technologies still need to be improved and developed. Summary of the Invention
[0012] The main objective of this invention is to provide a method, system, terminal, and computer-readable storage medium for configuring Ethernet IP addresses for screenless RK3588 devices, aiming to solve the problem of inconsistent IP addresses after Ethernet connection of existing screenless devices.
[0013] To achieve the above objectives, the present invention provides a method for configuring Ethernet IP addresses for screenless RK3588 devices, the method comprising the following steps: After the screenless RK3588 device is powered on, a connection is established with the PC through the debugging tool HDC. The mount command is executed in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions. Using the file transfer function of the debugging tool HDC, the pre-installed Ethernet configuration management tool is pushed from the PC to the system binary directory of the screenless RK3588 device. In the command-line environment of the device, the Ethernet configuration management tool is granted executable permissions. After authorizing the Ethernet configuration management tool, in the same device command-line environment, directly invoke and execute the Ethernet configuration management tool to start the interactive configuration interface; In the interactive configuration interface, users can enter numerical commands as prompted, and the Ethernet configuration management tool will execute preset functions bound to those numerical commands. Enter the specified network interface name, select the configuration mode, and then enter the predetermined IP address, subnet mask, gateway address, and domain name server address. After the configuration is complete, execute the network connectivity test command to verify whether the static IP address has been successfully configured and has the ability to access the external network.
[0014] Optionally, the method for configuring the Ethernet IP address of the screenless RK3588 device, wherein after the screenless RK3588 device is powered on, a connection is established with the PC through the debugging tool HDC, and a mount command is executed in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions, specifically includes: After the screenless RK3588 device is powered on, open a command line window on the PC and enter the HDC connection command to establish a debugging connection with the screenless RK3588 device; Enter the hdc shell command in the command line window to enter the device command line environment; In the device command-line environment, execute the command `mount -o remount,rw / ` to remount the target file system of the screenless RK3588 device with read and write permissions, granting file push and modification permissions.
[0015] Optionally, the method for configuring the Ethernet IP address of the screenless RK3588 device, wherein the step of pushing the pre-installed Ethernet configuration management tool from the PC to the system binary directory of the screenless RK3588 device through the file transfer function of the debugging tool HDC, and granting executable permissions to the Ethernet configuration management tool in the device's command-line environment, specifically includes: In the command line window on the PC, execute the hdc file send command to push the Ethernet configuration management tool stored on the PC to the / system / bin / directory of the screenless RK3588 device; Re-enter the device command-line environment using the hdc shell command and execute the chmod command to grant executable permissions to the Ethernet configuration management tool.
[0016] Optionally, the method for configuring the Ethernet IP address of the screenless RK3588 device, wherein after authorizing the Ethernet configuration management tool, the step of directly calling and executing the Ethernet configuration management tool in the same device command-line environment to start the interactive configuration interface specifically includes: In the device command-line environment with executable permissions, simply enter the filename of the Ethernet configuration management tool to start it; When the Ethernet configuration management tool is started, an interactive function selection menu is presented in the command line. The menu lists at least the option numbers for setting IP parameters, obtaining IP information, obtaining network card status, obtaining all active network cards, listening to network link messages, and exiting the program.
[0017] Optionally, the method for configuring the Ethernet IP address of the screenless RK3588 device, wherein the step of inputting a numeric command according to prompts in the interactive configuration interface, and the Ethernet configuration management tool executing a preset function bound to the numeric command according to the numeric command, specifically includes: When the Ethernet configuration management tool is started, a function menu containing multiple numbered options is displayed in the command-line interface; According to the configuration requirements, under the interactive prompts of the function menu, enter the corresponding numerical command to select the function operation to be performed; The Ethernet configuration management tool receives and responds to the digital command, and executes the preset function bound to the digital command.
[0018] Optionally, in the method for configuring the Ethernet IP address of the screenless RK3588 device, the function menu includes at least the following mapping relationships: The numeric instruction 0 is mapped to the TestSetIfaceConfig function, which is used to enter the IP parameter setting sub-process; The numeric instruction 1 is mapped to the TestGetIfaceConfig function, which is used to obtain the IP configuration information of the current network interface; Numeric command 2 is mapped to the TestIsIfaceActive function, which is used to query the activation status of a specified network interface; The numeric instruction 3 is mapped to the TestGetAllActiveIfaces function, which is used to enumerate and return all currently active network interfaces; The number instruction 4 is mapped to the Netlink function, which is used to enter the kernel network event listening mode based on the Netlink mechanism; The digital command 100 is mapped to the exit function, which is used to terminate and exit the Ethernet configuration management tool.
[0019] Optionally, the method for configuring the Ethernet IP address of the screenless RK3588 device includes the following steps: sequentially inputting the specified network interface name, selecting the configuration mode, and sequentially inputting the predetermined IP address, subnet mask, gateway address, and domain name server address; after configuration, executing a network connectivity test command to verify whether the static IP address is successfully configured and has external network access capability; specifically including: At the interactive prompt, enter the name of the target wired Ethernet network interface; Choose manual configuration mode or automatic configuration mode, and enter the predetermined static IP address, subnet mask, gateway address, preferred DNS server address and alternate DNS server address in sequence; After completing the input, execute the ping command in the device command line to test the connectivity with the external domain name, and determine whether the static IP address has been successfully configured and taken effect based on the returned result.
[0020] Furthermore, to achieve the above objectives, the present invention also provides an Ethernet IP address configuration system for screenless RK3588 devices, wherein the Ethernet IP address configuration system for screenless RK3588 devices includes: The device connection and permission configuration module is used to establish a connection with the PC through the debugging tool HDC after the screenless RK3588 device is powered on, and execute the mount command in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions. The tool deployment and authorization module is used to push the pre-installed Ethernet configuration management tool from the PC to the system binary directory of the screenless RK3588 device through the file transfer function of the debugging tool HDC, and to grant executable permissions to the Ethernet configuration management tool in the command line environment of the device. The configuration tool execution module is used to directly call and execute the Ethernet configuration management tool in the same device command-line environment after the Ethernet configuration management tool has been authorized, and to start the interactive configuration interface. The configuration function selection module is used to input numerical commands according to prompts in the interactive configuration interface, and the Ethernet configuration management tool executes preset functions bound to the numerical commands according to the numerical commands; The static IP configuration and verification module is used to sequentially input the specified network interface name, select the configuration mode, and sequentially input the predetermined IP address, subnet mask, gateway address, and domain name server address. After the configuration is completed, a network connectivity test command is executed to verify whether the static IP address is configured successfully and has the ability to access the external network.
[0021] In addition, to achieve the above objectives, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and an Ethernet IP address configuration program for a screenless RK3588 device stored in the memory and executable on the processor. When the Ethernet IP address configuration program for a screenless RK3588 device is executed by the processor, it implements the steps of the Ethernet IP address configuration method for a screenless RK3588 device as described above.
[0022] Furthermore, to achieve the above objectives, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an Ethernet IP address configuration program for a screenless RK3588 device, and when the Ethernet IP address configuration program for the screenless RK3588 device is executed by a processor, it implements the steps of the Ethernet IP address configuration method for the screenless RK3588 device as described above.
[0023] In this invention, after the screenless RK3588 device is powered on, a connection is established with the PC via the debugging tool HDC. A mount command is executed in the command-line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions. Through the file transfer function of the debugging tool HDC, a pre-installed Ethernet configuration management tool is pushed from the PC to the system binary directory of the screenless RK3588 device. In the device's command-line environment, the Ethernet configuration management tool is granted executable permissions. After authorization of the Ethernet configuration management tool, it is directly invoked and executed in the same device command-line environment, starting the interactive configuration interface. In the interactive configuration interface, numerical commands are entered according to the prompts. The Ethernet configuration management tool executes the preset functions bound to the numerical commands. The specified network interface name is entered sequentially, the configuration mode is selected, and the predetermined IP address, subnet mask, gateway address, and domain name server address are entered sequentially. After configuration, a network connectivity test command is executed to verify whether the static IP address is successfully configured and has external network access capability. This invention enables simple, reliable, and efficient configuration and maintenance of fixed IP addresses without relying on a screen, pre-programming fixed configurations, or reducing network reliability, thus meeting the comprehensive needs of modern embedded systems for network stability, deployment flexibility, and ease of management. Attached Figure Description
[0024] Figure 1 This is a flowchart of a preferred embodiment of the Ethernet IP address configuration method for screenless RK3588 devices according to the present invention; Figure 2This is a schematic diagram of the configuration operation when fixing the Ethernet IP address in a preferred embodiment of the Ethernet IP address configuration method for the screenless RK3588 device of the present invention; Figure 3 This is a structural diagram of a preferred embodiment of the Ethernet IP address configuration system for screenless RK3588 devices according to the present invention; Figure 4 This is a structural diagram of a preferred embodiment of the terminal of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0026] The preferred embodiment of the present invention describes the Ethernet IP address configuration method for a screenless RK3588 device, such as... Figure 1 As shown, the method for configuring the Ethernet IP address of the screenless RK3588 device includes the following steps: Step S10: After the screenless RK3588 device is powered on, a connection is established with the PC through the debugging tool HDC. The mount command is executed in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions.
[0027] Specifically, after the screenless RK3588 device is powered on, open a command-line window on the PC and enter the HDC (HarmonyOS Device Connector, a command-line tool for HarmonyOS developers, mainly used for device debugging and management) connection command to establish a debugging connection with the screenless RK3588 device (for example, a technician opens a command prompt (cmd) on a PC connected to the same local area network and enters hdc connect [device IP] or executes hdclist targets after connecting via USB to confirm the device connection); enter the hdc shell command in the command-line window to enter the device command-line environment; in the device command-line environment, execute the mount -o remount,rw / command to remount the target file system of the screenless RK3588 device with read and write permissions, granting file push and modification permissions. This step establishes an HDC debugging connection and mounts the file system as writable, creating a remotely operable command-line control channel for the screenless device and temporarily unlocks modification permissions for critical system areas, thus laying the necessary permissions and operational foundation for subsequent core operations such as pushing configuration tools and modifying network parameters.
[0028] Step S20: Using the file transfer function of the debugging tool HDC, push the preset Ethernet configuration management tool from the PC to the system binary directory of the screenless RK3588 device, and grant executable permissions to the Ethernet configuration management tool in the command line environment of the device.
[0029] Specifically, in the command line window on the PC, execute the `hdc file send` command (e.g., `hdc filesend ethernet_manager_local_test system / bin`, where `. / ethernet_config_tool` is the executable file of the tool stored in the current directory of the PC) to push the Ethernet configuration management tool stored on the PC to the ` / system / bin / ` directory of the screenless RK3588 device; then, re-enter the device command line environment using the `hdc shell` command and execute the `chmod` command (e.g., `chmod 777 system / bin / ethernet_manager_local_test`) to set executable permissions for the Ethernet configuration management tool.
[0030] This step, through file push and permission settings, precisely deploys the customized configuration management tool to the device's system command directory and grants it executable permissions, thereby realizing the localization of core functional modules on the device side. This provides the necessary software foundation for subsequently breaking away from PC dependence and directly launching the interactive configuration interface on the device to execute network parameter settings.
[0031] Step S30: After authorizing the Ethernet configuration management tool, directly call and execute the Ethernet configuration management tool in the same device command line environment to start the interactive configuration interface.
[0032] Specifically, in the device command-line environment after granting executable permissions, directly enter the filename of the Ethernet configuration management tool to start it, that is, continue to enter ethernet_manager_local_test in the current command line to call the execution tool; after the Ethernet configuration management tool starts, an interactive function selection menu is presented in the command line, wherein the menu at least lists the option numbers for setting IP parameters, obtaining IP information, obtaining network card status, obtaining all active network cards, listening to network link messages, and exiting the program.
[0033] This step, by invoking and launching a localized configuration tool, successfully encapsulates complex underlying network configuration and query commands into a clearly structured and functionally defined interactive menu interface. This fundamentally changes the configuration model, transforming the original technical operations that required memorizing specialized commands, parameters, and syntax into standardized, wizard-driven tasks that users can perform by following numerical guidance, greatly reducing the operational threshold and the probability of errors.
[0034] Step S40: In the interactive configuration interface, input a numerical command as prompted, and the Ethernet configuration management tool executes the preset function bound to the numerical command according to the numerical command.
[0035] Specifically, when the Ethernet configuration management tool is started, a function menu containing multiple numbered options is displayed in the command-line interface; according to the configuration requirements, the user enters the corresponding numerical command under the interactive prompts of the function menu to select the function operation to be performed; the Ethernet configuration management tool receives and responds to the numerical command and executes the preset function bound to the numerical command.
[0036] After the interactive configuration interface is launched, a text menu is displayed, for example: text [0] TestSetIfaceConfig - Set network interface IP parameters [1] TestGetIfaceConfig - Get IP configuration information [2] TestIsIfaceActive - Checks the network card activation status [3] TestGetAllActiveIfaces - Lists all active network cards [4] Netlink - Listening to network messages
[100] exit - Exit the program Please enter the command number: That is, the function menu contains at least the following mapping relationships: The numeric instruction 0 is mapped to the TestSetIfaceConfig function, which is used to enter the IP parameter setting sub-process; The numeric instruction 1 is mapped to the TestGetIfaceConfig function, which is used to obtain the IP configuration information of the current network interface; Numeric command 2 is mapped to the TestIsIfaceActive function, which is used to query the activation status of a specified network interface; The numeric instruction 3 is mapped to the TestGetAllActiveIfaces function, which is used to enumerate and return all currently active network interfaces; The number instruction 4 is mapped to the Netlink function, which is used to enter the kernel network event listening mode based on the Netlink mechanism; The digital command 100 is mapped to the exit function, which is used to terminate and exit the Ethernet configuration management tool.
[0037] This step modularizes and encapsulates network configuration tasks into instructions. By receiving and parsing concise numerical instructions through an interactive menu, the tool automatically triggers the corresponding preset function modules (such as IP settings and status queries). This abstracts the complex underlying network management operations into user-friendly point-and-click interactions, greatly simplifying the operation process and improving the accuracy and efficiency of configuration.
[0038] Step S50: Enter the specified network interface name in sequence, select the configuration mode, and enter the predetermined IP address, subnet mask, gateway address and domain name server address in sequence. After the configuration is completed, execute the network connectivity test command to verify whether the static IP address is configured successfully and has the ability to access the external network.
[0039] Specifically, such as Figure 2 As shown, under interactive prompts, enter the name of the target wired Ethernet network interface; select manual configuration mode or automatic configuration mode, and then enter the predetermined static IP address, subnet mask, gateway address, preferred DNS server address, and alternate DNS server address in sequence. For example, when selecting manual configuration mode, after selecting mode "1", the system will guide the user to enter all the necessary network parameters step by step. For example, the interactive process for configuring a static IP for a network interface named "eth0" is as follows: the user first enters the network interface name "eth0", selects manual mode, and then enters the following parameters in sequence: The IP address is set to "192.168.1.100", subnet mask to "255.255.255.0", gateway to "192.168.1.1", preferred DNS to "8.8.8.8", and alternate DNS to "114.114.114.114". After entering the information, execute the ping command in the device command line to test the connectivity with the external domain name. Based on the returned result, determine whether the static IP address has been successfully configured and is effective. If the configuration is successful, the device should receive a reply data packet, thus visually confirming that network connectivity and DNS resolution are normal.
[0040] This step completes the full configuration of network parameters through guided input and uses active connectivity testing (such as pinging the external network) as a closed-loop verification. This ensures that the entire process of static IP address configuration, from parameter setting to actual effectiveness, is controllable and verifiable. It not only achieves reliable setting of stable network identity but also provides instant configuration feedback, thereby guaranteeing the success rate of network configuration and the reliability of final communication in a screenless environment.
[0041] This invention provides a stable method for fixing Ethernet IP addresses, allowing users to configure Ethernet IP commands on a computer to perform a fixed IP operation on the device. After the device successfully fixes its Ethernet IP address and connects to the network, it meets the needs of screenless devices to fix their IP addresses for more stable network communication.
[0042] The technical effects that this invention can bring are as follows: (1) Achieving reliable offline configuration and network stability assurance for screenless devices: This invention solves the fundamental problem that screenless embedded devices cannot be configured through a local interface; by introducing a configuration architecture of "PC-toolchain-device", users can complete complex network parameter settings through a standard development and debugging connection (HDC) without the need for external screens, keyboards and other peripherals; after successful configuration, the device obtains a fixed IP address, completely eliminating the IP drift problem caused by DHCP lease changes, address conflicts or network restarts, thereby providing a stable and predictable network communication foundation for upper-layer applications, ensuring the continuity and reliability of key services such as industrial control and data acquisition.
[0043] (2) Provide a standardized and reusable configuration process to improve deployment and maintenance efficiency: This invention encapsulates the complex command-line operations that originally required professional knowledge into an interactive, menu-driven standardized tool process; users only need to input parameters step by step, and the tool automatically completes the underlying operations such as permission modification, file push, command execution and configuration writing; this method greatly reduces the technical threshold for operators, making the configuration process simple, intuitive and less prone to errors; in the scenario of large-scale deployment or remote maintenance, this standardized process can be written into a script to achieve automation, which significantly improves the deployment speed, maintenance efficiency and management consistency of the equipment.
[0044] (3) Built-in configuration verification mechanism to ensure the accuracy and success of configuration operations: Traditional configuration methods often lack immediate feedback after inputting commands, making it difficult to confirm whether the configuration has truly taken effect; This invention innovatively uses network connectivity testing (such as pinging public domain names) as the final closed-loop step in the configuration process; This verification mechanism can verify in real time whether the fixed IP address has taken effect correctly, and whether the device has successfully connected to the network and has external communication capabilities; This is equivalent to providing a "health check" for each configuration operation, ensuring the accuracy of the configuration results, and quickly locating problems caused by incorrect parameter input, network link failure, etc., reducing subsequent troubleshooting costs.
[0045] (4) Enhance system security and configuration persistence: By operating through standardized tools, the risk of system file corruption or permission confusion caused by manually entering incorrect commands is avoided; during the configuration process, the tools write network parameters to the device's persistent storage area (such as specific configuration files or system services) through formal system calls or APIs, ensuring that the configuration is not lost after the device restarts; compared with temporary command line settings, this method provides the configuration persistence guarantee required by enterprise-level applications; at the same time, the entire process is based on a controlled debugging connection, which is more secure than opening unnecessary network services (such as temporary web services) for configuration.
[0046] Furthermore, such as Figure 3 As shown, based on the above-described method for configuring Ethernet IP addresses for screenless RK3588 devices, this invention also provides a corresponding Ethernet IP address configuration system for screenless RK3588 devices, wherein the Ethernet IP address configuration system for screenless RK3588 devices includes: The device connection and permission configuration module 51 is used to establish a connection with the PC through the debugging tool HDC after the screenless RK3588 device is powered on, and execute the mount command in the command line window of the PC to mount the target file system of the screenless RK3588 device as having read and write permissions. The tool deployment and authorization module 52 is used to push the pre-installed Ethernet configuration management tool from the PC to the system binary directory of the screenless RK3588 device through the file transfer function of the debugging tool HDC, and to grant executable permissions to the Ethernet configuration management tool in the command line environment of the device. The configuration tool execution module 53 is used to directly call and execute the Ethernet configuration management tool in the same device command line environment after the Ethernet configuration management tool has been authorized, and to start the interactive configuration interface. The configuration function selection module 54 is used to input numerical commands according to prompts in the interactive configuration interface, and the Ethernet configuration management tool executes preset functions bound to the numerical commands according to the numerical commands. The static IP configuration and verification module 55 is used to sequentially input the specified network interface name, select the configuration mode, and sequentially input the predetermined IP address, subnet mask, gateway address, and domain name server address. After the configuration is completed, a network connectivity test command is executed to verify whether the static IP address is configured successfully and has the ability to access the external network.
[0047] Furthermore, such as Figure 4As shown, based on the above-described method and system for configuring Ethernet IP addresses for screenless RK3588 devices, the present invention also provides a terminal, which includes a processor 10, a memory 20, and a display 30. Figure 4 Only some of the terminal components are shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0048] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory. In other embodiments, the memory 20 may be an external storage device of the terminal, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Further, the memory 20 may include both internal and external storage devices. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code installed on the terminal. The memory 20 can also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 20 stores an Ethernet IP address configuration program 40 for the screenless RK3588 device. This Ethernet IP address configuration program 40 for the screenless RK3588 device can be executed by the processor 10, thereby implementing the Ethernet IP address configuration method for the screenless RK3588 device in this application.
[0049] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor, or other data processing chip, used to run program code stored in the memory 20 or process data, such as executing the Ethernet IP address configuration method for the screenless RK3588 device.
[0050] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 30 is used to display information on the terminal and to display a visual user interface. The terminal's processor 10, memory 20, and display 30 communicate with each other via a system bus.
[0051] In one embodiment, when the processor 10 executes the Ethernet IP address configuration program 40 for the screenless RK3588 device stored in the memory 20, the following steps are performed: After the screenless RK3588 device is powered on, a connection is established with the PC through the debugging tool HDC. The mount command is executed in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions. Using the file transfer function of the debugging tool HDC, the pre-installed Ethernet configuration management tool is pushed from the PC to the system binary directory of the screenless RK3588 device. In the command-line environment of the device, the Ethernet configuration management tool is granted executable permissions. After authorizing the Ethernet configuration management tool, in the same device command-line environment, directly invoke and execute the Ethernet configuration management tool to start the interactive configuration interface; In the interactive configuration interface, users can enter numerical commands as prompted, and the Ethernet configuration management tool will execute preset functions bound to those numerical commands. Enter the specified network interface name, select the configuration mode, and then enter the predetermined IP address, subnet mask, gateway address, and domain name server address. After the configuration is complete, execute the network connectivity test command to verify whether the static IP address has been successfully configured and has the ability to access the external network.
[0052] Specifically, after the screenless RK3588 device is powered on, a connection is established with the PC via the debugging tool HDC. A mount command is executed in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions. This includes: After the screenless RK3588 device is powered on, open a command line window on the PC and enter the HDC connection command to establish a debugging connection with the screenless RK3588 device; Enter the hdc shell command in the command line window to enter the device command line environment; In the device command-line environment, execute the command `mount -o remount,rw / ` to remount the target file system of the screenless RK3588 device with read and write permissions, granting file push and modification permissions.
[0053] Specifically, the step of pushing the pre-installed Ethernet configuration management tool from the PC to the system binary directory of the screenless RK3588 device via the file transfer function of the debugging tool HDC, and granting executable permissions to the Ethernet configuration management tool in the device's command-line environment, includes: In the command line window on the PC, execute the hdc file send command to push the Ethernet configuration management tool stored on the PC to the / system / bin / directory of the screenless RK3588 device; Re-enter the device command-line environment using the hdc shell command and execute the chmod command to grant executable permissions to the Ethernet configuration management tool.
[0054] Specifically, after authorizing the Ethernet configuration management tool, directly invoking and executing the tool within the same device command-line environment to launch the interactive configuration interface includes: In the device command-line environment with executable permissions, simply enter the filename of the Ethernet configuration management tool to start it; When the Ethernet configuration management tool is started, an interactive function selection menu is presented in the command line. The menu lists at least the option numbers for setting IP parameters, obtaining IP information, obtaining network card status, obtaining all active network cards, listening to network link messages, and exiting the program.
[0055] Specifically, in the interactive configuration interface, the Ethernet configuration management tool executes a preset function bound to the numerical command after the user inputs a numerical command as prompted. This includes: When the Ethernet configuration management tool is started, a function menu containing multiple numbered options is displayed in the command-line interface; According to the configuration requirements, under the interactive prompts of the function menu, enter the corresponding numerical command to select the function operation to be performed; The Ethernet configuration management tool receives and responds to the digital command, and executes the preset function bound to the digital command.
[0056] The function menu includes at least the following mapping relationships: The numeric instruction 0 is mapped to the TestSetIfaceConfig function, which is used to enter the IP parameter setting sub-process; The numeric instruction 1 is mapped to the TestGetIfaceConfig function, which is used to obtain the IP configuration information of the current network interface; Numeric command 2 is mapped to the TestIsIfaceActive function, which is used to query the activation status of a specified network interface; The numeric instruction 3 is mapped to the TestGetAllActiveIfaces function, which is used to enumerate and return all currently active network interfaces; The number instruction 4 is mapped to the Netlink function, which is used to enter the kernel network event listening mode based on the Netlink mechanism; The digital command 100 is mapped to the exit function, which is used to terminate and exit the Ethernet configuration management tool.
[0057] The process involves sequentially inputting the specified network interface name, selecting the configuration mode, and then sequentially inputting the predetermined IP address, subnet mask, gateway address, and domain name server address. After configuration, a network connectivity test command is executed to verify whether the static IP address has been successfully configured and has external network access capabilities. Specifically, this includes: At the interactive prompt, enter the name of the target wired Ethernet network interface; Choose manual configuration mode or automatic configuration mode, and enter the predetermined static IP address, subnet mask, gateway address, preferred DNS server address and alternate DNS server address in sequence; After completing the input, execute the ping command in the device command line to test the connectivity with the external domain name, and determine whether the static IP address has been successfully configured and taken effect based on the returned result.
[0058] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an Ethernet IP address configuration program for a screenless RK3588 device, and the Ethernet IP address configuration program for the screenless RK3588 device, when executed by a processor, implements the steps of the Ethernet IP address configuration method for the screenless RK3588 device as described above.
[0059] In summary, this invention provides a method, system, terminal, and computer-readable storage medium for configuring Ethernet IP addresses on a screenless RK3588 device. The method includes: after the screenless RK3588 device is powered on, establishing a connection with a PC via a debugging tool (HDC); executing a mount command in the command-line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions; and using the file transfer function of the debugging tool (HDC), pushing a pre-installed Ethernet configuration management tool from the PC to the system binary directory of the screenless RK3588 device; and configuring the Ethernet configuration management tool within the device's command-line environment. The tool is granted executable permissions; after authorization of the Ethernet configuration management tool, it is directly invoked and executed within the same device command-line environment, launching the interactive configuration interface; in the interactive configuration interface, numerical commands are entered as prompted, and the Ethernet configuration management tool executes preset functions bound to those commands; the specified network interface name is entered sequentially, the configuration mode is selected, and the predetermined IP address, subnet mask, gateway address, and domain name server address are entered sequentially. After configuration, a network connectivity test command is executed to verify whether the static IP address is successfully configured and has external network access capability. This invention enables simple, reliable, and efficient configuration and maintenance of fixed IP addresses without relying on a screen, pre-programming fixed configurations, or reducing network reliability, meeting the comprehensive needs of modern embedded systems for network stability, deployment flexibility, and ease of management.
[0060] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.
[0061] Of course, those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.). The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The computer-readable storage medium can be a memory, magnetic disk, optical disk, etc.
[0062] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A method for configuring Ethernet IP addresses for a screenless RK3588 device, characterized in that, The method for configuring the Ethernet IP address of the screenless RK3588 device includes: After the screenless RK3588 device is powered on, a connection is established with the PC through the debugging tool HDC. The mount command is executed in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions. Using the file transfer function of the debugging tool HDC, the pre-installed Ethernet configuration management tool is pushed from the PC to the system binary directory of the screenless RK3588 device. In the command-line environment of the device, the Ethernet configuration management tool is granted executable permissions. After authorizing the Ethernet configuration management tool, in the same device command-line environment, directly invoke and execute the Ethernet configuration management tool to start the interactive configuration interface; In the interactive configuration interface, users can enter numerical commands as prompted, and the Ethernet configuration management tool will execute preset functions bound to those numerical commands. Enter the specified network interface name, select the configuration mode, and then enter the predetermined IP address, subnet mask, gateway address, and domain name server address. After the configuration is complete, execute the network connectivity test command to verify whether the static IP address has been successfully configured and has the ability to access the external network.
2. The Ethernet IP address configuration method for a screenless RK3588 device according to claim 1, characterized in that, After the screenless RK3588 device is powered on, a connection is established with the PC via the debugging tool HDC. A mount command is executed in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions. Specifically, this includes: After the screenless RK3588 device is powered on, open a command line window on the PC and enter the HDC connection command to establish a debugging connection with the screenless RK3588 device; Enter the hdc shell command in the command line window to enter the device command line environment; In the device command-line environment, execute the command `mount -o remount,rw / ` to remount the target file system of the screenless RK3588 device with read and write permissions, granting file push and modification permissions.
3. The Ethernet IP address configuration method for a screenless RK3588 device according to claim 1, characterized in that, The process involves using the file transfer function of the HDC debugging tool to push the pre-installed Ethernet configuration management tool from the PC to the system binary directory of the screenless RK3588 device. Within the device's command-line environment, the Ethernet configuration management tool is granted executable permissions, specifically including: In the command line window on the PC, execute the hdc file send command to push the Ethernet configuration management tool stored on the PC to the / system / bin / directory of the screenless RK3588 device; Re-enter the device command-line environment using the hdc shell command and execute the chmod command to grant executable permissions to the Ethernet configuration management tool.
4. The Ethernet IP address configuration method for a screenless RK3588 device according to claim 1, characterized in that, After authorizing the Ethernet configuration management tool, the process involves directly invoking and executing the tool within the same device command-line environment to launch the interactive configuration interface. This includes: In the device command-line environment with executable permissions, simply enter the filename of the Ethernet configuration management tool to start it; When the Ethernet configuration management tool is started, an interactive function selection menu is presented in the command line. The menu lists at least the option numbers for setting IP parameters, obtaining IP information, obtaining network card status, obtaining all active network cards, listening to network link messages, and exiting the program.
5. The Ethernet IP address configuration method for a screenless RK3588 device according to claim 1, characterized in that, In the interactive configuration interface, the user enters a numerical command as prompted. The Ethernet configuration management tool then executes a preset function bound to that numerical command, specifically including: When the Ethernet configuration management tool is started, a function menu containing multiple numbered options is displayed in the command-line interface; According to the configuration requirements, under the interactive prompts of the function menu, enter the corresponding numerical command to select the function operation to be performed; The Ethernet configuration management tool receives and responds to the digital command, and executes the preset function bound to the digital command.
6. The Ethernet IP address configuration method for a screenless RK3588 device according to claim 5, characterized in that, The function menu shall contain at least the following mapping relationships: The numeric instruction 0 is mapped to the TestSetIfaceConfig function, which is used to enter the IP parameter setting sub-process; The numeric instruction 1 is mapped to the TestGetIfaceConfig function, which is used to obtain the IP configuration information of the current network interface; Numeric command 2 is mapped to the TestIsIfaceActive function, which is used to query the activation status of a specified network interface; The numeric instruction 3 is mapped to the TestGetAllActiveIfaces function, which is used to enumerate and return all currently active network interfaces; The number instruction 4 is mapped to the Netlink function, which is used to enter the kernel network event listening mode based on the Netlink mechanism; The digital command 100 is mapped to the exit function, which is used to terminate and exit the Ethernet configuration management tool.
7. The Ethernet IP address configuration method for a screenless RK3588 device according to claim 1, characterized in that, The process involves sequentially entering the specified network interface name, selecting the configuration mode, and then sequentially entering the predetermined IP address, subnet mask, gateway address, and domain name server address. After configuration, a network connectivity test command is executed to verify whether the static IP address has been successfully configured and has external network access capabilities. Specifically, this includes: At the interactive prompt, enter the name of the target wired Ethernet network interface; Choose manual configuration mode or automatic configuration mode, and enter the predetermined static IP address, subnet mask, gateway address, preferred DNS server address and alternate DNS server address in sequence; After completing the input, execute the ping command in the device command line to test the connectivity with the external domain name, and determine whether the static IP address has been successfully configured and taken effect based on the returned result.
8. An Ethernet IP address configuration system for screenless RK3588 devices, characterized in that, The Ethernet IP address configuration system for the screenless RK3588 device includes: The device connection and permission configuration module is used to establish a connection with the PC through the debugging tool HDC after the screenless RK3588 device is powered on, and execute the mount command in the command line window of the PC to mount the target file system of the screenless RK3588 device with read and write permissions. The tool deployment and authorization module is used to push the pre-installed Ethernet configuration management tool from the PC to the system binary directory of the screenless RK3588 device through the file transfer function of the debugging tool HDC, and to grant executable permissions to the Ethernet configuration management tool in the command line environment of the device. The configuration tool execution module is used to directly call and execute the Ethernet configuration management tool in the same device command-line environment after the Ethernet configuration management tool has been authorized, and to start the interactive configuration interface. The configuration function selection module is used to input numerical commands according to prompts in the interactive configuration interface, and the Ethernet configuration management tool executes preset functions bound to the numerical commands according to the numerical commands; The static IP configuration and verification module is used to sequentially input the specified network interface name, select the configuration mode, and sequentially input the predetermined IP address, subnet mask, gateway address, and domain name server address. After the configuration is completed, a network connectivity test command is executed to verify whether the static IP address is configured successfully and has the ability to access the external network.
9. A terminal, characterized in that, The terminal includes: a memory, a processor, and an Ethernet IP address configuration program for the screenless RK3588 device stored in the memory and executable on the processor. When the Ethernet IP address configuration program for the screenless RK3588 device is executed by the processor, it implements the steps of the Ethernet IP address configuration method for the screenless RK3588 device as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an Ethernet IP address configuration program for a screenless RK3588 device, which, when executed by a processor, implements the steps of the Ethernet IP address configuration method for a screenless RK3588 device as described in any one of claims 1-7.