Misplug detection method and apparatus for HDMI device interface, and device and storage medium
By obtaining the cable plug-in signals and target pin signals of the target interface in the HDMI device, the error plug-in status of the interface is automatically judged, and the problem of low error plug-in detection efficiency of the HDMI device interface in the network is solved, and efficient error plug-in detection and precise positioning are achieved.
Patent Information
- Application Number
- PCT/CN2024/090373
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-07
- Filing Date
- 2024-04-28
- Publication Date
- 2025-06-12
AI Technical Summary
During the networking process, the output interface of the HDMI device is the same as the input interface, which is prone to misinterpolation, resulting in low efficiency of misinterpolation detection of interfaces.
By obtaining the cable plug-in signal of the target interface in the HDMI device, determining the cable plug-in result, and combining the target pin signal, automatically judge the false plug-in detection result of the target interface.
It improves the efficiency of the HDMI device interface error detection, can accurately locate the error insertion phenomenon of HDMI devices in the network, and assists the wiring personnel to quickly check the error insertion of cables.
Smart Images

Figure CN2024090373_12062025_PF_FP_ABST
Abstract
Description
HDMI device interface misplug detection method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 2023116876185, filed on December 7, 2023, entitled “HDMI device interface misplugging detection method, apparatus, device and storage medium”, which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates to the technical field of device detection, and in particular to a method, apparatus, device, and storage medium for detecting mis-insertion of an HDMI device interface. Background Art
[0004] When networking multiple HDMI (High Definition Multimedia Interface) devices, it is necessary to connect the output interface of each HDMI device to the input interface of other devices via cables. However, due to the large number of interfaces that need to be connected and the large number of cables that need to be plugged between the interfaces, the interface silkscreen of the output interface or input interface is easily obscured by the cables. At the same time, the input interface of HDMI devices is the same as the output interface, which makes it easy for the output interface and input interface of each HDMI device to be plugged in incorrectly. It is difficult to check each cable one by one, resulting in low efficiency in detecting interface misplugging.
[0005] Summary of the Invention
[0006] The present disclosure provides a method, apparatus, device and storage medium for detecting mis-insertion of an HDMI device interface, to address the defect of low efficiency in detecting mis-insertion of an interface in related technologies.
[0007] The present disclosure provides a method for detecting mis-insertion of an HDMI device interface, which is applied to any high-definition multimedia interface (HDMI) device in a network. The method comprises:
[0008] Obtaining a cable plug signal corresponding to a target interface in the HDMI device;
[0009] Determining a cable plug-in result corresponding to the target interface based on the cable plug-in signal;
[0010] Based on the cable plug-in result and the target pin signal corresponding to the target interface, a misplug detection result corresponding to the target interface is determined.
[0011] The present disclosure also provides a device for detecting mis-insertion of an HDMI device interface, which is applied to any high-definition multimedia interface (HDMI) device in a network. The device comprises:
[0012] An acquisition module configured to acquire a cable plug signal corresponding to a target interface in the HDMI device;
[0013] a determination module configured to determine a cable plug-in result corresponding to the target interface based on the cable plug-in signal;
[0014] The mis-insertion detection module is configured to determine a mis-insertion detection result corresponding to the target interface based on a cable plug-in result and a target pin signal corresponding to the target interface.
[0015] The present disclosure also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for detecting mis-insertion of an HDMI device interface as described above is implemented.
[0016] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for detecting mis-insertion of an HDMI device interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] FIG1 is a flow chart of a method for detecting mis-insertion of an HDMI device interface provided by an embodiment of the present disclosure;
[0018] FIG2 is a connection diagram of a target interface provided by an embodiment of the present disclosure;
[0019] FIG3 is a schematic diagram of a mis-insertion detection process of an output interface provided by an embodiment of the present disclosure;
[0020] FIG4 is a schematic diagram of a mis-insertion detection process of an input interface provided by an embodiment of the present disclosure;
[0021] FIG5 is a schematic structural diagram of an apparatus for detecting mis-insertion of an HDMI device interface provided by an embodiment of the present disclosure;
[0022] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The present disclosure provides a method for detecting mis-insertion of an HDMI device interface, which is applied to any HDMI (High Definition Multimedia Interface) device in a network. FIG1 is a flow chart of the method for detecting mis-insertion of an HDMI device interface provided by the present disclosure. As shown in FIG1 , the method includes:
[0024] Step 110: Obtain a cable plug signal PLUG_DETECT corresponding to the target interface in the HDMI device.
[0025] Optionally, the target interface can be an output interface or an input interface of an HDMI device. There is no male-female distinction between the output interface and the input interface. When the HDMI devices are networked, the interface can only be distinguished as an output interface or an input interface by the interface silk screen. The target interface is an HDMI connector. Figure 2 is a connection diagram of the target interface provided by an embodiment of the present disclosure. As shown in Figure 2, an insertion detection mechanism is provided in the target interface, and the insertion detection mechanism can be a reed or a relay. When the insertion detection mechanism is a reed, one end of the reed is connected to one end of the pull-up resistor R1 and the processor in the HDMI device. The reed is a spring, and different connection states of the other end of the reed and the ground end correspond to different cable plug-in signals PLUG_DETECT, and thus correspond to different cable plug-in results in the target interface. When the insertion detection mechanism is a relay, the first end of the relay is connected to one end of the pull-up resistor R1 and the processor in the HDMI device, and the second end of the relay is connected to the ground end. Different states of the relay correspond to different cable plug-in signals PLUG_DETECT, and thus correspond to different cable plug-in results in the target interface.
[0026] Optionally, the processor may be a CPU (Central Processing Unit) or an MCU (Micro Controller Unit).
[0027] Step 120: Determine a cable plug result corresponding to the target interface based on the cable plug signal PLUG_DETECT.
[0028] Specifically, after obtaining the cable plug signal PLUG_DETECT corresponding to the target interface, the cable plug result corresponding to the target interface can be determined through the level change of the cable plug signal PLUG_DETECT, that is, it is determined whether a cable is inserted into the target interface.
[0029] Furthermore, determining the cable plug result corresponding to the target interface based on the cable plug signal PLUG_DETECT includes:
[0030] Get the preset cable plug signal PLUG_DETECT;
[0031] The cable plug signal PLUG_DETECT is matched with the preset cable plug signal, and a cable plug result corresponding to the target interface is determined based on the matching result.
[0032] Specifically, when the cable plug-in signal PLUG_DETECT matches the preset cable plug-in signal PLUG_DETECT, the cable plug-in result corresponding to the target interface is determined to be that no cable is inserted into the target interface; when the cable plug-in signal PLUG_DETECT does not match the preset cable plug-in signal PLUG_DETECT, the cable plug-in result corresponding to the target interface is determined to be that a cable is inserted into the target interface.
[0033] For example, as shown in Figure 2, when the insertion detection mechanism is a reed, in the initial state, when no cable is inserted into the target interface of the HDMI device, the other end of the reed tilts upward, that is, the other end of the reed is disconnected from the ground terminal. At this time, due to the power supply of the 3.3V power supply VDD3V3 and the voltage divider effect of the pull-up resistor R1, the cable plug signal PLUG_DETECT detected by the processor is a high-level signal. After the cable is inserted into the target interface, the other end of the reed is pressed down to the ground terminal to connect. At this time, the ground terminal pulls the cable plug signal PLUG_DETECT down to a low-level signal. When the insertion detection mechanism is a relay, the relay may be in the initial state, at which point the cable plug signal PLUG_DETECT detected by the processor is a high-level signal. After the cable is inserted into the target interface, the relay is closed, at which point the cable plug signal PLUG_DETECT detected by the processor is a low-level signal. That is, the preset cable plug-in signal PLUG_DETECT in the initial state is obtained, and the preset cable plug-in signal PLUG_DETECT is a high-level signal. If it is detected that the cable plug-in signal PLUG_DETECT and the preset cable plug-in signal PLUG_DETECT are both high-level signals, it can be determined that the cable plug-in result is that no cable is inserted into the target interface. If it is detected that the cable plug-in signal PLUG_DETECT does not match the preset cable plug-in signal PLUG_DETECT, and the cable plug-in signal PLUG_DETECT is a low-level signal, it can be determined that the cable plug-in result is that a cable is inserted into the target interface.
[0034] Step 130: Determine a mis-insertion detection result corresponding to the target interface based on the cable plug-in result and the target pin signal corresponding to the target interface.
[0035] Specifically, when the cable plug-in results corresponding to the target interface are different, the target pin signal corresponding to the target interface is different. Combining the cable plug-in results and the target pin signal, the misplugging detection result corresponding to the target interface can be determined, that is, whether the target interface has a misplugging phenomenon. If there is a misplugging phenomenon, the corresponding misplugging status can be further determined.
[0036] Furthermore, the determining of the mis-insertion detection result corresponding to the target interface based on the cable plug-in result and the target pin signal corresponding to the target interface includes:
[0037] Determining a power switch state corresponding to the target interface based on a cable plug-in result corresponding to the target interface;
[0038] Determining a target pin signal corresponding to the target interface based on the power switch state and the cable plugging result;
[0039] Based on the target pin signal, a misinsertion detection result corresponding to the target interface is determined.
[0040] Specifically, the target interface is connected to a 5V power supply DDC_5V through a power switch. When the cable plug-in results corresponding to the target interface are different, the power switch state of the power switch is different. After combining the power switch state and the cable plug-in results, different target pin signals can be combined to obtain different target pin signals. Then, based on the target pin signal, it can be judged whether the target interface has a misplugging phenomenon. If a misplugging phenomenon exists, the target pin signal can be further used to accurately locate the misplugging state to assist the wiring personnel in correcting the misplugging.
[0041] Furthermore, the determining of the power switch state corresponding to the target interface based on the cable plug-in result corresponding to the target interface includes:
[0042] When the cable plugging result is that the target interface is plugged with a cable, determining that the power switch state corresponding to the target interface is a closed state;
[0043] When the cable plugging result is that no cable is inserted into the target interface, it is determined that the power switch state corresponding to the target interface is an off state.
[0044] Specifically, if the cable plug-in result indicates that a cable is plugged into the target interface, the processor may control the power switch connected to the target interface to be in a closed state, that is, to connect the circuit between the 5V power supply DDC_5V and the target interface. If the cable plug-in result indicates that a cable is not plugged into the target interface, the processor may control the power switch connected to the target interface to be in an open state, that is, to disconnect the circuit between the 5V power supply DDC_5V and the target interface.
[0045] Furthermore, the determining the target pin signal corresponding to the target interface based on the power switch state and the cable plugging result includes:
[0046] Determining a power supply signal in the target pin signal based on the power switch state;
[0047] Based on the cable plug-in result and the power supply signal, a hot plug detection signal in the target pin signal is determined.
[0048] Specifically, the target interface is an HDMI connector, and the target pin signal includes a power supply signal and a hot plug detection (HPD) signal, and the power supply signal can be obtained from pin 18 of the HDMI connector. For example, in the initial state, the power supply signal corresponding to the target interface defaults to a low-level signal. If the target interface is an output interface, after the power switch connected to the output interface is in a closed state, the 5V power supply DDC_5V of the output interface pulls up the power supply signal of the output interface to a high-level signal. At the same time, the 5V power supply DDC_5V of the output interface supplies power to the 5V power supply DDC_5V in the opposite interface through the cable. It should be noted that after the output interface is inserted into the cable, regardless of whether the opposite interface is connected, the power supply signal of the output interface will be pulled up to a high-level signal. If the target interface is an input interface, and the power switch connected to the input interface is in the closed state, the input interface receives the power supply signal output by the 5V power supply DDC_5V of the opposite interface through pin 18, thereby pulling the power supply signal of the input interface to a high level signal. It should be noted that the power supply signal of the input interface will only be pulled to a high level signal when the opposite interface connected to the input interface is an output interface. In addition, regardless of whether the target interface is an input interface or an output interface, if the target interface is not plugged into a cable, the power supply signal corresponding to the target interface is a low level signal.
[0049] In addition, the HPD signal can be obtained from pin 19 of the HDMI connector. For example, in the initial state, the HPD signal corresponding to the target interface is a low-level signal. If the target interface is an input interface, the power supply signal at the input interface is pulled up to a high-level signal, and the power supply signal can pull up the HPD signal of the input interface to a high-level signal. If the target interface is an output interface, the HPD signal of the output interface will be pulled up to a high-level signal by the HPD signal of the input interface only when the interface on the opposite side connected to the output interface is an input interface. In other cases, the HPD signal of the output interface is a low-level signal.
[0050] Furthermore, determining the misinsertion detection result corresponding to the target interface based on the target pin signal includes:
[0051] Obtaining a preset pin signal list, wherein the preset pin signal list includes a correspondence between pin signals and plug-in states;
[0052] Based on the correspondence between the pin signals and the plugging states in the preset pin signal list, the plugging state corresponding to the pin signal matching the target pin signal is determined as the misplugging detection result corresponding to the target interface.
[0053] Specifically, after determining the target pin signal, a preset pin signal list can be obtained, which includes the correspondence between the plug-in state and the pin signal. The target pin signal is matched with each pin signal in the preset pin signal list. After matching the pin signal identical to the target pin signal, based on the correspondence between the plug-in state and the pin signal, the plug-in state corresponding to the pin signal is determined as the misplugging detection result corresponding to the target interface. If the plug-in state is an output-to-input state, it indicates that there is no misplugging phenomenon in the target interface. If the plug-in state is a state other than the output-to-input state, it indicates that there is a misplugging phenomenon in the target interface, and the specific misplugging state can be determined based on the plug-in state, thereby achieving accurate positioning of the misplugging.
[0054] Optionally, the preset pin signal list is shown in Table 1. As can be seen from Table 1, the plug-in state may include an output-connected-input state, an output-connected-output state, an input-connected-input state, an output-disconnected state, and an input-disconnected state, wherein:
[0055] (1) The output-to-input state is a correctly plugged-in state, indicating that the output interface of the HDMI device is connected to the input interface of another HDMI device through a cable, or the input interface of the HDMI device is connected to the output interface of another HDMI device through a cable. Taking the output interface of the HDMI device as an example of being connected to the input interface of another HDMI device through a cable, after the output interface is plugged into the cable, the power switch corresponding to the output interface is in a closed state, and the 5V power supply DDC_5V of the output interface pulls up the power supply signal of the output interface to a high-level signal. At the same time, the 5V power supply DDC_5V of the output interface supplies power to the 5V power supply DDC_5V in the input interface of another HDMI device through the cable. The 5V power supply DDC_5V pulls up the power supply signal of the input interface to a high-level signal. At the same time, the 5V power supply DDC_5V of the input interface pulls up the HPD signal of the input interface to a high-level signal. The HPD signal of the input interface pulls up the HPD signal of the output interface to a high-level signal.
[0056] (2) The output-to-output state is mis-inserted, indicating that the output interface of the HDMI device is connected to the output interface of another HDMI device via a cable. After the cable is inserted between the two output interfaces, the power switch corresponding to each output interface is in the closed state, and the 5V power supply DDC_5V pulls the power supply signal of the output interface high. Since there is no HPD signal from the input interface to pull up the HPD signal of each output interface, the HPD signals corresponding to the two output interfaces each maintain a low level signal.
[0057] (3) The input-to-input state is a mis-insertion state, indicating that the input interface of the HDMI device is connected to the input interface of another HDMI device through a cable. After the cable is inserted between the two input interfaces, the power switch corresponding to each input interface is in the closed state, but there is no output interface to supply power to the 5V power supply DDC_5V of each input interface. Therefore, the power supply signals of the two input interfaces are maintained as low-level signals. At the same time, since the power supply signals of the two input interfaces are both low-level signals, the HPD signals of the input interfaces cannot be pulled high. Therefore, the HPD signals corresponding to the two input interfaces are both maintained as low-level signals.
[0058] (4) The output disconnected state is a mis-insertion state, indicating that a cable is inserted into the output interface of the HDMI device, but the other end of the cable is not connected to any HDMI device. At this time, since the output interface is inserted into the cable, the power switch corresponding to the output interface is in the closed state, and the 5V power supply DDC_5V pulls the power supply signal of the output interface to a high-level signal. At the same time, since no HDMI device is connected to the other end of the cable, there is no HPD signal from the input interface to pull up the HPD signal of the output interface. Therefore, the HPD signal of the output interface remains a low-level signal.
[0059] (5) The input disconnected state is a mis-insertion state, indicating that a cable is inserted into the input interface of the HDMI device, but the other end of the cable is not connected to any HDMI device. At this time, since the input interface is plugged into the cable, the power switch corresponding to the input interface is in the closed state, but there is no output interface to supply power to the 5V power supply DDC_5V of the input interface. Therefore, the power supply signal of the input interface maintains a low-level signal. At the same time, since the power supply signal of the input interface is a low-level signal, the HPD signal of the input interface cannot be pulled high. Therefore, the HPD signals corresponding to the input interfaces maintain a low-level signal.
[0060] Table 1
[0061] In addition, as shown in Table 1, when the plug-in state is input-to-input state and input-not-connected state, the pin signals are the same; when the plug-in state is output-to-output state and output-not-connected state, the pin signals are the same. At this time, the cable plug-in results can be combined for distinction.
[0062] Furthermore, the method further comprises:
[0063] When the cable plugging result indicates that no cable is plugged into the target interface, or when the misplugging detection result indicates that the target interface is misplugged, an alarm message is generated and sent to an alarm device.
[0064] Specifically, if a cable is not inserted into the target interface, or if the mis-insertion detection determines that the target interface is mis-inserted, an alarm message can be generated and sent to an alarm device to remind the wiring operator to insert a cable or that the cable connection is abnormal. The alarm device can be a prompt light, a buzzer, an intelligent voice broadcast device, etc.
[0065] For example, FIG3 is a schematic diagram of the mis-insertion detection process of the output interface provided by the embodiment of the present disclosure. As shown in FIG3, when it is determined that the target interface of the HDMI device is an output interface, the cable plug-in signal PLUG_DETECT corresponding to the output interface is first obtained through the insertion detection mechanism. If the cable plug-in signal PLUG_DETECT is a high-level signal, it indicates that the cable plug-in result corresponding to the output interface is that the cable is not inserted. At this time, an alarm message can be generated, and the wiring personnel can be reminded to insert the cable through the alarm device. If the cable plug-in signal PLUG_DETECT is a low-level signal, it indicates that the cable plug-in result corresponding to the output interface is that the cable is inserted. Then, the power switch of the output interface is closed, and the power supply signal and HPD signal of the output interface are further obtained. If the power supply signal and the HPD signal are both high-level signals, it can be determined that the connection interface on the opposite side is an input interface. At this time, it is in the output-to-input state, which is a correct plug-in state and no alarm is required. If the power supply signal is a high-level signal and the HPD signal is a low-level signal, it can be determined that the connection interface on the opposite side is an output interface. At this time, it is in an output-to-output state, which is a misplug state. An alarm message needs to be generated to remind the wiring personnel that the wiring is abnormal.
[0066] For example, FIG4 is a schematic diagram of the mis-insertion detection process of the input interface provided by the embodiment of the present disclosure. As shown in FIG4, when it is determined that the target interface of the HDMI device is an input interface, the cable plug-in signal PLUG_DETECT corresponding to the input interface is first obtained through the insertion detection mechanism. If the cable plug-in signal PLUG_DETECT is a high-level signal, it indicates that the cable plug-in result corresponding to the input interface is that the cable is not inserted. At this time, an alarm message can be generated, and the wiring personnel can be reminded to insert the cable through the alarm device. If the cable plug-in signal PLUG_DETECT is a low-level signal, it indicates that the cable plug-in result corresponding to the input interface is that the cable is inserted, then the power switch of the input interface is closed, and the power supply signal of the input interface is further obtained. If the power supply signal is a high-level signal, it can be determined that the connection interface on the opposite side is an output interface. At this time, it is in the correct plug-in state and no alarm is required. If the power supply signal is a low-level signal, it can be determined that the connection interface on the opposite side is an input interface or the HDMI device on the opposite side is not turned on. An alarm message needs to be generated to remind the wiring personnel that the wiring is abnormal.
[0067] The HDMI device interface mis-insertion detection method provided by the embodiment of the present disclosure, after obtaining the cable plug-in signal PLUG_DETECT corresponding to the target interface in the HDMI device, determines the cable plug-in result corresponding to the target interface through the level change of the cable plug-in signal PLUG_DETECT, and automatically determines the mis-insertion detection result corresponding to the target interface in combination with the cable plug-in result and the target pin signal corresponding to the target interface, that is, automatically determines whether the target interface is correctly plugged or in various mis-insertion states, improves the efficiency of mis-insertion detection, and accurately locates the mis-insertion phenomenon of HDMI devices in the network, assisting wiring personnel to quickly check for cable mis-insertion.
[0068] The following describes an apparatus for detecting mis-insertion of an HDMI device interface provided by the present disclosure. The apparatus for detecting mis-insertion of an HDMI device interface described below and the method for detecting mis-insertion of an HDMI device interface described above can refer to each other.
[0069] The present disclosure also provides an HDMI device interface mis-insertion detection device, which is applied to any high-definition multimedia interface (HDMI) device in a network. FIG5 is a schematic structural diagram of the HDMI device interface mis-insertion detection device provided by the present disclosure. As shown in FIG5 , the HDMI device interface mis-insertion detection device 500 includes: an acquisition module 510, a determination module 520, and a mis-insertion detection module 530, wherein:
[0070] An acquisition module 510 is configured to acquire a cable plug signal PLUG_DETECT corresponding to a target interface in the HDMI device;
[0071] A determination module 520 is configured to determine a cable plug result corresponding to the target interface based on the cable plug signal PLUG_DETECT;
[0072] The mis-insertion detection module 530 is configured to determine a mis-insertion detection result corresponding to the target interface based on the cable plug-in result and the target pin signal corresponding to the target interface.
[0073] The HDMI device interface mis-insertion detection device provided by the embodiment of the present disclosure, after obtaining the cable plug-in signal PLUG_DETECT corresponding to the target interface in the HDMI device, determines the cable plug-in result corresponding to the target interface through the level change of the cable plug-in signal PLUG_DETECT, and automatically determines the mis-insertion detection result corresponding to the target interface in combination with the cable plug-in result and the target pin signal corresponding to the target interface, that is, automatically determines whether the target interface is correctly plugged or in various mis-insertion states, improves the efficiency of mis-insertion detection, and accurately locates the mis-insertion phenomenon of HDMI devices in the network, assisting wiring personnel to quickly check for cable mis-insertion.
[0074] Optionally, the misinsertion detection module 530 is specifically configured as follows:
[0075] Determining a power switch state corresponding to the target interface based on a cable plug-in result corresponding to the target interface;
[0076] Determining a target pin signal corresponding to the target interface based on the power switch state and the cable plugging result;
[0077] Based on the target pin signal, a misinsertion detection result corresponding to the target interface is determined.
[0078] Optionally, the misinsertion detection module 530 is specifically configured as follows:
[0079] When the cable plugging result is that the target interface is plugged with a cable, determining that the power switch state corresponding to the target interface is a closed state;
[0080] When the cable plugging result is that no cable is inserted into the target interface, it is determined that the power switch state corresponding to the target interface is an off state.
[0081] Optionally, the misinsertion detection module 530 is specifically configured as follows:
[0082] Determining a power supply signal in the target pin signal based on the power switch state;
[0083] Based on the cable plug-in result and the power supply signal, a hot plug detection signal in the target pin signal is determined.
[0084] Optionally, the misinsertion detection module 530 is specifically configured as follows:
[0085] Obtaining a preset pin signal list, wherein the preset pin signal list includes a correspondence between pin signals and plug-in states;
[0086] Based on the correspondence between the pin signals and the plugging states in the preset pin signal list, the plugging state corresponding to the pin signal matching the target pin signal is determined as the misplugging detection result corresponding to the target interface.
[0087] Optionally, the determination module 520 is specifically configured as follows:
[0088] The cable plug signal PLUG_DETECT is matched with the preset cable plug signal, and a cable plug result corresponding to the target interface is determined based on the matching result.
[0089] Optionally, the HDMI device interface mis-insertion detection apparatus 500 further includes an alarm module, and the alarm module is specifically configured as follows:
[0090] When the cable plugging result indicates that no cable is plugged into the target interface, or when the misplugging detection result indicates that the target interface is misplugged, an alarm message is generated and sent to an alarm device.
[0091] FIG6 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG6 , the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640. The processor 610, the communication interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the HDMI device interface misplugging detection method, which includes:
[0092] Obtain a cable plug signal PLUG_DETECT corresponding to a target interface in the HDMI device;
[0093] Determining a cable plug result corresponding to the target interface based on the cable plug signal PLUG_DETECT;
[0094] Based on the cable plug-in result and the target pin signal corresponding to the target interface, a misplug detection result corresponding to the target interface is determined.
[0095] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the relevant technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, etc., each medium that can store program code.
[0096] On the other hand, the present disclosure further provides a computer program product, which includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the HDMI device interface misplugging detection method provided by the above method, which includes:
[0097] Obtain a cable plug signal PLUG_DETECT corresponding to a target interface in the HDMI device;
[0098] Determining a cable plug result corresponding to the target interface based on the cable plug signal PLUG_DETECT;
[0099] Based on the cable plug-in result and the target pin signal corresponding to the target interface, a misplug detection result corresponding to the target interface is determined.
[0100] In another aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program is implemented to perform the HDMI device interface mis-insertion detection method provided by the above method, the method comprising:
[0101] Obtain a cable plug signal PLUG_DETECT corresponding to a target interface in the HDMI device;
[0102] Determining a cable plug result corresponding to the target interface based on the cable plug signal PLUG_DETECT;
[0103] Based on the cable plug-in result and the target pin signal corresponding to the target interface, a misplug detection result corresponding to the target interface is determined.
[0104] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0105] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus the necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the relevant technology can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in each embodiment or certain parts of the embodiment.
[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in each of the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for detecting mis-insertion of an HDMI device interface, applied to any high-definition multimedia interface HDMI device in a network, the method comprising: Obtaining a cable plug-in signal corresponding to a target interface in the HDMI device; Determining a cable plug-in result corresponding to the target interface based on the cable plug-in signal; Based on the cable plug-in result and the target pin signal corresponding to the target interface, a misplug-in detection result corresponding to the target interface is determined.
2. The method for detecting mis-insertion of an HDMI device interface according to claim 1, wherein: The determining, based on the cable plug-in result and the target pin signal corresponding to the target interface, a misplug-in detection result corresponding to the target interface includes: Determine the power switch state corresponding to the target interface based on the cable plug-in result corresponding to the target interface; Determining a target pin signal corresponding to the target interface based on the power switch state and the cable plugging result; Based on the target pin signal, a misinsertion detection result corresponding to the target interface is determined.
3. The method for detecting mis-insertion of an HDMI device interface according to claim 2, wherein: The determining, based on the cable plug-in result corresponding to the target interface, the power switch state corresponding to the target interface includes: When the cable plugging result is that the target interface is plugged with a cable, determining that the power switch state corresponding to the target interface is a closed state; When the cable plugging result is that no cable is inserted into the target interface, it is determined that the power switch state corresponding to the target interface is an off state.
4. The method for detecting mis-insertion of an HDMI device interface according to claim 2, wherein: The determining, based on the power switch state and the cable plugging result, a target pin signal corresponding to the target interface includes: Based on the power switch state, determining a power supply signal in the target pin signal; Based on the cable plug-in result and the power supply signal, a hot plug detection signal in the target pin signal is determined.
5. The method for detecting mis-insertion of an HDMI device interface according to claim 2, wherein: The determining, based on the target pin signal, a misinsertion detection result corresponding to the target interface includes: Obtaining a preset pin signal list, wherein the preset pin signal list includes a correspondence between pin signals and plug-in states; Based on the correspondence between the pin signals and the plugging states in the preset pin signal list, the plugging state corresponding to the pin signal matching the target pin signal is determined as the misplugging detection result corresponding to the target interface.
6. The method for detecting mis-insertion of an HDMI device interface according to any one of claims 1 to 5, wherein: The determining, based on the cable plug-in signal, a cable plug-in result corresponding to the target interface includes: Get the preset cable plug signal; The cable plug-in signal is matched with the preset cable plug-in signal, and a cable plug-in result corresponding to the target interface is determined based on the matching result.
7. The method for detecting mis-insertion of an HDMI device interface according to any one of claims 1 to 5, wherein: The method further comprises: When the cable plugging result indicates that the target interface is not plugged with a cable, or when the misplugging detection result indicates that the target interface is misplugged, alarm information is generated and sent to an alarm device.
8. A HDMI device interface mis-insertion detection device, applied to any high-definition multimedia interface HDMI device in a network, the device comprising: An acquisition module configured to acquire a cable plug-in signal corresponding to a target interface in the HDMI device; A determination module, configured to determine a cable plug-in result corresponding to the target interface based on the cable plug-in signal; The mis-insertion detection module is configured to determine a mis-insertion detection result corresponding to the target interface based on a cable plug-in result and a target pin signal corresponding to the target interface.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the HDMI device interface mis-insertion detection method as claimed in any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the HDMI device interface mis-insertion detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Prompting method and device for preventing preventing wrong insertion of USB interface and electronic equipment
CN112579500A
Cable misplug identification method and device, electronic equipment and storage medium
CN115328716A
HDMI equipment interface misplug detection method and device, equipment and storage medium
CN117706431A
Error insert analogue device of computer test
CN2874629Y
High-definition multimedia interface (HDMI) receiver apparatuses, HDMI systems using the same, and control methods therefor
US20130219087A1