WO2016183925A1 - Matching verification method, apparatus and device for terminals - Google Patents

Matching verification method, apparatus and device for terminals Download PDF

Info

Publication number
WO2016183925A1
WO2016183925A1 PCT/CN2015/084861 CN2015084861W WO2016183925A1 WO 2016183925 A1 WO2016183925 A1 WO 2016183925A1 CN 2015084861 W CN2015084861 W CN 2015084861W WO 2016183925 A1 WO2016183925 A1 WO 2016183925A1
Authority
WO
WIPO (PCT)
Prior art keywords
matched
terminal
somatosensory
terminals
current terminal
Prior art date
Application number
PCT/CN2015/084861
Other languages
French (fr)
Chinese (zh)
Inventor
李钊
阚勇
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016183925A1 publication Critical patent/WO2016183925A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present invention relates to the field of communications, and in particular to a matching verification method, apparatus, and device for a terminal.
  • the storage space of the mobile intelligent terminal is also larger and larger, and the user can store a large number of photos, videos and various types of multimedia files in the mobile phone, especially in the friend's
  • multimedia files such as videos can be shared by short-distance transmission between the mobile intelligent terminal and the mobile intelligent terminal; in addition, in daily work, the user can also pass the mobile intelligent terminal at hand.
  • the distance transfer transmits some multimedia files.
  • the mobile intelligent terminal In order to ensure the security and privacy of the files in the mobile intelligent terminal, the mobile intelligent terminal is required to complete the authentication pairing before the file is transmitted.
  • the authentication pairing process is completed by verifying the password input by the user. That is, when the authentication pairing is performed, the first mobile intelligent terminal and the second mobile intelligent terminal enter a preset password, and when the password entered by the first mobile intelligent terminal and the second mobile intelligent terminal is successfully matched, the The authentication pairing between the first mobile intelligent terminal and the second mobile intelligent terminal is successful. At this time, the first mobile intelligent terminal and the second mobile intelligent terminal can send and share multimedia files with each other.
  • the password needs to be entered first, and then the entered password is verified. Finally, in the case where the verification result is successful, the steps in the authentication and pairing process of sharing the multimedia file are cumbersome, resulting in low verification efficiency. Propose an effective solution.
  • the embodiment of the present invention provides a matching verification method, device, and device for a terminal, so as to at least solve the problem in the related art that the password is required to be entered before the authentication pairing process, and then the password is verified. Finally, if the verification result is successful.
  • the steps in the authentication pairing process of starting to share a multimedia file are cumbersome, resulting in a problem of low verification efficiency.
  • a matching verification method for a terminal including: acquiring, on a pre-established communication link, somatosensory data collected by the M to be matched terminals for indicating a user action, and the somatosensory data is used.
  • Filter matching terminals where M is a natural number, M is greater than or equal to 1; and M are to be matched to the body of the terminal.
  • the sensing data is matched with the somatosensory data of the current terminal to obtain N to-match terminals that match the somatosensory data of the current terminal; and the multimedia files are shared to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.
  • matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal includes: mode one, when the somatosensory parameter is an image parameter And determining whether there is a terminal to be matched whose image parameters are the same as the image parameters of the current terminal in the M to be matched terminals.
  • the somatosensory parameter is the shaking time, it is determined whether there is a shaking time and the current terminal in the M to be matched terminals.
  • the swaying time is the same as the terminal to be matched; in the third mode, when the sensation parameter is the swaying speed and the swaying time, it is judged whether there is a swaying speed in the M to be matched terminals that is the same as the swaying speed of the current terminal in the same swaying time. If the result of the first, second, or third mode is yes, the terminal to be matched is selected according to the terminal identifier of the terminal to be matched.
  • determining whether the M-to-matched terminal has the same image parameter as the image parameter of the current terminal includes: mode one Obtaining a somatosensory image parameter of the current terminal by the somatosensory sensor, the somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal; receiving the somatosensory image parameter sent by the M to be matched terminal; and acquiring the somatosensory image of the current terminal
  • the parameter is matched with the somatosensory image parameters sent by the M to be matched terminals, and it is determined whether the M to be matched terminal has the same to be matched terminal as the somatosensory image parameter of the current terminal; and the second method is to capture the user who uses the current terminal.
  • the terminal to be matched that has the same sloshing speed and the swaying speed of the current terminal in the M to be matched terminals includes: when the swaying speed of the current terminal is greater than the first threshold, Start shaking time to obtain the first time point; when the current terminal shaking speed is less than the first threshold, the shaking time is ended, and the second time point is obtained; according to the time interval between the first time point and the second time point, the shaking is obtained.
  • the method before the pre-established communication link, further includes: turning on the short-range wireless communication module to acquire all the to-be-matched terminals within the effective communication range of the short-range wireless communication module.
  • a matching verification apparatus for a terminal, comprising: a first obtaining module, configured to acquire, on a pre-established communication link, acquisition of M to be matched terminals for indicating user actions
  • the somatosensory data is used to filter the matching terminal, wherein M is a natural number and M is greater than or equal to 1
  • the matching module is configured to match the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain
  • the N terminals to be matched with the current body's somatosensory data are matched
  • the sharing module is configured to share the multimedia file with the N to be matched terminals, where N is a natural number and N is less than or equal to M.
  • the matching module includes: a first matching unit, configured to determine whether the M to be matched terminals are when the somatosensory parameter is an image parameter There is a terminal to be matched whose image parameter is the same as the image parameter of the current terminal.
  • the second matching unit is configured to determine whether the shaking time of the M terminals to be matched is the same as the shaking time of the current terminal when the somatosensory parameter is the shaking time.
  • the third matching unit is configured to determine, when the somatosensory parameter is the swaying speed and the sloshing time, whether the M to be matched terminals have the same swaying speed as the current terminal swaying speed in the same swaying time
  • the determination result of the first matching unit, the second matching unit, or the third matching unit is yes, whether the required to-match terminal exists in the M to-be-matched terminals is selected according to the terminal identifier of the terminal to be matched.
  • the first matching unit includes: a first acquiring sub-unit, configured to acquire a somatosensory image parameter of the current terminal by using the somatosensory sensor, where the image parameter includes at least: a somatosensory image parameter and a drawing image parameter.
  • the somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal;
  • the first receiving subunit is configured to receive the somatosensory image parameters sent by the M to be matched terminals;
  • the first matching subunit is set to be current
  • the somatosensory image parameters of the terminal are matched with the somatosensory image parameters sent by the M to be matched terminals, and it is determined whether the M to be matched terminals have the same to be matched terminal as the somatosensory image parameters of the current terminal; or the second acquisition sub a unit, configured to capture a sliding track of a user using the current terminal on the screen; a second generating subunit, generating a first type of drawing image parameter according to the sliding track; and a second receiving subunit configured to receive the M to be matched terminal to send The second type of drawing image parameters; the second matching sub-unit, set to The first type of drawing image parameters are matched with the second type of drawing
  • the third matching unit includes: a first timing sub-unit, configured to start shaking timing when the shaking speed of the current terminal is greater than the first threshold, to obtain a first time point; and to set a second timing sub-unit When the shaking speed of the current terminal is less than the first threshold, the shaking timing is ended, and the second time point is obtained; the third timing sub-unit is set to obtain the shaking time according to the time interval between the first time point and the second time point.
  • a third acquisition subunit configured to acquire a shaking speed of the current terminal during the shaking time
  • a third matching subunit It is determined that the M terminals to be tested have the same to-be-matched terminal with the same shaking time as the current terminal, and the to-matched terminals whose shaking speed is the same as the current terminal are selected in the to-be-matched terminals with the same shaking time.
  • the apparatus further includes: a second acquiring module, configured to: before the pre-established communication link, enable the short-range wireless communication module to acquire all the to-be-in-the-range communication within the effective communication range of the short-range wireless communication module Match the terminal.
  • a second acquiring module configured to: before the pre-established communication link, enable the short-range wireless communication module to acquire all the to-be-in-the-range communication within the effective communication range of the short-range wireless communication module Match the terminal.
  • a terminal device comprising: a matching verification device of any of the above terminals.
  • the somatosensory data collected by the M to be matched terminals for indicating the user action is acquired on the pre-established communication link, and the somatosensory data is used to filter the matched terminal, where M is a natural number and M is greater than Or equal to 1; matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain N to be matched terminals that match the somatosensory data of the current terminal; and sharing multimedia files with the N to be matched terminals, where, N For natural numbers, N is less than or equal to M.
  • FIG. 1 is a flowchart of a matching verification method of a terminal according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a matching verification apparatus of a terminal according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of a matching verification apparatus for a terminal according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of another terminal matching verification apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of still another matching verification apparatus for a terminal according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of still another matching verification apparatus for a terminal according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a matching verification method of a terminal according to another embodiment of the present invention.
  • FIG. 1 is a flowchart of a matching verification method for a terminal according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 Acquire, on a pre-established communication link, the somatosensory data collected by the M to be matched terminals for indicating the user action, and the somatosensory data is used to filter the matched terminal, where M is a natural number and M is greater than or equal to 1;
  • the matching verification method of the terminal is applicable to the mobile terminal, where the mobile terminal can include at least: a smart phone, a notebook computer, a tablet computer, a palmtop computer, and a third generation media player (MPEG Audio Layer). 3, referred to as mp3), a fourth generation media player (MPEG Audio Layer 4, mp4 for short), a portable smart wearable device, or a combination of at least two.
  • a smart phone a notebook computer, a tablet computer, a palmtop computer
  • mp3 third generation media player
  • MPEG Audio Layer 4 MPEG Audio Layer 4 for short
  • the somatosensory data collected by the M to be matched terminals to be used to indicate the user action may include: obtaining, by the sensor, a somatosensory action parameter of the user waving the terminal, and acquiring the user waving terminal by using the sensor on the pre-established communication link.
  • the image parameters are drawn and the image parameters drawn by the user on the terminal are acquired by the sensor.
  • the terminal to be matched may be one or more, that is, the embodiment of the present application supports a one-to-one terminal matching manner, and may also be applied to one-to-many matching.
  • the matching verification method of the terminal provided by the embodiment of the present application is adopted, which is not limited.
  • the embodiment of the present application is applied to a smart phone as an example.
  • the process of the pre-established communication link may be as follows. It is assumed that the current terminal is the mobile phone A, and the M terminals to be matched (ie, the smart phone) are the mobile phone B. Wherein, when M is 1, the description is made:
  • Step 1 the mobile phone A turns on the short-range wireless communication module, and obtains the existence of the mobile phone B to establish a communication link;
  • the short-range wireless communication module may include at least: a Bluetooth or a network switch.
  • a Bluetooth as an example, when the mobile phone A turns on the Bluetooth, the to-be-matched list displays the user names of the multiple terminals, wherein the to-be-matched list of the mobile phone A is displayed.
  • User name of mobile phone B The details are shown in Table 1:
  • the to-match list shown in Table 1 will also be displayed on the mobile phone A, and the further mobile phone A looks up the mobile phone B that can establish a communication link in Table 1.
  • Step 2 the mobile phone A sends a link request to the mobile phone B;
  • the mobile phone B can establish a communication link based on Step1, and the mobile phone A sends a link request to the mobile phone B, and the link request is used to indicate whether the mobile phone B agrees to establish a communication link with the mobile phone A.
  • Step 3 the mobile phone A receives the link response sent by the mobile phone B;
  • the mobile phone A receives the link response sent by the mobile phone B, where the link response sent by the mobile phone B is used to instruct the mobile phone A to agree to establish a communication link with the mobile phone A. road.
  • Step 4 The mobile phone A establishes a communication link with the mobile phone B according to the link response.
  • the mobile phone A establishes a communication link with the mobile phone B according to the received link response.
  • Step S104 matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal, to obtain N to be matched terminals that match the somatosensory data of the current terminal;
  • the terminal is still a smart phone as an example.
  • the current terminal is assumed to be the mobile phone A as an example, and the M terminals to be matched (ie, the smart phone) are the mobile phone B, wherein the M is 1 time to explain:
  • the somatosensory data of the mobile phone B is the same as that of the mobile phone A
  • the somatosensory data takes an image parameter as an example. If the image drawn by the mobile phone B during the shaking process is the same as the image drawn by the mobile phone A by shaking, it is determined that the somatosensory data of the mobile phone B is the same as that of the mobile phone A, and the mobile phone B is the mobile phone A.
  • the number of terminals to be matched obtained in the process of matching the terminal exists in at least the following manner:
  • the somatosensory data of the M to be matched terminals are matched with the somatosensory data of the current terminal.
  • the somatosensory data of the M-1 to-be-matched terminals in the M to-be-matched terminals matches the somatosensory data of the current terminal.
  • the third method when the body-sensing data of the M-to-match terminal is matched with the body-sensing data of the current terminal, only the body-sensing data of the M-to-match terminal in the M-to-match terminal matches the body-sensing data of the current terminal.
  • Step S106 sharing a multimedia file to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.
  • the multimedia file that the current terminal shares with the N to-be-matched terminals may include at least: an audio file, a video file, a picture, or a text file, based on the N matching terminals that are successfully matched in step S104.
  • N is less than M occurs when M is greater than 1, that is, there are two ways or three modes in which three M-to-match terminals are successfully matched in step S104: there are M-1 to-be-matched terminals, Or only one of the M to-be-matched terminals is to be matched.
  • the somatosensory data collected by the M to be matched terminals for indicating the user action is acquired on the pre-established communication link, and the somatosensory data is used to filter the matched terminal, where M is a natural number and M is greater than or equal to 1; matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain N to be matched terminals that match the somatosensory data of the current terminal; and sharing the multimedia files with the N to be matched terminals, where N is a natural number , N is less than or equal to M.
  • the current terminal in S102 is still the mobile phone A, and the M terminals to be matched (ie, the smart phone) are described as the mobile phone B.
  • the somatosensory data is obtained by the user to shake the mobile phone.
  • the image parameters of the action are taken as an example, and the multimedia file is described by taking a picture as an example.
  • the mobile phone A can obtain the matching of the mobile phone B in the current matchable list by querying the table 1 in step S102 by opening the short-range wireless communication module.
  • the embodiment of the present application takes the terminal as a smart phone as an example, and the somatosensory data is taken as an example to obtain an image parameter drawn by the user by shaking the mobile phone action, and the multimedia file is taken as an example to implement the matching verification method of the terminal, which is not Make a limit.
  • M is greater than 1
  • the matching method of the current terminal is the same as the above, and the user using the current terminal can select multiple to-match terminals through the displayed matchable list, and further establish the connection with the plurality of to-be-matched terminals.
  • the communication link shares the multimedia file with the plurality of to-be-matched terminals when the somatosensory data of the plurality of to-be-matched terminals is the same as the current-sensing data of the current terminal.
  • the matching of the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal in step S104 includes:
  • the somatosensory parameter is an image parameter
  • the current terminal compares the image parameter with the image parameter of the current terminal itself to determine whether there is a terminal to be matched with the same image parameter.
  • the image parameter of the current terminal is a circle
  • the current terminal still takes the mobile phone A in step S102 as an example
  • the M to-be-matched terminals take the mobile phone B as an example, and assumes that M is equal to 1, and assumes the image parameter of the mobile phone A.
  • the image parameters of the mobile phone B and the mobile phone A are the same, and after the mobile phone A obtains the terminal identification of the mobile phone B, the matching identification is performed, so that the multimedia file is shared in step S106.
  • the terminal identifier of the terminal to be matched is obtained, and specifically, the mobile phone A can select all the terminals to be matched with the same image parameters. It is also possible to select any one of the to-matched terminals or at least two of the to-be-matched terminals to perform matching.
  • the somatosensory parameter is the swaying time
  • the current terminal in the above manner is the mobile terminal A as an example
  • the M to-be-matched terminals take the mobile phone B as an example, and it is assumed that M is equal to 1, and if the shaking time of the mobile phone A is 2 seconds, The shaking time of the mobile phone B is also 2 seconds, and the shaking time of the mobile phone B and the mobile phone A is the same, and after the mobile phone A obtains the terminal identification of the mobile phone B, the matching identification is performed, so that the multimedia file is shared in step S106.
  • the terminal identifier of the terminal to be matched is obtained, and specifically, the mobile phone A can select all the terminals to be matched with the same shaking time. It is also possible to select any one of the to-matched terminals or at least two of the to-be-matched terminals to perform matching.
  • the somatosensory parameter is the swaying speed and the swaying time
  • the mobile terminal A is taken as an example in the current terminal in the above manner, and the M to be matched terminal takes the mobile phone B as an example, and it is assumed that M is equal to 1, if the mobile phone A is in the shaking time
  • the shaking speed is H m/s in 2 seconds, and the shaking speed is also H m/s in the time when the shaking time is 2 seconds, the shaking speed of the mobile phone B and the mobile phone A in the same shaking time.
  • the mobile phone A obtains the terminal identifier of the mobile phone B, performs matching identification, so that the multimedia file is shared in step S106.
  • the terminal identifier of the terminal to be matched is obtained, and specifically, the mobile phone A can select the same.
  • all the to-be-matched terminals with the same swaying speed may also select any one of the to-matched terminals or at least two of the to-be-matched terminals to perform matching.
  • the method for determining whether the image parameters of the M to be matched are the same as the image parameters of the current terminal are included in the mode 1 of the step S104. :
  • the step of determining whether there is a terminal to be matched with the same image parameter of the current terminal in the M to be matched terminal includes:
  • Step 1 Acquire a somatosensory image parameter of the current terminal by using the somatosensory sensor, and the somatosensory image parameter is a somatosensory image parameter corresponding to the user motion acquired by the somatosensory sensor of the terminal;
  • the current terminal acquires the somatosensory image parameter corresponding to the action captured by the user when shaking the mobile phone, for example, the current terminal uses the mobile phone A as an example, and the somatosensory image parameter is still used in step S102.
  • the somatosensory sensor in the mobile phone A acquires the action of the mobile phone A during the shaking process, and further draws the action into The image gets a triangle.
  • Step 2 receiving the somatosensory image parameters sent by the M to be matched terminals
  • the mobile phone A receives the somatosensory image parameters sent from the M to-be-matched terminals, where the image parameters may be generated for each of the to-be-matched terminals according to the motion of the somatosensory sensor to obtain the image of the user's shaking terminal.
  • Step 3 Matching the somatosensory image parameters of the current terminal with the somatosensory image parameters sent by the M to be matched terminals, and determining whether there are to-match terminals in the M to be matched terminals that have the same somatosensory image parameters as the somatosensory image parameters of the current terminal;
  • Step 1 and Step 2 are taken as an example, and the somatosensory image parameters of the mobile phone A in Step 1 are taken as "triangles", and the sentiment images sent by the M to be matched terminals are received in Step 2.
  • the somatosensory image parameters sent by the M to be matched terminals are matched with the somatosensory image parameters of the mobile phone A, and it is determined whether there is a terminal to be matched that is the same as the "triangle" of the mobile phone A.
  • the step of determining whether there is a terminal to be matched in which the image parameter is the same as the image parameter of the current terminal in the M to be matched terminal includes:
  • Step 1 Capture the sliding track of the user who uses the current terminal on the screen
  • the method for determining whether the image parameter corresponding to the sliding track of the terminal to be matched is the same as that of the mobile phone A is still determined by taking the mobile phone A as the current terminal in step S102.
  • the mobile phone A captures the user's current sliding trajectory on the screen.
  • Step 2 generating a first type of drawing image parameters according to the sliding track
  • the first type of drawing image parameters are generated, and if the sliding trajectory on the screen is a “circle” or “ ⁇ ”, an image is generated according to the sliding trajectory, that is, an image “ ⁇ ” or “ ⁇ ”.
  • Step 3 Receive a second type of drawing image parameters sent by the M to be matched terminals
  • the mobile phone A receives the second drawing image parameters sent from the M to-be-matched terminals, where the second drawing image parameter may be used to draw the generated image according to the sliding track of the capturing user on the screen.
  • Step 4 Matching the first type of drawing image parameters with the second type of drawing image parameters sent by the M to be matched terminals, and determining whether there are the same to be matched terminals in the M to be matched terminals that are the same as the first type of drawing image parameters of the current terminal. .
  • Step1 to Step3 it is assumed that the first type of drawing image of the mobile phone A is “ ⁇ ”, and it is determined that the second type of drawing image parameters sent by the M to be matched terminals have the same to be matched with the first type of drawing image “ ⁇ ”. terminal.
  • the terminal to be matched that has the same shaking speed and the shaking speed of the current terminal in the M to be matched terminals in the same swaying time includes:
  • Step 1 When the shaking speed of the current terminal is greater than the first threshold, start shaking time to obtain the first time point;
  • the embodiment of the present application starts from the time point when the swaying speed is greater than the first threshold, and the current terminal uses the mobile phone A as an example in step S102.
  • the sensor acquires that the shaking speed of the current mobile phone is greater than the threshold first threshold, it is determined that the mobile phone A starts to shake, and the time point at which the shaking starts is recorded as the first time point.
  • Step 2 when the shaking speed of the current terminal is less than the first threshold, ending the shaking timing, and obtaining the second time point;
  • the mobile terminal A is still used as the example of the current terminal in Step 1.
  • the end point of how to determine the shaking time of the mobile phone A it can be determined that when the shaking speed of the mobile phone A is less than the first threshold, it is determined that the mobile phone A is shaking and starts.
  • the time point at which the shaking ends is recorded as the second time point.
  • Step 3 obtaining a shaking time according to a time interval between the first time point and the second time point;
  • Step 1 and Step 2 are combined to determine the duration of the shaking time of the mobile phone A by using the determined time interval between the first time point and the second time point, that is, the time interval.
  • Step 4 Obtain the shaking speed of the current terminal during the shaking time
  • the swaying speed of the current terminal during the swaying time may be an average speed obtained by the acceleration sensor during the swaying time.
  • the acceleration of the swaying speed during the swaying time is obtained by calculation based on the physical relationship between the swaying time and the swaying speed.
  • Step 5 Determine whether there are to-be-matched terminals in the M terminals to be tested that have the same shaking time as the current terminal, and select the to-match terminals whose shaking speed is the same as the current terminal in the to-be-matched terminals with the same shaking time;
  • the to-be-matched terminal with the same shaking time as the current terminal is selected among the M terminals to be tested, and the to-be-matched terminal whose shaking speed is the same as the current terminal is selected in the to-be-matched terminal with the same shaking time.
  • the sway time is first used for screening.
  • the swaying speed of the M to be matched terminals is the same as that of the current terminal, and the swaying speed of the M to be matched terminals is the same as the current terminal. Judging is made to determine whether there is a terminal to be matched that has the same acceleration as the swaying speed of the current terminal and the same acceleration of the swaying speed.
  • the method before the communication link established in advance in step S102, the method further includes:
  • Step S101 the short-range wireless communication module is turned on to acquire all the to-be-matched terminals within the effective communication range of the short-range wireless communication module.
  • the short-range wireless communication module may include: Bluetooth or wifi, and obtain all the terminals to be matched by turning on the Bluetooth or wifi.
  • the short-range wireless communication module may include: Bluetooth or wifi
  • the following two types of pairing authentication methods may exist according to the above embodiment of the present application:
  • Method one is applied to mobile phone Bluetooth connection pairing authentication, as follows: preset a value, in the stage of waving the mobile phone to draw a graphic in the air, when the sensor obtains the moving speed of the mobile phone is greater than this value, it is considered that the mobile phone is being Waving, when the mobile phone moves faster than this value, the swing is considered to be over.
  • Step 201 The mobile phone turns on the Bluetooth switch and searches for visible devices around.
  • Step 202 One of the mobile phones A serves as a pairing initiator, selects the mobile phone B to be paired, and initiates a pairing request.
  • Step 203 the mobile phone B receives and responds to the pairing request.
  • Step 204 The mobile phone A receives a response message to be paired with the mobile phone B, prompts the user, and the user starts to wave the mobile phone A to draw a graphic in the air, and the mobile phone A collects the graphic shape information through the sensor, when the mobile phone A moves at a lower speed than the preset value. , think that the user draws the picture.
  • the relevant information is encapsulated and sent to the mobile phone B to be paired.
  • Step 205 the mobile phone B receives the graphic authentication message sent by the mobile phone A, prompting the user to start the authentication process.
  • the user of the mobile phone B waves the mobile phone and draws the corresponding graphic according to the prior agreement.
  • Step 206 The mobile phone B collects the graphic shape information through the sensor, and compares with the graphic information of the mobile phone A. If the image is consistent, the two mobile phones are considered to be successfully authenticated. You can start subsequent file sharing or sending actions.
  • Method 2 applied to wifi direct connection pairing authentication, as follows: preset a value, in the stage of waving the mobile phone to draw graphics in the air, when the sensor obtains the moving speed of the mobile phone is greater than this value, it is considered that the mobile phone is being Waving, when the mobile phone moves faster than this value, the swing is considered to be over.
  • Step 301 The mobile phone turns on the wifi direct switch to search for visible devices around.
  • Step 302 One of the mobile phones A acts as a pairing initiator, selects the mobile phone B to be paired, and initiates a pairing request.
  • Step 303 the mobile phone B receives and responds to the pairing request.
  • Step 304 The mobile phone A receives a response message to be paired with the mobile phone B, prompts the user, and the user starts to wave the mobile phone A to draw a graphic in the air, and the mobile phone A collects the graphic shape information through the sensor, when the mobile phone A moves at a lower speed than the preset value. , think that the user draws the picture.
  • the relevant information is encapsulated and sent to the mobile phone B to be paired.
  • Step 305 the mobile phone B receives the graphic authentication message sent by the mobile phone A, prompting the user to start the authentication process.
  • the user of the mobile phone B waves the mobile phone and draws the corresponding graphic according to the prior agreement.
  • Step 306 the mobile phone B collects the graphic shape information through the sensor, and compares with the graphic information of the mobile phone A. If the image is consistent, the two mobile phones are considered to be successfully authenticated. You can start subsequent file sharing or sending actions.
  • the current terminal mentioned in the embodiment of the present application takes a smart phone as an example, and only performs the matching verification method of the terminal, and is not limited to the multimedia between the current terminal and the M to-be-matched terminals.
  • the sharing of files can also be applied to different mobile terminals, for example, smart phones and tablets, smart phones and notebook computers, etc.
  • the number of connected terminals to be matched can also implement the group sending function, that is, After a terminal device implements identity matching to multiple terminal devices, one-to-many data sharing improves data transmission efficiency.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • a storage medium such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a matching verification device for a terminal is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a structural block diagram of a matching verification apparatus of a terminal according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a first obtaining module 22, a matching module 24, and a sharing module 26, where
  • the first obtaining module 22 is configured to acquire, on the pre-established communication link, the somatosensory data collected by the M to be matched terminals for indicating the user action, and the somatosensory data is used to filter the matched terminal, where M is a natural number, M Greater than or equal to 1;
  • the matching module 24 is configured to match the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal, to obtain N to be matched terminals that match the somatosensory data of the current terminal;
  • the sharing module 26 is configured to share the multimedia file to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.
  • FIG. 3 is a structural block diagram of a matching verification apparatus for a terminal according to an embodiment of the present invention.
  • the matching module 24 includes: a first match.
  • the first matching unit 241 is configured to determine, when the somatosensory parameter is an image parameter, whether there is a terminal to be matched in which the image parameters of the M to be matched are the same as those of the current terminal;
  • the second matching unit 242 is configured to determine, when the somatosensory parameter is the shaking time, whether there is a terminal to be matched in which the shaking time of the M terminals to be matched is the same as the shaking time of the current terminal;
  • the third matching unit 243 is configured to determine, when the somatosensory parameter is the swaying speed and the sloshing time, whether there are any to-match terminals in the M to-be-matched terminals that have the same sloshing speed and the swaying speed of the current terminal in the same swaying time;
  • the first matching unit 241, the second matching unit 242, or the third matching unit 243 determines that the result is YES, whether the required to-match terminal exists in the M to-be-matched terminals is selected according to the terminal identifier of the terminal to be matched.
  • FIG. 4 is a structural block diagram of another terminal matching verification apparatus according to an embodiment of the present invention.
  • image parameters include at least: a somatosensory image parameter and a rendering image parameter
  • the first matching unit 241 The first obtaining subunit 2411, the first receiving subunit 2412, and the first matching subunit 2413, or the second obtaining subunit 2414, the second generating subunit 2415, the second receiving subunit 2416, and the second matching sub Unit 2417, wherein
  • the first obtaining sub-unit 2411 is configured to acquire a somatosensory image parameter of the current terminal by using the somatosensory sensor, where the somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal;
  • the first receiving subunit 2412 is configured to receive the somatosensory image parameters sent by the M to be matched terminals;
  • the first matching sub-unit 2413 is configured to match the somatosensory image parameters of the current terminal with the somatosensory image parameters sent by the M to-match terminals, and determine whether the somatosensory image parameters of the M to-be-matched terminals are the same as the somatosensory image parameters of the current terminal. To be matched to the terminal; or,
  • a second obtaining subunit 2414 configured to capture a sliding trajectory of a user using the current terminal on the screen
  • the second generation subunit 2415 is configured to generate a first type of drawing image parameter according to the sliding track
  • the second receiving subunit 2416 is configured to receive the second type of drawing image parameters sent by the M to be matched terminals;
  • the second matching sub-unit 2417 is configured to match the first type of drawing image parameters with the second type of drawing image parameters sent by the M to be matched terminals, and determine whether there is a first type of drawing with the current terminal in the M to be matched terminals.
  • FIG. 5 is a structural block diagram of a matching verification apparatus for a terminal according to an embodiment of the present invention.
  • the third matching unit 243 includes: a first timing subunit 2431, a second timing subunit 2432, and a third. a timing subunit 2433, a third obtaining subunit 2434, and a third matching subunit 2435, wherein
  • the first timing subunit 2431 is configured to start the shaking timing when the shaking speed of the current terminal is greater than the first threshold, to obtain the first time point;
  • the second timing sub-unit 2432 is configured to end the shaking timing when the shaking speed of the current terminal is less than the first threshold, to obtain a second time point;
  • the third timing sub-unit 2433 is configured to obtain a shaking time according to a time interval between the first time point and the second time point;
  • the third obtaining subunit 2434 is configured to acquire a shaking speed of the current terminal during the shaking time
  • the third matching sub-unit 2435 is configured to determine whether there are to-be-matched terminals in the M terminals to be tested that have the same shaking time as the current terminal, and select the to-be-matched terminal with the same shaking speed as the current terminal in the to-be-matched terminal with the same shaking time. .
  • FIG. 6 is a structural block diagram of a matching verification apparatus for a terminal according to an embodiment of the present invention. As shown in FIG. 6, the matching verification apparatus of the terminal further includes: a second obtaining module 21, where
  • the second obtaining module 21 is configured to enable the short-range wireless communication module to acquire all the to-be-matched terminals within the effective communication range of the short-range wireless communication module before the communication link established in advance.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in FIG. 7, an embodiment of the present invention further provides a terminal device, including: the terminal shown in any of FIG. 2 to FIG. Match the verification device.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further arranged to store program code for performing the following steps:
  • the somatosensory data includes at least: a somatosensory parameter and a terminal identifier.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs, according to the stored program code in the storage medium, whether the M-to-match terminal has the same image parameter as the image parameter of the current terminal, and the method includes: mode one, The somatosensory sensor acquires a somatosensory image parameter of the current terminal, and the somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal; receiving the somatosensory image parameter sent by the M to-be-matched terminal; and the somatosensory image parameter of the current terminal is The somatosensory image parameters sent by the M to be matched terminals are matched, and it is determined whether the M to be matched terminals have the same to be matched terminal as the somatosensory image parameters of the current terminal; and the second method is to capture the user using the current terminal on the screen.
  • a sliding track generating a first type of drawing image parameter according to the sliding track; receiving a second type of drawing image parameter sent by the M to be matched terminals; and drawing the first type of drawing image parameter and the second type of drawing image sent by the M to be matched terminals
  • the parameters are matched to determine whether there are M terminals to be matched.
  • the terminal to be matched that is the same as the first type of drawing image parameters of the current terminal.
  • the image parameters include at least: a somatosensory image parameter and a drawn image parameter.
  • the processor performs, according to the stored program code in the storage medium, whether the M to be matched terminals have the same shaking speed as the current terminal shaking speed in the same shaking time.
  • the terminal includes: when the shaking speed of the current terminal is greater than the first threshold, starting the shaking timing to obtain the first time point; when the shaking speed of the current terminal is less than the first threshold, ending the shaking timing, obtaining the second time point; The time interval between the time point and the second time point, the shaking time is obtained; when the shaking time is acquired The swaying speed of the front terminal is determined.
  • the M terminal to be tested is determined to have the same terminal to be matched with the same terminal as the current terminal, and the terminal to be matched whose swaying speed is the same as the current terminal is selected in the terminal to be matched with the same shaking time.
  • the method before the processor performs the pre-established communication link according to the stored program code in the storage medium, the method further includes: turning on the short-range wireless communication module to obtain the validity of the short-range wireless communication module. All terminals to be matched within the communication range.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • FIG. 8 is a flowchart of a method for verifying a matching of a terminal according to another embodiment of the present invention. The method includes the following steps:
  • Step S801 the paired mobile phone needs to open a search switch to search for surrounding terminal devices;
  • Step S802 a terminal serves as a connection initiator, hereinafter referred to as an originating terminal, selects a terminal that needs to be paired, and initiates a connection request;
  • the selected terminal hereinafter referred to as the receiving terminal, receives the connection request and responds;
  • Step S803 the initiating terminal receives the reply of the receiving terminal, confirms that the connection has been successfully, and starts to initiate identity authentication.
  • Step S804 the user of the initiating terminal waves the terminal, and starts to draw a graphic in the air;
  • a value is set in advance.
  • the angular velocity sensor determines the change in the angle at which the phone is waving.
  • Step S805 the initiating terminal collects the information of the shape of the graphic drawn by the mobile phone through the acceleration sensor and the angular velocity sensor, and sends the related graphic information group package to the receiving terminal.
  • the receiving terminal receives the message that the initiating terminal authentication gesture graph is completed, and starts to initiate its own authentication process
  • Step S806 the user of the receiving terminal waves the terminal, draws a gesture graphic in the air, and the receiving terminal collects the graphic shape related information through the sensor;
  • Step S807 comparing the shape shape information drawn by the initiating terminal and the receiving terminal. If the shape information is consistent, it is considered that the pairing authentication is successful, and the file can be transmitted and shared.
  • the technical solution provided by the embodiment of the present invention can be applied to the matching verification process of the terminal, and the somatosensory data collected by the M to be matched terminals for indicating the user action is acquired on the pre-established communication link, and the somatosensory data is used. Filtering the matched terminals, where M is a natural number and M is greater than or equal to 1; matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain N to be matched terminals that match the somatosensory data of the current terminal; The multimedia file is shared to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.

Abstract

Provided are a matching verification method, apparatus and device for terminals. The method comprises: on a pre-established communication link, obtaining somatosensory data which are acquired by M terminals to be matched and used for indicating user actions, the somatosensory data being used for screening matched terminals, where M is a natural number greater than or equal to 1; matching the somatosensory data of the M terminals to be matched with somatosensory data of a current terminal to get N terminals to be matched of which the somatosensory data are matched with the somatosensory data of the current terminal; and sharing a multimedia file to the N terminals to be matched, where N is a natural number less than or equal to M. By means of the present invention, the problem in the relevant art of a low verification efficiency caused by the fact that the steps in an authentication matching process are complicated due to the need of firstly entering a password, then verifying the entered password and finally starting to share the multimedia file in the case of a successful verification result during the authentication matching process is solved, thus achieving an effect of improving the verification efficiency.

Description

一种终端的匹配验证方法、装置及设备Terminal matching verification method, device and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种终端的匹配验证方法、装置及设备。The present invention relates to the field of communications, and in particular to a matching verification method, apparatus, and device for a terminal.
背景技术Background technique
随着通信终端日新月异的发展,通信终端中移动智能终端的多元化的功能开发,现已成为主流发展趋势。进一步的随着移动智能终端的硬件开发水平的不断提升,移动智能终端的存储空间也越来越大,用户可以在手机中存储大量照片、视频及各种类型的多媒体文件,特别是在好友之间,尤其是近距离相处的时候,可以通过移动智能终端与移动智能终端之间的近距离传输来分享视频等多媒体文件;此外,在日常工作中,用户也可以通过手边的移动智能终端通过近距离传输传送一些多媒体文件。With the rapid development of communication terminals, the diversified function development of mobile intelligent terminals in communication terminals has become a mainstream development trend. Further, with the continuous improvement of the hardware development level of the mobile intelligent terminal, the storage space of the mobile intelligent terminal is also larger and larger, and the user can store a large number of photos, videos and various types of multimedia files in the mobile phone, especially in the friend's In the meantime, especially when close to each other, multimedia files such as videos can be shared by short-distance transmission between the mobile intelligent terminal and the mobile intelligent terminal; in addition, in daily work, the user can also pass the mobile intelligent terminal at hand. The distance transfer transmits some multimedia files.
为了保证移动智能终端内文件的安全性和私密性,要求移动智能终端在文件传输前需要完成认证配对,在现有方式中,认证配对过程是通过验证用户输入的密码来完成。即,在认证配对时,第一移动智能终端与第二移动智能终端之间,通过录入预先设定的密码,当第一移动智能终端与第二移动智能终端录入的密码匹配成功时,则认为第一移动智能终端与第二移动智能终端之间认证配对成功,此时,第一移动智能终端与第二移动智能终端之间可以相互发送、共享多媒体文件。In order to ensure the security and privacy of the files in the mobile intelligent terminal, the mobile intelligent terminal is required to complete the authentication pairing before the file is transmitted. In the existing mode, the authentication pairing process is completed by verifying the password input by the user. That is, when the authentication pairing is performed, the first mobile intelligent terminal and the second mobile intelligent terminal enter a preset password, and when the password entered by the first mobile intelligent terminal and the second mobile intelligent terminal is successfully matched, the The authentication pairing between the first mobile intelligent terminal and the second mobile intelligent terminal is successful. At this time, the first mobile intelligent terminal and the second mobile intelligent terminal can send and share multimedia files with each other.
针对上述由于认证配对过程中需要先录入密码,再对录入的密码进行验证,最后在验证结果成功的情况下开始共享多媒体文件的认证配对过程中的步骤繁琐,导致验证效率低的问题,目前尚未提出有效的解决方案。For the above-mentioned authentication, the password needs to be entered first, and then the entered password is verified. Finally, in the case where the verification result is successful, the steps in the authentication and pairing process of sharing the multimedia file are cumbersome, resulting in low verification efficiency. Propose an effective solution.
发明内容Summary of the invention
本发明实施例提供了一种终端的匹配验证方法、装置及设备,以至少解决相关技术中由于认证配对过程中需要先录入密码,再对录入的密码进行验证,最后在验证结果成功的情况下开始共享多媒体文件的认证配对过程中的步骤繁琐,导致验证效率低的问题。The embodiment of the present invention provides a matching verification method, device, and device for a terminal, so as to at least solve the problem in the related art that the password is required to be entered before the authentication pairing process, and then the password is verified. Finally, if the verification result is successful. The steps in the authentication pairing process of starting to share a multimedia file are cumbersome, resulting in a problem of low verification efficiency.
根据本发明的一个实施例,提供了一种终端的匹配验证方法,包括:在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,体感数据用于筛选匹配的终端,其中,M为自然数,M大于或等于1;将M个待匹配终端的体 感数据与当前终端的体感数据进行匹配,得到与当前终端的体感数据匹配的N个待匹配终端;向N个待匹配终端共享多媒体文件,其中,N为自然数,N小于或等于M。According to an embodiment of the present invention, a matching verification method for a terminal is provided, including: acquiring, on a pre-established communication link, somatosensory data collected by the M to be matched terminals for indicating a user action, and the somatosensory data is used. Filter matching terminals, where M is a natural number, M is greater than or equal to 1; and M are to be matched to the body of the terminal The sensing data is matched with the somatosensory data of the current terminal to obtain N to-match terminals that match the somatosensory data of the current terminal; and the multimedia files are shared to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.
在本发明实施例中,在体感数据至少包括:体感参数和终端标识的情况下,将M个待匹配终端的体感数据与当前终端的体感数据进行匹配包括:方式一,当体感参数为图像参数时,判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端;方式二,当体感参数为晃动时间时,判断M个待匹配终端中是否存在晃动时间与当前终端的晃动时间相同的待匹配终端;方式三,当体感参数为晃动速度和晃动时间时,判断在相同的晃动时间内,M个待匹配终端中是否存在晃动速度与当前终端的晃动速度相同的待匹配终端;在方式一、方式二或方式三的判断结果为是时,依据待匹配终端的终端标识选取M个待匹配终端中是否存在所需的待匹配终端。In the embodiment of the present invention, when the somatosensory data includes at least the somatosensory parameter and the terminal identifier, matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal includes: mode one, when the somatosensory parameter is an image parameter And determining whether there is a terminal to be matched whose image parameters are the same as the image parameters of the current terminal in the M to be matched terminals. In the second method, when the somatosensory parameter is the shaking time, it is determined whether there is a shaking time and the current terminal in the M to be matched terminals. The swaying time is the same as the terminal to be matched; in the third mode, when the sensation parameter is the swaying speed and the swaying time, it is judged whether there is a swaying speed in the M to be matched terminals that is the same as the swaying speed of the current terminal in the same swaying time. If the result of the first, second, or third mode is yes, the terminal to be matched is selected according to the terminal identifier of the terminal to be matched.
在本发明实施例中,在图像参数至少包括:体感图像参数和绘制图像参数的情况下,判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端包括:方式一,通过体感传感器获取当前终端的体感图像参数,体感图像参数为通过终端的体感传感器获取的与用户动作对应的体感图像参数;接收M个待匹配终端发送的体感图像参数;将当前终端的体感图像参数与M个待匹配终端发送的体感图像参数进行匹配,判断M个待匹配终端中是否存在体感图像参数与当前终端的体感图像参数相同的待匹配终端;方式二,捕捉使用当前终端的用户在屏幕上的滑动轨迹;依据滑动轨迹生成第一类绘制图像参数;接收M个待匹配终端发送的第二类绘制图像参数;将第一类绘制图像参数与M个待匹配终端发送的第二类绘制图像参数进行匹配,判断M个待匹配终端中是否存在与当前终端的第一类绘制图像参数相同的待匹配终端。In the embodiment of the present invention, in a case where the image parameters include at least: a somatosensory image parameter and a rendering image parameter, determining whether the M-to-matched terminal has the same image parameter as the image parameter of the current terminal includes: mode one Obtaining a somatosensory image parameter of the current terminal by the somatosensory sensor, the somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal; receiving the somatosensory image parameter sent by the M to be matched terminal; and acquiring the somatosensory image of the current terminal The parameter is matched with the somatosensory image parameters sent by the M to be matched terminals, and it is determined whether the M to be matched terminal has the same to be matched terminal as the somatosensory image parameter of the current terminal; and the second method is to capture the user who uses the current terminal. a sliding track on the screen; generating a first type of drawing image parameter according to the sliding track; receiving a second type of drawing image parameter sent by the M to be matched terminals; and transmitting the first type of drawing image parameter and the second class to be sent by the M to be matched terminal Draw image parameters for matching, and judge M to be matched Whether there is a terminal to be matched that is the same as the first type of drawing image parameter of the current terminal in the terminal.
在本发明实施例中,判断在相同的晃动时间内,M个待匹配终端中是否存在晃动速度与当前终端的晃动速度相同的待匹配终端包括:当当前终端的晃动速度大于第一阈值时,开始晃动计时,得到第一时间点;当当前终端的晃动速度小于第一阈值时,结束晃动计时,得到第二时间点;依据第一时间点与第二时间点之间的时间区间,得到晃动时间;获取在晃动时间内当前终端的晃动速度;判断M个待测终端中是否存在晃动时间与当前终端相同的待匹配终端,并在晃动时间相同的待匹配终端中选取晃动速度与当前终端相同的待匹配终端。In the embodiment of the present invention, it is determined that, in the same swaying time, the terminal to be matched that has the same sloshing speed and the swaying speed of the current terminal in the M to be matched terminals includes: when the swaying speed of the current terminal is greater than the first threshold, Start shaking time to obtain the first time point; when the current terminal shaking speed is less than the first threshold, the shaking time is ended, and the second time point is obtained; according to the time interval between the first time point and the second time point, the shaking is obtained. Time; obtain the shaking speed of the current terminal in the shaking time; determine whether there are the to-be-matched terminals in the M terminals to be tested that have the same shaking time as the current terminal, and select the shaking speed to be the same as the current terminal in the terminal to be matched with the same shaking time The terminal to be matched.
在本发明实施例中,在预先建立的通信链路之前,还包括:开启近距离无线通信模块,获取在近距离无线通信模块的有效通信范围内的所有待匹配终端。 In the embodiment of the present invention, before the pre-established communication link, the method further includes: turning on the short-range wireless communication module to acquire all the to-be-matched terminals within the effective communication range of the short-range wireless communication module.
根据本发明的另一个实施例,提供了一种终端的匹配验证装置,包括:第一获取模块,设置为在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,体感数据用于筛选匹配的终端,其中,M为自然数,M大于或等于1;匹配模块,设置为将M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与当前终端的体感数据匹配的N个待匹配终端;共享模块,设置为向N个待匹配终端共享多媒体文件,其中,N为自然数,N小于或等于M。According to another embodiment of the present invention, there is provided a matching verification apparatus for a terminal, comprising: a first obtaining module, configured to acquire, on a pre-established communication link, acquisition of M to be matched terminals for indicating user actions The somatosensory data is used to filter the matching terminal, wherein M is a natural number and M is greater than or equal to 1; the matching module is configured to match the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain The N terminals to be matched with the current body's somatosensory data are matched; the sharing module is configured to share the multimedia file with the N to be matched terminals, where N is a natural number and N is less than or equal to M.
在本发明实施例中,在体感数据至少包括:体感参数和终端标识的情况下,匹配模块,包括:第一匹配单元,设置为当体感参数为图像参数时,判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端;第二匹配单元,设置为当体感参数为晃动时间时,判断M个待匹配终端中是否存在晃动时间与当前终端的晃动时间相同的待匹配终端;第三匹配单元,设置为当体感参数为晃动速度和晃动时间时,判断在相同的晃动时间内,M个待匹配终端中是否存在晃动速度与当前终端的晃动速度相同的待匹配终端;在第一匹配单元、第二匹配单元或第三匹配单元的判断结果为是时,依据待匹配终端的终端标识选取M个待匹配终端中是否存在所需的待匹配终端。In the embodiment of the present invention, in a case where the somatosensory data includes at least a somatosensory parameter and a terminal identifier, the matching module includes: a first matching unit, configured to determine whether the M to be matched terminals are when the somatosensory parameter is an image parameter There is a terminal to be matched whose image parameter is the same as the image parameter of the current terminal. The second matching unit is configured to determine whether the shaking time of the M terminals to be matched is the same as the shaking time of the current terminal when the somatosensory parameter is the shaking time. a matching terminal; the third matching unit is configured to determine, when the somatosensory parameter is the swaying speed and the sloshing time, whether the M to be matched terminals have the same swaying speed as the current terminal swaying speed in the same swaying time When the determination result of the first matching unit, the second matching unit, or the third matching unit is yes, whether the required to-match terminal exists in the M to-be-matched terminals is selected according to the terminal identifier of the terminal to be matched.
在本发明实施例中,在图像参数至少包括:体感图像参数和绘制图像参数的情况下,第一匹配单元,包括:第一获取子单元,设置为通过体感传感器获取当前终端的体感图像参数,体感图像参数为通过终端的体感传感器获取的与用户动作对应的体感图像参数;第一接收子单元,设置为接收M个待匹配终端发送的体感图像参数;第一匹配子单元,设置为将当前终端的体感图像参数与M个待匹配终端发送的体感图像参数进行匹配,判断M个待匹配终端中是否存在体感图像参数与当前终端的体感图像参数相同的待匹配终端;或者,第二获取子单元,设置为捕捉使用当前终端的用户在屏幕上的滑动轨迹;第二生成子单元,依据滑动轨迹生成第一类绘制图像参数;第二接收子单元,设置为接收M个待匹配终端发送的第二类绘制图像参数;第二匹配子单元,设置为将第一类绘制图像参数与M个待匹配终端发送的第二类绘制图像参数进行匹配,判断M个待匹配终端中是否存在与当前终端的第一类绘制图像参数相同的待匹配终端。In the embodiment of the present invention, the first matching unit includes: a first acquiring sub-unit, configured to acquire a somatosensory image parameter of the current terminal by using the somatosensory sensor, where the image parameter includes at least: a somatosensory image parameter and a drawing image parameter. The somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal; the first receiving subunit is configured to receive the somatosensory image parameters sent by the M to be matched terminals; the first matching subunit is set to be current The somatosensory image parameters of the terminal are matched with the somatosensory image parameters sent by the M to be matched terminals, and it is determined whether the M to be matched terminals have the same to be matched terminal as the somatosensory image parameters of the current terminal; or the second acquisition sub a unit, configured to capture a sliding track of a user using the current terminal on the screen; a second generating subunit, generating a first type of drawing image parameter according to the sliding track; and a second receiving subunit configured to receive the M to be matched terminal to send The second type of drawing image parameters; the second matching sub-unit, set to The first type of drawing image parameters are matched with the second type of drawing image parameters sent by the M terminals to be matched, and it is determined whether the M to be matched terminals have the same to be matched terminal as the first type of drawing image parameters of the current terminal.
在本发明实施例中,第三匹配单元包括:第一计时子单元,设置为当当前终端的晃动速度大于第一阈值时,开始晃动计时,得到第一时间点;第二计时子单元,设置为当当前终端的晃动速度小于第一阈值时,结束晃动计时,得到第二时间点;第三计时子单元,设置为依据第一时间点与第二时间点之间的时间区间,得到晃动时间;第三获取子单元,设置为获取在晃动时间内当前终端的晃动速度;第三匹配子单元,设 置为判断M个待测终端中是否存在晃动时间与当前终端相同的待匹配终端,并在晃动时间相同的待匹配终端中选取晃动速度与当前终端相同的待匹配终端。In the embodiment of the present invention, the third matching unit includes: a first timing sub-unit, configured to start shaking timing when the shaking speed of the current terminal is greater than the first threshold, to obtain a first time point; and to set a second timing sub-unit When the shaking speed of the current terminal is less than the first threshold, the shaking timing is ended, and the second time point is obtained; the third timing sub-unit is set to obtain the shaking time according to the time interval between the first time point and the second time point. a third acquisition subunit, configured to acquire a shaking speed of the current terminal during the shaking time; a third matching subunit, It is determined that the M terminals to be tested have the same to-be-matched terminal with the same shaking time as the current terminal, and the to-matched terminals whose shaking speed is the same as the current terminal are selected in the to-be-matched terminals with the same shaking time.
在本发明实施例中,上述装置还包括:第二获取模块,设置为在预先建立的通信链路之前,开启近距离无线通信模块,获取在近距离无线通信模块的有效通信范围内的所有待匹配终端。In the embodiment of the present invention, the apparatus further includes: a second acquiring module, configured to: before the pre-established communication link, enable the short-range wireless communication module to acquire all the to-be-in-the-range communication within the effective communication range of the short-range wireless communication module Match the terminal.
根据本发明的又一个实施例,提供了一种终端设备,包括:上述任一的终端的匹配验证装置。According to still another embodiment of the present invention, a terminal device is provided, comprising: a matching verification device of any of the above terminals.
通过本发明实施例,采用在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,体感数据用于筛选匹配的终端,其中,M为自然数,M大于或等于1;将M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与当前终端的体感数据匹配的N个待匹配终端;向N个待匹配终端共享多媒体文件,其中,N为自然数,N小于或等于M。解决了相关技术中由于认证配对过程中需要先录入密码,再对录入的密码进行验证,最后在验证结果成功的情况下开始共享多媒体文件的认证配对过程中的步骤繁琐,导致验证效率低的问题,进而达到了提升验证效率的效果。According to the embodiment of the present invention, the somatosensory data collected by the M to be matched terminals for indicating the user action is acquired on the pre-established communication link, and the somatosensory data is used to filter the matched terminal, where M is a natural number and M is greater than Or equal to 1; matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain N to be matched terminals that match the somatosensory data of the current terminal; and sharing multimedia files with the N to be matched terminals, where, N For natural numbers, N is less than or equal to M. In the related art, since the password is required to be entered in the authentication pairing process, the entered password is verified, and finally, the steps in the authentication pairing process of starting the sharing of the multimedia file are cumbersome in the case where the verification result is successful, resulting in low verification efficiency. In order to improve the efficiency of verification.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的终端的匹配验证方法的流程图;1 is a flowchart of a matching verification method of a terminal according to an embodiment of the present invention;
图2是根据本发明实施例的终端的匹配验证装置的结构框图;2 is a structural block diagram of a matching verification apparatus of a terminal according to an embodiment of the present invention;
图3是根据本发明实施例的一种终端的匹配验证装置的结构框图;3 is a structural block diagram of a matching verification apparatus for a terminal according to an embodiment of the present invention;
图4是根据本发明实施例的另一种终端的匹配验证装置的结构框图;4 is a structural block diagram of another terminal matching verification apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的又一种终端的匹配验证装置的结构框图;FIG. 5 is a structural block diagram of still another matching verification apparatus for a terminal according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的再一种终端的匹配验证装置的结构框图;FIG. 6 is a structural block diagram of still another matching verification apparatus for a terminal according to an embodiment of the present invention; FIG.
图7是根据本发明实施例的一种终端设备的结构示意图;以及, FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention; and
图8是根据本发明另一实施例的终端的匹配验证方法的流程图。FIG. 8 is a flowchart of a matching verification method of a terminal according to another embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例一Embodiment 1
在本实施例中提供了一种终端的匹配验证方法,图1是根据本发明实施例的终端的匹配验证方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a matching verification method for a terminal is provided. FIG. 1 is a flowchart of a matching verification method for a terminal according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,体感数据用于筛选匹配的终端,其中,M为自然数,M大于或等于1;Step S102: Acquire, on a pre-established communication link, the somatosensory data collected by the M to be matched terminals for indicating the user action, and the somatosensory data is used to filter the matched terminal, where M is a natural number and M is greater than or equal to 1;
这里本申请实施例提供的一种终端的匹配验证方法适用于移动终端中,其中,移动终端可以至少包括:智能手机、笔记本电脑、平板电脑、掌上电脑、第三代媒体播放器(MPEG Audio Layer 3,简称mp3)、第四代媒体播放器(MPEG Audio Layer 4,简称mp4)、便携式的智能穿戴设备中的一种或至少两种的组合。The matching verification method of the terminal provided by the embodiment of the present application is applicable to the mobile terminal, where the mobile terminal can include at least: a smart phone, a notebook computer, a tablet computer, a palmtop computer, and a third generation media player (MPEG Audio Layer). 3, referred to as mp3), a fourth generation media player (MPEG Audio Layer 4, mp4 for short), a portable smart wearable device, or a combination of at least two.
其中,在预先建立的通信链路上,获取到的M个待匹配终端采集的用于指示用户动作的体感数据可以至少包括:通过传感器获取用户挥动终端的体感动作参数、通过传感器获取用户挥动终端绘制的图像参数以及通过传感器获取用户在终端上绘制的图像参数。本申请实施例提供的终端的匹配验证方法中待匹配的终端可以为一个也可以为多个,即,本申请实施例支持一对一的终端匹配方式,也可以应用于一对多的匹配,以实现本申请实施例提供的一种终端的匹配验证方法为准,具体不做限定。The somatosensory data collected by the M to be matched terminals to be used to indicate the user action may include: obtaining, by the sensor, a somatosensory action parameter of the user waving the terminal, and acquiring the user waving terminal by using the sensor on the pre-established communication link. The image parameters are drawn and the image parameters drawn by the user on the terminal are acquired by the sensor. In the matching verification method of the terminal provided by the embodiment of the present application, the terminal to be matched may be one or more, that is, the embodiment of the present application supports a one-to-one terminal matching manner, and may also be applied to one-to-many matching. The matching verification method of the terminal provided by the embodiment of the present application is adopted, which is not limited.
具体的,本申请实施例以应用于智能手机为例进行说明,预先建立的通信链路的过程可以如下,假设当前终端为手机A,M个待匹配的终端(即智能手机)为手机B,其中,以M为1时进行说明:Specifically, the embodiment of the present application is applied to a smart phone as an example. The process of the pre-established communication link may be as follows. It is assumed that the current terminal is the mobile phone A, and the M terminals to be matched (ie, the smart phone) are the mobile phone B. Wherein, when M is 1, the description is made:
Step1、手机A开启近距离无线通信模块,获取到存在手机B可建立通信链路; Step 1, the mobile phone A turns on the short-range wireless communication module, and obtains the existence of the mobile phone B to establish a communication link;
其中,近距离无线通信模块可以至少包括:蓝牙或网络开关,以蓝牙为例,当手机A开启蓝牙时,待匹配列表显示多个终端的用户名,其中,手机A的待匹配列表中显示有手机B的用户名。具体如表1所示:The short-range wireless communication module may include at least: a Bluetooth or a network switch. Taking Bluetooth as an example, when the mobile phone A turns on the Bluetooth, the to-be-matched list displays the user names of the multiple terminals, wherein the to-be-matched list of the mobile phone A is displayed. User name of mobile phone B. The details are shown in Table 1:
表1:Table 1:
用户名username
ZTE1ZTE1
NUBIA1NUBIA1
ShoujiBShoujiB
同理,若开启网络开关,在手机A上也将显示如表1所示的待匹配列表,进一步的手机A在表1查找可以建立通信链路的手机B。Similarly, if the network switch is turned on, the to-match list shown in Table 1 will also be displayed on the mobile phone A, and the further mobile phone A looks up the mobile phone B that can establish a communication link in Table 1.
Step2、手机A向手机B发送链接请求;Step 2, the mobile phone A sends a link request to the mobile phone B;
其中,基于Step1获取到手机B可以建立通信链路,手机A向手机B发送链接请求,该链接请求用于指示手机B是否同意建立与手机A之间的通信链路。The mobile phone B can establish a communication link based on Step1, and the mobile phone A sends a link request to the mobile phone B, and the link request is used to indicate whether the mobile phone B agrees to establish a communication link with the mobile phone A.
Step3、手机A接收手机B发送的链接响应;Step 3, the mobile phone A receives the link response sent by the mobile phone B;
其中,当手机B同意建立与手机A之间的通信链路时,手机A接收手机B发送的链接响应,这里手机B发送的链接响应用于指示手机A同意建立与手机A之间的通信链路。Wherein, when the mobile phone B agrees to establish a communication link with the mobile phone A, the mobile phone A receives the link response sent by the mobile phone B, where the link response sent by the mobile phone B is used to instruct the mobile phone A to agree to establish a communication link with the mobile phone A. road.
Step4、手机A依据该链接响应与手机B之间建立通信链路。Step 4: The mobile phone A establishes a communication link with the mobile phone B according to the link response.
其中,手机A依据接收到的链接响应与手机B之间建立通信链路。The mobile phone A establishes a communication link with the mobile phone B according to the received link response.
步骤S104,将M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与当前终端的体感数据匹配的N个待匹配终端;Step S104, matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal, to obtain N to be matched terminals that match the somatosensory data of the current terminal;
其中,在步骤S102的基础上,仍旧以终端为智能手机为例进行说明,仍旧假设当前终端为手机A为例,M个待匹配的终端(即智能手机)为手机B,其中,以M为1时进行说明: On the basis of the step S102, the terminal is still a smart phone as an example. The current terminal is assumed to be the mobile phone A as an example, and the M terminals to be matched (ie, the smart phone) are the mobile phone B, wherein the M is 1 time to explain:
当获取到手机B的体感数据与手机A的相同时,判定手机B为手机A的匹配终端。例如,体感数据以图像参数为例,若手机B在摇晃的过程中绘制的图像与手机A通过晃动绘制的图像相同,则判定手机B的体感数据与手机A的相同,手机B是手机A所需匹配的终端,这里手机A的体感数据为通过传感器获取晃动动作绘制的图像对应的图像参数。When the somatosensory data of the mobile phone B is the same as that of the mobile phone A, it is determined that the mobile phone B is the matching terminal of the mobile phone A. For example, the somatosensory data takes an image parameter as an example. If the image drawn by the mobile phone B during the shaking process is the same as the image drawn by the mobile phone A by shaking, it is determined that the somatosensory data of the mobile phone B is the same as that of the mobile phone A, and the mobile phone B is the mobile phone A. The terminal to be matched, where the somatosensory data of the mobile phone A is an image parameter corresponding to the image drawn by the sensor to obtain the shaking motion.
当M大于1时,即M个待匹配终端为多个待匹配终端时,在匹配终端的过程中得到的待匹配终端个数存在至少以下方式:When M is greater than 1, that is, when the M to be matched terminals are multiple to be matched terminals, the number of terminals to be matched obtained in the process of matching the terminal exists in at least the following manner:
方式一,在将M个待匹配终端的体感数据与当前终端的体感数据进行匹配时,M个待匹配终端的体感数据均与当前终端的体感数据匹配。In the first method, when the somatosensory data of the M to be matched terminals is matched with the somatosensory data of the current terminal, the somatosensory data of the M to be matched terminals are matched with the somatosensory data of the current terminal.
方式二,在将M个待匹配终端的体感数据与当前终端的体感数据进行匹配时,M个待匹配终端中存在M-1个待匹配终端的体感数据与当前终端的体感数据匹配。In the second method, when the somatosensory data of the M terminals to be matched are matched with the somatosensory data of the current terminal, the somatosensory data of the M-1 to-be-matched terminals in the M to-be-matched terminals matches the somatosensory data of the current terminal.
方式三,在将M个待匹配终端的体感数据与当前终端的体感数据进行匹配时,M个待匹配终端中仅存在1个待匹配终端的体感数据与当前终端的体感数据匹配。In the third method, when the body-sensing data of the M-to-match terminal is matched with the body-sensing data of the current terminal, only the body-sensing data of the M-to-match terminal in the M-to-match terminal matches the body-sensing data of the current terminal.
步骤S106,向N个待匹配终端共享多媒体文件,其中,N为自然数,N小于或等于M。Step S106, sharing a multimedia file to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.
其中,基于步骤S104匹配成功的N个待匹配终端,当前终端向该N个待匹配终端共享多媒体文件可以至少包括:音频文件、视频文件、图片或文字文件。The multimedia file that the current terminal shares with the N to-be-matched terminals may include at least: an audio file, a video file, a picture, or a text file, based on the N matching terminals that are successfully matched in step S104.
这里N小于M的情况发生在M大于1的情况下,即,存在M个待匹配终端在步骤S104中匹配成功三种情况下中的方式二或方式三:存在M-1个待匹配终端,或M个待匹配终端中仅有一个待匹配终端。Wherein, the case where N is less than M occurs when M is greater than 1, that is, there are two ways or three modes in which three M-to-match terminals are successfully matched in step S104: there are M-1 to-be-matched terminals, Or only one of the M to-be-matched terminals is to be matched.
通过上述步骤,采用在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,体感数据用于筛选匹配的终端,其中,M为自然数,M大于或等于1;将M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与当前终端的体感数据匹配的N个待匹配终端;向N个待匹配终端共享多媒体文件,其中,N为自然数,N小于或等于M。解决了相关技术中由于认证配对过程中需要先录入密码,再对录入的密码进行验证,最后在验证结果成功的情况下开始共享多媒体文件的认证配对过程中的步骤繁琐,导致验证效率低的问题,进而达到了提升验证效率的效果。Through the above steps, the somatosensory data collected by the M to be matched terminals for indicating the user action is acquired on the pre-established communication link, and the somatosensory data is used to filter the matched terminal, where M is a natural number and M is greater than or equal to 1; matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain N to be matched terminals that match the somatosensory data of the current terminal; and sharing the multimedia files with the N to be matched terminals, where N is a natural number , N is less than or equal to M. In the related art, since the password is required to be entered in the authentication pairing process, the entered password is verified, and finally, the steps in the authentication pairing process of starting the sharing of the multimedia file are cumbersome in the case where the verification result is successful, resulting in low verification efficiency. In order to improve the efficiency of verification.
综合步骤S102至步骤S106,本申请实施例提供的终端的匹配验证方法具体如下: The method for verifying the matching of the terminal provided by the embodiment of the present application is as follows:
在M取值为1,N等于M的情况下,仍旧以S102中当前终端为手机A,M个待匹配的终端(即智能手机)为手机B进行说明,这里体感数据以获取用户通过摇晃手机动作绘制的图像参数为例,多媒体文件以图片为例进行说明,其中,手机A通过开启近距离无线通信模块,通过查询如步骤S102中的表1获取到当前可匹配列表中存在手机B可匹配,进一步的通过与手机B之间建立通信链路,在手机A获取到手机B通过传感器获取到的用户摇晃手机绘制的图像参数时,若手机B的体感数据与手机A的图像参数相同,则手机A向手机B发送图片。In the case where the M value is 1, and N is equal to M, the current terminal in S102 is still the mobile phone A, and the M terminals to be matched (ie, the smart phone) are described as the mobile phone B. Here, the somatosensory data is obtained by the user to shake the mobile phone. The image parameters of the action are taken as an example, and the multimedia file is described by taking a picture as an example. The mobile phone A can obtain the matching of the mobile phone B in the current matchable list by querying the table 1 in step S102 by opening the short-range wireless communication module. Further, by establishing a communication link with the mobile phone B, when the mobile phone A obtains the image parameter drawn by the mobile phone B through the sensor, if the user's body data is the same as the image parameter of the mobile phone A, then Cell phone A sends a picture to cell phone B.
本申请实施例仅以终端为智能手机为例,体感数据以获取用户通过摇晃手机动作绘制的图像参数为例,多媒体文件以图片为例进行说明,以实现终端的匹配验证方法为准,具体不做限定。同理,对于M大于1的情况下,当前终端的匹配方法与上述相同,使用当前终端的用户可以通过显示的可匹配列表选取多个待匹配终端,进一步的通过建立与多个待匹配终端的通信链路,当获取该多个待匹配终端的体感数据与当前终端的体感数据相同时,当前终端将多媒体文件与该多个待匹配终端进行共享。The embodiment of the present application takes the terminal as a smart phone as an example, and the somatosensory data is taken as an example to obtain an image parameter drawn by the user by shaking the mobile phone action, and the multimedia file is taken as an example to implement the matching verification method of the terminal, which is not Make a limit. Similarly, in the case that M is greater than 1, the matching method of the current terminal is the same as the above, and the user using the current terminal can select multiple to-match terminals through the displayed matchable list, and further establish the connection with the plurality of to-be-matched terminals. The communication link shares the multimedia file with the plurality of to-be-matched terminals when the somatosensory data of the plurality of to-be-matched terminals is the same as the current-sensing data of the current terminal.
在本发明实施例中,在体感数据至少包括:体感参数和终端标识的情况下,步骤S104中将M个待匹配终端的体感数据与当前终端的体感数据进行匹配包括:In the embodiment of the present invention, in the case that the somatosensory data includes at least the somatosensory parameter and the terminal identifier, the matching of the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal in step S104 includes:
方式一,当体感参数为图像参数时,判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端;In the first manner, when the somatosensory parameter is an image parameter, it is determined whether there are any to-match terminals in which the image parameters of the M to be matched are the same as those of the current terminal;
这里当体感参数为图像参数时,当前终端在获取M个待匹配终端的图像参数后,将该图像参数与当前终端自身的图像参数进行比对,判断是否有图像参数相同的待匹配终端。Here, when the somatosensory parameter is an image parameter, after the current terminal acquires the image parameters of the M to be matched terminals, the current terminal compares the image parameter with the image parameter of the current terminal itself to determine whether there is a terminal to be matched with the same image parameter.
具体的,假设当前终端的图像参数为一个圆形,当前终端仍旧以步骤S102中的手机A为例,M个待匹配终端以手机B为例,且假设M等于1,假设手机A的图像参数是一个圆形,手机B的图像参数也是一个圆形,则手机B与手机A的图像参数相同,且手机A在获取手机B的终端标识后,进行匹配识别,以便步骤S106共享多媒体文件。Specifically, it is assumed that the image parameter of the current terminal is a circle, the current terminal still takes the mobile phone A in step S102 as an example, and the M to-be-matched terminals take the mobile phone B as an example, and assumes that M is equal to 1, and assumes the image parameter of the mobile phone A. It is a circle, and the image parameter of the mobile phone B is also a circle. The image parameters of the mobile phone B and the mobile phone A are the same, and after the mobile phone A obtains the terminal identification of the mobile phone B, the matching identification is performed, so that the multimedia file is shared in step S106.
当M大于1时,同上,其中,在判断结果为是时,依据待匹配终端的终端标识选取M个待匹配终端中是否存在所需的待匹配终端。即,只要存在图像参数与手机A(即,当前终端)相同的待匹配终端,则获取该待匹配终端的终端标识进行匹配,具体为,手机A可以选择将图像参数相同的所有待匹配终端,也可以选择所有待匹配终端中的任意一个或至少两个的待匹配终端进行匹配。 When M is greater than 1, the same as above, wherein, when the determination result is yes, whether the required to-match terminal exists in the M to-be-matched terminals is selected according to the terminal identifier of the terminal to be matched. That is, as long as there is a terminal to be matched with the same image parameter as the mobile phone A (ie, the current terminal), the terminal identifier of the terminal to be matched is obtained, and specifically, the mobile phone A can select all the terminals to be matched with the same image parameters. It is also possible to select any one of the to-matched terminals or at least two of the to-be-matched terminals to perform matching.
方式二,当体感参数为晃动时间时,判断M个待匹配终端中是否存在晃动时间与当前终端的晃动时间相同的待匹配终端;In the second manner, when the somatosensory parameter is the swaying time, it is determined whether there are the to-be-matched terminals in the M to be matched terminals that have the same sloshing time as the swaying time of the current terminal;
这里当体感参数为晃动时间时,仍旧以上述方式一中当前终端以手机A为例,M个待匹配终端以手机B为例,且假设M等于1,若手机A的晃动时间为2秒,手机B的晃动时间也是2秒,则手机B与手机A的晃动时间相同,且手机A在获取手机B的终端标识后,进行匹配识别,以便步骤S106共享多媒体文件。Here, when the somatosensory parameter is the shaking time, the current terminal in the above manner is the mobile terminal A as an example, and the M to-be-matched terminals take the mobile phone B as an example, and it is assumed that M is equal to 1, and if the shaking time of the mobile phone A is 2 seconds, The shaking time of the mobile phone B is also 2 seconds, and the shaking time of the mobile phone B and the mobile phone A is the same, and after the mobile phone A obtains the terminal identification of the mobile phone B, the matching identification is performed, so that the multimedia file is shared in step S106.
当M大于1时,同上,其中,在判断结果为是时,依据待匹配终端的终端标识选取M个待匹配终端中是否存在所需的待匹配终端。即,只要存在晃动时间与手机A(即,当前终端)相同的待匹配终端,则获取该待匹配终端的终端标识进行匹配,具体为,手机A可以选择将晃动时间相同的所有待匹配终端,也可以选择所有待匹配终端中的任意一个或至少两个的待匹配终端进行匹配。When M is greater than 1, the same as above, wherein, when the determination result is yes, whether the required to-match terminal exists in the M to-be-matched terminals is selected according to the terminal identifier of the terminal to be matched. That is, as long as there is a terminal to be matched with the same time as the mobile phone A (ie, the current terminal), the terminal identifier of the terminal to be matched is obtained, and specifically, the mobile phone A can select all the terminals to be matched with the same shaking time. It is also possible to select any one of the to-matched terminals or at least two of the to-be-matched terminals to perform matching.
方式三,当体感参数为晃动速度和晃动时间时,判断在相同的晃动时间内,M个待匹配终端中是否存在晃动速度与当前终端的晃动速度相同的待匹配终端。In the third manner, when the somatosensory parameter is the swaying speed and the swaying time, it is determined whether there are any to-match terminals in the M to-be-matched terminals that have the same sloshing speed and the swaying speed of the current terminal in the same swaying time.
这里当体感参数为晃动速度和晃动时间时,仍旧以上述方式一中当前终端以手机A为例,M个待匹配终端以手机B为例,且假设M等于1,若手机A在晃动时间为2秒的时间里晃动速度为H m/s,手机B在晃动时间为2秒的时间里晃动速度也同样为H m/s,则手机B与手机A的在相同的晃动时间内,晃动速度相同,且手机A在获取手机B的终端标识后,进行匹配识别,以便步骤S106共享多媒体文件。Here, when the somatosensory parameter is the sloshing speed and the sloshing time, the mobile terminal A is taken as an example in the current terminal in the above manner, and the M to be matched terminal takes the mobile phone B as an example, and it is assumed that M is equal to 1, if the mobile phone A is in the shaking time The shaking speed is H m/s in 2 seconds, and the shaking speed is also H m/s in the time when the shaking time is 2 seconds, the shaking speed of the mobile phone B and the mobile phone A in the same shaking time. The same, and after the mobile phone A obtains the terminal identifier of the mobile phone B, performs matching identification, so that the multimedia file is shared in step S106.
当M大于1时,同上,在判断结果为是时,依据待匹配终端的终端标识选取M个待匹配终端中是否存在所需的待匹配终端。即,只要存在在相同的晃动时间内,晃动速度与手机A(即,当前终端)相同的待匹配终端,则获取该待匹配终端的终端标识进行匹配,具体为,手机A可以选择将在相同晃动时间内,晃动速度相同的所有待匹配终端,也可以选择所有待匹配终端中的任意一个或至少两个的待匹配终端进行匹配。When M is greater than 1, as in the above, when the judgment result is yes, whether the required to-match terminal exists in the M to-be-matched terminals is selected according to the terminal identifier of the terminal to be matched. That is, as long as there is a terminal to be matched that is the same as the mobile phone A (ie, the current terminal) in the same sway time, the terminal identifier of the terminal to be matched is obtained, and specifically, the mobile phone A can select the same. During the swaying time, all the to-be-matched terminals with the same swaying speed may also select any one of the to-matched terminals or at least two of the to-be-matched terminals to perform matching.
优选的,在图像参数至少包括:体感图像参数和绘制图像参数的情况下,上述步骤S104的方式一中判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端包括:Preferably, in the case that the image parameters include at least: the somatosensory image parameters and the image parameters, the method for determining whether the image parameters of the M to be matched are the same as the image parameters of the current terminal are included in the mode 1 of the step S104. :
方式一,当图像参数为体感图像参数时,判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端的步骤包括: In the first method, when the image parameter is a somatosensory image parameter, the step of determining whether there is a terminal to be matched with the same image parameter of the current terminal in the M to be matched terminal includes:
Step1、通过体感传感器获取当前终端的体感图像参数,体感图像参数为通过终端的体感传感器获取的与用户动作对应的体感图像参数;Step 1 : Acquire a somatosensory image parameter of the current terminal by using the somatosensory sensor, and the somatosensory image parameter is a somatosensory image parameter corresponding to the user motion acquired by the somatosensory sensor of the terminal;
其中,当图像参数为体感图像参数时,当前终端通过体感传感器获取用户在晃动手机时捕捉到的动作对应的体感图像参数,例如,仍旧以步骤S102中当前终端以手机A为例,体感图像参数以三角形为例,当使用手机A的用户在晃动手机时,通过在空中画出一个“三角形”,手机A中的体感传感器获取到手机A在晃动过程中的动作,进一步的将该动作绘制成图像得到一个三角形。Wherein, when the image parameter is a somatosensory image parameter, the current terminal acquires the somatosensory image parameter corresponding to the action captured by the user when shaking the mobile phone, for example, the current terminal uses the mobile phone A as an example, and the somatosensory image parameter is still used in step S102. Taking a triangle as an example, when the user using the mobile phone A shakes the mobile phone, by drawing a "triangle" in the air, the somatosensory sensor in the mobile phone A acquires the action of the mobile phone A during the shaking process, and further draws the action into The image gets a triangle.
Step2、接收M个待匹配终端发送的体感图像参数;Step 2, receiving the somatosensory image parameters sent by the M to be matched terminals;
其中,在Step1之后,手机A接收来自M个待匹配终端发送的体感图像参数,这里的图像参数可以为各个待匹配终端依据体感传感器通过获取用户的晃动终端的动作绘制生成的图像。After Step 1 , the mobile phone A receives the somatosensory image parameters sent from the M to-be-matched terminals, where the image parameters may be generated for each of the to-be-matched terminals according to the motion of the somatosensory sensor to obtain the image of the user's shaking terminal.
Step3、将当前终端的体感图像参数与M个待匹配终端发送的体感图像参数进行匹配,判断M个待匹配终端中是否存在体感图像参数与当前终端的体感图像参数相同的待匹配终端;Step 3: Matching the somatosensory image parameters of the current terminal with the somatosensory image parameters sent by the M to be matched terminals, and determining whether there are to-match terminals in the M to be matched terminals that have the same somatosensory image parameters as the somatosensory image parameters of the current terminal;
其中,结合Step1和Step2,在接收M个待匹配终端发送的体感图像参数后,以Step1中手机A的体感图像参数为“三角形”为例,在Step2接收到M个待匹配终端发送的体感图像参数后,对M个待匹配终端发送的体感图像参数与手机A的体感图像参数进行匹配,判断是否存在体感图像参数与手机A同为“三角形”的待匹配终端。After receiving the somatosensory image parameters sent by the M to be matched terminals, Step 1 and Step 2 are taken as an example, and the somatosensory image parameters of the mobile phone A in Step 1 are taken as "triangles", and the sentiment images sent by the M to be matched terminals are received in Step 2. After the parameter, the somatosensory image parameters sent by the M to be matched terminals are matched with the somatosensory image parameters of the mobile phone A, and it is determined whether there is a terminal to be matched that is the same as the "triangle" of the mobile phone A.
方式二,当图像参数为绘制图像参数时,判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端的步骤包括:In the second method, when the image parameter is a drawing image parameter, the step of determining whether there is a terminal to be matched in which the image parameter is the same as the image parameter of the current terminal in the M to be matched terminal includes:
Step1、捕捉使用当前终端的用户在屏幕上的滑动轨迹;Step 1. Capture the sliding track of the user who uses the current terminal on the screen;
其中,仍旧以步骤S102中当前终端以手机A为例,方式二为通过获取在手机A的屏幕上的滑动轨迹,进一步判断待匹配终端的滑动轨迹对应的图像参数是否与手机A相同的匹配方法,这里手机A捕捉用户当前在屏幕上的滑动轨迹。The method for determining whether the image parameter corresponding to the sliding track of the terminal to be matched is the same as that of the mobile phone A is still determined by taking the mobile phone A as the current terminal in step S102. Here, the mobile phone A captures the user's current sliding trajectory on the screen.
Step2、依据滑动轨迹生成第一类绘制图像参数;Step 2, generating a first type of drawing image parameters according to the sliding track;
其中,依据Step1中的滑动轨迹生成第一类绘制图像参数,假设若屏幕上的滑动轨迹为一个“圆形”或者“√”,则依据该滑动轨迹生成图像,即生成图像“○”或“√”。Wherein, according to the sliding trajectory in Step1, the first type of drawing image parameters are generated, and if the sliding trajectory on the screen is a “circle” or “√”, an image is generated according to the sliding trajectory, that is, an image “○” or “ √".
Step3、接收M个待匹配终端发送的第二类绘制图像参数; Step 3: Receive a second type of drawing image parameters sent by the M to be matched terminals;
其中,在Step2之后,手机A接收来自M个待匹配终端发送的第二绘制图像参数,这里的第二绘制图像参数可以为各个待匹配终端依据捕捉用户在屏幕上的滑动轨迹绘制生成的图像。After Step 2, the mobile phone A receives the second drawing image parameters sent from the M to-be-matched terminals, where the second drawing image parameter may be used to draw the generated image according to the sliding track of the capturing user on the screen.
Step4、将第一类绘制图像参数与M个待匹配终端发送的第二类绘制图像参数进行匹配,判断M个待匹配终端中是否存在与当前终端的第一类绘制图像参数相同的待匹配终端。Step 4: Matching the first type of drawing image parameters with the second type of drawing image parameters sent by the M to be matched terminals, and determining whether there are the same to be matched terminals in the M to be matched terminals that are the same as the first type of drawing image parameters of the current terminal. .
其中,结合Step1至Step3,假设手机A的第一类绘制图像为“○”,判断M个待匹配终端发送的第二类绘制图像参数中存在与第一类绘制图像“○”相同的待匹配终端。In the case of Step1 to Step3, it is assumed that the first type of drawing image of the mobile phone A is “○”, and it is determined that the second type of drawing image parameters sent by the M to be matched terminals have the same to be matched with the first type of drawing image “○”. terminal.
优选的,在步骤S104的方式三中判断在相同的晃动时间内,M个待匹配终端中是否存在晃动速度与当前终端的晃动速度相同的待匹配终端包括:Preferably, in the mode 3 of the step S104, it is determined whether the terminal to be matched that has the same shaking speed and the shaking speed of the current terminal in the M to be matched terminals in the same swaying time includes:
Step1、当当前终端的晃动速度大于第一阈值时,开始晃动计时,得到第一时间点;Step 1. When the shaking speed of the current terminal is greater than the first threshold, start shaking time to obtain the first time point;
其中,在如何确定晃动时间上,本申请实施例以检测到晃动速度大于第一阈值时的时间点为起始计时,仍旧以步骤S102中当前终端以手机A为例,当手机A中的加速度传感器获取当前手机的晃动速度大于门限第一阈值时,判定手机A开始晃动,并将该开始晃动的时间点记作第一时间点。In the method of determining the sloshing time, the embodiment of the present application starts from the time point when the swaying speed is greater than the first threshold, and the current terminal uses the mobile phone A as an example in step S102. When the sensor acquires that the shaking speed of the current mobile phone is greater than the threshold first threshold, it is determined that the mobile phone A starts to shake, and the time point at which the shaking starts is recorded as the first time point.
Step2、当当前终端的晃动速度小于第一阈值时,结束晃动计时,得到第二时间点;Step 2, when the shaking speed of the current terminal is less than the first threshold, ending the shaking timing, and obtaining the second time point;
其中,仍旧以Step1中的当前终端以手机A为例,在如何确定手机A晃动时间的结束时间点上,可以依据当手机A的晃动速度小于第一阈值时,判定手机A晃动结束,并开始将该晃动结束的时间点记做第二时间点。The mobile terminal A is still used as the example of the current terminal in Step 1. In the end point of how to determine the shaking time of the mobile phone A, it can be determined that when the shaking speed of the mobile phone A is less than the first threshold, it is determined that the mobile phone A is shaking and starts. The time point at which the shaking ends is recorded as the second time point.
Step3、依据第一时间点与第二时间点之间的时间区间,得到晃动时间;Step 3: obtaining a shaking time according to a time interval between the first time point and the second time point;
其中,结合Step1与Step2,通过确定的第一时间点与第二时间点之间的时间区间,即时间间隔,得到手机A晃动时间的时长。In combination, Step 1 and Step 2 are combined to determine the duration of the shaking time of the mobile phone A by using the determined time interval between the first time point and the second time point, that is, the time interval.
Step4、获取在晃动时间内当前终端的晃动速度;Step 4: Obtain the shaking speed of the current terminal during the shaking time;
其中,当前终端在晃动时间内的晃动速度可以为在该晃动时间内,加速度传感器获取的平均速度。 The swaying speed of the current terminal during the swaying time may be an average speed obtained by the acceleration sensor during the swaying time.
优选的,通过加速度传感器获取晃动速度后,再依据晃动时间与晃动速度之间的物理关系,通过计算得到在该晃动时间内的晃动速度的加速度。Preferably, after the swaying speed is acquired by the acceleration sensor, the acceleration of the swaying speed during the swaying time is obtained by calculation based on the physical relationship between the swaying time and the swaying speed.
Step5、判断M个待测终端中是否存在晃动时间与当前终端相同的待匹配终端,并在晃动时间相同的待匹配终端中选取晃动速度与当前终端相同的待匹配终端;Step 5: Determine whether there are to-be-matched terminals in the M terminals to be tested that have the same shaking time as the current terminal, and select the to-match terminals whose shaking speed is the same as the current terminal in the to-be-matched terminals with the same shaking time;
其中,在M个待测终端中选取晃动时间与当前终端相同的待匹配终端,并在选取晃动时间相同的待匹配终端中选取晃动速度与当前终端相同的待匹配终端。The to-be-matched terminal with the same shaking time as the current terminal is selected among the M terminals to be tested, and the to-be-matched terminal whose shaking speed is the same as the current terminal is selected in the to-be-matched terminal with the same shaking time.
优选的,基于Step4中的优选方案,在获取到当前终端的晃动速度的加速度后,在判断M个待匹配终端中是否存在晃动速度与当前终端相同的待匹配终端之前,首先通过晃动时间进行筛选,将M个待匹配终端中晃动时间与当前终端相同的待匹配终端筛选出来,在本发明实施例中,将M个待匹配终端中晃动时间与当前终端相同的待匹配终端的晃动速度的加速度进行判断,判断是否存在与当前终端的晃动速度的加速度进行对比,晃动速度的加速度相同的待匹配终端。Preferably, based on the preferred solution in Step 4, after obtaining the acceleration of the sloshing speed of the current terminal, before determining whether the M to be matched terminals have the same swaying speed as the current terminal, the sway time is first used for screening. In the embodiment of the present invention, the swaying speed of the M to be matched terminals is the same as that of the current terminal, and the swaying speed of the M to be matched terminals is the same as the current terminal. Judging is made to determine whether there is a terminal to be matched that has the same acceleration as the swaying speed of the current terminal and the same acceleration of the swaying speed.
在本发明实施例中,在步骤S102预先建立的通信链路之前,还包括:In the embodiment of the present invention, before the communication link established in advance in step S102, the method further includes:
步骤S101,开启近距离无线通信模块,获取在近距离无线通信模块的有效通信范围内的所有待匹配终端。Step S101, the short-range wireless communication module is turned on to acquire all the to-be-matched terminals within the effective communication range of the short-range wireless communication module.
其中,近距离无线通信模块可以包括:蓝牙或wifi,通过开启蓝牙或wifi,获取所有待匹配终端。The short-range wireless communication module may include: Bluetooth or wifi, and obtain all the terminals to be matched by turning on the Bluetooth or wifi.
综上,由于近距离无线通信模块可以包括:蓝牙或wifi,因此根据上述本申请实施例可以存在以下两种配对认证方法:In summary, since the short-range wireless communication module may include: Bluetooth or wifi, the following two types of pairing authentication methods may exist according to the above embodiment of the present application:
方法一,应用于手机蓝牙连接配对认证,具体如下:预先设置一个值,在挥动手机在空中画出图形的阶段,当传感器获取到手机的移动速度大于这个值的时候,认为手机此时正在被挥动,当手机移动速度小于这个值的时候,认为挥动结束。Method one is applied to mobile phone Bluetooth connection pairing authentication, as follows: preset a value, in the stage of waving the mobile phone to draw a graphic in the air, when the sensor obtains the moving speed of the mobile phone is greater than this value, it is considered that the mobile phone is being Waving, when the mobile phone moves faster than this value, the swing is considered to be over.
步骤201手机打开蓝牙开关,搜索周围可见设备。Step 201: The mobile phone turns on the Bluetooth switch and searches for visible devices around.
步骤202其中一个手机A作为配对发起方,选定要配对的手机B,发起配对请求。Step 202: One of the mobile phones A serves as a pairing initiator, selects the mobile phone B to be paired, and initiates a pairing request.
步骤203手机B收到并响应该配对请求。 Step 203, the mobile phone B receives and responds to the pairing request.
步骤204手机A收到要配对手机B响应消息,提示给用户,用户开始挥动手机A在空中划出一个图形,手机A通过传感器收集图形形状信息,当手机A移动速度低于预设值的时候,认为用户画图完成。将相关信息封装后,发送给要配对的手机B。Step 204: The mobile phone A receives a response message to be paired with the mobile phone B, prompts the user, and the user starts to wave the mobile phone A to draw a graphic in the air, and the mobile phone A collects the graphic shape information through the sensor, when the mobile phone A moves at a lower speed than the preset value. , think that the user draws the picture. The relevant information is encapsulated and sent to the mobile phone B to be paired.
步骤205手机B收到手机A发来的图形认证消息,提示用户也开始认证流程。手机B的用户挥动手机,按照事先约定画出相应的图形。Step 205, the mobile phone B receives the graphic authentication message sent by the mobile phone A, prompting the user to start the authentication process. The user of the mobile phone B waves the mobile phone and draws the corresponding graphic according to the prior agreement.
步骤206手机B通过传感器收集图形形状信息,与手机A的图形信息做比较,如果吻合则认为两个手机认证成功。可以开始后续文件共享或者发送的动作。Step 206: The mobile phone B collects the graphic shape information through the sensor, and compares with the graphic information of the mobile phone A. If the image is consistent, the two mobile phones are considered to be successfully authenticated. You can start subsequent file sharing or sending actions.
方法二,应用于wifi直连配对认证,具体如下:预先设置一个值,在挥动手机在空中画出图形的阶段,当传感器获取到手机的移动速度大于这个值的时候,认为手机此时正在被挥动,当手机移动速度小于这个值的时候,认为挥动结束。Method 2, applied to wifi direct connection pairing authentication, as follows: preset a value, in the stage of waving the mobile phone to draw graphics in the air, when the sensor obtains the moving speed of the mobile phone is greater than this value, it is considered that the mobile phone is being Waving, when the mobile phone moves faster than this value, the swing is considered to be over.
步骤301手机打开wifi直连开关,搜索周围可见设备。Step 301: The mobile phone turns on the wifi direct switch to search for visible devices around.
步骤302其中一个手机A作为配对发起方,选定要配对的手机B,发起配对请求。Step 302: One of the mobile phones A acts as a pairing initiator, selects the mobile phone B to be paired, and initiates a pairing request.
步骤303手机B收到并响应该配对请求。Step 303, the mobile phone B receives and responds to the pairing request.
步骤304手机A收到要配对手机B响应消息,提示给用户,用户开始挥动手机A在空中划出一个图形,手机A通过传感器收集图形形状信息,当手机A移动速度低于预设值的时候,认为用户画图完成。将相关信息封装后,发送给要配对的手机B。Step 304: The mobile phone A receives a response message to be paired with the mobile phone B, prompts the user, and the user starts to wave the mobile phone A to draw a graphic in the air, and the mobile phone A collects the graphic shape information through the sensor, when the mobile phone A moves at a lower speed than the preset value. , think that the user draws the picture. The relevant information is encapsulated and sent to the mobile phone B to be paired.
步骤305手机B收到手机A发来的图形认证消息,提示用户也开始认证流程。手机B的用户挥动手机,按照事先约定画出相应的图形。Step 305, the mobile phone B receives the graphic authentication message sent by the mobile phone A, prompting the user to start the authentication process. The user of the mobile phone B waves the mobile phone and draws the corresponding graphic according to the prior agreement.
步骤306手机B通过传感器收集图形形状信息,与手机A的图形信息做比较,如果吻合则认为两个手机认证成功。可以开始后续文件共享或者发送的动作。Step 306, the mobile phone B collects the graphic shape information through the sensor, and compares with the graphic information of the mobile phone A. If the image is consistent, the two mobile phones are considered to be successfully authenticated. You can start subsequent file sharing or sending actions.
本申请实施例中提到的当前终端以智能手机为例,仅以实现终端的匹配验证方法为准,在当前终端与M个待匹配终端之间,不限定是同类型移动终端之间的多媒体文件的共享,还可以适用于不同移动终端之间,例如,智能手机与平板电脑,智能手机与笔记本电脑等;此外,在所连接的待匹配终端数量上,本申请还可以实现群发功能,即一台终端设备向多台终端设备在实现身份匹配后,一对多的数据共享,提升数据的传输效率。The current terminal mentioned in the embodiment of the present application takes a smart phone as an example, and only performs the matching verification method of the terminal, and is not limited to the multimedia between the current terminal and the M to-be-matched terminals. The sharing of files can also be applied to different mobile terminals, for example, smart phones and tablets, smart phones and notebook computers, etc. In addition, the number of connected terminals to be matched can also implement the group sending function, that is, After a terminal device implements identity matching to multiple terminal devices, one-to-many data sharing improves data transmission efficiency.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但 很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the foregoing embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but In many cases the former is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种终端的匹配验证装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a matching verification device for a terminal is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
实施例二Embodiment 2
图2是根据本发明实施例的终端的匹配验证装置的结构框图,如图2所示,该装置包括:第一获取模块22,匹配模块24和共享模块26,其中,2 is a structural block diagram of a matching verification apparatus of a terminal according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a first obtaining module 22, a matching module 24, and a sharing module 26, where
第一获取模块22,设置为在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,体感数据用于筛选匹配的终端,其中,M为自然数,M大于或等于1;The first obtaining module 22 is configured to acquire, on the pre-established communication link, the somatosensory data collected by the M to be matched terminals for indicating the user action, and the somatosensory data is used to filter the matched terminal, where M is a natural number, M Greater than or equal to 1;
匹配模块24,设置为将M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与当前终端的体感数据匹配的N个待匹配终端;The matching module 24 is configured to match the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal, to obtain N to be matched terminals that match the somatosensory data of the current terminal;
共享模块26,设置为向N个待匹配终端共享多媒体文件,其中,N为自然数,N小于或等于M。The sharing module 26 is configured to share the multimedia file to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.
图3是根据本发明实施例的一种终端的匹配验证装置的结构框图,如图3所示,在体感数据至少包括:体感参数和终端标识的情况下,匹配模块24,包括:第一匹配单元241,第二匹配单元242和第三匹配单元243,其中,FIG. 3 is a structural block diagram of a matching verification apparatus for a terminal according to an embodiment of the present invention. As shown in FIG. 3, in a case where the somatosensory data includes at least: a somatosensory parameter and a terminal identifier, the matching module 24 includes: a first match. Unit 241, second matching unit 242 and third matching unit 243, wherein
第一匹配单元241,设置为当体感参数为图像参数时,判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端;The first matching unit 241 is configured to determine, when the somatosensory parameter is an image parameter, whether there is a terminal to be matched in which the image parameters of the M to be matched are the same as those of the current terminal;
第二匹配单元242,设置为当体感参数为晃动时间时,判断M个待匹配终端中是否存在晃动时间与当前终端的晃动时间相同的待匹配终端; The second matching unit 242 is configured to determine, when the somatosensory parameter is the shaking time, whether there is a terminal to be matched in which the shaking time of the M terminals to be matched is the same as the shaking time of the current terminal;
第三匹配单元243,设置为当体感参数为晃动速度和晃动时间时,判断在相同的晃动时间内,M个待匹配终端中是否存在晃动速度与当前终端的晃动速度相同的待匹配终端;The third matching unit 243 is configured to determine, when the somatosensory parameter is the swaying speed and the sloshing time, whether there are any to-match terminals in the M to-be-matched terminals that have the same sloshing speed and the swaying speed of the current terminal in the same swaying time;
在第一匹配单元241,第二匹配单元242或第三匹配单元243判断结果为是时,依据待匹配终端的终端标识选取M个待匹配终端中是否存在所需的待匹配终端。When the first matching unit 241, the second matching unit 242, or the third matching unit 243 determines that the result is YES, whether the required to-match terminal exists in the M to-be-matched terminals is selected according to the terminal identifier of the terminal to be matched.
图4是根据本发明实施例的另一种终端的匹配验证装置的结构框图,如图4所示,在图像参数至少包括:体感图像参数和绘制图像参数的情况下,第一匹配单元241,包括:第一获取子单元2411、第一接收子单元2412以及第一匹配子单元2413,或者,第二获取子单元2414、第二生成子单元2415、第二接收子单元2416以及第二匹配子单元2417,其中,4 is a structural block diagram of another terminal matching verification apparatus according to an embodiment of the present invention. As shown in FIG. 4, in a case where image parameters include at least: a somatosensory image parameter and a rendering image parameter, the first matching unit 241, The first obtaining subunit 2411, the first receiving subunit 2412, and the first matching subunit 2413, or the second obtaining subunit 2414, the second generating subunit 2415, the second receiving subunit 2416, and the second matching sub Unit 2417, wherein
第一获取子单元2411,设置为通过体感传感器获取当前终端的体感图像参数,体感图像参数为通过终端的体感传感器获取的与用户动作对应的体感图像参数;The first obtaining sub-unit 2411 is configured to acquire a somatosensory image parameter of the current terminal by using the somatosensory sensor, where the somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal;
第一接收子单元2412,设置为接收M个待匹配终端发送的体感图像参数;The first receiving subunit 2412 is configured to receive the somatosensory image parameters sent by the M to be matched terminals;
第一匹配子单元2413,设置为将当前终端的体感图像参数与M个待匹配终端发送的体感图像参数进行匹配,判断M个待匹配终端中是否存在体感图像参数与当前终端的体感图像参数相同的待匹配终端;或者,The first matching sub-unit 2413 is configured to match the somatosensory image parameters of the current terminal with the somatosensory image parameters sent by the M to-match terminals, and determine whether the somatosensory image parameters of the M to-be-matched terminals are the same as the somatosensory image parameters of the current terminal. To be matched to the terminal; or,
第二获取子单元2414,设置为捕捉使用当前终端的用户在屏幕上的滑动轨迹;a second obtaining subunit 2414 configured to capture a sliding trajectory of a user using the current terminal on the screen;
第二生成子单元2415,设置为依据滑动轨迹生成第一类绘制图像参数;The second generation subunit 2415 is configured to generate a first type of drawing image parameter according to the sliding track;
第二接收子单元2416,设置为接收M个待匹配终端发送的第二类绘制图像参数;The second receiving subunit 2416 is configured to receive the second type of drawing image parameters sent by the M to be matched terminals;
第二匹配子单元2417,设置为将第一类绘制图像参数与M个待匹配终端发送的第二类绘制图像参数进行匹配,判断M个待匹配终端中是否存在与当前终端的第一类绘制图像参数相同的待匹配终端。The second matching sub-unit 2417 is configured to match the first type of drawing image parameters with the second type of drawing image parameters sent by the M to be matched terminals, and determine whether there is a first type of drawing with the current terminal in the M to be matched terminals. The terminal to be matched with the same image parameters.
图5是根据本发明实施例的又一种终端的匹配验证装置的结构框图,如图5所示,第三匹配单元243包括:第一计时子单元2431,第二计时子单元2432,第三计时子单元2433,第三获取子单元2434以及第三匹配子单元2435,其中,FIG. 5 is a structural block diagram of a matching verification apparatus for a terminal according to an embodiment of the present invention. As shown in FIG. 5, the third matching unit 243 includes: a first timing subunit 2431, a second timing subunit 2432, and a third. a timing subunit 2433, a third obtaining subunit 2434, and a third matching subunit 2435, wherein
第一计时子单元2431,设置为当当前终端的晃动速度大于第一阈值时,开始晃动计时,得到第一时间点; The first timing subunit 2431 is configured to start the shaking timing when the shaking speed of the current terminal is greater than the first threshold, to obtain the first time point;
第二计时子单元2432,设置为当当前终端的晃动速度小于第一阈值时,结束晃动计时,得到第二时间点;The second timing sub-unit 2432 is configured to end the shaking timing when the shaking speed of the current terminal is less than the first threshold, to obtain a second time point;
第三计时子单元2433,设置为依据第一时间点与第二时间点之间的时间区间,得到晃动时间;The third timing sub-unit 2433 is configured to obtain a shaking time according to a time interval between the first time point and the second time point;
第三获取子单元2434,设置为获取在晃动时间内当前终端的晃动速度;The third obtaining subunit 2434 is configured to acquire a shaking speed of the current terminal during the shaking time;
第三匹配子单元2435,设置为判断M个待测终端中是否存在晃动时间与当前终端相同的待匹配终端,并在晃动时间相同的待匹配终端中选取晃动速度与当前终端相同的待匹配终端。The third matching sub-unit 2435 is configured to determine whether there are to-be-matched terminals in the M terminals to be tested that have the same shaking time as the current terminal, and select the to-be-matched terminal with the same shaking speed as the current terminal in the to-be-matched terminal with the same shaking time. .
图6是根据本发明实施例的再一种终端的匹配验证装置的结构框图,如图6所示,终端的匹配验证装置还包括:第二获取模块21,其中,FIG. 6 is a structural block diagram of a matching verification apparatus for a terminal according to an embodiment of the present invention. As shown in FIG. 6, the matching verification apparatus of the terminal further includes: a second obtaining module 21, where
第二获取模块21,设置为在预先建立的通信链路之前,开启近距离无线通信模块,获取在近距离无线通信模块的有效通信范围内的所有待匹配终端。The second obtaining module 21 is configured to enable the short-range wireless communication module to acquire all the to-be-matched terminals within the effective communication range of the short-range wireless communication module before the communication link established in advance.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
实施例三Embodiment 3
图7是根据本发明实施例的一种终端设备的结构示意图,如图7所示,本发明的实施例还提供了一种终端设备,包括:图2至图6任一所示的终端的匹配验证装置。FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in FIG. 7, an embodiment of the present invention further provides a terminal device, including: the terminal shown in any of FIG. 2 to FIG. Match the verification device.
实施例四Embodiment 4
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,体感数据用于筛选匹配的终端,其中,M为自然数,M大于或等于1;S1, on the pre-established communication link, acquire the somatosensory data collected by the M to be matched terminals for indicating the user action, and the somatosensory data is used to filter the matched terminal, where M is a natural number and M is greater than or equal to 1;
S2,将M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与当前终端的体感数据匹配的N个待匹配终端;S2, matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal, to obtain N to be matched terminals that match the somatosensory data of the current terminal;
S3,向N个待匹配终端共享多媒体文件,其中,N为自然数,N小于或等于M。 S3. Share the multimedia file to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,当体感参数为图像参数时,判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端;S1, when the somatosensory parameter is an image parameter, determining whether there is a terminal to be matched in which the image parameters of the M to be matched are the same as those of the current terminal;
S2,当体感参数为晃动时间时,判断M个待匹配终端中是否存在晃动时间与当前终端的晃动时间相同的待匹配终端;S2, when the somatosensory parameter is the swaying time, determining whether there is a terminal to be matched in which the swaying time is the same as the swaying time of the current terminal in the M to be matched terminals;
S3,当体感参数为晃动速度和晃动时间时,判断在相同的晃动时间内,M个待匹配终端中是否存在晃动速度与当前终端的晃动速度相同的待匹配终端;其中,在判断结果为是时,依据待匹配终端的终端标识选取M个待匹配终端中是否存在所需的待匹配终端。S3, when the somatosensory parameter is the sloshing speed and the sloshing time, it is judged whether there is a terminal to be matched in which the swaying speed is the same as the swaying speed of the current terminal in the M to be matched terminals in the same swaying time; wherein, the judgment result is The M to be matched terminals are selected according to the terminal identifier of the terminal to be matched.
其中,体感数据至少包括:体感参数和终端标识。The somatosensory data includes at least: a somatosensory parameter and a terminal identifier.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行判断M个待匹配终端中是否存在图像参数与当前终端的图像参数相同的待匹配终端包括:方式一,通过体感传感器获取当前终端的体感图像参数,体感图像参数为通过终端的体感传感器获取的与用户动作对应的体感图像参数;接收M个待匹配终端发送的体感图像参数;将当前终端的体感图像参数与M个待匹配终端发送的体感图像参数进行匹配,判断M个待匹配终端中是否存在体感图像参数与当前终端的体感图像参数相同的待匹配终端;方式二,捕捉使用当前终端的用户在屏幕上的滑动轨迹;依据滑动轨迹生成第一类绘制图像参数;接收M个待匹配终端发送的第二类绘制图像参数;将第一类绘制图像参数与M个待匹配终端发送的第二类绘制图像参数进行匹配,判断M个待匹配终端中是否存在与当前终端的第一类绘制图像参数相同的待匹配终端。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, whether the M-to-match terminal has the same image parameter as the image parameter of the current terminal, and the method includes: mode one, The somatosensory sensor acquires a somatosensory image parameter of the current terminal, and the somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal; receiving the somatosensory image parameter sent by the M to-be-matched terminal; and the somatosensory image parameter of the current terminal is The somatosensory image parameters sent by the M to be matched terminals are matched, and it is determined whether the M to be matched terminals have the same to be matched terminal as the somatosensory image parameters of the current terminal; and the second method is to capture the user using the current terminal on the screen. a sliding track; generating a first type of drawing image parameter according to the sliding track; receiving a second type of drawing image parameter sent by the M to be matched terminals; and drawing the first type of drawing image parameter and the second type of drawing image sent by the M to be matched terminals The parameters are matched to determine whether there are M terminals to be matched. The terminal to be matched that is the same as the first type of drawing image parameters of the current terminal.
其中,图像参数至少包括:体感图像参数和绘制图像参数。The image parameters include at least: a somatosensory image parameter and a drawn image parameter.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行判断在相同的晃动时间内,M个待匹配终端中是否存在晃动速度与当前终端的晃动速度相同的待匹配终端包括:当当前终端的晃动速度大于第一阈值时,开始晃动计时,得到第一时间点;当当前终端的晃动速度小于第一阈值时,结束晃动计时,得到第二时间点;依据第一时间点与第二时间点之间的时间区间,得到晃动时间;获取在晃动时间内当 前终端的晃动速度;判断M个待测终端中是否存在晃动时间与当前终端相同的待匹配终端,并在晃动时间相同的待匹配终端中选取晃动速度与当前终端相同的待匹配终端。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, whether the M to be matched terminals have the same shaking speed as the current terminal shaking speed in the same shaking time. The terminal includes: when the shaking speed of the current terminal is greater than the first threshold, starting the shaking timing to obtain the first time point; when the shaking speed of the current terminal is less than the first threshold, ending the shaking timing, obtaining the second time point; The time interval between the time point and the second time point, the shaking time is obtained; when the shaking time is acquired The swaying speed of the front terminal is determined. The M terminal to be tested is determined to have the same terminal to be matched with the same terminal as the current terminal, and the terminal to be matched whose swaying speed is the same as the current terminal is selected in the terminal to be matched with the same shaking time.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行在预先建立的通信链路之前,还包括:开启近距离无线通信模块,获取在近距离无线通信模块的有效通信范围内的所有待匹配终端。Optionally, in this embodiment, before the processor performs the pre-established communication link according to the stored program code in the storage medium, the method further includes: turning on the short-range wireless communication module to obtain the validity of the short-range wireless communication module. All terminals to be matched within the communication range.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
具体本申请实施例提供的终端的匹配验证方法如图8所示,图8是根据本发明另一实施例的终端的匹配验证方法的流程图,该方法包括以下步骤:FIG. 8 is a flowchart of a method for verifying a matching of a terminal according to another embodiment of the present invention. The method includes the following steps:
步骤S801,需要配对的手机打开搜索开关,搜索周围的终端设备;Step S801, the paired mobile phone needs to open a search switch to search for surrounding terminal devices;
步骤S802,一个终端作为连接发起方,以下简称发起终端,选中需要配对的终端,发起连接请求;Step S802, a terminal serves as a connection initiator, hereinafter referred to as an originating terminal, selects a terminal that needs to be paired, and initiates a connection request;
在本发明实施例中,被选中的终端,以下简称接收终端,收到连接请求,做出回复;In the embodiment of the present invention, the selected terminal, hereinafter referred to as the receiving terminal, receives the connection request and responds;
步骤S803,发起终端收到接收终端的回复,确认已经连接已经成功,开始发起身份认证;Step S803, the initiating terminal receives the reply of the receiving terminal, confirms that the connection has been successfully, and starts to initiate identity authentication.
步骤S804,发起终端的用户挥动终端,开始在空中画出一个图形;Step S804, the user of the initiating terminal waves the terminal, and starts to draw a graphic in the air;
在本发明实施例中,预先设定一个值,当终端的传感器判断当前手机移动速度大于这个值的时候,认为手机正在画认证图形,当手机移动速度小于这个值的时候,认为手机挥动结束。通过角速度传感器可以确定手机挥动时角度的变化情况。 In the embodiment of the present invention, a value is set in advance. When the sensor of the terminal determines that the current mobile phone moving speed is greater than this value, it is considered that the mobile phone is drawing an authentication graphic, and when the mobile phone moving speed is less than the value, the mobile phone is considered to be ending. The angular velocity sensor determines the change in the angle at which the phone is waving.
步骤S805,发起终端通过加速度传感器和角速度传感器,收集到手机画出图形的形状的信息,将相关图形信息组包发送给接收终端。Step S805, the initiating terminal collects the information of the shape of the graphic drawn by the mobile phone through the acceleration sensor and the angular velocity sensor, and sends the related graphic information group package to the receiving terminal.
在本发明实施例中,接收终端收到发起终端认证手势图形完成的消息,开始发起自己的认证流程;In the embodiment of the present invention, the receiving terminal receives the message that the initiating terminal authentication gesture graph is completed, and starts to initiate its own authentication process;
步骤S806,接收终端的用户挥动终端,在空中画出一个手势图形,接收终端通过传感器,收集到这个图形形状相关信息;Step S806, the user of the receiving terminal waves the terminal, draws a gesture graphic in the air, and the receiving terminal collects the graphic shape related information through the sensor;
步骤S807,比较发起终端和接收终端画出的图形形状信息,如果形状信息吻合,则认为双方配对认证成功,可以开始传送、共享文件。Step S807, comparing the shape shape information drawn by the initiating terminal and the receiving terminal. If the shape information is consistent, it is considered that the pairing authentication is successful, and the file can be transmitted and shared.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的技术方案,可以应用于终端的匹配验证过程中,采用在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,体感数据用于筛选匹配的终端,其中,M为自然数,M大于或等于1;将M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与当前终端的体感数据匹配的N个待匹配终端;向N个待匹配终端共享多媒体文件,其中,N为自然数,N小于或等于M。解决了相关技术中由于认证配对过程中需要先录入密码,再对录入的密码进行验证,最后在验证结果成功的情况下开始共享多媒体文件的认证配对过程中的步骤繁琐,导致验证效率低的问题,进而达到了提升验证效率的效果。 The technical solution provided by the embodiment of the present invention can be applied to the matching verification process of the terminal, and the somatosensory data collected by the M to be matched terminals for indicating the user action is acquired on the pre-established communication link, and the somatosensory data is used. Filtering the matched terminals, where M is a natural number and M is greater than or equal to 1; matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain N to be matched terminals that match the somatosensory data of the current terminal; The multimedia file is shared to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M. In the related art, since the password is required to be entered in the authentication pairing process, the entered password is verified, and finally, the steps in the authentication pairing process of starting the sharing of the multimedia file are cumbersome in the case where the verification result is successful, resulting in low verification efficiency. In order to improve the efficiency of verification.

