Interface on-off control device, method and system

Through the combination of control relays and multi-directional switches, the millisecond-level on-off control of the interface is realized, which solves the time-consuming and labor-intensive and equipment damage caused by frequent plug-ins and unplugging, and realizes custom on-off time and type control, which is suitable for simulating complex scene logic.

CN112817892BActive Publication Date: 2025-03-28SAIC MOTOR OVERSEAS INTELLIGENT MOBILITY TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110318228.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-25
Publication Date
2025-03-28
Estimated Expiration
2041-03-25

AI Technical Summary

Technical Problem

The prior art often plugs and unplugs USB flash drives and other interface devices, which are time-consuming and labor-intensive and easy to damage the equipment and interfaces, and cannot realize custom on-off time and type control, making it difficult to simulate complex scene logic.

Method used

The control relay scheme is adopted to realize millisecond-level interface on-off control through multi-directional switches, avoid frequent plug-ins and unplugs, and support custom on-off time and type control.

Benefits of technology

It realizes time-saving and labor-saving interface on-off operation, reduces the risk of damage to equipment and interfaces, and can simulate the control of complex scene logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112817892B_ABST
    Figure CN112817892B_ABST
Patent Text Reader

Abstract

The present invention relates to an interface on-off control device, method and system. The device of the present invention includes a control relay, multiple interfaces and a controller; the multiple interfaces are respectively connected to the control relay, and one of the multiple interfaces is also connected to the controller; wherein the control relay includes a multi-directional switch, and the controller controls the multi-directional switch of the control relay so that the corresponding connections between the multiple interfaces are connected or disconnected. The present invention adopts a control relay solution, which can achieve millisecond-level on-off control, does not require frequent plugging and unplugging of equipment, saves time and labor, and is not easy to cause damage to the equipment and the corresponding interfaces. It can also achieve control of customized on-off time and on-off type, so as to simulate the control of complex scene logic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an interface on-off control device, method and system. Background Art

[0002] Currently, there are various demands for interface on / off control.

[0003] First, the in-car entertainment system is usually upgraded using a USB flash drive. Currently, the USB flash drive is usually inserted into the computer first, the upgrade software package is copied to the USB flash drive via the computer, and then the USB flash drive is inserted into the in-car entertainment system to upgrade the in-car entertainment system. In addition, the in-car entertainment system usually inserts a USB flash drive to play audio and video files. During the research and development and testing phase of the Internet of Vehicles, the in-car entertainment system needs to be frequently upgraded, and it is necessary to verify whether the playback of audio and video files in various formats is normal. However, if the USB flash drive is frequently plugged in and out, it is not only time-consuming and laborious, but also easy to cause damage to the USB flash drive and the corresponding interface.

[0004] Second, in general scenarios, USB interface devices and HDMI interface devices need to be stress tested, such as 100,000 plug-in and pull-out stress tests for USB flash drives, 100,000 power on and off stress tests for mobile phones, tablets, cameras, etc., and 100,000 plug-in and pull-out stress tests for HDMI interface devices. Similarly, if devices are frequently plugged in and out manually or mechanically, it is not only time-consuming and laborious, but also easy to cause damage to the devices and corresponding interfaces. In addition, it is impossible to achieve custom on-off time and on-off type control, so it is impossible to simulate the control of complex scene logic. Summary of the invention

[0005] The purpose of the present invention is to provide an interface on-off control device, method and system, which adopts a control relay solution to achieve millisecond-level on-off control, does not require frequent plugging and unplugging of equipment, saves time and effort, and is not easy to cause damage to the equipment and the corresponding interface. It can also realize customized on-off time and on-off type control, thereby simulating the control of complex scene logic.

[0006] The present invention discloses an interface on-off control device, which comprises a control relay, a plurality of interfaces and a controller; the plurality of interfaces are respectively connected to the control relay, and one of the plurality of interfaces is also connected to the controller;

[0007] The control relay includes a multidirectional switch, and the controller controls the multidirectional switch of the control relay so that corresponding connections between the multiple interfaces are connected or disconnected.

