Intelligent equipment debugging method, electronic equipment, intelligent equipment debugging system and medium

Through the optimization of TCP connection between wireless debugging equipment and user equipment and the transmission of GPIO interfaces, the limitations of traditional wired connection methods are solved, and efficient and low-cost robot debugging is achieved in complex environments.

CN120264389AActive Publication Date: 2025-07-04ZHEJIANG HUICANG INTELLIGENT TECHNOLOGY CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202510713518.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-07-04
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

Traditional robot debugging relies on wired connection methods, resulting in limited range of activity of debugging equipment, high hardware costs and easy damage, making it difficult to perform efficiently in complex environments.

Method used

Wireless debugging equipment is used to connect wirelessly to user equipment, and data transmission is carried out through TCP connection optimization and GPIO interface to realize wireless communication between wireless debugging equipment and smart devices.

Benefits of technology

It improves the portability and efficiency of debugging equipment, reduces operating costs, ensures the stability and speed of data transmission, reduces delay and packet loss, and meets the debugging needs of robots in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120264389A_ABST
    Figure CN120264389A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent equipment debugging method, electronic equipment, an intelligent equipment debugging system and a medium, wireless debugging equipment receives network distribution information sent by user equipment according to a preset network distribution mode, is connected to a target wireless network according to the network distribution information, establishes transmission control protocol (TCP) connection with the user equipment, and carries out debugging on the target wireless network according to native parameters of the TCP connection. And executing a preset TCP connection optimization operation, receiving burning data sent by the user equipment through TCP connection, writing the burning data into a storage area of the intelligent equipment according to a pre-configured GPIO interface, and sending a breakpoint debugging instruction to the intelligent equipment. The portability and the practicability of the wireless debugging equipment in different scenes are improved, the efficiency and the stability of network connection are improved, unnecessary network resource waste is reduced, the requirements for network bandwidth and server resources are reduced, the delay and packet loss phenomena in data transmission are effectively reduced, and the burning data transmission rate is improved, so that the burning speed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent devices, and specifically, to an intelligent device debugging method, an electronic device, an intelligent device debugging system, and a medium. Background Art

[0002] In the robot debugging scenario, traditional technologies mainly rely on wired connection methods to achieve communication between the debugging device and the robot. The physical interfaces of the debugging device and the robot are directly connected through a dedicated data cable to complete debugging operations such as program downloading, parameter configuration, and status monitoring. However, this debugging method has significant limitations: on the one hand, the wired connection is limited by the cable length and flexibility, resulting in a severely restricted range of movement of the robot during the debugging process. Especially in complex working environments (such as narrow spaces, high-altitude working scenarios) or scenarios that require mobile debugging, cable dragging is likely to cause problems such as poor contact and signal interference, significantly reducing the debugging efficiency; on the other hand, the hardware costs of the dedicated cable and the supporting interface are relatively high, and long-term use is likely to cause line failures due to wear and bending, increasing the maintenance cost.

[0003] Therefore, there is an urgent need for a wireless debugging technology that no longer relies on physical cables. Summary of the Invention

[0004] The present application aims to solve one of the technical problems in the related technologies to a certain extent. For this purpose, the present application provides an intelligent device debugging method, an electronic device, an intelligent device debugging system, and a medium.

[0005] As the first aspect of the present application, there is provided an intelligent device debugging method for a wireless debugging device, where the method includes: Receiving network configuration information sent by a user device according to a preset network configuration method; Connecting to a target wireless network according to the network configuration information and establishing a Transmission Control Protocol (TCP) connection with the user device; Performing a preset TCP connection optimization operation according to the native parameters of the TCP connection; Receiving the programming data sent by the user device through the TCP connection; Writing the programming data into the storage area of the intelligent device according to a pre-configured General-Purpose Input / Output (GPIO) interface; Sending a breakpoint debugging instruction to the intelligent device.

[0006] Optionally, the performing a preset TCP connection optimization operation according to the native parameters of the TCP connection includes: In the native parameters of the TCP connection, configure the Nagle algorithm disable option and the keep-alive mechanism enable option to the enabled state, and configure the values of the keep-alive probe idle timeout option, the keep-alive probe interval option, and the keep-alive probe maximum retry count option.

[0007] Optionally, the GPIO interface is pre-configured to set and clear the GPIO pin status by operating the GPIO register.

[0008] Optionally, the preset network configuration method includes the Bluetooth network configuration method, and the receiving the network configuration information sent by the user device according to the preset network configuration method includes: Receiving a Bluetooth connection request sent by the user device; wherein, the Bluetooth connection request is sent by the user device after selecting the wireless debugging device from the devices searched by Bluetooth; When the verification of the Bluetooth connection request is passed, sending a Bluetooth connection response to the user device; Receiving the network configuration information sent by the user device.

[0009] Optionally, the preset network configuration method includes the manual network configuration method, and the receiving the network configuration information sent by the user device according to the preset network configuration method includes: Receiving the network configuration information sent by the user device; wherein, the network configuration information is sent by the user device according to the static data of the wireless debugging device input externally.

[0010] Optionally, the method further includes: Recording the serial port log with the smart device into the hot-pluggable storage medium of the wireless debugging device.

[0011] As a second aspect of the present application, there is provided a smart device debugging method for a user device, wherein the method includes: Sending network configuration information to a wireless debugging device according to a preset network configuration method for the wireless debugging device to connect to a target wireless network according to the network configuration information and establish a Transmission Control Protocol (TCP) connection with the user device; Performing a preset TCP connection optimization operation according to the native parameters of the TCP connection; Sending programming data to the wireless debugging device through the TCP connection for the wireless debugging device to write the programming data into the storage area of the smart device according to the pre-configured General-Purpose Input / Output (GPIO) interface and send a breakpoint debugging instruction to the smart device.

[0012] As a third aspect of the present application, there is provided an electronic device, wherein the electronic device includes: One or more processors; A memory stores one or more computer programs, and when the one or more computer programs are executed by the one or more processors, the one or more processors are caused to implement any of the following: The intelligent device debugging method for a wireless debugging device provided in the first aspect of this application; The intelligent device debugging method for a user equipment provided in the second aspect of this application.

[0013] As a fourth aspect of this application, an intelligent device debugging system is provided, wherein the intelligent device debugging system includes a user equipment, a wireless debugging device, and an intelligent device; The user equipment is configured to send network configuration information to the wireless debugging device according to a preset network configuration method, perform a preset TCP connection optimization operation according to the native parameters of the TCP connection, and send programming data to the wireless debugging device through the TCP connection; The wireless debugging device is configured to connect to a target wireless network according to the network configuration information, establish a Transmission Control Protocol (TCP) connection with the user equipment, perform a preset TCP connection optimization operation according to the native parameters of the TCP connection, write the programming data into the storage area of the intelligent device according to a pre-configured General-Purpose Input / Output (GPIO) interface, and send a breakpoint debugging instruction to the intelligent device.

[0014] As a fifth aspect of this application, a computer-readable medium stores a computer program, wherein when the computer program is executed by a processor, it implements any of the following: The intelligent device debugging method for a wireless debugging device provided in the first aspect of this application; The intelligent device debugging method for a user equipment provided in the second aspect of this application.

[0015] The intelligent device debugging method for wireless debugging devices provided by the embodiments of the present application receives, through a wireless debugging device, network configuration information sent by a user device according to a preset network configuration method, connects to a target wireless network according to the network configuration information, and establishes a TCP connection with the user device. The wireless debugging device is no longer limited by the length and position of physical cables, and users can debug intelligent devices within a larger activity range, significantly improving the portability of the wireless debugging device. The target wireless network can be either the wireless network provided by the user device or the wireless network to which the user device is connected, further enhancing the portability and practicality of the wireless debugging device in different scenarios. By performing preset TCP connection optimization operations according to the native parameters of the TCP connection, the efficiency and stability of the network connection can be improved, unnecessary network resource waste can be reduced, and the requirements for network bandwidth and server resources can be lowered, thereby indirectly reducing the operating costs during the debugging process. Most importantly, by establishing a stable TCP connection and performing optimization operations, it is ensured that the burned data can be transmitted quickly and accurately between the user device and the wireless debugging device. Relying on the reliable transmission characteristics of the TCP protocol itself and combined with the preset TCP connection optimization operations, the delay and packet loss phenomena in data transmission can be effectively reduced, the burned data transmission rate can be increased, and thus the burning speed can be improved. In addition, by using the pre-configured GPIO interface for burning, unnecessary waiting time can be reduced, thereby further enhancing the burning speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The following further describes the present application with reference to the accompanying drawings: Figure 1 is a flowchart of an implementation manner of the intelligent device debugging method for wireless debugging devices provided by the embodiments of the present application; Figure 2 is a flowchart of another implementation manner of the intelligent device debugging method for wireless debugging devices provided by the embodiments of the present application; Figure 3 is a flowchart of yet another implementation manner of the intelligent device debugging method for wireless debugging devices provided by the embodiments of the present application; Figure 4 is a flowchart of still another implementation manner of the intelligent device debugging method for wireless debugging devices provided by the embodiments of the present application; Figure 5 is a flowchart of another implementation manner of the intelligent device debugging method for wireless debugging devices provided by the embodiments of the present application; Figure 6 is a flowchart of an implementation manner of the intelligent device debugging method for user devices provided by the embodiments of the present application; Figure 7It is a module diagram of an implementation manner of the electronic device provided by the embodiments of the present application; Figure 8 It is a schematic diagram of the computer-readable medium provided by the embodiments of the present application.

[0017] Description of the reference numerals 101: Processor 102: Memory 103: I / O interface 104: Bus Detailed implementation manners The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions throughout. Based on the embodiments in the implementation manners, it is intended to explain the present application and should not be construed as a limitation to the present application.

[0018] As used herein, the phrase "in one embodiment" or "instance" or "example" means that a particular feature, structure, or characteristic described in connection with the embodiment itself may be included in at least one embodiment of the present disclosure. The appearances of the phrase "in one embodiment" in various places in the specification do not necessarily refer to the same embodiment.

[0019] In the robot debugging scenario, the traditional technology mainly relies on wired connection methods to achieve communication between the debugging device and the robot. The debugging device is directly connected to the physical interface of the robot through a dedicated data cable to complete debugging operations such as program downloading, parameter configuration, and status monitoring. However, this debugging method has significant limitations: on the one hand, the wired connection is limited by the cable length and flexibility, resulting in a severely restricted range of movement of the robot during the debugging process. Especially in complex working environments (such as narrow spaces, high-altitude operation scenarios) or scenarios that require mobile debugging, cable dragging is likely to cause problems such as poor contact and signal interference, significantly reducing the debugging efficiency; on the other hand, the hardware costs of the dedicated cable and the supporting interface are relatively high, and long-term use is likely to cause circuit failures due to wear and bending, increasing the maintenance cost.

[0020] In response to this, the applicant of the present application proposes to provide a wireless debugging device, wirelessly connect the wireless debugging device to the user device, physically connect the wireless debugging device to the intelligent device, and optimize the Transmission Control Protocol (TCP) connection between the wireless debugging device and the user device and the General Purpose Input / Output (GPIO) connection between the wireless debugging device and the intelligent device, so as to improve the debugging efficiency, the portability of the debugging device, and reduce the debugging cost.

[0021] As the first aspect of the embodiments of the present application, a smart device debugging method for a wireless debugging device is provided. Among them, as Figure 1 shown, the method may include: Step S110: Receive the network configuration information sent by the user device according to a preset network configuration method; Step S120: Connect to the target wireless network according to the network configuration information and establish a Transmission Control Protocol (TCP) connection with the user device; Step S130: Perform a preset TCP connection optimization operation according to the native parameters of the TCP connection; Step S140: Receive the burning data sent by the user device through the TCP connection; Step S150: Write the burning data into the storage area of the smart device according to the General-Purpose Input / Output (GPIO) interface configured in advance; Step S160: Send a breakpoint debugging instruction to the smart device.

