CN108648297A - Equipment detection method and device, storage medium, electronic equipment - Google Patents

Equipment detection method and device, storage medium, electronic equipment Download PDF

Info

Publication number
CN108648297A
CN108648297A CN201810402532.6A CN201810402532A CN108648297A CN 108648297 A CN108648297 A CN 108648297A CN 201810402532 A CN201810402532 A CN 201810402532A CN 108648297 A CN108648297 A CN 108648297A
Authority
CN
China
Prior art keywords
equipment
checked
access
detection
program
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
CN201810402532.6A
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201810402532.6A priority Critical patent/CN108648297A/en
Publication of CN108648297A publication Critical patent/CN108648297A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure is directed to a kind of equipment detection method and devices, belong to field of communication technology, and this method includes:Starting device detects program, and obtains the communication mode that the equipment detection program is supported;It is detected whether to need detection device access according to the communication mode;If having detected the equipment access to be detected, to the measurement equipment sending device access confirmation message to be checked, and receives the measurement equipment to be checked and respond the response message that the equipment access confirmation message is sent;Judge whether the receiving time of the response message is more than default receiving time, and determines whether the measurement equipment to be checked is legitimate device according to judging result.This method can improve the promptness of equipment state acquisition.

Description

Equipment detection method and device, storage medium, electronic equipment
Technical field
This disclosure relates to field of communication technology, in particular to a kind of equipment detection method, assembly detection apparatus, meter Calculation machine readable storage medium storing program for executing, electronic equipment.
Background technology
It is continuous with the development of auto industry and modern electronic technology, the communication technology, network technology etc. technology It incorporates, vehicle structure becomes to become increasingly complex, and the degree of automation is higher and higher.Meanwhile user to the safety of automobile and is relaxed The requirement of adaptive also increasingly improves.One of them important demand is exactly grasp motoring condition that can be promptly and accurately, with to the greatest extent It is fast to find potential faults and excluded.
It, can be by diagnostic device (slave computer) to the operation shape of vehicle in a kind of currently running method for monitoring state State is monitored.But in many cases, when have new diagnostic device (slave computer) access host computer (terminal device, example Such as can be PC or mobile phone) when, host computer timely automated can not get the equipment state of slave computer, so as to cause nothing Method is detected and updates to the equipment state of slave computer in time, so that diagnostic device (slave computer) can not be to automobile Potential faults, which are made, timely to be handled and causes security risk.
Accordingly, it is desirable to provide a kind of new equipment detection method and device.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Invention content
The disclosure be designed to provide a kind of equipment detection method, assembly detection apparatus, computer readable storage medium, Electronic equipment, and then the equipment state caused by the limitation and defect of the relevant technologies is overcome to obtain at least to a certain extent Not in time the problem of.
According to one aspect of the disclosure, a kind of equipment detection method is provided, including:
Starting device detects program, and obtains the communication mode that the equipment detection program is supported;
It is detected whether to need detection device access according to the communication mode;
If having detected the equipment to be detected access, to the measurement equipment sending device access confirmation message to be checked, And it receives the measurement equipment to be checked and responds the response message that the equipment access confirmation message is sent;
Judge whether the receiving time of the response message is more than default receiving time, and described in determining according to judging result Whether measurement equipment to be checked is legitimate device.
In a kind of exemplary embodiment of the disclosure, determine whether the measurement equipment to be checked is legal according to judging result Equipment includes:
If the receiving time of the response message is less than default receiving time, it is determined that the measurement equipment to be checked is to close Method equipment;
If the receiving time of the response message is more than the default receiving time, it is determined that the measurement equipment to be checked is Illegality equipment.
In a kind of exemplary embodiment of the disclosure, the communication mode includes usb communication, serial communication, Ethernet One kind in communication or Bluetooth communication.
In a kind of exemplary embodiment of the disclosure, detected whether to need detection device access according to the communication mode Including:
By having detected whether USB hot plug events, detect whether to need detection device access;Or
By detecting whether to show new equipment access, detect whether to need detection device access;Or
By detecting whether that showing new equipment needs to match, detect whether to need detection device access.
In a kind of exemplary embodiment of the disclosure, obtaining the communication mode that the equipment detection program is supported includes:
The communication mode that the equipment detection program is supported is read from the configuration file that the equipment detects program.
It is described after determining that the measurement equipment to be checked is legitimate device in a kind of exemplary embodiment of the disclosure Equipment detection method further includes:
The response message is sent to operating terminal.
In a kind of exemplary embodiment of the disclosure, the confirmation message includes default unpaired message.
According to one aspect of the disclosure, a kind of assembly detection apparatus is provided, including:
Acquisition module detects program for starting device, and obtains the communication mode that the equipment detection program is supported;
Detection module needs detection device access for being detected whether according to the communication mode;
Receiving module, if for having detected the equipment access to be detected, to the measurement equipment sending device to be checked Access confirmation message, and receive the measurement equipment to be checked and respond the response message that the equipment access confirmation message is sent;
Judgment module, for judging whether the receiving time of the response message is more than default receiving time, and according to sentencing Disconnected result determines whether the measurement equipment to be checked is legitimate device.
In a kind of exemplary embodiment of the disclosure, above-mentioned judgment module can be additionally configured to:
If the receiving time of the response message is less than default receiving time, it is determined that the measurement equipment to be checked is to close Method equipment;If the receiving time of the response message is more than the default receiving time, it is determined that the measurement equipment to be checked is Illegality equipment.
In a kind of exemplary embodiment of the disclosure, the assembly detection apparatus can also include:
The response message is sent to operating terminal by sending module.
In a kind of exemplary embodiment of the disclosure, the communication mode includes usb communication, serial communication, Ethernet One kind in communication or Bluetooth communication.
In a kind of exemplary embodiment of the disclosure, above-mentioned detection module can be additionally configured to:
By having detected whether USB hot plug events, detect whether to need detection device access;Or by detecting whether New equipment access is shown, detects whether to need detection device access;Or by detecting whether that showing new equipment needs It matches, detects whether to need detection device access.
In a kind of exemplary embodiment of the disclosure, obtaining the communication mode that the equipment detection program is supported includes:
The communication mode that the equipment detection program is supported is read from the configuration file that the equipment detects program.
In a kind of exemplary embodiment of the disclosure, the confirmation message includes default unpaired message.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, The computer program realizes the equipment detection method described in above-mentioned any one when being executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to execute setting described in above-mentioned any one via the executable instruction is executed Standby detection method.
A kind of equipment detection method of the disclosure and device, by detect need detection device access when, to be detected Equipment sending device access confirmation message, and receive the response message that measurement equipment response apparatus access confirmation message to be checked is sent; Then judge whether the receiving time of response message is more than default receiving time, and determine that measurement equipment to be checked is according to judging result No is legitimate device;On the one hand, by when detecting that needing detection device accesses, being accessed to measurement equipment sending device to be checked true Recognize message, solves in the prior art since equipment state to be detected can not be obtained in time so as to cause can not be in time to be detected The problem of equipment state of equipment is detected and updates improves the promptness of equipment state acquisition;On the other hand, pass through Sending device access confirmation message so that host computer can treat detection device and be confirmed, ensure that the conjunction of measurement equipment to be checked Method is avoided due to illegality equipment access damage caused by host computer;In another aspect, passing through the reception of message according to response Time judges whether measurement equipment to be checked is legitimate device so that the detection of equipment state is quicker and convenient, improves pair The speed of the equipment detection of measurement equipment to be checked.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of flow chart of equipment detection method;
Fig. 2 schematically shows a kind of Application Scenarios-Example figure of equipment detection method;
Fig. 3 schematically shows a kind of method flow diagram for detecting whether to need detection device access according to communication mode;
Fig. 4 schematically shows the flow chart of another equipment detection method;
Fig. 5 schematically shows a kind of block diagram of assembly detection apparatus;
Fig. 6 schematically shows a kind of electronic equipment exemplary plot for realizing above equipment detection method;
Fig. 7 schematically shows a kind of computer readable storage medium for realizing above equipment detection method.
Specific implementation mode
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be in any suitable manner incorporated in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with technical solution of the disclosure one or more in the specific detail, or others side may be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in attached drawing are work( Energy entity, not necessarily must be corresponding with physically or logically independent entity.Software form may be used to realize these work( Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
A kind of equipment detection method is provided firstly in this example embodiment, which can run on Position machine, for quickly detecting whether measurement equipment to be checked accesses host computer;The host computer for example can be mobile terminal device (such as Can be mobile phone either tablet computer etc.) can also be PC or server etc., there is no special restriction on this for this example. Refering to what is shown in Fig. 1, the equipment detection method may comprise steps of:
Step S110. starting devices detect program, and obtain the communication mode that the equipment detection program is supported.
Step S120. detects whether to need detection device access according to the communication mode.
If step S130. has detected the equipment access to be detected, accessed to the measurement equipment sending device to be checked Confirmation message, and receive the measurement equipment to be checked and respond the response message that the equipment access confirmation message is sent.
Step S140. judges whether the receiving time of the response message is more than default receiving time, and is tied according to judgement Fruit determines whether the measurement equipment to be checked is legitimate device.
In above equipment detection method, on the one hand, by detect need detection device access when, to measurement equipment to be checked Sending device access confirmation message solves in the prior art due to that can not obtain equipment state to be detected in time so as to cause nothing The problem of equipment state that method treats detection device in time is detected and updates improves the timely of equipment state acquisition Property;On the other hand, pass through sending device access confirmation message so that host computer can treat detection device and be confirmed, ensure The legitimacy of measurement equipment to be checked is avoided due to illegality equipment access damage caused by host computer;In another aspect, passing through root Judge whether measurement equipment to be checked is legitimate device according to the receiving time of response message so that the detection of equipment state more quickly with And it is convenient, improve the speed for the equipment detection for treating detection device.
In the following, will be carried out to each step in above equipment detection method in this example embodiment in conjunction with attached drawing detailed Explanation and explanation.
In step s 110, starting device detects program, and obtains the communication mode that the equipment detection program is supported.
In this example embodiment, refering to what is shown in Fig. 2, first, 201 program of host computer starts and starting device detects journey Sequence;Then, after equipment detection program starts, the communication mode that equipment detection program is supported is obtained.Wherein, equipment inspection is obtained Ranging sequence support communication mode may include:Equipment detection is read from the configuration file (Config) that equipment detects program The communication mode that program is supported.Further, which may include usb communication, serial communication, ethernet communication etc. Deng, it can also be including other communication modes, such as can be Bluetooth communication or Wifi communications etc., this example does not do this spy Different limitation.
In the step s 120, it is detected whether to need detection device access according to the communication mode.
In this example embodiment, refering to what is shown in Fig. 3, detecting whether that needing detection device connects according to the communication mode It may include step S310- steps S330 to enter.Wherein:
In step S310, by having detected whether USB hot plug events, detect whether to need detection device access.
In step s 320, it by detecting whether that showing new equipment accesses, detects whether to need detection device access.
In step S330, by detecting whether that showing new equipment needs to match, and detects whether to need detection device Access.
In the following, step S310- steps S330 will be explained and be illustrated.It is possible, firstly, to by having detected whether USB Hot plug events occur, and are attached by USB and host computer with detecting whether to need detection device;When detected USB heat When hot plug event, then explanation needs detection device access;Secondly, it is in display device that can also be by detecting host computer 201 It is no to show new equipment access, pass through serial communication or ethernet communication and host computer to detect whether to need detection device It is attached;When detecting that showing new equipment accesses, then explanation needs detection device access;Further, may be used also By detecting whether that new equipment needs to match, to be connected by bluetooth and host computer with detecting whether to need detection device It connects;When detect new equipment need match clock synchronization, then explanation need detection device access.It needs further to remark additionally herein , measurement equipment to be checked can by any one of the above communication mode access host computer be used only at most of conditions A kind of communication mode.But when there is multiple measurement equipments to be checked to access host computer simultaneously, it is possibility to have communication, this There is no special restriction on this for example.
In step s 130, if the equipment access to be detected has been detected, to the measurement equipment sending device to be checked Access confirmation message, and receive the measurement equipment to be checked and respond the response message that the equipment access confirmation message is sent.
In this example embodiment, shown in Fig. 2, first, when host computer 201 detected it is above-mentioned to be detected When equipment 202 accesses, need to 202 sending device access confirmation message of measurement equipment to be checked;Wherein, the equipment access confirmation message In may include unpaired message between host computer 201 and the measurement equipment 202 (slave computer) to be checked;For example, can be sent out by USB Give the equipment access confirmation message etc.;Secondly, when measurement equipment 202 (slave computer) to be checked receives the equipment access confirmation message Afterwards, it responds the equipment access confirmation message and sends response message to host computer 201;Wherein, which may include waiting for Message is matched in confirmation between detection device 202 (slave computer) and host computer 201.
In step S140, judge whether the receiving time of the response message is more than default receiving time, and according to sentencing Disconnected result determines whether the measurement equipment to be checked is legitimate device.
In this example embodiment, after receiving above-mentioned response message, it is also necessary to judge the reception of the response message Whether the time is more than default receiving time;Wherein, which can be 10s, can also be other times, such as can To be 15s or 20s etc., there is no special restriction on this for this example.Further, it is determined according to judging result described to be detected Whether equipment is that legitimate device may include:If the receiving time of the response message is less than default receiving time, really The fixed measurement equipment to be checked is legitimate device;If the receiving time of the response message is more than the default receiving time, Determine that the measurement equipment to be checked is illegality equipment.Specifically:
First, if the receiving time of response message is less than default receiving time, such as the receiving time of response message For 8s, then it may determine that the measurement equipment to be checked can belong to legitimate device (equipment needed) with host computer successful matching;Into one Step, if the receiving time of response message is more than default receiving time, such as the receiving time of response message is 22s, then may be used To judge that the measurement equipment to be checked belongs to illegality equipment (unwanted equipment);Into can filter this out.By using which, The burden of above equipment detection program, the further detection speed for improving equipment state can be reduced;It further, can be with The legitimacy for ensuring measurement equipment to be checked is avoided due to illegality equipment access damage caused by host computer.
Further, after host computer confirms that the measurement equipment to be checked is legitimate device, which can also wrap It includes:The response message is sent to operating terminal.For example:
For example, after host computer confirms that the measurement equipment (slave computer) to be checked is normal device, which can be sent out It send to operating terminal (such as can be the terminal for controlling the equipment to be checked);After the operating terminal receives the response message, Then illustrate that host computer can correctly be read in the measurement equipment to be checked and detects information.It, can be further by using which The raising accuracy of measurement equipment to be checked during the work time.
In the following, by the equipment detection method of this example embodiment is further explained and is illustrated in conjunction with Fig. 4. Refering to what is shown in Fig. 4, the equipment detection method may comprise steps of:
Step S10,201 starting device of host computer detect program;
Step S20, host computer 201 obtain the communication mode that equipment detection program is supported;
Step S30, host computer 201 detect whether that needing detection device accesses according to the communication mode;
Wherein, detect whether that needing detection device access may include:It can be by having detected whether USB hot plug events Occur, is attached by USB and host computer with detecting whether to need detection device;When having detected USB hot plug events, Then explanation needs detection device access;Secondly, whether shown in display device that can also be by detecting host computer 201 new Equipment accesses, and is attached with host computer by serial communication or ethernet communication with detecting whether to need detection device;When Detect that then explanation needs detection device access when showing new equipment access;Further, can also be by detection It is no to there is new equipment to need to match, it is attached by bluetooth and host computer with detecting whether to need detection device;When detecting There is new equipment to need to match clock synchronization, then explanation needs detection device access.
Step S40 sends equipment access confirmation message when host computer 201 detects that needing detection device 202 accesses To measurement equipment 202 to be checked;
Step S50, measurement equipment 202 to be checked receive the equipment access confirmation message that host computer 201 is sent;
Step S60, measurement equipment 202 to be checked respond the equipment access confirmation message and send response message to host computer 201;
Step S70, after host computer 201 receives response message, the receiving time of message judges to be detected according to response Whether equipment belongs to legitimate device.
The disclosure additionally provides a kind of assembly detection apparatus.Refering to what is shown in Fig. 5, the assembly detection apparatus may include obtaining Module 510, detection module 520, receiving module 530 and judgment module 540.Wherein:
Acquisition module 510 can be used for starting device detection program, and obtain the communication that the equipment detection program is supported Mode.
Detection module 520 can be used for being detected whether according to the communication mode needing detection device access.
If receiving module 530 can be used for having detected the equipment access to be detected, sent out to the measurement equipment to be checked Equipment access confirmation message is sent, and receives the measurement equipment to be checked and responds the response that the equipment access confirmation message is sent and disappear Breath.
Judgment module 540 can be used for judging whether the receiving time of the response message is more than default receiving time, and Determine whether the measurement equipment to be checked is legitimate device according to judging result.
In a kind of example embodiment of the disclosure, above-mentioned judgment module can be additionally configured to:If the response The receiving time of message is less than default receiving time, it is determined that the measurement equipment to be checked is legitimate device;If the response The receiving time of message is more than the default receiving time, it is determined that the measurement equipment to be checked is illegality equipment.
In a kind of example embodiment of the disclosure, the assembly detection apparatus can also include:
Sending module can be used for the response message being sent to operating terminal.
In a kind of example embodiment of the disclosure, the communication mode includes usb communication, serial communication, Ethernet One kind in communication or Bluetooth communication.
In a kind of example embodiment of the disclosure, above-mentioned detection module can be additionally configured to:
By having detected whether USB hot plug events, detect whether to need detection device access;Or by detecting whether New equipment access is shown, detects whether to need detection device access;Or by detecting whether that showing new equipment needs It matches, detects whether to need detection device access.
In a kind of example embodiment of the disclosure, above-mentioned acquisition module can be additionally configured to:
The communication mode that the equipment detection program is supported is read from the configuration file that the equipment detects program.
In a kind of example embodiment of the disclosure, the confirmation message includes default unpaired message.
The detail of each module has carried out in corresponding equipment detection method in detail in above equipment detection device Thin description, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in above-detailed Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more The feature and function of module either unit can embody in a module or unit.Conversely, an above-described mould Either the feature and function of unit can be further divided into and embodied by multiple modules or unit block.
In addition, although describing each step of method in the disclosure with particular order in the accompanying drawings, this does not really want These steps must be executed according to the particular order by asking or implying, or the step having to carry out shown in whole could be realized Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be expressed in the form of software products, the software product can be stored in one it is non-volatile Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can realize the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, i.e.,:It is complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 6.The electronics that Fig. 6 is shown Equipment 600 is only an example, should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in fig. 6, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap It includes but is not limited to:Above-mentioned at least one processing unit 610, above-mentioned at least one storage unit 620, connection different system component The bus 630 of (including storage unit 620 and processing unit 610).
Wherein, the storage unit has program stored therein code, and said program code can be held by the processing unit 610 Row so that the processing unit 610 executes various according to the present invention described in above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 610 can execute step S110 as shown in fig. 1:Startup is set Standby detection program, and obtain the communication mode that the equipment detection program is supported;S120:It is detected whether according to the communication mode Need detection device access;Step S130:If having detected the equipment access to be detected, sent to the measurement equipment to be checked Equipment access confirmation message, and receive the measurement equipment to be checked and respond the response message that the equipment access confirmation message is sent; Step S140:Judge whether the receiving time of the response message is more than default receiving time, and institute is determined according to judging result State whether measurement equipment to be checked is legitimate device.
Storage unit 620 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Storage unit 620 can also include program/utility with one group of (at least one) program module 6205 6204, such program module 6205 includes but not limited to:Operating system, one or more application program, other program moulds Block and program data may include the realization of network environment in each or certain combination in these examples.
Bus 630 can be to indicate one or more in a few class bus structures, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use the arbitrary bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 600 communicate, and/or with make Any equipment that the electronic equipment 600 can be communicated with one or more of the other computing device (such as router, modulation /demodulation Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 600, including but not It is limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be expressed in the form of software products, the software product can be stored in one it is non-volatile Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute State program code for make the terminal device execute described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 7, describing the program product for realizing the above method according to the embodiment of the present invention 800, portable compact disc read only memory (CD-ROM) may be used and include program code, and can in terminal device, Such as it is run on PC.However, the program product of the present invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device either device use or It is in connection.
The arbitrary combination of one or more readable mediums may be used in described program product.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or the arbitrary above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more conducting wires, read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, In carry readable program code.The data-signal of this propagation may be used diversified forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, which can send, propagate either transmission for used by instruction execution system, device or device or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with any combination of one or more programming languages for executing the program that operates of the present invention Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It executes on computing device, partly execute on a user device, being executed as an independent software package, partly in user's calculating Upper side point is executed or is executed in remote computing device or server completely on a remote computing.It is being related to far In the situation of journey computing device, remote computing device can pass through the network of any kind, including LAN (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of the processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, being also easy to understand, these processing for example can be executed either synchronously or asynchronously in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and include the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.

Claims (10)

1. a kind of equipment detection method, which is characterized in that including:
Starting device detects program, and obtains the communication mode that the equipment detection program is supported;
It is detected whether to need detection device access according to the communication mode;
If having detected the equipment access to be detected, to the measurement equipment sending device access confirmation message to be checked, and connect It receives the measurement equipment to be checked and responds the response message that the equipment access confirmation message is sent;
Judge whether the receiving time of the response message is more than default receiving time, and is determined according to judging result described to be checked Whether measurement equipment is legitimate device.
2. equipment detection method according to claim 1, which is characterized in that determine described to be detected set according to judging result Whether standby be that legitimate device includes:
If the receiving time of the response message is less than default receiving time, it is determined that the measurement equipment to be checked is legal sets It is standby;
If the receiving time of the response message is more than the default receiving time, it is determined that the measurement equipment to be checked is illegal Equipment.
3. equipment detection method according to claim 2, which is characterized in that determining that the measurement equipment to be checked is legal sets After standby, the equipment detection method further includes:
The response message is sent to operating terminal.
4. equipment detection method according to claim 1, which is characterized in that the communication mode includes usb communication, serial ports One kind in communication, ethernet communication or Bluetooth communication.
5. equipment detection method according to claim 4, which is characterized in that detect whether to need according to the communication mode Detection device accesses:
By having detected whether USB hot plug events, detect whether to need detection device access;Or
By detecting whether to show new equipment access, detect whether to need detection device access;Or
By detecting whether that showing new equipment needs to match, detect whether to need detection device access.
6. equipment detection method according to claim 4, which is characterized in that obtain the logical of the equipment detection program support Letter mode includes:
The communication mode that the equipment detection program is supported is read from the configuration file that the equipment detects program.
7. according to claim 1-6 any one of them equipment detection methods, which is characterized in that the confirmation message includes pre- If unpaired message.
8. a kind of assembly detection apparatus, which is characterized in that including:
Acquisition module detects program for starting device, and obtains the communication mode that the equipment detection program is supported;
Detection module needs detection device access for being detected whether according to the communication mode;
If receiving module accesses for having detected the equipment access to be detected to the measurement equipment sending device to be checked Confirmation message, and receive the measurement equipment to be checked and respond the response message that the equipment access confirmation message is sent;
Judgment module for judging whether the receiving time of the response message is more than default receiving time, and is tied according to judgement Fruit determines whether the measurement equipment to be checked is legitimate device.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt Claim 1-7 any one of them equipment detection methods are realized when processor executes.
10. a kind of electronic equipment, which is characterized in that including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to carry out perform claim requirement 1-7 any one of them via the execution executable instruction Equipment detection method.
CN201810402532.6A 2018-04-28 2018-04-28 Equipment detection method and device, storage medium, electronic equipment Pending CN108648297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810402532.6A CN108648297A (en) 2018-04-28 2018-04-28 Equipment detection method and device, storage medium, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810402532.6A CN108648297A (en) 2018-04-28 2018-04-28 Equipment detection method and device, storage medium, electronic equipment

Publications (1)

Publication Number Publication Date
CN108648297A true CN108648297A (en) 2018-10-12

Family

ID=63748767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810402532.6A Pending CN108648297A (en) 2018-04-28 2018-04-28 Equipment detection method and device, storage medium, electronic equipment

Country Status (1)

Country Link
CN (1) CN108648297A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198240A (en) * 2019-05-31 2019-09-03 口碑(上海)信息技术有限公司 In the method and device of businessman's management equipment addition printer
CN110232813A (en) * 2019-07-15 2019-09-13 广东电网有限责任公司 A kind of copy controller and copy controller system
CN114070721A (en) * 2021-11-16 2022-02-18 中国联合网络通信集团有限公司 Method for determining module information, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588878A (en) * 2004-08-05 2005-03-02 Ut斯达康通讯有限公司 Method for detecting illegally cut-in point in radio cocal network
US8391162B2 (en) * 2010-08-24 2013-03-05 Hon Hai Precision Industry Co., Ltd. Apparatus and method for testing SMNP cards
CN104703181A (en) * 2013-12-09 2015-06-10 重庆重邮信科通信技术有限公司 Access node authentication method and terminal
CN105630647A (en) * 2014-11-28 2016-06-01 中兴通讯股份有限公司 Equipment detection method and detection equipment
CN106899584A (en) * 2017-02-17 2017-06-27 深圳怡化电脑股份有限公司 Management method and its device that a kind of hardware device is accessed

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588878A (en) * 2004-08-05 2005-03-02 Ut斯达康通讯有限公司 Method for detecting illegally cut-in point in radio cocal network
US8391162B2 (en) * 2010-08-24 2013-03-05 Hon Hai Precision Industry Co., Ltd. Apparatus and method for testing SMNP cards
CN104703181A (en) * 2013-12-09 2015-06-10 重庆重邮信科通信技术有限公司 Access node authentication method and terminal
CN105630647A (en) * 2014-11-28 2016-06-01 中兴通讯股份有限公司 Equipment detection method and detection equipment
CN106899584A (en) * 2017-02-17 2017-06-27 深圳怡化电脑股份有限公司 Management method and its device that a kind of hardware device is accessed

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198240A (en) * 2019-05-31 2019-09-03 口碑(上海)信息技术有限公司 In the method and device of businessman's management equipment addition printer
CN110198240B (en) * 2019-05-31 2023-01-20 口碑(上海)信息技术有限公司 Method and device for adding printer to merchant management equipment
CN110232813A (en) * 2019-07-15 2019-09-13 广东电网有限责任公司 A kind of copy controller and copy controller system
CN114070721A (en) * 2021-11-16 2022-02-18 中国联合网络通信集团有限公司 Method for determining module information, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN105045608B (en) System and method for managing the software upgrading in vehicle computing system
KR102061913B1 (en) Method and apparatus for controlling operations of electronic device
US9805520B2 (en) Method and system for providing vehicle security service
US20210185095A1 (en) Virtualized controllers for in-vehicle and iot networks
CN103455352B (en) The method of application deployment software and application software dispose device
EP3057053A1 (en) Electronic device and method for processing secure information
CN107729757A (en) Software authentication before software upgrading
EP3084672B1 (en) Protection system including machine learning snapshot evaluation
CN108648297A (en) Equipment detection method and device, storage medium, electronic equipment
CN106993303A (en) Configuration and method, device, equipment and the computer-readable storage medium of the intelligent wifi equipment of maintenance
CN102215254A (en) Securely providing session key information for user consent to remote management of a computer device
EP3993338A1 (en) Device binding method and apparatus, and electronic device
JP2019036091A (en) Vehicle security system and vehicle security method
CN104836785B (en) Terminal authentication system and method for vehicle network connection
CN109902022A (en) The method and relevant device tested automatically for loophole of vertically going beyond one's commission
CN106851779A (en) A kind of method and mobile terminal for recognizing access point and focus
CN111181771B (en) Security-changing abnormal positioning method and device based on fortress machine and electronic equipment
KR101368755B1 (en) System and method for managing port and shipping container using smart phone
US20150121474A1 (en) Processor security authentication area
US11181870B2 (en) Systems and methods for safety-enabled control
US20200341750A1 (en) Method of upgrading inverter software, system and electronic device using the same
CN115515012A (en) Key burning method and device, electronic equipment board card and storage medium
CN107645430B (en) Data processing method, system and related equipment
CN115130114A (en) Gateway safety starting method and device, electronic equipment and storage medium
CN115220945A (en) Raspberry pie-based vehicle detection device and method, vehicle and storage medium

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

RJ01 Rejection of invention patent application after publication