CN110618959A - Using method of programmable USB concentrator and RPA process automation method - Google Patents

Using method of programmable USB concentrator and RPA process automation method Download PDF

Info

Publication number
CN110618959A
CN110618959A CN201910901605.0A CN201910901605A CN110618959A CN 110618959 A CN110618959 A CN 110618959A CN 201910901605 A CN201910901605 A CN 201910901605A CN 110618959 A CN110618959 A CN 110618959A
Authority
CN
China
Prior art keywords
usb
usb hub
ukey
programmable
usb interface
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.)
Pending
Application number
CN201910901605.0A
Other languages
Chinese (zh)
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.)
Shanghai Yusheng Software Co Ltd
Original Assignee
Shanghai Yusheng Software 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 Shanghai Yusheng Software Co Ltd filed Critical Shanghai Yusheng Software Co Ltd
Priority to CN201910901605.0A priority Critical patent/CN110618959A/en
Publication of CN110618959A publication Critical patent/CN110618959A/en
Pending legal-status Critical Current

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/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • 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/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Systems (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a using method of a programmable USB concentrator and an RPA process automation method, comprising the following steps: step 1: simultaneously inserting all UKEY required to be used into a USB interface of a USB hub, and connecting the USB hub to a host; step 2: controlling different on-off states of the USB interface through the control instruction; and step 3: and the automatic program controls the on-off state of the USB interface in sequence and executes a corresponding automatic flow through the control instruction according to the using sequence of the UKey. The invention can realize that when different UKey are needed to be used in sequence, the on-off of the USB interface is controlled by the program instruction to simulate and realize the manual insertion and extraction operation of the UKey, thereby solving the problem of UKey hardware conflict. Besides RPA flow automation, the method can also be applied to other scenes needing to control the on-off of the USB interface through instructions.

Description

Using method of programmable USB concentrator and RPA process automation method
Technical Field
The invention relates to the field of automation control, in particular to a use method of a programmable USB concentrator and an RPA process automation method.
Background
In enterprise-level RPA (resilient Process automation) Process automation, hardware UKey is needed in many scenes, such as business bank-related receipt printing, stream downloading, balance inquiry and other processes and tax payment declaration processes, and a plurality of UKey are connected with a working computer at the same time, so that a conflict phenomenon occurs, and the UKey can be plugged and pulled manually only to avoid the conflict. RPA process automation is interrupted due to the need for manual intervention.
And the existing USB hub, for example, patent document CN 109473836a discloses a USB hub, which includes a PCB board, a power supply module, a power supply controller, a USB interface A, USB interface B, and a port hub controller, and the USB hub uses the port hub controller to consume low power, and OEM is configurable, and the multi-port hub fully conforms to the USB 2.0 specification and will be attached to the upstream port as a full-speed hub or a full-speed/high-speed hub. The USB interface B port is connected with a computer, the USB interface B port is expanded into a 4X USB interface A port through a USB2541 to be communicated with a lower computer, and a corresponding port indicator lamp can be lightened when the USB interface A port is connected with the lower computer for communication. The external 12V converts 12V into 5V through LT1940 and supplies the 5V to a plurality of USB interface A ports for compensating the phenomenon of insufficient power supply when driving a lower computer. The stability of the computer driving load is ensured.
However, the USB hub only expands the number of USB interfaces and has a power supply shortage, and cannot solve the problem of conflict among multiple UKey.
Disclosure of Invention
In view of the defects in the prior art, the present invention aims to provide a method for using a programmable USB hub and an RPA process automation method.
The use method of the programmable USB hub provided by the invention comprises the following steps:
step 1: simultaneously inserting all UKEY required to be used into a USB interface of a USB hub, and connecting the USB hub to a host;
step 2: controlling different on-off states of the USB interface through the control instruction;
and step 3: and the automatic program controls the on-off state of the USB interface in sequence and executes a corresponding automatic flow through the control instruction according to the using sequence of the UKey.
Preferably, the step 1 comprises: and inserting all UKey required to be used into the USB interfaces according to the serial numbers of the USB interfaces of the USB concentrator in sequence.
Preferably, the control instruction controls the power on-off state of the corresponding USB interface.
Preferably, the control instructions include: the device number of the USB hub, the port number of the USB hub and the on-off state code of the port.
Preferably, the method further comprises the following steps between the step 2 and the step 3:
and acquiring a status code returned by the USB concentrator, analyzing the status code and judging whether the control instruction is executed successfully.
Preferably, the status code is an on-off status of a corresponding port after the USB hub executes the control instruction.
Preferably, the control instructions include:
turning on/off a designated USB interface;
simultaneously turning on/off a plurality of designated USB interfaces;
only one appointed USB interface is opened, and the rest interfaces are all closed;
all are closed.
Preferably, the step 1 comprises:
and simultaneously inserting all UKey required to be used into the USB interfaces of a plurality of USB hubs, and connecting all the USB hubs to a host in parallel.
Preferably, the USB hub is powered by a power adapter.
The RPA process automation method provided by the invention comprises the use method of the programmable USB hub.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention can realize that when different UKey are needed to be used in sequence, the on-off of the USB interface is controlled by the program instruction to simulate and realize the manual insertion and extraction operation of the UKey, thereby solving the problem of UKey hardware conflict.
2. Besides RPA flow automation, the method can also be applied to other scenes needing to control the on-off of the USB interface through instructions.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a flow chart of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
As shown in fig. 1, the method for using a programmable USB hub according to the present invention includes:
step 1: simultaneously inserting all UKEY required to be used into a USB interface of a USB hub, and connecting the USB hub to a host;
step 2: controlling different on-off states of the USB interface through the control instruction;
and step 3: acquiring a status code returned by the USB concentrator, analyzing the status code and judging whether the control instruction is successfully executed;
and 4, step 4: and the automatic program controls the on-off state of the USB interface in sequence through the control instruction according to the using sequence of the UKey and executes the corresponding automatic flow.
Wherein, step 1 includes: all UKey required to be used are sequentially inserted into the USB interfaces according to the serial numbers of the USB interfaces of the USB hub, so that subsequent control instructions can be written conveniently, for example, the UKey is sequentially inserted into the No. 1, No. 2 and No. 3. In this embodiment, the control command controls the power on/off state of the corresponding USB interface. The control instructions include: the device number of the USB hub, the port number of the USB hub and the on-off state code of the port.
The control instructions include:
turning on/off a designated USB interface;
simultaneously turning on/off a plurality of designated USB interfaces;
only one appointed USB interface is opened, and the rest interfaces are all closed;
all are closed.
The state code is the on-off state of the corresponding port after the USB concentrator executes the control instruction and is used for checking whether the control instruction is executed successfully.
In order to satisfy the power supply, the USB hub of the invention supplies power through the power adapter.
In special cases, the invention also supports parallel connection of a plurality of USB hubs if the USB interfaces of the USB hubs are not enough to be used. Namely: and simultaneously inserting all UKey required to be used into the USB interfaces of a plurality of USB hubs, and connecting all the USB hubs to a host in parallel.
The using method comprises the following steps:
the Aliyun RPA SDK and the python SDK are provided, and other programming language docking is supported.
from bsusb.hub import*
hub=usb()
hub.connect('COM4')
Power _ on (1) # open Port 1
Power _ on ([2,3,4]) # with 2,3,4 ports open simultaneously
Power _ off (4) # closes Port 4
Power _ on _ only (5) # opens Port 5 only, others close
Power _ off _ all () # turns off all
hub.close()
The method and the device can be used in RPA process automation and other scenes in which the power supply on/off of the usb port needs to be controlled through codes.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. A method of using a programmable USB hub, comprising:
step 1: simultaneously inserting all UKEY required to be used into a USB interface of a USB hub, and connecting the USB hub to a host;
step 2: controlling different on-off states of the USB interface through the control instruction;
and step 3: and the automatic program controls the on-off state of the USB interface in sequence and executes a corresponding automatic flow through the control instruction according to the using sequence of the UKey.
2. The method of using a programmable USB hub according to claim 1, wherein step 1 comprises: and inserting all UKey required to be used into the USB interfaces according to the serial numbers of the USB interfaces of the USB concentrator in sequence.
3. The method of using a programmable USB hub according to claim 1, wherein said control commands control the power on/off status of the corresponding USB interface.
4. The method of using a programmable USB hub according to claim 1, wherein the control instructions include: the device number of the USB hub, the port number of the USB hub and the on-off state code of the port.
5. The method for using a programmable USB hub according to claim 1, further comprising between step 2 and step 3:
and acquiring a status code returned by the USB concentrator, analyzing the status code and judging whether the control instruction is executed successfully.
6. The method of claim 5, wherein the status code is an on/off status of the corresponding port after the USB hub executes the control command.
7. The method of using a programmable USB hub according to claim 1, wherein the control instructions include:
turning on/off a designated USB interface;
simultaneously turning on/off a plurality of designated USB interfaces;
only one appointed USB interface is opened, and the rest interfaces are all closed;
all are closed.
8. The method of using a programmable USB hub according to claim 1, wherein step 1 comprises:
and simultaneously inserting all UKey required to be used into the USB interfaces of a plurality of USB hubs, and connecting all the USB hubs to a host in parallel.
9. The method of using a programmable USB hub according to claim 1, wherein said USB hub is powered by a power adapter.
10. A method of RPA process automation comprising the use of a programmable USB hub according to any of claims 1 to 9.
CN201910901605.0A 2019-09-23 2019-09-23 Using method of programmable USB concentrator and RPA process automation method Pending CN110618959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910901605.0A CN110618959A (en) 2019-09-23 2019-09-23 Using method of programmable USB concentrator and RPA process automation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910901605.0A CN110618959A (en) 2019-09-23 2019-09-23 Using method of programmable USB concentrator and RPA process automation method

Publications (1)

Publication Number Publication Date
CN110618959A true CN110618959A (en) 2019-12-27

Family

ID=68924315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910901605.0A Pending CN110618959A (en) 2019-09-23 2019-09-23 Using method of programmable USB concentrator and RPA process automation method

Country Status (1)

Country Link
CN (1) CN110618959A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835629A (en) * 2021-01-22 2021-05-25 浪潮电子信息产业股份有限公司 Control system, method and device for USB equipment
CN113282527A (en) * 2021-05-08 2021-08-20 珠海金智维信息科技有限公司 Method, device and host for realizing USB equipment switching management
CN113901406A (en) * 2021-09-18 2022-01-07 达而观数据(成都)有限公司 System for remotely and automatically controlling U shield

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514675A (en) * 2012-06-14 2014-01-15 航天信息股份有限公司 On-off type USB apparatus scheduling device and scheduling method thereof
CN103914425A (en) * 2013-01-04 2014-07-09 宁波市镇海金特电子信息有限公司 Novel USB network controller
CN104866448A (en) * 2015-06-24 2015-08-26 北京众合天下管理咨询有限公司 Intelligent management system for large-scale USB equipment
CN106790246A (en) * 2017-01-23 2017-05-31 北京外企德科人力资源服务上海有限公司 The automatic method and system for declaring social security
CN107451082A (en) * 2017-08-01 2017-12-08 中孚信息股份有限公司 A kind of integrated HUB hubs and the application program system being used cooperatively with it
CN207282861U (en) * 2017-09-01 2018-04-27 深圳市乐思创新科技有限公司 Usb hub

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514675A (en) * 2012-06-14 2014-01-15 航天信息股份有限公司 On-off type USB apparatus scheduling device and scheduling method thereof
CN103914425A (en) * 2013-01-04 2014-07-09 宁波市镇海金特电子信息有限公司 Novel USB network controller
CN104866448A (en) * 2015-06-24 2015-08-26 北京众合天下管理咨询有限公司 Intelligent management system for large-scale USB equipment
CN106790246A (en) * 2017-01-23 2017-05-31 北京外企德科人力资源服务上海有限公司 The automatic method and system for declaring social security
CN107451082A (en) * 2017-08-01 2017-12-08 中孚信息股份有限公司 A kind of integrated HUB hubs and the application program system being used cooperatively with it
CN207282861U (en) * 2017-09-01 2018-04-27 深圳市乐思创新科技有限公司 Usb hub

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835629A (en) * 2021-01-22 2021-05-25 浪潮电子信息产业股份有限公司 Control system, method and device for USB equipment
CN113282527A (en) * 2021-05-08 2021-08-20 珠海金智维信息科技有限公司 Method, device and host for realizing USB equipment switching management
CN113282527B (en) * 2021-05-08 2024-08-13 珠海金智维信息科技有限公司 Method, device and host for realizing USB device switching management
CN113901406A (en) * 2021-09-18 2022-01-07 达而观数据(成都)有限公司 System for remotely and automatically controlling U shield

Similar Documents

Publication Publication Date Title
CN110618959A (en) Using method of programmable USB concentrator and RPA process automation method
US8046187B2 (en) Test systems for media drives of data storage systems
CN105354070B (en) A method of passing through I2C updating apparatus firmware
EP0992000B1 (en) Bus interface system and method
CN100383737C (en) SCM online loading and updating method and system
CN102609287A (en) Device for updating FPGA (Field Programmable Gate Array) from a long distance by CPU (Central Processing Unit) and method therefor
CN101673202A (en) Program writing method and system, pre-writing device and writing device
JP2004527826A (en) Common platform used in car maintenance
CN101645055A (en) Logic device on-line loaded method, system and processor
CN104407882B (en) A kind of board card device
CN100498708C (en) Firmware download method and device using personal computer
CN1645957A (en) Modular mobile phone and module automatic identifying method
CN103677915A (en) Automatic burning method of flash mirror image based on TF starting card
US20080120498A1 (en) PXI Express Controller Power Control State Machine
CN110196726A (en) A method of the load of FPGA program remote upgrading is realized based on CPU+CPLD
US7577482B1 (en) System comprising interchangeable electronic controllers and corresponding methods
CN110619914A (en) Mass production method for solid state disk with PCIe interface mass production device
CN114153477B (en) PCIE driving card firmware upgrading method, device, system, equipment and medium
WO1996002034A1 (en) Updating firmware
CN107506208A (en) A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment
CN108536458A (en) A kind of FPGA online upgradings method, apparatus, equipment and storage medium
US6301656B1 (en) Method and apparatus for initial programming of flash based firmware
US7788442B2 (en) Computer memory accessible in either power state of the computer
CN108733396A (en) The on-line loaded method of 8 High Performance SCM program softwares
CN116560688B (en) Software updating method for domain controller

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191227

RJ01 Rejection of invention patent application after publication