CN108710509A - A method of storage device is monitored in visualization in real time - Google Patents

A method of storage device is monitored in visualization in real time Download PDF

Info

Publication number
CN108710509A
CN108710509A CN201810500019.0A CN201810500019A CN108710509A CN 108710509 A CN108710509 A CN 108710509A CN 201810500019 A CN201810500019 A CN 201810500019A CN 108710509 A CN108710509 A CN 108710509A
Authority
CN
China
Prior art keywords
interface
usb
usb interface
storage device
visualization
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
CN201810500019.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.)
Sichuan Art Beats Nature Information Security Intelligent Equipment Co Ltd
Original Assignee
Sichuan Art Beats Nature Information Security Intelligent Equipment 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 Sichuan Art Beats Nature Information Security Intelligent Equipment Co Ltd filed Critical Sichuan Art Beats Nature Information Security Intelligent Equipment Co Ltd
Priority to CN201810500019.0A priority Critical patent/CN108710509A/en
Publication of CN108710509A publication Critical patent/CN108710509A/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/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of methods that storage device is monitored in visualization in real time, it is characterised in that includes the following steps:S100:It obtains USB set line apparatus and determines the layout of each USB interface of the USB set line apparatus;S200:Design the visualization interface of the layout;S300:The bus number and port numbers of each USB interface are obtained by Windows API;S400:Each USB interface of the USB set line apparatus is respectively corresponded with each USB interface in the visualization interface;S500:The USB set line apparatus is connected to the client, detect the state of each USB interface and shows the state in the visualization interface.The beneficial effects of the invention are as follows solve the technical issues of there is no the state for clearly displaying multiple USB interfaces and USB interface number in the prior art.

Description

A method of storage device is monitored in visualization in real time
Technical field
The invention belongs to data visualization fields, and in particular to a method of storage device is monitored in visualization in real time.
Background technology
After storage device accesses the USB interfaces of equipment such as PC, PC can listen to the storage device of access, but monitoring itself There are certain defects.For example, when multiple storage devices access PC simultaneously, user cannot distinguish between the storage device difference that PC is recognized Which USB interface corresponding be.For another example, after a PC is inserted into multiple storage devices, some storage cannot clearly be distinguished Which USB interface is equipment be inserted into;Further, if PC inserts the storage device of damage, at this point, PC None- identifieds to should Equipment.
Invention content
Present invention problem in view of the deficiencies of the prior art, it is proposed that a method of storage device is monitored in visualization in real time, It is respectively corresponded by each USB interface and each USB interface in visualization interface of USB set line apparatus, and judges to receive To monitoring service message whether be storage device be inserted into message reach differentiation to show the state of corresponding USB interface and deposit The purpose for storing up equipment, includes the following steps:
S100:It obtains USB set line apparatus and determines the layout of each USB interface of the USB set line apparatus;
S200:Design the visualization interface of the layout;
S300:The bus number and port numbers of each USB interface are obtained by Windows API;
S400:The each USB interface and each USB interface in the visualization interface of the USB set line apparatus are each From one-to-one correspondence;
S500:The USB set line apparatus is connected to the client, detect the state of each USB interface and The state is shown in the visualization interface.
Preferably, the state of each USB interface includes state of activation and deactivated state.
Preferably, the step S200 includes the following steps:
S201:Background picture is made, the pattern of the background picture is identical as the layout, wherein make the bright USB of ash Picture indicates the USB interface of deactivated state, makes the USB interface that highlighted USB pictures indicate state of activation;
S202:Program window is designed using interface program;
S203:The bright USB pictures of ash are sticked in described program window, indicate that default USB interface state is deactivation shape State.
Preferably, the step S300 is as follows:
The USB interface in bus is enumerated according to usb bus controller, is realized by following source code:
Preferably, the step S500 is as follows:
S501:Storage device is connected to the USB set line apparatus;
S502:Oracle listener is triggered, the bus number and port numbers of the USB interface of connection storage device are obtained;
S503:The bus number of acquired USB interface and port numbers are sent to interface program;
S504:Judge whether the monitoring service message being currently received is that storage device is inserted into message, if so, executing step Otherwise rapid S505 extracts message for storage device, execute step S506;
S505:The interface program searches the USB interface in the interface corresponding to current USB interface, is arranged in interface The USB interface is highlighted, terminates flow;
S506:The interface program searches the USB interface in the interface corresponding to current USB interface, is arranged in interface The USB interface is that ash is bright, terminates flow.
Preferably, the oracle listener of the step S500 is realized by following source code:
The beneficial effects of the invention are as follows:Solve there is no in the prior art the state for clearly displaying multiple USB interfaces and The technical issues of USB interface number.
Description of the drawings
Fig. 1 is the schematic diagram for the visualization interface being laid out in the embodiment of the present invention;
Fig. 2 is the particular flow sheet for detecting and showing USB interface state in the embodiment of the present invention.
Specific implementation mode
The present invention is further elaborated with reference to the accompanying drawings and examples.
Storage device is connected on the USB interface of PC mainboards, and one group of USB interface corresponds to a slot of mainboard, each to insert There are one bus numbers (Bus ID) for slot, and there are one port numbers (PORT) for each USB interface, that is, each two number can To uniquely determine a USB interface.So after storage device accesses USB port, the access of this storage device can be obtained Bus number corresponding to USB interface and port numbers go the visualization for realizing interface by the two numbers.The method of the present invention Include the following steps:
S100:It obtains USB set line apparatus and determines the layout of each USB interface of the USB set line apparatus:The layout is Refer to each USB interface the USB set line apparatus specific location, after determining the layout, to be determined when designing visualization interface Picture mark position of each USB interface at the interface.
S200:Design the visualization interface of layout as shown in Figure 1:The USB interface of the USB set line apparatus of the present embodiment Layout is 3 row's USB interfaces, often arranges 4, amounts to 12 USB interfaces.Setting bus number is B, and port numbers are respectively P1, P2, P3…P10,P11,P12.In order to realize visualization, an interface identical with this USB set line apparatus, USB set line apparatus are made Each USB interface respectively corresponded with each USB interface in visualization interface.Each USB interface corresponds to suite number, A USB interface on interface is also corresponded to simultaneously, as shown in Figure 1, USB1 corresponds to [B,P1], USB2 corresponds to [B,P2]..., with This analogizes.
Specifically, step S200 includes the following steps:
S201:Make background picture:The pattern of background picture is identical as the layout, wherein makes the bright USB pictures of ash The USB interface for indicating deactivated state makes the USB interfaces that highlighted USB pictures indicate state of activation;
S202:Program window is designed using interface program;
S203:The bright USB pictures of ash are sticked in program window, indicate that default USB interface state is deactivated state.Such as In the present embodiment shown in Fig. 2, highlighted USB1 indicates the USB interface of state of activation, that is, indicates that USB1 interfaces insert storage Equipment;The bright USB of its ash indicates the USB interface of deactivated state, that is, expression has been not inserted into storage device or storage device Extract or indicate that the storage device being inserted into has been damaged without identified.
S300:The bus number and port numbers of each USB interface are obtained by Windows API:Step S300's is specific Steps are as follows:
The USB interface in bus is enumerated according to usb bus controller, is realized by following source code:
S400:Each USB interface of USB set line apparatus is respectively corresponded with each USB interface in visualization interface.
S500:USB set line apparatus is connected to client, detects the state of each USB interface and in visualization interface Dispaly state, as shown in Fig. 2, step S500 is as follows:
S501:Storage device is connected to USB set line apparatus;
S502:Oracle listener is triggered, the bus number and port numbers of the USB interface of connection storage device are obtained;
S503:The bus number of acquired USB interface and port numbers are sent to interface program;
S504:Judge whether the monitoring service message being currently received is that storage device is inserted into message, if so, executing step Otherwise rapid S505 extracts message for storage device, execute step S506;
S505:Interface program searches the USB interface in the interface corresponding to current USB interface, and the USB in interface is arranged Interface is highlighted, terminates flow;
S506:Interface program searches the USB interface in the interface corresponding to current USB interface, and the USB in interface is arranged Interface is that ash is bright, terminates flow.
Wherein, oracle listener is realized by following source code:
The method provided through the invention solves the state that there is no clearly display multiple USB interfaces in the prior art And the technical issues of USB interface number.
It should be understood that the present invention is not limited to above-mentioned citings, it for those of ordinary skills, can basis Above description is improved or converted, and all these modifications and variations should all belong to the protection model of appended claims of the present invention It encloses.

Claims (6)

1. a kind of method that storage device is monitored in visualization in real time, it is characterised in that include the following steps:
S100:It obtains USB set line apparatus and determines the layout of each USB interface of the USB set line apparatus;
S200:Design the visualization interface of the layout;
S300:The bus number and port numbers of each USB interface are obtained by Windows API;
S400:Each USB interface of the USB set line apparatus and each USB interface in the visualization interface respectively one One corresponds to;
S500:The USB set line apparatus is connected to the client, detects the state of each USB interface and described The state is shown in visualization interface.
2. the method that storage device is monitored in a kind of visualization according to claim 1 in real time, which is characterized in that described each The state of USB interface includes state of activation and deactivated state.
3. the method that storage device is monitored in a kind of visualization according to claim 2 in real time, which is characterized in that the step S200 includes the following steps:
S201:Background picture is made, the pattern of the background picture is identical as the layout, wherein make the bright USB pictures of ash The USB interface for indicating deactivated state makes the USB interface that highlighted USB pictures indicate state of activation;
S202:Program window is designed using interface program;
S203:The bright USB pictures of ash are sticked in described program window, indicate that default USB interface state is deactivated state.
4. the method that storage device is monitored in a kind of visualization according to claim 3 in real time, which is characterized in that the step S300 is as follows:
The USB interface in bus is enumerated according to usb bus controller, is realized by following source code:
5. the method that storage device is monitored in a kind of visualization according to claim 4 in real time, which is characterized in that the step S500 is as follows:
S501:Storage device is connected to the USB set line apparatus;
S502:Oracle listener is triggered, the bus number and port numbers of the USB interface of connection storage device are obtained;
S503:The bus number of acquired USB interface and port numbers are sent to interface program;
S504:Judge whether the monitoring service message being currently received is that storage device is inserted into message, if so, executing step Otherwise S505 extracts message for storage device, execute step S506;
S505:The interface program searches the USB interface in the interface corresponding to current USB interface, is arranged described in interface USB interface is highlighted, terminates flow;
S506:The interface program searches the USB interface in the interface corresponding to current USB interface, is arranged described in interface USB interface is that ash is bright, terminates flow.
6. the method that storage device is monitored in a kind of visualization according to claim 5 in real time, which is characterized in that the step The oracle listener of S500 is realized by following source code:
CN201810500019.0A 2018-05-23 2018-05-23 A method of storage device is monitored in visualization in real time Pending CN108710509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810500019.0A CN108710509A (en) 2018-05-23 2018-05-23 A method of storage device is monitored in visualization in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810500019.0A CN108710509A (en) 2018-05-23 2018-05-23 A method of storage device is monitored in visualization in real time