Claims (11)

  1. 一种终端的匹配验证方法,包括:A matching verification method for a terminal, comprising:
    在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,所述体感数据用于筛选匹配的终端,其中,所述M为自然数,M大于或等于1;The somatosensory data collected by the M to be matched terminals for indicating the user action is obtained on the pre-established communication link, and the somatosensory data is used to filter the matched terminal, wherein the M is a natural number, and M is greater than or equal to 1 ;
    将所述M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与所述当前终端的体感数据匹配的N个待匹配终端;Matching the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal to obtain N to be matched terminals that match the somatosensory data of the current terminal;
    向所述N个待匹配终端共享多媒体文件,其中,所述N为自然数,N小于或等于M。Sharing a multimedia file to the N to-be-matched terminals, where N is a natural number and N is less than or equal to M.
  2. 根据权利要求1所述的方法,其中,在所述体感数据至少包括:体感参数和终端标识的情况下,将所述M个待匹配终端的体感数据与当前终端的体感数据进行匹配包括:The method of claim 1, wherein the matching the somatosensory data of the M to-be-matched terminals with the somatosensory data of the current terminal, in the case that the somatosensory data includes at least: a somatosensory parameter and a terminal identifier, includes:
    方式一,当所述体感参数为图像参数时,判断所述M个待匹配终端中是否存在所述图像参数与所述当前终端的图像参数相同的待匹配终端;In a first mode, when the somatosensory parameter is an image parameter, it is determined whether the M to be matched terminal has the same to be matched terminal as the image parameter of the current terminal;
    方式二,当所述体感参数为晃动时间时,判断所述M个待匹配终端中是否存在所述晃动时间与所述当前终端的晃动时间相同的待匹配终端;In the second mode, when the somatosensory parameter is the swaying time, it is determined whether the terminal to be matched is the same as the swaying time of the current terminal in the M to be matched terminals;
    方式三,当所述体感参数为晃动速度和晃动时间时,判断在相同的所述晃动时间内,所述M个待匹配终端中是否存在所述晃动速度与所述当前终端的晃动速度相同的待匹配终端;In the third manner, when the somatosensory parameter is the swaying speed and the swaying time, it is determined whether the swaying speed is the same as the swaying speed of the current terminal in the M to-be-matched terminals in the same swaying time. To be matched to the terminal;
    在所述方式一、方式二或方式三的判断结果为是时,依据所述待匹配终端的终端标识选取所述M个待匹配终端中是否存在所需的待匹配终端。When the result of the first mode, the second mode, or the third mode is YES, the terminal to be matched is selected according to the terminal identifier of the to-be-matched terminal.
  3. 根据权利要求2所述的方法,其中,在所述图像参数至少包括:体感图像参数和绘制图像参数的情况下,所述判断所述M个待匹配终端中是否存在所述图像参数与所述当前终端的图像参数相同的待匹配终端包括:The method according to claim 2, wherein, in a case where the image parameter includes at least: a somatosensory image parameter and a rendering image parameter, the determining whether the image parameter exists in the M to-be-matched terminals The terminal to be matched with the same image parameters of the current terminal includes:
    方式一,通过体感传感器获取所述当前终端的体感图像参数,所述体感图像参数为通过终端的体感传感器获取的与用户动作对应的体感图像参数; In a first mode, the somatosensory image parameter of the current terminal is obtained by the somatosensory sensor, and the somatosensory image parameter is a somatosensory image parameter corresponding to the user action acquired by the somatosensory sensor of the terminal;
    接收所述M个待匹配终端发送的体感图像参数;Receiving the somatosensory image parameters sent by the M to-be-matched terminals;
    将所述当前终端的体感图像参数与所述M个待匹配终端发送的体感图像参数进行匹配,判断所述M个待匹配终端中是否存在所述体感图像参数与所述当前终端的体感图像参数相同的待匹配终端;Matching the somatosensory image parameters of the current terminal with the somatosensory image parameters sent by the M to-be-matched terminals, and determining whether the somatosensory image parameters and the somatosensory image parameters of the current terminal are present in the M to-be-matched terminals The same terminal to be matched;
    方式二,捕捉使用所述当前终端的用户在屏幕上的滑动轨迹;The second mode captures a sliding track of the user using the current terminal on the screen;
    依据所述滑动轨迹生成第一类绘制图像参数;Generating a first type of drawing image parameter according to the sliding track;
    接收所述M个待匹配终端发送的第二类绘制图像参数;Receiving a second type of drawing image parameters sent by the M to-be-matched terminals;
    将所述第一类绘制图像参数与所述M个待匹配终端发送的第二类绘制图像参数进行匹配,判断所述M个待匹配终端中是否存在与所述当前终端的所述第一类绘制图像参数相同的待匹配终端。Matching the first type of drawing image parameters with the second type of drawing image parameters sent by the M to be matched terminals, and determining whether the first class of the current terminal is present in the M to be matched terminals Draw the terminal to be matched with the same image parameters.
  4. 根据权利要求2所述的方法,其中,所述判断在相同的所述晃动时间内,所述M个待匹配终端中是否存在所述晃动速度与所述当前终端的晃动速度相同的待匹配终端包括:The method according to claim 2, wherein the determining whether there is a terminal to be matched in which the swaying speed is the same as the swaying speed of the current terminal in the M to-be-matched terminals during the same swaying time include:
    当所述当前终端的晃动速度大于第一阈值时,开始晃动计时,得到第一时间点;When the shaking speed of the current terminal is greater than the first threshold, starting the shaking timing, obtaining the first time point;
    当所述当前终端的所述晃动速度小于所述第一阈值时,结束晃动计时,得到第二时间点;When the swaying speed of the current terminal is less than the first threshold, ending the swaying timing, obtaining a second time point;
    依据所述第一时间点与所述第二时间点之间的时间区间,得到所述晃动时间;Obtaining the shaking time according to a time interval between the first time point and the second time point;
    获取在所述晃动时间内所述当前终端的晃动速度;Obtaining a shaking speed of the current terminal during the shaking time;
    判断所述M个待测终端中是否存在所述晃动时间与所述当前终端相同的待匹配终端,并在所述晃动时间相同的待匹配终端中选取所述晃动速度与所述当前终端相同的待匹配终端。Determining, in the M terminals to be tested, whether the swaying time is the same as the current terminal, and selecting the swaying speed to be the same as the current terminal in the to-be-matched terminal having the same sway time To be matched to the terminal.
  5. 根据权利要求1所述的方法,其中,在预先建立的通信链路之前,还包括:The method of claim 1 further comprising: before the pre-established communication link, further comprising:
    开启近距离无线通信模块,获取在所述近距离无线通信模块的有效通信范围内的所有待匹配终端。The short-range wireless communication module is turned on to acquire all the to-be-matched terminals within the effective communication range of the short-range wireless communication module.
  6. 一种终端的匹配验证装置,包括:A matching verification device for a terminal, comprising:
    第一获取模块,设置为在预先建立的通信链路上,获取M个待匹配终端采集的用于指示用户动作的体感数据,所述体感数据用于筛选匹配 的终端,其中,所述M为自然数,M大于或等于1;a first acquiring module, configured to acquire, on a pre-established communication link, somatosensory data collected by the M to be matched terminals for indicating a user action, where the somatosensory data is used for filtering and matching Terminal, wherein the M is a natural number, and M is greater than or equal to 1;
    匹配模块,设置为将所述M个待匹配终端的体感数据与当前终端的体感数据进行匹配,得到与所述当前终端的体感数据匹配的N个待匹配终端;a matching module, configured to match the somatosensory data of the M to be matched terminals with the somatosensory data of the current terminal, to obtain N to be matched terminals that match the somatosensory data of the current terminal;
    共享模块,设置为向所述N个待匹配终端共享多媒体文件,其中,所述N为自然数,N小于或等于M。a sharing module, configured to share a multimedia file with the N to-be-matched terminals, where the N is a natural number and N is less than or equal to M.
  7. 根据权利要求6所述的装置,其中,在所述体感数据至少包括:体感参数和终端标识的情况下,所述匹配模块,包括:The device according to claim 6, wherein, in the case that the somatosensory data includes at least: a somatosensory parameter and a terminal identifier, the matching module includes:
    第一匹配单元,设置为当所述体感参数为图像参数时,判断所述M个待匹配终端中是否存在所述图像参数与所述当前终端的图像参数相同的待匹配终端;a first matching unit, configured to determine, when the somatosensory parameter is an image parameter, whether the M to be matched terminal has the same to be matched terminal as the image parameter of the current terminal;
    第二匹配单元,设置为当所述体感参数为晃动时间时,判断所述M个待匹配终端中是否存在所述晃动时间与所述当前终端的晃动时间相同的待匹配终端;a second matching unit, configured to determine, when the somatosensory parameter is a swaying time, whether the terminal to be matched is the same as the sway time of the current terminal in the M to be matched terminals;
    第三匹配单元,设置为当所述体感参数为晃动速度和晃动时间时,判断在相同的所述晃动时间内,所述M个待匹配终端中是否存在所述晃动速度与所述当前终端的晃动速度相同的待匹配终端;a third matching unit, configured to determine, when the somatosensory parameter is a swaying speed and a swaying time, whether the swaying speed and the current terminal are present in the M to-be-matched terminals in the same swaying time Shaking the terminal to be matched with the same speed;
    在所述第一匹配单元、第二匹配单元或第三匹配单元的判断结果为是时,依据所述待匹配终端的终端标识选取所述M个待匹配终端中是否存在所需的待匹配终端。When the determination result of the first matching unit, the second matching unit, or the third matching unit is YES, whether the required to-match terminal exists in the M to-be-matched terminals is selected according to the terminal identifier of the to-be-matched terminal. .
  8. 根据权利要求7所述的装置,其中,在所述图像参数至少包括:体感图像参数和绘制图像参数的情况下,所述第一匹配单元,包括:The device according to claim 7, wherein, in the case that the image parameter includes at least: a somatosensory image parameter and a rendering image parameter, the first matching unit comprises:
    第一获取子单元,设置为通过体感传感器获取所述当前终端的体感图像参数,所述体感图像参数为通过终端的体感传感器获取的与用户动作对应的体感图像参数;第一接收子单元,设置为接收所述M个待匹配终端发送的体感图像参数;第一匹配子单元,设置为将所述当前终端的体感图像参数与所述M个待匹配终端发送的体感图像参数进行匹配,判断所述M个待匹配终端中是否存在所述体感图像参数与所述当前终端的体感图像参数相同的待匹配终端;或者,a first acquiring subunit, configured to acquire a somatosensory image parameter of the current terminal by using a somatosensory sensor, wherein the somatosensory image parameter is a somatosensory image parameter corresponding to a user motion acquired by a somatosensory sensor of the terminal; the first receiving subunit, setting a somatosensory image parameter sent by the M to be matched terminals; the first matching subunit is configured to match the somatosensory image parameters of the current terminal with the somatosensory image parameters sent by the M to be matched terminals, and determine Whether there is a terminal to be matched in which the somatosensory image parameter is the same as the somatosensory image parameter of the current terminal in the M to be matched terminals; or
    第二获取子单元,设置为捕捉使用所述当前终端的用户在屏幕上的滑动轨迹;第二生成子单元,依据所述滑动轨迹生成第一类绘制图像参数;第二接收子单元,设置为接收所述M个待匹配终端发送的第二类绘制图像参数;第二匹配子单元,设置为将所述第一类绘制图像参数与所 述M个待匹配终端发送的第二类绘制图像参数进行匹配,判断所述M个待匹配终端中是否存在与所述当前终端的所述第一类绘制图像参数相同的待匹配终端。a second acquiring subunit, configured to capture a sliding trajectory of the user using the current terminal on the screen; a second generating subunit, generating a first type of drawing image parameter according to the sliding trajectory; and a second receiving subunit, being set to Receiving a second type of drawing image parameter sent by the M to-be-matched terminals; a second matching sub-unit, configured to map the first type of image parameters and The second type of drawing image parameters sent by the M to be matched terminals are matched, and it is determined whether the M to be matched terminals have the same to be matched terminal as the first type of drawing image parameters of the current terminal.
  9. 根据权利要求7所述的装置,其中,所述第三匹配单元包括:The apparatus of claim 7, wherein the third matching unit comprises:
    第一计时子单元,设置为当所述当前终端的晃动速度大于第一阈值时,开始晃动计时,得到第一时间点;a first timing subunit, configured to start a shaking timing when the shaking speed of the current terminal is greater than a first threshold, to obtain a first time point;
    第二计时子单元,设置为当所述当前终端的所述晃动速度小于所述第一阈值时,结束晃动计时,得到第二时间点;a second timing subunit, configured to end the shaking timing when the shaking speed of the current terminal is less than the first threshold, to obtain a second time point;
    第三计时子单元,设置为依据所述第一时间点与所述第二时间点之间的时间区间,得到所述晃动时间;a third timing subunit, configured to obtain the sway time according to a time interval between the first time point and the second time point;
    第三获取子单元,设置为获取在所述晃动时间内所述当前终端的晃动速度;a third acquiring subunit, configured to acquire a shaking speed of the current terminal during the shaking time;
    第三匹配子单元,设置为判断所述M个待测终端中是否存在所述晃动时间与所述当前终端相同的待匹配终端,并在所述晃动时间相同的待匹配终端中选取所述晃动速度与所述当前终端相同的待匹配终端。a third matching subunit, configured to determine whether the terminal to be matched with the same shaking time as the current terminal exists in the M terminals to be tested, and select the shaking in the to-be-matched terminal with the same shaking time The terminal to be matched with the same speed as the current terminal.
  10. 根据权利要求6所述的装置,其中,所述装置还包括:The apparatus of claim 6 wherein said apparatus further comprises:
    第二获取模块,设置为在预先建立的通信链路之前,开启近距离无线通信模块,获取在所述近距离无线通信模块的有效通信范围内的所有待匹配终端。The second obtaining module is configured to: before the pre-established communication link, enable the short-range wireless communication module to acquire all the to-be-matched terminals within the effective communication range of the short-range wireless communication module.
  11. 一种终端设备,包括:权利要求6至10中任一项所述的终端的匹配验证装置。 A terminal device comprising: the matching verification device of the terminal according to any one of claims 6 to 10.
