CN105843715B - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN105843715B
CN105843715B CN201610162524.XA CN201610162524A CN105843715B CN 105843715 B CN105843715 B CN 105843715B CN 201610162524 A CN201610162524 A CN 201610162524A CN 105843715 B CN105843715 B CN 105843715B
Authority
CN
China
Prior art keywords
information
state information
electronic device
checking
determining
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
CN201610162524.XA
Other languages
Chinese (zh)
Other versions
CN105843715A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610162524.XA priority Critical patent/CN105843715B/en
Publication of CN105843715A publication Critical patent/CN105843715A/en
Application granted granted Critical
Publication of CN105843715B publication Critical patent/CN105843715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an information processing method and electronic equipment, comprising the steps of determining that a first port of first electronic equipment is connected to second electronic equipment to be checked; when the second electronic equipment is in an open state, acquiring state information of the second electronic equipment through the first port; determining at least one device encoding information associated with the second electronic device based on the status information; and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an information processing method and an electronic device.
Background
With the continuous development of the internet, electronic equipment such as a desktop computer, a notebook computer, a mobile phone and the like can be borrowed and returned at any time, in the prior art, when the electronic equipment is borrowed or returned, whether each part of the borrowed or returned electronic equipment is intact is mainly checked manually, for example, when the Chinese angelica is returned to the borrowed desktop computer, whether parts such as a main board, a hard disk, a CD driver, a display card and the like in the borrowed desktop computer are consistent with those before being borrowed is checked one by one through detection personnel.
However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the inventors of the present application find that the above-mentioned technology has at least the following technical problems:
because the electronic equipment is mainly checked one by one through manual work when borrowing or returning the electronic equipment in the prior art, the technical problems of inaccurate state and low efficiency of checking the electronic equipment exist in the prior art.
Disclosure of Invention
The embodiment of the invention provides an information processing method and electronic equipment, which are used for solving the technical problems of inaccurate state and low efficiency of checking electronic equipment components in the prior art and have the technical effects of accurately and efficiently checking the electronic equipment components.
An aspect of the present embodiment provides an information processing method applied to a first electronic device, where the method includes:
determining that a first port of the first electronic device is connected to a second electronic device to be checked;
when the second electronic equipment is in an open state, acquiring state information of the second electronic equipment through the first port;
determining at least one device encoding information associated with the second electronic device based on the status information;
and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.
Optionally, the determining, based on the state information, at least one device coding information related to the second electronic device specifically includes:
determining the state information of each of the M parts of the second electronic equipment based on the state information, and determining M pieces of state information;
at least one device code information associated with the M status information is determined from a database.
Optionally, when the at least one piece of device encoding information includes the device code of the second electronic device, checking the second electronic device based on the state information and the at least one piece of device encoding information, and obtaining a checking result, specifically including:
determining that the at least one piece of device code information includes a device code of the second electronic device;
determining relevant state information corresponding to the device code of the second electronic device from the at least one piece of device code information;
and checking the second electronic equipment based on the state information and the related state information, and obtaining a checking result.
Optionally, the M pieces of status information include attribute information of M pieces of components to be compared of the M pieces of components, and the checking the second electronic device based on the status information and the related status information and obtaining a checking result specifically includes:
judging whether the M parts to be compared attribute information is consistent with the M parts attribute information of the M parts recorded in the related state information or not, and obtaining a first judgment result;
and obtaining a checking result representing whether the second electronic equipment passes the checking based on the first judgment result.
Optionally, the M pieces of state information further include M pieces of usage condition information to be compared of the M pieces of components, and the obtaining, based on the first determination result, a checking result indicating whether the second electronic device passes the checking includes:
determining that the first judgment result is yes;
judging whether the M pieces of using condition information to be compared are consistent with the M pieces of using state information of the M pieces of components recorded in the related state information or not, and obtaining a second judgment result;
and obtaining a checking result representing whether the second electronic device passes the checking based on the second judgment result.
Another aspect of the embodiments of the present application provides a first electronic device, including:
a processor;
a first port connected to the processor;
wherein the processor is configured to:
determining that the first port of the first electronic device is connected to a second electronic device to be checked;
when the second electronic equipment is in an open state, acquiring state information of the second electronic equipment through the first port;
determining at least one device encoding information associated with the second electronic device based on the status information;
and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.
Optionally, the processor is configured to:
determining the state information of each of the M parts of the second electronic equipment based on the state information, and determining M pieces of state information;
at least one device code information associated with the M status information is determined from a database.
Optionally, when the at least one piece of device encoding information includes the device code of the second electronic device, checking the second electronic device based on the state information and the at least one piece of device encoding information, and obtaining a checking result, specifically including:
determining that the at least one piece of device code information includes a device code of the second electronic device;
determining relevant state information corresponding to the device code of the second electronic device from the at least one piece of device code information;
and checking the second electronic equipment based on the state information and the related state information, and obtaining a checking result.
Optionally, the M pieces of status information include attribute information of M pieces of components to be compared of the M pieces of components, and the processor is further configured to:
judging whether the M parts to be compared attribute information is consistent with the M parts attribute information of the M parts recorded in the related state information or not, and obtaining a first judgment result;
and obtaining a checking result representing whether the second electronic equipment passes the checking based on the first judgment result.
Optionally, the M status information further includes M usage status information to be compared of the M components, and the processor is further configured to:
determining that the first judgment result is yes;
judging whether the M pieces of using condition information to be compared are consistent with the M pieces of using state information of the M pieces of components recorded in the related state information or not, and obtaining a second judgment result;
and obtaining a checking result representing whether the second electronic device passes the checking based on the second judgment result.
In another aspect, an embodiment of the present application further provides a first electronic device, including:
the first determining unit is used for determining that the first port of the first electronic device is connected to the second electronic device to be checked;
the acquisition unit is used for acquiring the state information of the second electronic equipment through the first port when the second electronic equipment is in an open state;
a second determining unit configured to determine at least one piece of device code information related to the second electronic device based on the status information;
and the checking unit is used for checking the second electronic equipment based on the state information and the at least one piece of equipment coding information when the at least one piece of equipment coding information comprises the equipment code of the second electronic equipment, and obtaining a checking result.
Optionally, the second determining unit further includes:
a third determining unit, configured to determine, based on the state information, state information of each of M components of the second electronic device, and determine M pieces of state information in total;
at least one device code information associated with the M status information is determined from a database.
Optionally, the checking unit further includes:
a fourth determining unit, configured to determine that the at least one piece of device code information includes a device code of the second electronic device;
a fifth determining unit, configured to determine, from the at least one piece of device code information, relevant state information corresponding to a device code of the second electronic device;
and the first checking subunit is used for checking the second electronic device based on the state information and the related state information and obtaining a checking result.
Optionally, the M pieces of status information include attribute information of M pieces of components to be compared of the M pieces of components, and the first checking subunit further includes:
a first judging unit, configured to judge whether the M pieces of to-be-compared component attribute information are consistent with M pieces of component attribute information of the M pieces of components recorded in the relevant state information, and obtain a first judgment result;
and a first obtaining unit, configured to obtain, based on the first determination result, a checking result indicating whether the second electronic device passes the checking.
Optionally, the M pieces of status information further include M pieces of usage condition information to be compared of the M pieces of components, and the first obtaining unit includes:
a sixth determining unit, configured to determine that the first determination result is yes;
a second judging unit, configured to judge whether the M pieces of usage condition information to be compared are consistent with the M pieces of usage state information of the M pieces of components recorded in the relevant state information, and obtain a second judgment result;
and a second obtaining unit, configured to obtain, based on the second determination result, a checking result indicating whether the second electronic device passes the checking.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
according to the technical scheme in the embodiment of the application, the first port of the first electronic device is determined to be connected to the second electronic device to be checked; when the second electronic equipment is in an open state, acquiring the state information of the second electronic equipment through the first port; and determining at least one device encoding information associated with the second electronic device based on the status information; and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.
Also in this application, when checking the electronic device that is borrowed or returned, through this electronic device of interface connection, acquire the status information of each part in this electronic device and record the status information of each part in the database and contrast and check, and then accomplish the checking to this electronic device, so, among the prior art, need check parts such as mainboard, hard disk, optical drive, display card among the electronic device one by one through detection personnel, so, effectual among the prior art of having solved, it is inaccurate to have the check electronic device part state, the technical problem of inefficiency, accuracy has been realized, the technological effect of high-efficient check electronic device part.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
Fig. 1 is a flowchart of an information processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a specific implementation manner of step S103 in the first embodiment of the present application;
fig. 3 is a flowchart of a specific implementation manner of step S104 in the first embodiment of the present application;
fig. 4 is a flowchart of a first implementation manner of step S1043 in the first embodiment of the present application;
fig. 5 is a flowchart of a second implementation manner of step S1043 in the first embodiment of the present application;
fig. 6 is a schematic structural diagram of a first electronic device according to a second embodiment of the present application;
fig. 7 is a schematic structural diagram of a first electronic device according to a third embodiment of the present application.
Detailed Description
The embodiment of the invention provides an information processing method and electronic equipment, which are used for solving the technical problems of inaccurate state and low efficiency of checking electronic equipment components in the prior art and realizing the technical effect of accurately and efficiently checking the electronic equipment components.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
determining that a first port of the first electronic device is connected to a second electronic device to be checked;
when the second electronic equipment is in an open state, acquiring state information of the second electronic equipment through the first port;
determining at least one device encoding information associated with the second electronic device based on the status information;
and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.
In the method, when the borrowed or returned electronic equipment is checked, the electronic equipment is connected through the interface, the state information of each part in the electronic equipment is acquired, the state information of each part in the electronic equipment is compared and checked with the state information of each part recorded in the database, and the electronic equipment is checked, so that the problems that in the prior art, a main board, a hard disk, an optical drive, a display card and the like in the electronic equipment need to be checked one by one through a detector are solved, the technical problems that in the prior art, the state of the part of the electronic equipment is not accurately checked, the efficiency is low are solved, and the technical effects of accurately and efficiently checking the part of the electronic equipment are achieved.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the technical solutions of the present invention. All other embodiments obtained by a person skilled in the art without any inventive work based on the embodiments described in the present application are within the scope of the protection of the technical solution of the present invention.
Example one
Referring to fig. 1, an information processing method provided in an embodiment of the present application is applied to a first electronic device, and the method includes:
s101: determining that a first port of the first electronic device is connected to a second electronic device to be checked;
s102: when the second electronic equipment is in an open state, acquiring state information of the second electronic equipment through the first port;
s103: determining at least one device encoding information associated with the second electronic device based on the status information;
s104: and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.
In a specific implementation process, the information processing method is applied to a first electronic device, where the first electronic device may be used to check other electronic devices to be checked, the first electronic device is provided with an interface, the number of the interfaces may be one or multiple, and the other electronic devices are connected to the interface through a data line to realize connection with the first electronic device.
When the method in the embodiment of the present application is used to perform information processing, step S101 is first executed, that is, it is determined that the first port of the first electronic device is connected to the second electronic device to be checked.
In the process of the specific embodiment, the above example is continued, and in practical applications, electronic devices such as a server, a computer, or an ipad may be stored in the material library, and the electronic devices may be capable of borrowing and returning books in a library, and the check table checks the electronic devices when borrowing and returning the electronic devices to assist in borrowing and returning, for example, the check table detects a borrowed server, and detects whether the server is consistent with information of the model of the server, included components, and the like recorded before borrowing, and for example, the check table detects a computer to be borrowed, and detects information of the model of the computer, included components, and the like, so as to form information and the like before borrowing the computer, and of course, internal check of the electronic devices such as the server, the computer, and the like for non-borrowing purpose may also be realized by the check table.
Specifically, when the server 1 borrowed from the material library needs to be returned, the server 1 can be connected to an interface of the detection platform through a data line, and at this time, the detection platform can determine that the interface of the detection platform is connected to the server 1 to be checked; specifically, when the computer 1 needs to be checked internally, the computer 1 can be connected to the interface of the detection table through the data line, at this time, the detection table can determine that the interface of the detection table is connected to the computer 1 to be checked, certainly, the number of the interfaces arranged on the detection table in practical application can be one or more, and technicians in the field can flexibly select the interfaces according to actual needs without any limitation.
After the step S101 is completed, the method in this embodiment of the application performs the step S102, that is, when the second electronic device is in an open state, the state information of the second electronic device is acquired through the first port.
In the process of the specific embodiment, the above example is continued, specifically, after the test station determines that the server 1 to be returned is connected to the interface of the test station through the data line, the test station needs to detect whether the server 1 is in the on state, when the test station detects that the server 1 is already in the on state, the test station can obtain the current state information of the server 1 through the interface connected to the server 1, and for convenience of description, the test station obtains the current state information of the server 1 through the interface connected to the server 1 to be the current state information, so in practical application, the current state information may include the current attribute information of the server 1, such as the components included in the server 1, the component codes of the components, or the current use state information of the server 1, such as the use loss condition of the components in the server 1, of course, it is also possible to include both the current attribute information and the current usage state information of the server 1.
In practical application, when the detection platform detects whether the server 1 is in the power-on state, the detection platform may also detect that the server 1 is not in the power-on state, and at this time, the detection platform may generate a prompt message to prompt that the server 1 is not yet powered on, and the user needs to manually power on the detection platform, for example, when the detection platform detects that the server 1 is in the power-off state, an alarm sound is generated to prompt the user to turn on the server 1, and for example, when the detection platform detects that the server 1 is in the power-off state, a prompt message that the device to be detected is not powered on is generated on an interface of the detection platform to prompt the user to turn on the server 1, and the like, which.
After the step S102 is completed, the method in the embodiment of the present application performs step S103, that is, determines at least one device code information related to the second electronic device based on the status information.
Referring to fig. 2, in practical applications, step S103 may be implemented in the following manner:
s1031: determining the state information of each of the M parts of the second electronic equipment based on the state information, and determining M pieces of state information;
s1032: at least one device code information associated with the M status information is determined from a database.
In the process of the specific embodiment, continuing with the above example, specifically, after the test station acquires the current state information of the server 1 through the interface connected to the server 1, the test station may determine the current component state information of the components included in the server 1 from the acquired current state information, for example, when the current state information of the server 1 acquired by the test station includes the current attribute information of the server 1, the test station may determine the attribute information of each component included in the server 1 from the current attribute information of the server 1; when the current state information of the server 1 acquired by the detection station includes the current use state information of the server, the detection station can determine the current use state information of each component included in the server 1 from the current use state information of the server 1; when the test desk acquires the current attribute information and the current use state information of the server 1 at the same time, the test desk can respectively determine the attribute information of each component included in the server 1 from the current attribute information of the server 1 and determine the current use state information of each component included in the server 1 from the current use state information of the server 1.
In practical application, the number of the components included in the server 1 may be one or multiple, and here, taking three components, namely, a motherboard, a hard disk, and a graphics card, included in the server 1 as an example, then, the test platform can determine the current state information of the motherboard of the server 1, the current state information of the hard disk of the server 1, and the current state information of the graphics card of the server from the current state information of the server 1.
Then, after the detection platform determines the information, the detection platform will find out the coded information of all servers recorded with the mainboard state information of the mainboard, the hard disk state information of the hard disk and the display card state information of the display card from the database. Certainly, in practical applications, the server that records the motherboard status information of the motherboard, the hard disk status information of the hard disk, and the display card status information of the display card, found from the database, may be one server, and the corresponding server code information may also be one or more, for example, 3, and the corresponding server code information may also be 3, the motherboard status information of the motherboard, the hard disk status information of the hard disk, and the server of the display card status information of the display card, of course, in practical applications, the database may be a local database of the test table, or a cloud database connected to the test table through a network, where the database is taken as the local database of the test table as an example.
After the step S103 is completed, the method in this embodiment of the application performs a step S104, that is, when the at least one device code information includes the device code of the second electronic device, the second electronic device is checked based on the state information and the at least one device code information, and a checking result is obtained.
Referring to fig. 3, in practical applications, step S104 may be implemented in the following manner:
s1041: determining that the at least one piece of device code information includes a device code of the second electronic device;
s1042: determining relevant state information corresponding to the device code of the second electronic device from the at least one piece of device code information;
s1043: and checking the second electronic equipment based on the state information and the related state information, and obtaining a checking result.
In the process of the specific embodiment, the above example is continued, specifically, after the test platform determines that the server codes recording the motherboard status information of the motherboard, the hard disk status information of the hard disk, and the graphics card status information of the graphics card are the server code 1, the server code 2, and the server code 3 respectively from the local database, the test platform determines whether the 3 server codes include the server code 1, and it is assumed that the server code 1 to be checked is the server code 1, then the test platform can determine that the server code 1 to be checked includes the server code to be checked in the 3 server codes, that is, the server code 1 to be restored is found in the local database.
At this time, the test platform determines the status information related to the server 1 to be returned from the record information corresponding to the server code 1, that is, determines the motherboard status information of the motherboard of the server 1, the hard disk status information of the hard disk, and the graphics card status information of the graphics card before lending out the server 1, and for convenience of description, the motherboard status information of the motherboard of the server 1 determined from the record information corresponding to the server code 1 is changed into the motherboard relevant status information, the hard disk relevant status information, and the graphics card relevant status information, so that after the test platform determines the relevant status information of the server 1 from the local database, the test platform proceeds to step S1043, that is, the relevant status information and the current status information of the motherboard in the server 1 acquired by the test platform through the interface when returning the server 1, and checking and comparing the current state information of the hard disk and the current state information of the display card to obtain a checking result.
In practical application, when the current state information of the motherboard of the server 1 determined by the detection station is specifically the current attribute information of the motherboard, the current state information of the hard disk is specifically the current attribute information of the hard disk, and the current state information of the graphics card is specifically the current attribute information of the graphics card, please refer to fig. 4, and step S1043 can also be specifically implemented by the following first mode:
s201: judging whether the M parts to be compared attribute information is consistent with the M parts attribute information of the M parts recorded in the related state information or not, and obtaining a first judgment result;
s202: and obtaining a checking result representing whether the second electronic equipment passes the checking based on the first judgment result.
In the process of the specific embodiment, the above example is continuously used, specifically, when the current state information of the motherboard of the server 1 determined by the test station is specifically the current attribute information of the motherboard, the current state information of the hard disk is specifically the current attribute information of the hard disk, and the current state information of the graphics card is specifically the current attribute information of the graphics card, the test station needs to determine whether the current attribute information of the motherboard in the server 1, the current attribute information of the hard disk, and the current attribute information of the graphics card, acquired by the test station through the interface, are respectively consistent with the motherboard-related state information, the hard disk-related state information, and the graphics card-related state information determined from the record information corresponding to the server code 1.
For example, when the current attribute information of the motherboard in the server 1 acquired through the interface is specifically the model of the motherboard is X, the current attribute information of the main hard disk is specifically the model of the hard disk is Y, and the current attribute information of the graphics card is specifically the model of the graphics card is Z, and the motherboard-related state information determined by the detection station from the record information corresponding to the server code 1 is specifically the model of the motherboard of the server 1 is X, the hard disk-related state information is specifically the model of the hard disk of the server 1 is Y, and the graphics card-related state information is specifically the model of the graphics card of the server 1 is Z.
The test bench can judge the current attribute information of the mainboard in the server 1 acquired through the interface, the current attribute information of the hard disk and the current attribute information of the graphics card are respectively consistent with the mainboard related state information, the hard disk related state information and the graphics card related state information determined from the record information corresponding to the server code 1, the test bench passes the check of the server 1 to be returned, and a check result that the check of the server 1 to be returned passes is obtained. Certainly, in practical applications, when the inspection desk passes the check on the server 1 to be returned, a prompt message indicating that the return is successful may be generated at the inspection desk to indicate that the inspection desk passes the check on the server 1 to be returned.
Therefore, according to the method, the server to be returned is connected through the interface of the detection platform, the current attribute or the current use state information of each component in the server is obtained and is compared with the attribute information or the use state information of each component of the server recorded in the detection database, and then the checking of the server to be returned is completed to obtain the checking result.
Certainly, in practical applications, there are also situations where the acquired current attribute information of the motherboard in the server 1, the current attribute information of the hard disk and the current attribute information of the graphics card are inconsistent with the motherboard-related state information, the hard disk-related state information, and the graphics card-related state information determined from the record information corresponding to the server code 1, and at this time, the test station may determine that the current attribute information of the motherboard in the server 1 acquired through the interface, the current attribute information of the hard disk and the current attribute information of the graphics card are respectively inconsistent with the motherboard-related state information, the hard disk-related state information, and the graphics card-related state information determined from the record information corresponding to the server code 1, and obtain a check result that the check of the server 1 to be returned fails. Of course, in practical applications, when the check of the server 1 to be returned by the detection station fails, a prompt message indicating that the return is unsuccessful may be generated at the detection station, so as to indicate that the check of the server 1 to be returned by the detection station fails.
In practical application, when the current state information of the motherboard of the server 1 determined by the detection station further includes current use state information of the motherboard, the current state information of the hard disk further includes current use state information of the hard disk, and the current state information of the graphics card further includes current use state information of the graphics card, please refer to fig. 5, and step S1043 can be implemented in a second manner as follows:
s203: determining that the first judgment result is yes;
s204: judging whether the M pieces of using condition information to be compared are consistent with the M pieces of using state information of the M pieces of components recorded in the related state information or not, and obtaining a second judgment result;
s205: and obtaining a checking result representing whether the second electronic device passes the checking based on the second judgment result.
In the process of the specific embodiment, the above example is continued, specifically, when the test platform determines that the current state information of the motherboard of the server 1 to be returned further includes the current use state information of the motherboard, the current state information of the hard disk further includes the current use state information of the hard disk, and the current state information of the graphics card further includes the current use state information of the graphics card, the test platform determines the current attribute information of the motherboard in the server 1 acquired through the interface, the current attribute information of the hard disk and the current attribute information of the graphics card are respectively corresponding to the motherboard-related state information determined from the record information corresponding to the server code 1, and after the hard disk-related state information and the graphics card-related state information are consistent, the test platform further determines whether the current use state information of the motherboard in the server 1 acquired by the test platform through the interface, and whether the current use state information of the hard disk and the current use state information of the graphics card are respectively corresponding to the motherboard-related state information of the server And determining the relevant use state information of the main board, the relevant use state information of the hard disk and the relevant use state information of the display card in the corresponding recording information to be consistent.
For example, when the current use state information of the motherboard in the server 1 acquired through the interface is specifically that the motherboard function loss is 1%, the current use state information of the hard disk is specifically that the hard disk function loss is 3%, and the current use state information of the graphics card is specifically that the graphics card function loss is 5%, and the motherboard-related use state information determined by the detection station from the record information corresponding to the server code 1 is specifically that the motherboard function loss of the server 1 is 1%, the hard disk-related use state information is specifically that the hard disk function loss of the server 1 is 3%, and the graphics card-related use state information is specifically that the graphics card function loss of the server 1 is 5%.
The detection table can judge the current use state information of the mainboard in the server 1 acquired through the interface, the current use state information of the hard disk and the current use state information of the display card are respectively consistent with the mainboard related use state information, the hard disk related use state information and the display card related use state information which are determined from the record information corresponding to the server code 1, the detection table passes the check of the server 1 to be returned, and a check result of the server 1 to be returned passing the check is obtained. Certainly, in practical applications, when the inspection desk passes the check on the server 1 to be returned, a prompt message indicating that the return is successful may be generated at the inspection desk to indicate that the inspection desk passes the check on the server 1 to be returned.
Therefore, according to the method, the server to be returned is connected through the interface of the detection platform, the current attribute or the current use state information of each component in the server is obtained and is compared with the attribute information or the use state information of each component of the server recorded in the detection database, and then the checking of the server to be returned is completed to obtain the checking result.
Example two
Referring to fig. 6, based on the same inventive concept as the first embodiment of the present application, a second embodiment of the present application provides a first electronic device, including:
a processor 1;
a first port 2 connected to the processor 1;
wherein the processor 1 is configured to:
determining that the first port 2 of the first electronic device is connected to a second electronic device to be checked;
when the second electronic device is in an open state, acquiring state information of the second electronic device through the first port 2;
determining at least one device encoding information associated with the second electronic device based on the status information;
and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.
Optionally, the processor 1 is configured to:
determining the state information of each of the M parts of the second electronic equipment based on the state information, and determining M pieces of state information;
at least one device code information associated with the M status information is determined from a database.
Optionally, when the at least one device code information includes the device code of the second electronic device, the processor 1 is configured to:
determining that the at least one piece of device code information includes a device code of the second electronic device;
determining relevant state information corresponding to the device code of the second electronic device from the at least one piece of device code information;
and checking the second electronic equipment based on the state information and the related state information, and obtaining a checking result.
Optionally, the M pieces of status information include M pieces of attribute information of the M pieces of components to be compared, and the processor 1 is further configured to:
judging whether the M parts to be compared attribute information is consistent with the M parts attribute information of the M parts recorded in the related state information or not, and obtaining a first judgment result;
and obtaining a checking result representing whether the second electronic equipment passes the checking based on the first judgment result.
Optionally, the M status information further includes M to-be-compared usage status information of the M components, and the processor 1 is further configured to:
determining that the first judgment result is yes;
judging whether the M pieces of using condition information to be compared are consistent with the M pieces of using state information of the M pieces of components recorded in the related state information or not, and obtaining a second judgment result;
and obtaining a checking result representing whether the second electronic device passes the checking based on the second judgment result.
EXAMPLE III
Referring to fig. 7, based on the same inventive concept as the first embodiment of the present application, a third embodiment of the present application provides a first electronic device, including:
the first determining unit 3 is configured to determine that the first port of the first electronic device is connected to a second electronic device to be checked;
the acquiring unit 4 is configured to acquire state information of the second electronic device through the first port when the second electronic device is in an on state;
a second determining unit 5, configured to determine at least one piece of device code information related to the second electronic device based on the status information;
and the checking unit 6 is configured to, when the at least one piece of device code information includes a device code of the second electronic device, check the second electronic device based on the state information and the at least one piece of device code information, and obtain a checking result.
Optionally, the second determining unit 5 further includes:
a third determining unit, configured to determine, based on the state information, state information of each of M components of the second electronic device, and determine M pieces of state information in total;
at least one device code information associated with the M status information is determined from a database.
Optionally, the checking unit 6 further includes:
a fourth determining unit, configured to determine that the at least one piece of device code information includes a device code of the second electronic device;
a fifth determining unit, configured to determine, from the at least one piece of device code information, relevant state information corresponding to a device code of the second electronic device;
and the first checking subunit is used for checking the second electronic device based on the state information and the related state information and obtaining a checking result.
Optionally, the M pieces of status information include attribute information of M pieces of components to be compared of the M pieces of components, and the first checking subunit further includes:
a first judging unit, configured to judge whether the M pieces of to-be-compared component attribute information are consistent with M pieces of component attribute information of the M pieces of components recorded in the relevant state information, and obtain a first judgment result;
and a first obtaining unit, configured to obtain, based on the first determination result, a checking result indicating whether the second electronic device passes the checking.
Optionally, the M pieces of status information further include M pieces of usage condition information to be compared of the M pieces of components, and the first obtaining unit includes:
a sixth determining unit, configured to determine that the first determination result is yes;
a second judging unit, configured to judge whether the M pieces of usage condition information to be compared are consistent with the M pieces of usage state information of the M pieces of components recorded in the relevant state information, and obtain a second judgment result;
and a second obtaining unit, configured to obtain, based on the second determination result, a checking result indicating whether the second electronic device passes the checking.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
according to the technical scheme in the embodiment of the application, the first port of the first electronic device is determined to be connected to the second electronic device to be checked; when the second electronic equipment is in an open state, acquiring the state information of the second electronic equipment through the first port; and determining at least one device encoding information associated with the second electronic device based on the status information; and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.
Also in this application, when checking the electronic device that is borrowed or returned, through this electronic device of interface connection, acquire the status information of each part in this electronic device and record the status information of each part in the database and contrast and check, and then accomplish the checking to this electronic device, so, among the prior art, need check parts such as mainboard, hard disk, optical drive, display card among the electronic device one by one through detection personnel, so, effectual among the prior art of having solved, it is inaccurate to have the check electronic device part state, the technical problem of inefficiency, accuracy has been realized, the technological effect of high-efficient check electronic device part.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to the information processing method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the information processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
determining that a first port of first electronic equipment is connected to second electronic equipment to be checked;
when the second electronic equipment is in an open state, acquiring state information of the second electronic equipment through the first port;
determining at least one device encoding information associated with the second electronic device based on the status information;
and when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result.
Optionally, the step of storing in the storage medium: the determining, based on the state information, at least one device code information associated with the second electronic device, and the corresponding computer program instructions, when executed, specifically include:
determining the state information of each of the M parts of the second electronic equipment based on the state information, and determining M pieces of state information;
at least one device code information associated with the M status information is determined from a database.
Optionally, when the at least one device code information includes the device code of the second electronic device, the storage medium stores and processes: based on the status information and the at least one device code information, checking the second electronic device and obtaining a checking result, wherein when executed, the corresponding computer program instructions specifically include:
determining that the at least one piece of device code information includes a device code of the second electronic device;
determining relevant state information corresponding to the device code of the second electronic device from the at least one piece of device code information;
and checking the second electronic equipment based on the state information and the related state information, and obtaining a checking result.
Optionally, the M pieces of status information include M pieces of attribute information of the M pieces of components to be compared, and the storage medium stores and compares the M pieces of status information with the M pieces of attribute information of the components to be compared, and the step of: the checking the second electronic device based on the state information and the related state information, and obtaining a checking result, wherein when executed, the corresponding computer program instructions specifically include:
judging whether the M parts to be compared attribute information is consistent with the M parts attribute information of the M parts recorded in the related state information or not, and obtaining a first judgment result;
and obtaining a checking result representing whether the second electronic equipment passes the checking based on the first judgment result.
Optionally, the M pieces of status information further include M pieces of usage condition information to be compared of the M pieces of components, and the step of: the obtaining, based on the first determination result, a checking result indicating whether the second electronic device passes the checking, and when executed, the corresponding computer program instruction specifically includes:
determining that the first judgment result is yes;
judging whether the M pieces of using condition information to be compared are consistent with the M pieces of using state information of the M pieces of components recorded in the related state information or not, and obtaining a second judgment result;
and obtaining a checking result representing whether the second electronic device passes the checking based on the second judgment result.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. An information processing method is applied to a first electronic device, and comprises the following steps:
determining that a first port of the first electronic device is connected to a second electronic device to be checked;
when the second electronic equipment is in an open state, acquiring state information of the second electronic equipment through the first port;
determining at least one device encoding information associated with the second electronic device based on the status information;
when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result; wherein the content of the first and second substances,
the determining, based on the state information, at least one device code information related to the second electronic device specifically includes: determining the state information of each of the M parts of the second electronic equipment based on the state information, and determining M pieces of state information; at least one device code information associated with the M status information is determined from a database.
2. The method of claim 1, wherein when the at least one piece of device code information includes a device code of the second electronic device, checking the second electronic device based on the state information and the at least one piece of device code information, and obtaining a checking result, specifically includes:
determining that the at least one piece of device code information includes a device code of the second electronic device;
determining relevant state information corresponding to the device code of the second electronic device from the at least one piece of device code information;
and checking the second electronic equipment based on the state information and the related state information, and obtaining a checking result.
3. The method according to claim 2, wherein the M pieces of status information include M pieces of attribute information of components to be compared of the M pieces of components, and the checking the second electronic device based on the status information and the related status information and obtaining a checking result specifically includes:
judging whether the M parts to be compared attribute information is consistent with the M parts attribute information of the M parts recorded in the related state information or not, and obtaining a first judgment result;
and obtaining a checking result representing whether the second electronic equipment passes the checking based on the first judgment result.
4. The method according to claim 3, wherein the M pieces of status information further include M pieces of usage condition information to be compared of the M pieces of components, and the obtaining, based on the first determination result, a checking result indicating whether the second electronic device passes the checking specifically includes:
determining that the first judgment result is yes;
judging whether the M pieces of using condition information to be compared are consistent with the M pieces of using state information of the M pieces of components recorded in the related state information or not, and obtaining a second judgment result;
and obtaining a checking result representing whether the second electronic device passes the checking based on the second judgment result.
5. A first electronic device comprising:
a processor;
a first port connected to the processor;
wherein the processor is configured to:
determining that the first port of the first electronic device is connected to a second electronic device to be checked;
when the second electronic equipment is in an open state, acquiring state information of the second electronic equipment through the first port;
determining at least one device encoding information associated with the second electronic device based on the status information;
when the at least one piece of equipment code information comprises the equipment code of the second electronic equipment, checking the second electronic equipment based on the state information and the at least one piece of equipment code information, and obtaining a checking result; wherein the content of the first and second substances,
the processor is further configured to: determining the state information of each of the M parts of the second electronic equipment based on the state information, and determining M pieces of state information; at least one device code information associated with the M status information is determined from a database.
6. The electronic device of claim 5, wherein when the at least one piece of device code information includes a device code of the second electronic device, checking the second electronic device based on the state information and the at least one piece of device code information, and obtaining a checking result specifically includes:
determining that the at least one piece of device code information includes a device code of the second electronic device;
determining relevant state information corresponding to the device code of the second electronic device from the at least one piece of device code information;
and checking the second electronic equipment based on the state information and the related state information, and obtaining a checking result.
7. The electronic device of claim 6, wherein the M status information includes M to-be-compared component attribute information for the M components, the processor further to:
judging whether the M parts to be compared attribute information is consistent with the M parts attribute information of the M parts recorded in the related state information or not, and obtaining a first judgment result;
and obtaining a checking result representing whether the second electronic equipment passes the checking based on the first judgment result.
8. The electronic device of claim 7, wherein the M status information further includes M to-be-compared usage information for the M components, the processor further to:
determining that the first judgment result is yes;
judging whether the M pieces of using condition information to be compared are consistent with the M pieces of using state information of the M pieces of components recorded in the related state information or not, and obtaining a second judgment result;
and obtaining a checking result representing whether the second electronic device passes the checking based on the second judgment result.
9. A first electronic device comprising:
the first determining unit is used for determining that the first port of the first electronic device is connected to the second electronic device to be checked;
the acquisition unit is used for acquiring the state information of the second electronic equipment through the first port when the second electronic equipment is in an open state;
a second determining unit configured to determine at least one piece of device code information related to the second electronic device based on the status information;
the checking unit is used for checking the second electronic equipment based on the state information and the at least one piece of equipment coding information when the at least one piece of equipment coding information comprises the equipment coding of the second electronic equipment, and obtaining a checking result; wherein the content of the first and second substances,
the first electronic device further comprises: a third determining unit, configured to determine, based on the state information, state information of each of M components of the second electronic device, and determine M pieces of state information in total; at least one device code information associated with the M status information is determined from a database.
CN201610162524.XA 2016-03-21 2016-03-21 Information processing method and electronic equipment Active CN105843715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610162524.XA CN105843715B (en) 2016-03-21 2016-03-21 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610162524.XA CN105843715B (en) 2016-03-21 2016-03-21 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105843715A CN105843715A (en) 2016-08-10
CN105843715B true CN105843715B (en) 2020-02-21