[0008] Optionally, the plurality of interfaces include first to third interfaces, and the multi-directional switch includes a three-directional switch.

[0009] Optionally, the control relay is a first control relay, and the device further includes second to nth control relays, and the plurality of interfaces further include fourth to mth interfaces;

[0010] The first interface is connected to the first to nth control relays respectively, the second interface and the third interface are connected to the first control relay, the fourth interface and the fifth interface are connected to the second control relay, and so on, the m-1th interface and the mth interface are connected to the nth control relay, and the third interface is also connected to the controller, the fifth interface is also connected to the controller, and so on, the mth interface is also connected to the controller;

[0011] The first to nth control relays respectively include first to nth three-way switches, and the controller respectively controls the first to nth three-way switches of the first to nth control relays so that corresponding connections between the multiple interfaces are connected or disconnected.

[0012] Optionally, the multiple interfaces include USB interfaces, each USB interface includes a power line and a data line, and the corresponding connections between the multiple interfaces include a single power line connection, a single data line connection or a full line connection.

[0013] Optionally, the control relay includes a program control relay, a serial port control relay or a level switch control relay.

[0014] The present invention discloses an interface on-off control method for an interface on-off control device, wherein the interface on-off control device is the interface on-off control device as described above, and the method comprises:

[0015] Receiving control parameters, wherein the control parameters include disconnection time, connection time, number of cycles and on-off type;

[0016] The interface is controlled on and off according to the disconnection time, the connection time and the on and off type, and when the number of cycles is 0, the interface is no longer controlled on and off.

[0017] Optionally, the on-off type includes single power line on-off, single data line on-off or all line on-off.

[0018] Optionally, the on-off type is a random parameter to randomly select on-off of a single power line, on-off of a single data line, or on-off of all lines.

[0019] Optionally, for multiple interfaces, on / off control is performed on each of the multiple interfaces in turn.

[0020] Optionally, for multiple interfaces, the multiple interfaces are grouped, and each interface in each group is controlled to be on and off.

[0021] Optionally, for a plurality of interfaces, one or more interfaces among the plurality of interfaces are randomly selected as a control group, and on / off control is performed on each interface in the control group.

[0022] The present invention discloses an interface on-off control system, which comprises a plurality of devices and an interface on-off control device as described above; wherein the interface on-off control device is connected to the plurality of devices respectively.

[0023] Compared with the prior art, the present invention has the following main differences and effects:

[0024] Compared with manual or mechanical solutions for on-off control in seconds, the interface on-off control device, method and system of the present invention adopt a control relay solution, which can achieve millisecond-level on-off control. It does not require frequent plugging and unplugging of equipment, saves time and effort, and is not easy to cause damage to the equipment and corresponding interfaces. It can also realize customized on-off time and on-off type control, thereby simulating the control of complex scene logic. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a schematic diagram of an interface on-off control device according to the present invention;

[0026] Figure 2 is a schematic diagram of an interface on-off control system according to the present invention;

[0027] Figure 3 is a schematic diagram of an interface on-off control device using a cascade mode according to the present invention;

[0028] Figure 4 is a flow chart of a single-interface cyclic on-off control method according to the present invention;

[0029] Figure 5 is a flow chart of a single-interface random on-off control method according to the present invention;

[0030] Figure 6 It is a flow chart of determining a control group in the multi-interface random combination on-off control method according to the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose and technical solution of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment 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.

[0032] An embodiment of the present invention relates to an interface on-off control device. The interface on-off control device includes a control relay, a plurality of interfaces and a controller. The plurality of interfaces are respectively connected to the control relay, and one of the plurality of interfaces is also connected to the controller. The control relay includes a multidirectional switch, and the controller controls the multidirectional switch of the control relay so that the corresponding connections between the plurality of interfaces are connected or disconnected.

[0033] The multiple interfaces include USB interfaces, each USB interface includes a power line and a data line, and the corresponding connections between the multiple interfaces include a single power line connection, a single data line connection, or a full line connection, so that a single power line on / off, a single data line on / off, or a full line on / off can be achieved. It is understandable that the multiple interfaces may also include HDMI interfaces or other types of interfaces.

