Data transmission method and mouse

By using data processing circuits and monitoring circuits in the mouse to detect and control the data transmission status, the problem of error signals caused by failure of traditional mouse components is solved and the reliability and security of data transmission are improved.

CN118535031APending Publication Date: 2024-08-23CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410567235.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Traditional mice may generate error signals when components fail. Existing technology cannot effectively handle this, resulting in risks when using the mouse in high-security situations.

Method used

The key data and trajectory data are obtained through the data processing circuit, the monitoring circuit detects the abnormal status of the data, and controls the data transmission status according to the abnormal status to avoid erroneous response problems caused by continuing to transmit data after a failure.

Benefits of technology

It improves the reliability and security of data transmission, ensures that data transmission is completed in high-security scenarios, and avoids the problem of incorrect response after mouse component failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535031A
    Figure CN118535031A
Patent Text Reader

Abstract

The invention discloses a data transmission method and a mouse. The method comprises the following steps: acquiring key data and track data through a data processing circuit; processing the key data and the track data through the data processing circuit to obtain data to be processed; detecting the to-be-processed data through a monitoring circuit, and determining a processing abnormal state of the to-be-processed data; and controlling the transmission state of the to-be-processed data according to the processing abnormal state through the monitoring circuit. According to the technical scheme, the acquired key data and track data are processed through the data processing circuit to obtain the to-be-processed data, and then the to-be-processed data are detected through the monitoring circuit, so that the processing abnormal state of the to-be-processed data is determined; and the transmission state of the to-be-processed data is controlled according to the abnormal processing state, so that the problem of error response caused by continuous data transmission after a fault exists is avoided, and the reliability and the safety of data transmission are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of data communication technology, and in particular to a data transmission method and a mouse. Background Art

[0002] With the development of technology, computer control is widely used in various industries. At the same time, due to the increasingly complex operation methods, the traditional operation console has been gradually replaced by the computer operation interface, that is, the human-machine interface (HMI) is gradually replacing the traditional button-type operation console. The HMI is mainly operated by the mouse, rather than the previous industrial buttons.

[0003] The HMI and mouse method can realize complex display and operation, which has advantages that traditional methods cannot match. However, the design of the mouse itself will generate error signals when the components fail. This problem is not considered by existing mice and there are no corresponding treatment measures. Therefore, there are certain risks in using a mouse in high-security occasions. Summary of the invention

[0004] The invention provides a data transmission method and a mouse, so as to improve the reliability of data transmission and realize a mouse with high security.

[0005] In a first aspect, an embodiment of the present invention provides a data transmission method, including:

[0006] Acquire key data and trajectory data through a data processing circuit;

[0007] Processing the key data and the trajectory data by the data processing circuit to obtain data to be processed;

[0008] Detecting the data to be processed by a monitoring circuit to determine an abnormal processing state of the data to be processed;

[0009] The monitoring circuit controls the transmission status of the data to be processed according to the abnormal processing status.

[0010] Optionally, the detecting the data to be processed to determine the abnormal processing state of the data to be processed includes:

[0011] The key data and the trajectory data are processed by the monitoring circuit to obtain data to be compared;

[0012] The monitoring circuit compares the data to be processed with the data to be compared to obtain a comparison result, wherein the comparison result includes: the data to be processed is consistent with the data to be compared and the data to be processed is inconsistent with the data to be compared;

[0013] According to the comparison result, a processing abnormality state of the data to be processed is determined.

[0014] Optionally, determining the abnormal processing state of the data to be processed according to the comparison result includes:

[0015] If the comparison result is that the data to be processed is consistent with the data to be compared, determining that the abnormal processing state of the data to be processed is normal;

[0016] If the comparison result is that the data to be processed is inconsistent with the data to be compared, it is determined that the processing abnormality state of the data to be processed is abnormal.

[0017] Optionally, controlling the transmission state of the data to be processed according to the processing abnormal state includes:

[0018] Controlling the switch state of the switch circuit according to the abnormal processing state through the monitoring circuit;

[0019] The transmission state of the data to be processed is controlled according to the switch state.

[0020] Optionally, controlling the switch state of the switch circuit according to the abnormal state of the processing by the monitoring circuit includes:

[0021] When the abnormal processing state indicates that the data to be processed is abnormal, the monitoring circuit controls the switch state of the switch circuit to be turned on.

[0022] Optionally, the method further includes:

[0023] Performing protocol conversion on the data to be processed by a protocol conversion circuit to obtain converted data, wherein the transmission distance of the converted data is greater than the transmission distance of the data to be processed and the bit error rate of the converted data is less than the bit error rate of the data to be processed;

[0024] The converted data is transmitted through the protocol conversion circuit.

[0025] Optionally, the method further includes:

[0026] Detecting the key data through a monitoring circuit to determine the abnormal state of the key of the key acquisition circuit in the mouse;

[0027] The transmission status of the data to be processed is determined according to the abnormal key status.

[0028] Optionally, determining the transmission status of the to-be-processed data according to the abnormal key status includes:

[0029] When the key abnormal state is abnormal, it is determined that the transmission state of the to-be-processed data is abnormal.

[0030] Optionally, the method further includes:

[0031] Detecting the trajectory data through a monitoring circuit to determine an abnormal trajectory state of a trajectory acquisition circuit in the mouse;

[0032] The transmission status of the data to be processed is determined according to the abnormal trajectory status.

[0033] In a second aspect, an embodiment of the present invention provides a mouse, comprising:

[0034] A data processing circuit and a monitoring circuit; the data processing circuit is connected to the monitoring circuit;

[0035] The data processing circuit is used to obtain key data and trajectory data, and process the key data and trajectory data to obtain data to be processed;

[0036] The monitoring circuit is used to detect the data to be processed, determine the abnormal processing state of the data to be processed, and control the transmission state of the data to be processed according to the abnormal state.

[0037] An embodiment of the present invention provides a data transmission method and a mouse. The method includes: acquiring key data and trajectory data through a data processing circuit; processing the key data and trajectory data through the data processing circuit to obtain data to be processed; detecting the data to be processed through a monitoring circuit to determine the abnormal processing state of the data to be processed; and controlling the transmission state of the data to be processed according to the abnormal processing state through the monitoring circuit. The above technical scheme processes the acquired key data and trajectory data through a data processing circuit to obtain data to be processed, and then detects the data to be processed through a monitoring circuit to determine the abnormal processing state of the data to be processed, and controls the transmission state of the data to be processed according to the abnormal processing state, thereby avoiding the problem of erroneous response caused by continuing to transmit data after a fault exists, and improving the reliability and security of data transmission.

[0038] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0040] Figure 1 A flowchart of a data transmission method provided in Embodiment 1 of the present invention;

[0041] Figure 2 A flowchart of another data transmission method provided in Embodiment 2 of the present invention;

[0042] Figure 3 A schematic diagram of a mouse provided in Embodiment 2 of the present invention;

[0043] Figure 4 This is a schematic diagram of the structure of a mouse provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0044] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict. It should also be noted that, for ease of description, only the parts related to the present invention are shown in the accompanying drawings, rather than all structures.

[0045] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0046] It should be noted that the concepts such as "first" and "second" mentioned in the embodiments of the present invention are only used to distinguish different devices, modules, units or other objects, and are not used to limit the order or interdependence of the functions performed by these devices, modules, units or other objects.

[0047] Embodiment 1

[0048] Figure 1This is a flow chart of a data transmission method provided in Embodiment 1 of the present invention. This embodiment can be applied to improve the reliability of data transmission and realize a highly secure mouse. Specifically, the data transmission method can be applied to a mouse. Further, the mouse includes but is not limited to: a wired mouse, a Bluetooth mouse, an infrared mouse, and the like.

[0049] like Figure 1 As shown, the method specifically comprises the following steps:

[0050] S110, acquiring key data and trajectory data through a data processing circuit.

[0051] In this embodiment, the data processing circuit can be understood as a circuit for processing key data and trajectory data to realize the transmission of processed key data and trajectory data. It should be noted that the data processing circuit can be applied to a mouse, that is, the data processing circuit can be a part of the mouse circuit constituting the mouse. The key data can be understood as the data corresponding to the key collected by the key acquisition circuit, and the key data can include: mouse pressing data and mouse pop-up data. The trajectory data can be understood as the data corresponding to the mouse motion trajectory collected by the trajectory acquisition circuit. Among them, the key acquisition circuit can be understood as a circuit for collecting key data; the trajectory acquisition circuit can be understood as a circuit for collecting trajectory data. It should be noted that the key acquisition circuit and the trajectory acquisition circuit can be applied to a mouse, that is, the key acquisition circuit and the trajectory acquisition circuit can be a part of the mouse circuit constituting the mouse. Among them, the mouse can be understood as an external input device of a computer, and can also be understood as an indicator for positioning the vertical and horizontal coordinates of a computer display system, which can position the cursor on the current screen, and operate the screen elements of the position where the cursor passes through the key and roller device.

[0052] Exemplarily, key data can be collected by a key acquisition circuit, and trajectory data can be collected by a trajectory acquisition circuit. The key acquisition circuit and the trajectory acquisition circuit then transmit the corresponding data to a data processing circuit. The data processing circuit acquires the key data and the trajectory data, and the data processing circuit performs related operations based on the key data and the trajectory data, such as processing the key data and the trajectory data, so that the processed data can continue to be transmitted.

