Sensor wireless debugging method, system, device, communication equipment and storage medium

By adjusting the sensor central processor to debug mode through wireless activation signals, parsing and executing wireless instructions, the wireless debugging problem in the case of sensor chip failure is solved, and wireless program updates and feedback are realized, which is convenient for troubleshooting.

CN114064476BActive Publication Date: 2025-07-22PINGJIE ELECTRONIC TECHNOLOGY (JIANGSU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111355936.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-16
Publication Date
2025-07-22
Estimated Expiration
2041-11-16

AI Technical Summary

Technical Problem

In the prior art, when the internal software of the sensor chip fails, wireless debugging and application updates cannot be performed, and the sensor can only be removed by wired means for debugging, resulting in inconvenient operation.

Method used

By obtaining the wireless activation signal sent by the debugging tool, adjusting the central processor inside the sensor to debug mode, and parsing the wireless command signal to perform the corresponding debugging task, obtaining task feedback information and packaging it and sending it to the debugging tool to realize wireless debugging.

Benefits of technology

It realizes wireless debugging and feedback of sensor programs, which facilitates troubleshooting and avoids inconvenience of wired removal operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064476B_ABST
    Figure CN114064476B_ABST
Patent Text Reader

Abstract

The present application relates to a wireless debugging method, system, device, communication equipment and storage medium for a sensor. The method includes: obtaining a wireless activation signal sent by a debugging tool, parsing the wireless activation signal to obtain activation instruction content, and based on the activation instruction content, instructing a central processing unit inside the sensor to adjust from a working mode to a debugging mode; after the central processing unit is adjusted to the debugging mode, obtaining a wireless instruction signal sent by the debugging tool, parsing the wireless instruction signal to obtain a corresponding instruction type and instruction content; determining a debugging module corresponding to the instruction type, and based on the instruction content, instructing the debugging module to execute a corresponding task; obtaining task execution feedback information of the debugging module, encapsulating the task execution feedback information, and sending the encapsulated task execution feedback information to the debugging tool through a transmitting unit inside the sensor. By using this method, wireless debugging of the sensor program can be achieved, and the debugging situation of each module can be accurately fed back.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technologies, and in particular, to a method, system, device, communication equipment, and storage medium for wireless debugging of sensors. Background Art

[0002] With the rapid development of the automotive electronics industry, sensor technology has been developing rapidly in the automotive field. When developing and producing the chips of sensors, the written programs are burned into the fast storage area of the chips in a wired manner.

[0003] In the actual application process, the sensors installed in vehicles often face situations of anomalies or need to update application programs. In the prior art, in the normal working mode of the sensor chip, through the software running inside the chip for response, wireless debugging and update of the application program can be achieved through wireless communication.

[0004] However, when the software running inside the chip fails, the sensor cannot be normally debugged, and the sensor can only be removed and then debugged and updated in a wired manner. Summary of the Invention

[0005] Based on this, in view of the above technical problems, it is necessary to provide a method, system, device, communication equipment, and storage medium for wireless debugging of sensors.

[0006] In a first aspect, this application provides a method for wireless debugging of sensors. The method includes:

[0007] Obtain a wireless activation signal sent by a debugging tool, parse the wireless activation signal based on a preset first data format to obtain activation instruction content, and based on the activation instruction content, instruct the central processing unit inside the sensor to adjust from the working mode to the debugging mode;

[0008] After the central processing unit adjusts to the debugging mode, obtain a wireless instruction signal sent by the debugging tool, parse the wireless instruction signal based on the preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal;

[0009] Determine the debugging module corresponding to the instruction type, and based on the instruction content, instruct the debugging module to execute the corresponding task;

[0010] Obtain the task execution feedback information of the debugging module, encapsulate the task execution feedback information based on a preset second data format, and send the encapsulated task execution feedback information to the debugging tool through the transmitting unit inside the sensor.

[0011] In one of the embodiments, instructing the central processing unit inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content includes:

[0012] Send the activation instruction to the central processing unit to stop the central processing unit from running;

[0013] Obtain the activation feedback information of the central processing unit, and send the corresponding activation feedback information to the debugging tool through the transmitting unit inside the sensor.

[0014] In one embodiment, encapsulate the task execution feedback information based on a preset second data format, including:

[0015] Determine the corresponding instruction type based on the task execution feedback information;

[0016] Encapsulate the task execution feedback information based on the instruction type and the preset second data format.

[0017] In one embodiment, determine the debugging module corresponding to the instruction type, and instruct the debugging module to execute the corresponding task based on the instruction content, including:

[0018] Obtain the module information of multiple debugging modules;

[0019] Match the instruction type with the module information of multiple debugging modules;

[0020] When the match is successful, send the instruction content to the debugging module corresponding to the module information that matches successfully, to instruct the debugging module to execute the corresponding task. In one embodiment, instructing the debugging module to execute the corresponding task based on the instruction content includes at least one of the following:

[0021] When the instruction content is a register read instruction, send the register read instruction to the debugging module for reading registers, and read the data of the registers inside the central processing unit through the debugging module for reading registers;

[0022] When the instruction content is a register write instruction, send the register write instruction to the debugging module for writing registers, and control the central processing unit to stop running and then rewrite the registers through the debugging module for writing registers;

[0023] When the instruction content is a random access memory read instruction, send the random access memory read instruction to the debugging module for reading random access memory, and read the data in the random access memory inside the central processing unit through the debugging module for reading random access memory;

[0024] When the instruction content is a random access memory write instruction, send the random access memory write instruction to the debugging module for writing random access memory, and control the central processing unit to stop running and then rewrite the random access memory through the debugging module for writing random access memory;

[0025] When the instruction content is a central processing unit (CPU) running instruction, the CPU running instruction is sent to a debugging module for controlling the operation of the CPU, and the operation of the CPU is controlled by the debugging module for controlling the operation of the CPU;

[0026] When the instruction content is a CPU stop instruction, the CPU stop instruction is sent to a debugging module for controlling the stop operation of the CPU, and the stop operation of the CPU is controlled by the debugging module for controlling the stop operation of the CPU;

[0027] When the instruction content is an exit debugging instruction, the exit debugging instruction is sent to a debugging module for exiting the debugging mode, and the CPU is adjusted from the adjustment mode to the working mode by the debugging module for exiting the debugging mode.

[0028] In a second aspect, the present application further provides a sensor wireless debugging system. The system includes: a sensor and a debugging tool; a central processing module, a receiving unit, a transmitting unit, a wireless logic debugging unit, and a plurality of debugging modules are provided in the sensor;

[0029] The wireless logic debugging unit obtains a wireless activation signal sent by the debugging tool from the receiving unit, parses the wireless activation signal based on a preset first data format to obtain activation instruction content, and instructs the central processor inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content;

[0030] After the central processor is adjusted to the debugging mode, the wireless logic debugging unit obtains a wireless instruction signal sent by the debugging tool from the receiving unit, parses the wireless instruction signal based on a preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal; determines the debugging module corresponding to the instruction type, and instructs the debugging module to execute the corresponding task based on the instruction content;

[0031] After the debugging module executes the corresponding task, the wireless logic debugging unit obtains the task feedback information of the debugging module, encapsulates the task execution feedback information based on a preset second data format, and sends the encapsulated task execution feedback information to the debugging tool through the transmitting unit.

[0032] In a third aspect, the present application further provides a sensor wireless debugging device. The device includes:

[0033] An activation module, configured to obtain a wireless activation signal sent by the debugging tool, parse the wireless activation signal based on a preset first data format to obtain activation instruction content, and instruct the central processor inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content;

[0034] An instruction signal parsing module, configured to obtain a wireless instruction signal sent by a debugging tool after the central processing unit is adjusted to the debugging mode, parse the wireless instruction signal based on a preset first data format, and obtain the instruction type and instruction content corresponding to the wireless instruction signal;

[0035] A debugging task execution module, configured to determine a debugging module corresponding to the instruction type, and instruct the debugging module to execute a corresponding task based on the instruction content;

[0036] A debugging feedback module, configured to obtain task execution feedback information of the debugging module, encapsulate the task execution feedback information based on a preset second data format, and send the encapsulated task execution feedback information to the debugging tool through a transmitting unit inside the sensor.

[0037] In a fourth aspect, the present application further provides a communication device. The communication device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the method according to any one of the above embodiments are implemented.

[0038] In a fifth aspect, the present application further provides a readable storage medium for a communication device. The readable storage medium for a communication device stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of the above embodiments are implemented.

[0039] In a sixth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of the above embodiments are implemented.

[0040] For the above-mentioned wireless debugging method, system, device, communication device and storage medium of the sensor, a wireless activation signal sent by a debugging tool first instructs the central processing unit inside the sensor to be adjusted from the working mode to the debugging mode. Further, when the central processing unit is in the debugging mode, the sensor can receive subsequent wireless instruction signals from the debugging tool and execute corresponding tasks. When a wireless instruction signal sent by the debugging tool is received, the wireless instruction signal is parsed based on a preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal. Further, a debugging module corresponding to the instruction type is determined, and the debugging module is instructed to execute a corresponding task based on the instruction content, the task execution feedback information of the debugging module is obtained, the task execution feedback information is encapsulated based on a preset second data format, and the encapsulated task execution feedback information is sent to the debugging tool through a transmitting unit inside the sensor, so that wireless debugging of the sensor program can be realized, and the debugging completion status of each debugging module can be accurately feedback, which is convenient for subsequent fault troubleshooting. Description of the Drawings

[0041] Figure 1 It is an application environment diagram of the wireless debugging method for sensors in an embodiment;

[0042] Figure 2 It is a schematic flowchart of the wireless debugging method for sensors in an embodiment;

[0043] Figure 3 It is a schematic structural diagram of the wireless communication between a sensor and a debugging tool in an embodiment;

[0044] Figure 4 It is a schematic diagram of the preset first data format in another embodiment;

[0045] Figure 5 It is a correspondence table of wireless instruction signals with instruction type fields, instruction content fields, feedback type fields, and feedback content fields in an embodiment;

[0046] Figure 6 It is a block diagram of the internal system of a chip with a wireless logic debugging unit in a sensor in an embodiment;

[0047] Figure 7 It is a schematic diagram of the preset second data format in an embodiment;

[0048] Figure 8 It is a block diagram of the structure of a wireless debugging device for sensors in an embodiment;

[0049] Figure 9 It is an internal structure diagram of a communication device in an embodiment. Specific embodiments

[0050] In order to make the objectives, technical solutions, and advantages of this application clearer, the following further elaborates on this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0051] The wireless debugging method for sensors provided in the embodiments of this application can be applied to an application environment as Figure 1 shown. Among them, the sensor 102 communicates with the debugging tool 104 through a network. The data storage system can store the data that the debugging tool 104 needs to process. The data storage system can be integrated on the debugging tool 104, or placed in the cloud or other network servers. The debugging tool 104 includes at least an LF (low frequency) transmitting unit and an RF (radio frequency) receiving unit.

[0052] The debugging tool 104 provides an environment for implementing application upgrades for multiple sensors 102. The sensors 102 communicate with the debugging tool 104 to enter the wireless debugging environment. The debugging tool 104 sends wireless instruction signals for wireless debugging to the multiple sensors 102 through this environment. The sensors 102 respectively call the corresponding debugging modules to execute debugging tasks based on the instruction content corresponding to each wireless instruction signal, and send debugging feedback information to the debugging tool 104.

[0053] Inside the sensor 102, there is at least an LF (Low Frequency) receiving unit, an RF (Radio Frequency) transmitting unit, and a chip supporting the wireless logic debugging unit. Among them, the chip supporting the wireless logic debugging unit at least includes: a central processor, a wireless logic debugging unit, and multiple debugging modules. The debugging modules can include but are not limited to: a control module, a register access module, a memory access module, a power-off module, etc.

[0054] Among them, the sensor 102 can be but is not limited to sensors in various Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The upgrade device 104 can be a server or other terminal devices.

[0055] In one embodiment, as Figure 2 shown, a sensor wireless debugging method is provided. Taking the sensor in the smart in-vehicle device in Figure 1 as an example for illustration, in this embodiment, the sensor can be a tire pressure sensor, an acceleration sensor, etc. The execution subject of this method can be the wireless logic debugging unit inside the sensor in Figure 1 . The upgrade device in this embodiment can be composed of a wired debugging tool and a computer software debugging tool. The sensor wireless debugging method includes the following steps:

[0056] Step 202, obtain the wireless activation signal sent by the debugging tool, parse the wireless activation signal based on a preset first data format to obtain the activation instruction content, and instruct the central processor inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content.

[0057] In this embodiment, the wireless activation signal can be sent by the debugging tool using the LF (Low Frequency) wireless communication method.

[0058] In this embodiment, as Figure 4As shown, when the wireless activation signal is a wireless LF signal, the preset first data format at least includes: a preamble, a synchronization code, an instruction type field, and an instruction content field.

[0059] In this embodiment, the LF receiving unit in the sensor acquires the wireless LF signal based on the preamble.

[0060] In this embodiment, the synchronization code is used to determine that the wireless LF signal received by the sensor is the wireless activation signal sent by the debugging tool. For example, the wireless logic debugging unit acquires the preset sensor activation synchronization code, matches the sensor synchronization code with the synchronization code in the acquired wireless signal, and when the match is successful, determines that the wireless signal acquired by the sensor is the wireless activation signal sent by the debugging tool.

[0061] In another embodiment, the preset first data format may further include a check code, and the wireless logic debugging unit can check the acquired wireless activation signal through the check code to prevent data errors during the wireless LF communication process.

[0062] Step 204, after the central processing unit is adjusted to the debugging mode, acquire the wireless instruction signal sent by the debugging tool, and parse the wireless instruction signal based on the preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal.

[0063] In this embodiment, after the central processing unit is in the adjustment mode, the wireless logic debugging unit can receive the wireless instruction signal sent by the debugging tool through the LF receiving unit to perform debugging on the sensor.

[0064] In this embodiment, the wireless instruction signal at least includes: an instruction type field and an instruction content field.

[0065] In this embodiment, the instruction type field in the wireless instruction signal can be represented by characters such as numbers, letters, and symbols. For example, as Figure 5 shown, the instruction type field in the wireless instruction signal can be represented by 0105 for the instruction type of writing to the random access memory and 010A for the instruction type of setting the running address.

[0066] In this embodiment, continue to refer to Figure 5 , the wireless logic debugging unit can parse the instruction type field and the instruction content field in the wireless instruction signal according to the preset first data format to obtain the instruction type corresponding to the instruction type field and the instruction content corresponding to the instruction content field. For example, when the instruction field type of the wireless instruction signal received by the wireless logic debugging unit through the LF receiving unit is 0109, its corresponding instruction type is the instruction type of setting a breakpoint, and its corresponding instruction content is the address of the breakpoint to be set.

[0067] In another example, the wireless instruction signal may further include: a preamble, a synchronization code, and a check field.

[0068] Step 206: Determine the debug module corresponding to the instruction type, and based on the instruction content, instruct the debug module to perform the corresponding task.

[0069] In this embodiment, continue to refer to Figure 5 , the instruction type may include but is not limited to: read register instruction type, write register instruction type, read random access memory instruction type, write random access memory instruction type, read flash memory instruction type, central processing unit stop instruction type, central processing unit run instruction type, set breakpoint instruction type, set run address instruction type, exit debug instruction type, etc. Further, the wireless logic debug unit determines the corresponding debug module based on the instruction type, and instructs the debug module to perform the corresponding task based on the instruction content. In this embodiment, continue to refer to Figure 5 , the instruction content may include but is not limited to: the task address corresponding to the instruction type, read / write data for debugging, etc. Further, as Figure 6 shown, the wireless logic debug unit is based on the instruction content. For example, when the instruction type is the write register instruction type, the wireless logic debug unit determines that the debug module is the register access module based on the write register instruction, and the task type that the register access module needs to perform is writing to the register. Further, based on the register address and data in the instruction content, the wireless logic debug unit instructs the register access module to write the data in the instruction content to the register address pointed to in the instruction content.

[0070] Step 208: Obtain the task execution feedback information of the debug module, encapsulate the task execution feedback information based on a preset second data format, and send the encapsulated task execution feedback information to the debug tool through the transmitting unit inside the sensor.

[0071] In this embodiment, after each debug module performs the task according to the instruction of the wireless logic debug unit, execution feedback information is generated. The execution feedback information at least includes information on whether the task execution of the debug module is successful or failed.

[0072] In another embodiment, as Figure 5 shown, the execution feedback information of each debug module may further include execution data. The execution data may include but is not limited to: task address, read / written data, etc.

[0073] In this embodiment, the wireless logic debug unit obtains the execution feedback information of the debug unit corresponding to the corresponding instruction information based on the instruction information.

[0074] In this embodiment, as Figure 7As shown, the wireless logic debugging unit encapsulates the task execution feedback information based on a preset second data format, and the preset second data format at least includes: a feedback type field and a feedback content field.

[0075] In this embodiment, the wireless logic debugging unit can adopt an RF (Radio Frequency) wireless communication method, and send the encapsulated task execution feedback information to the debugging tool through the transmitting unit inside the sensor.

[0076] In another embodiment, continue to refer to Figure 7 , the preset second data format may further include: a preamble, a message start flag field, and a check field.

[0077] In this embodiment, the RF receiving unit of the debugging tool can receive the feedback information sent by the transmitting unit of the sensor based on the preamble; the check field can be used for the debugging tool to check the received execution feedback information to prevent data errors during the wireless RF communication process.

[0078] In this embodiment, continue to refer to Figure 7 , the message start flag field is used to mark the available data, and can be set before the feedback type field and the feedback content field to provide confidentiality for the feedback type field and the feedback content field. For example, when the RF receiving unit of the debugging tool is awakened, the debugging tool obtains a preset message code, matches the preset message code with the message start flag field in the received execution feedback information, and when the match is successful, the debugging tool reads the feedback type field and the feedback content field.

