A protection method and system for communication interface of electronic products

By dividing sub-communication paths in electronic product communication interfaces and analyzing current and temperature parameters, identifying abnormal areas and events, and determining protection logic, the problem of failure to fully consider the influence of temperature in the existing technology has been solved, and multiple communication interfaces have been implemented. Dimensional protection.

CN118970556BActive Publication Date: 2025-01-24ZHUHAI XPRINTER ELECTRONICS TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411421860.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-01-24
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

The prior art fails to fully consider the temperature level when dealing with electronic product communication interfaces, resulting in the inability to effectively ensure the protection effect of the communication interface.

Method used

By locating and collecting communication data from the communication interface, sub-communication paths are divided, and the current parameters and temperature parameters of each receiving node are marked. Based on these parameters, the current abnormal area and temperature abnormal part are determined, abnormal events are matched, and the protection logic is determined according to the abnormal type and protection logic table, and the protection of the communication interface is triggered.

Benefits of technology

A multi -dimensional protection of communication interfaces, compatible current and abnormal temperature abnormalities are achieved, ensuring the protection effect of the communication interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118970556B_ABST
    Figure CN118970556B_ABST
Patent Text Reader

Abstract

The present invention discloses a protection method, system and circuit for the communication interface of an electronic product. The protection method and system for the communication interface of an electronic product are used to determine the current abnormal area according to the current parameters of each receiving node of the sub-communication path and the definition of the sub-communication path; multiple first abnormal factors are determined based on the definition of the current abnormal area, and the first abnormal event is determined according to the definition of the multiple first abnormal factors, so as to control the abnormality at the current level. In the sub-communication path, the corresponding second abnormal event is matched based on the temperature abnormal part, so as to control the abnormality at the temperature level, the corresponding abnormal type is matched according to the second abnormal event and the first abnormal event, the corresponding protection logic is determined according to the abnormal type and the protection logic table definition, and the protection of the communication interface is triggered based on the protection logic, which is compatible with the consideration of current abnormality and temperature abnormality, so as to control the abnormality of the communication interface in multiple dimensions, and realize the precise protection of the communication interface under the protection logic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication interfaces of electronic products, and in particular to a protection method and system for the communication interfaces of electronic products. Background Art

[0002] With the development of science and technology, electronic products are used in life and communicate with external servers. At this time, the electronic products are provided with a communication interface, which is used to connect to the communication object and receive the corresponding communication data. In the prior art, the communication interface needs to be used for a long time and is prone to current abnormalities during use. However, only a single control is performed on the current abnormality, and the impact of the temperature level is not fully considered, and the protection effect of the communication interface cannot be guaranteed. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a protection method and system for the communication interface of an electronic product, which locates the communication interface of the electronic product and collects the communication data received by the communication path of the communication interface; determines multiple sub-communication paths based on the division of the communication path, and marks the communication data received by each sub-communication path; locates each receiving node in the sub-communication path, and marks the current parameters of each receiving node; determines a current abnormal area according to the current parameters of each receiving node and the sub-communication path; determines multiple first abnormal factors based on the current abnormal area, and determines a first abnormal event according to the multiple first abnormal factors, so as to control the abnormalities at the current level, thereby performing current control on each sub-communication path.

[0004] In the sub-communication path, multiple temperature parameters are determined based on the detection of the communication interface, and the corresponding temperature abnormal part is determined based on the multiple temperature parameters, and the corresponding second abnormal event is matched based on the temperature abnormal part, so as to control the abnormality at the temperature level. At the same time, the second abnormal event and the first abnormal event are associated, and the corresponding abnormal type is matched according to the second abnormal event and the first abnormal event. The corresponding protection logic is determined according to the abnormal type and the protection logic table, and the protection of the communication interface is triggered based on the protection logic. At the same time, real-time protection is performed on the communication interface, which is compatible with the consideration of current abnormality and temperature abnormality, so as to control the abnormality of the communication interface in multiple dimensions, realize the precise protection of the communication interface under the protection logic, and continuously ensure the protection effect of the communication interface.

[0005] An embodiment of the present invention provides a method for protecting a communication interface of an electronic product, which is applied to a protection scenario of a communication interface of an electronic product;

[0006] The protection method of the communication interface of the electronic product comprises:

[0007] Locating the communication interface of the electronic product and collecting the communication data received by the communication path of the communication interface;

[0008] Determine a plurality of sub-communication paths based on the division of the communication path, and mark the communication data received by each sub-communication path;

[0009] Locate each receiving node in the sub-communication path and mark the current parameters of each receiving node; determine the current abnormal area according to the current parameters of each receiving node and the sub-communication path; determine multiple first abnormal factors based on the current abnormal area, and determine the first abnormal event according to the multiple first abnormal factors;

[0010] In the sub-communication path, a plurality of temperature parameters are determined based on the detection of the communication interface, a corresponding temperature abnormality portion is determined according to the plurality of temperature parameters, and a corresponding second abnormal event is matched based on the temperature abnormality portion;

[0011] Associate the second abnormal event with the first abnormal event, match the corresponding abnormal type according to the second abnormal event and the first abnormal event, determine the corresponding protection logic according to the abnormal type and the protection logic table, and trigger the protection of the communication interface based on the protection logic. At the same time, perform real-time protection on the communication interface.

[0012] Optionally, locating a communication interface of the electronic product and collecting communication data received by a communication path of the communication interface includes:

[0013] Collecting working data of the electronic product, and determining the working status of the electronic product according to the working data of the electronic product;

[0014] In the working state of the electronic product, traverse the working process of the electronic product, and determine the corresponding communication part according to the working process of the electronic product;

[0015] Based on the communication part, the communication interface of the electronic product is located;

[0016] Freeze the communication interface and trigger communication detection based on the communication interface;