[0053] S120, processing the key data and the trajectory data by the data processing circuit to obtain data to be processed.

[0054] In this embodiment, the data to be processed can be understood as the data after the key data and the trajectory data are processed by the data processing circuit.

[0055] The key data collected by the key collection circuit and the trajectory data collected by the trajectory collection circuit can be calculated by the data processing circuit to obtain the data to be processed, and the subsequent data transmission can be completed based on the data to be processed.

[0056] S130: Detect the data to be processed by a monitoring circuit to determine an abnormal processing state of the data to be processed.

[0057] In this embodiment, the monitoring circuit can be understood as a circuit for detecting or monitoring data to perform fault detection. The monitoring circuit can detect the data to be processed, and can also detect the trajectory data and the key data, and can be applied to the mouse. The processing abnormal state can indicate whether the data to be processed is abnormal, that is, the processing abnormal state can include normal or abnormal.

[0058] The monitoring circuit detects or monitors the data to be processed output by the data processing circuit, and can determine the abnormal processing state of the data to be processed by comparing the result of the data. The result of the comparison data can be, for example, the result obtained by comparing the data calculated by the monitoring circuit with the data to be processed output by the data processing circuit.

[0059] In this operation, the data to be processed can be detected by the monitoring circuit to determine whether the data processing circuit has a fault based on the abnormal processing state of the data to be processed. If there is a fault, the transmission of the data to be processed can be cut off through relevant operations, which can ensure that no information or data is sent out after the circuit fails, avoiding terminal error response. Among them, the relevant operation can be designed to design a switch circuit. Once the monitoring circuit determines that the data processing circuit has a fault, it controls the switch state of the switch circuit to the open state; the terminal can be understood as an input and output device connected to the computer system, such as a computer; wherein the switch circuit can be used to transmit the data to be processed when the mouse circuit corresponding to the mouse is turned on.

[0060] S140. Control the transmission status of the data to be processed according to the abnormal processing status through the monitoring circuit.

[0061] In this embodiment, the transmission status can be understood as the transmission status of the data to be processed. The transmission status can be, for example, normal or abnormal. If the transmission status is normal, it indicates that the data to be processed can continue to be transmitted; if the transmission status is abnormal, it indicates that the data to be processed cannot continue to be transmitted, thus avoiding the problem of transmitting abnormal information to the terminal and causing the terminal to respond incorrectly, thereby improving the security and reliability of data transmission.

[0062] Exemplarily, after the data processing circuit in the mouse obtains the trajectory data and the button data, it processes the trajectory data and the button data to obtain the data to be processed. At this time, the monitoring circuit in the mouse detects or monitors the data to be processed in real time, and then determines the abnormal processing state of the data to be processed. Then, the monitoring circuit controls the transmission state of the data to be processed according to the abnormal processing state of the data to be processed. If the transmission state is normal, the data to be processed continues to be transmitted. If the transmission state is abnormal, the transmission of the data to be processed is suspended. This avoids the problem of terminal error response caused by continued data transmission after the failure of mouse components, ensures and improves the security and reliability of data transmission, and enables data transmission to be completed in high-security scenarios.

[0063] It should be noted that the scenarios to which this embodiment is applicable can be applicable to high-security scenarios, which can be understood as scenarios with low or extremely low fault tolerance for data transmission. High-security scenarios can be railway signal scenarios and scenarios with large mechanical equipment.

[0064] A data transmission method provided in a first embodiment of the present invention includes: acquiring key data and trajectory data through a data processing circuit; processing the key data and trajectory data through the data processing circuit to obtain data to be processed; detecting the data to be processed through a monitoring circuit to determine the abnormal processing state of the data to be processed; and controlling the transmission state of the data to be processed according to the abnormal processing state through the monitoring circuit. The above technical scheme processes the acquired key data and trajectory data through a data processing circuit to obtain data to be processed, and then detects the data to be processed through a monitoring circuit to determine the abnormal processing state of the data to be processed, and controls the transmission state of the data to be processed according to the abnormal processing state, thereby avoiding the problem of erroneous response caused by continuing to transmit data after a fault exists, and improving the reliability and security of data transmission.

[0065] Embodiment 2

[0066] Figure 2 This is a flowchart of another data transmission method provided in Embodiment 2 of the present invention. This embodiment is a refinement of the above embodiment, and specifically describes the detection of the data to be processed by the monitoring circuit to determine the abnormal processing state of the data to be processed. It should be noted that the technical details not described in detail in this embodiment can be referred to any of the above embodiments.

[0067] Specifically, Figure 2 As shown, the method specifically comprises the following steps:

[0068] S210, acquiring key data and trajectory data through a data processing circuit.