[0022] Among them, the user device may include devices with data processing functions and user interaction functions such as a Personal Computer (PC), a smart phone, etc. The user device can install debugging-related application programs (Apps). The user can cooperate with the wireless debugging device to complete the debugging of the smart device by operating the debugging-related APPs and other methods.

[0023] Among them, the smart device may include robots, smart home devices, smart wearable devices, etc. The smart device debugging method provided by the embodiments of the present application is especially applicable to debugging robots in the warehousing and logistics field. The robot can be a ground robot or a shelf robot. In this case, the burning data is the data for firmware burning of the robot.

[0024] Among them, the embodiments of the present application do not make special limitations on the target wireless network. For example, the target wireless network may include the wireless network provided by the user device, especially applicable to scenarios with short distances and no available external networks; the target wireless network may also include the wireless network connected by the user device. In this case, the two are in the same network environment, and more stable and wider-range data transmission can be achieved, especially applicable to scenarios with long distances and available external networks.

[0025] Among them, it can be understood that the wireless debugging device is physically connected to the smart device, so that the debugging device transmits the burning data to the smart device through the GPIO.

[0026] The intelligent device debugging method provided by the embodiments of the present application for wireless debugging devices receives, through the wireless debugging device, the network configuration information sent by the user device according to a preset network configuration method, connects to the target wireless network according to the network configuration information, and establishes a TCP connection with the user device. The wireless debugging device is no longer limited by the length and position of physical cables, and users can debug intelligent devices within a larger activity range, significantly improving the portability of the wireless debugging device. The target wireless network can be either the wireless network provided by the user device or the wireless network to which the user device is connected, further enhancing the portability and practicality of the wireless debugging device in different scenarios. By performing preset TCP connection optimization operations according to the native parameters of the TCP connection, the efficiency and stability of the network connection can be improved, unnecessary network resource waste can be reduced, and the requirements for network bandwidth and server resources can be lowered, thereby indirectly reducing the operating costs during the debugging process. Most importantly, by establishing a stable TCP connection and performing optimization operations, it is ensured that the burned data can be transmitted quickly and accurately between the user device and the wireless debugging device. Relying on the reliable transmission characteristics of the TCP protocol itself and combined with the preset TCP connection optimization operations, the delay and packet loss phenomena in data transmission can be effectively reduced, the burned data transmission rate can be increased, and thus the burning speed can be improved. In addition, by using the pre-configured GPIO interface for burning, unnecessary waiting time can be reduced, thereby further improving the burning speed.

[0027] For example, by using the steps in the debugging method provided by the embodiments of the present application, a burning speed of 10 kb / s can be achieved.

[0028] It should also be noted that the intelligent device debugging method provided by the embodiments of the present application finally adopts the "breakpoint debugging" method to debug the firmware in the intelligent device. This debugging method can interrupt the program at the required place, facilitating subsequent analysis. Through steps S110 to S150, the firmware of the intelligent device can be in the latest state, meeting the requirements for performing breakpoint debugging, and ultimately achieving better debugging results.

[0029] Since intelligent devices such as robots in the warehousing and logistics field are in a high-speed running state every day, once a bug occurs in the robot, it will cause the material handover to be unable to proceed. Therefore, it is particularly important to perform daily debugging on the robot. As described above, the intelligent device debugging method provided by the embodiments of the present application can ensure that the firmware of the robot is in the latest state during breakpoint debugging through the method of "efficiently burning the firmware (i.e., steps S110 to S150)", meeting the daily debugging requirements of the robot.

[0030] The applicant of the present application further proposes that some default options can be configured, that is, modified, in the native parameters of the TCP connection to achieve TCP connection optimization. Correspondingly, in some embodiments, as Figure 2 shown, performing the preset TCP connection optimization operation according to the native parameters of the TCP connection (that is, involved in step S130) may include: Step S131, in the native parameters of the TCP connection, configure the Nagle algorithm disable option and the keepalive mechanism enable option to the enabled state, and configure the values of the keepalive probe idle timeout option, the keepalive probe interval option, and the keepalive probe maximum retry count option.

