CN108307526A - Equipment connection method and Related product - Google Patents

Equipment connection method and Related product Download PDF

Info

Publication number
CN108307526A
CN108307526A CN201810141394.0A CN201810141394A CN108307526A CN 108307526 A CN108307526 A CN 108307526A CN 201810141394 A CN201810141394 A CN 201810141394A CN 108307526 A CN108307526 A CN 108307526A
Authority
CN
China
Prior art keywords
equipment
tested
hot spot
network
network address
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
CN201810141394.0A
Other languages
Chinese (zh)
Inventor
周慧鹏
龙刚
郑剑荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810141394.0A priority Critical patent/CN108307526A/en
Publication of CN108307526A publication Critical patent/CN108307526A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Abstract

The embodiment of the present application discloses a kind of equipment connection method and Related product, wherein method include:Equipment to be tested receives the first link order input by user;The equipment to be tested establishes network connection with target hot spot and obtains the first network address by the target hot spot for the equipment distribution to be tested;The equipment to be tested is according to the first network address code displaying image;The equipment to be tested receives the second link order that test equipment is sent, and second link order scans the second network address that the coded image obtains by scan module by the test equipment and generates;The equipment to be tested verify second network address it is consistent with the first network address when, establish network connection with the test equipment.Using the application, the flexibility and convenience that equipment to be tested is connect with test equipment are improved.

Description