[0069] S220 , processing the key data and the trajectory data by the data processing circuit to obtain data to be processed.

[0070] S230 , processing the key data and the trajectory data through the monitoring circuit to obtain data to be compared.

[0071] In this embodiment, the data to be compared can be understood as data obtained after the monitoring circuit processes the key data and the trajectory data.

[0072] The monitoring circuit can also obtain key data and trajectory data, and then process the key data and trajectory data to obtain data to be compared.

[0073] Exemplarily, the monitoring circuit and the data processing circuit simultaneously receive the key data collected by the key acquisition circuit and the trajectory data collected by the trajectory acquisition circuit, and the monitoring circuit and the data processing circuit process the key data and the trajectory data in the same way, the monitoring circuit processes the key data and the trajectory data to obtain the data to be compared, and the data processing circuit processes the key data and the trajectory data to obtain the data to be processed. Since the monitoring circuit and the data processing circuit use the same data and the same method to process data, it is possible to determine whether the data processing circuit has a fault by comparing the data to be compared with the data to be processed.

[0074] S240. Compare the data to be processed with the data to be compared by the monitoring circuit to obtain a comparison result, wherein the comparison result includes: the data to be processed is consistent with the data to be compared and the data to be processed is inconsistent with the data to be compared.

[0075] In this embodiment, the comparison result can be understood as the result obtained after comparing the data to be processed with the data to be compared, and may include: the data to be processed is consistent with the data to be compared and the data to be processed is inconsistent with the data to be compared.

[0076] S250: Determine a processing abnormality state of the data to be processed according to the comparison result.

[0077] Exemplarily, if the comparison result is that the data to be processed is consistent with the data to be compared, it can be explained that the data to be processed calculated by the data processing circuit and the data to be compared calculated by the monitoring circuit are consistent, that is, there is no fault in the data processing circuit, and it can be determined that the abnormal processing state of the data to be processed is normal; if the comparison result is that the data to be processed is inconsistent with the data to be compared, it can be explained that there is a fault in the data processing circuit that causes data processing errors, and it can be determined that the abnormal processing state of the data to be processed is abnormal.

[0078] S260: Control the transmission status of the data to be processed according to the abnormal processing status through the monitoring circuit.

[0079] Another data transmission method provided by the second embodiment of the present invention includes: obtaining key data and trajectory data through a data processing circuit; processing the key data and trajectory data through the data processing circuit to obtain data to be processed; processing the key data and trajectory data through the monitoring circuit to obtain data to be compared; comparing the data to be processed with the data to be compared through the monitoring circuit to obtain a comparison result; determining the processing abnormal state of the data to be processed according to the comparison result; and controlling the transmission state of the data to be processed according to the processing abnormal state through the monitoring circuit. In the above technical scheme, it is refined on the basis of the above embodiment, processing the key data and trajectory data through the monitoring circuit to obtain data to be compared; comparing the data to be processed with the data to be compared through the monitoring circuit to obtain a comparison result; determining the processing abnormal state of the data to be processed according to the comparison result, and controlling the transmission state of the data to be processed according to the processing abnormal state, thereby avoiding the problem of error response caused by continuing to transmit data after a fault exists, and improving the security and reliability of data transmission.

[0080] Optionally, determining the abnormal processing state of the data to be processed according to the comparison result includes:

[0081] If the comparison result is that the data to be processed is consistent with the data to be compared, determining that the abnormal processing state of the data to be processed is normal;

[0082] If the comparison result is that the data to be processed is inconsistent with the data to be compared, it is determined that the processing abnormality state of the data to be processed is abnormal.

[0083] Among them, if the comparison result is that the data to be processed is consistent with the data to be compared, it can be explained that there is no fault in the data processing circuit, and the processing abnormal state of the data to be processed can be determined to be normal; if the comparison result is that the data to be processed is inconsistent with the data to be compared, it can be explained that there is a fault in the data processing circuit that causes data processing errors, so that the comparison result is that the data to be processed is inconsistent with the data to be compared, and the processing abnormal state of the data to be processed can be determined to be abnormal.

[0084] Optionally, controlling the transmission state of the data to be processed according to the processing abnormal state includes:

[0085] Controlling the switch state of the switch circuit according to the abnormal processing state through the monitoring circuit;

[0086] The transmission state of the data to be processed is controlled according to the switch state.

[0087] In one embodiment, the switch circuit can be understood as a circuit that controls the on and off of the mouse circuit corresponding to the mouse. The switch state of the switch circuit can include an on state and a off state. If the switch state is on, the mouse circuit is open and data cannot be transmitted. If the switch state is off, the mouse circuit is open and data can be transmitted.