PCT/CN2015/084861 2015-05-21 2015-07-22 Matching verification method, apparatus and device for terminals WO2016183925A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510262794.3A CN106302953A (en) 2015-05-21 2015-05-21 Coupling verification method, device and the equipment of a kind of terminal
CN201510262794.3 2015-05-21

Publications (1)

Publication Number Publication Date
WO2016183925A1 true WO2016183925A1 (en) 2016-11-24

Family

ID=57319223

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084861 WO2016183925A1 (en) 2015-05-21 2015-07-22 Matching verification method, apparatus and device for terminals

Country Status (2)

Country Link
CN (1) CN106302953A (en)
WO (1) WO2016183925A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473469A (en) * 2021-06-30 2021-10-01 苏州极目机器人科技有限公司 Matching method between terminal devices and first terminal device
CN113873452A (en) * 2021-09-08 2021-12-31 苏州九宫数字科技有限公司 Method, system and medium for establishing contact by capturing terminal action

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108711179B (en) * 2018-05-21 2022-07-19 杭州多技教育科技有限公司 Drawing reduction method and system
CN111010663B (en) * 2018-10-08 2022-03-08 腾讯科技(深圳)有限公司 Information sharing method and device, storage medium and computer equipment
CN110086933A (en) * 2019-04-25 2019-08-02 Oppo广东移动通信有限公司 Electronic equipment, shell color control method and computer readable storage medium
CN112929242B (en) * 2019-12-05 2023-04-07 佛山市云米电器科技有限公司 Household appliance control method, household appliance and computer readable storage medium
CN111427718B (en) * 2019-12-10 2024-01-23 杭州海康威视数字技术股份有限公司 File backup method, file recovery method and file recovery device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101889431A (en) * 2007-12-12 2010-11-17 索尼爱立信移动通讯有限公司 Interacting with devices based on physical device-to-device contact
CN102273184A (en) * 2008-12-30 2011-12-07 摩托罗拉移动公司 Method and apparatus for device pairing
CN104350808A (en) * 2012-06-29 2015-02-11 英特尔公司 Device, method, and system for securely pairing mobile communication devices using movement
CN104813642A (en) * 2012-11-27 2015-07-29 高通股份有限公司 Methods, apparatuses and computer readable medium for triggering a gesture recognition mode and device pairing and sharing via non-touch gestures

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523556B (en) * 2011-12-15 2015-02-18 百度在线网络技术(北京)有限公司 Matching method and system of mobile terminal as well as mobile terminal and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101889431A (en) * 2007-12-12 2010-11-17 索尼爱立信移动通讯有限公司 Interacting with devices based on physical device-to-device contact
CN102273184A (en) * 2008-12-30 2011-12-07 摩托罗拉移动公司 Method and apparatus for device pairing
CN104350808A (en) * 2012-06-29 2015-02-11 英特尔公司 Device, method, and system for securely pairing mobile communication devices using movement
CN104813642A (en) * 2012-11-27 2015-07-29 高通股份有限公司 Methods, apparatuses and computer readable medium for triggering a gesture recognition mode and device pairing and sharing via non-touch gestures

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473469A (en) * 2021-06-30 2021-10-01 苏州极目机器人科技有限公司 Matching method between terminal devices and first terminal device
CN113473469B (en) * 2021-06-30 2024-01-26 苏州极目机器人科技有限公司 Method for matching terminal equipment and first terminal equipment
CN113873452A (en) * 2021-09-08 2021-12-31 苏州九宫数字科技有限公司 Method, system and medium for establishing contact by capturing terminal action

Also Published As

Publication number Publication date
CN106302953A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016183925A1 (en) Matching verification method, apparatus and device for terminals
EP2428022B1 (en) Method and apparatus for proximity based pairing of mobile devices
US10225719B2 (en) Method and apparatus for establishing communication between an image photographing apparatus and a user device
CN103607536B (en) The control method and camera of camera
US20140013100A1 (en) Establish bidirectional wireless communication between electronic devices using visual codes
US9635018B2 (en) User identity verification method and system, password protection apparatus and storage medium
US9935949B2 (en) Systems and methods for mutual authentication of electronic devices
CN104507034B (en) Equipment connection method, device and terminal device
JP6580151B2 (en) Method and apparatus for accessing a smart camera
EP3276910A1 (en) Bluetooth-based identity recognition method and device
EP3275118B1 (en) Asset authentication in a dynamic, proximity-based network of communication devices
US11539799B2 (en) Method and apparatus for transferring information between electronic devices
CN104683104B (en) The method, apparatus and system of authentication
US20140073245A1 (en) Peer-to-peer communication initiated by shared physical experience
CN107979830B (en) Bluetooth connection method, device, equipment and storage medium for intelligent rearview mirror
KR102559827B1 (en) System for authenticating image based on blockchain and hash encryption technique and method thereof
TW201344461A (en) Handheld device and method for sharing data
CN109039990A (en) The method and device of behavior verifying is carried out based on identifying code
CN106464695A (en) Methods, systems, and media for authenticating a connection between a user device and a streaming media content device
CN104158659A (en) Anti-fake verifying method, device and system
WO2017012499A1 (en) Unmanned aerial vehicle control method, apparatus and system
KR101910757B1 (en) Local authentication
KR102118934B1 (en) Establish a shared secret between the first communication device and at least one second communication device
CN106156569A (en) A kind of event execution method, electronic equipment, relevant apparatus and system
TW201424335A (en) Electronic device and method for establishing communication between electronic devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15892303

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15892303

Country of ref document: EP

Kind code of ref document: A1