Novel man-machine interaction debugging method and device based on single-chip microcomputer

Through the new human-computer interactive debugging method and device based on single-chip microcomputer, the problem of debugging equipment being damaged in harsh environments is solved, and the effective acquisition and decoding of data in high temperature, high humidity and other environments is achieved. It is suitable for small-sized devices and improves improve the applicability and reliability of the equipment.

CN118759989APending Publication Date: 2024-10-11SHENZHEN ZHENBANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411013883.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing debugging equipment is easily damaged in harsh environments and cannot be used in harsh working environments such as high temperatures.

Method used

Using a new human-computer interaction debugging method and device based on a single-chip microcomputer, by receiving the digital information sent by the data sending device, using the identification information to match the preset rules and then decoding to obtain the original data information, the acquisition of temperature, humidity and other information is achieved, which is suitable for Small size device, suitable for high temperature, high humidity and other environments.

Benefits of technology

It realizes data acquisition and decoding of data sending equipment in harsh environments, avoids the problem of traditional equipment being damaged due to environmental reasons, and improves the applicability and reliability of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118759989A_ABST
    Figure CN118759989A_ABST
Patent Text Reader

Abstract

The invention discloses a novel man-machine interaction debugging method and device based on a single-chip microcomputer, and the method comprises the steps: receiving digital information transmitted by a data transmission device if the connection with the data transmission device is detected, and the digital information comprises identification information and data information; determining whether the identification information accords with a preset rule; and if the identification information accords with the preset rule, decoding the data information to obtain original data information. According to the invention, the digital information sent by the data sending equipment can be obtained in a severe working environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of single chip microcomputer technology, and in particular to a novel human-computer interaction debugging method and device based on a single chip microcomputer. Background Art

[0002] When debugging the program of an application device, it is usually necessary to obtain data information of the application device, such as temperature information, humidity information, test times, etc., and understand the working status of the application device by observing the data information. Different application devices have different working environments. For example, the working environment of aging test equipment is usually high temperature, and the commonly used debugging equipment is a computer. When the computer is in a harsh environment such as high temperature, it is easy to cause damage to the computer. That is, the current debugging equipment cannot be applied to harsh working environments. Summary of the invention

[0003] The embodiment of the present invention provides a novel human-computer interaction debugging method and device based on a single chip microcomputer, aiming to solve the problem that the current debugging equipment is easily damaged in a harsh working environment.

[0004] In a first aspect, an embodiment of the present invention provides a novel human-computer interaction debugging method based on a single-chip microcomputer, which is applied to a single-chip microcomputer. The method comprises:

[0005] If a connection with a data sending device is detected, receiving digital information sent by the data sending device, wherein the digital information includes identification information and data information;

[0006] Confirm whether the identification information complies with preset rules;

[0007] If the identification information complies with the preset rule, the data information is decoded to obtain the original data information.

[0008] In a second aspect, an embodiment of the present invention further provides a novel human-computer interaction debugging device based on a single-chip microcomputer, the device comprising:

[0009] A first receiving unit, configured to receive digital information sent by a data sending device if a connection with the data sending device is detected, wherein the digital information includes identification information and data information;

[0010] A first confirmation unit, used to confirm whether the identification information complies with a preset rule;

[0011] The first decoding unit is used to decode the data information to obtain original data information if the identification information meets the preset rule.

[0012] The embodiment of the present invention provides a novel human-computer interaction debugging method and device based on a single-chip microcomputer. The method includes: if a connection with a data sending device is detected, receiving digital information sent by the data sending device, wherein the digital information includes identification information and data information; confirming whether the identification information complies with a preset rule; if the identification information complies with the preset rule, decoding the data information to obtain the original data information. The embodiment of the present invention receives digital information from a data sending device, and when the identification information in the digital information complies with the preset rule, decodes the data information to obtain the original data information, and the above-mentioned identification method is applied to a single-chip microcomputer, so that the single-chip microcomputer can be installed on a small device, without complex and precise circuits, and can be applied to harsh working environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0014] Figure 1 It is a flow chart of a novel human-computer interaction debugging method based on a single chip microcomputer provided by an embodiment of the present invention;

