Interface on-off control device, method and system

文档序号:567671 发布日期:2021-05-18 浏览:4次 中文

阅读说明:本技术 接口通断控制装置、方法和系统 (Interface on-off control device, method and system ) 是由 闫书磊 薛怡箐 于 2021-03-25 设计创作,主要内容包括:本发明涉及接口通断控制装置、方法和系统。本发明的装置包括控制继电器、多个接口和控制器;所述多个接口分别与所述控制继电器连接,并且所述多个接口中的一个接口还与所述控制器连接;其中,所述控制继电器包括多向开关,所述控制器控制所述控制继电器的所述多向开关,使得所述多个接口之间的相应连接接通或断开。本发明采用控制继电器方案,可以实现毫秒级通断控制,不需要频繁插拔设备,省时省力,而且不容易对设备以及相应接口带来损害,还可以实现自定义通断时间和通断类型的控制,从而可以模拟复杂场景逻辑的控制。(The invention relates to an interface on-off control device, method and system. The device comprises a control relay, a plurality of interfaces and a controller; the plurality of interfaces are respectively connected with the control relays, and one of the plurality of interfaces is also connected with the controller; wherein the control relay includes a multi-directional switch, and the controller controls the multi-directional switch of the control relay such that respective connections between the plurality of interfaces are turned on or off. The invention adopts a scheme of controlling the relay, can realize millisecond on-off control, does not need frequent plugging and unplugging of equipment, saves time and labor, is not easy to damage the equipment and a corresponding interface, and can realize control of self-defined on-off time and on-off type, thereby simulating control of complex scene logic.)

1. An interface on-off control device is characterized by comprising a control relay, a plurality of interfaces and a controller; the plurality of interfaces are respectively connected with the control relays, and one of the plurality of interfaces is also connected with the controller;

wherein the control relay includes a multi-directional switch, and the controller controls the multi-directional switch of the control relay such that respective connections between the plurality of interfaces are turned on or off.

2. The apparatus of claim 1, wherein the plurality of interfaces comprises first through third interfaces, and the multi-way switch comprises a three-way switch.

3. The apparatus of claim 2, wherein the control relay is a first control relay, and the apparatus further comprises second to nth control relays, the plurality of interfaces further comprising fourth to mth interfaces;

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

wherein the first to nth control relays include first to nth three-way switches, respectively, and the controller controls the first to nth three-way switches of the first to nth control relays, respectively, such that the respective connections between the plurality of interfaces are turned on or off.

4. The apparatus of claim 1, wherein the plurality of interfaces comprise USB interfaces, each USB interface comprising a power line and a data line, and wherein the respective connections between the plurality of interfaces comprise a single power line connection, a single data line connection, or a full line connection.

5. The apparatus of claim 1, wherein the control relay comprises a program control relay, a serial port control relay, or a level switch control relay.

6. An interface on-off control method for an interface on-off control device, characterized in that the interface on-off control device is an interface on-off control device according to any one of claims 1-5, and the method comprises:

receiving control parameters, wherein the control parameters comprise turn-off time, turn-on time, cycle times and on-off types;

and performing on-off control on the interface according to the off time, the on time and the on-off type, and when the cycle number is 0, not performing on-off control on the interface any more.

7. The method of claim 6, wherein the on-off type comprises single power line on-off, single data line on-off, or full line on-off.

8. The method of claim 6, wherein the on-off type is a random parameter to randomly select single power line on-off, single data line on-off, or full line on-off.

9. The method according to claim 7 or 8, characterized in that for a plurality of interfaces, each of the plurality of interfaces is on-off controlled in turn.

10. Method according to claim 7 or 8, characterized in that for a plurality of interfaces, the plurality of interfaces are grouped and each interface within each group is on-off controlled.

11. The method according to claim 7 or 8, wherein for a plurality of interfaces, one or more interfaces of the plurality of interfaces are randomly selected as a control group, and each interface within the control group is on-off controlled.

12. An interface on-off control system, characterized in that the system comprises a plurality of devices and an interface on-off control apparatus according to any one of claims 1-5; the interface on-off control device is connected with the plurality of devices respectively.

Technical Field