[0079] In the above sensor wireless debugging method, the wireless activation signal sent by the debugging tool first instructs the central processor inside the sensor to adjust from the working mode to the debugging mode. Further, when the central processor is in the debugging mode, the sensor can receive the subsequent wireless instruction signals of the debugging tool and execute the corresponding tasks. When the wireless instruction signal sent by the debugging tool is received, the wireless instruction signal is parsed based on a preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal. Further, determine the debugging module corresponding to the instruction type, and instruct the debugging module to execute the corresponding task based on the instruction content, obtain the task execution feedback information of the debugging module, encapsulate the task execution feedback information based on a preset second data format, and send the encapsulated task execution feedback information to the debugging tool through the transmitting unit inside the sensor, so as to realize the wireless debugging of the sensor program and accurately feedback the debugging completion status of each debugging module, which is convenient for subsequent fault troubleshooting.

[0080] In one embodiment, based on the content of the activation instruction, it is indicated that the central processor inside the sensor adjusts from the working mode to the debugging mode, including: sending the activation instruction to the central processor to stop the central processor from running; obtaining the activation feedback information of the central processor, and sending the corresponding activation feedback information to the debugging tool through the transmitting unit inside the sensor.

[0081] In this embodiment, based on the instruction content corresponding to the wireless activation instruction, the wireless logic debugging unit sends the activation instruction to the central processor, indicating that the central processor adjusts from the working mode to the debugging mode. After entering the adjustment mode, the central processor stops running and generates corresponding activation feedback information.

[0082] In this embodiment, the wireless logic debugging unit obtains the activation feedback information generated by the central processor, can encapsulate the activation feedback information based on a preset second data format, and sends it to the debugging tool through the transmitting unit inside the sensor.

[0083] In one embodiment, encapsulating the task execution feedback information based on a preset second data format includes: determining the corresponding instruction type based on the task execution feedback information; encapsulating the task execution feedback information based on the instruction type and the preset second data format.

[0084] In this embodiment, the wireless logic debugging unit obtains the corresponding debugging module for each task execution feedback information; the wireless logic debugging unit obtains the instruction type corresponding to the debugging module based on the debugging module. Further, based on a preset first data format, the wireless logic debugging unit can obtain the instruction type field in the wireless model instruction corresponding to the instruction type. Further, the wireless logic debugging unit uses the instruction type field as the feedback type field and encapsulates the task execution feedback information based on the preset second data format to obtain the encapsulated task execution feedback information of the debugging module.

[0085] In one embodiment, determining the debugging module corresponding to the instruction type and indicating the debugging module to execute the corresponding task based on the instruction content includes: obtaining the module information of multiple debugging modules; matching the instruction type with the module information of multiple debugging modules; when the matching is successful, sending the instruction content to the debugging module corresponding to the module information that matches successfully to indicate the debugging module to execute the corresponding task.

[0086] In this embodiment, the module information may include but is not limited to: the address information pointed to by the debugging module, the name of the debugging module, etc.

[0087] In this embodiment, the wireless logic debugging unit can obtain the address information pointed to by multiple debugging modules, match the task address pointed to by the instruction type corresponding to the wireless signal instruction with the address information pointed to by the multiple debugging modules, and when the matching is successful, the wireless logic debugging unit sends the instruction content corresponding to the wireless signal instruction to the debugging module corresponding to the module information that matches it.

[0088] In one embodiment, as Figure 6 shown, instructing the debugging module to execute the corresponding task based on the instruction content includes at least one of the following: when the instruction content is a register read instruction, sending the register read instruction to the debugging module for reading registers, and reading the data in the registers inside the central processing unit through the debugging module for reading registers; when the instruction content is a register write instruction, sending the register write instruction to the debugging module for writing registers, and controlling the central processing unit to stop running and then rewrite the registers through the debugging module for writing registers; when the instruction content is a random access memory read instruction, sending the random access memory read instruction to the debugging module for reading random access memory, and reading the data in the random access memory inside the central processing unit through the debugging module for reading random access memory; when the instruction content is a random access memory write instruction, sending the random access memory write instruction to the debugging module for writing random access memory, and controlling the central processing unit to stop running and then rewrite the random access memory through the debugging module for writing random access memory; when the instruction content is a central processing unit run instruction, sending the central processing unit run instruction to the debugging module for controlling the central processing unit to run, and controlling the central processing unit to run through the debugging module for controlling the central processing unit to run; when the instruction content is a central processing unit stop instruction, sending the central processing unit stop instruction to the debugging module for controlling the central processing unit to stop running, and controlling the central processing unit to stop running through the debugging module for controlling the central processing unit to stop running; when the instruction content is an exit debugging instruction, sending the exit debugging instruction to the debugging module for exiting the debugging mode, and causing the central processing unit to adjust from the adjustment mode to the working mode through the debugging module for exiting the debugging mode.

[0089] In this embodiment, the wireless logic debugging unit sends the instruction content corresponding to the wireless instruction information to the corresponding debugging module based on the instruction content, so that the debugging module executes the corresponding task. For example, as Figure 6 shown, when the instruction content is a register read instruction, the register read instruction is sent to the register access module in the debugging module, and the register access module reads the corresponding data in the register based on the data in the instruction content.

[0090] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are displayed in sequence according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless specifically stated herein, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0091] In one embodiment, a sensor wireless debugging system is provided, which may include: a sensor and a debugging tool; a central processing module, a receiving unit, a transmitting unit, a wireless logic debugging unit, and a plurality of debugging modules are provided in the sensor.

[0092] In this embodiment, the wireless logic debugging unit obtains the wireless activation signal sent by the debugging tool from the receiving unit, parses the wireless activation signal based on a preset first data format to obtain the activation instruction content, and instructs the central processor inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content;

[0093] In this embodiment, after the central processor is adjusted to the debugging mode, the wireless logic debugging unit obtains the wireless instruction signal sent by the debugging tool from the receiving unit, parses the wireless instruction signal based on a preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal; determines the debugging module corresponding to the instruction type, and instructs the debugging module to execute the corresponding task based on the instruction content;

