CN113791991B - Flexible regulation and control method, system and medium for external equipment - Google Patents

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

Info

Publication number
CN113791991B
CN113791991B CN202110959619.5A CN202110959619A CN113791991B CN 113791991 B CN113791991 B CN 113791991B CN 202110959619 A CN202110959619 A CN 202110959619A CN 113791991 B CN113791991 B CN 113791991B
Authority
CN
China
Prior art keywords
equipment
port
power
binding
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110959619.5A
Other languages
Chinese (zh)
Other versions
CN113791991A (en
Inventor
王瑞焕
曹如
胡焱
安静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN202110959619.5A priority Critical patent/CN113791991B/en
Publication of CN113791991A publication Critical patent/CN113791991A/en
Application granted granted Critical
Publication of CN113791991B publication Critical patent/CN113791991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a flexible regulation and control method, a flexible regulation and control system and a medium of external equipment, wherein the method comprises the following steps: configuring a HUB chip set and a port device detection circuit connected with the HUB chip set; acquiring a power-on condition of the HUB chipset, and executing power-on self-checking operation based on the power-on condition to obtain the access quantity of the first equipment; executing port binding operation based on the HUB chipset, the first equipment access number and the external equipment number threshold value to obtain binding condition; calling a port device detection circuit to acquire a new device access state of the HUB chipset; acquiring service requirements based on the HUB chipset, the service class, the device matching set and the new device access state; performing selective power-down operations based on binding conditions and business requirements; the application can power down unnecessary external equipment according to service requirements, and perform validity detection on the external equipment which is automatically accessed by a user, and has extremely high flexibility and safety.

Description

Flexible regulation and control method, system and medium for external equipment
Technical Field
The application 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 of external equipment.
Background
The regulation and control method of the external equipment adopted in the existing self-service terminal equipment is to bind the information of the port and the external equipment in a mode of configuration files, the mode is poor in operability and limited by the explanation documents of the external equipment, the external equipment cannot be identified and bound quickly, and the external equipment cannot be controlled up and down according to requirements, so that the flexibility and the safety are poor.
Disclosure of Invention
The application mainly solves the problems of poor flexibility and safety of the regulation and control method of the external equipment adopted in the existing self-service terminal equipment.
In order to solve the technical problems, the application adopts a technical scheme that: the flexible regulation and control method for the external equipment is applied to the self-service terminal equipment and comprises the following steps:
and (3) self-checking: configuring a HUB chip set and a port device detection circuit connected with the HUB chip set; acquiring the power-on condition of the HUB chipset, and executing power-on self-checking operation based on the HUB chipset, the port equipment detection circuit and the power-on condition to obtain a first equipment access number;
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 demand acquisition 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, the equipment matching set and the new equipment access state to obtain service requirements;
flexible power-down steps: and executing selective power-down operation based on the binding condition and the service requirement.
As an improved scheme, be equipped with external port in the HUB chipset, power on self-checking operation includes:
when the power-on condition is successful power-on, the port equipment detection circuit is called to detect the condition of the access equipment corresponding to the external port;
invoking the HUB chipset to acquire 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 first equipment access quantity.
As an improvement, the binding condition comprises a bound device and an unbound port;
the port binding operation includes:
when the number of the first device accesses is larger than the number threshold of the external devices, setting the external port corresponding to the first port number as a first port;
setting the external ports except the first port as second ports; invoking the HUB chipset to perform power-down operation on the second port;
and (3) performing 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 chipset to perform power-on operation on the second port, and setting the second port as the unbound port.
As an improvement, the data interaction operation includes:
when the new equipment access state is that no new equipment is accessed, calling the HUB chipset to acquire service information in the self-service terminal equipment;
extracting a business category in the business information, and screening out required equipment matched with the business category from the business category 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 selective power-down operation includes:
acquiring second equipment information of the bound equipment, and identifying whether equipment information which is not matched with the second equipment information exists in the first equipment information;
if the equipment information does not exist, setting the bound equipment corresponding to the first equipment information matched with the second equipment information as equipment to be started; calling the HUB chipset to perform the power-down operation on the unbound port and a first port except for a first port corresponding to the equipment to be started;
if so, calculating the number of the required devices corresponding to the first device information which is not matched with the second device information; selecting the unbound ports, the number of which corresponds to the number of the required devices, from the unbound ports as the reserved ports; and calling the HUB chipset to perform the power-down operation on the unbound ports except the reserved port.
As an improvement, the method further comprises:
configuring an illegal device identification set;
and when the reserved port is generated in the selective power-down operation, performing a security detection operation based on the illegal device identification set and the reserved port.
As an improvement, the security detection operation includes:
acquiring equipment identification information of access equipment in the reserved port;
judging whether illegal equipment identifiers matched with the equipment identifier information exist in the illegal equipment identifier set or not; if not, 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 chipset to alarm the self-service terminal equipment.
The application also provides a flexible regulation and control system of the external equipment, which comprises:
the device comprises a self-checking module, a binding module, a demand acquisition module and a flexible power-down module;
the self-checking module is used for configuring a HUB chip set and a port equipment detection circuit connected with the HUB chip set; 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 quantity of the first equipment;
the binding module is used for setting the number threshold of the external devices, and executing port binding operation based on the HUB chipset, the first device access number and the number threshold of the external devices to obtain a binding condition;
the demand acquisition module is used for configuring a service class and equipment number matching set and calling the port equipment detection circuit to acquire a new equipment access state of the HUB chipset; the requirement acquisition module executes data interaction operation based on the HUB chipset, the service class and equipment quantity matching set and the new equipment access state to obtain service requirements;
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 includes: a plurality of cascaded USBHUB chips; a first chip in the plurality of USBHUB chips is connected with a host of the self-service terminal equipment, and control pins are arranged in downlink USB interfaces of the plurality of USBHUB chips;
the port device detection circuit includes: a plurality of overcurrent protection circuits and a plurality of indication circuits; the overcurrent protection circuits are in one-to-one correspondence with the indication circuits; the indication circuits are in one-to-one correspondence with the control pins; 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 application also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of the flexible regulation method of the external device.
The beneficial effects of the application are as follows:
1. the flexible regulation and control method of the external equipment can realize flexible power-on and power-off control of the external equipment on the self-service terminal, reserve ports for the external equipment according to service requirements, power-off unnecessary external equipment according to the service requirements, and perform validity detection on the external equipment which is automatically accessed by a user, and the whole method has extremely high flexibility and safety, is simple to operate, overcomes the defects of the prior art, and has extremely high market value.
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 coordination 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 service demands, power-off unnecessary external equipment according to the service demands, and perform validity detection on the external equipment which is automatically accessed by a user, so that the whole system has extremely high flexibility and safety, is simple to operate, makes up the defects of the prior art, and has extremely high market value.
2. The computer readable storage medium can realize the coordination of the guiding self-checking module, the binding module, the demand acquisition module and the flexible power-down 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 service demands, power down some unnecessary external equipment according to the service demands, and perform validity detection on the external equipment which is automatically accessed by a user, has simple operation, extremely high flexibility and safety, makes up the defects of the prior art, has extremely high market value, and effectively improves the operability of the flexible regulation and control method of the external equipment.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a flexible control method for an external device according to embodiment 1 of the present application;
FIG. 2 is a schematic flow chart of a flexible control method for an external device according to embodiment 1 of the present application;
FIG. 3 is a schematic diagram of a flexible control system for an external device according to embodiment 2 of the present application;
FIG. 4 is a schematic diagram of the implementation effect of the flexible control system of the external device according to embodiment 2 of the present application;
fig. 5 is an enlarged schematic view of the portion a in fig. 4.
Detailed Description
The preferred embodiments of the present application will be described in detail below with reference to the accompanying drawings so that the advantages and features of the present application can be more easily understood by those skilled in the art, thereby making clear and defining the scope of the present application.
In the description of the present application, it should be noted that the described embodiments of the present application are some, but not all embodiments of the present application; all other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the description of the present application, it should be noted that the terms "first," "second," 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 application, unless explicitly specified and defined 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", "service class and device matching set", "new device access state", "data interaction operation", "selective power-down operation", "external port", "access device present", "port number", "power-down operation", "binding step", "ID information", "power-on operation", "no new device access", "device information", "device to be started", "demand device number", "reserved port", "illegal device identification set", "device identification information", "illegal device identification", "self-test module", "binding module", "demand acquisition module", "flexible power-down module", "USBHU B chip", "control pin", "downlink USB interface", "overcurrent protection circuit", "instruction circuit" are to be understood in a broad sense. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
In describing the present application, it should be noted that:
DC (Direct Current) is direct current;
MCU (Microcontroller Unit) is a micro control unit;
VID/PID (VendorID/ProductID) is the manufacturer ID or product ID;
USBHUB (Universal SerialBus 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 external equipment, which is applied to self-service terminal equipment as shown in fig. 1 and 2, and comprises the following steps:
s100, self-checking:
the step S100 specifically includes:
s101, configuring a HUB chip set and a port device detection circuit connected with the HUB chip set; acquiring the power-on condition of the HUB chipset, and executing power-on self-checking operation based on the HUB chipset, the port equipment detection circuit and the power-on condition to obtain a first equipment access number;
specifically, in this embodiment, the HUB chipset includes: a plurality of cascaded USBHUB chips; a first chip in the plurality of USBHUB chips is connected with a host of the self-service terminal equipment, and control pins are arranged in downlink USB interfaces of the plurality of USBHUB chips; the port device detection circuit includes: a plurality of overcurrent protection circuits and a plurality of indication circuits; the overcurrent protection circuits are in one-to-one correspondence with the indication circuits; the indication circuits are in one-to-one correspondence with the control pins; 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 cascaded USBHUB chips are that the uplink USB interface of the next HUB chip is connected with any downlink USB interface of the previous HUB chip; finally, a star-shaped HUB chip topological structure is formed; correspondingly, in this embodiment, the first chip in the HUB chipset is a root HUB chip, and the root HUB chip is connected with the host of the autonomous terminal device through the USB socket in an interactive manner; correspondingly, in the embodiment, the overcurrent protection circuit adopts a USB overcurrent protection chip, and the overcurrent protection threshold of the chip is modified through the resistance value of the resistors 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 chipset; correspondingly, in the embodiment, an MCU chip is further arranged, and the MCU chip is not limited and can be replaced by a BMC or CPLD processing chip; correspondingly, the MCU chip is matched with the 74HC595 chip to detect the port state of the HUB chipset, and the MCU chip and the 74HC595 chip are matched to enable the MCU to be not limited by the limitation of the IO port of the MCU chip, so that a plurality of HUB chips and a plurality of indicating circuits are controlled.
Specifically, the power-on self-checking operation includes:
when the power-on condition is successful power-on, the port equipment detection circuit is called 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 equipment controls the power-on and power-off of the HUB chipset, and when the power-on condition is that the power-on is successful, the starting of the self-service terminal equipment is indicated, and the corresponding external equipment configuration is needed, so that the starting self-test is carried out: invoking the HUB chipset to acquire 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 number as the first equipment access number; after the detection is finished, the corresponding first equipment access quantity is obtained, and the corresponding first equipment access quantity is returned to the host of the self-service terminal equipment.
S200, port binding:
the 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 case includes: a bound device and an unbound port;
specifically, the port binding operation includes: when the number of the first device accesses is larger than the number threshold of the external devices, setting the external port corresponding to the first port number as a first port, wherein the first port is a port which needs to be used and bound; in this embodiment, the number threshold of the external devices is set to 0, that is, when the number of the first devices connected in is greater than 0, it is indicated that there are external devices, and corresponding port binding needs to be performed; correspondingly, in order to control the ports with high flexibility and save the output power consumption of the equipment during the binding period, the external ports except the first port are set as second ports, and the second ports are ports which do not need to be bound and used temporarily; invoking the HUB chipset to perform power-down operation on the second port; in this embodiment, the power-down operation is to interrupt power supply to the corresponding port in the HUB chipset; in the embodiment, direct current voltage is adopted for power supply, and after the direct current voltage is regulated to +5V through DC and regulated to +3.3V from +5V, the direct current voltage is supplied to the HUB chip set, the MCU chip and the indication circuit; correspondingly, after the first port and the second port are determined, a binding step is executed: reading ID information of the access device in the first port, wherein the ID information comprises, but is not limited to, VID/PID information of the 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, the HUB chipset is called to carry out power-on operation on the second port, and the second port is set to be the unbound port; correspondingly, the aim of the step is to electrify all ports after all external devices are bound, so as to prepare for the service interaction of the later self-service terminal; correspondingly, after corresponding operation is executed, the HUB chipset responds and interacts commands to the host of the self-service terminal equipment, and details are not repeated here; through this step, only need HUB chipset's configuration can bind the information and the port number of external equipment, do not need loaded down with trivial details configuration operation, and at the in-process that the port was bound, still can go on down to the port that temporarily does not use, further saved self-service terminal equipment's power consumption, improved self-service terminal equipment's feature of environmental protection.
S300, a business requirement acquisition step:
the step S300 specifically includes:
s301, 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, the equipment matching set and the new equipment access state to obtain service requirements; in this embodiment, the service class and the device matching set are data sets of external devices corresponding to requirements set according to a plurality of different service classes; for example: the service requirement is that the user password is modified, and the external equipment is face identification equipment, bank card identification equipment and identity card identification equipment; the service requirement is that the online banking password modifies the service, and the external equipment is identity card identification equipment and U shield identification equipment;
specifically, the data interaction operation includes: when the new equipment access state is that no new equipment is accessed, calling the HUB chipset to acquire service information in the self-service terminal equipment; in this embodiment, the new device access state is whether there is a newly accessed external device in a port of the HUB chipset; correspondingly, if the new equipment access state does not exist, the new equipment access state is that no new equipment is accessed; if the new equipment access state exists, the new equipment access state is that the new equipment access exists; correspondingly, in order to further ensure that after all external devices are accessed to the HUB chipset, the corresponding service requirements are acquired and interacted, so that the stability of the self-service terminal device is further ensured; correspondingly, extracting a business category in the business information, and screening out a demand device corresponding to the business category from a matching set of the business category and the device; extracting first equipment information of the demand equipment, and setting the first equipment information as the service demand; in the present embodiment, the first device information includes, but is not limited to, the type of the demand device, identification information of the demand device, and the like.
S400, flexibly powering down:
the step S400 specifically includes:
s401, executing selective power-down operation based on the binding condition and the service requirement;
specifically, the selective powering-down operation includes: acquiring second equipment information of the bound equipment, and identifying whether equipment information which is not matched with the second equipment information exists in the first equipment information; if the equipment information does not exist, setting the bound equipment corresponding to the first equipment information matched with the second equipment information as equipment to be started; calling the HUB chipset to perform the power-down operation on the unbound port and a first port except for a first port corresponding to the equipment to be started; if so, calculating the number of the required devices corresponding to the first device information which is not matched with the second device information; selecting the unbound ports, the number of which corresponds to the number of the required devices, from the unbound ports as the reserved ports; invoking the HUB chipset to perform the power-down operation on the unbound ports except the reserved port; correspondingly, the selective power-down operation aims to power up peripherals required to be used in service demands and power down peripherals temporarily not required in the service demands, so that the power consumption of the self-service terminal equipment is reduced, the flexibility is extremely high, the unnecessary peripherals are prevented from being online for a long time, the service life of the self-service terminal equipment is further shortened, and the environmental protection performance of the self-service terminal equipment is reduced; correspondingly, when the first equipment information contains equipment information which is not matched with the second equipment information, the fact that the peripheral equipment in the currently bound port does not meet the service requirement is indicated, so that the port needs to be reserved for the user, the user can conveniently insert the peripheral equipment, and corresponding service interaction is completed; specifically, in order to ensure the security of the self-service terminal device, an illegal device identification set needs to be configured; when a reserved port is generated in the selective power-down operation, safety detection operation is executed 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 the present 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 device identification set is a data set integrated according to the data such as the type and ID information of the related illegal USB device in the data security center in the network, and is used for distinguishing the legitimacy of the peripheral accessed by the user; judging whether illegal equipment identifiers matched with the equipment identifier information exist in the illegal equipment identifier set or not; if not, setting the reserved port corresponding to the equipment identification information as the first port, and executing the binding step; if yes, the HUB chipset is called to alarm the self-service terminal equipment; in this embodiment, if no illegal device identifier matched with the device identifier information indicates that the peripheral device accessed by the user is safe and legal, the method can be used, so that the binding step is performed; correspondingly, the alarming mode comprises, but is not limited to, sending a notification to a host of the self-service terminal equipment or prompting in a mode that an indication circuit frequently flashes.
Through the flexible regulation and control method of the external equipment, which is described by the embodiment, peripheral equipment in the self-service terminal equipment can be flexibly controlled up and down, the peripheral equipment can be further regulated and controlled according to service requirements, certain flexibility can be ensured, 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 control system for an external device, as shown in fig. 3 to 5, including: the device comprises a self-checking module, a binding module, a demand acquisition module and a flexible power-down module;
in the flexible regulation and control system of the external equipment, a self-checking module is used for configuring a HUB chip set and a port equipment detection circuit connected with the HUB chip set; 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 quantity of the first equipment;
specifically, the HUB chipset includes: a plurality of cascaded USBHUB chips; a first chip in the plurality of 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 plurality of US BHUB chips; the port device detection circuit includes: a plurality of overcurrent protection circuits and a plurality of indication circuits; the overcurrent protection circuits are in one-to-one correspondence with the indication circuits; the indication circuits are in one-to-one correspondence with the control pins; 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-checking operation includes: when the power-on condition is successful power-on, 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 chipset to acquire a first port number of the external port of the access equipment, and counts the first number of the first port number; and the self-checking module sets the first quantity as the first equipment access quantity.
In the flexible regulation and control system of the external devices, a binding module is used for setting the number threshold of the external devices, and executing port binding operation based on the HUB chipset, the first device access number and the number threshold of the external devices to obtain bound devices and unbound ports;
specifically, the port binding operation includes: when the number of the first device accesses is larger than the number threshold of the external devices, 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 chipset to perform power-down operation on the second port; the binding module performs the binding step: the binding module reads ID information of the access equipment in the first port, binds the ID information with the first port number of the first port, and sets the access equipment corresponding to the ID information as the bound equipment; and the binding module calls the HUB chipset to perform 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 device, a requirement acquisition module is used for configuring a service class and device quantity matching set and calling the port device detection circuit to acquire a new device access state of the HUB chip set; the requirement acquisition module executes data interaction operation based on the HUB chipset, the service class and equipment quantity matching set and the new equipment access state to obtain service requirements;
specifically, the data interaction operation includes: when the new equipment access state is that no new equipment is accessed, a demand acquisition module calls the HUB chipset to acquire service information in the self-service terminal equipment; the demand acquisition module extracts the service category in the service information, and screens out the demand equipment corresponding to the service category in the service category and equipment matching set; and 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 equipment, a flexible power-down module is used for executing selective power-down operation according to the bound equipment, the unbound ports and the service requirements;
specifically, the selective powering-down operation includes: the flexible power-down module acquires second equipment information of the bound equipment and identifies whether equipment information which is not matched with the second equipment information exists in the first equipment information; if the equipment information 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 a first port except a first port corresponding to the equipment to be started; if the first equipment information is not matched with the second equipment information, the flexible power-down module calculates the number of the required equipment corresponding to the first equipment information; the flexible power-down module selects the unbound ports, the number of which corresponds to the number of the required devices, from the unbound ports as the reserved ports; the flexible power-down module calls the HUB chipset 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 a security detection operation based on the illegal equipment identification set and the reserved port; the security detection operation includes: the flexible power-down module calls a legal detection module to acquire the equipment identification information of the access equipment in the reserved port; the flexible power-down module calls a legal detection module to judge whether illegal equipment identifiers matched with the equipment identifier information exist in the illegal equipment identifier set; if not, the flexible power-down module sets the reserved port corresponding to the equipment identification information as the first port, and executes the binding step; and if the HUB chip set is in the self-service terminal equipment, the flexible power-down module calls the HUB chip set to alarm the self-service terminal equipment.
Through the flexible regulation and control system of external equipment that this embodiment described, can pass through the mutual cooperation of self-checking module, binding module, demand acquisition module and nimble module of powering down, and then nimble peripheral hardware in the self-service terminal equipment goes up and down the electric control in a flexible way, and can carry out further regulation and control to the external equipment according to the business demand, not only can guarantee certain flexibility, can also reduce self-service terminal equipment's consumption, can also manage and control the external equipment that the user inserts by oneself through final safety inspection operation, self-service terminal equipment's security has been improved, the not enough of prior art has been compelled.
Example 3
The present embodiment provides a computer-readable storage medium including:
the storage medium is used for storing computer software instructions for implementing the flexible regulation method of the external device described in the above embodiment 1, and the computer software instructions include a program for executing the above program set for the flexible regulation method of the external device; specifically, the executable program may be built in the flexible regulation system of the external device described in embodiment 2, so that the flexible regulation system of the external device may implement the flexible regulation method of the external device described in embodiment 1 by executing the built-in executable program.
Further, the computer readable storage medium provided in the present embodiment may be any combination of one or more readable storage media, where the readable storage media includes an electric, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
Compared with the prior art, the flexible regulation and control method, the flexible regulation and control system and the medium for the external equipment can flexibly realize the power-on and power-off control of the external equipment on the self-service terminal through the method, can reserve ports for the external equipment according to service requirements, can power down some unnecessary external equipment according to the service requirements, and can perform validity detection on the external equipment which is automatically accessed by a user.
The foregoing embodiment of the present application has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or a program implemented by a program to instruct related hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description is only illustrative of the present application and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes or direct or indirect application in other related technical fields are included in the scope of the present application.

Claims (7)

1. The flexible regulation and control method of the external equipment is applied to the self-service terminal equipment and is characterized by comprising the following steps:
and (3) self-checking: configuring a HUB chip set and a port device detection circuit connected with the HUB chip set; acquiring the power-on condition of the HUB chipset, and executing power-on self-checking operation based on the HUB chipset, the port equipment detection circuit and the power-on condition to obtain a first equipment access number;
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 demand acquisition 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, the equipment matching set and the new equipment access state to obtain service requirements;
flexible power-down steps: executing selective power-down operation based on the binding condition and the service requirement;
an external port is arranged in the HUB chipset, and the power-on self-checking operation comprises:
when the power-on condition is successful power-on, the port equipment detection circuit is called to detect the condition of the access equipment corresponding to the external port;
invoking the HUB chipset to acquire 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 number as the first equipment access number;
the binding condition comprises bound equipment and unbound ports;
the port binding operation includes:
when the number of the first device accesses is larger than the number threshold of the external devices, setting the external port corresponding to the first port number as a first port;
setting the external ports except the first port as second ports; invoking the HUB chipset to perform power-down operation on the second port;
and (3) performing 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 chipset to perform power-on operation on the second port, and setting the second port as the unbound port.
2. The flexible control method of an external device according to claim 1, wherein the data interaction operation includes:
when the new equipment access state is that no new equipment is accessed, calling the HUB chipset to acquire service information in the self-service terminal equipment;
extracting a business category in the business information, and screening out required equipment matched with the business category from the business category and equipment matching set;
and identifying first equipment information of the demand equipment, and setting the first equipment information as the service demand.
3. The flexible control method of an external device according to claim 2, wherein the selective powering down operation comprises:
acquiring second equipment information of the bound equipment, and identifying whether equipment information which is not matched with the second equipment information exists in the first equipment information;
if the equipment information does not exist, setting the bound equipment corresponding to the first equipment information matched with the second equipment information as equipment to be started; calling the HUB chipset to perform the power-down operation on the unbound port and a first port except for a first port corresponding to the equipment to be started;
if so, calculating the number of the required devices corresponding to the first device information which is not matched with the second device information; selecting the unbound ports, the number of which corresponds to the number of the required devices, from the unbound ports as reserved ports; and calling the HUB chipset to perform the power-down operation on the unbound ports except the reserved port.
4. The flexible control method of an external device according to claim 3, further comprising:
configuring an illegal device identification set;
and when the reserved port is generated in the selective power-down operation, performing a security detection operation based on the illegal device identification set and the reserved port.
5. The flexible control method of an external device according to claim 4, wherein the security detection operation includes:
acquiring equipment identification information of access equipment in the reserved port;
judging whether illegal equipment identifiers matched with the equipment identifier information exist in the illegal equipment identifier set or not; if not, 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 chipset to alarm the self-service terminal equipment.
6. A flexible regulation and control system for an external device, comprising: the device comprises a self-checking module, a binding module, a demand acquisition module and a flexible power-down module;
the self-checking module is used for configuring a HUB chip set and a port equipment detection circuit connected with the HUB chip set; 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 quantity of the first equipment;
the binding module is used for setting the number threshold of the external devices, and executing port binding operation based on the HUB chipset, the first device access number and the number threshold of the external devices to obtain a binding condition;
the demand acquisition module is used for configuring a service class and equipment number matching set and calling the port equipment detection circuit to acquire a new equipment access state of the HUB chipset; the requirement acquisition module executes data interaction operation based on the HUB chipset, the service class and equipment quantity matching set and the new equipment access state to obtain service requirements;
the flexible power-down module is used for executing selective power-down operation according to the binding condition and the service requirement;
an external port is arranged in the HUB chipset, and the power-on self-checking operation comprises: when the power-on condition is successful power-on, the self-checking module calls the port equipment detection circuit to detect the condition of the access equipment corresponding to the external port; the self-checking module calls the HUB chipset to acquire a first port number of the external port of the access equipment, and counts the first number of the first port number; the self-checking module sets the first quantity as the first equipment access quantity;
the binding condition comprises bound equipment and unbound ports; the port binding operation includes: when the number of the first device accesses is larger than the number threshold of the external devices, 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 chipset to perform power-down operation on the second port;
the binding module performs a binding step: the binding module reads ID information of the access device 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 device corresponding to the ID information as the bound device; and the binding module calls the HUB chipset to perform power-on operation on the second port, and sets the second port as the unbound port.
7. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program when executed by a processor implements the steps of the flexible control method of the external device according to any one of claims 1 to 5.
CN202110959619.5A 2021-08-20 2021-08-20 Flexible regulation and control method, system and medium for external equipment Active CN113791991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110959619.5A CN113791991B (en) 2021-08-20 2021-08-20 Flexible regulation and control method, system and medium for external equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110959619.5A CN113791991B (en) 2021-08-20 2021-08-20 Flexible regulation and control method, system and medium for external equipment

Publications (2)

Publication Number Publication Date
CN113791991A CN113791991A (en) 2021-12-14
CN113791991B true CN113791991B (en) 2023-10-03

Family

ID=79181885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110959619.5A Active CN113791991B (en) 2021-08-20 2021-08-20 Flexible regulation and control method, system and medium for external equipment

Country Status (1)

Country Link
CN (1) CN113791991B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559162A (en) * 2013-10-28 2014-02-05 飞天诚信科技股份有限公司 Method and host for positioning USB (universal serial bus) devices on HUB set
CN106919525A (en) * 2015-12-28 2017-07-04 航天信息股份有限公司 A kind of USB device clustered control apparatus and system
US9727123B1 (en) * 2016-05-13 2017-08-08 Cypress Semiconductor Corporation Configurable and power-optimized integrated gate-driver for USB power-delivery and type-C SoCs
CN112557882A (en) * 2021-02-19 2021-03-26 深圳市明微电子股份有限公司 Chip initial address self-adaptive detection method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559162A (en) * 2013-10-28 2014-02-05 飞天诚信科技股份有限公司 Method and host for positioning USB (universal serial bus) devices on HUB set
CN106919525A (en) * 2015-12-28 2017-07-04 航天信息股份有限公司 A kind of USB device clustered control apparatus and system
US9727123B1 (en) * 2016-05-13 2017-08-08 Cypress Semiconductor Corporation Configurable and power-optimized integrated gate-driver for USB power-delivery and type-C SoCs
CN112557882A (en) * 2021-02-19 2021-03-26 深圳市明微电子股份有限公司 Chip initial address self-adaptive detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113791991A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
US8762746B1 (en) Power management in electronic devices
CN103748569B (en) The system and method without driving operation of USB device
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN107133185A (en) The method and mainboard of PCIE device warm connection function are realized by BIOS
CN104572226A (en) Method and device for detecting mainboard starting abnormity
CN105677596B (en) Control method and electronic equipment
CN112799985B (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
JP2018032221A (en) Electronic device and control method of the same
WO2005059713A2 (en) Express card power switch device with enhanced communications paths and security functions
CN112463689A (en) OCP card hot plug device, method and computer readable storage medium
CN108920334A (en) A kind of monitoring device of FPGA isomery accelerator card
CN109032062A (en) A kind of PCIE switching chip
CN103502906B (en) The dynamic assignment of the processor core of operation system
US6415389B2 (en) Jumperless computer system
CN113791991B (en) Flexible regulation and control method, system and medium for external equipment
CN112956104A (en) Charging control circuit, charging control method, device, and storage medium
CN104049717B (en) Power saving control circuit and electronic equipment
CN115269474A (en) Server and PCIe hot plug control method, device and medium thereof
CN112783721A (en) Method, device and system for monitoring I2C bus and storage medium
CN112187252A (en) Interface identification circuit, method, equipment and electronic equipment
CN114564725A (en) Command interaction method, device, equipment and storage medium
CN111327087B (en) Electronic equipment and charging method thereof
Intel
Intel
Intel Intel® Desktop Board D201GLY Technical Product Specification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant