Protection method, system and circuit for communication interface of electronic product
By identifying and handling current and temperature abnormalities of the communication interface and triggering protection logic, the communication interface is solved inadequate protection at the current and temperature levels, and the multi-dimensional precise protection effect is achieved.
Patent Information
- Application Number
- CN202411421860.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-10-12
AI Technical Summary
In the prior art, the communication interface of electronic products is prone to current abnormalities during use, but the influence of the temperature level is not fully considered, resulting in insufficient protection effect.
By positioning and collecting the communication path of the communication interface, dividing the molecular communication path, marking the current parameters of the receiving node, identifying the current abnormal area, and identifying abnormal events in combination with the temperature parameters, matching the abnormal type to trigger the protection logic, realizing multi-dimensionality of the communication interface Protection.
It realizes precise protection of the communication interface, continuously ensures the protection effect of the communication interface, and is compatible with multi-dimensional control of current and temperature abnormalities.
Smart Images

Figure CN118970556A_ABST
Abstract
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, system and circuit 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, system and circuit for the communication interface of an electronic product, which locates the communication interface of the electronic product and collects the communication path of the communication interface; defines 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; defines a current abnormal area according to the current parameters of each receiving node and the sub-communication path; defines multiple first abnormal factors based on the current abnormal area, and defines 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 this sub-communication path, multiple temperature parameters are defined based on the detection of the communication interface, and corresponding temperature anomalies are defined based on the multiple temperature parameters. The corresponding second abnormal event is matched based on the temperature anomaly part, so as to control the abnormalities 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 defined 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 anomalies and temperature anomalies are taken into account, so as to control the abnormalities of the communication interface in multiple dimensions, realize 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; The protection method of the communication interface of the electronic product comprises: Locate the communication interface of the electronic product and collect the communication path of the communication interface; Defining 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; Locating each receiving node in the sub-communication path and marking the current parameters of each receiving node; Defining a current abnormal area according to the current parameters of each receiving node and the sub-communication path; defining a plurality of first abnormal factors based on the current abnormal area, and defining a first abnormal event according to the plurality of first abnormal factors; In the sub-communication path, a plurality of temperature parameters are defined based on the detection of the communication interface, corresponding temperature abnormality parts are defined according to the plurality of temperature parameters, and a corresponding second abnormal event is matched based on the temperature abnormality parts; 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, define 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.
[0006] Optionally, locating the communication interface of the electronic product and collecting the communication path of the communication interface includes: Collecting working data of the electronic product, and defining the working status of the electronic product according to the working data of the electronic product; In the working state of the electronic product, the workflow of the electronic product is traversed, and the corresponding communication part is defined according to the workflow of the electronic product; Based on the communication part, the communication interface of the electronic product is located; Freeze the communication interface and trigger communication detection based on the communication interface; In the communication detection of the communication interface, the communication path of the communication interface is collected.
[0007] Optionally, the defining of 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: Fixed frame communication path; traversing the communication path, and defining a plurality of branch points in the traversal of the communication path; Define a partitioning pattern based on multiple branch points and corresponding communication objects; association partitioning patterns and communication paths; defining a plurality of sub-communication paths based on the communication path and the division mode; freeze a plurality of sub-communication paths, and match 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; The communication data is marked.
[0008] Optionally, the locating each receiving node in the sub-communication path and marking the current parameter of each receiving node includes: Fixed grid communication path; Locating each receiving node based on the traversal of the sub-communication path; Associating multiple receiving nodes and building corresponding receiving paths based on the multiple receiving nodes; Synchronous detection of multiple receiving paths and current detection for each receiving node In the current detection of each receiving node, current parameters of each receiving node are collected; Mark the current parameters of each receiving node.
[0009] Optionally, defining a current abnormal area according to current parameters of each receiving node and a sub-communication path; defining a plurality of first abnormal factors based on the current abnormal area, and defining a first abnormal event according to the plurality of first abnormal factors, includes: Freeze the current parameters of each receiving node; Associating the current parameters of each receiving node and the corresponding sub-communication path; A current distribution map is defined based on current parameters of each receiving node and the corresponding sub-communication path, and a current abnormal area is defined based on the identification of the current distribution map; The abnormal current area is fixed; defining a plurality of first abnormal factors based on identification of the current abnormal region; A first abnormal event is defined according to a plurality of first abnormal factors and corresponding sub-communication paths.
[0010] Optionally, in the sub-communication path, a plurality of temperature parameters are defined based on the detection of the communication interface, a corresponding temperature abnormality portion is defined according to the plurality of temperature parameters, and a corresponding second abnormal event is matched based on the temperature abnormality portion, including: In the sub-communication path, a communication interface is fixed; A plurality of temperature parameters are defined based on the detection of the communication interface. In this case, the plurality of temperature parameters are distributed at different positions of the communication interface. The location where multiple temperature parameters are collected; The corresponding temperature variation is defined based on two adjacent temperature parameters.
[0011] Optionally, in the sub-communication path, a plurality of temperature parameters are defined based on the detection of the communication interface, corresponding temperature abnormality parts are defined according to the plurality of temperature parameters, and the corresponding second abnormal event is matched based on the temperature abnormality parts, further comprising: Collect multiple temperature changes, and define temperature anomaly locations according to the multiple temperature changes and locations of multiple temperature parameters; Defining a corresponding temperature abnormal part based on the location detection of the temperature abnormal position; Collect multiple temperature abnormal parts and associate the models of multiple temperature abnormal parts and communication interfaces; The corresponding second abnormal event is matched according to the models of the plurality of temperature abnormal parts and the communication interface.
[0012] Optionally, associating the second abnormal event with the first abnormal event, matching corresponding abnormal types according to the second abnormal event and the first abnormal event, defining corresponding protection logic according to the abnormal type and the protection logic table, triggering protection of the communication interface based on the protection logic, and performing real-time protection on the communication interface, including: 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; Define the corresponding protection logic according to the exception type and protection logic table.
[0013] 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, defining 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: Performing abnormal matching on the second abnormal event and the first abnormal event, and defining corresponding abnormal coefficients; Associate the abnormal coefficient and the protection logic, and define 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.
[0014] In addition, an embodiment of the present invention further provides a protection system for a communication interface of an electronic product, the protection system for the communication interface of an electronic product comprising: A collection module, used to locate the communication interface of the electronic product and collect the communication path of the communication interface; A division module, used for defining 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, 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 define a current abnormal area according to the current parameters of each receiving node and the sub-communication path; define a plurality of first abnormal factors based on the current abnormal area, and define a first abnormal event according to the plurality of first abnormal factors; A second abnormal module is used to define a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, define corresponding temperature abnormal parts according to the plurality of temperature parameters, and match the corresponding second abnormal event based on the temperature abnormal parts; 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, define 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.
[0015] 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 path of the communication interface is collected; multiple sub-communication paths are defined based on the division of the communication path, 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; a current abnormal area is defined according to the current parameters of each receiving node and the sub-communication path; multiple first abnormal factors are defined based on the current abnormal area, and a first abnormal event is defined 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.
[0016] In this sub-communication path, multiple temperature parameters are defined based on the detection of the communication interface, and corresponding temperature anomalies are defined based on the multiple temperature parameters. The corresponding second abnormal event is matched based on the temperature anomaly part, so as to control the abnormalities 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 defined 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 anomalies and temperature anomalies are taken into account, so as to control the abnormalities of the communication interface in multiple dimensions, realize precise protection of the communication interface under the protection logic, and continuously ensure the protection effect of the communication interface.
[0017] 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.
[0018] 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
[0019] 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.
[0020] 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; 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; 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; 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; 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; 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; 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; Fig. 9 is a hardware diagram of an electronic device according to an exemplary embodiment; 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
[0021] 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.
[0022] 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: Step S11: locating the communication interface of the electronic product and collecting the communication path of the communication interface; Step S12: defining 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; Step S13: locating each receiving node in the sub-communication path, and marking the current parameters of each receiving node; Step S14: defining a current abnormal area according to the current parameters of each receiving node and the sub-communication path; defining a plurality of first abnormal factors based on the current abnormal area, and defining a first abnormal event according to the plurality of first abnormal factors; Step S15: In the sub-communication path, a plurality of temperature parameters are defined based on the detection of the communication interface, and corresponding temperature abnormal parts are defined according to the plurality of temperature parameters, and a corresponding second abnormal event is matched based on the temperature abnormal part; 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, define 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.
[0023] 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 path of the communication interface is collected; multiple sub-communication paths are defined based on the division of the communication path, 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; a current abnormal area is defined according to the current parameters of each receiving node and the sub-communication path; multiple first abnormal factors are defined based on the current abnormal area, and a first abnormal event is defined 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.
[0024] In this sub-communication path, multiple temperature parameters are defined based on the detection of the communication interface, and corresponding temperature anomalies are defined based on the multiple temperature parameters. The corresponding second abnormal event is matched based on the temperature anomaly part, so as to control the abnormalities 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 defined 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 anomalies and temperature anomalies are taken into account, so as to control the abnormalities of the communication interface in multiple dimensions, realize precise protection of the communication interface under the protection logic, and continuously ensure the protection effect of the communication interface.
[0025] refer to Figure 2 , in step S11, locating the communication interface of the electronic product and collecting the communication path of the communication interface; In the specific implementation process of the present invention, the specific steps may be: S111: Collecting working data of the electronic product, and defining the working state of the electronic product according to the working data of the electronic product; S112: in the working state of the electronic product, traverse the workflow of the electronic product, and define a corresponding communication part according to the workflow of the electronic product; S113: positioning the communication interface of the electronic product based on the communication part; S114: freeze the communication interface, and trigger communication detection based on the communication interface; S115: In the communication detection of the communication interface, the communication path of the communication interface is collected.
[0026] 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 defined based on the working data of the electronic product, so as to facilitate control over multiple working data, thereby defining the working status of the electronic product based on multiple working data, clarifying the working status of the electronic product, and further controlling the communication port of the electronic product.
[0027] 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 defined 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 frozen, and the communication detection is triggered based on the communication interface; in the communication detection of the communication interface, the communication path of the communication interface is collected, and the communication path is further controlled.
[0028] refer to Figure 3 , in step S12, a plurality of sub-communication paths are defined based on the division of the communication path, and the communication data received by each sub-communication path is marked; In the specific implementation process of the present invention, the specific steps may be: S121: Fixed communication path; S122: traversing the communication path, and defining a plurality of branch points in the traversal of the communication path; S123: defining a division mode based on multiple branch points and corresponding communication objects; S124: Associating partitioning modes and communication paths; S125: defining a plurality of sub-communication paths based on the communication path and the division mode; S126: freeze the multiple sub-communication paths, and match corresponding receiving channels based on the multiple sub-communication paths; S127: presenting the communication data received by the corresponding sub-communication path along each receiving channel; S128: Mark the communication data.
[0029] In an embodiment of the present application, a communication path is frozen, and a traversal is performed on the communication path to facilitate the traversal of the communication path. A plurality of branch points are defined in the traversal of the communication path, and control is performed on the plurality of branch points to facilitate definition of a division pattern based on the plurality of branch points and corresponding communication objects, thereby performing multi-dimensional control based on the plurality of branch points and corresponding communication objects, thereby ensuring the accuracy of the division pattern and facilitating further division of the communication path.
[0030] At this time, the partitioning mode and the communication path are associated; multiple sub-communication paths are defined 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.
[0031] 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.
[0032] refer to Figure 4 , in step S13, locating each receiving node in the sub-communication path, and marking the current parameters of each receiving node; In the specific implementation process of the present invention, the specific steps may be: S131: Fixed grid communication path; S132: locating each receiving node based on the traversal of the sub-communication path; S133: Associating multiple receiving nodes, and building corresponding receiving paths based on the multiple receiving nodes; S134: synchronously detecting multiple receiving paths and performing current detection on each receiving node; S135: In the current detection of each receiving node, collecting current parameters of each receiving node; S136: Mark the current parameters of each receiving node.
[0033] In the 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.
[0034] 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.
[0035] 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.
[0036] refer to Figure 5 , S14: defining a current abnormal area according to the current parameters of each receiving node and the sub-communication path; defining a plurality of first abnormal factors based on the current abnormal area, and defining a first abnormal event according to the plurality of first abnormal factors; In the specific implementation process of the present invention, the specific steps may be: S141: freeze the current parameters of each receiving node; S142: Associating the current parameters of each receiving node with the corresponding sub-communication path; S143: defining a current distribution diagram based on current parameters of each receiving node and the corresponding sub-communication path, and defining a current abnormal area according to the identification of the current distribution diagram; S144: freeze current abnormal area; S145: defining a plurality of first abnormal factors based on the identification of the current abnormal area; S146: Define a first abnormal event according to a plurality of first abnormal factors and corresponding sub-communication paths.
[0037] In an embodiment of the present application, the current parameters of each receiving node are frozen, so that the current parameters of each receiving node are controlled in an integrated manner. At this time, the current parameters of each receiving node and the corresponding sub-communication path are associated, so as to define a current distribution diagram based on the current parameters of each receiving node and the corresponding sub-communication path, and define a current abnormal area based on the identification of the current distribution diagram, introduce a current abnormal area, perform targeted control on the current abnormal area, and realize further processing of the current abnormal area.
[0038] Therefore, the current abnormal area is fixed; multiple first abnormal factors are defined based on the identification of the current abnormal area; the first abnormal event is defined according to 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.
[0039] refer to Figure 6 , S15: in the sub-communication path, defining a plurality of temperature parameters based on the detection of the communication interface, defining corresponding temperature abnormal parts according to the plurality of temperature parameters, and matching the corresponding second abnormal event based on the temperature abnormal part; In the specific implementation process of the present invention, the specific steps may be: S151: in the sub-communication path, freeze the communication interface; S152: defining a plurality of temperature parameters based on the detection of the communication interface, wherein the plurality of temperature parameters are distributed at different positions of the communication interface; S153: Collecting locations of multiple temperature parameters; S154: defining a corresponding temperature variation based on two adjacent temperature parameters; S155: collecting a plurality of temperature changes, and defining a temperature abnormality location according to the plurality of temperature changes and the locations of the plurality of temperature parameters; S156: defining a corresponding temperature abnormal part based on the positioning detection of the temperature abnormal position; 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.
[0040] In an embodiment of the present application, in the sub-communication path, the communication interface is frozen so that multiple temperature parameters are defined based on the 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.
[0041] At this time, the locations of multiple temperature parameters are collected so that two adjacent temperature parameters can be defined for the locations of the multiple temperature parameters, thereby defining the corresponding temperature change based on the two adjacent temperature parameters, introducing multiple temperature change amounts, and further controlling the multiple temperature change amounts.
[0042] Therefore, multiple temperature changes are collected, and the temperature anomaly position is defined according to the multiple temperature changes and the locations of multiple temperature parameters; the corresponding temperature anomaly part is defined based on the positioning detection of the temperature anomaly position; multiple temperature anomaly parts are collected, and the models of multiple temperature anomaly parts and communication interfaces are associated; the corresponding second abnormal event is matched according to the models of multiple temperature anomaly 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 anomaly parts and communication interfaces, and the second abnormal event is controlled in multiple dimensions to ensure the accuracy of the second abnormal event.
[0043] 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, defining 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; In the specific implementation process of the present invention, the specific steps may be: S161: freeze the second abnormal event and the first abnormal event; S162: Associating the second abnormal event with the first abnormal event; S163: Matching a corresponding abnormal type according to the second abnormal event and the first abnormal event; S164: Define corresponding protection logic according to the exception type and the protection logic table; S165: performing abnormal matching on the second abnormal event and the first abnormal event, and defining corresponding abnormal coefficients; S166: Associating the abnormal coefficient with the protection logic, and defining the protection level of the protection logic according to the abnormal coefficient and the model of the communication interface; S167: Triggering protection of the communication interface based on the protection logic, and performing real-time protection on the communication interface.
[0044] During the specific implementation of the present invention, in the sub-communication path, multiple temperature parameters are defined based on the detection of the communication interface, and corresponding temperature anomalies are defined based on the multiple temperature parameters, and corresponding second abnormal events are matched based on the temperature anomalies to facilitate control of abnormalities at the temperature level. At the same time, the second abnormal event and the first abnormal event are associated, and corresponding abnormal types are matched according to the second abnormal event and the first abnormal event. Corresponding protection logic is defined according to the abnormal type and the protection logic table, and 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 anomalies and temperature anomalies are taken into account, so that multi-dimensional control is performed on the abnormalities of the communication interface, and precise protection of the communication interface under the protection logic is achieved, which continuously ensures the protection effect of the communication interface.
[0045] 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.
[0046] Therefore, the corresponding protection logic is defined 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 defined; the exception coefficient and the protection logic are associated, and the protection level of the protection logic is defined according to the exception coefficient and the model of the communication interface. The protection logic and the corresponding protection level are defined, so that the protection level is managed and controlled under the protection logic, so as to 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.
[0047] 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 path of the communication interface is collected; multiple sub-communication paths are defined based on the division of the communication path, 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; a current abnormal area is defined according to the current parameters of each receiving node and the sub-communication path; multiple first abnormal factors are defined based on the current abnormal area, and a first abnormal event is defined 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.
[0048] In this sub-communication path, multiple temperature parameters are defined based on the detection of the communication interface, and corresponding temperature anomalies are defined based on the multiple temperature parameters. The corresponding second abnormal event is matched based on the temperature anomaly part, so as to control the abnormalities 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 defined 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 anomalies and temperature anomalies are taken into account, so as to control the abnormalities of the communication interface in multiple dimensions, realize precise protection of the communication interface under the protection logic, and continuously ensure the protection effect of the communication interface.
[0049] 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.
[0050] 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: The acquisition module 21 is used to locate the communication interface of the electronic product and acquire the communication path of the communication interface; A division module 22, used to define 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; A current parameter module 23, used to locate each receiving node in the sub-communication path and mark the current parameter of each receiving node; The first abnormal module 24 is used to define a current abnormal area according to the current parameters of each receiving node and the sub-communication path; define a plurality of first abnormal factors based on the current abnormal area, and define a first abnormal event according to the plurality of first abnormal factors; The second abnormal module 25 is used to define a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, define corresponding temperature abnormal parts according to the plurality of temperature parameters, and match the corresponding second abnormal event based on the temperature abnormal parts; The protection module 26 is used to 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, define 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.
[0051] 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. 9The 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.
[0052] like Fig. 9 As shown, the electronic device 40 is in the form of a general 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).
[0053] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.
[0054] 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 .
[0055] 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 an implementation of a network environment.
[0056] 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.
[0057] 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. 9Not 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.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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 withstand limit of all signal ports to above 24V or above 48V without affecting normal signal transmission, which can prevent personnel from mistakenly connecting a voltage above 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.
[0063] 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, and includes a number of 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.
[0064] 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.
[0065] 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: Locate the communication interface of the electronic product and collect the communication path of the communication interface; Defining 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; Locating each receiving node in the sub-communication path and marking the current parameters of each receiving node; Defining a current abnormal area according to the current parameters of each receiving node and the sub-communication path; defining a plurality of first abnormal factors based on the current abnormal area, and defining a first abnormal event according to the plurality of first abnormal factors; In the sub-communication path, a plurality of temperature parameters are defined based on the detection of the communication interface, corresponding temperature abnormality parts are defined according to the plurality of temperature parameters, and a corresponding second abnormal event is matched based on the temperature abnormality parts; 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, define 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.
2. The protection method for the communication interface of an electronic product according to claim 1, characterized in that: The method of locating the communication interface of the electronic product and collecting the communication path of the communication interface includes: Collecting working data of the electronic product, and defining the working status of the electronic product according to the working data of the electronic product; In the working state of the electronic product, the workflow of the electronic product is traversed, and the corresponding communication part is defined according to the workflow of the electronic product; Based on the communication part, the communication interface of the electronic product is located; Freeze the communication interface and trigger communication detection based on the communication interface; In the communication detection of the communication interface, the communication path of the communication interface is collected; the multiple sub-communication paths are defined based on the division of the communication path, and the communication data received by each sub-communication path is marked, including: Fixed frame communication path; traversing the communication path, and defining a plurality of branch points in the traversal of the communication path; Define a partitioning pattern based on multiple branch points and corresponding communication objects; association partitioning patterns and communication paths; defining a plurality of sub-communication paths based on the communication path and the division mode; freeze a plurality of sub-communication paths, and match 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; The communication data is marked.
3. The protection method for the communication interface of an electronic product according to claim 2, characterized in that: The locating each receiving node in the sub-communication path and marking the current parameter of each receiving node includes: Fixed grid communication path; Locating each receiving node based on the traversal of the sub-communication path; Associating multiple receiving nodes and building corresponding receiving paths based on the multiple receiving nodes; Synchronously detect multiple receiving paths and perform current detection on each receiving node; In the current detection of each receiving node, current parameters of each receiving node are collected; Mark the current parameters of each receiving node.
4. The protection method for the communication interface of an electronic product according to claim 3, characterized in that: The current abnormal area is defined according to the current parameters of each receiving node and the sub-communication path; Defining a plurality of first abnormal factors based on the current abnormal area, and defining a first abnormal event according to the plurality of first abnormal factors, includes: Freeze the current parameters of each receiving node; Associating the current parameters of each receiving node and the corresponding sub-communication path; A current distribution map is defined based on current parameters of each receiving node and the corresponding sub-communication path, and a current abnormal area is defined based on the identification of the current distribution map; The abnormal current area is fixed; defining a plurality of first abnormal factors based on identification of the current abnormal region; A first abnormal event is defined according to a plurality of first abnormal factors and corresponding sub-communication paths.
5. The protection method for the communication interface of an electronic product according to claim 4, characterized in that: In the sub-communication path, a plurality of temperature parameters are defined based on the detection of the communication interface, corresponding temperature abnormality parts are defined according to the plurality of temperature parameters, and the corresponding second abnormal event is matched based on the temperature abnormality parts, including: In the sub-communication path, a communication interface is fixed; A plurality of temperature parameters are defined based on the detection of the communication interface. In this case, the plurality of temperature parameters are distributed at different positions of the communication interface. The location where multiple temperature parameters are collected; The corresponding temperature variation is defined based on two adjacent temperature parameters.
6. The protection method for the communication interface of an electronic product according to claim 5, characterized in that: In the sub-communication path, a plurality of temperature parameters are defined based on the detection of the communication interface, and corresponding temperature abnormal parts are defined according to the plurality of temperature parameters, and the corresponding second abnormal event is matched based on the temperature abnormal part, and further includes: Collect multiple temperature changes, and define temperature anomaly locations according to the multiple temperature changes and locations of multiple temperature parameters; Defining a corresponding temperature abnormal part based on the location detection of the temperature abnormal position; Collect multiple temperature abnormal parts, and 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.
7. The method for protecting the communication interface of an electronic product according to claim 6, 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, defining 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, including: 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; Define the corresponding protection logic according to the exception type and protection logic table.
8. The method for protecting the communication interface of an electronic product according to claim 7, 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, defining 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, further includes: Performing abnormal matching on the second abnormal event and the first abnormal event, and defining corresponding abnormal coefficients; Associate the abnormal coefficient and the protection logic, and define 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.
9. 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 8, 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 the communication path of the communication interface; A division module, used for defining 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, 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 define a current abnormal area according to the current parameters of each receiving node and the sub-communication path; define a plurality of first abnormal factors based on the current abnormal area, and define a first abnormal event according to the plurality of first abnormal factors; A second abnormal module is used to define a plurality of temperature parameters based on the detection of the communication interface in the sub-communication path, define corresponding temperature abnormal parts according to the plurality of temperature parameters, and match the corresponding second abnormal event based on the temperature abnormal parts; 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, define 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.
10. A protection circuit for a communication interface of an electronic product, characterized in that: The protection circuit of the communication interface of the electronic product is applied to the protection method of the communication interface of the electronic product as claimed in any one of claims 1 to 8, and the protection circuit of the communication interface of the electronic product comprises: A control unit, wherein a plurality of first pins of the control unit are electrically connected to the communication IO port; A voltage stabilizing diode, wherein a cathode of the voltage stabilizing diode is electrically connected to a plurality of second pins of the control unit; a universal diode, wherein an anode of the universal diode is electrically connected to a plurality of second pins of the control unit; A resettable fuse, wherein a first end of the resettable fuse is electrically connected to a plurality of second pins of the control unit; A resistor, a first end of the resistor being electrically connected to a second end of the resettable fuse; An output port is electrically connected to the second end of the resistor.
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
Systems and methods for testing ground fault circuit interrupter breakers within enclosures
US20170187180A1
Cited By
Current control method and system for power equipment
CN119780788A
