Summary of the invention
Various aspects of the present invention provide a kind of device identification method and relevant device, for reducing user-identification device
Time promotes user experience.
In order to solve the above technical problems, the following technical schemes are provided:
One aspect of the present invention provides a kind of device identification method, comprising:
Show the device name of all connectable devices in current network;
If detecting, user has selected target connectable device from above-mentioned all connectable devices:
Read the device-dependent message of target connectable device, wherein above-mentioned target connectable device is above-mentioned user choosing
The connectable device selected, the device-dependent message of above-mentioned target connectable device include: the last time of above-mentioned target connectable device
At least one of on-line time and the last time downtime of above-mentioned target connectable device;
Show the device-dependent message of above-mentioned target connectable device.
Based on first aspect present invention, in the first possible implementation, the above-mentioned above-mentioned target of display, which can connect, to be set
Standby device-dependent message further comprises later:
If detecting, user carries out alias to above-mentioned target connectable device:
Obtain the new equipment title of the above-mentioned target connectable device of user's input;
The new equipment title of above-mentioned target connectable device is recorded, and makes the new equipment title of above-mentioned target connectable device
It is associated with the original equipment title of above-mentioned target connectable device.
The first possible implementation based on first aspect present invention, in the second possible implementation, on
The new equipment title for recording above-mentioned target connectable device is stated, includes: later
Read and show the new equipment title of above-mentioned target connectable device.
The first possible implementation based on first aspect present invention, in the third possible implementation, on
The new equipment title for recording above-mentioned target connectable device is stated, includes: later
When above-mentioned target connectable device is selected again, the new equipment of above-mentioned target connectable device is read and shown
Title.
Based on first aspect present invention, in the fourth possible implementation,
The device-dependent message of the above-mentioned above-mentioned target connectable device of display further comprises later:
If detecting, user renames above-mentioned target connectable device:
Obtain the new equipment title of the above-mentioned target connectable device of user's input;
The original equipment title of above-mentioned target connectable device is replaced using the new equipment title of above-mentioned target connectable device.
Second aspect of the present invention provides a kind of equipment applied to peer-to-peer network, comprising:
Display unit, for showing the device name of all connectable devices in current network;
Reading unit detects that user has selected mesh from all connectable devices that above-mentioned display unit is shown for working as
When marking connectable device, the device-dependent message of target connectable device is read, wherein above-mentioned target connectable device is above-mentioned
The connectable device of user's selection, the device-dependent message of above-mentioned target connectable device includes: above-mentioned target connectable device
Last time on-line time and at least one of the last time downtime of above-mentioned target connectable device;
Above-mentioned display unit is also used to show the equipment correlation letter for the target connectable device that above-mentioned reading unit is read
Breath.
Based on second aspect of the present invention, in the first possible implementation,
Above equipment further comprises:
Acquiring unit, for when detecting that user carries out alias to target connectable device, obtaining the upper of user's input
State the new equipment title of target connectable device;
Recording unit, for recording the new equipment title for the above-mentioned target connectable device that above-mentioned acquiring unit obtains, and
Keep the new equipment title of above-mentioned target connectable device associated with the original equipment title of above-mentioned target connectable device.
The first possible implementation based on second aspect of the present invention, in the second possible implementation, on
It states reading unit to be also used to: reading the new equipment title of above-mentioned target connectable device;
Above-mentioned display unit is also used to: showing the new equipment name for the above-mentioned target connectable device that above-mentioned reading unit is read
Claim.
The first possible implementation based on second aspect of the present invention, in the third possible implementation, on
It states reading unit to be also used to: when above-mentioned target connectable device is selected again, reading the new of above-mentioned target connectable device
Device name;
Above-mentioned display unit is also used to: showing the new equipment name for the above-mentioned target connectable device that above-mentioned reading unit is read
Claim.
Based on second aspect of the present invention, in the fourth possible implementation,
Above equipment further comprises:
Acquiring unit, for it is defeated to obtain user when detecting that user renames above-mentioned target connectable device
The new equipment title of the above-mentioned target connectable device entered;
Unit is renamed, the new equipment title of the above-mentioned target connectable device for being obtained using above-mentioned acquiring unit is replaced
Change the original equipment title for stating target connectable device.
Therefore the embodiment of the present invention reads when user chooses a connectable device and shows that this can to user
The device-dependent message for connecting equipment, due to including the last time on-line time sum of the connectable device in device-dependent message
At least one of last time downtime, therefore, user can be easier to identify by device-dependent message chosen can
Connection equipment is that its equipment for wanting connection effectively increases use to greatly reduce the time of user-identification device
Family Experience Degree.
Specific embodiment
The embodiment of the invention provides a kind of device identification method and relevant devices.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality
Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field
Art personnel each other embodiments obtained without making creative work belong to the model that the present invention protects
It encloses.
Technical solution provided in an embodiment of the present invention is applied in peer-to-peer network (such as Wi-Fi network, blueteeth network).?
In peer-to-peer network, each participation equipment has same ability, can initiate a communication session, the participation equipment of peer-to-peer network
Above-mentioned other shared resources for participating in setting in equipment can be obtained by establishing connection with other participation equipment in network,
Correspondingly, above-mentioned other participation equipment are after participation equipment connection, it is also possible to obtain what is set in the participation equipment is total to
Enjoy resource.In embodiments of the present invention, above-mentioned participation equipment refers to all equipment that can be realized peer-to-peer network connection, such as:
Participating in equipment can be the electronic equipment (such as mobile phone, earphone, tablet computer, notebook) comprising bluetooth module, in another example, ginseng
It can be the personal computer comprising universal plug and play (UpnP, Universal Plug and Play) structure with equipment
(PC, personal computer), smart machine etc..Below the present invention in embodiment, be in peer-to-peer network wherein
One participation equipment is illustrated as executing subject, for that in embodiment below, will be used as and execute convenient for distinguishing and understanding
The participation equipment of main body is described as user equipment, will be in same peer-to-peer network with the above-mentioned participation equipment as executing subject
Other participation equipment be described as connectable device, it should be noted that in embodiment below, user equipment refers in particular to band bounded
The participation equipment (such as mobile phone, tablet computer, notebook, PC participate in equipment) of face display function, connectable device can have
Interface display function can also be not construed as limiting herein without interface display function.
A kind of device identification method provided in an embodiment of the present invention is described below, referring to Fig. 1, the present invention is implemented
Device identification method in example, comprising:
101, the device name of all connectable devices in current network is shown;
In embodiments of the present invention, when user equipment is in a certain peer-to-peer network, user equipment will scan current net
Connectable device present in network, and show the device name for all connectable devices being in current network, in order to
User on a user device selects connectable device.
If 102, detecting, user has selected target connectable device on a user device, reads target connectable device
Device-dependent message;
Wherein, above-mentioned target connectable device refers to the connectable device that user selects on a user device.
In embodiments of the present invention, above-mentioned user equipment allows user to be only capable of shown by the step 101 in synchronization
A connectable device is selected in all connectable devices, i.e. synchronization target device can only be one;Alternatively, in another reality
In existing mode, above-mentioned user equipment also can permit user in synchronization all connectable devices shown by the step 101
The middle more than two connectable devices of selection, i.e. synchronization target device can be two or more, be not construed as limiting herein.
When user equipment detects that user has selected one or more from all connectable devices shown by step 101
When a connectable device, user equipment reads the device-dependent message of target connectable device.Wherein, target connectable device
Device-dependent message includes: last time on-line time (the i.e. last target connectable device normal work of target connectable device
Total duration) and the last time downtime of target connectable device (i.e. last target connectable device cisco unity malfunction is delayed
At least one of the total duration of machine).
Further, the device-dependent message of above-mentioned target connectable device can also include following information in one or
It is multiple: the current internetwork-ing association of the equipment identities identifier (i.e. device id) of target connectable device, target connectable device
Discuss the address (IP, Internet Protocol) and the address medium access control (M AC, Media Access Control) etc..
103, the device-dependent message of above-mentioned target connectable device is shown;
User equipment shows the device-dependent message for the target connectable device that step 102 is read.
It should be noted that in embodiments of the present invention, selection of the user equipment real-time detection user to connectable device
Situation, when user chooses one or two other connectable devices again, user equipment all will choose again user
Connectable device (i.e. new target connectable device) executes step 102~103.It illustrates, it is assumed that originally user is in user
The connectable device selected in equipment is equipment A, and when user has selected equipment B again on a user device, user equipment will be right
Equipment B executes step 102~103.
Therefore the embodiment of the present invention reads when user chooses a connectable device and shows that this can to user
The device-dependent message for connecting equipment, due to including the last time on-line time of the connectable device in device-dependent message and upper
At least one of secondary downtime, therefore, user can be easier to identify that is chosen connects by device-dependent message
Connecing equipment is that its equipment for wanting connection effectively improves user to greatly reduce the time of user-identification device
Experience Degree.
Further, on the basis of embodiment shown in Fig. 1, further target can also be connected on a user device and set
The standby alias that carries out is described the device identification method in the embodiment of the present invention with another embodiment below with reference to Fig. 2:
201, the device name of all connectable devices in current network is shown;
In embodiments of the present invention, when user equipment is in a certain peer-to-peer network, user equipment will scan current net
Connectable device present in network, and show the device name for all connectable devices being in current network, in order to
User on a user device selects connectable device.
If 202, detecting, user has selected target connectable device on a user device, reads target connectable device
Device-dependent message;
Wherein, above-mentioned target connectable device refers to the connectable device that user selects on a user device.
In embodiments of the present invention, above-mentioned user equipment allows user to be only capable of shown by the step 201 in synchronization
A connectable device is selected in all connectable devices, i.e. synchronization target device can only be one;Alternatively, in another reality
In existing mode, above-mentioned user equipment also can permit user in synchronization all connectable devices shown by the step 201
The middle more than two connectable devices of selection, i.e. synchronization target device can be two or more, be not construed as limiting herein.
When user equipment detects that user has selected one or more from all connectable devices shown by step 201
When a connectable device, user equipment reads the device-dependent message of target connectable device.Wherein, target connectable device
Device-dependent message includes: last time on-line time (the i.e. last target connectable device normal work of target connectable device
Total duration) and the last time downtime of target connectable device (i.e. last target connectable device cisco unity malfunction is delayed
At least one of the total duration of machine).
Further, the device-dependent message of above-mentioned target connectable device can also include following information in one or
It is multiple: the current IP address of the equipment identities identifier (i.e. device id) of the connectable device, the connectable device and M AC
Location etc..
203, the device-dependent message of above-mentioned target connectable device is shown;
User equipment shows the device-dependent message for the target connectable device that step 202 is read.
If 204, detecting, user carries out alias to target connectable device, and the target for obtaining user's input, which can connect, to be set
Standby new equipment title.
205, the new equipment title of the target connectable device of user alias is recorded, and makes the new of the target connectable device
Device name is associated with the original equipment title of the target connectable device;
User equipment records the new equipment title of the target connectable device of user alias, by the target connectable device
New equipment title and the original equipment title of the target connectable device are associated, to show that the target can on a user device
The new equipment title of equipment is connected, alternatively, reading the target connectable device when the target connectable device is selected again
New equipment title and show on a user device.
In one implementation, as shown in the step 305 in Fig. 3 (the step 301 of Fig. 3~304 are referred to Fig. 2
Description in step 201~204, details are not described herein again), the target connectable device that user equipment obtains step 304 it is new
Device name is recorded in local (i.e. on user equipment), and at this on the ground by the new equipment title of the target connectable device and this
The original equipment title of target connectable device is associated, for example, the new equipment for the target connectable device that step 304 is obtained
Name is referred to as the canonical name of the original equipment title of the target connectable device in local.Certainly, it in other implementations, uses
The new equipment title for the target connectable device that family equipment can also be obtained step 304 by network or other communication modes
It is recorded on server or other communication apparatus, is not construed as limiting herein.
It should be noted that in embodiments of the present invention, selection of the user equipment real-time detection user to connectable device
Situation, when user chooses one or two other connectable devices again, user equipment all will choose again user
Connectable device (i.e. new target connectable device) executes step 202~205.
Therefore the embodiment of the present invention reads when user chooses a connectable device and shows that this can to user
The device-dependent message for connecting equipment, due to including the last time on-line time of the connectable device in device-dependent message and upper
At least one of secondary downtime, therefore, user can be easier to identify that is chosen connects by device-dependent message
Connecing equipment is that its equipment for wanting connection effectively improves user to greatly reduce the time of user-identification device
Experience Degree.Further, the embodiment of the invention also provides the machines for carrying out alias to the connectable device chosen on a user device
System, so that the identification of connectable device is more intuitive, further reduces the time of user-identification device, makes user's body
Degree of testing further is promoted.
Further, it on the basis of embodiment shown in Fig. 1, can also further be connected on a user device to what is chosen
Equipment is renamed, and below with reference to Fig. 4, is retouched with another embodiment to the device identification method in the embodiment of the present invention
It states:
401, the device name of all connectable devices in current network is shown;
In embodiments of the present invention, when user equipment is in a certain peer-to-peer network, user equipment will scan current net
Connectable device present in network, and show the device name for all connectable devices being in current network, in order to
User on a user device selects connectable device.
If 402, detecting, user has selected target connectable device on a user device, reads target connectable device
Device-dependent message;
Wherein, above-mentioned target connectable device refers to the connectable device that user selects on a user device.
In embodiments of the present invention, above-mentioned user equipment allows user to be only capable of shown by the step 401 in synchronization
A connectable device is selected in all connectable devices, i.e. synchronization target device can only be one;Alternatively, in another reality
In existing mode, above-mentioned user equipment also can permit user in synchronization all connectable devices shown by the step 401
The middle more than two connectable devices of selection, i.e. synchronization target device can be two or more, be not construed as limiting herein.
When user equipment detects that user has selected one or more from all connectable devices shown by step 401
When a connectable device, user equipment reads the device-dependent message of target connectable device.Wherein, target connectable device
Device-dependent message includes: that (the i.e. last connectable device works normally for the last time on-line time of target connectable device
Total duration) and target connectable device last time downtime (the i.e. last connectable device cisco unity malfunction delay machine
At least one of total duration).
Further, the device-dependent message of above-mentioned target connectable device can also include following information in one or
It is multiple: the equipment identities identifier (i.e. device id) of target connectable device, target connectable device current IP address and M
Address AC etc..
403, the device-dependent message of above-mentioned target connectable device is shown;
User equipment shows the device-dependent message for the target connectable device that step 402 is read.
If 404, detecting, user renames target connectable device, and the target for obtaining user's input can connect
Connect the new equipment title of equipment.
405, the original of the target connectable device is replaced using the new equipment title of the target connectable device of above-mentioned acquisition
Device name, to be renamed to the target connectable device;
User equipment is after the new equipment title that step 404 obtains the target connectable device of user's input, using obtaining
The new equipment title for the target connectable device got replaces the original equipment title of the target connectable device, that is, utilizes step
The new equipment title of the 404 target connectable devices obtained renames the target connectable device.For example, user sets
It is standby the new equipment title of the target connectable device to be sent to the target by being communicated with target connectable device
Connectable device, and rename the target connectable device using the new equipment title of the target connectable device.
It should be noted that in embodiments of the present invention, selection of the user equipment real-time detection user to connectable device
Situation, when user chooses one or two other connectable devices again, user equipment all will choose again user
Connectable device (i.e. new target connectable device) executes step 402~405.
Therefore the embodiment of the present invention reads when user chooses a connectable device and shows that this can to user
The device-dependent message for connecting equipment, due to including the last time on-line time of the connectable device in device-dependent message and upper
At least one of secondary downtime, therefore, user can be easier to identify that is chosen connects by device-dependent message
Connecing equipment is that its equipment for wanting connection effectively improves user to greatly reduce the time of user-identification device
Experience Degree.Further, the embodiment of the invention also provides on a user device rename the connectable device chosen
Mechanism further reduces the time of user-identification device, makes user so that the identification of connectable device is more intuitive
Experience Degree is further promoted.
The embodiment of the invention also provides a kind of equipment applied to peer-to-peer network, are illustrated in figure 5 a kind of peer-to-peer network
Network architecture diagram, in peer-to-peer network shown in Fig. 5, each participation equipment (as participated in equipment S1~S5) has same energy
Power can initiate a communication session, and the participation equipment of peer-to-peer network can be by establishing with other participation equipment in network
It connects to obtain above-mentioned other shared resources for participating in setting in equipment, correspondingly, above-mentioned other participation equipment are the participation
After equipment connection, it is also possible to obtain the shared resource set in the participation equipment.Below to the application in the embodiment of the present invention
It is described in the participation equipment of peer-to-peer network, equipment 600 as shown in FIG. 6, it should be noted that for convenient for distinguishing and managing
It solves, in embodiment below, other participation equipment in addition to equipment 600 in consolidated network is described as to connect
Equipment.
As shown in fig. 6, the equipment 600 in the embodiment of the present invention includes:
Display unit 601, for showing the device name of all connectable devices in current network.
Reading unit 602, for reading mesh when detecting that user has selected target connectable device in equipment 600
Mark the device-dependent message of connectable device, wherein above-mentioned target connectable device refers to what user selected on a user device
Connectable device.The device-dependent message of target connectable device includes: the last time on-line time and mesh of target connectable device
Mark at least one of the last time downtime of connectable device.Further, the device-dependent message of target connectable device is also
May include one or more in following information: the device id of target connectable device, target connectable device are current
IP address and MAC Address etc..
Display unit 601 is also used to show the device-dependent message for the target connectable device that reading unit 602 is read.
On the basis of embodiment shown in Fig. 6, alias, such as Fig. 7 further can also be carried out to the connectable device chosen
Shown, equipment 700 further comprises:
Acquiring unit 703, for when detecting that user carries out alias to target connectable device, obtaining user's input
The new equipment title of the target connectable device.
Recording unit 704, the new equipment title of the target connectable device for recording the acquisition of acquiring unit 703, and make
The new equipment title of the target connectable device and the original equipment title of the target connectable device are associated.
In one implementation, recording unit 704 will acquire the new equipment of the target connectable device of the acquisition of unit 703
Title is recorded in local (i.e. in equipment 700).Certainly, in other implementations, recording unit 704 can also by network or
The other communication modes of person will acquire unit 703 acquisition target connectable device new equipment title be recorded in server or its
On its communication apparatus, it is not construed as limiting herein.
Further, on the basis of embodiment shown in Fig. 7, reading unit 602 is also used to: the target for reading user alias can connect
The new equipment title of equipment is connect, display unit 601 is also used to: showing the new of the target connectable device that reading unit 602 is read
Device name.Alternatively, reading unit 602 is also used to: when above-mentioned target connectable device is selected again, reading the target can
The new equipment title of equipment is connected, display unit 601 is also used to: the target connectable device that display reading unit 602 is read
New equipment title.
On the basis of embodiment shown in Fig. 6, heavy name further can also be carried out to the connectable device chosen, such as
Shown in Fig. 8, equipment 800 further comprises:
Acquiring unit 803, for when detecting that user renames target connectable device, obtaining user's input
The target connectable device new equipment title;
Rename unit 804, the new equipment title replacement of the target connectable device for obtaining using acquiring unit 803
The original equipment title of the target connectable device, to be renamed to the target connectable device.
It should be noted that equipment 600 or equipment 700 or equipment 800 in the embodiment of the present invention can be as above-mentioned
Equipment in embodiment of the method, can be used to implement all the technical solutions in the foregoing method embodiment, each functional module
Function can be implemented according to the method in above method embodiment, specific implementation process can refer in above-described embodiment
Associated description, details are not described herein again.
Therefore the embodiment of the present invention reads when user chooses a connectable device and shows that this can to user
The device-dependent message for connecting equipment, due to including the last time on-line time of the connectable device in device-dependent message and upper
At least one of secondary downtime, therefore, user can be easier to identify that is chosen connects by device-dependent message
Connecing equipment is that its equipment for wanting connection effectively improves user to greatly reduce the time of user-identification device
Experience Degree.Further, the embodiment of the invention also provides carry out alias or again to the connectable device chosen on a user device
The mechanism of name further reduces the time of user-identification device so that the identification of connectable device is more intuitive,
Promote user experience further.
The embodiment of the present invention also provides a kind of computer storage medium, wherein and the computer storage medium is stored with program,
It includes some or all of record arrangement in above method embodiment that the program, which executes,.
The equipment for being applied to peer-to-peer network to the another kind in present invention implementation below is described, referring to Fig. 9, this hair
Equipment 900 in bright embodiment includes:
Input unit 901, output device 902, memory 903 and the (number of the processor 904 of equipment 900 of processor 904
Amount can be one or more, and Fig. 9 takes a processor as an example).In some embodiments of the invention, input unit 901,
Output device 902, memory 903 and processor 904 can be connected by bus or other means, as shown in Figure 9 to pass through
For bus connection.
Wherein, processor 904 executes following steps:
Show the device name of all connectable devices in current network.
If detecting, user has selected target connectable device on the device 900, reads setting for target connectable device
Standby relevant information;
Wherein, above-mentioned target connectable device refers to the connectable device that user selects on a user device.Target can connect
The device-dependent message for connecing equipment includes: under the last time on-line time of target connectable device and the last time of target connectable device
At least one of line time.
Further, the device-dependent message of target connectable device can also include following information in one or it is more
It is a: the current IP address of the device id of target connectable device, target connectable device and the address M AC etc..
Show the device-dependent message of above-mentioned first connectable device.
In a kind of application scenarios, equipment 900 can carry out alias, specifically, processor to the connectable device chosen
904 are also used to: when detecting that user carries out alias to target connectable device, the target for obtaining user's input, which can connect, to be set
Standby new equipment title;The new equipment title of the target connectable device is recorded, and makes the new equipment of the target connectable device
Title is associated with the original equipment title of the target connectable device.The connectable device that processor 904 can will acquire it is new
Device name is recorded in local (i.e. in equipment 900), and certainly, processor 904 can also pass through network or other communication modes
The new equipment title of the connectable device of above-mentioned acquisition is recorded on server or other communication apparatus, is not limited herein
It is fixed.Further, processor 904 is also used to after recording the new equipment title of above-mentioned connectable device, is read and is shown the mesh
Mark the new equipment title of connectable device.Alternatively, processor 904 is just read when the target connectable device is selected again
With the new equipment title for showing the above-mentioned target connectable device.
In another application scenarios, equipment 900 can also be renamed target connectable device, specifically, place
Reason device 904 is also used to: when detecting that user renames target connectable device, the target for obtaining user's input can
Connect the new equipment title of equipment;The original of the target connectable device is replaced using the new equipment title of the target connectable device
Device name, to be renamed to the target connectable device.
It should be noted that equipment 900 in the embodiment of the present invention can be such as the equipment in above method embodiment, it can be with
For realizing whole technical solutions in above method embodiment, the function of each functional module can be according to above method reality
The method specific implementation in example is applied, specific implementation process can refer to the associated description in above-described embodiment, and details are not described herein again.
Therefore the embodiment of the present invention reads when user chooses a connectable device and shows that this can to user
The device-dependent message for connecting equipment, due to including the last time on-line time of the connectable device in device-dependent message and upper
At least one of secondary downtime, therefore, user can be easier to identify that is chosen connects by device-dependent message
Connecing equipment is that its equipment for wanting connection effectively improves user to greatly reduce the time of user-identification device
Experience Degree.Further, the embodiment of the invention also provides carry out alias or again to the connectable device chosen on a user device
The mechanism of name further reduces the time of user-identification device so that the identification of connectable device is more intuitive,
Promote user experience further.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair
Necessary to bright.
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 embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps in various methods in above-described embodiment is
Relevant hardware can be instructed to complete by program, which can be stored in a computer readable storage medium, and deposit
Storage media for example may include: read-only memory, random access memory, disk or CD etc..
A kind of device identification method provided by the present invention and relevant device are described in detail above, for ability
The those skilled in the art in domain, thought according to an embodiment of the present invention have change in specific embodiments and applications
Place, the contents of this specification are not to be construed as limiting the invention.