Flexible regulation and control method, system and medium for external equipment

文档序号:1963656 发布日期:2021-12-14 浏览:12次 中文

阅读说明:本技术 一种外接设备的灵活调控方法、系统及介质 (Flexible regulation and control method, system and medium for external equipment ) 是由 王瑞焕 曹如 胡焱 安静 于 2021-08-20 设计创作,主要内容包括:本发明公开了一种外接设备的灵活调控方法、系统及介质,所述方法包括以下步骤:配置HUB芯片组以及与HUB芯片组相连接的端口设备检测电路;获取HUB芯片组的上电情况,基于上电情况执行上电自检操作,得到第一设备接入数量;基于HUB芯片组、第一设备接入数量和外接设备数量阈值执行端口绑定操作,得到绑定情况;调用端口设备检测电路获取HUB芯片组的新设备接入状态;基于HUB芯片组、业务类别与设备匹配集和新设备接入状态获取业务需求;基于绑定情况和业务需求执行选择性下电操作;本发明能够根据业务需求对不必要的外接设备进行下电,且对用户自行接入的外接设备进行合法性检测,灵活性和安全性极高。(The invention discloses a flexible regulation and control method, a system and a medium of external equipment, wherein the method comprises the following steps: configuring a HUB chipset and a port equipment detection circuit connected with the HUB chipset; acquiring the power-on condition of the HUB chipset, and executing power-on self-detection operation based on the power-on condition to obtain the access number of the first equipment; executing port binding operation based on the HUB chip set, the first equipment access quantity and the external equipment quantity threshold value to obtain a binding condition; calling a port equipment detection circuit to acquire a new equipment access state of the HUB chipset; acquiring service requirements based on the HUB chipset, the service class and equipment matching set and the new equipment access state; performing selective power-down operation based on the binding condition and the service requirement; the invention can power off unnecessary external equipment according to the business requirement, and carry out legality detection on the external equipment which is automatically accessed by the user, and has extremely high flexibility and safety.)

1. A flexible regulation and control method of an external device is applied to a self-service terminal device, and is characterized by comprising the following steps:

self-checking: configuring a HUB chipset and a port equipment detection circuit connected with the HUB chipset; acquiring the power-on condition of the HUB chipset, and executing power-on self-test operation based on the HUB chipset, the port equipment detection circuit and the power-on condition to obtain the access number of first equipment;

a port binding step: setting a threshold value of the number of external devices; executing port binding operation based on the HUB chipset, the first equipment access number and the external equipment number threshold value to obtain a binding condition;

a service requirement obtaining step: configuring a service class and equipment matching set; calling the port equipment detection circuit to acquire a new equipment access state of the HUB chipset; performing data interaction operation based on the HUB chipset, the service class and equipment matching set and the new equipment access state to obtain service requirements;

flexible power-off steps: and performing selective power-down operation based on the binding condition and the service requirement.

2. The flexible regulation and control method of an external device according to claim 1, wherein an external port is provided in the HUB chipset, and the power-on self-test operation includes:

when the power-on condition is successful, calling the port equipment detection circuit to detect the condition of access equipment corresponding to the external port;

calling the HUB chip set to acquire the condition of the access equipment as the existence of a first port number of the external port of the access equipment, and counting the first number of the first port number;

and setting the first quantity as the access quantity of the first equipment.

3. The method as claimed in claim 2, wherein the binding condition includes a bound device and an unbound port;

the port binding operation comprises:

when the access quantity of the first equipment is greater than the threshold value of the quantity of the external equipment, setting the external port corresponding to the first port number as a first port;

setting the external port except the first port as a second port; calling the HUB chip group to perform power-off operation on the second port;

and (3) executing a binding step: reading ID information of access equipment in the first port, binding the ID information with the first port number of the first port, and setting the access equipment corresponding to the ID information as the bound equipment;

and calling the HUB chip set to carry out power-on operation on the second port, and setting the second port as the unbound port.

4. The method as claimed in claim 3, wherein the data interaction operation comprises:

when the new equipment access state is no new equipment access, calling the HUB chip set to acquire service information in the self-service terminal equipment;