[0015] Figure 2 is a schematic diagram of digital information provided by an embodiment of the present invention;

[0016] Figure 3 It is a schematic block diagram of a novel human-computer interaction debugging device based on a single-chip microcomputer provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, operations, elements, components and / or groups thereof.

[0019] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, the singular forms of "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0020] See also Figure 1 , Figure 1 1 is a flow chart of a novel human-computer interaction debugging method based on a single-chip microcomputer provided by an embodiment of the present invention. The novel human-computer interaction debugging method based on a single-chip microcomputer according to an embodiment of the present invention is applied to a single-chip microcomputer to identify digital information sent by a data sending device. Figure 1 As shown, the method includes steps S100 to S120.

[0021] S100: If a connection with a data sending device is detected, digital information sent by the data sending device is received, wherein the digital information includes identification information and data information.

[0022] In an embodiment of the present invention, the data recognition method provided by the present invention is applied to a single-chip microcomputer, and the single-chip microcomputer can be set on a small PCBA board, and a digital tube is configured for the PCBA board, and then the PCBA board is placed on a fixed board, and then the data transmission device is connected through a data line to realize data reception. There is no need to set a complex circuit on the PCBA board, and due to its small size, the data of the data transmission device can be obtained in a high temperature, high humidity and narrow environment.

[0023] The data transmission device can be any device that needs to be debugged, for example, it can be an aging test device. The ambient temperature of the aging test device is usually high. Computers are prone to damage when they are in a high temperature environment because they have sophisticated electronic devices. The data recognition method in this application can be implemented by a single-chip microcomputer and is not easily restricted by the environment.

[0024] When a connection with a data sending device is detected, the digital information sent by the data sending device is obtained, and the digital information includes identification information and data information. When the single-chip microcomputer is connected to the data sending device, the connection can be made through the IO port, which can reduce the occupation of the interface of the data sending device and further improve the application scenario. For example, one of the traditional connection methods is to connect through a serial port, and the data sending device needs a free TX interface and RX interface to be able to connect to the data sending device. The identification information is used to determine whether the digital information is the data to be obtained, and the data information is the specific information content.

[0025] S110, confirming whether the identification information complies with a preset rule.

[0026] In the embodiment of the present invention, the identification information is used to confirm whether the digital information is the information to be obtained, and the preset rule is used to determine whether the identification information meets the requirements. Preferably, the identification information may include a high-level signal and a low-level signal, and the preset rule may be used to determine whether the ratio of the duration of the high-level signal to the duration of the low-level signal meets the requirements.

[0027] For example, the identification information may include a high-level signal and a low-level signal. The high-level signal lasts for 3ms and the low-level signal lasts for 6ms. The ratio of the duration of the low-level signal to the duration of the high level is 2:1. If the preset rule is that the ratio of the duration of the low-level signal to the duration of the high level is 2:1, the identification information meets the requirements. If the high-level signal lasts for 10ms and the low-level signal lasts for 2ms, the ratio of the duration of the high-level signal to the duration of the low-level signal is 1:5, which does not meet the 2:1 required by the preset rule, and the identification information does not meet the requirements.

[0028] In some embodiments, such as this embodiment, step S110 may include the following steps:

[0029] Identify the identification information to obtain a high level signal and a low level signal in the identification information;

[0030] confirming whether a ratio between a duration of the low-level signal in the identification information and a duration of the high-level signal meets a first preset ratio;

[0031] If the ratio between the duration of the low-level signal in the identification information and the duration of the high-level signal meets the first preset ratio, the step of decoding the data information to obtain the original data information is entered;

[0032] If the ratio between the duration of the low-level signal in the identification information and the duration of the high-level signal does not meet the first preset ratio, the digital information is discarded.

[0033] In an embodiment of the present invention, the identification information may include a high-level signal and a low-level signal. The duration of the high-level signal may be 6ms, and the duration of the low-level signal may be 6ms. The ratio of the duration of the low-level signal to the duration of the high-level signal is 1:1. The first preset ratio may be a ratio of the duration of the low-level signal to the duration of the high-level signal of 2:1. If the identification information does not meet the first preset ratio, the received digital information may be discarded.

[0034] Data transmission equipment usually has a timer, and can send information according to the timer interrupt. For example, if the timer interrupt is 100us, and the information is sent during the interrupt, the DAT line can be set to a high level when idle and a low level when busy, so that the information to be sent can be converted into digital information for transmission.

[0035] S120: If the identification information complies with the preset rule, the data information is decoded to obtain original data information.

[0036] In an embodiment of the present invention, when the identification information meets the preset rules, the data information is decoded to obtain the original data information. The data information is also composed of multiple high-level signals and low-level signals, and the data information is decoded according to the ratio of the duration of the high-level signal to the duration of the low-level signal to obtain the original data information.

[0037] For example, a high level signal is recorded as 1, a low level signal is recorded as 0, and data information may include 16 level signals, such as Figure 2 As shown, Figure 2 It includes multiple high-level signals and low-level signals, and the lengths of different level signals represent their durations. Figure 2 The first two level signals before the first low level signal in are the level signals contained in the identification information, which are a high level signal and a low level signal respectively, and the ratio of the low level signal to the high level signal is 2:1. Figure 2 The two adjacent level signals in the data information are taken as a group of signals. For example, the first low-level signal and the first high-level signal in the data information are taken as a group of signals. The ratio of the duration of the low-level signal to the duration of the high-level signal in the group of signals is 1:1. The group of signals can be recorded as 0. By analogy, a group of digital information 01100100 can be obtained. Decoding the group of digital information can obtain 100. The number 100 can represent any parameters such as the ambient temperature, humidity, and number of tests of the data sending device, which can be determined according to the type of the data sending device.

[0038] In some embodiments, such as this embodiment, step S120 may include the following steps:

[0039] Parsing the data information to obtain a high level signal and a low level signal contained in the data information;

[0040] Adjacent high-level signals and low-level signals are set as a group of signals to be identified;

[0041] The signal group to be identified is identified according to a ratio between a duration of a low-level signal and a duration of a high-level signal in the signal group to be identified.

[0042] In the embodiment of the present invention, Figure 2 As shown, two groups of adjacent level signals are taken as a group of signals to be identified, wherein a group of signals to be identified includes a high level signal and a low level signal, and the group of signals to be identified is identified according to the ratio of the duration of the high level signal to the duration of the low level signal.

[0043] In some embodiments, such as the present embodiment, the step of identifying the signal group to be identified according to the ratio between the duration of the low-level signal and the duration of the high-level signal in the signal group to be identified further includes the following steps:

[0044] If the ratio between the duration of the low-level signal and the duration of the high-level signal in the signal group to be identified meets the second preset ratio, the signal group to be identified is recorded as 0;

[0045] If the ratio between the duration of the low-level signal and the duration of the high-level signal in the to-be-identified signal group meets the third preset ratio, the to-be-identified signal group is recorded as 1.

[0046] In the embodiment of the present invention, Figure 2 As shown, the ratio of the duration of the low-level signal to the duration of the high-level signal in the first group of signal groups to be identified is 1:1, which is recorded as 0, the ratio of the duration of the low-level signal to the duration of the high-level signal in the second group of signal groups to be identified is 2:1, which is recorded as 1, the ratio of the duration of the low-level signal to the duration of the high-level signal in the third group of signal groups to be identified is 2:1, which is recorded as 1, the ratio of the duration of the low-level signal to the duration of the high-level signal in the fourth group of signal groups to be identified is 1:1, which is recorded as 0, and the ratio of the duration of the low-level signal to the duration of the high-level signal in the fifth group of signal groups to be identified is 1:1. The ratio of the duration of the low level signal of the group to be identified to the duration of the high level signal is 1:1, which is recorded as 0; the ratio of the duration of the low level signal of the sixth group of signal groups to be identified to the duration of the high level signal is 2:1, which is recorded as 1; the ratio of the duration of the low level signal of the seventh group of signal groups to be identified to the duration of the high level signal is 1:1, which is recorded as 0; the ratio of the duration of the low level signal of the eighth group of signal groups to be identified to the duration of the high level signal is 1:1, which is recorded as 0, then the obtained digital information is 01100100.

[0047] In some embodiments, such as the present embodiment, the novel human-computer interaction debugging method based on a single chip microcomputer further includes the following step: displaying the original data information through a digital tube.

[0048] In the embodiment of the present invention, for example, if the digital information is 01100100, and the number obtained after decoding is 100, the number 100 can be displayed through the digital tube. The user can understand the specific situation of the information obtained through the digital tube. The number 100 can represent any parameter such as temperature, humidity, or the number of tests. For example, if the user wants to know the number of tests of the data sending device, the data sending device obtains the number of tests and converts it into digital information and sends it to the single-chip microcomputer, which decodes it and displays it on the digital tube.

[0049] Figure 3 2 is a schematic block diagram of a novel human-computer interaction debugging device 200 based on a single-chip microcomputer provided by an embodiment of the present invention. Figure 3 As shown, corresponding to the above-mentioned novel human-computer interaction debugging method based on single-chip microcomputer, the present invention also provides a novel human-computer interaction debugging device 200 based on single-chip microcomputer. The novel human-computer interaction debugging device 200 based on single-chip microcomputer includes a unit for executing the above-mentioned novel human-computer interaction debugging method based on single-chip microcomputer. Figure 3 The novel human-computer interaction debugging device 200 based on a single chip microcomputer includes a first receiving unit 201 , a first confirming unit 202 and a first decoding unit 203 .

[0050] Wherein, the first receiving unit 201 is used to receive digital information sent by the data sending device if a connection with the data sending device is detected, wherein the digital information includes identification information and data information;

[0051] The first confirmation unit 202 is used to confirm whether the identification information complies with a preset rule;

[0052] The first decoding unit 203 is configured to decode the data information to obtain original data information if the identification information conforms to the preset rule.

[0053] In some embodiments, such as this embodiment, the first confirmation unit 202 further includes a first identification unit, a second confirmation unit, a first jump unit, and a first execution unit.

[0054] Wherein, the first identification unit is used to identify the identification information to obtain the high level signal and the low level signal in the identification information;

[0055] The second confirmation unit is used to confirm whether the ratio between the duration of the low-level signal in the identification information and the duration of the high-level signal meets the first preset ratio;

[0056] The first jump unit is used for entering the step of decoding the data information to obtain the original data information if the ratio between the duration of the low-level signal in the identification information and the duration of the high-level signal meets the first preset ratio;

[0057] The first execution unit is configured to discard the digital information if a ratio between a duration of the low-level signal in the identification information and a duration of the high-level signal does not meet the first preset ratio.

[0058] In some embodiments, such as this embodiment, the first decoding unit 203 further includes a first parsing unit, a first setting unit and a second identification unit.

[0059] Wherein, the first parsing unit is used to parse the data information to obtain the high level signal and the low level signal contained in the data information;

[0060] The first setting unit is used to set adjacent high-level signals and low-level signals as a group of signals to be identified;

[0061] The second identification unit is used to identify the signal group to be identified according to the ratio between the duration of the low-level signal and the duration of the high-level signal in the signal group to be identified.

[0062] In some embodiments, such as this embodiment, the second identification unit further includes a second setting unit and a third setting unit.

[0063] The second setting unit is used for recording the signal group to be identified as 0 if the ratio between the duration of the low-level signal and the duration of the high-level signal in the signal group to be identified meets the second preset ratio;