The invention relates to an interface on-off control device, method and system.

Background

At present, there are various requirements for interface on-off control.

First, the vehicle-mounted entertainment system is usually upgraded by using a usb disk, and at present, the usb disk is usually inserted into a computer, an upgrade software package is copied to the usb disk via the computer, and then the usb disk is inserted into the vehicle-mounted entertainment system to upgrade the vehicle-mounted entertainment system. In addition, in-vehicle entertainment systems typically plug into a U-disk to play audiovisual files. In the research and development and test stage of the internet of vehicles, the vehicle-mounted entertainment system needs to be frequently upgraded, and whether the playing of audio and video files with different formats is normal needs to be verified. However, if the usb flash disk is frequently plugged and unplugged, the usb flash disk is time-consuming and labor-consuming, and the usb flash disk and the corresponding interface are easily damaged.

Secondly, in a general scene, pressure tests need to be performed on USB interface devices, HDMI interface devices, and the like, for example, 10 ten thousand times of plugging and unplugging pressure tests are performed on a USB disk, 10 ten thousand times of power on/off pressure tests are performed on a mobile phone, a tablet computer, a camera, and the like, and 10 ten thousand times of plugging and unplugging pressure tests are performed on an HDMI interface device. Similarly, if the device is frequently plugged and pulled manually or mechanically, time and labor are wasted, the device and a corresponding interface are easily damaged, and the control of customized on-off time and on-off type cannot be realized, so that the control of complex scene logic cannot be simulated.

Disclosure of Invention

The invention aims to provide an interface on-off control device, method and system, wherein a relay control scheme is adopted, millisecond on-off control can be realized, equipment does not need to be plugged and unplugged frequently, time and labor are saved, damage to the equipment and a corresponding interface is not easy to cause, and the on-off time and on-off type can be controlled in a user-defined mode, so that the control of complex scene logic can be simulated.

The invention discloses an interface on-off control device, which comprises a control relay, a plurality of interfaces and a controller, wherein the control relay is connected with the plurality of interfaces; the plurality of interfaces are respectively connected with the control relays, and one of the plurality of interfaces is also connected with the controller;

wherein the control relay includes a multi-directional switch, and the controller controls the multi-directional switch of the control relay such that respective connections between the plurality of interfaces are turned on or off.

Optionally, the plurality of interfaces includes first to third interfaces, and the multi-directional switch includes a three-way switch.

Optionally, the control relay is a first control relay, and the apparatus further comprises second to nth control relays, and the plurality of interfaces further comprises fourth to mth interfaces;

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

wherein the first to nth control relays include first to nth three-way switches, respectively, and the controller controls the first to nth three-way switches of the first to nth control relays, respectively, such that the respective connections between the plurality of interfaces are turned on or off.

Optionally, the plurality of interfaces comprises USB interfaces, each USB interface comprises a power line and a data line, and the respective connections between the plurality of interfaces comprise a single power line connection, a single data line connection, or a full line connection.

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

The invention discloses an interface on-off control method for an interface on-off control device, which is the interface on-off control device already described above, and the method comprises the following steps:

receiving control parameters, wherein the control parameters comprise turn-off time, turn-on time, cycle times and on-off types;

and performing on-off control on the interface according to the off time, the on time and the on-off type, and when the cycle number is 0, not performing on-off control on the interface any more.

Optionally, the switching type includes single power line switching, single data line switching, or full line switching.

Optionally, the switching type is a random parameter, so as to randomly select the switching of a single power line, the switching of a single data line or the switching of a full line.

Optionally, for a plurality of interfaces, on-off control is performed on each of the plurality of interfaces in sequence.

Optionally, for a plurality of interfaces, the plurality of interfaces are grouped, and each interface within each group is on-off controlled.

Optionally, for a plurality of interfaces, one or more interfaces in the plurality of interfaces are randomly selected as a control group, and each interface in the control group is controlled to be on/off.

The invention discloses an interface on-off control system, which comprises a plurality of devices and an interface on-off control device as already described above; the interface on-off control device is connected with the plurality of devices respectively.

Compared with the prior art, the invention has the main differences and the effects that:

compared with a manual or mechanical scheme of second-level on-off control, the interface on-off control device, method and system provided by the invention adopt a control relay scheme, can realize millisecond on-off control, do not need frequent plugging and unplugging of equipment, are time-saving and labor-saving, are not easy to damage the equipment and corresponding interfaces, and can realize control of self-defined on-off time and on-off type, so that control of complex scene logic can be simulated.

Drawings

FIG. 1 is a schematic diagram of an interface on-off control according to the present invention;

FIG. 2 is a schematic diagram of an interface on-off control system according to the present invention;

FIG. 3 is a schematic diagram of an interface on-off control device in a cascade connection manner according to the present invention;

FIG. 4 is a flow chart of a single interface cycle on-off control method according to the present invention;

FIG. 5 is a flow chart of a single interface random on-off control method according to the present invention;

fig. 6 is a flowchart of determining a control group in the multi-interface random combinational on-off control method according to the present invention.

Detailed Description

In order to make the purpose and technical solution of the embodiments of the present invention clearer, the technical solution of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.

The embodiment of the invention relates to an interface on-off control device. The interface on-off control device comprises a control relay, a plurality of interfaces and a controller. The plurality of interfaces are respectively connected with the control relay, and one of the plurality of interfaces is also connected with the controller. Wherein, the control relay includes multidirectional switch, and the multidirectional switch of control relay is controlled to the controller, makes the corresponding connection between a plurality of interfaces switch on or break off.

The plurality of interfaces comprise USB interfaces, each USB interface comprises a power line and a data line, and corresponding connection among the plurality of interfaces comprises single power line connection, single data line connection or full line connection, so that single power line connection and disconnection, single data line connection and disconnection or full line connection can be realized. It will be appreciated that the plurality of interfaces may also include an HDMI interface or other type of interface.

Wherein, the control relay comprises a program control relay, a serial port control relay or a level switch control relay. It will be appreciated that the control relay may also comprise other types of control relays.

The controller includes an electronic device having a 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 the like, or a receiver capable of receiving a control signal from the electronic device, thereby implementing remote control.

Fig. 1 is a schematic diagram of an interface on-off control device according to the present invention. As shown in fig. 1, the interface on-off control apparatus 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 a third interface 102c of the first to third interfaces 102a,102b,102c is also connected to the controller 103. Wherein 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 such that respective connections between the first to third interfaces 102a,102b,102c are turned on or off.

It is to be understood that the first to third interfaces 102a,102b,102c and the three-way switch 104 shown in fig. 1 are merely illustrative and do not limit the number of the plurality of interfaces and the multi-way switch. For example, the plurality of interfaces may further include more interfaces, and the multi-directional switch corresponds to the number of the plurality of interfaces.

As shown in fig. 1, the controller 103 can control the three nodes 1,2,3 of the three-way switch 104 to be closed and opened, and the closing logic has 1-2 connection, 2-3 connection and 3-1 connection. When 1-2 is connected, the first interface 102a and the second interface 102b are connected; when 2-3 is connected, the second interface 102b and the third interface 102c are connected; when 3-1 is connected, the third interface 102c is connected with the first interface 102 a; the connection here includes a single power line connection, a single data line connection, or a full line connection.

Compared with a manual or mechanical scheme of second-level on-off control, the interface on-off control device adopts a control relay scheme, can realize millisecond on-off control, and can realize on-off control of single power line connection, single data line connection or full line connection among a plurality of interfaces, thereby simulating the control of complex scene logic.

The embodiment of the 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 means as has been described above. The interface on-off control device is connected with the plurality of devices respectively.

Fig. 2 is a schematic diagram of an interface on-off control system according to the present invention. As shown in fig. 2, the interface on-off control system 200 includes a first device 201 and a second device 202 and the interface on-off control apparatus 100. The interface on-off control device 100 is connected to a first device 201 and a second device 202 respectively.

The interface on-off control apparatus 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 apparatus 100 is connected with the first device 201 via the first interface 102a, and the interface on-off control apparatus 100 is connected with the second device 202 via the second interface 102 b.

It is to be understood that the first device 201 and the second device 202 shown in fig. 2 are only illustrative and do not limit the number of the plurality of devices. For example, the plurality of devices may further 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.