[0031] Among them, in the native parameters of the TCP connection, the Nagle algorithm disable option (TCP_NODELAY option) is usually defaulted to the disabled state, that is, the Nagle algorithm is enabled by default. However, the original design intention of the Nagle algorithm is to reduce the number of small data packets on the network, thereby improving network utilization. By disabling the Nagle algorithm in the embodiments of the present application, the delay can be reduced and the data transfer speed of the burn-in can be increased.

[0032] Among them, in the native parameters of the TCP connection, the keepalive mechanism enable option (SO_KEEPALIVE) is usually defaulted to the disabled state. The SO_KEEPALIVE option is used to enable the keepalive probe mechanism of the TCP connection, aiming to detect whether a connection that has been idle for a long time is alive (such as scenarios where the peer host crashes, the network is interrupted, etc.). By enabling this option in the embodiments of the present application, the alive state of the peer can be actively detected when the connection is idle, so as to keep the connection between the wireless debugging device and the user device active.

[0033] Among them, in the native parameters of the TCP connection, the values of the keepalive probe idle timeout option (TCP_KEEPIDLE), the keepalive probe interval option (TCP_KEEPINTVL), and the keepalive probe maximum retry count option (TCP_KEEPCNT) usually have default values. For example, in the Linux operating system, the default value of the TCP_KEEPIDLE option is generally 7200 seconds, the default value of the TCP_KEEPINTVL option is generally 75 seconds, and the default value of the TCP_KEEPCNT option is generally 9 times. By configuring the values of these three options in the embodiments of the present application, the parameters for keeping the TCP connection active are optimized, so as to balance the connection detection sensitivity, network resource consumption, and connection reliability in different scenarios.

[0034] Among them, the embodiments of the present application do not specifically limit how to configure the values of the TCP_KEEPIDLE option, TCP_KEEPINTVL option, and TCP_KEEPCNT option. For example, the explicit burning speed and wireless connection stability can be set, and the configuration can be made with reference to the burning speed and wireless connection stability.

[0035] The applicant of the present application further proposes that for the GPIO interface, the register can be directly operated to set and clear the GPIO pin status, which is faster than the conventional GPIO Application Programming Interface (API) and can reduce the overhead of function calls. Correspondingly, in some embodiments, the GPIO interface is pre-configured to set and clear the GPIO pin status by operating the GPIO register.

[0036] Among them, the embodiments of the present application do not specifically limit how to configure the GPIO interface to set the GPIO pin status by operating the GPIO register and how to clear the GPIO pin status by operating the GPIO register. For example, it can be achieved by defining the "set GPIO pin" macro (gpio_set) and the "clear GPIO pin" macro (gpio_clear).

[0037] The applicant of the present application further proposes that the user can automatically trigger the wireless debugging device to access the target wireless network on the user device based on the Bluetooth network configuration method or the manual network configuration method, thereby improving the debugging efficiency and the user's debugging experience.

[0038] Correspondingly, in some embodiments, the preset network configuration method includes the Bluetooth network configuration method. As Figure 3 shown, the receiving of the network configuration information sent by the user device according to the preset network configuration method (i.e., involved in step S110) may include: Step S111, receiving the Bluetooth connection request sent by the user device; wherein, the Bluetooth connection request is sent by the user device after selecting the wireless debugging device from the devices searched by Bluetooth; Step S112, sending a Bluetooth connection response to the user device when the verification of the Bluetooth connection request is passed; Step S113, receiving the network configuration information sent by the user device.

[0039] Among them, the wireless debugging device must have the ability to configure the network via Bluetooth. After the user selects the Bluetooth network configuration method on the user device, the Bluetooth scanning function is started, and the wireless debugging device is selected from the devices found by Bluetooth, and then a Bluetooth connection is established with the wireless debugging device. Then, the network configuration information is obtained and sent to the wireless debugging device.

