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

Through the optimization of TCP connection between wireless debugging equipment and user equipment and the use of GPIO interface, the limitations of traditional wired connection methods are solved, and the portability and efficient data transmission of robot debugging are realized, which is suitable for complex operating environments and long-distance scenarios.

CN120264389BActive Publication Date: 2025-08-29ZHEJIANG HUICANG INTELLIGENT TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional wired connection methods are limited by cable length and flexibility in robot debugging, resulting in limited debugging range and high hardware costs, which can easily cause poor contact and signal interference, reducing efficiency and increasing maintenance costs.

Method used

Wireless connection between wireless debugging equipment and user equipment is adopted, and wireless data burning is realized by optimizing the TCP connection between wireless debugging equipment and user equipment and the GPIO connection of smart devices. Combined with Bluetooth or manual network distribution, data writing is achieved using preset TCP connection optimization operations and GPIO interfaces.

Benefits of technology

It improves the portability and efficiency of debugging equipment, reduces operating costs, ensures fast accuracy of data transmission and burning speed, reduces delay and packet loss, and is suitable for complex operating environments and long-distance scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120264389B_ABST
    Figure CN120264389B_ABST
Patent Text Reader

Abstract

The present application discloses a smart device debugging method, electronic device, smart device debugging system and medium. The wireless debugging device receives 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 Transmission Control Protocol (TCP) connection with the user device. According to the native parameters of the TCP connection, the device performs a preset TCP connection optimization operation, receives the burning data sent by the user device via the TCP connection, writes the burning data into the storage area of ​​the smart device according to a pre-configured general input and output (GPIO) interface, and sends a breakpoint debugging instruction to the smart device. This improves the portability and practicality of wireless debugging devices in different scenarios, improves the efficiency and stability of network connections, reduces unnecessary waste of network resources, reduces the demand for network bandwidth and server resources, effectively reduces delays and packet loss in data transmission, and increases the burning data transmission rate, thereby increasing the burning speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart devices, and in particular to a smart device debugging method, electronic equipment, a smart device debugging system, and a medium. Background Art

[0002] In robot debugging scenarios, traditional technologies rely primarily on wired connections to achieve communication between debugging equipment and robots. Dedicated data cables are used to directly connect the debugging equipment to the robot's physical interface to complete debugging operations such as program downloading, parameter configuration, and status monitoring. However, this debugging method has significant limitations: On the one hand, wired connections are limited by cable length and flexibility, which severely restricts the robot's range of motion during debugging. This is especially true in complex operating environments (such as confined spaces and high-altitude work scenarios) or scenarios requiring mobile debugging. Cable dragging can easily cause problems such as poor contact and signal interference, significantly reducing debugging efficiency. On the other hand, the hardware cost of dedicated cables and supporting interfaces is high, and long-term use can easily lead to line failures due to wear and bending, increasing maintenance costs.