[0017] In the communication detection of the communication interface, the communication data received by the communication path of the communication interface is collected. Optionally, the determining of multiple sub-communication paths based on the division of the communication path and marking the communication data received by each sub-communication path includes:

[0018] Fixed frame communication path;

[0019] traversing the communication path, and determining a plurality of branch points in the traversal of the communication path;

[0020] Determine a partitioning mode based on multiple branch points and corresponding communication objects;

[0021] Associate partitioning patterns and communication paths;

[0022] determining a plurality of sub-communication paths based on the communication path and the division pattern;

[0023] freeze a plurality of sub-communication paths, and match corresponding receiving channels based on the plurality of sub-communication paths;

[0024] Presenting the communication data received by the corresponding sub-communication path along each receiving channel;

[0025] The communication data is marked.

[0026] Optionally, the locating each receiving node in the sub-communication path and marking the current parameter of each receiving node includes:

[0027] Fixed grid communication path;

[0028] Locating each receiving node based on the traversal of the sub-communication path;

[0029] Associating multiple receiving nodes and building corresponding receiving paths based on the multiple receiving nodes;

[0030] Performing synchronous detection on multiple receiving paths and performing current detection on each receiving node. In the current detection of each receiving node, current parameters of each receiving node are collected;

[0031] Mark the current parameters of each receiving node.

[0032] Optionally, determining a current abnormal area according to current parameters of each receiving node and a sub-communication path; determining a plurality of first abnormal factors based on the current abnormal area, and determining a first abnormal event according to the plurality of first abnormal factors, includes:

[0033] Freeze the current parameters of each receiving node;

[0034] Associating the current parameters of each receiving node and the corresponding sub-communication path;

[0035] Determine a current distribution diagram based on current parameters of each receiving node and the corresponding sub-communication path, and determine a current abnormal area based on the identification of the current distribution diagram;

[0036] The abnormal current area is fixed;

[0037] determining a plurality of first abnormal factors based on the identification of the current abnormal region;

[0038] A first abnormal event is determined according to a plurality of first abnormal factors and corresponding sub-communication paths.

[0039] Optionally, in the sub-communication path, determining a plurality of temperature parameters based on detection of the communication interface, determining a corresponding temperature abnormality portion according to the plurality of temperature parameters, and matching a corresponding second abnormal event based on the temperature abnormality portion includes:

[0040] In the sub-communication path, the communication interface is fixed;

[0041] Determine multiple temperature parameters based on the detection of the communication interface, where the multiple temperature parameters are distributed at different positions of the communication interface;

[0042] The location where multiple temperature parameters are collected;

[0043] The corresponding temperature variation is determined based on two adjacent temperature parameters.

[0044] Optionally, in the sub-communication path, a plurality of temperature parameters are determined based on the detection of the communication interface, and a corresponding temperature abnormality portion is determined according to the plurality of temperature parameters, and a corresponding second abnormal event is matched based on the temperature abnormality portion, further comprising:

[0045] Collecting multiple temperature changes, and determining the temperature anomaly location according to the multiple temperature changes and the locations of the multiple temperature parameters;

[0046] Determine the corresponding temperature abnormal part based on the positioning detection of the temperature abnormal position;

[0047] Collect multiple temperature abnormal parts and associate the models of multiple temperature abnormal parts and communication interfaces;

[0048] According to the model matching of the multiple temperature abnormal parts and the communication interface, the corresponding second abnormal event is selected. Optionally, the second abnormal event is associated with the first abnormal event, and the corresponding abnormal type is matched according to the second abnormal event and the first abnormal event, and the corresponding protection logic is determined according to the abnormal type and the protection logic table, and the protection of the communication interface is triggered based on the protection logic. At the same time, real-time protection is performed on the communication interface, including:

[0049] Freeze the second abnormal event and the first abnormal event;

[0050] Associating the second abnormal event with the first abnormal event;

[0051] Matching a corresponding abnormal type according to the second abnormal event and the first abnormal event;

[0052] Determine the corresponding protection logic according to the exception type and the protection logic table.

[0053] Optionally, associating the second abnormal event with the first abnormal event, matching the corresponding abnormal type according to the second abnormal event and the first abnormal event, determining the corresponding protection logic according to the abnormal type and the protection logic table, and triggering the protection of the communication interface based on the protection logic, and performing real-time protection for the communication interface, also includes:

[0054] Perform abnormal matching on the second abnormal event and the first abnormal event, and determine the corresponding abnormal coefficient; associate the abnormal coefficient with the protection logic, and determine the protection level of the protection logic according to the abnormal coefficient and the model of the communication interface;

[0055] The protection of the communication interface is triggered based on the protection logic, and at the same time, real-time protection is performed on the communication interface. In addition, an embodiment of the present invention also provides a protection system for the communication interface of an electronic product, and the protection system for the communication interface of the electronic product includes:

[0056] A collection module, used to locate the communication interface of the electronic product and collect communication data received by the communication path of the communication interface;

[0057] A division module, used for determining a plurality of sub-communication paths based on the division of the communication path, and marking the communication data received by each sub-communication path;

[0058] A current parameter module is used to locate each receiving node in the sub-communication path and mark the current parameter of each receiving node;

[0059] A first abnormal module, used to determine a current abnormal area according to current parameters of each receiving node and a sub-communication path; determine a plurality of first abnormal factors based on the current abnormal area, and determine a first abnormal event according to the plurality of first abnormal factors;

[0060] A second abnormality module is used to determine a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, determine a corresponding temperature abnormal part according to the plurality of temperature parameters, and match a corresponding second abnormal event based on the temperature abnormal part;

[0061] A protection module is used to associate the second abnormal event with the first abnormal event, match the corresponding abnormal type according to the second abnormal event and the first abnormal event, determine the corresponding protection logic according to the abnormal type and the protection logic table, and trigger the protection of the communication interface based on the protection logic. At the same time, real-time protection is performed on the communication interface.