[0064] The third setting unit is used for marking the signal group to be identified as 1 if the ratio between the duration of the low-level signal and the duration of the high-level signal in the signal group to be identified meets a third preset ratio.

[0065] In some embodiments, such as the present embodiment, the novel human-computer interaction debugging device 200 based on a single-chip microcomputer further includes a first display unit.

[0066] Wherein, the first display unit is used to display the original data information through a digital tube.

[0067] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the above-mentioned new human-computer interaction debugging device based on single-chip microcomputer and each unit can refer to the corresponding description in the aforementioned method embodiment. For the convenience and conciseness of the description, it will not be repeated here.

[0068] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0069] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0070] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A novel human-computer interaction debugging method based on a single-chip microcomputer, characterized in that: The method comprises: If a connection with a data sending device is detected, receiving digital information sent by the data sending device, wherein the digital information includes identification information and data information; Confirm whether the identification information complies with preset rules; If the identification information complies with the preset rule, the data information is decoded to obtain the original data information.

2. The method according to claim 1, characterized in that The identification information and the data information are both composed of a high level signal and a low level signal.

3. The method according to claim 2, characterized in that The step of confirming whether the identification information complies with a preset rule includes: Identify the identification information to obtain a high level signal and a low level signal in the identification information; confirming whether a ratio between a duration of the low-level signal in the identification information and a duration of the high-level signal meets a first preset ratio; If the ratio between the duration of the low-level signal in the identification information and the duration of the high-level signal meets the first preset ratio, the step of decoding the data information to obtain the original data information is entered.

4. The method according to claim 3, characterized in that The method further comprises: If the ratio between the duration of the low-level signal in the identification information and the duration of the high-level signal does not meet the first preset ratio, the digital information is discarded.

5. The method according to claim 2, characterized in that The step of decoding the data information to obtain the original data information comprises: Parsing the data information to obtain a high level signal and a low level signal contained in the data information; Adjacent high-level signals and low-level signals are set as a group of signals to be identified; The signal group to be identified is identified according to a ratio between a duration of a low-level signal and a duration of a high-level signal in the signal group to be identified.

6. The method according to claim 5, characterized in that The step of identifying the signal group to be identified according to the ratio between the duration of the low-level signal and the duration of the high-level signal in the signal group to be identified comprises: If the ratio between the duration of the low-level signal and the duration of the high-level signal in the signal group to be identified meets the second preset ratio, the signal group to be identified is recorded as 0; If the ratio between the duration of the low-level signal and the duration of the high-level signal in the to-be-identified signal group meets the third preset ratio, the to-be-identified signal group is recorded as 1.

7. The method according to claim 1, characterized in that The method further comprises: The raw data information is displayed through a digital tube.

8. A novel human-computer interaction debugging device based on a single-chip microcomputer, characterized in that: The device comprises: A first receiving unit, configured to receive digital information sent by a data sending device if a connection with the data sending device is detected, wherein the digital information includes identification information and data information; A first confirmation unit, used to confirm whether the identification information complies with a preset rule; The first decoding unit is used to decode the data information to obtain original data information if the identification information meets the preset rule.

9. The novel human-computer interaction debugging device based on single-chip microcomputer as claimed in claim 8, characterized in that: The identification information and the data information are both composed of a high-level signal and a low-level signal, and the first confirmation unit includes: A first identification unit, used for identifying the identification information to obtain a high level signal and a low level signal in the identification information; A second confirmation unit, used to confirm whether a ratio between a duration of the low-level signal in the identification information and a duration of the high-level signal meets a first preset ratio; The first jump unit is used to enter the step of decoding the data information to obtain the original data information if the ratio between the duration of the low-level signal in the identification information and the duration of the high-level signal meets the first preset ratio.

10. The novel human-computer interaction debugging device based on single-chip microcomputer as claimed in claim 9, characterized in that: The first confirmation unit also includes: The first execution unit is configured to discard the digital information if the ratio between the duration of the low-level signal in the identification information and the duration of the high-level signal does not meet the first preset ratio.