Family

ID=56587776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610162524.XA Active CN105843715B (en) 2016-03-21 2016-03-21 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105843715B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804286A (en) * 2018-05-31 2018-11-13 中国联合网络通信集团有限公司 Auditing method, device, terminal and the storage medium of number line end mouth status data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770113A (en) * 2004-10-29 2006-05-10 日本电气株式会社 Component unit monitoring system and component unit monitoring method
CN103677668A (en) * 2013-11-29 2014-03-26 北京奇虎科技有限公司 Method and device for detecting mobile storage equipment
CN104394097A (en) * 2014-12-11 2015-03-04 广州广电运通金融电子股份有限公司 Self-service terminal monitoring method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3788447B2 (en) * 2003-06-30 2006-06-21 株式会社日立製作所 Session control server, presence server, session control device, software applied to the session control device, session control method, and network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770113A (en) * 2004-10-29 2006-05-10 日本电气株式会社 Component unit monitoring system and component unit monitoring method
JP2006127324A (en) * 2004-10-29 2006-05-18 Nec Corp Composition device monitoring system and method
CN103677668A (en) * 2013-11-29 2014-03-26 北京奇虎科技有限公司 Method and device for detecting mobile storage equipment
CN104394097A (en) * 2014-12-11 2015-03-04 广州广电运通金融电子股份有限公司 Self-service terminal monitoring method and system