[0062] In an embodiment of the present invention, through the method in the embodiment of the present invention, the communication interface of the electronic product is located, and the communication data received by the communication path of the communication interface is collected; based on the division of the communication path, multiple sub-communication paths are determined, and the communication data received by each sub-communication path is marked; each receiving node in the sub-communication path is located, and the current parameter of each receiving node is marked; the current abnormal area is determined according to the current parameters of each receiving node and the sub-communication path; based on the current abnormal area, multiple first abnormal factors are determined, and the first abnormal event is determined according to the multiple first abnormal factors, so as to control the abnormalities at the current level, thereby performing current control on each sub-communication path.

[0063] In the sub-communication path, multiple temperature parameters are determined based on the detection of the communication interface, and the corresponding temperature abnormal part is determined based on the multiple temperature parameters, and the corresponding second abnormal event is matched based on the temperature abnormal part, so as to control the abnormality at the temperature level. At the same time, the second abnormal event and the first abnormal event are associated, and the corresponding abnormal type is matched according to the second abnormal event and the first abnormal event. The corresponding protection logic is determined according to the abnormal type and the protection logic table, and the protection of the communication interface is triggered based on the protection logic. At the same time, real-time protection is performed on the communication interface, which is compatible with the consideration of current abnormality and temperature abnormality, so as to control the abnormality of the communication interface in multiple dimensions, realize the precise protection of the communication interface under the protection logic, and continuously ensure the protection effect of the communication interface.

[0064] In addition, an embodiment of the present invention further provides a protection circuit for a communication interface of an electronic product, wherein the protection circuit for the communication interface of the electronic product includes: a control unit, wherein several first pins of the control unit are electrically connected to a communication IO port; a voltage regulator diode, wherein the cathode of the voltage regulator diode is electrically connected to several second pins of the control unit; a universal diode, wherein the anode of the universal diode is electrically connected to several second pins of the control unit; a resettable fuse, wherein the first end of the resettable fuse is electrically connected to several second pins of the control unit; a resistor, wherein the first end of the resistor is electrically connected to the second end of the resettable fuse; and an output port, wherein the output port is electrically connected to the second end of the resistor.

[0065] In the protection circuit embodiment of the present invention, during normal communication, the communication IO port sends a signal to the control unit, which is output to the output port after passing through the control unit, and then connected to the device port that needs to communicate through the connector. When the output port is mistakenly connected or accidentally connected to a voltage greater than 5V, it will first be limited by a resistor and a self-recovery fuse, and then stabilized by a voltage-stabilizing diode. At the same time, it will also be clamped by a universal diode, thereby limiting the voltage of the communication IO port to within the voltage resistance range of the control unit itself, thereby protecting the control unit from damage. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work. Figure 1 is a flow chart of a method for protecting a communication interface of an electronic product in an embodiment of the present invention; Figure 2 is a flow chart of S11 in the method for protecting the communication interface of an electronic product in an embodiment of the present invention;

[0067] Figure 3 is a flow chart of S12 in the method for protecting the communication interface of an electronic product in an embodiment of the present invention;

[0068] Figure 4 is a flow chart of S13 in the method for protecting the communication interface of an electronic product in an embodiment of the present invention;

[0069] Figure 5 is a flow chart of S14 in the method for protecting the communication interface of an electronic product in an embodiment of the present invention;

[0070] Figure 6 is a schematic diagram of the flow of S15 in the method for protecting the communication interface of an electronic product in an embodiment of the present invention;

[0071] Figure 7 is a schematic diagram of the flow of S16 in the method for protecting the communication interface of an electronic product in an embodiment of the present invention;

[0072] Figure 8 It is a schematic diagram of the structure of the protection system of the communication interface of the electronic product in the embodiment of the present invention;

[0073] Fig. 9 is a hardware diagram of an electronic device according to an exemplary embodiment;

[0074] Fig.10 It is a circuit diagram of a protection circuit of a communication interface of an electronic product in an embodiment of the present invention. DETAILED DESCRIPTION

[0075] 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 only 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.

[0076] See also Figures 1 to 9 , a protection method for a communication interface of an electronic product, applied to a protection scenario of a communication interface of an electronic product; the protection method for a communication interface of an electronic product comprises:

[0077] Step S11: locating the communication interface of the electronic product, and collecting communication data received by the communication path of the communication interface;

[0078] Step S12: determining a plurality of sub-communication paths based on the division of the communication path, and marking the communication data received by each sub-communication path;

[0079] Step S13: locating each receiving node in the sub-communication path and marking the current parameters of each receiving node;

[0080] Step S14: determining a current abnormal area according to the current parameters of each receiving node and the sub-communication path; determining a plurality of first abnormal factors based on the current abnormal area, and determining a first abnormal event according to the plurality of first abnormal factors;

[0081] Step S15: in the sub-communication path, determining a plurality of temperature parameters based on the detection of the communication interface, determining a corresponding temperature abnormality portion according to the plurality of temperature parameters, and matching a corresponding second abnormal event based on the temperature abnormality portion;

[0082] Step S16: Associate the second abnormal event and the first abnormal event, match the corresponding abnormal type according to the second abnormal event and the first abnormal event, determine the corresponding protection logic according to the abnormal type and the protection logic table, and trigger the protection of the communication interface based on the protection logic. At the same time, perform real-time protection on the communication interface.

[0083] In an embodiment of the present invention, through the method in the embodiment of the present invention, the communication interface of the electronic product is located, and the communication data received by the communication path of the communication interface is collected; based on the division of the communication path, multiple sub-communication paths are determined, and the communication data received by each sub-communication path is marked; each receiving node in the sub-communication path is located, and the current parameter of each receiving node is marked; the current abnormal area is determined according to the current parameters of each receiving node and the sub-communication path; based on the current abnormal area, multiple first abnormal factors are determined, and the first abnormal event is determined according to the multiple first abnormal factors, so as to control the abnormalities at the current level, thereby performing current control on each sub-communication path.

[0084] In the sub-communication path, multiple temperature parameters are determined based on the detection of the communication interface, and the corresponding temperature abnormal part is determined based on the multiple temperature parameters, and the corresponding second abnormal event is matched based on the temperature abnormal part, so as to control the abnormality at the temperature level. At the same time, the second abnormal event and the first abnormal event are associated, and the corresponding abnormal type is matched according to the second abnormal event and the first abnormal event. The corresponding protection logic is determined according to the abnormal type and the protection logic table, and the protection of the communication interface is triggered based on the protection logic. At the same time, real-time protection is performed on the communication interface, which is compatible with the consideration of current abnormality and temperature abnormality, so as to control the abnormality of the communication interface in multiple dimensions, realize the precise protection of the communication interface under the protection logic, and continuously ensure the protection effect of the communication interface.

[0085] refer to Figure 2 , in step S11, locating the communication interface of the electronic product, and collecting the communication data received by the communication path of the communication interface;

[0086] In the specific implementation process of the present invention, the specific steps may be:

[0087] S111: collecting working data of the electronic product, and determining the working state of the electronic product according to the working data of the electronic product;

[0088] S112: in the working state of the electronic product, traverse the workflow of the electronic product, and determine the corresponding communication part according to the workflow of the electronic product;

[0089] S113: positioning the communication interface of the electronic product based on the communication part;

[0090] S114: freeze the communication interface, and trigger communication detection based on the communication interface;

[0091] S115: In the communication detection of the communication interface, the communication data received by the communication path of the communication interface is collected.

[0092] In an embodiment of the present application, the working data of the electronic product is collected, and the working status of the electronic product is determined based on the working data of the electronic product, so as to facilitate control over multiple working data, thereby clarifying the working status of the electronic product and further controlling the communication port of the electronic product.

[0093] At this time, in the working state of the electronic product, the workflow of the electronic product is traversed, and the corresponding communication part is determined according to the workflow of the electronic product. The communication part is introduced, and the communication interface of the electronic product is located based on the communication part, so as to control the communication interface of the electronic product. Therefore, the communication interface is fixed, and the communication detection is triggered based on the communication interface; in the communication detection of the communication interface, the communication data received by the communication path of the communication interface is collected, and the communication path is further controlled. Reference Figure 3 , in step S12, a plurality of sub-communication paths are determined based on the division of the communication path, and the communication data received by each sub-communication path is marked;

[0094] In the specific implementation process of the present invention, the specific steps may be:

[0095] S121: Fixed communication path;

[0096] S122: traversing the communication path, and determining a plurality of branch points in the traversal of the communication path;

[0097] S123: Determine a division mode based on multiple branch points and corresponding communication objects;

[0098] S124: Associating partitioning modes and communication paths;

[0099] S125: Determine a plurality of sub-communication paths based on the communication path and the division mode;

[0100] S126: freeze multiple sub-communication paths, and match corresponding receiving channels based on the multiple sub-communication paths; S127: present communication data received by the corresponding sub-communication paths along each receiving channel;

[0101] S128: Mark the communication data.

[0102] In an embodiment of the present application, a communication path is frozen, and a traversal is performed on the communication path to facilitate traversal of the communication path, and multiple branch points are determined in the traversal of the communication path. The multiple branch points are controlled to facilitate determination of a division pattern based on the multiple branch points and the corresponding communication objects, thereby performing multi-dimensional control based on the multiple branch points and the corresponding communication objects, ensuring the accuracy of the division pattern, and facilitating further division of the communication path.

[0103] At this time, the partitioning mode and the communication path are associated; multiple sub-communication paths are determined based on the communication path and the partitioning mode, and the multiple sub-communication paths are controlled, thereby ensuring multi-dimensional management and control of the multiple sub-communication paths.

[0104] Therefore, multiple sub-communication paths are fixed, and corresponding receiving channels are matched based on the multiple sub-communication paths; communication data received by the corresponding sub-communication paths are presented along each receiving channel; the communication data is marked, and the communication data is further processed.

[0105] refer to Figure 4 , in step S13, each receiving node in the sub-communication path is located, and the current parameter of each receiving node is marked;

[0106] In the specific implementation process of the present invention, the specific steps may be:

[0107] S131: Fixed grid communication path;

[0108] S132: locating each receiving node based on the traversal of the sub-communication path;

[0109] S133: Associating multiple receiving nodes, and building corresponding receiving paths based on the multiple receiving nodes;

[0110] S134: synchronously detect multiple receiving paths and perform current detection on each receiving node; S135: during the current detection of each receiving node, collect the current parameters of each receiving node; S136: mark the current parameters of each receiving node.

[0111] In an embodiment of the present application, a sub-communication path is fixed and traversed, so as to locate each receiving node based on the traversal of the sub-communication path, thereby managing and controlling each receiving node.

[0112] At this time, multiple receiving nodes are associated, and corresponding receiving paths are constructed based on the multiple receiving nodes. The receiving paths are introduced calmly, and then the multiple receiving paths are synchronously detected, and current detection is performed on each receiving node, thereby realizing current control of each receiving node.

[0113] Therefore, in the current detection of each receiving node, the current parameters of each receiving node are collected; the current parameters of each receiving node are marked to facilitate further processing of the current parameters of each receiving node, thereby controlling the current parameters of each receiving node.

[0114] refer to Figure 5 , S14: determining a current abnormal area according to the current parameters of each receiving node and the sub-communication path; determining a plurality of first abnormal factors based on the current abnormal area, and determining a first abnormal event according to the plurality of first abnormal factors;