[0094] In this embodiment, after the debugging module executes the corresponding task, the wireless logic debugging unit obtains the task feedback information of the debugging module, encapsulates the task execution feedback information based on a preset second data format, and sends the encapsulated task execution feedback information to the debugging tool through the transmitting unit.

[0095] In one of the embodiments, the wireless logic debugging unit instructs the central processor inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content, including: the wireless logic debugging unit sends the activation instruction to the central processor to make the central processor stop running; the wireless logic debugging unit obtains the activation feedback information of the central processor, and sends the corresponding activation feedback information to the debugging tool through the transmitting unit inside the sensor.

[0096] In one embodiment, the wireless logic debugging unit encapsulates the task execution feedback information based on a preset second data format, including: the wireless logic debugging unit determines the corresponding instruction type based on the task execution feedback information; the wireless logic debugging unit encapsulates the task execution feedback information based on the instruction type and the preset second data format.

[0097] In one embodiment, the wireless logic debugging unit determines the debugging module corresponding to the instruction type and instructs the debugging module to execute the corresponding task based on the instruction content, including: the wireless logic debugging unit obtains the module information of multiple debugging modules; the wireless logic debugging unit matches the instruction type with the module information of the multiple debugging modules; when the matching is successful, the wireless logic debugging unit sends the instruction content to the debugging module corresponding to the module information that matches successfully, so as to instruct the debugging module to execute the corresponding task.

[0098] In one embodiment, the wireless logic debugging unit instructs the debugging module to execute the corresponding task based on the instruction content, including at least one of the following: when the instruction content is a register read instruction, the wireless logic debugging unit sends the register read instruction to the debugging module for reading registers, and reads the data of the registers inside the central processing unit through the debugging module for reading registers; when the instruction content is a register write instruction, the wireless logic debugging unit sends the register write instruction to the debugging module for writing registers, and controls the central processing unit to stop running and then rewrite the registers through the debugging module for writing registers; when the instruction content is a random access memory read instruction, the wireless logic debugging unit sends the random access memory read instruction to the debugging module for reading the random access memory, and reads the data in the random access memory inside the central processing unit through the debugging module for reading the random access memory; when the instruction content is a random access memory write instruction, the wireless logic debugging unit sends the random access memory write instruction to the debugging module for writing the random access memory, and controls the central processing unit to stop running and then rewrite the random access memory through the debugging module for writing the random access memory; when the instruction content is a central processing unit running instruction, the wireless logic debugging unit sends the central processing unit running instruction to the debugging module for controlling the central processing unit to run, and controls the central processing unit to run through the debugging module for controlling the central processing unit to run; when the instruction content is a central processing unit stop instruction, the wireless logic debugging unit sends the central processing unit stop instruction to the debugging module for controlling the central processing unit to stop running, and controls the central processing unit to stop running through the debugging module for controlling the central processing unit to stop running; when the instruction content is an exit debugging instruction, the wireless logic debugging unit sends the exit debugging instruction to the debugging module for exiting the debugging mode, and makes the central processing unit adjust from the adjustment mode to the working mode through the debugging module for exiting the debugging mode.

[0099] Based on the same inventive concept, an embodiment of the present application further provides a sensor wireless debugging device for implementing the sensor wireless debugging method involved above. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the sensor wireless debugging device provided below can refer to the limitations on the sensor wireless debugging method in the above text, and will not be repeated here.

[0100] In one embodiment, as Figure 8 shown, a sensor wireless debugging device is provided, including: an activation module 100, an instruction signal parsing module 200, a debugging task execution module 300, and a debugging feedback module 400, where:

[0101] The activation module 100 is configured to obtain a wireless activation signal sent by a debugging tool, parse the wireless activation signal based on a preset first data format to obtain activation instruction content, and instruct the central processor inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content.

[0102] The instruction signal parsing module 200 is configured to, after the central processor is adjusted to the debugging mode, obtain a wireless instruction signal sent by the debugging tool, parse the wireless instruction signal based on a preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal.

[0103] The debugging task execution module 300 is configured to determine a debugging module corresponding to the instruction type, and instruct the debugging module to execute a corresponding task based on the instruction content.

[0104] The debugging feedback module 400 is configured to obtain the task execution feedback information of the debugging module, encapsulate the task execution feedback information based on a preset second data format, and send the encapsulated task execution feedback information to the debugging tool through the transmitting unit inside the sensor.

[0105] In one of the embodiments, the activation module 100 may include:

[0106] An activation instruction sending sub-module, configured to send an activation instruction to the central processor to stop the central processor from running.

[0107] An activation feedback sub-module, configured to obtain the activation feedback information of the central processor, and send the corresponding activation feedback information to the debugging tool through the transmitting unit inside the sensor.

[0108] In one of the embodiments, the debugging feedback module 400 may include:

[0109] An instruction type obtaining sub-module, configured to determine the corresponding instruction type based on the task execution feedback information.

[0110] A feedback information encapsulation sub-module, which is used to encapsulate the task execution feedback information based on the instruction type and a preset second data format.

[0111] In one embodiment, the debug task execution module 300 may include:

[0112] A module information acquisition sub-module, which is used to acquire the module information of multiple debug modules.

[0113] A debug module matching sub-module, which is used to match the instruction type with the module information of multiple debug modules.

[0114] An instruction content sending sub-module. When the matching is successful, it sends the instruction content to the debug module corresponding to the module information that matches successfully, so as to instruct the debug module to execute the corresponding task.

[0115] In one embodiment, the debug task execution module 300 may include at least one of the following:

[0116] A read register sub-module, which is used to send a read register instruction to the debug module for reading registers when the instruction content is a read register instruction, and read the data of the registers inside the central processing unit through the debug module for reading registers.

[0117] A write register sub-module, which is used to send a write register instruction to the debug module for writing registers when the instruction content is a write register instruction, and control the central processing unit to stop running and then write to the register through the debug module for writing registers.

[0118] A read random access memory sub-module, which is used to send a read random access memory instruction to the debug module for reading random access memory when the instruction content is a read random access memory instruction, and read the data in the random access memory inside the central processing unit through the debug module for reading random access memory.