extracting the service type in the service information, and screening out the demand equipment matched with the service type in the service type and equipment matching set;

and identifying first equipment information of the demand equipment, and setting the first equipment information as the service demand.

5. The method as claimed in claim 4, wherein the selective powering down operation includes:

acquiring second equipment information of the bound equipment, and identifying whether the first equipment information has equipment information which is not matched with the second equipment information;

if the device information does not exist, setting the bound device corresponding to the first device information matched with the second device information as a device to be started; calling the HUB chipset to perform the power-off operation on the unbound port and the first port except the first port corresponding to the device to be started;

if yes, calculating the quantity of required equipment of the required equipment corresponding to the first equipment information which is not matched with the second equipment information; selecting the unbound ports with the number corresponding to the number of the required equipment from the unbound ports as reserved ports; and calling the HUB chip group to perform the power-down operation on the unbound ports except the reserved port.

6. The method for flexibly controlling an external device according to claim 5, further comprising:

configuring an illegal equipment identification set;

and when the reserved port is generated in the selective power-down operation, executing a security detection operation based on the illegal device identification set and the reserved port.

7. The method for flexibly controlling an external device according to claim 6, wherein the safety detection operation comprises:

acquiring equipment identification information of access equipment in the reserved port;

judging whether the illegal equipment identification matched with the equipment identification information exists in the illegal equipment identification set or not; if the reserved port does not exist, setting the reserved port corresponding to the equipment identification information as the first port, and executing the binding step; and if so, calling the HUB chip set to alarm the self-service terminal equipment.

8. The utility model provides a flexible regulation and control system of external device which characterized in that includes: the system comprises a self-checking module, a binding module, a demand acquisition module and a flexible power-off module;

the self-checking module is used for configuring a HUB chipset and a port equipment detection circuit connected with the HUB chipset; the self-checking module acquires the power-on condition of the HUB chipset, and executes power-on self-checking operation based on the power-on condition, the HUB chipset and the port equipment detection circuit to obtain the access number of the first equipment;

the binding module is used for setting a threshold value of the number of external devices, and executing port binding operation based on the HUB chipset, the first device access number and the threshold value of the number of external devices to obtain a binding condition;

the demand acquisition module is used for configuring a matching set of service types and equipment quantity and calling the port equipment detection circuit to acquire a new equipment access state of the HUB chipset; the demand acquisition module performs data interaction operation based on the HUB chipset, the service type and equipment number matching set and the new equipment access state to obtain service demands;

the flexible power-down module is used for executing selective power-down operation according to the binding condition and the service requirement.

9. The system of claim 8, wherein the HUB chipset comprises: a plurality of cascaded USBHUB chips; a first chip in the USBHUB chips is connected with a host of the self-service terminal equipment, and control pins are arranged in downlink USB interfaces of the USBHUB chips;

the port device detection circuit includes: a plurality of overcurrent protection circuits and a plurality of indication circuits; the overcurrent protection circuit and the indicating circuit are in one-to-one correspondence; the indicating circuits correspond to the control pins one to one; one end of the indicating circuit is connected with the overcurrent protection circuit corresponding to the indicating circuit, and the other end of the indicating circuit is connected with the control pin corresponding to the indicating circuit.

10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the flexible control method for an external device according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of intelligent control of self-service terminals, in particular to a flexible regulation and control method, a flexible regulation and control system and a flexible regulation and control medium for external equipment.

Background

The conventional external equipment regulating and controlling method adopted in the self-service terminal equipment is to bind information of a port and the external equipment in a file configuration mode, the mode is poor in operability and limited by description documents of the external equipment, the external equipment cannot be identified and bound quickly, the external equipment cannot be subjected to power-on and power-off control according to requirements, and the flexibility and the safety are poor.

Disclosure of Invention

The invention mainly solves the problem that the regulation and control method of the external equipment adopted in the existing self-service terminal equipment has poor flexibility and safety.

In order to solve the technical problems, the invention adopts a technical scheme that: the method for flexibly regulating and controlling the external equipment is applied to the self-service terminal equipment and comprises the following steps:

self-checking: configuring a HUB chipset and a port equipment detection circuit connected with the HUB chipset; acquiring the power-on condition of the HUB chipset, and executing power-on self-test operation based on the HUB chipset, the port equipment detection circuit and the power-on condition to obtain the access number of first equipment;

a port binding step: setting a threshold value of the number of external devices; executing port binding operation based on the HUB chipset, the first equipment access number and the external equipment number threshold value to obtain a binding condition;

a service requirement obtaining step: configuring a service class and equipment matching set; calling the port equipment detection circuit to acquire a new equipment access state of the HUB chipset; performing data interaction operation based on the HUB chipset, the service class and equipment matching set and the new equipment access state to obtain service requirements;

flexible power-off steps: and performing selective power-down operation based on the binding condition and the service requirement.

As an improved scheme, an external port is arranged in the HUB chipset, and the power-on self-test operation includes:

when the power-on condition is successful, calling the port equipment detection circuit to detect the condition of access equipment corresponding to the external port;

calling the HUB chip set to acquire the condition of the access equipment as the existence of a first port number of the external port of the access equipment, and counting the first number of the first port number;

and setting the first quantity as the access quantity of the first equipment.

As an improved scheme, the binding condition comprises a bound device and an unbound port;

the port binding operation comprises:

when the access quantity of the first equipment is greater than the threshold value of the quantity of the external equipment, setting the external port corresponding to the first port number as a first port;

setting the external port except the first port as a second port; calling the HUB chip group to perform power-off operation on the second port;

and (3) executing a binding step: reading ID information of access equipment in the first port, binding the ID information with the first port number of the first port, and setting the access equipment corresponding to the ID information as the bound equipment;

and calling the HUB chip set to carry out power-on operation on the second port, and setting the second port as the unbound port.

As an improved solution, the data interaction operation includes:

when the new equipment access state is no new equipment access, calling the HUB chip set to acquire service information in the self-service terminal equipment;

extracting the service type in the service information, and screening out the demand equipment matched with the service type in the service type and equipment matching set;

and identifying first equipment information of the demand equipment, and setting the first equipment information as the service demand.

As an improvement, the selectively powering down operation includes:

acquiring second equipment information of the bound equipment, and identifying whether the first equipment information has equipment information which is not matched with the second equipment information;

if the device information does not exist, setting the bound device corresponding to the first device information matched with the second device information as a device to be started; calling the HUB chipset to perform the power-off operation on the unbound port and the first port except the first port corresponding to the device to be started;

if yes, calculating the quantity of required equipment of the required equipment corresponding to the first equipment information which is not matched with the second equipment information; selecting the unbound ports with the number corresponding to the number of the required equipment from the unbound ports as the reserved ports; and calling the HUB chip group to perform the power-down operation on the unbound ports except the reserved port.

As an improvement, the method further comprises:

configuring an illegal equipment identification set;

and when the reserved port is generated in the selective power-down operation, executing a security detection operation based on the illegal device identification set and the reserved port.

As an improved solution, the security detection operation includes:

acquiring equipment identification information of access equipment in the reserved port;

judging whether the illegal equipment identification matched with the equipment identification information exists in the illegal equipment identification set or not; if the reserved port does not exist, setting the reserved port corresponding to the equipment identification information as the first port, and executing the binding step; and if so, calling the HUB chip set to alarm the self-service terminal equipment.

The invention also provides a flexible regulation and control system of the external equipment, which comprises:

the system comprises a self-checking module, a binding module, a demand acquisition module and a flexible power-off module;

the self-checking module is used for configuring a HUB chipset and a port equipment detection circuit connected with the HUB chipset; the self-checking module acquires the power-on condition of the HUB chipset, and executes power-on self-checking operation based on the power-on condition, the HUB chipset and the port equipment detection circuit to obtain the access number of the first equipment;

the binding module is used for setting a threshold value of the number of external devices, and executing port binding operation based on the HUB chipset, the first device access number and the threshold value of the number of external devices to obtain a binding condition;

the demand acquisition module is used for configuring a matching set of service types and equipment quantity and calling the port equipment detection circuit to acquire a new equipment access state of the HUB chipset; the demand acquisition module performs data interaction operation based on the HUB chipset, the service type and equipment number matching set and the new equipment access state to obtain service demands;

the flexible power-down module is used for executing selective power-down operation according to the binding condition and the service requirement.

As an improvement, the HUB chipset comprises: a plurality of cascaded USBHUB chips; a first chip in the USBHUB chips is connected with a host of the self-service terminal equipment, and control pins are arranged in downlink USB interfaces of the USBHUB chips;

the port device detection circuit includes: a plurality of overcurrent protection circuits and a plurality of indication circuits; the overcurrent protection circuit and the indicating circuit are in one-to-one correspondence; the indicating circuits correspond to the control pins one to one; one end of the indicating circuit is connected with the overcurrent protection circuit corresponding to the indicating circuit, and the other end of the indicating circuit is connected with the control pin corresponding to the indicating circuit.

The invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the flexible regulation and control method of the external device are realized.

The invention has the beneficial effects that:

1. the flexible regulation and control method of the external equipment can flexibly control the external equipment on the self-service terminal to be powered on and powered off, can reserve ports for the external equipment according to business requirements, and power off some unnecessary external equipment according to the business requirements, and can detect the legality of the external equipment which is automatically accessed by a user.

The flexible regulation and control system of the external equipment can realize the power-on and power-off control of the external equipment on the self-service terminal through the mutual matching of the self-checking module, the binding module, the demand acquisition module and the flexible power-off module, reserve ports for the external equipment according to business requirements, power off some unnecessary external equipment according to the business requirements, and detect the legality of the external equipment which is automatically accessed by a user.

2. The computer-readable storage medium can realize the cooperation of the guiding self-checking module, the binding module, the demand acquisition module and the flexible power-off module, further realize the power-on and power-off control of the external equipment on the self-service terminal, reserve ports for the external equipment according to business requirements, power off some unnecessary external equipment according to the business requirements, and detect the legality of the external equipment which is automatically accessed by a user.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.

Fig. 1 is a flowchart of a flexible regulation and control method for an external device according to embodiment 1 of the present invention;

fig. 2 is a schematic specific flowchart of a flexible regulation and control method for an external device according to embodiment 1 of the present invention;

fig. 3 is an architecture diagram of a flexible control system of an external device according to embodiment 2 of the present invention;

fig. 4 is an architecture diagram of an implementation effect of the flexible regulation and control system of the external device according to embodiment 2 of the present invention;

fig. 5 is an enlarged schematic view of a portion a in fig. 4.

Detailed Description

The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.

In the description of the present invention, it should be noted that the described embodiments of the present invention are a part of the 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 embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In the description of the present invention, it should be noted that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.

In the description of the present invention, it should be noted that, unless explicitly specified or limited otherwise, the terms "HUB chipset", "port device detection circuit", "power-on condition", "power-on self-test operation", "first device access number", "external device number threshold", "port binding operation", "bound device", "unbound port", "traffic class and device matching set", "new device access state", "data interaction operation", "selective power-off operation", "external port", "existing access device", "port number", "power-off operation", "binding step", "ID information", "power-on operation", "no new device access", "device information", "device to be started", "required device number", "reserved port", "illegal device identification set", "device identification information" The terms "illegal device identifier", "self-checking module", "binding module", "requirement acquisition module", "flexible power-down module", "USB bu B chip", "control pin", "downstream USB interface", "over-current protection circuit", and "indication circuit" should be understood in a broad sense. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.

In the description of the present invention, it is to be noted that:

DC (direct Current) is direct current;

MCU (microcontroller Unit) is a micro control unit;

VID/PID (VendorID/product ID) is the manufacturer ID or product ID;

USBHUB (Universal Serial bus hub) is a universal serial bus hub;

bmc (baseboard Management controller) is a baseboard Management controller;

CPLD (Complex Programmable logic device) is a complex Programmable logic device.

Example 1

The embodiment provides a flexible regulation and control method of an external device, as shown in fig. 1 and fig. 2, which is applied to a self-service terminal device, and the method includes the following steps:

s100, self-checking:

step S100 specifically includes:

s101, configuring a HUB chip set and a port equipment detection circuit connected with the HUB chip set; acquiring the power-on condition of the HUB chipset, and executing power-on self-test operation based on the HUB chipset, the port equipment detection circuit and the power-on condition to obtain the access number of first equipment;

specifically, in this embodiment, the HUB chipset includes: a plurality of cascaded USBHUB chips; a first chip in the USBHUB chips is connected with a host of the self-service terminal equipment, and control pins are arranged in downlink USB interfaces of the USBHUB chips; the port device detection circuit includes: a plurality of overcurrent protection circuits and a plurality of indication circuits; the overcurrent protection circuit and the indicating circuit are in one-to-one correspondence; the indicating circuits correspond to the control pins one to one; one end of the indicating circuit is connected with the overcurrent protection circuit, and the other end of the indicating circuit is connected with the control pin; correspondingly, a plurality of cascade USBHUB chips, namely an uplink USB interface of the next-stage HUB chip is connected with any downlink USB interface of the previous-stage HUB chip; a star-shaped HUB chip topological structure is formed finally; correspondingly, in this embodiment, the first chip in the HUB chipset is a root-level HUB chip, and the root-level HUB chip is interactively connected with the host of the autonomous terminal device through the USB socket; correspondingly, in the embodiment, the overcurrent protection circuit adopts a USB overcurrent protection chip, and the overcurrent protection threshold of the chip is modified by the resistance value of a resistor connected in series externally; the indicating circuit adopts a control circuit with an LED lamp, and the LE D lamp is used for displaying the working states of USB interfaces of different chips in the HUB chip set; correspondingly, in this embodiment, an MCU chip is further provided, and the MCU chip is not limited and can be replaced by a processing chip such as a BMC or a CPLD; correspondingly, MCU chip collocation 74HC595 chip detects the port state to the HUB chipset, and the cooperation of MCU chip and 74HC595 chip can make MCU not confine the restriction of its IO mouth to, and then controls a plurality of HUB chips and a plurality of indicating circuit.

Specifically, the power-on self-test operation includes:

when the power-on condition is successful, calling the port equipment detection circuit to detect an external port of the HUB chipset and an access equipment condition corresponding to the external port; correspondingly, the host computer of the self-service terminal device controls the HUB chip set to be powered on and powered off, when the power-on condition is successful, the self-service terminal device is started, corresponding external device configuration is required to be carried out, and therefore power-on self-check is carried out: calling the HUB chip set to acquire the condition of the access equipment as the existence of a first port number of the external port of the access equipment, and counting the first number of the first port number; setting the first quantity as the first equipment access quantity; and after the detection is finished, obtaining the corresponding first equipment access quantity, and returning to the host of the self-service terminal equipment.

S200, port binding:

step S200 specifically includes:

s201, setting a threshold value of the number of external devices; executing port binding operation based on the HUB chipset, the first equipment access number and the external equipment number threshold value to obtain a binding condition; the binding condition comprises the following steps: bound devices and unbound ports;

specifically, the port binding operation includes: when the access quantity of the first equipment is greater than the threshold value of the quantity of the external equipment, setting the external port corresponding to the first port number as a first port, wherein the first port is a port needing to be used and bound; in this embodiment, the threshold of the number of external devices is set to 0, that is, when the access number of the first device is greater than 0, it indicates that there is an external device and corresponding port binding needs to be performed; correspondingly, in order to perform high-flexibility control on the port and save the output power consumption of the equipment during the binding period, the external port except the first port is set as a second port which is a port which is not required to be bound and used temporarily; calling the HUB chip group to perform power-off operation on the second port; in this embodiment, the power-down operation is to interrupt power supply to a corresponding port in the HUB chipset; in the embodiment, direct current voltage is adopted for power supply, and the direct current voltage is stabilized to +5V through DC, and is stabilized to +3.3V from +5V, and then the direct current voltage is supplied to the HUB chip set, the MCU chip and the indicating circuit; correspondingly, after the first port and the second port are determined, executing a binding step: reading ID information of an access device in the first port, where in this embodiment, the ID information includes but is not limited to VID/PID information of an access USB device; binding the ID information with the first port number of the first port, and setting the access device corresponding to the ID information as the bound device; correspondingly, after binding, the external device under the corresponding binding port can perform subsequent power-on operation, and the binding information needs to be returned to the host of the self-service terminal device; then calling the HUB chip group to carry out power-on operation on the second port, and setting the second port as the unbound port; correspondingly, the purpose of the step is to electrify all ports after binding all the external devices, so as to prepare for later self-service terminal service interaction; correspondingly, after the HUB chipset executes the corresponding operation, command response and interaction are performed to the host of the self-service terminal device, which is not described herein again; through this step, only need HUB chipset's configuration can bind the information and the port number of external device, need not loaded down with trivial details configuration operation, and at the in-process that the port was bound, still can power off to the port that temporarily does not use, further saved self service terminal's power consumption, improved self service terminal's feature of environmental protection.

S300, a service requirement obtaining step:

step S300 specifically includes:

s301, configuring a service type and equipment matching set; calling the port equipment detection circuit to acquire a new equipment access state of the HUB chipset; performing data interaction operation based on the HUB chipset, the service class and equipment matching set and the new equipment access state to obtain service requirements; in this embodiment, the service class and device matching set is a data set of the external device according to corresponding requirements set by a plurality of different service classes; for example: if the service requirement is user password modification, the external equipment is required to be face identification equipment, bank card identification equipment and identity card identification equipment; if the service requirement is the internet bank password modification service, the external equipment is required to be identity card identification equipment and U shield identification equipment;

specifically, the data interaction operation includes: when the new equipment access state is no new equipment access, calling the HUB chip set to acquire service information in the self-service terminal equipment; in this embodiment, the new device access state is whether a newly accessed external device exists in a port of the HUB chipset; correspondingly, if the new equipment does not exist, the new equipment is accessed in the state of no new equipment; if the new equipment access state exists, the new equipment access state is that the new equipment access exists; correspondingly, in the step, in order to further ensure that after all the external devices are connected to the HUB chipset, the corresponding service requirements are acquired and interacted, and the stability of the self-service terminal device is further ensured; correspondingly, extracting the service class in the service information, and screening out the demand equipment corresponding to the service class in the service class and equipment matching set; extracting first equipment information of the demand equipment, and setting the first equipment information as the service demand; in this embodiment, the first device information includes, but is not limited to, a type of the demand device, identification information of the demand device, and the like.

S400, flexibly powering off:

step S400 specifically includes:

s401, executing selective power-off operation based on the binding condition and the service requirement;

specifically, the selective power-down operation includes: acquiring second equipment information of the bound equipment, and identifying whether the first equipment information has equipment information which is not matched with the second equipment information; if the device information does not exist, setting the bound device corresponding to the first device information matched with the second device information as a device to be started; calling the HUB chipset to perform the power-off operation on the unbound port and the first port except the first port corresponding to the device to be started; if yes, calculating the quantity of required equipment of the required equipment corresponding to the first equipment information which is not matched with the second equipment information; selecting the unbound ports with the number corresponding to the number of the required equipment from the unbound ports as the reserved ports; calling the HUB chip group to perform the power-down operation on the unbound ports except the reserved port; correspondingly, the selective power-off operation aims at powering on peripherals which need to be used in business requirements and powering off peripherals which are temporarily not needed in the business requirements, so that the power consumption of the self-service terminal equipment is reduced, the flexibility is extremely high, the phenomenon that the unneeded peripherals are on line for a long time is avoided, the service life of the self-service terminal equipment is shortened, and the environmental friendliness of the self-service terminal equipment is reduced; correspondingly, when the first device information contains device information which is not matched with the second device information, the peripheral equipment in the currently bound port does not meet the service requirement, so that the port needs to be reserved for the user, the user can conveniently insert the peripheral equipment of the user, and the corresponding service interaction is completed; specifically, in order to ensure the security of the self-service terminal device, an illegal device identifier set needs to be configured; when a reserved port is generated in the selective power-down operation, executing safety detection operation based on the illegal equipment identification set and the reserved port; the security detection operation includes: acquiring equipment identification information of access equipment in the reserved port; in this embodiment, the device identification information includes, but is not limited to, an ID number, a device type, a device name, and a device model number; correspondingly, the illegal equipment identification set is a data set integrated according to data such as relevant illegal USB equipment models, ID information and the like in a data security center in the network and is used for distinguishing the legality of the peripheral equipment accessed by the user; judging whether the illegal equipment identification matched with the equipment identification information exists in the illegal equipment identification set or not; if the reserved port does not exist, setting the reserved port corresponding to the equipment identification information as the first port, and executing the binding step; if yes, calling the HUB chip set to give an alarm to the self-service terminal equipment; in this embodiment, if there is no illegal device identifier matching with the device identifier information, which indicates that the peripheral accessed by the user is safe and legal, the user can use the device, so the binding step is performed; correspondingly, the warning mode includes but is not limited to sending a notification to the host of the self-service terminal device, or prompting by adopting a mode that an indicating circuit flashes frequently.