[0115] In the specific implementation process of the present invention, the specific steps may be:

[0116] S141: freeze the current parameters of each receiving node;

[0117] S142: Associating the current parameters of each receiving node with the corresponding sub-communication path;

[0118] S143: determining a current distribution diagram based on current parameters of each receiving node and a corresponding sub-communication path, and determining a current abnormality area according to identification of the current distribution diagram;

[0119] S144: freeze current abnormal area;

[0120] S145: determining a plurality of first abnormal factors based on the identification of the current abnormal area;

[0121] S146: Determine the first abnormal event according to multiple first abnormal factors and corresponding sub-communication paths. In an embodiment of the present application, the current parameters of each receiving node are fixed, so as to perform overall control on the current parameters of each receiving node. At this time, the current parameters of each receiving node and the corresponding sub-communication path are associated, so as to determine the current distribution diagram based on the current parameters of each receiving node and the corresponding sub-communication path, and determine the current abnormal area according to the identification of the current distribution diagram, introduce the current abnormal area, perform targeted control on the current abnormal area, and realize further processing of the current abnormal area.

[0122] Therefore, the current abnormal area is fixed; multiple first abnormal factors are determined based on the identification of the current abnormal area; the first abnormal event is determined based on the multiple first abnormal factors and the corresponding sub-communication paths, so as to be compatible with the consideration of multiple first abnormal factors and the corresponding sub-communication paths, so as to perform overall control on multiple first abnormal factors and the corresponding sub-communication paths, so as to ensure the accuracy of the first abnormal event. At the same time, the abnormality at the current level is controlled, so as to perform current control on each sub-communication path.

[0123] refer to Figure 6 , S15: in the sub-communication path, determining a plurality of temperature parameters based on the detection of the communication interface, determining a corresponding temperature abnormal part according to the plurality of temperature parameters, and matching a corresponding second abnormal event based on the temperature abnormal part;

[0124] In the specific implementation process of the present invention, the specific steps may be:

[0125] S151: in the sub-communication path, freeze the communication interface;

[0126] S152: determining a plurality of temperature parameters based on detection of the communication interface, where the plurality of temperature parameters are distributed at different positions of the communication interface;

[0127] S153: Collecting locations of multiple temperature parameters;

[0128] S154: determining a corresponding temperature change based on two adjacent temperature parameters;

[0129] S155: collecting multiple temperature changes, and determining the temperature abnormality location according to the multiple temperature changes and the locations of the multiple temperature parameters;

[0130] S156: determining a corresponding temperature abnormal part based on the positioning detection of the temperature abnormal position;

[0131] S157: Collect multiple temperature abnormal parts, associate the multiple temperature abnormal parts and communication interface models; match the corresponding second abnormal event according to the multiple temperature abnormal parts and communication interface models.

[0132] In an embodiment of the present application, in a sub-communication path, the communication interface is frozen to facilitate determination of multiple temperature parameters based on detection of the communication interface. At this time, the multiple temperature parameters are distributed at different positions of the communication interface, and the temperature of the communication interface is presented through multiple temperature parameters.

[0133] At this time, the locations of multiple temperature parameters are collected, so as to determine the two adjacent temperature parameters for the locations of the multiple temperature parameters, thereby determining the corresponding temperature change based on the two adjacent temperature parameters, introducing multiple temperature change, and further controlling the multiple temperature change. Therefore, multiple temperature change are collected, and the temperature abnormality location is determined according to the multiple temperature change and the location of the multiple temperature parameters; the corresponding temperature abnormal part is determined based on the positioning detection of the temperature abnormal location; multiple temperature abnormal parts are collected, and the models of multiple temperature abnormal parts and communication interfaces are associated; the corresponding second abnormal event is matched according to the models of multiple temperature abnormal parts and communication interfaces, so as to control the abnormalities at the temperature level. At the same time, it is compatible with the overall consideration of the models of multiple temperature abnormal parts and communication interfaces, and the second abnormal event is controlled in multiple dimensions to ensure the accuracy of the second abnormal event.

[0134] refer to Figure 7 , S16: Associating the second abnormal event with the first abnormal event, matching the corresponding abnormal type according to the second abnormal event and the first abnormal event, determining the corresponding protection logic according to the abnormal type and the protection logic table, and triggering the protection of the communication interface based on the protection logic, and at the same time, performing real-time protection for the communication interface;

[0135] In the specific implementation process of the present invention, the specific steps may be:

[0136] S161: freeze the second abnormal event and the first abnormal event;

[0137] S162: Associating the second abnormal event with the first abnormal event;

[0138] S163: Matching a corresponding abnormal type according to the second abnormal event and the first abnormal event;

[0139] S164: Determine the corresponding protection logic according to the abnormality type and the protection logic table;

[0140] S165: performing abnormal matching on the second abnormal event and the first abnormal event, and determining a corresponding abnormal coefficient;

[0141] S166: Associating the abnormal coefficient with the protection logic, and determining the protection level of the protection logic according to the abnormal coefficient and the model of the communication interface;

[0142] S167: Triggering protection of the communication interface based on the protection logic, and performing real-time protection on the communication interface.

[0143] During the specific implementation of the present invention, in the sub-communication path, multiple temperature parameters are determined based on the detection of the communication interface, and the corresponding temperature abnormal part is determined based on the multiple temperature parameters, and the corresponding second abnormal event is matched based on the temperature abnormal part, so as to control the abnormality at the temperature level. At the same time, the second abnormal event and the first abnormal event are associated, and the corresponding abnormal type is matched according to the second abnormal event and the first abnormal event. The corresponding protection logic is determined according to the abnormal type and the protection logic table, and the protection of the communication interface is triggered based on the protection logic. At the same time, real-time protection is performed on the communication interface, and considerations of current abnormality and temperature abnormality are compatible, so that the abnormality of the communication interface is controlled in multiple dimensions, and precise protection of the communication interface under the protection logic is realized, and the protection effect of the communication interface is continuously guaranteed.