Equipment connection method and Related product
Technical field
This application involves technical field of electronic equipment, a kind of equipment connection method and Related product have been related generally to.
Background technology
With the continuous development of electronic equipment (such as mobile phone, computer, tablet computer) technology, the use of electronic equipment is got over Come more universal.Usual electronic equipment is required for before manufacture by stringent production test, to ensure product quality and system Performance.
Existing testing scheme uses universal serial bus (universal serial bus, USB, abbreviation data line) Connecting test needs constantly to plug data line realization production test data manually and the information of production test project data passes Defeated, production test is cumbersome to be taken, and causes the operability, convenience and working efficiency of electronic equipment production test relatively low.And Constantly plug consumes data line loss serious, causes the testing cost of electronic equipment production test higher.
Invention content
The embodiment of the present application provides a kind of equipment connection method and Related product, improves equipment and test equipment to be tested Between the convenience of flexibility and transmission data that connects.
In a first aspect, the embodiment of the present application provides a kind of equipment connection method, it is applied to equipment to be tested, including:
Receive the first link order input by user;
Network connection is established with target hot spot, obtains the first net for the equipment distribution to be tested by the target hot spot Network address;
According to the first network address code displaying image;
The second link order that test equipment is sent is received, second link order passes through scanning by the test equipment The second network address that coded image described in module scans obtains generates;
Verify second network address it is consistent with the first network address when, establish net with the test equipment Network connects.
Second aspect, the embodiment of the present application provide another equipment connection method, are applied to test equipment, and the test is set Standby includes scan module, the method includes:
The coded image that test equipment is shown is treated by the scan module to be scanned, and obtains the second network address, The coded image is generated according to target hot spot for the first network address of its distribution by the equipment to be tested;
The second link order is generated according to second network address information;
Second link order is sent to the equipment to be tested;
The device authentication to be tested go out second network address it is consistent with the first network address when, and it is described Equipment to be tested establishes network connection.
The third aspect, the embodiment of the present application provide a kind of equipment to be tested, including:
Receiving unit, for receiving the first link order input by user;
Connection unit obtains by the target hot spot being described to be tested set for establishing network connection with target hot spot The first network address that back-up is matched;
Display unit, for according to the first network address code displaying image;
The receiving unit, be additionally operable to receive test equipment send the second link order, second link order by The test equipment scans the second network address that the coded image obtains by scan module and generates;
The connection unit, be additionally operable to verify second network address it is consistent with the first network address when, Network connection is established with the test equipment.
Fourth aspect, the embodiment of the present application provide a kind of test equipment, and the test equipment includes scan module, the survey Trying equipment further includes:
Scanning element is scanned for treating the coded image that test equipment is shown by the scan module, obtains Second network address, the coded image are given birth to according to target hot spot for the first network address of its distribution by the equipment to be tested At;
Generation unit, for generating the second link order according to second network address information;
Transmission unit, for sending second link order to the equipment to be tested;
Connection unit, for going out second network address and the first network address in the device authentication to be tested When consistent, network connection is established with the equipment to be tested.
5th aspect, the embodiment of the present application provide a kind of equipment to be tested, including processor, memory, communication interface with And one or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned Processor executes, and described program includes the instruction for the step some or all of as described in first aspect.
6th aspect, the embodiment of the present application provide a kind of test equipment, including processor, memory, communication interface and One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned It manages device to execute, described program includes the instruction for the step some or all of as described in second aspect.
7th aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readable Storage medium stores computer program, wherein the computer program makes computer execute such as the embodiment of the present application first party Step some or all of described in face or second aspect.
Eighth aspect, the embodiment of the present application provide a kind of computer program product, wherein the computer program product Non-transient computer readable storage medium including storing computer program, the computer program are operable to make calculating Machine executes the step some or all of as described in the embodiment of the present application first aspect or second aspect.The computer program produces Product can be a software installation packet.
Implement the embodiment of the present application, will have the advantages that:
After using above-mentioned equipment connection method and Related product, when equipment to be tested receives input by user first When link order, target hot spot is searched for, and establish network connection with target hot spot and obtain by target hot spot being equipment to be tested point The first network address matched, according to first network address code displaying image.Test equipment is scanned above-mentioned by scan module Coded image obtains the second network address, generates the second link order according to the second network address, and send to equipment to be tested Second link order.The second network address for including in the second link order of equipment pair to be tested is verified, in the second network When address is consistent with first network address, network connection is established with test equipment.That is, will by way of network connection Equipment to be tested and test equipment, which are established, to be connected, rather than using the data line of fixed interface, improves the flexibility and just of connection Profit.And authentication is carried out to the test equipment of connection, to improve the safety between equipment connection.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Wherein:
Figure 1A is a kind of structural schematic diagram of test equipment provided by the embodiments of the present application;
Figure 1B is that a kind of scene for the test platform that equipment to be tested is placed in test equipment provided by the embodiments of the present application is shown It is intended to;
Fig. 1 C are a kind of flow diagram of equipment connection method provided by the embodiments of the present application;
Fig. 1 D are a kind of schematic diagram of a scenario of code displaying image provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another equipment connection method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of equipment to be tested provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of another test equipment provided by the embodiments of the present application;
Fig. 5 is a kind of time diagram of equipment connection method provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of another kind equipment to be tested provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of another test equipment provided by the embodiments of the present application.
Specific implementation mode
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
Term " first ", " second " in the description and claims of this application and above-mentioned attached drawing etc. are for distinguishing Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap It includes for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Electronic equipment involved by the embodiment of the present application may include various handheld devices with wireless communication function, Mobile unit, wearable device, computing device or other processing equipments and various forms for being connected to radio modem User equipment (user equipment, UE), mobile station (mobile station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as equipment to be tested.
Equipment and test equipment to be tested involved by the embodiment of the present application belong to the scope of above-mentioned electronic equipment, and Test equipment is not construed as limiting test content for testing above-mentioned equipment to be tested, such as:Test communication The reliability and stability etc. of energy, system.
Wherein, test equipment 400 is as shown in Figure 1A, including scan module 410, for treating the volume shown by test equipment Code image is scanned, and can be used exclusively for the device of scanning encoding image, such as:Scanner can also be camera etc. The device that can be used for acquiring image, is sent to test equipment, test equipment solves the image of acquisition after acquiring image Code, to obtain the network address for including in coded image.The application is not construed as limiting the specific form of scan module.When When scan module moves, the accuracy of acquisition coded image can be improved.
Test equipment 400 further includes test platform 420, for placing equipment to be tested, as shown in Figure 1B, test platform Place equipment 300 to be tested in 420 position.
Wireless Fidelity (Wireless-Fidelity, Wi-Fi) is a kind of short range wireless transmission technology, can be in hundreds of English The radio signal of linking Internet is supported within the scope of ruler.For application, Wi-Fi, user to be used to first have to Wi- The user end apparatus of Fi compatibilities, is able to access that the place of Wi-Fi network is referred to as Wi-Fi Hotspot (access point, AP). That is hot spot is the wireless exchange board in Wi-Fi shared verifications, it is the access point that electronic equipment enters cable network.
Network address (network address) is the logical address that the node on internet has in a network.Interconnection Network be by interconnect with connecting node (being known as host and router) LAN (local area network, LAN it) forms.There are one physical address to be connected to media intervention control layer (media access for each equipment Control, MAC) layer address network, each node is there are one logic internetwork address.Because a network address can To give any one network equipment according to assignment of logical, so being called logical address.Network address can be generally divided into network number and Host number two parts, for identifying the equipment in network and the network.Using heterogeneous networks layer protocol, the description of network address is Different.The address Internet protocol (internet protocol, IP) then indicates network address with 32 binary systems, generally Just it is called IP address, it is one logical address of each network and each host assignment on internet, is shielded with this The difference of physical address.MAC Address is used for network communication, and network address is the logical address for determining network equipment position. It describes in detail below to the embodiment of the present application.
The embodiment of the present application provides a kind of equipment connection method and Related product, and equipment to be tested can be improved and set with test The flexibility of standby connection and convenience.
In a first aspect, the embodiment of the present application provides a kind of equipment connection method, the method is applied to equipment to be tested.Tool Body, as shown in Figure 1 C, a kind of equipment connection method, including:
101:Receive the first link order input by user.
In this application, the first link order (is to be measured for opening wireless lan function, and to preset range is searched for The range that can search for of examination equipment) in target hot spot be attached, to realize that the target hot spot to can be used to be distributed wireless Network.
The application is not construed as limiting for how user inputs networking instruction, can be the component chosen in specified page, defeated Specified gesture, character, acoustic information for entering etc..When equipment to be tested receives the first link order input by user, open Wireless lan function executes step 102.
Optionally, first link order input by user is received in the dialing page of talk application, described first connects It is * #8020# to connect instruction.
102:Network connection, which is established, with target hot spot obtains the first net by the target hot spot for equipment to be tested distribution Network address.
In this application, hot spot verification information has been prestored, i.e., at least one identification information for connecting hot spot and right The verification password answered.Wherein, identification information can be the physical label of the hot spot, have uniqueness.
For example, the identification information of the first hot spot is 001, and the identification information of second hot area is 002, the mark of third hot spot It is 003 to know information, then hot spot verification information is as shown in Table 1 below, stores testing for the first hot spot, second hot area and third hot spot Information is demonstrate,proved, wherein:The verification password of first hot spot is 123456789, and the verification password of second hot area is 987654321, third The verification password of hot spot is 888888888.
Table 1
Identification information Verify password
First hot spot 001 123456789
Second hot area 002 987654321
Third hot spot 003 888888888
Method of the application for storing hot spot verification information, is not construed as limiting, when can be equipment shutdown to be tested, test The data that personnel import to equipment to be tested;Can also be dedicated for connect wireless network application in user inputted with After the corresponding password to be verified of hot spot or equipment to be tested receive the first link order, if without the heat that can be directly connected to Point, then the password to be verified corresponding with hot spot that user is inputted in the searched page shown, and in password to be verified and verification When password is consistent, stored password to be verified as verification password.
In this application, target hot spot is the hot spot that network connection can be carried out with equipment to be tested, the i.e. equipment to be tested Permission with access target hot spot, that is to say, that the equipment to be tested is previously stored with the verification password of target hot spot, is connecing When receiving the first link order input by user, you can be attached automatically with target hot spot.
For example, equipment to be tested searches for hot spot in preset range, the first hot spot and the 4th hot spot can be obtained, due to waiting for The verification password of the first hot spot is prestored in test equipment, it is determined that target hot spot is the first hot spot, automatically hot with first Point establishes network connection.
Optionally, the hot spot in the equipment search preset range to be tested obtains multiple hot spots;The equipment to be tested It is chosen from the multiple hot spot according to pre-stored hot spot verification information multiple with reference to hot spot;The equipment to be tested obtains It is the multiple to obtain multiple network attribute informations with reference to each network attribute information with reference to hot spot in hot spot;It is described to be tested to set It is standby that the target hot spot is chosen from the multiple reference hot spot according to the multiple network attribute information.
Wherein, above-mentioned multiple hot spots are the hot spot in the preset range of equipment to be tested, are to be tested set with reference to hot spot The hot spot consistent with multiple hot spots in standby pre-stored hot spot verification information, that is to say, that equipment to be tested can with reference to hot spot Network connection is carried out, is attached without the automatic hot spot in multiple hot spots other than with reference to hot spot.
Network attribute information can be in signal strength, network stability, network bandwidth, network rate and safety etc. At least two dimensional informations.Wherein:Safety can verify the safe class of password, can also be connected electronic equipment Number etc..The corresponding network state with reference to hot spot is can determine by above-mentioned multiple network attribute informations.
Optionally, this is obtained with reference to hot spot with reference to each network attribute information with reference to hot spot in hot spot according to the multiple Evaluation be worth to multiple evaluations of estimate;Maximum value in the multiple evaluation of estimate is corresponding hot as the target with reference to hot spot Point.
In this application, which is obtained according to each network attribute information with reference to hot spot, it will be more The corresponding reference hot spot of maximum value in a evaluation of estimate is as target hot spot, then the target hot spot is connecting in preset range The best hot spot of the network state of hot spot, you can the stability for improving network, to avoid loss of data.
The calculating of evaluation of estimate is not construed as limiting, can corresponding preset weights of equipment each network attribute information in advance, example Such as:Signal strength is 0.5, safety 0.2, network stability 0.1, network bandwidth 0.1, network rate 0.1, respectively with network Attribute information is weighted to obtain the corresponding evaluation of estimate of each network attribute information, so that it is determined that largest evaluation value, it will most The corresponding reference hot spot of evaluation of estimate greatly can avoid being omitted due to data caused by suspension, net can be improved as the target hot spot The stability of network and safety.
In this application, first network address can be IP address.When equipment to be tested and target hot spot establish network connection When, which is that equipment to be tested distributes a network address, and the target hot spot can be used to be distributed for equipment to be tested Network.
As an example it is assumed that the IP address of target hot spot is 192.168.2.4, if equipment to be tested is established with target hot spot Connection, then it is 192.168.253.2 that target hot spot, which is the IP address of equipment distribution to be tested, i.e. first network address is 192.168.253.2。
103:According to the first network address code displaying image.
In this application, coded image can be bar code or Quick Response Code, or more complicated image, by first network Location is encoded to obtain coded image, and since coded image rather than first network address is shown, network address can be improved Safety avoids disabled user from obtaining the network address of equipment to be tested, to access target hot spot, influences equipment to be tested Network speed and internet security.
The display page of equipment to be tested is in addition to the coded image, with may also display the mark, port numbers, IP of target hot spot The relevant informations such as location, verification password, safety, signal strength, connection status, connection duration, are not limited thereto.
For example, as shown in figure iD, it is assumed that specified page is the dialing page of talk application, and the first link order is * # 8020#.When user is after the dialing page of talk application inputs * #8020#, if target hot spot is the first hot spot, when with first When hot spot establishes network connection, equipment display target hot spot to be tested is that the equipment to be tested distributes what first network address generated Image in 2 D code.
104:Receive the second link order that test equipment is sent.
105:Verify the second network address it is consistent with the first network address when, establish net with the test equipment Network connects.
In this application, the second link order scans the coded image by scan module by the test equipment and obtains The second network address generate.That is the second link order includes the relevant information of the second network address, for being set to be tested Preparation send connection request, when equipment to be tested receives the second link order of test equipment transmission, to the second link order In include the second network address verified, when the second network address is consistent with first network address, equipment to be tested with Test equipment establishes network connection, and to which test equipment and equipment to be tested are accessed the same target hot spot, therefore, test is set Equipment standby and to be tested can carry out data transmission.That is, equipment to be tested is set with test by way of network connection It is standby to establish connection, rather than using the data line of fixed interface, improve flexibility and the convenience of connection.And equipment pair to be tested The test equipment of connection carries out authentication, to improve the safety between equipment connection.
And test equipment can be attached by method provided herein and multiple equipment to be tested, it is to be tested to set It is standby to be also attached by method provided herein and multiple test equipments, to improve testing efficiency.
Optionally, after the described and test equipment establishes network connection, the method further includes:Receive the survey Try the first test instruction that equipment is sent;It is tested to obtain test result according to the first test instruction;According to the survey Test result shows the second coded image.
Wherein, the first test instruction is used to indicate equipment to be tested and is tested for the property;Second coded image is to be tested The coded image that equipment is generated according to test result, i.e., encode test result, can be improved test result safety and The convenience of data transmission.
That is, after test equipment is connect with equipment to be tested, equipment to be tested is sent according to test equipment First test instruction is tested for the property, and converts test result to the second coded image, test equipment is obtained by scan module The test result for taking the second coded image to include, to improve the facility of safety and data transmission between equipment connection Property.
Second aspect, the embodiment of the present application provide another equipment connection method, which is applied to test Equipment, the test equipment include scan module.Specifically, as shown in Fig. 2, this method be applied to test equipment, including:
201:The coded image that test equipment is shown is treated by scan module to be scanned to obtain the second network address.
Wherein, coded image is generated according to target hot spot for the first network address of its distribution by the equipment to be tested, Details are not described herein.Scan module is treated the coded image that test equipment is shown and is scanned, and is parsed to coded image Obtain the second network address.
Optionally, as shown in Figure 1A, test equipment includes test platform, and the test equipment detects the equipment to be tested Whether the test platform is placed in, if so, it is aobvious to the equipment to be tested by the scan module to execute the test equipment The step of coded image shown is scanned to obtain the second network address.
That is, when test equipment detects that equipment to be tested is placed in test platform, treat what test equipment was shown Coded image is scanned, and otherwise, without scanning, improves the convenience of operation.
The application detects the method whether equipment to be tested is placed in test platform for test equipment and is not construed as limiting, Ke Yitong It crosses range sensor (proximity sensor) and has detected whether that electronic equipment is close, and obtain the device identification of the electronic equipment, root Determine whether measurement equipment to be checked according to its device identification.
202:The second link order is generated according to second network address information.
203:Second link order is sent to the equipment to be tested.
204:The device authentication to be tested go out second network address it is consistent with the first network address when, with The equipment to be tested establishes network connection.
In this application, the second link order is generated by test equipment according to the second network address, for being set to be tested Preparation send connection request.Specifically, bridge (android debug bridge, adb) can be debugged by the Android in test equipment Connection connect orders in tool, grammer are:Adb connect IP address:Port numbers, as the IP of equipment to be tested When location is 192.168.0.100, adb connect192.168.0.100 can be passed through:6776 orders connect equipment to be tested.
When equipment to be tested receives the second link order of test equipment transmission, to including in the second link order Second network address is verified, when the second network address is consistent with first network address, equipment and test equipment to be tested Establish network connection, that is to say, that test equipment and equipment to be tested access the same target hot spot, therefore, test equipment and Equipment to be tested can carry out data transmission.That is, equipment to be tested is built with test equipment by way of network connection Vertical connection, rather than using the data line of fixed interface, improve flexibility and the convenience of connection.And equipment to be tested is to connection Test equipment carry out authentication, to improve equipment connection between safety.
And test equipment can be attached by method provided herein and multiple equipment to be tested, it is to be tested to set It is standby to be also attached by method provided herein and multiple test equipments, to improve testing efficiency.
Optionally, after the described and equipment to be tested establishes network connection, the method further includes:To the survey It tries equipment and sends the first test instruction;The second coded image that the equipment to be tested is shown is carried out by the scan module Scanning obtains test result;The test result is analyzed, the second test instruction is generated or terminates test.
Wherein, the first test instruction is used to indicate equipment to be tested and is tested for the property;Second test instruction sets for test The test that the standby test result according to the first test instruction regenerates instructs, that is, is used to indicate equipment to be tested and further carries out Performance test;Second coded image is the coded image that equipment to be tested is generated according to test result, i.e., carries out test result Coding, can be improved the safety of test result and the convenience of data transmission.
That is, after test equipment is connect with equipment to be tested, equipment to be tested is sent according to test equipment Test instruction is tested for the property, and converts test result to the second coded image, and test equipment obtains the by scan module The test result that two coded images include improves to generate next test instruction or terminate test between equipment connection Safety and data transmission convenience.
The third aspect, the embodiment of the present application provide a kind of equipment to be tested, as shown in figure 3, above-mentioned equipment to be tested 300 is wrapped Receiving unit 301, connection unit 302, display unit 305 are included, wherein:
Receiving unit 301, for receiving the first link order input by user;
Connection unit 302 obtains by the target hot spot being described to be tested for establishing network connection with target hot spot The first network address of equipment distribution;
Display unit 303, for showing the coded image generated by the first network address;
The receiving unit 301 is additionally operable to receive the second link order that test equipment is sent, second link order The second network address that the coded image obtains is scanned by the test equipment by scan module to generate;
The connection unit 302 is additionally operable to verify second network address consistent with the first network address When, establish network connection with the test equipment.
Optionally, the equipment to be tested 300 further includes:
Search unit 304, the hot spot for searching in preset range obtain multiple hot spots;
Selection unit 305, for choosing multiple ginsengs from the multiple hot spot according to pre-stored hot spot verification information Examine hot spot;Obtain it is the multiple obtain multiple network attribute informations with reference to each network attribute information with reference to hot spot in hot spot, The multiple network attribute information includes at least following two:Signal strength, network stability, network bandwidth, network rate and Safety;According to the multiple network attribute information the target hot spot is chosen from the multiple reference hot spot.
Optionally, the selection unit 305 is specifically used for according to the multiple with reference to each net with reference to hot spot in hot spot Network attribute information obtains the evaluation of estimate for referring to hot spot, obtains multiple evaluations of estimate;By the maximum value pair in the multiple evaluation of estimate The reference hot spot answered is as the target hot spot.
In equipment to be tested 300 as shown in Figure 3, when receiving unit 301 receives the first link order input by user, Connection unit 302 establishes network connection with obtaining the first network distributed for equipment to be tested by target hot spot with target hot spot Location, display unit 303 show the coded image generated by first network address.When receiving unit 301 receives test equipment hair When the second link order sent, connection unit 303 verifies the second network address for including in the second link order, When two network address are consistent with first network address, network connection is established with test equipment.That is, passing through network connection Equipment to be tested and test equipment are established and are connected by mode, rather than using the data line of fixed interface, improve the flexible of connection Property and convenience.And authentication is carried out to the test equipment of connection, to improve the safety between equipment connection.
Fourth aspect, the embodiment of the present application provide a kind of test equipment, as shown in figure 4, above-mentioned test equipment includes scanning Unit 401, generation unit 402, transmission unit 403 and connection unit 404, wherein:
Scanning element 401 is scanned for treating the coded image that test equipment is shown by scan module, obtains Two network address, the coded image are given birth to according to target hot spot for the first network address of its distribution by the equipment to be tested At;
Generation unit 402, for generating the second link order according to second network address information;
Transmission unit 403, for sending second link order to the equipment to be tested;
Connection unit 404, for going out second network address and the first network in the device authentication to be tested When address is consistent, network connection is established with the equipment to be tested.
Optionally, the test equipment 400 further includes:
Detection unit 405, for detecting whether the equipment to be tested is placed in the test platform, if so, described in calling Scanning element 401.
In test equipment 400 as shown in Figure 4, scanning element 401 scans above-mentioned coded image by scan module and obtains To the second network address, generation unit 402 generates the second link order according to the second network address, and transmission unit 403 is to be measured It tries equipment and sends the second link order, connection unit 404 goes out the second network address with first network in device authentication to be tested When location is consistent, network connection is established with equipment to be tested.That is, by equipment to be tested and survey by way of network connection It tries equipment and establishes connection, rather than using the data line of fixed interface, improve flexibility and the convenience of connection.And to connection Test equipment carries out authentication, to improve the safety between equipment connection.
Fig. 5 is please referred to, Fig. 5 is a kind of time diagram of equipment connection method provided by the embodiments of the present application.Such as Fig. 5 institutes Show, including:
501:Equipment to be tested receives the first link order input by user.
502:The equipment to be tested establishes network connection with target hot spot and obtains by the target hot spot being described to be measured Try the first network address of equipment distribution.
Optionally, the method further includes:
Hot spot in the equipment search preset range to be tested obtains multiple hot spots;It is verified according to pre-stored hot spot Information is chosen multiple with reference to hot spot from the multiple hot spot;It obtains the multiple with reference to each network with reference to hot spot in hot spot Attribute information obtains multiple network attribute informations, and the multiple network attribute information includes at least following two:Signal strength, net Network stability, network bandwidth, network rate and safety;According to the multiple network attribute information hot spot is referred to from the multiple It is middle to choose the target hot spot.
Optionally, the equipment to be tested is chosen according to the multiple network attribute information from the multiple reference hot spot The target hot spot, including:
The equipment to be tested should according to the multiple obtained with reference to each network attribute information with reference to hot spot in hot spot With reference to the evaluation of estimate of hot spot, multiple evaluations of estimate are obtained;Using the maximum value in the multiple evaluation of estimate it is corresponding with reference to hot spot as The target hot spot.
503:The equipment to be tested is according to the first network address code displaying image.
504:Test equipment is scanned to obtain by the coded image that scan module shows the equipment to be tested Two network address.
Optionally, the test equipment includes test platform, in the test equipment by the scan module to described Before the coded image that equipment to be tested is shown is scanned to obtain the second network address, the method further includes:
Detect whether the equipment to be tested is placed in the test platform, if so, executing the test equipment described in The step of coded image that scan module shows the equipment to be tested is scanned to obtain the second network address.
505:The test equipment generates the second link order according to second network address information.
506:The test equipment sends second link order to the equipment to be tested.
507:The equipment to be tested verify second network address it is consistent with the first network address when, with The test equipment establishes network connection.
It is appreciated that when equipment to be tested receives the first link order input by user, network is established with target hot spot Connection is obtained by the first network address that target hot spot is equipment to be tested distribution, according to first network address code displaying figure Picture.Test equipment scans above-mentioned coded image by scan module and obtains the second network address, is given birth to according to the second network address The second link order is sent at the second link order, and to equipment to be tested.Include in the second link order of equipment pair to be tested The second network address verified, when the second network address is consistent with first network address, network is established with test equipment Connection.It connects that is, being established equipment to be tested and test equipment by way of network connection, rather than is connect using fixation The data line of mouth, improves flexibility and the convenience of connection.And authentication is carried out to the test equipment of connection, to improve Safety between equipment connection.
The embodiment of the present application also provides another equipment to be tested, as shown in fig. 6, the equipment to be tested 600 includes:Place Manage device 610, memory 620, communication interface 630 and one or more programs 640.Wherein, one or more programs 640 are deposited Storage is configured to be executed by processor 610 in memory 620, and described program 640 includes for executing as in first aspect The instruction of some or all of either method of record step.
The embodiment of the present application also provides another test equipment, as shown in fig. 7, the test equipment 700 includes:Processor 710, memory 720, communication interface 730 and one or more programs 740.Wherein, one or more programs 740 are stored in In memory 720, and it is configured to be executed by processor 710, described program 740 includes for executing as described in second aspect Some or all of either method step instruction.
The embodiment of the present application also provides a kind of computer storage media, wherein the computer storage media is stored for depositing Computer program is stored up, which makes computer execute such as some or all of above-mentioned either method step.
The embodiment of the present application also provides a kind of computer program product, and computer program product includes storing computer journey The non-transient computer readable storage medium of sequence, computer program are operable to that computer is made to execute such as above-mentioned either method Part or all of step.The computer program product can be a software installation packet.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, unit division, only a kind of logic Function divides, and formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can collect At to another system, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling Close or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be with It is electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, and be shown as unit Component may or may not be physical unit, you can be located at a place, or may be distributed over multiple networks On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of software program module.
If integrated unit is realized and when sold or used as an independent product in the form of software program module, can To be stored in a computer-readable access to memory.Based on this understanding, the technical solution of the application is substantially in other words The all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Come, which is stored in a memory, including some instructions are used so that a computer equipment (can be Personal computer, server or network equipment etc.) execute each embodiment method of the application all or part of step.And it is preceding The memory stated includes:USB flash disk, read-only memory (read-only memory, ROM), random access memory (random Access memory, RAM), mobile hard disk, the various media that can store program code such as magnetic disc or CD.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer-readable memory, memory May include:Flash disk, ROM, RAM, disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications There is change place, to sum up, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of equipment connection method, which is characterized in that it is applied to equipment to be tested, including:
Receive the first link order input by user;
Network connection is established with target hot spot, with obtaining the first network distributed for the equipment to be tested by the target hot spot Location;
According to the first network address code displaying image;
The second link order that test equipment is sent is received, second link order passes through scan module by the test equipment The second network address that the coded image obtains is scanned to generate;
Verify second network address it is consistent with the first network address when, with the test equipment establish network connect It connects.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
The hot spot in preset range is searched for, multiple hot spots are obtained;
It is chosen from the multiple hot spot according to pre-stored hot spot verification information multiple with reference to hot spot;
It obtains the multiple with reference to each network attribute information with reference to hot spot in hot spot, obtains multiple network attribute informations, institute Multiple network attribute informations are stated including at least following two:Signal strength, network stability, network bandwidth, network rate and peace Quan Xing;
According to the multiple network attribute information the target hot spot is chosen from the multiple reference hot spot.
3. according to the method described in claim 2, it is characterized in that, it is described according to the multiple network attribute information from described more The target hot spot is chosen in a reference hot spot, including:
The evaluation of estimate for referring to hot spot is obtained with reference to each network attribute information with reference to hot spot in hot spot according to the multiple, is obtained To multiple evaluations of estimate;
Using the corresponding reference hot spot of the maximum value in the multiple evaluation of estimate as the target hot spot.
4. a kind of equipment connection method, which is characterized in that be applied to test equipment, the test equipment includes scan module, institute The method of stating includes:
The coded image that test equipment is shown is treated by the scan module to be scanned, and obtains the second network address, it is described Coded image is generated according to target hot spot for the first network address of its distribution by the equipment to be tested;
The second link order is generated according to second network address information;
Second link order is sent to the equipment to be tested;
The device authentication to be tested go out second network address it is consistent with the first network address when, and it is described to be measured Examination equipment establishes network connection.
5. according to the method described in claim 4, it is characterized in that, the test equipment includes test platform, pass through described The coded image that the scan module shows the equipment to be tested is scanned, described before obtaining the second network address Method further includes:
Detect whether the equipment to be tested is placed in the test platform, if so, by the scan module to institute described in executing State the step of coded image that equipment to be tested is shown is scanned, obtains the second network address.
6. a kind of equipment to be tested, which is characterized in that including:
Receiving unit, for receiving the first link order input by user;
Connection unit obtains by the target hot spot being the equipment to be tested point for establishing network connection with target hot spot The first network address matched;
Display unit, for showing the coded image according to the first network address;
The receiving unit is additionally operable to receive the second link order that test equipment is sent, and second link order is by described Test equipment scans the second network address that the coded image obtains by scan module and generates;
The connection unit, be additionally operable to verify second network address it is consistent with the first network address when, with institute It states test equipment and establishes network connection.
7. a kind of test equipment, which is characterized in that the test equipment includes scan module, and the test equipment further includes:
Scanning element is scanned for treating the coded image that test equipment is shown by the scan module, obtains second Network address, the coded image are generated according to target hot spot for the first network address of its distribution by the equipment to be tested;
Generation unit, for generating the second link order according to second network address information;
Transmission unit, for sending second link order to the equipment to be tested;
Connection unit, it is consistent with the first network address for going out second network address in the device authentication to be tested When, establish network connection with the equipment to be tested.
8. a kind of equipment to be tested, which is characterized in that including processor, memory, communication interface and one or more program, Wherein, one or more of programs are stored in the memory, and are configured to be executed by the processor, the journey Sequence includes that the instruction of the step in any one of 1-3 methods is required for perform claim.
9. a kind of test equipment, which is characterized in that including processor, memory, communication interface and one or more program, In, one or more of programs are stored in the memory, and are configured to be executed by the processor, described program It include the instruction that the step in 4 or 5 methods is required for perform claim.
10. a kind of computer readable storage medium, which is characterized in that it is used to store computer program, wherein the computer Program makes computer execute method as described in any one in claim 1-5.
CN201810141394.0A 2018-02-09 2018-02-09 Equipment connection method and Related product Pending CN108307526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810141394.0A CN108307526A (en) 2018-02-09 2018-02-09 Equipment connection method and Related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810141394.0A CN108307526A (en) 2018-02-09 2018-02-09 Equipment connection method and Related product

Publications (1)

Publication Number Publication Date
CN108307526A true CN108307526A (en) 2018-07-20

Family

ID=62865450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810141394.0A Pending CN108307526A (en) 2018-02-09 2018-02-09 Equipment connection method and Related product

Country Status (1)

Country Link
CN (1) CN108307526A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109275126A (en) * 2018-08-09 2019-01-25 Oppo(重庆)智能科技有限公司 Electronic device connection method, electronic device and computer readable storage medium
CN109684146A (en) * 2018-12-28 2019-04-26 北京旷视科技有限公司 Upper and lower electric test method, device, system and processing equipment
CN111770212A (en) * 2020-07-16 2020-10-13 广州视源电子科技股份有限公司 Network access method and device and computer equipment
CN113098869A (en) * 2021-04-01 2021-07-09 上海创米科技有限公司 Production test method, wireless intelligent device, upper computer, electronic device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212463A (en) * 2006-12-26 2008-07-02 联想(北京)有限公司 Dynamic IP address allocation method, system, mobile node, and access point
CN105472427A (en) * 2015-11-18 2016-04-06 福建星网锐捷通讯股份有限公司 Method and system for interaction between electronic device and terminal
CN106455122A (en) * 2016-10-31 2017-02-22 努比亚技术有限公司 Information processing method and mobile terminal
CN106815649A (en) * 2017-01-25 2017-06-09 北京奇虎科技有限公司 A kind of terminal recovery method, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212463A (en) * 2006-12-26 2008-07-02 联想(北京)有限公司 Dynamic IP address allocation method, system, mobile node, and access point
CN105472427A (en) * 2015-11-18 2016-04-06 福建星网锐捷通讯股份有限公司 Method and system for interaction between electronic device and terminal
CN106455122A (en) * 2016-10-31 2017-02-22 努比亚技术有限公司 Information processing method and mobile terminal
CN106815649A (en) * 2017-01-25 2017-06-09 北京奇虎科技有限公司 A kind of terminal recovery method, device and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109275126A (en) * 2018-08-09 2019-01-25 Oppo(重庆)智能科技有限公司 Electronic device connection method, electronic device and computer readable storage medium
CN109684146A (en) * 2018-12-28 2019-04-26 北京旷视科技有限公司 Upper and lower electric test method, device, system and processing equipment
CN111770212A (en) * 2020-07-16 2020-10-13 广州视源电子科技股份有限公司 Network access method and device and computer equipment
CN113098869A (en) * 2021-04-01 2021-07-09 上海创米科技有限公司 Production test method, wireless intelligent device, upper computer, electronic device and medium
CN113098869B (en) * 2021-04-01 2024-01-05 上海创米数联智能科技发展股份有限公司 Production test method, wireless intelligent device, upper computer, electronic device and medium

Similar Documents

Publication Publication Date Title
CN108307526A (en) Equipment connection method and Related product
CN108667699B (en) Method and device for interconnecting terminal equipment and gateway equipment
CN106559783A (en) A kind of authentication method to WIFI network, device and system
CN104809046B (en) A kind of application program networking control method and application program networking control device
CN104219626B (en) A kind of identity authentication method and device
CN108924818A (en) Mobile subscriber identification method based on SIM card and equipment related parameters
CN107948287B (en) Medical services authenticity verification methods based on Internet of Things
CN104540135A (en) Safety access method of wireless network, device and terminal
CN108093097A (en) The connection method of camera and home gateway and home gateway
CN107135506A (en) A kind of portal authentication methods, apparatus and system
CN107682433A (en) Information pushing method, device, equipment and medium
CN109040034B (en) User identity information processing method and device based on virtual information
CN108271230A (en) A kind of method and device for obtaining mobile management information, computer readable storage medium
CN104268165B (en) A kind of online query method and apparatus
CN110750088B (en) Data detection method and related product
CN106204261A (en) A kind of information processing method, terminal and server
CN104899537B (en) A kind of data transmission method and electronic equipment
CN112866101A (en) Equipment networking method and device, electronic equipment and storage medium
CN106569915B (en) A kind of data back up method and data backup server
CN106412903A (en) Mobile terminal data transmission method and device
CN108076460B (en) Method and terminal for authentication
CN105187377A (en) Data processing method, data processing device, data access method and data access device
CN112511441A (en) Message processing method and device
CN112565005B (en) Network serial line detection method and device, equipment and medium
CN106357664B (en) Vulnerability detection method and device

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

Application publication date: 20180720