Publications (1)

Publication Number Publication Date
CN108710509A true CN108710509A (en) 2018-10-26

Family

ID=63869305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810500019.0A Pending CN108710509A (en) 2018-05-23 2018-05-23 A method of storage device is monitored in visualization in real time

Country Status (1)

Country Link
CN (1) CN108710509A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017451A (en) * 2006-12-05 2007-08-15 深圳创维-Rgb电子有限公司 Method and system for controlling insertion and extraction of USB on television
CN101281474A (en) * 2008-05-06 2008-10-08 北京握奇数据***有限公司 Method and apparatus for opening appoint terminal port USB equipment
CN102508473A (en) * 2011-10-31 2012-06-20 康佳集团股份有限公司 Intelligent home control system, method and device
CN102760055A (en) * 2011-04-27 2012-10-31 康佳集团股份有限公司 Processing method and device for displaying insertion and extraction states of USB (Universal Serial Bus) device
CN105808459A (en) * 2014-12-31 2016-07-27 联想(上海)信息技术有限公司 External equipment identification method and device, and electronic equipment
CN107391140A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The method and system that a kind of picture of storage device is shown

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017451A (en) * 2006-12-05 2007-08-15 深圳创维-Rgb电子有限公司 Method and system for controlling insertion and extraction of USB on television
CN101281474A (en) * 2008-05-06 2008-10-08 北京握奇数据***有限公司 Method and apparatus for opening appoint terminal port USB equipment
CN102760055A (en) * 2011-04-27 2012-10-31 康佳集团股份有限公司 Processing method and device for displaying insertion and extraction states of USB (Universal Serial Bus) device
CN102508473A (en) * 2011-10-31 2012-06-20 康佳集团股份有限公司 Intelligent home control system, method and device
CN105808459A (en) * 2014-12-31 2016-07-27 联想(上海)信息技术有限公司 External equipment identification method and device, and electronic equipment
CN107391140A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The method and system that a kind of picture of storage device is shown

Similar Documents

Publication Publication Date Title
CN106469103B (en) The maintaining method and device of hard disk
CN104111886B (en) Management system compatible with different GPUs and design method thereof
CN105302755A (en) PCIE board card with monitoring function and monitoring method therefor
CN106649021B (en) PCIe is from equipment testing device
CN106776054A (en) A kind of deadlock detection method, device and circuit
CN104375628A (en) Information processing method and electronic equipment
CN105301450A (en) Distribution network fault automatic diagnosis method and system
RU2010125808A (en) INFORMATION PROCESSING DEVICE AND METHOD FOR MANAGING THEM
CN108280000A (en) A kind of full-automatic test system of external equipment hot plug
CN106407059A (en) Server node testing system and method
CN103164553A (en) Signal line check system and method
CN107003974A (en) A kind of interface detection method and device
CN109120730A (en) The system and method for double address failure are solved during the debugging of the system of connection
CN108710509A (en) A method of storage device is monitored in visualization in real time
CN108845924A (en) Control response region display control method, electronic device and storage medium
CN103324526B (en) A kind of method calling sensor
CN116737515B (en) Flash memory parameter visualization method, system and storage medium
CN206146596U (en) Computer lab intelligence detecting system that leaks
CN206363454U (en) A kind of drug slot Automatic Alignment System based on distance measuring sensor
CN105808460B (en) External equipment recognition methods, device and electronic equipment
CN206178436U (en) Suppress testing arrangement
CN102902571B (en) A kind of method and apparatus of Quick stop working procedure
CN205066842U (en) Prevent intelligent gas meter of leakage
CN112118155A (en) Method and equipment for monitoring switch port state
CN105333921A (en) Bubble type water level gauge

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: 20181026

RJ01 Rejection of invention patent application after publication