[0088] Among them, if the processing abnormal state is normal, the monitoring circuit controls the switch state of the switch circuit to be closed, that is, the transmission state of the data to be processed is normal, that is, the data to be processed can be transmitted normally; if the processing abnormal state is abnormal, the monitoring circuit controls the switch state of the switch circuit to be opened, that is, the transmission state of the data to be processed is abnormal, that is, the data to be processed cannot continue to be transmitted, which ensures that no abnormal information is sent to the terminal after the mouse circuit fails, thereby improving the security and reliability of data transmission.

[0089] Optionally, controlling the switch state of the switch circuit according to the abnormal state of the processing by the monitoring circuit includes:

[0090] When the abnormal processing state indicates that the data to be processed is abnormal, the monitoring circuit controls the switch state of the switch circuit to be turned on.

[0091] If the abnormal processing state is abnormal, it may indicate that the data to be processed is abnormal, and then the switch state of the switch circuit is controlled to be an open state through the monitoring circuit.

[0092] Optionally, the method further includes:

[0093] Performing protocol conversion on the data to be processed by a protocol conversion circuit to obtain converted data, wherein the transmission distance of the converted data is greater than the transmission distance of the data to be processed and the bit error rate of the converted data is less than the bit error rate of the data to be processed;

[0094] The converted data is transmitted through the protocol conversion circuit.

[0095] In one embodiment, the protocol conversion circuit can be understood as a circuit for performing protocol conversion on the data to be processed to increase the transmission distance of the data to be processed. The converted data can be understood as data obtained after the protocol conversion circuit performs protocol conversion. The bit error rate can also be called the symbol error rate, which can be understood as the proportion of the number of erroneously received symbols in the total number of symbols transmitted within a certain period of time, and can also be understood as an indicator for measuring the accuracy of data transmission within a specified time. The bit error rate can be an important indicator for measuring the reliability of data transmission, which can be used to indicate the probability of data error during transmission. The smaller the bit error rate, the higher the accuracy of data transmission.

[0096] Exemplarily, the protocol conversion circuit may include a first protocol conversion circuit and a second protocol conversion circuit. The first protocol conversion circuit may be used to perform industrial field protocol conversion on the data to be processed to obtain first converted data. The second protocol conversion circuit may be located after the first protocol conversion circuit, that is, the second protocol conversion circuit may be used to perform standard protocol conversion on the first converted data to obtain converted data. Among them, industrial field protocol conversion can be understood as the operation of converting the data to be processed into the industrial field bus protocol; standard protocol conversion can be understood as the operation of converting the data to be processed after the industrial field protocol conversion into the extremely simplified communication protocol adopted by the mouse in the prior art.

[0097] Exemplarily, the first protocol conversion circuit in the protocol conversion circuit can perform industrial field protocol conversion on the data to be processed to obtain first converted data. This operation can improve the bit error rate of the data to be processed, improve the anti-interference ability, avoid erroneous reception, and also increase the communication distance of the data to be processed. Then, the second protocol conversion circuit in the protocol conversion circuit performs standard protocol conversion on the first converted data to obtain converted data. This operation takes into account the compatibility of the terminal interface and sets two protocol conversion devices to avoid modification of the terminal, that is, avoid sacrificing compatibility.

[0098] That is, the purpose of protocol conversion is twofold: one is to enhance the error detection capability of the protocol, because the extremely simplified communication protocol used by the mouse in the prior art has poor error detection capability and is difficult to detect when data transmission errors occur; the other is to enhance the transmission capability of the physical layer to increase the transmission distance and anti-interference capability and reduce the bit error rate. In order to consider the compatibility of the computer-side interface, two protocol conversion devices are set to avoid modification of the computer side.

[0099] It should be noted that the protocol conversion circuit may also only include the first protocol conversion circuit, that is, after the data to be processed undergoes protocol conversion, the converted data is directly obtained.

[0100] Optionally, the method further includes:

[0101] Detecting the key data through a monitoring circuit to determine the abnormal state of the key of the key acquisition circuit in the mouse;

[0102] The transmission status of the data to be processed is determined according to the abnormal key status.

[0103] In one embodiment, the key abnormal state can be understood as the state of the key logic of the key acquisition circuit and / or the key data collected by the key acquisition circuit. The key abnormal state can, for example, include normal or abnormal. If the key abnormal state is normal, it can indicate that the key acquisition circuit and the key logic of the key data collected by the key acquisition circuit are normal, and then the monitoring circuit can determine that the transmission state of the data to be processed is normal; if the key abnormal state is abnormal, it can indicate that the key acquisition circuit and / or the key logic of the key data collected by the key acquisition circuit are abnormal, and then the monitoring circuit can determine that the transmission state of the data to be processed is abnormal.