[0119] A write random access memory sub-module, which is used to send a write random access memory instruction to the debug module for writing random access memory when the instruction content is a write random access memory instruction, and control the central processing unit to stop running and then write to the random access memory through the debug module for writing random access memory.

[0120] A central processing unit running sub-module, which is used to send a central processing unit running instruction to the debug module for controlling the central processing unit to run when the instruction content is a central processing unit running instruction, and control the central processing unit to run through the debug module for controlling the central processing unit to run.

[0121] The central processing unit stop sub-module is used to, when the instruction content is a central processing unit stop instruction, send the central processing unit stop instruction to the debugging module for controlling the central processing unit to stop running, and control the central processing unit to stop running through the debugging module for controlling the central processing unit to stop running.

[0122] The debug exit sub-module is used to, when the instruction content is a debug exit instruction, send the debug exit instruction to the debugging module for exiting the debug mode, and cause the central processing unit to adjust from the debug mode to the working mode through the debugging module for exiting the debug mode.

[0123] Each module in the above sensor wireless debugging device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor in the communication device in hardware form or be independent of it, or can be stored in the memory in the communication device in software form, so as to facilitate the processor to call and execute the operations corresponding to each of the above modules.

[0124] In one embodiment, a communication device is provided. The communication device can be a terminal, and its internal structure diagram can be as Figure 9 shown. The communication device includes a processor, a memory, a communication interface, and a display screen connected through a system bus. Among them, the processor of the communication is used to provide computing and control capabilities. The memory of the communication device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the communication device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it realizes a sensor wireless debugging method. The display screen of the communication device can be a liquid crystal display screen or an electronic ink display screen.

[0125] Those skilled in the art can understand that Figure 9 the structure shown in

[0126] In one embodiment, a communication device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented: obtaining a wireless activation signal sent by a debugging tool, parsing the wireless activation signal based on a preset first data format to obtain activation instruction content, and instructing a central processing unit inside the sensor to adjust from a working mode to a debugging mode based on the activation instruction content; after the central processing unit is adjusted to the debugging mode, obtaining a wireless instruction signal sent by the debugging tool, parsing the wireless instruction signal based on the preset first data format to obtain an instruction type and instruction content corresponding to the wireless instruction signal; determining a debugging module corresponding to the instruction type, and instructing the debugging module to execute a corresponding task based on the instruction content; obtaining task execution feedback information of the debugging module, encapsulating the task execution feedback information based on a preset second data format, and sending the encapsulated task execution feedback information to the debugging tool through a transmitting unit inside the sensor.

[0127] In one of the embodiments, when the processor executes the computer program, implementing instructing the central processing unit inside the sensor to adjust from a working mode to a debugging mode based on the activation instruction content includes: sending the activation instruction to the central processing unit to stop the central processing unit from running; obtaining activation feedback information of the central processing unit, and sending corresponding activation feedback information to the debugging tool through a transmitting unit inside the sensor.

[0128] In one of the embodiments, when the processor executes the computer program, implementing encapsulating the task execution feedback information based on the preset second data format includes: determining a corresponding instruction type based on the task execution feedback information; encapsulating the task execution feedback information based on the instruction type and the preset second data format.

[0129] In one embodiment, when the processor executes a computer program, it implements determining a debugging module corresponding to the instruction type and instructing the debugging module to execute a corresponding task based on the instruction content, including: obtaining module information of a plurality of debugging modules; matching the instruction type with the module information of the plurality of debugging modules; when the matching is successful, sending the instruction content to the debugging module corresponding to the module information that matches successfully to instruct the debugging module to execute a corresponding task. In one embodiment, when the processor executes a computer program, it implements instructing the debugging module to execute a corresponding task based on the instruction content, including at least one of the following: when the instruction content is a register read instruction, sending the register read instruction to the debugging module for reading registers, and reading data of a register inside the central processing unit through the debugging module for reading registers; when the instruction content is a register write instruction, sending the register write instruction to the debugging module for writing registers, and controlling the central processing unit to stop running and then rewrite the register through the debugging module for writing registers; when the instruction content is a random access memory read instruction, sending the random access memory read instruction to the debugging module for reading the random access memory, and reading data in the random access memory inside the central processing unit through the debugging module for reading the random access memory; when the instruction content is a random access memory write instruction, sending the random access memory write instruction to the debugging module for writing the random access memory, and controlling the central processing unit to stop running and then rewrite the random access memory through the debugging module for writing the random access memory; when the instruction content is a central processing unit running instruction, sending the central processing unit running instruction to the debugging module for controlling the central processing unit to run, and controlling the central processing unit to run through the debugging module for controlling the central processing unit to run; when the instruction content is a central processing unit stop instruction, sending the central processing unit stop instruction to the debugging module for controlling the central processing unit to stop running, and controlling the central processing unit to stop running through the debugging module for controlling the central processing unit to stop running; when the instruction content is an exit debugging instruction, sending the exit debugging instruction to the debugging module for exiting the debugging mode, and causing the central processing unit to adjust from the adjustment mode to the working mode through the debugging module for exiting the debugging mode.

[0130] In one embodiment, a communication device-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a wireless activation signal sent by a debugging tool, parsing the wireless activation signal based on a preset first data format to obtain activation instruction content, and instructing a central processor inside the sensor to adjust from a working mode to a debugging mode based on the activation instruction content; after the central processor is adjusted to the debugging mode, obtaining a wireless instruction signal sent by the debugging tool, parsing the wireless instruction signal based on the preset first data format to obtain an instruction type and instruction content corresponding to the wireless instruction signal; determining a debugging module corresponding to the instruction type, and instructing the debugging module to execute a corresponding task based on the instruction content; obtaining task execution feedback information of the debugging module, encapsulating the task execution feedback information based on a preset second data format, and sending the encapsulated task execution feedback information to the debugging tool through a transmitting unit inside the sensor.

[0131] In one of the embodiments, when the computer program is executed by the processor, implementing instructing the central processor inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content includes: sending the activation instruction to the central processor to cause the central processor to stop running; obtaining activation feedback information of the central processor, and sending corresponding activation feedback information to the debugging tool through a transmitting unit inside the sensor.

[0132] In one of the embodiments, when the computer program is executed by the processor, implementing encapsulating the task execution feedback information based on the preset second data format includes: determining a corresponding instruction type based on the task execution feedback information; encapsulating the task execution feedback information based on the instruction type and the preset second data format.

[0133] In one embodiment, when the computer program is executed by a processor, it realizes determining a debugging module corresponding to an instruction type, and based on the instruction content, instructing the debugging module to execute a corresponding task, including: obtaining module information of multiple debugging modules; matching the instruction type with the module information of the multiple debugging modules; when the matching is successful, sending the instruction content to the debugging module corresponding to the module information that matches successfully, to instruct the debugging module to execute a corresponding task. In one embodiment, when the computer program is executed by a processor, it realizes instructing the debugging module to execute a corresponding task based on the instruction content, including at least one of the following: when the instruction content is a register read instruction, sending the register read instruction to the debugging module for reading registers, and reading data of registers inside the central processing unit through the debugging module for reading registers; when the instruction content is a register write instruction, sending the register write instruction to the debugging module for writing registers, and controlling the central processing unit to stop running and then rewrite the registers through the debugging module for writing registers; when the instruction content is a random access memory read instruction, sending the random access memory read instruction to the debugging module for reading the random access memory, and reading data in the random access memory inside the central processing unit through the debugging module for reading the random access memory; when the instruction content is a random access memory write instruction, sending the random access memory write instruction to the debugging module for writing the random access memory, and controlling the central processing unit to stop running and then rewrite the random access memory through the debugging module for writing the random access memory; when the instruction content is a central processing unit running instruction, sending the central processing unit running instruction to the debugging module for controlling the central processing unit to run, and controlling the central processing unit to run through the debugging module for controlling the central processing unit to run; when the instruction content is a central processing unit stop instruction, sending the central processing unit stop instruction to the debugging module for controlling the central processing unit to stop running, and controlling the central processing unit to stop running through the debugging module for controlling the central processing unit to stop running; when the instruction content is an exit debugging instruction, sending the exit debugging instruction to the debugging module for exiting the debugging mode, and causing the central processing unit to adjust from the adjustment mode to the working mode through the debugging module for exiting the debugging mode.

[0134] In one embodiment, a computer program product is provided, including a computer program which, when executed by a processor, implements the following steps: obtaining a wireless activation signal sent by a debugging tool, parsing the wireless activation signal based on a preset first data format to obtain activation instruction content, and instructing a central processor inside the sensor to adjust from a working mode to a debugging mode based on the activation instruction content; after the central processor is adjusted to the debugging mode, obtaining a wireless instruction signal sent by the debugging tool, parsing the wireless instruction signal based on the preset first data format to obtain an instruction type and instruction content corresponding to the wireless instruction signal; determining a debugging module corresponding to the instruction type, and instructing the debugging module to execute a corresponding task based on the instruction content; obtaining task execution feedback information of the debugging module, encapsulating the task execution feedback information based on a preset second data format, and sending the encapsulated task execution feedback information to the debugging tool through a transmitting unit inside the sensor.

[0135] In one of the embodiments, when the computer program is executed by a processor, implementing instructing a central processor inside the sensor to adjust from a working mode to a debugging mode based on the activation instruction content includes: sending the activation instruction to the central processor to cause the central processor to stop running; obtaining activation feedback information of the central processor, and sending corresponding activation feedback information to the debugging tool through a transmitting unit inside the sensor.

[0136] In one of the embodiments, when the computer program is executed by a processor, implementing encapsulating the task execution feedback information based on a preset second data format includes: obtaining a debugging module corresponding to each task execution feedback information, and obtaining a corresponding instruction type based on the debugging module; obtaining a corresponding wireless signal instruction based on the instruction type and the preset first data format; and encapsulating the task execution feedback information based on the wireless signal instruction and the preset second data format.

[0137] In one of the embodiments, when the computer program is executed by a processor, implementing instructing a debugging module to execute a corresponding task based on the instruction content includes: obtaining module information of multiple debugging modules; matching the wireless instruction signal with the module information of the multiple debugging modules, and when the matching is successful, sending the instruction content corresponding to the wireless instruction signal to the debugging module corresponding to the module information that matches successfully.

[0138] In one embodiment, when the computer program is executed by a processor, it implements instructing a debugging module to execute corresponding tasks based on instruction content, including at least one of the following: when the instruction content is a register read instruction, sending the register read instruction to the debugging module for reading registers, and reading data in the registers inside the central processing unit through the debugging module for reading registers; when the instruction content is a register write instruction, sending the register write instruction to the debugging module for writing registers, and controlling the central processing unit to stop running and then writing to the registers through the debugging module for writing registers; when the instruction content is a random access memory read instruction, sending the random access memory read instruction to the debugging module for reading random access memory, and reading data in the random access memory inside the central processing unit through the debugging module for reading random access memory; when the instruction content is a random access memory write instruction, sending the random access memory write instruction to the debugging module for writing random access memory, and controlling the central processing unit to stop running and then writing to the random access memory through the debugging module for writing random access memory; when the instruction content is a central processing unit run instruction, sending the central processing unit run instruction to the debugging module for controlling the central processing unit to run, and controlling the central processing unit to run through the debugging module for controlling the central processing unit to run; when the instruction content is a central processing unit stop instruction, sending the central processing unit stop instruction to the debugging module for controlling the central processing unit to stop running, and controlling the central processing unit to stop running through the debugging module for controlling the central processing unit to stop running; when the instruction content is a debug exit instruction, sending the debug exit instruction to the debugging module for exiting the debug mode, and causing the central processing unit to adjust from the debug mode to the working mode through the debugging module for exiting the debug mode.

[0139] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data that have been authorized by the user or fully authorized by all parties.