[0034] The control relay includes a program control relay, a serial port control relay or a level switch control relay. It is understandable that the control relay may also include other types of control relays.

[0035] The controller includes an electronic device with control function such as a desktop computer, a laptop computer, a portable or mobile device, a mobile phone, a smart phone, a tablet computer, or a receiver capable of receiving control signals from the above electronic devices to achieve remote control.

[0036] Figure 1 Schematic diagram of the interface on-off control device according to the present invention. Figure 1 As shown, the interface on-off control device 100 includes a control relay 101, first to third interfaces 102a, 102b, 102c and a controller 103. The first to third interfaces 102a, 102b, 102c are respectively connected to the control relay 101, and the third interface 102c among the first to third interfaces 102a, 102b, 102c is also connected to the controller 103. Among them, the control relay 101 includes a three-way switch 104, and the controller 103 controls the three-way switch 104 of the control relay 101 so that the corresponding connections between the first to third interfaces 102a, 102b, 102c are connected or disconnected.

[0037] Understandably, Figure 1 The first to third interfaces 102a, 102b, 102c and the three-way switch 104 are only for illustration, and do not limit the number of the multiple interfaces and the multi-way switch. For example, the multiple interfaces may include more interfaces, and the multi-way switch corresponds to the number of the multiple interfaces.

[0038] like Figure 1As shown, the controller 103 can control the three nodes 1, 2, and 3 of the three-way switch 104 to close and open, and the closing logic includes 1-2 connection, 2-3 connection, and 3-1 connection. When 1-2 is connected, the first interface 102a is connected to the second interface 102b; when 2-3 is connected, the second interface 102b is connected to the third interface 102c; when 3-1 is connected, the third interface 102c is connected to the first interface 102a; wherein the connection here includes a single power line connection, a single data line connection, or a full line connection.

[0039] Compared with manual or mechanical solutions for on-off control in seconds, the interface on-off control device of the present invention adopts a control relay solution, which can achieve millisecond-level on-off control, and can achieve on-off control of a single power line connection, a single data line connection or a full line connection between multiple interfaces, thereby simulating the control of complex scene logic.

[0040] The embodiment of the present invention relates to an interface on-off control system. The interface on-off control system comprises a plurality of devices and an interface on-off control device as described above. The interface on-off control device is respectively connected to the plurality of devices.

[0041] Figure 2 Schematic diagram of the interface on-off control system according to the present invention. Figure 2 As shown, the interface on-off control system 200 includes a first device 201, a second device 202 and an interface on-off control apparatus 100. The interface on-off control apparatus 100 is connected to the first device 201 and the second device 202 respectively.

[0042] The interface on-off control device 100 includes a control relay 101, first to third interfaces 102a, 102b, 102c and a controller 103 (e.g., a laptop computer). The control relay 101 includes a three-way switch 104. The first to third interfaces 102a, 102b, 102c are respectively connected to the control relay 101, and the third interface 102c is also connected to the controller 103. The interface on-off control device 100 is connected to a first device 201 via a first interface 102a, and the interface on-off control device 100 is connected to a second device 202 via a second interface 102b.

[0043] Understandably, Figure 2 The first device 201 and the second device 202 are shown for illustration only and do not limit the number of the plurality of devices. For example, the plurality of devices may include more devices, and the maximum number of the plurality of devices and the controller 103 corresponds to the number of the plurality of interfaces of the control relay 101 .

[0044] like Figure 2As shown, the controller 103 can control the three nodes 1, 2, and 3 of the three-way switch 104 to close and open, and the closing logic includes 1-2 connection, 2-3 connection, and 3-1 connection. When 1-2 is connected, the first interface 102a is connected to the second interface 102b; when 2-3 is connected, the second interface 102b is connected to the third interface 102c; when 3-1 is connected, the third interface 102c is connected to the first interface 102a; wherein the connection here includes a single power line connection, a single data line connection, or a full line connection.

[0045] For example, in the scenario of frequently upgrading the in-vehicle entertainment system or verifying whether the playback of audio and video files in various formats is normal, the first device 201 includes a USB flash drive. It is understandable that the first device 201 may also include other types of storage devices such as memory and internal memory, or an electronic device with a storage function. The second device 202 includes, for example, a reading device for the in-vehicle entertainment system.