As shown in fig. 2, the controller 103 can control the three nodes 1,2,3 of the three-way switch 104 to be closed and opened, the closing logic having 1-2 connection, 2-3 connection and 3-1 connection. When 1-2 is connected, the first interface 102a and the second interface 102b are connected; when 2-3 is connected, the second interface 102b and the third interface 102c are connected; when 3-1 is connected, the third interface 102c is connected with the first interface 102 a; the connection here includes a single power line connection, a single data line connection, or a full line connection.

For example, in a scenario where the in-vehicle entertainment system is frequently upgraded or whether the playing of the audio/video files in different formats is normal is verified, the first device 201 includes a usb disk. It is understood that the first device 201 may also include other types of storage devices such as a memory, etc., or an electronic device having a storage function. The second device 202 comprises a reading device, for example for an in-vehicle entertainment system.

First, the controller 103 may control the three-way switch 104 such that the third interface 102c is connected to the first interface 102a, and thus the usb disk is connected to the laptop computer, and the laptop computer deletes an original file in the usb disk and stores a first upgrade software package or an audio/video file in a first format in the usb disk.

Then, the controller 103 may control the three-way switch 104 to connect the first interface 102a and the second interface 102b, so that the usb disk is connected to a reading device for the vehicle-mounted entertainment system, and the reading device reads the first upgrade software package or the audio/video file in the first format in the usb disk, so as to upgrade the vehicle-mounted entertainment system for the first time or verify whether the playing of the audio/video file in the first format is normal.

Then, the controller 103 may control the three-way switch 104 such that the third interface 102c is connected to the first interface 102a, and thus the usb disk is connected to the laptop computer, and the laptop computer deletes the original file in the usb disk and stores the second upgrade software package or the audio/video file in the second format in the usb disk.

Finally, the controller 103 may control the three-way switch 104, so that the first interface 102a is connected to the second interface 102b, and thus the usb disk is connected to the reading device for the vehicle-mounted entertainment system, and the reading device reads the second upgrade software package or the audio/video file in the second format in the usb disk, so as to upgrade the vehicle-mounted entertainment system for the second time or verify whether the playing of the audio/video file in the second format is normal. By analogy, the vehicle-mounted entertainment system can be frequently upgraded or whether the playing of the audio and video files in different formats is normal can be verified.

Therefore, the interface on-off control device does not need to plug and unplug the USB flash disk frequently, saves time and labor, and is not easy to damage the USB flash disk and the corresponding interface.