[0140] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memories can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0141] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0142] The above-described embodiments only represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A wireless debugging method for a sensor, characterized in that, The method includes: Obtain a wireless activation signal sent by a debugging tool, parse the wireless activation signal based on a preset first data format to obtain activation instruction content, and based on the activation instruction content, instruct a central processing unit inside the sensor to adjust from a working mode to a debugging mode; After the central processing unit is adjusted to the debugging mode, obtain a wireless instruction signal sent by the debugging tool, parse the wireless instruction signal based on the preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal; Determine a debugging module corresponding to the instruction type, and based on the instruction content, instruct the debugging module to execute a corresponding task; Obtain task execution feedback information of the debugging module, encapsulate the task execution feedback information based on a preset second data format, and send the encapsulated task execution feedback information to the debugging tool through a transmitting unit inside the sensor; The second data format includes a feedback type field, a feedback content field, a preamble, a message start flag field, and a check field; The debugging tool is used to receive the task execution feedback information based on the preamble, and perform verification on the task execution feedback information based on the check field to prevent data errors; and obtain a preset message code, and when the message code matches the message start flag field, read the feedback type field and the feedback content field included in the task execution feedback information.

2. The method according to claim 1, wherein The instructing the central processing unit inside the sensor to adjust from the working mode to the debugging mode based on the activation instruction content includes: Send the activation instruction to the central processing unit to stop the central processing unit from running; Obtain activation feedback information of the central processing unit, and send corresponding activation feedback information to the debugging tool through a transmitting unit inside the sensor.

3. The method according to claim 1, wherein The encapsulating the task execution feedback information based on the preset second data format includes: Determine a corresponding instruction type based on the task execution feedback information; Encapsulate the task execution feedback information based on the instruction type and the preset second data format.

4. The method according to claim 1, wherein The determining a debugging module corresponding to the instruction type and instructing the debugging module to execute a corresponding task based on the instruction content includes: Obtain module information of multiple debugging modules; Match the instruction type with the module information of the multiple debugging modules; When the matching is successful, send the instruction content to the debugging module corresponding to the module information that matches successfully to instruct the debugging module to execute a corresponding task.

5. The method according to claim 1, wherein The instructing the debugging module to execute a corresponding task based on the instruction content includes at least one of the following: When the instruction content is a register reading instruction, send the register reading instruction to a debugging module for reading registers, and read data of registers inside the central processing unit through the debugging module for reading registers; When the instruction content is a register writing instruction, send the register writing instruction to a debugging module for writing registers, and control the central processing unit to stop running and then rewrite the registers through the debugging module for writing registers; When the instruction content is a random access memory read instruction, send the random access memory read instruction to the debug module for reading the random access memory, and read the data in the random access memory inside the central processing unit through the debug module for reading the random access memory; When the instruction content is a random access memory write instruction, send the random access memory write instruction to the debug module for writing the random access memory, and after controlling the central processing unit to stop running through the debug module for writing the random access memory, rewrite the random access memory; When the instruction content is a central processing unit running instruction, send the central processing unit running instruction to the debug module for controlling the central processing unit to run, and control the central processing unit to run through the debug module for controlling the central processing unit to run; When the instruction content is a central processing unit stop instruction, send the central processing unit stop instruction to the debug module for controlling the central processing unit to stop running, and control the central processing unit to stop running through the debug module for controlling the central processing unit to stop running; When the instruction content is an exit debug instruction, send the exit debug instruction to the debug module for exiting the debug mode, and through the debug module for exiting the debug mode, adjust the central processing unit from the adjustment mode to the working mode.

6. A wireless debugging system for a sensor, characterized in that, It includes: a sensor and a debug tool; A central processing module, a receiving unit, a transmitting unit, a wireless logic debug unit, and multiple debug modules are provided in the sensor; The wireless logic debug unit obtains the wireless activation signal sent by the debug tool from the receiving unit, parses the wireless activation signal based on a preset first data format to obtain the activation instruction content, and based on the activation instruction content, instructs the central processing unit inside the sensor to adjust from the working mode to the debug mode; After the central processing unit is adjusted to the debug mode, the wireless logic debug unit obtains the wireless instruction signal sent by the debug tool from the receiving unit, parses the wireless instruction signal based on a preset first data format to obtain the instruction type and instruction content corresponding to the wireless instruction signal; Determine the debug module corresponding to the instruction type, and based on the instruction content, instruct the debug module to execute the corresponding task; After the debug module executes the corresponding task, the wireless logic debug unit obtains the task execution feedback information of the debug module, encapsulates the task execution feedback information based on a preset second data format, and sends the encapsulated task execution feedback information to the debug tool through the transmitting unit; the second data format includes a feedback type field, a feedback content field, a preamble, a message start flag field, and a check field; The debug tool is used to receive the task execution feedback information based on the preamble and perform a check on the task execution feedback information based on the check field to prevent data errors; and obtaining a preset message code, and when the message code matches the message start flag field, reading the feedback type field and the feedback content field included in the task execution feedback information.

7. A wireless debugging device for a sensor, characterized in that, The device includes: an activation module, configured to obtain a wireless activation signal sent by a debugging tool, parse the wireless activation signal based on a preset first data format to obtain activation instruction content, and instruct a central processing unit inside the sensor to adjust from a working mode to a debugging mode based on the activation instruction content; an instruction signal parsing module, configured to, after the central processing unit is adjusted to the debugging mode, obtain a wireless instruction signal sent by the debugging tool, parse the wireless instruction signal based on the preset first data format to obtain the instruction type and the instruction content corresponding to the wireless instruction signal; a debugging task execution module, configured to determine a debugging module corresponding to the instruction type, and instruct the debugging module to execute a corresponding task based on the instruction content; a debugging feedback module, configured to obtain task execution feedback information of the debugging module, encapsulate the task execution feedback information based on a preset second data format, and send the encapsulated task execution feedback information to the debugging tool through a transmitting unit inside the sensor; the second data format includes a feedback type field, a feedback content field, a preamble, a message start flag field, and a check field; the debugging tool is configured to receive the task execution feedback information based on the preamble, and verify the task execution feedback information based on the check field to prevent data errors; and obtain a preset message code, and when the message code matches the message start flag field, read the feedback type field and the feedback content field included in the task execution feedback information.

8. A communication device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A readable storage medium for a communication device, on which a computer program is stored, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Debugging device and method for mine wireless sensor

    CN103326796A

  • Debugging device on SOC

    CN112395147A