[0046] First, the controller 103 can control the three-way switch 104 to connect the third interface 102c to the first interface 102a, so that the USB flash drive is connected to the laptop computer, the laptop computer deletes the original files in the USB flash drive, and stores the first upgrade software package or the audio and video files in the first format in the USB flash drive.

[0047] Then, the controller 103 can control the three-way switch 104 to connect the first interface 102a and the second interface 102b, so that the U disk is connected to the reading device used for the in-vehicle entertainment system, and the reading device reads the first upgrade software package or the audio and video file in the first format in the U disk, which is used for the first upgrade of the in-vehicle entertainment system or to verify whether the playback of the audio and video file in the first format is normal.

[0048] Then, the controller 103 can control the three-way switch 104 to connect the third interface 102c to the first interface 102a, so that the USB flash drive is connected to the laptop computer, the laptop computer deletes the original files in the USB flash drive, and stores the second upgrade software package or the audio and video files in the second format in the USB flash drive.

[0049] Finally, the controller 103 can control the three-way switch 104 to connect the first interface 102a and the second interface 102b, so that the USB flash drive is connected to the reading device for the in-vehicle entertainment system, and the reading device reads the second upgrade software package or the audio and video file in the second format in the USB flash drive, so as to upgrade the in-vehicle entertainment system for the second time or verify whether the audio and video file in the second format is played normally. By analogy, the in-vehicle entertainment system can be frequently upgraded or the audio and video files in different formats can be verified to be played normally.

[0050] Therefore, the interface on-off control device of the present invention does not need to frequently plug and unplug the USB flash drive, which saves time and effort, and is not likely to cause damage to the USB flash drive and the corresponding interface.

[0051] For example, in a scenario where a USB interface device and an HDMI interface device are stress tested, the first device 201 includes a USB interface device (e.g., a USB flash drive, a mobile phone, a tablet computer, a camera, etc.) and an HDMI interface device, and the second device 202 includes a USB reading device, a USB power supply device, or an HDMI reading device.

[0052] First, the controller 103 can control the three-way switch 104 to connect the first interface 102a and the second interface 102b, so that the USB flash drive is connected to the USB reading device, or the mobile phone, tablet computer, camera, etc. is connected to the USB power supply device, or the HDMI interface device is connected to the HDMI reading device.

[0053] Then, the controller 103 can control the three-way switch 104 to disconnect the first interface 102a and the second interface 102b, so that the USB flash drive is disconnected from the USB reading device, or the mobile phone, tablet computer, camera, etc. are disconnected from the USB power supply device, or the HDMI interface device is disconnected from the HDMI reading device. By analogy, the USB flash drive can be subjected to a 100,000 plug-in and unplug stress test, or the mobile phone, tablet computer, camera, etc. can be subjected to a 100,000 power on and off test, or the HDMI interface device can be subjected to a 100,000 plug-in and unplug stress test.

[0054] Therefore, the interface on-off control device of the present invention does not require frequent plugging and unplugging of equipment, saving time and effort, and is not easy to cause damage to the equipment and the corresponding interface. It can also realize the control of customized on-off time and on-off type, thereby simulating the control of complex scene logic.

[0055] The interface on-off control device of the present invention can also be connected to multiple signal sources and displays respectively, so that different signal sources among the multiple signal sources can be connected to the same display. In addition, the interface on-off control device of the present invention can also be used in scenarios such as mobile phone charging, printer wiring, and using the same interface in different time periods.

[0056] The embodiment of the present invention relates to an interface on-off control device using a cascade mode. The interface on-off control device using a cascade mode includes first to n-th control relays, first to m-th interfaces and a controller. The first interface is connected to the first to n-th control relays respectively, the second interface and the third interface are connected to the first control relay, the fourth interface and the fifth interface are connected to the second control relay, and so on, the m-1-th interface and the m-th interface are connected to the n-th control relay, and the third interface is also connected to the controller, the fifth interface is also connected to the controller, and so on, the m-th interface is also connected to the controller. Among them, the first to n-th control relays include first to n-th three-way switches respectively, and the controller controls the first to n-th three-way switches of the first to n-th control relays respectively, so that the corresponding connections between multiple interfaces are connected or disconnected.