[0040] In some other embodiments, the preset network configuration method includes a manual network configuration method. As Figure 4 shown, the receiving of the network configuration information sent by the user device according to the preset network configuration method (i.e., related to step S110) may include: Step S111’, receiving the network configuration information sent by the user device; wherein, the network configuration information is sent by the user device according to the static data of the wireless debugging device input externally.

[0041] Among them, after the user selects the manual network configuration method on the user device, the user inputs the static data of the wireless debugging device (i.e., the device information of the wireless debugging device), and the wireless debugging device sends the network configuration information to the wireless debugging device through a pre-agreed port or other means.

[0042] The applicant of this application also proposes that the debugging-related APP of the user device can provide functions such as device configuration, programming control, and log viewing and downloading for the user through an intuitive graphical interface, enhancing the user experience. For example, regardless of the preset network configuration method, after the wireless debugging device attempts to connect to the target wireless network according to the network configuration information, it can return the network configuration result to the user device. If the wireless debugging device successfully connects to the target wireless network, the debugging-related APP of the user device shows that the network configuration is successful. If the wireless debugging device fails to successfully connect to the target wireless network, the debugging-related APP of the user device shows that the network configuration fails.

[0043] The applicant of this application further proposes that the wireless debugging device can also record the serial port log to a hot-pluggable storage medium, realizing the recycling of the serial port log while avoiding the exhaustion of the storage space of the wireless debugging device. Correspondingly, in some embodiments, as Figure 5 shown, the method may further include: Step S170, recording the serial port log with the intelligent device to the hot-pluggable storage medium of the wireless debugging device.

[0044] Among them, the hot-pluggable storage medium may include a Secure Digital Card (SD), a Portable Solid State Drive (SSD), etc. Correspondingly, the wireless debugging device must integrate a standard SD card interface, etc., to support the hot plugging of the hot-pluggable storage medium.

[0045] The intelligent device debugging method provided by the embodiments of the present application records the serial port logs between the intelligent device and the wireless debugging device to the hot-swappable storage medium of the wireless debugging device through the wireless debugging device, which can realize the physical exchange and recycling of the serial port logs and save the storage space of the wireless debugging device.

[0046] The wireless debugging device provided by the embodiments of the present application can preset the test criteria for the log processing efficiency to test and improve the log processing function. In addition, the wireless debugging device provided by the embodiments of the present application can also achieve a streamlined hardware platform by removing the display and related circuits and adopting a low-power microcontroller unit (MCU), further reducing the hardware cost. The wireless debugging device can also perform compatibility tests to ensure compatibility with mainstream embedded platforms and operating systems.

[0047] As the second aspect of the embodiments of the present application, a method for debugging an intelligent device for a user device is provided, where, as Figure 6 shown, the method may include: Step S210, sending network configuration information to the wireless debugging device according to a preset network configuration method, so that the wireless debugging device connects to a target wireless network according to the network configuration information and establishes a Transmission Control Protocol (TCP) connection with the user device; Step S220, performing a preset TCP connection optimization operation according to the native parameters of the TCP connection; Step S230, sending burn-in data to the wireless debugging device through the TCP connection, so that the wireless debugging device writes the burn-in data into the storage area of the intelligent device according to the General-Purpose Input / Output (GPIO) interface configured in advance and sends a breakpoint debugging instruction to the intelligent device.

[0048] Among them, when the intelligent device debugging method executed on the wireless debugging device side is described above, the intelligent device debugging method executed on the user device side has also been described in detail, so it will not be repeated here.