[0144] At this time, the second abnormal event and the first abnormal event are frozen and associated with each other, so as to match the corresponding abnormal type according to the second abnormal event and the first abnormal event, thereby controlling the corresponding abnormal type in the second abnormal event and the first abnormal event, realizing the control of the abnormal type at the current level and the temperature level, and further realizing multi-dimensional control of the abnormal type.

[0145] Therefore, the corresponding protection logic is determined according to the exception type and the protection logic table; the second exception event and the first exception event are matched abnormally, and the corresponding exception coefficient is determined; the exception coefficient and the protection logic are associated, and the protection level of the protection logic is determined according to the exception coefficient and the model of the communication interface. The protection logic and the corresponding protection level are determined, and the protection level is managed under the protection logic, so as to trigger the protection of the communication interface based on the protection logic. At the same time, real-time protection is performed on the communication interface.

[0146] In an embodiment of the present invention, through the method in the embodiment of the present invention, the communication interface of the electronic product is located, and the communication data received by the communication path of the communication interface is collected; based on the division of the communication path, multiple sub-communication paths are determined, and the communication data received by each sub-communication path is marked; each receiving node in the sub-communication path is located, and the current parameter of each receiving node is marked; the current abnormal area is determined according to the current parameters of each receiving node and the sub-communication path; based on the current abnormal area, multiple first abnormal factors are determined, and the first abnormal event is determined according to the multiple first abnormal factors, so as to control the abnormalities at the current level, thereby performing current control on each sub-communication path.

[0147] In the sub-communication path, multiple temperature parameters are determined based on the detection of the communication interface, and the corresponding temperature abnormal part is determined based on the multiple temperature parameters, and the corresponding second abnormal event is matched based on the temperature abnormal part, so as to control the abnormality at the temperature level. At the same time, the second abnormal event and the first abnormal event are associated, and the corresponding abnormal type is matched according to the second abnormal event and the first abnormal event. The corresponding protection logic is determined according to the abnormal type and the protection logic table, and the protection of the communication interface is triggered based on the protection logic. At the same time, real-time protection is performed on the communication interface, which is compatible with the consideration of current abnormality and temperature abnormality, so as to control the abnormality of the communication interface in multiple dimensions, realize the precise protection of the communication interface under the protection logic, and continuously ensure the protection effect of the communication interface.

[0148] See also Figure 8 , Figure 8 It is a schematic diagram of the structural composition of the protection system of the communication interface of the electronic product in the embodiment of the present invention.

[0149] like Figure 8 As shown, a protection system for a communication interface of an electronic product, the protection system for the communication interface of the electronic product comprises:

[0150] The acquisition module 21 is used to locate the communication interface of the electronic product and to acquire the communication data received by the communication path of the communication interface;

[0151] A division module 22, configured to determine a plurality of sub-communication paths based on the division of the communication path, and mark the communication data received by each sub-communication path;

[0152] The current parameter module 23 is used to locate each receiving node in the sub-communication path and mark the current parameter of each receiving node;

[0153] The first abnormal module 24 is used to determine the current abnormal area according to the current parameters of each receiving node and the sub-communication path; determine a plurality of first abnormal factors based on the current abnormal area, and determine a first abnormal event according to the plurality of first abnormal factors;

[0154] The second abnormal module 25 is used to determine a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, determine a corresponding temperature abnormal part according to the plurality of temperature parameters, and match a corresponding second abnormal event based on the temperature abnormal part;

[0155] The protection module 26 is used to associate the second abnormal event with the first abnormal event, match the corresponding abnormal type according to the second abnormal event and the first abnormal event, determine the corresponding protection logic according to the abnormal type and the protection logic table, and trigger the protection of the communication interface based on the protection logic. At the same time, real-time protection is performed on the communication interface.

[0156] See also Fig. 9 , refer to the following Fig. 9 The electronic device 40 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0157] like Fig. 9 As shown, the electronic device 40 is in the form of a general-purpose computing device. The components of the electronic device 40 may include, but are not limited to: at least one processing unit 41, at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41). The storage unit stores a program code, which can be executed by the processing unit 41, so that the processing unit 41 performs the steps according to various exemplary embodiments of the present invention described in the "Example Method" section of this specification.

[0158] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .

[0159] .The storage unit 42 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0160] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0161] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 40, and / or any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 45. Fig. 9 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup planning systems.

[0162] See also Fig.10 , Fig.10 It is a circuit diagram of a protection circuit of a communication interface of an electronic product in an embodiment of the present invention.

[0163] The protection circuit of the communication interface of the electronic product includes: a control unit U23, several first pins of the control unit U23 are electrically connected to the communication IO port GPIO; a voltage regulator diode ZD, the cathode of the voltage regulator diode ZD is electrically connected to several second pins of the control unit U23; a universal diode D, the anode of the universal diode D is electrically connected to several second pins of the control unit U23; a resettable fuse PTC, the first end of the resettable fuse PTC is electrically connected to several second pins of the control unit U23; a resistor R, the first end of the resistor R is electrically connected to the second end of the resettable fuse PTC; an output port OUTPUT, the output port OUTPUT is electrically connected to the second end of the resistor R.

[0164] The control unit U23 can be an MCU, a digital logic gate, an FPGA, etc. In this embodiment, the number of the voltage stabilizing diode ZD, the general diode D, the self-recovery fuse PTC, and the resistor R are four respectively, thereby forming 4 channel protections.