[0057] Figure 3 Schematic diagram of an interface on-off control device using a cascade mode according to the present invention. Figure 3 As shown, the interface on-off control device 100 ′ adopting the cascade mode includes a first control relay 101 a and a second control relay 101 b , first to fifth interfaces 102 a - 102 e and a controller 103 .

[0058] The first interface 102a is connected to the first control relay 101a and the second control relay 101b respectively, the second interface 102b and the third interface 102c are connected to the first control relay 101a, the fourth interface 102d and the fifth interface 102e are connected to the second control relay 101b, and the third interface 102c is also connected to the controller 103, and the fifth interface 102e is also connected to the controller 103.

[0059] Among them, the first control relay 101a and the second control relay 101b respectively include a first three-way switch 104a and a second three-way switch 104b, and the controller 103 controls the first three-way switch 104a and the second three-way switch 104b of the first control relay 101a and the second control relay 101b respectively, so that the corresponding connections between the first to fifth interfaces 102a-102e are connected or disconnected.

[0060] Understandably, Figure 3 The interface on-off control device 100' using the cascade mode is only for illustration and does not limit the number of stages of the interface on-off control device using the cascade mode. For example, the interface on-off control device using the cascade mode may also include more stages, and the number of control relays corresponds to the number of stages.

[0061] The interface on-off control device of the present invention adopting the cascade mode can increase the number of interfaces, thereby controlling the on-off of a wider range of interfaces.

[0062] The embodiment of the present invention relates to a single-interface cyclic on-off control method, which is used for a single interface of the interface on-off control device as described above, and the method comprises: receiving control parameters, wherein the control parameters include disconnection time, connection time, number of cycles and on-off type. According to the disconnection time, connection time and on-off type, the interface is controlled on and off, and when the number of cycles is 0, the interface is no longer controlled on and off. The on and off type includes single power line on and off, single data line on and off or full line on and off.

[0063] Figure 4 1 is a flow chart of a single interface cyclic on-off control method according to the present invention. Figure 4 As shown, the single-interface cyclic on-off control method includes:

[0064] First, control parameters are received, wherein the control parameters include an off time T0, an on time T1, a cycle number N, and an on-off type Ca.

[0065] Then, according to the on-off type Ca, it is determined whether the interface is on-off of a single power line, on-off of a single data line, or on-off of all lines.

[0066] Then, determine whether the number of cycles N is greater than 0. If the number of cycles N is greater than 0, disconnect the power line and / or data line of the interface and keep it for T0 time, then close the power line and / or data line of the interface and keep it for T1 time, and reduce the number of cycles N by 1.

[0067] Finally, determine again whether the number of cycles N is greater than 0. If the number of cycles N is greater than 0, continue to disconnect the power line and / or data line of the interface and continue for T0 time, then close the power line and / or data line of the interface and continue for T1 time, and reduce the number of cycles N by 1 until the number of cycles N is equal to 0, then the interface will no longer be controlled to be on and off.

[0068] The single-interface cyclic on-off control method of the present invention can realize the control of customized on-off time and on-off type for a single interface by setting control parameters, thereby simulating the control of complex scene logic.

[0069] The embodiment of the present invention relates to a single-interface random on-off control method, which is used for a single interface of the interface on-off control device as described above, and the method comprises: receiving control parameters, wherein the control parameters include disconnection time, connection time, number of cycles and on-off type. According to the disconnection time, connection time and on-off type, the interface is controlled on and off, and when the number of cycles is 0, the interface is no longer controlled on and off. The on-off type is a random parameter to randomly select the on and off of a single power line, the on and off of a single data line or the on and off of the entire line.

[0070] Figure 51 is a flow chart of a single-interface random on / off control method according to the present invention. Figure 5 As shown, the single-interface random on-off control method includes:

[0071] First, control parameters are received, wherein the control parameters include an off time T0, an on time T1, and a number of cycles N.

[0072] Then, determine whether the number of cycles N is greater than 0. If the number of cycles N is greater than 0, randomly select any number from 1 to 3 as the on-off type Ca to determine whether the interface is single power line on-off, single data line on-off or full line on-off, and disconnect the power line and / or data line of the interface for T0 time, then close the power line and / or data line of the interface for T1 time, and reduce the number of cycles N by 1.

[0073] Finally, determine again whether the number of cycles N is greater than 0. If the number of cycles N is greater than 0, continue to randomly select any number from 1 to 3 as the on-off type Ca to determine whether the interface is single power line on-off, single data line on-off or full line on-off, and disconnect the power line and / or data line of the interface for T0 time, then close the power line and / or data line of the interface for T1 time, and reduce the number of cycles N by 1 until the number of cycles N is equal to 0, then the on-off control of the interface is no longer performed.

[0074] The single-interface random on-off control method of the present invention can implement random on-off type control of a single interface by introducing random parameters, thereby simulating the control of complex scene logic.

[0075] An embodiment of the present invention relates to a multi-interface on-off control method, which is used for multiple interfaces of the interface on-off control device as described above. The method includes: for multiple interfaces, performing on-off control on each of the multiple interfaces in turn.

[0076] For example, for multiple interfaces USB1-USBn, each interface USB1, USB2, ..., USBn is sequentially controlled to be on and off, that is, multi-interface polling on and off control.

[0077] Furthermore, for each of the multiple interfaces, the single-interface cyclic on-off control method or the single-interface random on-off control method described above may be adopted.

[0078] Additionally or alternatively, the method includes: grouping the multiple interfaces, and performing on-off control on each interface in each group.

[0079] For example, for multiple interfaces USB1-USBn, multiple interfaces USB1-USBn are grouped in pairs (USB1&USB2, USB3&USB4, ..., USBn-1&USBn), and each interface in each group is on-off controlled, that is, multiple interfaces are organically combined for on-off control.

[0080] Furthermore, for each interface in each group, the single-interface cyclic on-off control method or the single-interface random on-off control method described above may be adopted.

[0081] Additionally or alternatively, the method includes: for a plurality of interfaces, randomly selecting one or more interfaces from the plurality of interfaces as a control group, and performing on-off control on each interface in the control group.

[0082] For example, for multiple interfaces USB1-USBn, one or more interfaces are randomly selected as the control group USB_G, and each interface in the control group USB_G is controlled on and off, that is, multiple interfaces are randomly combined for on and off control.

[0083] Figure 6 1 is a flow chart of determining a control group in a multi-interface random combination on-off control method according to the present invention. Figure 6 As shown, determining the control group USB_G includes:

[0084] First, the number of one or more interfaces to be placed in the control group USB_G is set to R_N, and the number of interfaces R_N is randomly selected from any number from 1 to m.

[0085] Then, the number of loops N is set to the number of interfaces R_N, and the control group USB_G is cleared.

[0086] Then, a number set G is set, and the initial value of the number set G is {1,2,…,n}.

[0087] Then, determine whether the number of loops N is greater than 0. If the number of loops N is greater than 0, randomly select any number from the number set G as the number r_x of an interface USB1, USB2, ..., USBn among the multiple interfaces USB1-USBn, put the interface corresponding to the interface number r_x into the control group USB_G, delete the interface number r_x from the number set G, and reduce the number of loops N by 1.

[0088] Finally, determine again whether the number of loops N is greater than 0. If the number of loops N is greater than 0, continue to randomly select any number from the number set G as the number r_x of an interface USB1, USB2, ..., USBn in the multiple interfaces USB1-USBn, put the interface corresponding to the interface number r_x into the control group USB_G, delete the interface number r_x from the number set G, and reduce the number of loops N by 1 until the number of loops N is equal to 0. Then the control group USB_G is determined. At this time, the number of interfaces put into the control group USB_G is exactly equal to the number of interfaces R_N.

[0089] The interface on-off control method of the present invention can realize the control of customized on-off time and on-off type, and can realize the specification of customized interface, so as to simulate the control of complex scene logic.