Through the flexible regulation and control method of the external equipment described in the embodiment, the peripheral equipment in the self-service terminal equipment can be flexibly and flexibly controlled from top to bottom, the peripheral equipment can be further regulated and controlled according to business requirements, certain flexibility can be guaranteed, the power consumption of the self-service terminal equipment can be reduced, the external equipment which is automatically accessed by a user can be controlled through final safety detection operation, the safety of the self-service terminal equipment is improved, and the defects of the prior art are overcome.

Example 2

The present embodiment provides a flexible regulation and control system of an external device, as shown in fig. 3 to 5, including: the system comprises a self-checking module, a binding module, a demand acquisition module and a flexible power-off module;

in the flexible regulation and control system of the external device, a self-checking module is used for configuring a HUB chipset and a port device detection circuit connected with the HUB chipset; the self-checking module acquires the power-on condition of the HUB chipset, and executes power-on self-checking operation based on the power-on condition, the HUB chipset and the port equipment detection circuit to obtain the access number of the first equipment;

specifically, the HUB chipset includes: a plurality of cascaded USBHUB chips; a first chip in the US BHUB chips is connected with a host of the self-service terminal equipment, and control pins are arranged in downlink USB interfaces of the US BHUB chips; the port device detection circuit includes: a plurality of overcurrent protection circuits and a plurality of indication circuits; the overcurrent protection circuit and the indicating circuit are in one-to-one correspondence; the indicating circuits correspond to the control pins one to one; one end of the indicating circuit is connected with the overcurrent protection circuit, and the other end of the indicating circuit is connected with the control pin;

specifically, the power-on self-test operation includes: when the power-on condition is successful, the self-checking module calls the port equipment detection circuit to detect the access equipment condition corresponding to the external port of the HUB chipset; the self-checking module calls the HUB chip set to acquire a first port number of the external port of the access equipment when the condition of the access equipment is that the access equipment exists, and counts a first number of the first port number; and the self-checking module sets the first quantity as the access quantity of the first equipment.

In the flexible regulation and control system of the external equipment, a binding module is used for setting a threshold value of the number of the external equipment, and executing port binding operation based on the HUB chipset, the first equipment access number and the threshold value of the number of the external equipment to obtain bound equipment and unbound ports;

specifically, the port binding operation includes: when the access quantity of the first equipment is greater than the threshold value of the quantity of the external equipment, the binding module sets the external port corresponding to the first port number as a first port; the binding module sets the external port except the first port as a second port; the binding module calls the HUB chip set to perform power-off operation on the second port; the binding module performs the binding step: the binding module reads ID information of access equipment in the first port and binds the ID information with the first port number of the first port, and the binding module sets the access equipment corresponding to the ID information as the bound equipment; and the binding module calls the HUB chip group to carry out power-on operation on the second port, and sets the second port as the unbound port.