For example, in a scenario of performing a stress test on the USB interface device and the HDMI interface device, the first device 201 includes a USB interface device (e.g., a USB disk, 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.

First, the controller 103 may control the three-way switch 104 such that the first interface 102a and the second interface 102b are connected, and thus the USB disk is connected to the USB reading device, or the mobile phone, the tablet computer, the camera, and the like are connected to the USB power supply device, or the HDMI interface device is connected to the HDMI reading device.

Then, the controller 103 may control the three-way switch 104 to disconnect the first interface 102a and the second interface 102b, so that the USB disk is disconnected from the USB reading device, or the mobile phone, the tablet computer, the camera, and the like are disconnected from the USB power supply device, or the HDMI interface device is disconnected from the HDMI reading device. By analogy, 10 ten thousand plugging and unplugging pressure tests can be performed on the USB flash disk, or 10 ten thousand power on-off tests can be performed on a mobile phone, a tablet personal computer, a camera and the like, or 10 ten thousand plugging and unplugging pressure tests can be performed on the HDMI interface equipment.

Therefore, the interface on-off control device does not need to plug and unplug equipment frequently, saves time and labor, is not easy to damage the equipment and the corresponding interface, and can realize the control of self-defined on-off time and on-off type, thereby simulating the control of complex scene logic.

The interface on-off control device can also be respectively connected with a plurality of signal sources and the display, so that different signal sources in the plurality of signal sources can be respectively connected into the same display. In addition, the interface on-off control device can be used in scenes such as mobile phone charging, printer wiring and the use of the same interface in different time periods.

The embodiment of the invention relates to an interface on-off control device adopting a cascade mode. The interface on-off control device adopting the cascade mode comprises a first control relay, a second control relay, a third control relay, a fourth control relay, a fifth control relay, a sixth control relay, a seventh control relay, a sixth control relay, a. The first interface is respectively connected with the first to nth control relays, the second interface and the third interface are connected with the first control relay, the fourth interface and the fifth interface are connected with the second control relay, and so on, the m-1 th interface and the mth interface are connected with the nth control relay, the third interface is further connected with the controller, the fifth interface is further connected with the controller, and so on, the mth interface is further connected with the controller. The first to nth control relays respectively comprise 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 the corresponding connection among the plurality of interfaces is switched on or off.

Fig. 3 is a schematic diagram of an interface on-off control device adopting a cascade mode according to the invention. As shown in fig. 3, the interface on-off control apparatus 100' in the cascade manner includes a first control relay 101a and a second control relay 101b, first to fifth interfaces 102a to 102e, and a controller 103.

The first interface 102a is connected to the first control relay 101a and the second control relay 101b, 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, the third interface 102c is also connected to the controller 103, and the fifth interface 102e is also connected to the controller 103.

Wherein 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 respectively 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 such that the respective connections between the first to fifth interfaces 102a-102e are turned on or off.

It should be understood that the interface on-off control device 100' in the cascade connection manner shown in fig. 3 is only an illustration, and does not limit the number of stages of the interface on-off control device in the cascade connection manner. For example, the interface on-off control device adopting the cascade mode can also comprise more stages, and the number of the control relays corresponds to the stages.

The interface on-off control device adopting the cascade mode can increase the number of the interfaces, thereby controlling the on-off of wider interfaces.

Embodiments of the present invention relate to a single interface cyclic on-off control method for a single interface of an interface on-off control device as already described above, the method comprising: and receiving control parameters, wherein the control parameters comprise turn-off time, turn-on time, cycle times and turn-on and turn-off types. And performing on-off control on the interface according to the off time, the on time and the on-off type, and when the cycle number is 0, not performing on-off control on the interface any more. The on-off type comprises single power line on-off, single data line on-off or full line on-off.

FIG. 4 is a flow chart of a single interface cycle on-off control method according to the present invention. As shown in fig. 4, the single-interface cyclic on-off control method includes:

first, control parameters are received, wherein the control parameters include an off time T0, an on time T1, a number of cycles N, and an on-off type Ca.

Then, according to the on-off type Ca, the interface is judged to be on-off of a single power line, on-off of a single data line or on-off of a full line.

Then, whether the number of times of circulation N is larger than 0 is judged, if the number of times of circulation N is larger than 0, the power line and/or the data line of the interface are/is opened and lasts for T0 time, then the power line and/or the data line of the interface are/is closed and lasts for T1 time, and the number of times of circulation N is reduced by 1.

And finally, judging whether the cycle number N is greater than 0 again, if so, continuing to disconnect the power line and/or the data line of the interface for T0 time, closing the power line and/or the data line of the interface for T1 time, subtracting 1 from the cycle number N until the cycle number N is equal to 0, and then not controlling the on-off of the interface.

The single-interface circulation on-off control method can realize the control of self-defined on-off time and on-off type on the single interface by setting the control parameters, thereby simulating the control of complex scene logic.

Embodiments of the present invention relate to a single-interface random on-off control method for a single interface of an interface on-off control device as already described above, the method comprising: and receiving control parameters, wherein the control parameters comprise turn-off time, turn-on time, cycle times and turn-on and turn-off types. And performing on-off control on the interface according to the off time, the on time and the on-off type, and when the cycle number is 0, not performing on-off control on the interface any more. The on-off type is a random parameter, and the on-off of a single power line, the on-off of a single data line or the on-off of a full line is randomly selected.

Fig. 5 is a flow chart of a single-interface random on-off control method according to the present invention. As shown in fig. 5, the single-interface random on-off control method includes:

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

Then, whether the cycle number N is greater than 0 is judged, if the cycle number N is greater than 0, any number is randomly selected from 1 to 3 as the on-off type Ca to determine that the interface is on-off of a single power line, on-off of a single data line or on-off of a full line, the power line and/or the data line of the interface are/is opened and lasts for T0 time, the power line and/or the data line of the interface are/is closed and lasts for T1 time, and the cycle number N is reduced by 1.

And finally, judging whether the cycle number N is greater than 0 again, if the cycle number N is greater than 0, continuing to randomly select any number from 1 to 3 as the on-off type Ca to determine that the interface is on-off of a single power line, single data line or full line, disconnecting the power line and/or the data line of the interface for T0 time, closing the power line and/or the data line of the interface for T1 time, and reducing the cycle number N by 1 until the cycle number N is equal to 0, so that the on-off control of the interface is not performed.

The single-interface random on-off control method can realize random on-off type control on the single interface by introducing random parameters, thereby simulating the control of complex scene logic.

Embodiments of the present invention relate to a multi-interface on-off control method for a plurality of interfaces of an interface on-off control apparatus as has been described above, the method including: and for the plurality of interfaces, sequentially controlling the on-off of each interface in the plurality of interfaces.

For example, for a plurality of interfaces USB1-USBn, on-off control is performed on each interface USB1, USB2, … and USBn in turn, namely multi-interface polling on-off control.

Further, for each of the plurality of interfaces, a single-interface cyclic on-off control method or a single-interface random on-off control method as has been described above may be employed.

Additionally or alternatively, the method comprises: for a plurality of interfaces, the plurality of interfaces are grouped, and each interface in each group is subjected to on-off control.

For example, for the plurality of interfaces USB1-USBn, the plurality of interfaces USB1-USBn are combined two by two to be grouped (USB1& USB2, USB3& USB4, …, USBn-1& USBn), and each interface in each group is subjected to on-off control, namely, multi-interface organic combination on-off control.

Further, for each interface within each group, a single-interface cyclic on-off control method or a single-interface random on-off control method as already described above may be employed.

Additionally or alternatively, the method comprises: for the plurality of interfaces, one or more interfaces in the plurality of interfaces are randomly selected as a control group, and each interface in the control group is subjected to on-off control.

For example, for the multiple interfaces USB1-USBn, one or more interfaces are randomly selected as the control group USB _ G, and each interface within the control group USB _ G is on-off controlled, i.e., multi-interface random combination on-off control.

Fig. 6 is a flowchart of determining a control group in the multi-interface random combinational on-off control method according to the present invention. As shown in fig. 6, determining the control group USB _ G includes:

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 randomly selects any number from 1 to m.

Then, the number of cycles N is set to the number of interfaces R _ N, and the control group USB _ G is cleared.

Then, a number set G is set, the initial value of which is {1,2, …, n }.

Then, whether the cycle number N is greater than 0 is judged, if the cycle number N is greater than 0, any number is randomly selected from a digital set G to serve as a serial number r _ x of one interface USB1, USB2, … and USBn in the plurality of interfaces USB1-USBn, the interface corresponding to the serial number r _ x is placed in a control group USB _ G, the serial number r _ x is deleted from the digital set G, and the cycle number N is reduced by 1.

Finally, whether the cycle number N is larger than 0 is judged again, if the cycle number N is larger than 0, any number is selected randomly from the digital set G to serve as a certain interface USB1, USB2, … and the number R _ x of the USBn in the plurality of interfaces USB1-USBn, the interface corresponding to the interface number R _ x is placed into the control group USB _ G, the interface number R _ x is deleted from the digital set G, the cycle number N is reduced by 1 until the cycle number N is equal to 0, the control group USB _ G is determined to be finished, and at this time, the number of the interfaces placed into the control group USB _ G is exactly equal to the interface number R _ N.

The interface on-off control method can realize the control of the on-off time and the on-off type by self definition, and can realize the designation of the self-defined interface, thereby simulating the control of complex scene logic.

It is to be noted that in the claims and the description of the present patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.

In the drawings, some features of the structures or methods may be shown in a particular arrangement and/or order. However, it is to be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the illustrative figures. Additionally, the inclusion of a structural or methodical feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments, may not be included or may be modified or may be combined with other features.

While the 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.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:具备扩充外部装置功能的桥接芯片以及扩充方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!