[0090] It should be noted that in the claims and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0091] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be modified or may be combined with other features.

[0092] While the present invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims

1. A multi-interface random combination on-off control method for an interface on-off control device, characterized in that: The method comprises: For a plurality of interfaces, the plurality of interfaces is n, one or more interfaces among the plurality of interfaces are randomly selected as a control group, and each interface in the control group is controlled to be on and off, including: receiving control parameters, wherein the control parameters include disconnection time, connection time, first cycle number and on-off type; According to the disconnection time, the connection time and the on-off type, the interface is controlled on and off, and when the first cycle number is 0, the interface is no longer controlled on and off; The step of randomly selecting one or more interfaces from the plurality of interfaces as a control group comprises: Setting the number of interfaces of one or more interfaces to be placed in the control group, wherein the number of interfaces is randomly selected from any number between 1 and m; Setting the second cycle number to the number of interfaces and clearing the control group; Set a number set, the initial value of the number set is {1,2,…,n}; Determine whether the second cycle number is greater than 0. If the second cycle number is greater than 0, randomly select any number from the number set as the interface number of one of the multiple interfaces, put the interface corresponding to the interface number into the control group, delete the interface number from the number set, and reduce the second cycle number by 1; Determine again whether the second loop number is greater than 0. If the second loop number is greater than 0, continue to randomly select any number from the number set as the interface number of one of the multiple interfaces, put the interface corresponding to the interface number into the control group, delete the interface number from the number set, and reduce the second loop number by 1 until the second loop number is equal to 0. Then the control group is determined, and the number of interfaces placed in the control group is exactly equal to the set number of interfaces.

2. The method according to claim 1, characterized in that: The on-off type includes single power line on-off, single data line on-off or full line on-off.

3. The method according to claim 1, characterized in that The on-off type is a random parameter to randomly select single power line on-off, single data line on-off or all lines on-off.

4. An interface on-off control device, characterized in that: The device comprises a control relay, a plurality of interfaces and a controller; the plurality of interfaces are respectively connected to the control relay, and one of the plurality of interfaces is also connected to the controller; Wherein, the control relay includes a multi-directional switch, and the controller controls the multi-directional switch of the control relay based on the multi-interface random combination on-off control method according to any one of claims 1-3, so that the corresponding connections between the multiple interfaces are connected or disconnected.

5. The device according to claim 4, characterized in that The plurality of interfaces include first to third interfaces, and the multi-directional switch includes a three-directional switch.

6. The device according to claim 5, characterized in that The control relay is a first control relay, and the device further includes second to mth control relays, and the plurality of interfaces further include fourth to nth interfaces; The first interface is connected to the first to mth control relays respectively, the second interface and the third interface are connected to the first control relay, the fourth interface and the fifth interface are connected to the second control relay, and so on, the n-1th interface and the nth interface are connected to the mth control relay, and the third interface is also connected to the controller, the fifth interface is also connected to the controller, and so on, the nth interface is also connected to the controller; The first to mth control relays respectively include first to mth three-way switches, and the controller respectively controls the first to mth three-way switches of the first to mth control relays so that corresponding connections between the multiple interfaces are connected or disconnected.

7. The device according to claim 4, characterized in that The multiple interfaces include USB interfaces, each USB interface includes a power line and a data line, and the corresponding connections between the multiple interfaces include a single power line connection, a single data line connection, or a full line connection.

8. The device according to claim 4, characterized in that The control relay includes a program control relay, a serial port control relay or a level switch control relay.

9. An interface on-off control system, characterized in that: The system comprises a plurality of devices and an interface on-off control device according to any one of claims 4 to 8; wherein the interface on-off control device is connected to the plurality of devices respectively.

Citation Information

Patent Citations

  • Interface control equipment, data acquisition system and equipment connection control method

    CN103714025A

  • Device and method for automatically achieving unidirectional transmission of data between intranet and internet by physical isolation

    CN104601598A

  • Interface on-off control device and system

    CN215298219U

  • Auto Testing Apparatus for USB Keyboard

    KR1020180051906A