[0049] The intelligent device debugging method for a user device provided by an embodiment of the present application. The user device sends network configuration information to a wireless debugging device according to a preset network configuration method, so that the wireless debugging device can connect to a target wireless network according to the network configuration information and establish a Transmission Control Protocol (TCP) connection with the user device. The wireless debugging device is no longer limited by the length and position of a physical cable, and the user can debug the intelligent device within a larger activity range, significantly improving the portability of the wireless debugging device. The target wireless network can be either the wireless network provided by the user device or the wireless network to which the user device is connected, further enhancing the portability and practicality of the wireless debugging device in different scenarios. By performing a preset TCP connection optimization operation according to the native parameters of the TCP connection, the efficiency and stability of the network connection can be improved, unnecessary network resource waste can be reduced, and the requirements for network bandwidth and server resources can be lowered, thereby indirectly reducing the operating cost during the debugging process. Most importantly, by establishing a stable TCP connection and performing optimization operations, it is ensured that the burned data can be transmitted quickly and accurately between the user device and the wireless debugging device. Relying on the reliable transmission characteristics of the TCP protocol itself and combined with the preset TCP connection optimization operation, the delay and packet loss phenomena in data transmission can be effectively reduced, the burned data transmission rate can be increased, and thus the burning speed can be improved. The wireless debugging device uses a pre-configured General-Purpose Input / Output (GPIO) interface for burning, which can reduce unnecessary waiting time and further improve the burning speed.

[0050] As a third aspect of an embodiment of the present application, an electronic device is provided. As shown in Figure 7 the figure, the electronic device includes: One or more processors 101; A memory 102, on which one or more computer programs are stored. When the one or more computer programs are executed by the one or more processors 101, the one or more processors 101 are caused to implement any one of the following: The intelligent device debugging method for a wireless debugging device provided by the first aspect of an embodiment of the present application; The intelligent device debugging method for a user device provided by the second aspect of an embodiment of the present application.

[0051] The electronic device may further include one or more I / O interfaces 103, connected between the processor 101 and the memory 102, and configured to implement information interaction between the processor 101 and the memory 102.

[0052] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, including but not limited to a random access memory (RAM, more specifically such as SDRAM, DDR, etc.), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), and a flash memory (FLASH); the I / O interface (read / write interface) is connected between the processor and the memory and can realize the information interaction between the processor and the memory, including but not limited to a data bus (Bus), etc.

[0053] In some embodiments, the processor 101, the memory 102, and the I / O interface 103 are interconnected through a bus 104 and then connected to other components of the computing device.

[0054] As the fourth aspect of the embodiments of the present application, an intelligent device debugging system is provided, where the intelligent device debugging system includes a user device, a wireless debugging device, and an intelligent device; The user device is configured to send network configuration information to the wireless debugging device according to a preset network configuration method, perform a preset TCP connection optimization operation according to the native parameters of the TCP connection, and send programming data to the wireless debugging device through the TCP connection; The wireless debugging device is configured to connect to a target wireless network according to the network configuration information, establish a Transmission Control Protocol (TCP) connection with the user device, perform a preset TCP connection optimization operation according to the native parameters of the TCP connection, write the programming data into the storage area of the intelligent device according to a pre-configured General-Purpose Input / Output (GPIO) interface, and send a breakpoint debugging instruction to the intelligent device.

[0055] Among them, the intelligent device debugging method executed on the wireless debugging device side and the intelligent device debugging method executed on the user device side have been described in detail above, so they will not be elaborated here.

[0056] As the fifth aspect of the embodiments of the present application, as Figure 8 shown, a computer-readable medium is provided, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the following: The intelligent device debugging method for a wireless debugging device provided in the first aspect of the embodiments of the present application; The intelligent device debugging method for a user device provided in the second aspect of the embodiments of the present application.

[0057] Those of ordinary skill in the art will understand that all or part of the processes in the above-described embodiment methods can be completed by instructing relevant hardware through a computer program. Accordingly, the computer program can be stored in a non-volatile computer-readable storage medium, and when the computer program is executed, the methods of any of the above embodiments can be implemented. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided by the embodiments of the present application may include non-volatile and / or volatile memories. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0058] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Those skilled in the art should understand that the present application includes but is not limited to the content described in the drawings and the above specific implementation manner. Any modification that does not deviate from the functional and structural principles of the present application will be included in the scope of the claims.

Claims