[0104] It should be noted that the key data can be detected by the monitoring circuit. If the key data meets the first setting condition, the key abnormal state of the key acquisition circuit in the mouse can be determined to be normal; if the key data does not meet the first setting condition, the key abnormal state of the key acquisition circuit in the mouse can be determined to be abnormal, wherein the first setting condition can be understood as the frequency of the mouse pressing does not exceed the continuous pressing threshold within the first setting time, for example, the frequency of the mouse pressing does not exceed 5 times within one second. Among them, the first setting condition can be pre-set according to the actual situation; the first setting time can be pre-set according to the actual situation; the continuous pressing threshold can be pre-set according to the actual situation.

[0105] Optionally, determining the transmission status of the to-be-processed data according to the abnormal key status includes:

[0106] When the key abnormal state is abnormal, it is determined that the transmission state of the to-be-processed data is abnormal.

[0107] Wherein, when the key abnormal state is abnormal, the switch state of the switch circuit can be controlled to be an on state through the monitoring circuit, and then the transmission state of the data to be processed can be determined to be abnormal.

[0108] Exemplarily, if the abnormal state of the key is abnormal, that is, the key acquisition circuit and the key logic of the key data collected by the key acquisition circuit are abnormal, the monitoring circuit can determine that the switch state of the switch circuit is on, that is, the switch circuit is disconnected. At this time, the data to be processed cannot continue to be transmitted, that is, the transmission state of the data to be processed is abnormal.

[0109] Optionally, the method further includes:

[0110] Detecting the trajectory data through a monitoring circuit to determine an abnormal trajectory state of a trajectory acquisition circuit in the mouse;

[0111] The transmission status of the data to be processed is determined according to the abnormal trajectory status.

[0112] In one embodiment, the trajectory abnormal state can be understood as the state of the trajectory acquisition circuit and / or the trajectory data collected by the trajectory acquisition circuit. The trajectory abnormal state can, for example, include normal or abnormal. If the trajectory abnormal state is normal, it can indicate that the trajectory motion logic of the trajectory acquisition circuit and the trajectory data collected by the trajectory acquisition circuit is normal, and then the monitoring circuit can determine that the transmission state of the data to be processed is normal; if the trajectory abnormal state is abnormal, it can indicate that the trajectory operation logic of the trajectory acquisition circuit and / or the trajectory data collected by the trajectory acquisition circuit is abnormal, and then the monitoring circuit can determine that the transmission state of the data to be processed is abnormal.

[0113] It should be noted that the trajectory data can be detected by the monitoring circuit. If the trajectory data meets the second setting condition, the abnormal trajectory state of the trajectory acquisition circuit in the mouse can be determined to be normal; if the trajectory data does not meet the second setting condition, the abnormal trajectory state of the trajectory acquisition circuit in the mouse can be determined to be abnormal, wherein the second setting condition can be understood as the frequency of the non-continuous movement of the mouse does not exceed the continuous movement threshold within the second setting time, for example, the frequency of the non-continuous movement of the mouse does not exceed 5 times within one second. Among them, the second setting condition can be pre-set according to the actual situation; the second setting time can be pre-set according to the actual situation; the continuous movement threshold can be pre-set according to the actual situation.

[0114] Among them, when the trajectory abnormality state is abnormal, the switch state of the switch circuit can be controlled to be an open state through the monitoring circuit, and then the transmission state of the data to be processed can be determined to be abnormal.

[0115] For example, Figure 3 Schematic diagram of a mouse provided in Embodiment 2 of the present invention. Figure 3 As shown, the mouse includes a key acquisition circuit, a trajectory acquisition circuit, a data processing circuit, a monitoring circuit, a switch circuit (such as K), a first protocol conversion circuit, a second protocol conversion circuit and a computer interface. The data processing circuit is respectively connected to the key acquisition circuit, the trajectory acquisition circuit, the switch circuit and the monitoring circuit, the monitoring circuit is respectively connected to the key acquisition circuit, the trajectory acquisition circuit and the switch circuit, the switch circuit is connected to the first protocol conversion circuit, and the second protocol conversion circuit is connected to the computer interface;

[0116] The key data is collected by the key acquisition circuit, and the trajectory data is collected by the trajectory acquisition circuit; the key acquisition circuit and the trajectory acquisition circuit then transmit the corresponding data to the data processing circuit, the data processing circuit acquires the key data and the trajectory data, and the key data and the trajectory data are processed by the data processing circuit to obtain the data to be processed; the monitoring circuit and the data processing circuit simultaneously receive the key data collected by the key acquisition circuit and the trajectory data collected by the trajectory acquisition circuit, and the monitoring circuit and the data processing circuit process the key data and the trajectory data in the same way, the monitoring circuit processes the key data and the trajectory data to obtain the data to be compared, and the data to be processed is compared with the data to be compared by the monitoring circuit to obtain a comparison result.