[0165] In the protection circuit embodiment of the present invention, during normal communication, the communication IO port GPIO sends a signal to the control unit U23, which is output to the output port OUTPUT after passing through the control unit U23, and then connected to the device port that needs to communicate through the connector. When the output port OUTPUT is mistakenly connected or accidentally connected to a voltage greater than 5V, it will first be limited by the resistor R and the self-resetting fuse PTC, and then stabilized by the voltage-stabilizing diode ZD. At the same time, it will also be clamped by the universal diode D, so as to limit the voltage of the communication IO port GPIO to the withstand voltage range of the control unit U23 itself, so as to facilitate the control of abnormalities at the current level and prevent current and temperature abnormalities, thereby protecting the control unit U23 from being damaged by excessive voltage or temperature.

[0166] Therefore, in current electronic products, especially thermal printers, portable printers, label printers and other products, when the DC withstand voltage of the external communication interface is basically around 0V-5V, there is a high probability that a voltage higher than 5V will be mistakenly introduced into the corresponding interface during manual wiring, thereby burning the product or device motherboard. The above embodiment can prevent the communication interface from burning the motherboard when a voltage exceeding the chip's own withstand voltage (usually 5V) is introduced to the communication line. In particular, the communication interface can increase the DC voltage limit of all signal ports to more than 24V or withstand voltage of more than 48V without affecting normal signal transmission, which can prevent personnel from mistakenly connecting a voltage of more than 24V to the communication line and burning the equipment. It can also have ESD protection, surge protection, overcurrent protection, overvoltage protection, short circuit protection and other functions at the same time, and can well protect the key chip on the motherboard from damage. It can be seen that the control unit U23 can be a key chip. Different withstand voltage protection levels can be achieved by selecting the resistance value of the resistor R (usually 22-1000Ω) according to the communication speed and selecting resistors of different powers (usually greater than 1W) according to the protection current.

[0167] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0168] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. In addition, it stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the above method.

[0169] In addition, the protection method and system for the communication interface of the electronic product provided in the embodiment of the present invention are introduced in detail above. Specific examples are used herein to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for protecting a communication interface of an electronic product, characterized in that: Applicable to the protection scenarios of communication interfaces of electronic products; The protection method of the communication interface of the electronic product comprises: Locating the communication interface of the electronic product and collecting the communication data received by the communication path of the communication interface; Determine a plurality of sub-communication paths based on the division of the communication path, and mark the communication data received by each sub-communication path; Locate each receiving node in the sub-communication path and mark the current parameters of each receiving node; Determine a current abnormal area according to current parameters of each receiving node and the sub-communication path; determine a plurality of first abnormal factors based on the current abnormal area, and determine a first abnormal event according to the plurality of first abnormal factors; In the sub-communication path, a plurality of temperature parameters are determined based on the detection of the communication interface, a corresponding temperature abnormality portion is determined according to the plurality of temperature parameters, and a corresponding second abnormal event is matched based on the temperature abnormality portion; Associating the second abnormal event with the first abnormal event, matching the corresponding abnormal type according to the second abnormal event and the first abnormal event, determining the corresponding protection logic according to the abnormal type and the protection logic table, and triggering the protection of the communication interface based on the protection logic, and at the same time, performing real-time protection for the communication interface; The positioning of the communication interface of the electronic product and the collection of communication data received by the communication path of the communication interface include: collecting the working data of the electronic product and determining the working state of the electronic product according to the working data of the electronic product; in the working state of the electronic product, traversing the working process of the electronic product and determining the corresponding communication part according to the working process of the electronic product; positioning the communication interface of the electronic product based on the communication part; triggering communication detection based on the communication interface; in the communication detection of the communication interface, collecting the communication data received by the communication path of the communication interface; The method of determining a plurality of sub-communication paths based on the division of the communication path and marking the communication data received by each sub-communication path includes: freezing the communication path; traversing the communication path and determining a plurality of branch points in the traversal of the communication path; determining a division mode based on the plurality of branch points and corresponding communication objects; associating the division mode with the communication path; determining a plurality of sub-communication paths based on the communication path and the division mode; freezing the plurality of sub-communication paths and matching corresponding receiving channels based on the plurality of sub-communication paths; presenting the communication data received by the corresponding sub-communication path along each receiving channel; marking the communication data; The method of locating each receiving node in the sub-communication path and marking the current parameter of each receiving node includes: locating each receiving node based on the traversal of the sub-communication path; associating multiple receiving nodes and building a corresponding receiving path based on the multiple receiving nodes; synchronously detecting the multiple receiving paths and performing current detection on each receiving node; collecting the current parameter of each receiving node in the current detection of each receiving node; and marking the current parameter of each receiving node; The method of determining a current abnormal area according to current parameters and sub-communication paths of each receiving node; determining a plurality of first abnormal factors based on the current abnormal area, and determining a first abnormal event according to the plurality of first abnormal factors comprises: associating current parameters of each receiving node and a corresponding sub-communication path; determining a current distribution diagram based on current parameters of each receiving node and a corresponding sub-communication path, and determining a current abnormal area according to identification of the current distribution diagram; determining a plurality of first abnormal factors based on identification of the current abnormal area; and determining a first abnormal event according to the plurality of first abnormal factors and the corresponding sub-communication paths; The method of determining a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, determining a corresponding temperature abnormal part according to the plurality of temperature parameters, and matching a corresponding second abnormal event based on the temperature abnormal part comprises: determining a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, wherein the plurality of temperature parameters are distributed at different positions of the communication interface; collecting positions where the plurality of temperature parameters are located; and determining a corresponding temperature change amount based on two adjacent temperature parameters; The method further comprises: collecting a plurality of temperature changes, and determining the temperature abnormality position according to the plurality of temperature changes and the positions of the plurality of temperature parameters; determining the corresponding temperature abnormality part based on the positioning detection of the temperature abnormality position; collecting a plurality of temperature abnormality parts, and associating the plurality of temperature abnormality parts and the models of the communication interface; and matching the corresponding second abnormal event according to the plurality of temperature abnormality parts and the models of the communication interface.