1. An intelligent device debugging method for wireless debugging devices, characterized in that, The method includes: Receiving network configuration information sent by a user device according to a preset network configuration method; Connecting to a target wireless network according to the network configuration information and establishing a Transmission Control Protocol (TCP) connection with the user device; Performing a preset TCP connection optimization operation according to the native parameters of the TCP connection; Receiving programming data sent by the user device through the TCP connection; Writing the programming data into the storage area of the intelligent device according to a pre-configured General-Purpose Input / Output (GPIO) interface; Sending a breakpoint debugging instruction to the intelligent device.

2. The method according to claim 1, wherein The performing a preset TCP connection optimization operation according to the native parameters of the TCP connection includes: In the native parameters of the TCP connection, configuring the Nagle algorithm disable option and the keep-alive mechanism enable option to the enabled state, and configuring the values of the keep-alive probe idle timeout option, the keep-alive probe interval option, and the keep-alive probe maximum retry count option.

3. The method according to claim 1, wherein The GPIO interface is pre-configured to set and clear the GPIO pin status by operating the GPIO register.

4. The method according to claim 1, wherein The preset network configuration method includes a Bluetooth network configuration method, and the receiving network configuration information sent by the user device according to the preset network configuration method includes: Receiving a Bluetooth connection request sent by the user device; wherein, the Bluetooth connection request is sent by the user device after selecting the wireless debugging device from the devices searched by Bluetooth; Sending a Bluetooth connection response to the user device when the verification of the Bluetooth connection request is passed; Receiving the network configuration information sent by the user device.

5. The method according to claim 1, wherein The preset network configuration method includes a manual network configuration method, and the receiving network configuration information sent by the user device according to the preset network configuration method includes: Receiving the network configuration information sent by the user device; wherein, the network configuration information is sent by the user device according to the static data of the wireless debugging device input externally.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: Recording the serial port log with the intelligent device into the hot-pluggable storage medium of the wireless debugging device.

7. An intelligent device debugging method for a user device, characterized in that, The method includes: Sending network configuration information to a wireless debugging device according to a preset network configuration method for the wireless debugging device to connect to a target wireless network according to the network configuration information and establish a Transmission Control Protocol (TCP) connection with the user device; Performing a preset TCP connection optimization operation according to the native parameters of the TCP connection; Sending programming data to the wireless debugging device through the TCP connection for the wireless debugging device to write the programming data into the storage area of the intelligent device according to a pre-configured General-Purpose Input / Output (GPIO) interface and send a breakpoint debugging instruction to the intelligent device.

8. An electronic device, characterized in that, The electronic device includes: One or more processors; A memory storing one or more computer programs, which when executed by the one or more processors, cause the one or more processors to implement any one of the following: The intelligent device debugging method for a wireless debugging device according to any one of claims 1-6; The intelligent device debugging method for a user device according to claim 7.

9. An intelligent device debugging system, characterized in that, The intelligent device debugging system includes a user device, a wireless debugging device, and an intelligent device; The user device is configured to send network configuration information to the wireless debugging device according to a preset network configuration method, perform a preset TCP connection optimization operation according to the native parameters of the TCP connection, and send burn-in data to the wireless debugging device through the TCP connection; The wireless debugging device is configured to connect to a target wireless network according to the network configuration information, establish a Transmission Control Protocol (TCP) connection with the user device, perform a preset TCP connection optimization operation according to the native parameters of the TCP connection, write the burn-in data into the storage area of the intelligent device according to a pre-configured General-Purpose Input / Output (GPIO) interface, and send a breakpoint debugging instruction to the intelligent device.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements any one of the following: The intelligent device debugging method for a wireless debugging device according to any one of claims 1-6; The intelligent device debugging method for a user device according to claim 7.

Citation Information

Patent Citations

  • Synchronizing generation and transmission of keep-alive messages

    CN104969654A

  • Keep-alive message transmission method and keep-alive message transmission device

    CN106911696A

  • Service node restarting method and device, electronic equipment and storage medium

    CN114422428A

  • Hardware protocol stack-based TCP long connection keep-alive method and device

    CN115225690A

  • Streaming media data interaction method based on enhanced TCP

    CN116684490A