[0117] If the comparison result is that the data to be processed is consistent with the data to be compared, it is determined that the processing abnormal state of the data to be processed is normal, the monitoring circuit controls the switch state of the switch circuit to be closed, and the processing abnormal state of the data to be processed is determined to be normal, and the data to be processed is transmitted to the first protocol conversion circuit, and the industrial field protocol conversion is performed on the data to be processed by the first protocol conversion circuit in the protocol conversion circuit to obtain the first converted data, and then the standard protocol conversion is performed on the first converted data by the second protocol conversion circuit in the protocol conversion circuit to obtain the converted data, and the converted data can be transmitted to the computer through the computer interface; if the comparison result is that the data to be processed is inconsistent with the data to be compared, it is determined that the processing abnormal state of the data to be processed is abnormal, the monitoring circuit controls the switch state of the switch circuit to be open, and the processing abnormal state of the data to be processed is abnormal, and the data to be processed is no longer transmitted.

[0118] In addition, the key data is detected by the monitoring circuit. If the key data meets the first setting condition, it can be determined that the key abnormal state of the key acquisition circuit in the mouse is normal, and the data to be processed can be normally transmitted to the first protocol conversion circuit, and then the subsequent operation is performed to complete the data transmission; if the key data does not meet the first setting condition, it can be determined that the key abnormal state of the key acquisition circuit in the mouse is abnormal, and then the data to be processed is no longer transmitted. In other words, the monitoring circuit can impose certain constraints and restrictions on the key pressing logic. When the key logic is found to be abnormal and continues, it can be judged that the key is faulty, and the switch is also cut off at this time; the trajectory data is detected by the monitoring circuit. If the trajectory data meets the second setting condition, it can be determined that the trajectory abnormal state of the trajectory acquisition circuit in the mouse is normal, and then the data to be processed can be normally transmitted to the first protocol conversion circuit, and then the subsequent operation is performed to complete the data transmission; if the trajectory data does not meet the second setting condition, it can be determined that the trajectory abnormal state of the trajectory acquisition circuit in the mouse is abnormal, and then the data to be processed is no longer transmitted. In other words, the monitoring circuit can also constrain the trajectory movement logic, and when the trajectory is abnormal, the switch is also cut off.

[0119] It should be noted that, compared with an ordinary mouse, the mouse used in the embodiment of the present invention does not change the interface method with the host; compared with an ordinary mouse, the mouse used in the embodiment of the present invention greatly improves safety and avoids erroneous operations; compared with an ordinary mouse, the mouse used in the embodiment of the present invention increases the transmission distance and improves transmission reliability.

[0120] Embodiment 3

[0121] Figure 4 A schematic diagram of the structure of a mouse provided in Embodiment 3 of the present invention, wherein: Figure 4 As shown, the mouse includes: a data processing circuit 30 and a monitoring circuit 31; the data processing circuit 30 is connected to the monitoring circuit 31; the data processing circuit 30 is used to obtain key data and trajectory data, and process the key data and the trajectory data to obtain data to be processed; the monitoring circuit 31 is used to detect the data to be processed, determine the abnormal processing state of the data to be processed, and control the transmission state of the data to be processed according to the abnormal state.

[0122] Specifically, the key data and the trajectory data are acquired through the data processing circuit 30; the key data and the trajectory data are processed by the data processing circuit 30 to obtain the data to be processed; the data to be processed is detected by the monitoring circuit 31 to determine the abnormal processing state of the data to be processed; the transmission state of the data to be processed is controlled by the monitoring circuit 31 according to the abnormal processing state.

[0123] Optionally, the detecting the data to be processed to determine the abnormal processing state of the data to be processed includes:

[0124] The key data and the trajectory data are processed by the monitoring circuit 31 to obtain data to be compared;

[0125] The monitoring circuit 31 compares the data to be processed with the data to be compared to obtain a comparison result, wherein the comparison result includes: the data to be processed is consistent with the data to be compared and the data to be processed is inconsistent with the data to be compared;

[0126] According to the comparison result, a processing abnormality state of the data to be processed is determined.

[0127] Optionally, determining the abnormal processing state of the data to be processed according to the comparison result includes:

[0128] If the comparison result is that the data to be processed is consistent with the data to be compared, determining that the abnormal processing state of the data to be processed is normal;

[0129] If the comparison result is that the data to be processed is inconsistent with the data to be compared, it is determined that the processing abnormality state of the data to be processed is abnormal.

[0130] Optionally, controlling the transmission state of the data to be processed according to the processing abnormal state includes:

[0131] Controlling the switch state of the switch circuit according to the abnormal processing state through the monitoring circuit 31;