[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 art to a certain extent. To this end, the present application provides a smart device debugging method, electronic equipment, smart device debugging system and medium.

[0005] As a first aspect of the present application, a smart device debugging method for a wireless debugging device is provided, wherein the method comprises:

[0006] Receive network configuration information sent by user equipment according to a preset network configuration method;

[0007] Connecting to the target wireless network according to the network configuration information and establishing a Transmission Control Protocol (TCP) connection with the user equipment;

[0008] Execute preset TCP connection optimization operations based on the native parameters of the TCP connection;

[0009] Receiving the burning data sent by the user equipment through the TCP connection;

[0010] Writing the burning data into the storage area of ​​the smart device according to the pre-configured general purpose input and output (GPIO) interface;

[0011] Send a breakpoint debugging instruction to the smart device.

[0012] Optionally, performing a preset TCP connection optimization operation according to native parameters of the TCP connection includes:

[0013] In the native parameters of the TCP connection, set the Nagle algorithm disable option and the keepalive mechanism enable option to enabled. Also, configure the values ​​of the keepalive detection idle timeout option, the keepalive detection interval option, and the keepalive detection maximum retry count option.

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

[0015] Optionally, the preset network configuration mode includes a Bluetooth network configuration mode, and receiving network configuration information sent by the user equipment according to the preset network configuration mode includes:

[0016] Receiving a Bluetooth connection request sent by the user equipment; wherein the Bluetooth connection request is sent by the user equipment after selecting the wireless debugging device from the devices searched by Bluetooth;

[0017] If the Bluetooth connection request is verified to be successful, sending a Bluetooth connection response to the user equipment;

[0018] Receive the network configuration information sent by the user equipment.

[0019] Optionally, the preset network configuration mode includes a manual network configuration mode, and the receiving network configuration information sent by the user equipment according to the preset network configuration mode includes:

[0020] Receive the network configuration information sent by the user equipment; wherein the network configuration information is sent by the user equipment according to static data of a wireless debugging device input externally.

[0021] Optionally, the method further includes:

[0022] The serial port log between the smart device and the wireless debugging device is recorded in the hot-swappable storage medium of the wireless debugging device.

[0023] As a second aspect of the present application, a smart device debugging method for a user device is provided, wherein the method includes:

[0024] Sending network configuration information to the wireless debugging device according to a preset network configuration method, so that the wireless debugging device can connect to the target wireless network according to the network configuration information and establish a Transmission Control Protocol TCP connection with the user equipment;

[0025] Execute preset TCP connection optimization operations based on the native parameters of the TCP connection;

[0026] The burning data is sent to the wireless debugging device through a TCP connection, so that the wireless debugging device writes the burning data into the storage area of ​​the smart device according to the pre-configured general input and output GPIO interface and sends a breakpoint debugging instruction to the smart device.

[0027] As a third aspect of the present application, an electronic device is provided, wherein the electronic device includes:

[0028] one or more processors;

[0029] A memory having one or more computer programs stored thereon, which, when executed by the one or more processors, causes the one or more processors to implement any of the following:

[0030] The first aspect of the present application provides a smart device debugging method for wireless debugging devices;

[0031] The second aspect of the present application provides a smart device debugging method for a user device.

[0032] As a fourth aspect of the present application, a smart device debugging system is provided, wherein the smart device debugging system includes a user device, a wireless debugging device, and a smart device;

[0033] The user equipment is used 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 native parameters of the TCP connection, and send burning data to the wireless debugging device through the TCP connection;

[0034] The wireless debugging device is used to connect to the target wireless network according to the network configuration information, establish a Transmission Control Protocol (TCP) connection with the user device, perform preset TCP connection optimization operations according to native parameters of the TCP connection, write the burning data into the storage area of ​​the smart device according to a pre-configured general purpose input and output (GPIO) interface, and send breakpoint debugging instructions to the smart device.

[0035] As a fifth aspect of the present application, a computer-readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the following is implemented:

[0036] The first aspect of the present application provides a smart device debugging method for wireless debugging devices;

[0037] The second aspect of the present application provides a smart device debugging method for a user device.

[0038] The smart device debugging method for wireless debugging devices provided in the embodiment of the present application receives the network configuration information sent by the user device according to the preset network configuration method through the wireless debugging device, 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 the physical cable. The user can debug the smart device within a larger range of activities, which significantly improves 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 improving 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 , which can improve the efficiency and stability of network connections, reduce unnecessary waste of network resources, and reduce the demand for network bandwidth and server resources, thereby indirectly reducing the operating costs during the debugging process; the most critical thing is that by establishing a stable TCP connection and performing optimization operations, it ensures that the burning 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, combined with the preset TCP connection optimization operations, it can effectively reduce delays and packet loss in data transmission, increase the burning data transmission rate, and thus increase the burning speed. In addition, by using the pre-configured GPIO interface for burning, it can reduce unnecessary waiting time, thereby further improving the burning speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The present application will be further described below with reference to the accompanying drawings:

[0040] Figure 1 This is a flowchart of an implementation of a smart device debugging method for a wireless debugging device provided in an embodiment of the present application;

[0041] Figure 2 This is a flowchart of another implementation of the smart device debugging method for wireless debugging devices provided in an embodiment of the present application;

[0042] Figure 3 This is a flowchart of another embodiment of the smart device debugging method for wireless debugging devices provided in the embodiment of the present application;

[0043] Figure 4 This is a flowchart of another embodiment of the smart device debugging method for wireless debugging devices provided in the embodiment of the present application;

[0044] Figure 5 This is a flowchart of another implementation of the smart device debugging method for wireless debugging devices provided in an embodiment of the present application;

[0045] Figure 6This is a flowchart of an implementation of a smart device debugging method for a user device provided in an embodiment of the present application;

[0046] Figure 7 This is a module diagram of an implementation of an electronic device provided in an embodiment of the present application;

[0047] Figure 8 It is a schematic diagram of the computer-readable medium provided in an embodiment of the present application.

[0048] Description of Reference Numerals

[0049] 101: Processor 102: Memory

[0050] 103: I / O interface 104: bus DETAILED DESCRIPTION

[0051] The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described in the embodiments are intended to be used to explain the present application and are not to be construed as limiting the present application.

[0052] References in this specification to "one embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in connection with the embodiment itself can be included in at least one embodiment disclosed herein. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.

[0053] In robot debugging scenarios, traditional technologies rely primarily on wired connections to achieve communication between debugging equipment and robots. Dedicated data cables are used to directly connect the debugging equipment to the robot's physical interface to complete debugging operations such as program downloading, parameter configuration, and status monitoring. However, this debugging method has significant limitations: On the one hand, wired connections are limited by cable length and flexibility, which severely restricts the robot's range of motion during debugging. This is especially true in complex operating environments (such as confined spaces and high-altitude work scenarios) or scenarios requiring mobile debugging. Cable dragging can easily cause problems such as poor contact and signal interference, significantly reducing debugging efficiency. On the other hand, the hardware cost of dedicated cables and supporting interfaces is high, and long-term use can easily lead to line failures due to wear and bending, increasing maintenance costs.

[0054] In response to this, the applicant of this application proposes to provide a wireless debugging device that wirelessly connects the wireless debugging device to a user device and physically connects the wireless debugging device to a smart device, and optimizes 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 smart device, so as to improve debugging efficiency, increase the portability of the debugging device, and reduce debugging costs.

[0055] As a first aspect of an embodiment of the present application, a smart device debugging method for a wireless debugging device is provided, wherein, Figure 1 As shown, the method may include:

[0056] Step S110, receiving network configuration information sent by the user equipment according to the preset network configuration method;

[0057] Step S120, connecting to the target wireless network according to the network configuration information, and establishing a Transmission Control Protocol TCP connection with the user equipment;

[0058] Step S130, performing a preset TCP connection optimization operation according to the native parameters of the TCP connection;

[0059] Step S140, receiving the burning data sent by the user equipment through the TCP connection;

[0060] Step S150, writing the burning data into the storage area of ​​the smart device according to the pre-configured general purpose input and output (GPIO) interface;

[0061] Step S160: Send a breakpoint debugging instruction to the smart device.

[0062] User devices can include personal computers (PCs), smartphones, and other devices with data processing and user interaction capabilities. These devices can be installed with debugging-related applications (Apps). Users can debug their smart devices in collaboration with wireless debugging equipment by operating these apps.

[0063] Smart devices may include robots, smart home devices, smart wearable devices, and the like. The device debugging method provided in the embodiments of this application is particularly suitable for debugging robots in the warehousing and logistics field. The robot may be a ground robot or a shelf robot. In this case, the burning data is data used to burn the robot's firmware.

[0064] Among them, the embodiments of the present application do not make any special limitations on the target wireless network. For example, the target wireless network may include the wireless network provided by the user device, which is particularly suitable for scenarios where there is no available external network at close distances; the target wireless network may also include the wireless network to which the user device is connected. At this time, the two are in the same network environment, which can achieve more stable and wider data transmission, and is particularly suitable for scenarios where there is a long distance and an available external network.

[0065] It is understandable 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.

[0066] The smart device debugging method for wireless debugging devices provided in the embodiment of the present application receives the network configuration information sent by the user device according to the preset network configuration method through the wireless debugging device, 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 the physical cable. The user can debug the smart device within a larger range of activities, which significantly improves 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 improving the portability and practicality of the wireless debugging device in different scenarios. By performing the 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 waste of network resources can be reduced, and the demand for network bandwidth and server resources can be reduced, thereby indirectly reducing the operating costs during the debugging process. Most importantly, by establishing a stable TCP connection and performing optimization operations, we ensure that the programming 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, combined with the preset TCP connection optimization operations, it can effectively reduce data transmission delays and packet loss, increase the programming data transmission rate, and thus improve the programming speed. In addition, by using the pre-configured GPIO interface for programming, it can reduce unnecessary waiting time, thereby further improving the programming speed.

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

[0068] It should also be noted that the smart device debugging method provided in the embodiments of this application ultimately uses "breakpoint debugging" to debug the firmware in the smart device. This debugging method allows the program to be interrupted where needed, thereby facilitating subsequent analysis. Through steps S110 to S150, the firmware of the smart device can be kept in the latest state, meeting the requirements for breakpoint debugging and ultimately achieving better debugging results.

[0069] Because intelligent devices such as robots in the warehousing and logistics field operate at high speeds on a daily basis, a bug in the robot can prevent material transfers. Therefore, daily debugging of the robot is particularly important. As described above, the intelligent device debugging method provided in the embodiments of this application can ensure that the robot's firmware is up to date during breakpoint debugging by "efficiently burning firmware (i.e., steps S110 to S150)", meeting the robot's daily debugging needs.

[0070] The applicant of this application further proposes that some default options can be configured or modified in the native parameters of the TCP connection to achieve TCP connection optimization. Figure 2 As shown, performing the preset TCP connection optimization operation (i.e., the step S130 involved) according to the native parameters of the TCP connection may include:

[0071] Step S131: In the native parameters of the TCP connection, the Nagle algorithm disable option and the keep-alive mechanism enable option are configured to be enabled, and the values ​​of the keep-alive detection idle timeout option, the keep-alive detection interval option, and the keep-alive detection maximum retry count option are configured.

[0072] In the native parameters of a TCP connection, the Nagle algorithm disable option (TCP_NODELAY option) is typically disabled by default, which means the Nagle algorithm is enabled by default. However, the Nagle algorithm was originally designed to reduce the number of small data packets on the network, thereby improving network utilization. By disabling the Nagle algorithm, the present embodiment can reduce latency and increase the speed of data transmission during programming.

[0073] Among them, in the native parameters of the TCP connection, the keep-alive mechanism enabling option (SO_KEEPALIVE) is usually disabled by default. The SO_KEEPALIVE option is used to enable the keep-alive detection mechanism of the TCP connection, which aims to detect whether the connection that has been idle for a long time is alive (such as scenarios such as the crash of the peer host and network interruption). By enabling this option, the embodiment of the present application actively detects the survival status of the peer when the connection is idle, thereby keeping the connection between the wireless debugging device and the user device active.

[0074] Among the native parameters of the TCP connection, the values ​​of the keepalive detection idle timeout option (TCP_KEEPIDLE), the keepalive detection interval option (TCP_KEEPINTVL), and the keepalive detection 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. The embodiments of the present application optimize the keepalive parameters of the TCP connection by configuring the values ​​of these three options, thereby achieving a balance between connection detection sensitivity, network resource consumption, and connection reliability in different scenarios.

[0075] Among them, the embodiment of the present application does not specifically limit how to configure the values ​​of the TCP_KEEPIDLE option, TCP_KEEPINTVL option, and TCP_KEEPCNT option. For example, a clear burning speed and wireless connection stability can be set, and the configuration can be performed with reference to the burning speed and wireless connection stability.

[0076] The applicants of this application further propose that, for a GPIO interface, registers can be directly manipulated to set and clear GPIO pin states. This is faster than a conventional GPIO application programming interface (API) and can reduce function call overhead. Accordingly, in some embodiments, the GPIO interface is preconfigured to set and clear GPIO pin states by manipulating GPIO registers.

[0077] Among them, the embodiment of the present application does 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 a "set GPIO pin" macro (gpio_set) and a "clear GPIO pin" macro (gpio_clear).

[0078] The applicant of this 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.

[0079] Accordingly, in some embodiments, the preset network configuration method includes a Bluetooth network configuration method, such as Figure 3 As shown, the receiving of network configuration information sent by the user equipment according to the preset network configuration mode (ie, involved in step S110) may include:

[0080] Step S111, receiving a Bluetooth connection request sent by the user equipment; wherein the Bluetooth connection request is sent by the user equipment after selecting the wireless debugging device from the devices searched by Bluetooth;

[0081] Step S112: If the Bluetooth connection request is verified to be successful, sending a Bluetooth connection response to the user equipment;

[0082] Step S113: Receive the network configuration information sent by the user equipment.

[0083] The wireless debugging device must have Bluetooth network configuration capabilities. After selecting Bluetooth network configuration on the user device, the user activates the Bluetooth scanning function, selects the wireless debugging device from the Bluetooth searched devices, and then establishes a Bluetooth connection with the wireless debugging device. The network configuration information is then obtained and sent to the wireless debugging device.

[0084] In other embodiments, the preset network configuration method includes a manual network configuration method, such as Figure 4 As shown, the receiving of network configuration information sent by the user equipment according to the preset network configuration mode (ie, involved in step S110) may include:

[0085] Step S111 ′: receiving the network configuration information sent by the user equipment; wherein the network configuration information is sent by the user equipment according to static data of a wireless debugging device input externally.

[0086] Among them, after the user selects the manual network configuration mode on the user device, the user enters the static data of the wireless debugging device (that is, the device information of the wireless debugging device) into the user device, and the wireless debugging device sends the network configuration information to the wireless debugging device through a pre-agreed port or other methods.

[0087] The applicant of this application also proposes that debugging-related apps for user devices can provide users with functions such as device configuration, burning control, and log viewing and downloading through an intuitive graphical interface, thereby 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 based on 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 apps for the user device will display the network configuration success. If the wireless debugging device fails to successfully connect to the target wireless network, the debugging-related apps for the user device will display the network configuration failure.

[0088] The applicant of this application further proposes that the wireless debugging device can also record the serial port log to a hot-swappable storage medium, thereby realizing the recycling of the serial port log and avoiding the exhaustion of the storage space of the wireless debugging device. Figure 5 As shown, the method may further include:

[0089] Step S170: Record the serial port log between the smart device and the wireless debugging device into the hot-swappable storage medium.

[0090] Hot-swappable storage media may include Secure Digital Cards (SD) and Portable Solid State Drives (SSD). Accordingly, wireless debugging equipment must integrate standard SD card interfaces to support hot-swappable storage media.

[0091] The smart device debugging method provided in the embodiment of the present application records the serial port logs between the wireless debugging device and the smart device to the hot-swappable storage medium of the wireless debugging device, thereby realizing the physical exchange and recycling of the serial port logs and saving the storage space of the wireless debugging device.

[0092] The wireless debugging device provided in the embodiments of this application can pre-set test standards for log processing efficiency to test and improve log processing functions. Furthermore, by removing the display and related circuitry and adopting a low-power microcontroller unit (MCU), the wireless debugging device provided in the embodiments of this application can achieve a streamlined hardware platform, further reducing hardware costs. The wireless debugging device can also perform compatibility testing to ensure compatibility with mainstream embedded platforms and operating systems.

[0093] As a second aspect of an embodiment of the present application, a smart device debugging method for a user device is provided, wherein, Figure 6 As shown, the method may include:

[0094] Step S210: Sending network configuration information to the wireless debugging device according to a preset network configuration method, so that the wireless debugging device can connect to the target wireless network according to the network configuration information and establish a Transmission Control Protocol TCP connection with the user equipment;

[0095] Step S220, performing a preset TCP connection optimization operation according to the native parameters of the TCP connection;

[0096] Step S230: Send the burning data to the wireless debugging device through the TCP connection, so that the wireless debugging device writes the burning data into the storage area of ​​the smart device according to the pre-configured general input and output GPIO interface, and sends a breakpoint debugging instruction to the smart device.

[0097] The smart device debugging method executed on the user device side has been described in detail above when describing the smart device debugging method executed on the wireless debugging device side, so it will not be repeated here.

[0098] In the smart device debugging method for user devices provided in the embodiment of the present application, the user device sends network configuration information to the wireless debugging device according to a preset network configuration method, so that the wireless debugging device can connect to the 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 the physical cable. The user can debug the smart device within a larger range of activities, which significantly improves 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 improving the portability and practicality of the wireless debugging device in different scenarios; by executing the preset TC according to the native parameters of the TCP connection GPIO connection optimization can improve the efficiency and stability of network connections, reduce unnecessary waste of network resources, and reduce the demand for network bandwidth and server resources, thereby indirectly reducing operating costs during the debugging process. Most importantly, by establishing a stable TCP connection and performing optimization operations, it ensures that the burning 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, combined with the preset TCP connection optimization operations, it can effectively reduce delays and packet loss in data transmission, increase the burning data transmission rate and thus improve the burning speed. The wireless debugging device uses the pre-configured GPIO interface for burning, which can reduce unnecessary waiting time and further improve the burning speed.

[0099] As a third aspect of the embodiments of the present application, an electronic device is provided, wherein, Figure 7 As shown, the electronic device includes:

[0100] One or more processors 101;

[0101] The memory 102 stores one or more computer programs. When the one or more computer programs are executed by the one or more processors 101, the one or more processors 101 implement any of the following:

[0102] The first aspect of the embodiment of the present application provides a smart device debugging method for wireless debugging devices;

[0103] A second aspect of an embodiment of the present application provides a smart device debugging method for a user device.

[0104] 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 exchange between the processor 101 and the memory 102 .

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

[0106] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.

[0107] As a fourth aspect of an embodiment of the present application, a smart device debugging system is provided, wherein the smart device debugging system includes a user device, a wireless debugging device, and a smart device;

[0108] The user equipment is used 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 native parameters of the TCP connection, and send burning data to the wireless debugging device through the TCP connection;

[0109] The wireless debugging device is used to connect to the target wireless network according to the network configuration information, establish a Transmission Control Protocol (TCP) connection with the user device, perform preset TCP connection optimization operations according to native parameters of the TCP connection, write the burning data into the storage area of ​​the smart device according to a pre-configured general purpose input and output (GPIO) interface, and send breakpoint debugging instructions to the smart device.

[0110] The smart device debugging method executed by the wireless debugging device side and the smart device debugging method executed by the user device side have been described in detail above, so they will not be repeated here.

[0111] As a fifth aspect of the embodiment of the present application, Figure 8 As shown, a computer readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, any of the following is implemented:

[0112] The first aspect of the embodiment of the present application provides a smart device debugging method for wireless debugging devices;

[0113] A second aspect of an embodiment of the present application provides a smart device debugging method for a user device.

[0114] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the 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, it can implement the method of any of the above-mentioned embodiments. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the embodiments of the present application may include non-volatile and / or volatile memory. 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 (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0115] The above are only specific embodiments of the present application, but the scope of protection 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 contents described in the drawings and the above specific embodiments. Any modifications that do not deviate from the functional and structural principles of the present application are included within the scope of the claims.

Claims

1. A smart device debugging method for wireless debugging equipment, characterized in that: The method comprises: Receive network configuration information sent by user equipment according to a preset network configuration method; Connecting to the target wireless network according to the network configuration information and establishing a Transmission Control Protocol (TCP) connection with the user equipment; Execute preset TCP connection optimization operations based on the native parameters of the TCP connection; Receiving the burning data sent by the user equipment through the TCP connection; Writing the burning data into the storage area of ​​the smart device according to the pre-configured general purpose input and output (GPIO) interface; Sending a breakpoint debugging instruction to the smart device; The step of performing a preset TCP connection optimization operation based on native parameters of the TCP connection includes: In the native parameters of the TCP connection, set the Nagle algorithm disable option and the keepalive mechanism enable option to enabled. Also, configure the values ​​of the keepalive detection idle timeout option, the keepalive detection interval option, and the keepalive detection maximum retry count option.

2. The method according to claim 1, characterized in that The GPIO interface is pre-configured to set and clear GPIO pin states by operating GPIO registers.

3. The method according to claim 1, characterized in that The preset network configuration mode includes a Bluetooth network configuration mode, and the receiving network configuration information sent by the user equipment according to the preset network configuration mode includes: Receiving a Bluetooth connection request sent by the user equipment; wherein the Bluetooth connection request is sent by the user equipment after selecting the wireless debugging device from the devices searched by Bluetooth; If the Bluetooth connection request is verified to be successful, sending a Bluetooth connection response to the user equipment; Receive the network configuration information sent by the user equipment.

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

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The serial port log between the smart device and the wireless debugging device is recorded in the hot-swappable storage medium of the wireless debugging device.

6. A smart device debugging method for user equipment, characterized in that: The method comprises: Sending network configuration information to the wireless debugging device according to a preset network configuration method, so that the wireless debugging device can connect to the target wireless network according to the network configuration information and establish a Transmission Control Protocol TCP connection with the user equipment; Execute preset TCP connection optimization operations based on the native parameters of the TCP connection; Sending burning data to the wireless debugging device through a TCP connection, so that the wireless debugging device writes the burning data into the storage area of ​​the smart device according to a pre-configured general input and output GPIO interface, and sends a breakpoint debugging instruction to the smart device; The step of performing a preset TCP connection optimization operation based on native parameters of the TCP connection includes: In the native parameters of the TCP connection, set the Nagle algorithm disable option and the keepalive mechanism enable option to enabled. Also, configure the values ​​of the keepalive detection idle timeout option, the keepalive detection interval option, and the keepalive detection maximum retry count option.

7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory having one or more computer programs stored thereon, which, when executed by the one or more processors, causes the one or more processors to implement any of the following: The intelligent device debugging method for wireless debugging device according to any one of claims 1 to 5; The intelligent device debugging method for a user device according to claim 6.

8. An intelligent device debugging system, characterized in that: The smart device debugging system includes a user device, a wireless debugging device and a smart device; The user equipment is configured to send network configuration information to the wireless debugging device according to a preset network configuration mode, perform a preset TCP connection optimization operation according to native parameters of the TCP connection, and send the programming data to the wireless debugging device through the TCP connection; wherein, performing the preset TCP connection optimization operation according to the native parameters of the TCP connection includes: configuring the Nagle algorithm disable option and the keepalive mechanism enable option to be enabled in the native parameters of the TCP connection, and configuring the values ​​of the keepalive detection idle timeout option, the keepalive detection interval option, and the keepalive detection maximum retry count option; The wireless debugging device is used to connect to the target wireless network according to the network configuration information, establish a Transmission Control Protocol (TCP) connection with the user device, perform preset TCP connection optimization operations according to native parameters of the TCP connection, write the burning data into the storage area of ​​the smart device according to a pre-configured general purpose input and output (GPIO) interface, and send breakpoint debugging instructions to the smart device.

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

Citation Information

Patent Citations

  • Synchronizing generation and transmission of keep-alive messages

    CN104969654A

  • Host multipath layer notification and path switchover following node failure

    US20200379857A1