In the flexible regulation and control system of the external equipment, a demand acquisition module is used for configuring a matching set of service types and equipment quantity and calling a port equipment detection circuit to acquire a new equipment access state of the HUB chipset; the demand acquisition module performs data interaction operation based on the HUB chipset, the service type and equipment number matching set and the new equipment access state to obtain service demands;

specifically, the data interaction operation includes: when the new equipment access state is no new equipment access, the demand acquisition module calls the HUB chip set to acquire service information in the self-service terminal equipment; a demand acquisition module extracts the service type in the service information, and screens out demand equipment corresponding to the service type in the service type and equipment matching set; the demand acquisition module extracts first equipment information of the demand equipment and sets the first equipment information as the service demand.

In the flexible regulation and control system of the external device, a flexible power-down module is used for executing selective power-down operation according to the bound device, the unbound port and the service requirement;

specifically, the selective power-down operation includes: the flexible power-down module acquires second equipment information of the bound equipment and identifies whether the first equipment information contains equipment information which is not matched with the second equipment information; if the bound equipment does not exist, the flexible power-down module sets the bound equipment corresponding to the first equipment information matched with the second equipment information as equipment to be started; the flexible power-down module calls the HUB chipset to perform the power-down operation on the unbound port and the first port except the first port corresponding to the device to be started; if yes, the flexible power-down module calculates the required equipment number of the required equipment corresponding to the first equipment information which is not matched with the second equipment information; the flexible power-down module selects the unbound ports with the number corresponding to the number of the required devices from the unbound ports as the reserved ports; the flexible power-down module calls the HUB chip group to perform the power-down operation on the unbound ports except the reserved port;

correspondingly, a legal detection module and an illegal equipment identification set are also configured in the flexible power-down module; when a reserved port is generated in the selective power-down operation, the flexible power-down module executes security detection operation based on the illegal equipment identification set and the reserved port; the security detection operation includes: flexibly powering off the module and calling a legal detection module to acquire equipment identification information of access equipment in the reserved port; the flexible power-down module calls a legal detection module to judge whether the illegal equipment identification set has the illegal equipment identification matched with the equipment identification information; if the device identification information does not exist, the power-down module flexibly sets the reserved port corresponding to the device identification information as the first port and executes the binding step; if yes, the flexible power-down module calls the HUB chipset to give an alarm to the self-service terminal equipment.

Through the flexible regulation and control system of the external device described in this embodiment, through the mutual cooperation of the self-checking module, the binding module, the demand acquisition module and the flexible power-off module, the peripheral in the self-service terminal device can be flexibly and flexibly controlled electrically from top to bottom, and the peripheral can be further regulated and controlled according to business requirements, so that certain flexibility can be ensured, the power consumption of the self-service terminal device can be reduced, the external device which is automatically accessed by a user can be managed and controlled through final safety detection operation, the safety of the self-service terminal device is improved, and the defects of the prior art are overcome.

Example 3

The present embodiments provide a computer-readable storage medium comprising:

the storage medium is used for storing computer software instructions for implementing the flexible regulation and control method of the external device according to embodiment 1, and includes a program for executing the flexible regulation and control method of the external device; specifically, the executable program may be embedded in the flexible regulation and control system of the external device described in embodiment 2, so that the flexible regulation and control system of the external device may implement the flexible regulation and control method of the external device described in embodiment 1 by executing the embedded executable program.

Furthermore, the computer-readable storage medium of the present embodiments may take any combination of one or more readable storage media, where a readable storage medium includes an electronic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.

Different from the prior art, the method, the system and the medium for flexibly regulating and controlling the external equipment can flexibly control the external equipment on the self-service terminal to be powered on and powered off through the method, the port can be reserved for the external equipment according to the business requirement, unnecessary external equipment is powered off according to the business requirement, the external equipment which is automatically accessed by a user is subjected to legality detection, effective technical support is provided for the method through the system, the flexibility and the safety of the method are extremely high, the operation is simple, the defects of the prior art are overcome, and the method has extremely high market value.

The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.

It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.

The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种RS485总线接口电路

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!