[0132] The transmission state of the data to be processed is controlled according to the switch state.

[0133] Optionally, controlling the switch state of the switch circuit according to the abnormal state of the processing by the monitoring circuit 31 includes:

[0134] When the abnormal processing state indicates that the data to be processed is abnormal, the monitoring circuit 31 controls the switch state of the switch circuit to be turned on.

[0135] Optionally, the mouse further includes:

[0136] Performing protocol conversion on the data to be processed by a protocol conversion circuit to obtain converted data, wherein the transmission distance of the converted data is greater than the transmission distance of the data to be processed and the bit error rate of the converted data is less than the bit error rate of the data to be processed;

[0137] The converted data is transmitted through the protocol conversion circuit.

[0138] Optionally, the mouse further includes:

[0139] The key data is detected by the monitoring circuit 31 to determine the abnormal state of the key of the key acquisition circuit in the mouse;

[0140] The transmission status of the data to be processed is determined according to the abnormal key status.

[0141] Optionally, determining the transmission status of the to-be-processed data according to the abnormal key status includes:

[0142] When the key abnormal state is abnormal, it is determined that the transmission state of the to-be-processed data is abnormal.

[0143] Optionally, the mouse further includes:

[0144] The trajectory data is detected by the monitoring circuit 31 to determine the abnormal state of the trajectory of the trajectory acquisition circuit in the mouse;

[0145] The transmission status of the data to be processed is determined according to the abnormal trajectory status.

[0146] The mouse provided in the third embodiment of the present invention can be used to execute the data transmission method provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0148] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data transmission method, characterized in that: Applied to a mouse, the method comprises: Acquire key data and trajectory data through a data processing circuit; Processing the key data and the trajectory data by the data processing circuit to obtain data to be processed; Detecting the data to be processed by a monitoring circuit to determine an abnormal processing state of the data to be processed; The monitoring circuit controls the transmission status of the data to be processed according to the abnormal processing status.

2. The method according to claim 1, characterized in that The detecting the data to be processed to determine the abnormal processing state of the data to be processed includes: The key data and the trajectory data are processed by the monitoring circuit to obtain data to be compared; The monitoring circuit compares the data to be processed with the data to be compared to obtain a comparison result, wherein the comparison result includes: the data to be processed is consistent with the data to be compared and the data to be processed is inconsistent with the data to be compared; According to the comparison result, a processing abnormality state of the data to be processed is determined.

3. The method according to claim 2, characterized in that Determining the abnormal processing state of the data to be processed according to the comparison result includes: If the comparison result is that the data to be processed is consistent with the data to be compared, determining that the abnormal processing state of the data to be processed is normal; If the comparison result is that the data to be processed is inconsistent with the data to be compared, it is determined that the processing abnormality state of the data to be processed is abnormal.

4. The method according to claim 1, characterized in that The controlling the transmission state of the data to be processed according to the processing abnormal state includes: Controlling the switch state of the switch circuit according to the abnormal processing state through the monitoring circuit; The transmission state of the data to be processed is controlled according to the switch state.

5. The method according to claim 4, characterized in that The controlling the switch state of the switch circuit according to the abnormal state of the processing by the monitoring circuit includes: When the abnormal processing state indicates that the data to be processed is abnormal, the monitoring circuit controls the switch state of the switch circuit to be turned on.

6. The method according to claim 1, characterized in that Also includes: Performing protocol conversion on the data to be processed by a protocol conversion circuit to obtain converted data, wherein the transmission distance of the converted data is greater than the transmission distance of the data to be processed and the bit error rate of the converted data is less than the bit error rate of the data to be processed; The converted data is transmitted through the protocol conversion circuit.

7. The method according to claim 1, characterized in that Also includes: Detecting the key data through a monitoring circuit to determine the abnormal state of the key of the key acquisition circuit in the mouse; The transmission status of the data to be processed is determined according to the abnormal key status.

8. The method according to claim 7, characterized in that The step of determining the transmission status of the to-be-processed data according to the abnormal key status includes: When the key abnormal state is abnormal, it is determined that the transmission state of the to-be-processed data is abnormal.

9. The method according to claim 1, characterized in that: Also includes: Detecting the trajectory data through a monitoring circuit to determine an abnormal trajectory state of a trajectory acquisition circuit in the mouse; The transmission status of the data to be processed is determined according to the abnormal trajectory status.

10. A mouse, characterized in that: include: A data processing circuit and a monitoring circuit; the data processing circuit is connected to the monitoring circuit; The data processing circuit is used to obtain key data and trajectory data, and process the key data and trajectory data to obtain data to be processed; The monitoring circuit is used to detect the data to be processed, determine the abnormal processing state of the data to be processed, and control the transmission state of the data to be processed according to the abnormal state.