Also Published As

Publication number Publication date
CN105843715A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
US8060795B2 (en) Solution for automatically incorporating diagnostic data within screen capture images
CN110489345B (en) Crash aggregation method, device, medium and equipment
CN107133165B (en) Browser compatibility detection method and device
CN109472017B (en) Method and device for obtaining relevant information of text court deeds of referee to be generated
CN105574041B (en) Data recombination method and device
CN104850318A (en) Method and apparatus for transient message display control
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN114120221A (en) Environment checking method based on deep learning, electronic equipment and storage medium
CN105843715B (en) Information processing method and electronic equipment
CN109299538B (en) Detection method and device for layout design
CN109460187B (en) Verification method and verification terminal for data consistency of qcow2 file
CN107085532B (en) task monitoring method and device
US20130304413A1 (en) Computing device and method for testing electromagnetic compatiblity of printed circuit board
CN104063308A (en) Data verification method and device
CN106657316B (en) Message withdrawing method and device
CN112631842B (en) System memory identification test method, system and electronic equipment
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN104866233B (en) Information processing method and electronic equipment
CN104468230B (en) Management method, read method, corresponding equipment and the system of configuration file
CN111209765B (en) Method and device for identifying material bar code and terminal equipment
CN110610095A (en) Report traceability method, server and user side
CN110555687A (en) method, server and user side for associating transaction account
EP3244411A1 (en) Indexing variable bit stream audio formats
CN109446166B (en) Method for detecting file directory, computer readable storage medium and terminal device
CN111552958B (en) Program running feature extraction method and device

Legal Events

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