2. The protection method for the communication interface of an electronic product according to claim 1, characterized in that: The associating the second abnormal event with the first abnormal event, matching the corresponding abnormal type according to the second abnormal event and the first abnormal event, determining the corresponding protection logic according to the abnormal type and the protection logic table, and triggering the protection of the communication interface based on the protection logic, and at the same time, performing real-time protection for the communication interface, includes: Freeze the second abnormal event and the first abnormal event; Associating the second abnormal event with the first abnormal event; Matching a corresponding abnormal type according to the second abnormal event and the first abnormal event; Determine the corresponding protection logic according to the exception type and the protection logic table.

3. The protection method for the communication interface of an electronic product according to claim 2, characterized in that: The method of associating the second abnormal event with the first abnormal event, matching the corresponding abnormal type according to the second abnormal event and the first abnormal event, determining the corresponding protection logic according to the abnormal type and the protection logic table, and triggering the protection of the communication interface based on the protection logic, and performing real-time protection on the communication interface, further includes: Performing anomaly matching on the second abnormal event and the first abnormal event, and determining corresponding abnormal coefficients; Associate the abnormal coefficient and the protection logic, and determine the protection level of the protection logic according to the abnormal coefficient and the model of the communication interface; The protection of the communication interface is triggered based on the protection logic, and at the same time, real-time protection is performed on the communication interface.

4. A protection system for a communication interface of an electronic product, characterized in that: The protection system for the communication interface of the electronic product is applied to the protection method for the communication interface of the electronic product as claimed in any one of claims 1 to 3, and the protection system for the communication interface of the electronic product comprises: A collection module, used to locate the communication interface of the electronic product and collect communication data received by the communication path of the communication interface; A division module, used for determining a plurality of sub-communication paths based on the division of the communication path, and marking the communication data received by each sub-communication path; A current parameter module is used to locate each receiving node in the sub-communication path and mark the current parameter of each receiving node; A first abnormal module, used to determine a current abnormal area according to current parameters of each receiving node and a sub-communication path; determine a plurality of first abnormal factors based on the current abnormal area, and determine a first abnormal event according to the plurality of first abnormal factors; A second abnormality module is used to determine a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, determine a corresponding temperature abnormal part according to the plurality of temperature parameters, and match a corresponding second abnormal event based on the temperature abnormal part; A protection module is used to associate the second abnormal event with the first abnormal event, match the corresponding abnormal type according to the second abnormal event and the first abnormal event, determine the corresponding protection logic according to the abnormal type and the protection logic table, and trigger the protection of the communication interface based on the protection logic, and at the same time, perform real-time protection on the communication interface; The method of locating the communication interface of the electronic product and collecting the communication data received by the communication path of the communication interface includes: collecting the working data of the electronic product and determining the working state of the electronic product according to the working data of the electronic product; in the working state of the electronic product, traversing the working process of the electronic product and determining the corresponding communication part according to the working process of the electronic product; locating the communication interface of the electronic product based on the communication part; triggering communication detection based on the communication interface; collecting the communication data received by the communication path of the communication interface in the communication detection of the communication interface; determining multiple sub-communication paths based on the division of the communication path and marking the communication data received by each sub-communication path, includes: freezing the communication path; traversing the communication path and determining multiple branch points in the traversal of the communication path; determining a division mode based on multiple branch points and corresponding communication objects; associating the division mode with the communication path; determining multiple sub-communication paths based on the communication path and the division mode; freezing multiple sub-communication paths and matching corresponding receiving channels based on multiple sub-communication paths; presenting the communication data received by the corresponding sub-communication path along each receiving channel; marking the communication data; The method of locating each receiving node in the sub-communication path and marking the current parameter of each receiving node includes: locating each receiving node based on the traversal of the sub-communication path; associating multiple receiving nodes and building a corresponding receiving path based on the multiple receiving nodes; synchronously detecting the multiple receiving paths and performing current detection on each receiving node; collecting the current parameter of each receiving node in the current detection of each receiving node; and marking the current parameter of each receiving node; The method of determining a current abnormal area according to current parameters and sub-communication paths of each receiving node; determining a plurality of first abnormal factors based on the current abnormal area, and determining a first abnormal event according to the plurality of first abnormal factors comprises: associating current parameters of each receiving node and a corresponding sub-communication path; determining a current distribution diagram based on current parameters of each receiving node and a corresponding sub-communication path, and determining a current abnormal area according to identification of the current distribution diagram; determining a plurality of first abnormal factors based on identification of the current abnormal area; and determining a first abnormal event according to the plurality of first abnormal factors and the corresponding sub-communication paths; The method of determining a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, determining a corresponding temperature abnormal part according to the plurality of temperature parameters, and matching a corresponding second abnormal event based on the temperature abnormal part comprises: determining a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, wherein the plurality of temperature parameters are distributed at different positions of the communication interface; collecting positions where the plurality of temperature parameters are located; and determining a corresponding temperature change amount based on two adjacent temperature parameters; The method further comprises: collecting a plurality of temperature changes, and determining the temperature abnormality position according to the plurality of temperature changes and the positions of the plurality of temperature parameters; determining the corresponding temperature abnormality part based on the positioning detection of the temperature abnormality position; collecting a plurality of temperature abnormality parts, and associating the plurality of temperature abnormality parts and the models of the communication interface; and matching the corresponding second abnormal event according to the plurality of temperature abnormality parts and the models of the communication interface.

Citation Information

Patent Citations

  • A safety protection method and device for electrical sockets

    CN114937971A

  • Ultra-compact, high-performance motor controller and method of using same

    US20060071622A1