[go: up one dir, main page]

CN111093181B - Device matching method, electronic device and storage medium - Google Patents

Device matching method, electronic device and storage medium Download PDF

Info

Publication number
CN111093181B
CN111093181B CN201911132217.7A CN201911132217A CN111093181B CN 111093181 B CN111093181 B CN 111093181B CN 201911132217 A CN201911132217 A CN 201911132217A CN 111093181 B CN111093181 B CN 111093181B
Authority
CN
China
Prior art keywords
message
binding
equipment
server
bound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911132217.7A
Other languages
Chinese (zh)
Other versions
CN111093181A (en
Inventor
王亮
龚智辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Youke Yunlian Technology Co ltd
Original Assignee
Shenzhen Youke Yunlian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Youke Yunlian Technology Co ltd filed Critical Shenzhen Youke Yunlian Technology Co ltd
Priority to CN201911132217.7A priority Critical patent/CN111093181B/en
Publication of CN111093181A publication Critical patent/CN111093181A/en
Application granted granted Critical
Publication of CN111093181B publication Critical patent/CN111093181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/40Security arrangements using identity modules
    • H04W12/48Security arrangements using identity modules using secure binding, e.g. securely binding identity modules to devices, services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of communication, and provides a method for equipment matching, which comprises the following steps: acquiring a first direction of a first device and a second direction of a second device; and if the first direction and the second direction are detected to meet the preset condition, determining that the first equipment and the second equipment are matched. By detecting whether the first direction of the first device and the second direction of the second device meet preset conditions, matching of the first device and the second device is achieved. Thereby facilitating the further cooperation of the two devices.

Description

Device matching method, electronic device and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a device matching method, electronic equipment and a storage medium.
Background
In some application scenarios, two devices need to work together, for example, with a WiFi and a mobile terminal. The portable WiFi needs to accept control or configuration of the mobile terminal, or the portable WiFi needs to establish a connection with the mobile terminal to maintain communication. Before the cooperation works, two devices need to be matched, so a method for matching devices is needed.
Disclosure of Invention
The embodiment of the application provides a device matching method, electronic device and storage medium, which can solve at least part of problems in the background technology.
In a first aspect, an embodiment of the present application provides a method for device matching, including:
acquiring a first direction of a first device and a second direction of a second device;
and if the first direction and the second direction are detected to meet the preset condition, determining that the first equipment and the second equipment are matched.
It can be appreciated that by detecting whether the first direction of the first device and the second direction of the second device meet the preset condition, matching of the first device and the second device is achieved. Thereby facilitating the further cooperation of the two devices.
In a second aspect, an embodiment of the present application provides a method for device matching, which is applied to a first device, and includes:
sending a message to be bound to a server, wherein the message to be bound contains a first direction of the first device; the message to be bound is used for indicating that the server determines that the first device and the second device are matched if the first direction and the second direction are detected to meet a preset condition after the server obtains the first direction of the first device and the second direction of the second device.
In a second aspect, an embodiment of the present application provides a method for device matching, which is applied to a second device, and includes:
sending a message to be bound to a server, wherein the message to be bound contains a first direction of the first device; the message to be bound is used for indicating that the server determines that the first device and the second device are matched if the first direction and the second direction are detected to meet a preset condition after the server obtains the first direction of the first device and the second direction of the second device.
In a third aspect, an embodiment of the present application provides an apparatus for device matching, including:
the acquisition module is used for acquiring a first direction of the first equipment and a second direction of the second equipment;
and the detection module is used for determining that the first equipment is matched with the second equipment if the first direction and the second direction are detected to meet the preset condition.
In a fourth aspect, an embodiment of the present application provides an electronic device, including:
comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method steps according to the first aspect described above when the computer program is executed.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium comprising: the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method steps of the first aspect described above.
Sixth aspect embodiments of the present application provide a computer program product for causing an electronic device to carry out the method steps of the first aspect described above when the computer program product is run on the electronic device.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system provided in an embodiment of the present application;
FIG. 2 is a flow chart of a method for device matching according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for device matching provided in another embodiment of the present application;
FIG. 4 is a flow chart of a method for device matching provided in another embodiment of the present application;
FIG. 5 is a flow chart of a method for device matching provided in another embodiment of the present application;
FIG. 6 is a schematic information interaction flow chart of a method for device matching according to an embodiment of the present application;
FIG. 7 is a flow chart of a method for device matching provided in another embodiment of the present application;
FIG. 8 is a flow chart of a method for device matching provided in another embodiment of the present application;
FIG. 9 is a schematic structural view of an apparatus for device matching according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In the case where two devices need to cooperate, the two devices need to be matched before cooperation. Thus, communication or binding and other operations can be performed on the basis of device matching. For example, the user needs to match with the portable WiFi using the mobile terminal, and then bind with the portable WiFi or perform authentication to perform wireless communication through the portable WiFi. In the prior art, there are a matching mode based on graphic coding, a matching mode based on sound and a matching mode based on near field communication. The embodiment of the application provides a direction-based matching mode. The embodiment of the application also provides a method for binding two devices based on the direction matching mode, so as to provide a convenient device binding mode.
Fig. 1 shows a device matching system 100 provided in an embodiment of the present application, where the system 100 includes a server 110, a first device 120, and a second device 130.
Wherein the server 110 and the first device 120 are connected through a wired or wireless communication network; the server 110 and the second device 130 are connected through a wired or wireless communication network.
The first device 120 and the second device 130 may communicate through the server 110, or may communicate through a wired or wireless network connection established by a matching relationship after the first device 120 and the second device 130 are successfully matched.
The server 110 may be an independent server, a server cluster, a distributed server, or a cloud server.
The first device 120 may be a fixed device provided with the direction sensing device and the communication device, for example, a fixed communication device, a fixed detection device, or a mobile device provided with the direction sensing device and the communication device, for example, a device such as a WiFi, a bicycle, or a vehicle-mounted device. It is understood that the first device may also be a mobile phone, tablet, wearable device, vehicle-mounted device, augmented reality (augmented reality, AR)/Virtual Reality (VR) device, notebook, ultra-mobile personal computer, UMPC, netbook, personal digital assistant (personal digital assistant, PDA), or other terminal device.
The second device 130 may be a mobile device provided with a direction sensing device and a communication device, such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), and other terminal devices.
Wherein the communication means includes, but is not limited to, communication means for wired or wireless communication network communication.
Among them, the direction sensing means includes, but is not limited to, geomagnetic sensing means, gyroscopes, acceleration sensors, etc. may be used to obtain a sensor of the direction of the device or the direction of movement.
Fig. 2 shows a method for matching devices provided in the embodiment of the present application, which is applied to a server in the device matching system shown in fig. 1 and may be implemented by software/hardware of the server. As shown in fig. 2, the method includes steps S110 to S120. The specific implementation principle of each step is as follows:
s110, acquiring a first direction of the first device and a second direction of the second device.
In one non-limiting example, a server obtains a first direction of a first device, such as a personal WiFi, and a second direction of a second device, such as a mobile terminal.
Without limitation, the server obtains the first direction of the portable WiFi and the second direction of the mobile terminal required by the server through the first direction or the second direction stored in the storage device in advance.
The server obtains the first direction of the portable WiFi by receiving a message sent by the portable WiFi, for example, a message to be bound; wherein the message to be bound comprises a first direction; the server obtains the second direction of the mobile terminal by receiving a message sent by the mobile terminal, such as a request binding message; wherein the request-binding message contains the second direction. The server responds to the message to be bound sent by the first equipment and stores a first direction corresponding to the first equipment; the server responds to the binding request message sent by the second device and searches a first direction corresponding to the first device to be bound.
In one non-limiting example, the server obtains the orientation of the first device and the second device by identifying images of the first device and the second device within the same scene obtained by the camera device.
The first direction and the second direction may be, but not limited to, directions of a three-dimensional control, and may also be directions of projection of directions of the first device or the second device in a three-dimensional space on a preset plane, for example, a horizontal plane, on the plane.
And S120, if the first direction and the second direction are detected to meet the preset condition, determining that the first equipment and the second equipment are matched.
In one non-limiting example, the first direction and the second direction are directions of projection of three-dimensional control directions of the first device and the second device on a horizontal plane. If the server detects that the first direction and the second direction meet the preset conditions, for example, the server detects that the included angle between the first direction and the second direction is in a first preset range, the first device and the second device are determined to be matched. The first preset range comprises an angle interval in which a preset angle is increased or decreased by a first threshold value; wherein the preset angles include, but are not limited to: at least one of 0 degrees, 90 degrees, 180 degrees, or 270 degrees; wherein the first threshold may be an angular error, such as 10 degrees. It will be appreciated that in some alternative embodiments, the server determines that the first device and the second device match if it detects that the angle between the first direction and the second direction is within an angle range of 0 degrees plus or minus 5 degrees. In other alternative embodiments, the server detects that the included angle between the first direction and the second direction is within at least one of an angle range of 0 degrees plus or minus 5 degrees, and an angle range of 90 degrees plus or minus 5 degrees, and determines that the first device and the second device are matched. The person skilled in the art may choose the combination of the preset intervals in which the included angles of the first device and the second device are located according to the actual situation.
It may be appreciated that the relationship between the first direction of the first device and the second direction of the second device detected by the server is the same, perpendicular or opposite within the angular error range corresponding to the first threshold, and then the first device and the second device are determined to match. It will be appreciated that in some alternative embodiments, the relationship between the first direction of the first device and the second direction of the second device detected by the server is the same within the range of angular errors corresponding to the first threshold and the same perpendicular within the range of angular errors corresponding to the first threshold, both determining that the first device and the second device match. The person skilled in the art may choose a combination of different positional relations of the first device and the second device according to the actual situation.
In one non-limiting example, if the server detects that the direction of the mobile terminal and the direction of the portable WiFi are the same within 5 degrees of error, it determines that the mobile terminal and the portable WiFi match.
It will be appreciated that by obtaining a first orientation of a first device and a second orientation of a second device; if the first direction and the second direction are detected to meet the preset condition, determining that the first equipment and the second equipment are matched; the matching operation of the first equipment and the second equipment can be realized, and the matching relation is determined.
On the basis of the embodiment of the method for device matching shown in fig. 2, before determining that the first device and the second device match, as shown in fig. 3, the method further includes:
s115, acquiring a first position of the first device and a second position of the second device.
In one non-limiting example, the server obtains the first location of the first device and the second location of the second device from the location data stored by the storage device.
In one non-limiting example, a server obtains a first location of a first device and a second location of a second device by receiving a location message sent by the first device and receiving a location message sent by the second device
S116, determining that the distance between the first position and the second position is smaller than a first preset distance.
In one non-limiting example, after the server obtains the first location and the second location, the server calculates a distance between the first location and the first location, and determines that the distance between the first location and the second location is less than a first predetermined distance, for example, 0.5 meters.
In one non-limiting example, a server obtains a first longitude and latitude of an on-board WiFi by receiving a location message of the on-board WiFi; the server obtains the second longitude and latitude of the mobile terminal by receiving the position message of the mobile terminal, and determines whether the independence between the portable WiFi and the mobile terminal is smaller than a first preset distance, for example, 1 meter by calculating the distance between the first longitude and latitude and the second longitude and latitude.
It will be appreciated that before determining that the first device and the second device match, the distance between the first location of the first device and the second location of the second device is calculated, and only devices within a predetermined distance may be matched, preventing a mismatch between two devices that are far apart.
It will be appreciated that steps S115 and S116 may be performed at any time before the first device and the second device are determined to match, and that the embodiment shown in fig. 3 is merely an example given for facilitating understanding of the present application, and is not a specific limitation of the present application.
On the basis of the embodiment of the device matching method shown in fig. 2, before acquiring the first direction of the first device and the second direction of the second device, as shown in fig. 4, the method further includes:
s105, receiving first identity identification information sent by the first equipment;
s106, receiving second identification information sent by the second equipment.
In one non-limiting example, the server stores first identity information of the first device in the storage device by reading the first identity information; the server reads the second identification information of the second device pre-stored in the storage device.
In one non-limiting example, a server obtains first identity information for a first device by receiving a message sent by the first device; the server acquires second identity information of the second device by receiving the message sent by the second device.
By acquiring first identity information of the first device, such as information of an ID, a communication token, an access address, etc. of the first device; acquiring first identity information of a first device, such as information of an ID, a communication token, an access address and the like of the first device; a more accurate matching can be achieved and binding operations to the first device and the second device can be achieved.
On the basis of the embodiment of the method for matching devices shown in fig. 4, after determining that the first device and the second device are matched, as shown in fig. 5, the method further includes:
s130, establishing a binding relationship between the first device and the second device.
As shown in fig. 6, in one non-limiting example, the server receives a first device, e.g., a WiFi with one, and sends a first identity information, e.g., an ID and an access address of the WiFi with one; the server receives second identification information, such as an ID and an access address, of the mobile terminal, which is sent by the second device, such as the mobile terminal; after receiving a message to be bound sent by a first device, the server stores the first position of the first device by the message to be bound, so as to conveniently determine a second device matched with the first device for the first device. After receiving the request binding message sent by the second device, the server searches the first direction corresponding to the first device to be bound for the second device, wherein the request binding message contains the second direction. If the server detects that the first direction of the first device and the second direction of the second device are the same within the error of the first threshold, namely, the included angle of the first direction and the second direction within the error of the first threshold is 0 degrees, the first device and the second device are determined to be matched.
The server sends a binding prompt message to the second device, wherein the binding prompt message is used for indicating the second device to generate a binding establishment message; after receiving the binding prompt message, the second device displays the matched first device information to the user through the user interface, and prompts the user whether to bind the first device. The second device generates a binding establishment message after receiving the operation of determining the binding of the first device by the user, and the second device sends the binding establishment message to the server. After receiving the binding establishment message sent by the second device, the server registers the binding relationship between the first device and the second device according to the binding establishment message; the server sends a first binding success message to the first device, wherein the first binding success message contains the second identity information; the server sends a second binding success message to the second device, wherein the second binding success message contains the first identity identification information, so that the user can check and determine that the first device is the first device requesting binding.
It can be appreciated that, by implementing the flow of the device binding method according to the embodiment shown in fig. 6, the binding of the two devices can be conveniently implemented by the directions of the first device and the second device, so that the communication or the interoperability between the two devices can be further implemented.
On the basis of the embodiment of the method for matching devices shown in fig. 5, after establishing the binding relationship between the first device and the second device, as shown in fig. 7, the method further includes:
s140, setting a state mark corresponding to the first equipment to be a bound state; and determining whether to respond to the request of the other second devices for binding the first device according to the authorization of the second device bound by the first device.
In one non-limiting example, the server establishes a binding relationship between a first device, such as a personal WiFi, and a second device, such as a mobile terminal; the server sets the equipment flag of the carry-on WiFi in the server to be in a bound state. When other mobile terminals initiate a request for binding the first device, the server sends an authorization inquiry message to the mobile terminal bound with the carry-on WiFi, wherein the authorization inquiry message comprises the identity identification information of the carry-on WiFi and the identity identification information of the mobile terminal requesting binding the carry-on WiFi, and if the mobile terminal returns an authorization message, the authorization message comprises the authorization information for requesting binding the carry-on WiFi, the server responds to the binding message of the terminal device requesting binding the carry-on WiFi according to the authorization message; if the mobile terminal returns a refusal authorization message, wherein the refusal authorization message comprises refusal authorization information for requesting to bind the portable WiFi, the server refuses to respond to the binding message of the terminal equipment requesting to bind the portable WiFi according to the refusal authorization message.
In one non-limiting example, the server establishes a binding relationship between a first device, such as a personal WiFi, and a second device, such as a mobile terminal; the server sets the equipment flag of the carry-on WiFi in the server to be in a bound state. When other mobile terminals initiate requests for binding the first equipment, the server judges whether to respond to binding information of the other second equipment requesting binding the first equipment according to the second equipment authorization information which is prestored in the storage device and is bound with the first equipment.
On the basis of the embodiment of the method for matching devices shown in fig. 7, after setting the state flag corresponding to the first device to the bound state, as shown in fig. 8, the method further includes:
s150, receiving a state reset message of the first device.
In one non-limiting example, a user of a first device, such as a WiFi, triggers the WiFi to send a status reset message to a server via a trigger of the WiFi, such as a reset button or a reset control of an operation interface.
S160, setting the state mark of the first device to be in a state to be bound according to the state reset message.
In one non-limiting example, after receiving a status reset message of a first device, such as a portable WiFi, the server sets a status flag of the portable WiFi from a bound status to a to-be-bound status according to the status reset message, so that a request binding message of the portable WiFi may be requested to be bound in response to a second device, such as a mobile terminal.
The embodiment of the application provides a device matching method, which is applied to a first device in the device matching system shown in fig. 1 and can be realized by software/hardware of the first device. The method comprises step S210. The specific implementation principle of each step is as follows:
s210, sending a message to be bound to a server, wherein the message to be bound contains a first direction of the first device; the message to be bound is used for indicating that the server determines that the first device and the second device are matched if the first direction and the second direction are detected to meet a preset condition after the server obtains the first direction of the first device and the second direction of the second device.
In one non-limiting example, a first device, such as a personal WiFi, sends a message to be bound to a server, the message to be bound containing a first direction of the personal WiFi. After receiving the message to be bound, the server acquires the first direction in the message to be bound and stores the first direction. When the server receives a binding request message of a second device, such as a mobile terminal, the server obtains a pre-stored first direction and a second direction included in the binding request. The server detects the obtained first direction and second direction, and if the first direction and the second direction are detected to meet the preset conditions, the first device and the second device are determined to be matched.
In one non-limiting example, the first device, e.g., the on-the-fly WiFi, after sending the message to be bound to the server, further comprises: receiving a first binding success message sent by the server at any time; the first binding success message contains second identification information of a second device, e.g. a mobile terminal.
In one non-limiting example, the first device, e.g., a WiFi with one, may respond to a status reset operation at any time, e.g., a reset button is pressed or a reset instruction is received through an operation interface, and send a status reset message to the server; the state reset message is used for indicating the server to set the state mark of the corresponding first equipment to be in a state to be bound according to the state reset message.
The first device may, through a state reset operation, send a state reset message to the server, unbind by sending a state reset message to the server in case of a false binding or in case of a need to unbind.
The embodiment of the application provides a device matching method, which is applied to the second device in the device matching system shown in fig. 1 and can be realized by software/hardware of the second device. The method comprises step S310. The specific implementation principle of each step is as follows:
S310, sending a request binding message to a server, wherein the request binding message comprises a second direction of the second equipment; the second direction is used for indicating the server to determine that the first device and the second device are matched if the first direction and the second direction are detected to meet a preset condition after the first direction of the first device and the second direction of the second device are acquired.
In one non-limiting example, a second device, such as a mobile terminal, sends a request binding message to a server, the request binding message containing a second direction of the second device. After receiving the binding message, the server inquires a prestored first direction of first equipment, detects whether the first direction matched with the second direction exists or not and the first equipment corresponding to the first direction, namely, detects whether the first direction and the second direction meet preset conditions or not, and if so, determines that the first equipment is matched with the second equipment.
In a non-limiting example, after the second device, for example, the mobile terminal, sends the binding request message to the server, the second device further includes, in response to the binding prompt message sent by the server, displaying an operation interface corresponding to the binding prompt message; responding to the binding confirmation operation acquired from the operation interface, and generating a binding establishment message; and sending a binding establishment message to the server.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Fig. 9 shows a device matching apparatus provided in the embodiment of the present application, where the device matching apparatus is applied to the server shown in fig. 1, where the method corresponds to the device matching method provided in the embodiment shown in fig. 2, and the device includes:
an acquiring module M110, configured to acquire a first direction of a first device and a second direction of a second device;
a detection module M120, configured to determine that the first device and the second device match if the first direction and the second direction are detected to satisfy a preset condition
Corresponding to the device matching method provided in the embodiment applied to the first device shown in fig. 1, the embodiment of the application provides a device matching apparatus, where the device matching apparatus includes:
a first message sending module M210, configured to send a message to be bound to a server, where the message to be bound includes a first direction of the first device; the message to be bound is used for indicating that the server determines that the first device and the second device are matched if the first direction and the second direction are detected to meet a preset condition after the server obtains the first direction of the first device and the second direction of the second device.
Corresponding to the device matching method provided in the embodiment applied to the second device shown in fig. 1, another device matching apparatus is provided in the embodiment of the present application, where the apparatus includes:
a second message sending module M310, configured to send a request binding message to a server, where the request binding message includes a second direction of the second device; the second direction is used for indicating the server to determine that the first device and the second device are matched if the first direction and the second direction are detected to meet a preset condition after the first direction of the first device and the second direction of the second device are acquired.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device D10 of this embodiment includes: at least one processor D100 (only one is shown in fig. D10), a memory D101 and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, the processor D100 implementing the steps in any of the various method embodiments described above when executing the computer program D102. Alternatively, the processor D100 performs the functions of the modules/units in the above-described device embodiments when executing the computer program D102.
The electronic device is configured to implement at least one of the server, the first device, and the second device. The electronic device D10 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The electronic device may include, but is not limited to, a processor D100, a memory D101. It will be appreciated by those skilled in the art that the diagram D10 is merely an example of the electronic device D10 and is not meant to be limiting of the electronic device D10, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor D100 may be a central processing unit (Central Processing Unit, CPU), the processor D100 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory D101 may in some embodiments be an internal storage unit of the electronic device D10, such as a hard disk or a memory of the electronic device D10. The memory D101 may also be an external storage device of the electronic device D10 in other embodiments, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the electronic device D10. Further, the memory D101 may also include both an internal storage unit and an external storage device of the electronic device D10. The memory D101 is used for storing an operating system, an application program, a boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory D101 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a network device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that may be performed in the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (14)

1. A method of device matching, comprising:
acquiring a first direction of a first device and a second direction of a second device, comprising: the method comprises the steps of acquiring a first direction of a first device and a second direction of a second device by identifying images of the first device and the second device in the same scene acquired by an image acquisition device; the first device is a carry-on WiFi, and the second device is a mobile terminal;
If the first direction and the second direction are detected to meet the preset condition, determining that the first equipment and the second equipment are matched;
establishing a binding relationship between the first device and the second device, including: sending a binding prompt message to the second device, wherein the binding prompt message is used for indicating the second device to generate a binding establishment message; receiving the binding establishment message sent by the second device; registering a binding relationship between the first device and the second device according to the binding establishment message; sending a first binding success message to the first device, wherein the first binding success message comprises second identification information of the second device; sending a second binding success message to the second device, wherein the second binding success message comprises first identity identification information of the first device;
setting a state mark corresponding to the first equipment to be a bound state; determining a binding message for requesting binding of the first device in response to other second devices according to the authorization of the second device to which the first device has been bound, including: if the second device returns an authorization message, wherein the authorization message contains authorization information for requesting to bind the portable WiFi, the second device responds to binding messages of other second devices requesting to bind the portable WiFi according to the authorization message; and if the second equipment returns a refusal authorization message which contains refusal authorization information for requesting to bind the portable WiFi, refusing to respond to the binding message of other second equipment requesting to bind the portable WiFi according to the refusal authorization message.
2. The method of claim 1, wherein detecting that the first direction and the second direction meet a preset condition comprises:
and detecting that the included angle between the first direction and the second direction is in a first preset range.
3. The method of claim 2, wherein the first predetermined range comprises:
an angle interval for adding and subtracting a first threshold value from a preset angle;
wherein the preset angle includes at least one of 0 degrees, 90 degrees, 180 degrees, and 270 degrees.
4. A method as claimed in any one of claims 1 to 3, wherein before determining that the first device and the second device match, further comprises:
acquiring a first position of the first device and a second position of the second device;
and determining that the distance between the first position and the second position is smaller than a first preset distance.
5. The method of claim 1, wherein obtaining a first direction of a first device and a second direction of a second device comprises:
responding to a message to be bound sent by the first equipment, and storing a first direction corresponding to the first equipment, wherein the message to be bound contains the first direction of the first equipment;
And responding to a request binding message sent by the second equipment, searching a first direction corresponding to the first equipment to be bound, wherein the request binding message comprises a second direction of the second equipment.
6. The method of claim 5, acquiring a first direction of a first device and a second direction of a second device, further comprising:
acquiring first identity identification information of the first equipment;
and acquiring second identification information of the second equipment.
7. The method of claim 1, wherein after setting the status flag corresponding to the first device to the bound status, further comprising:
receiving a state reset message of the first device;
and setting the state mark of the first equipment to be in a state to be bound according to the state reset message.
8. A device matching method, applied to a first device, the method comprising:
sending a message to be bound to a server, wherein the message to be bound contains a first direction of the first device; the message to be bound is used for indicating that the server determines that the first device and the second device are matched if the first direction and the second direction are detected to meet a preset condition after acquiring the first direction of the first device and the second direction of the second device; the server establishes a binding relationship between the first device and the second device, including: sending a binding prompt message to the second device, wherein the binding prompt message is used for indicating the second device to generate a binding establishment message; receiving the binding establishment message sent by the second device; registering a binding relationship between the first device and the second device according to the binding establishment message; sending a first binding success message to the first device, wherein the first binding success message comprises second identification information of the second device; sending a second binding success message to the second device, wherein the second binding success message comprises first identity identification information of the first device; the server is further configured to set a status flag corresponding to the first device to a bound status; determining a binding message for requesting binding of the first device in response to other second devices according to the authorization of the second device to which the first device has been bound, including: if the second device returns an authorization message, wherein the authorization message contains authorization information for requesting binding of the portable WiFi, the second device responds to binding messages of other second devices requesting binding of the portable WiFi according to the authorization message; if the second device returns a refusal authorization message, wherein the refusal authorization message comprises refusal authorization information for requesting to bind the portable WiFi, and then the binding message of other second devices requesting to bind the portable WiFi is refused according to the refusal authorization message; the method comprises the steps that a server obtains images of first equipment and second equipment in the same scene through identification of the image of the first equipment and the second equipment, the first equipment is carried WiFi, and the second equipment is a mobile terminal through identification of the images.
9. The method of claim 8, further comprising, after sending the message to be bound to the server:
receiving a first binding success message sent by the server; the first binding success message contains second identification information of the second device.
10. The method as recited in claim 8, further comprising:
transmitting a state reset message to the server in response to a state reset operation; the state reset message is used for indicating the server to set the state mark of the corresponding first equipment to be in a state to be bound according to the state reset message.
11. A device matching method, applied to a second device, the method comprising:
sending a request binding message to a server, wherein the request binding message comprises a second direction of the second device; the second direction is used for indicating the server to determine that the first device and the second device are matched if the first direction and the second direction are detected to meet a preset condition after the first direction of the first device and the second direction of the second device are acquired; the server establishes a binding relationship between the first device and the second device, including: sending a binding prompt message to the second device, wherein the binding prompt message is used for indicating the second device to generate a binding establishment message; receiving the binding establishment message sent by the second device; registering a binding relationship between the first device and the second device according to the binding establishment message; sending a first binding success message to the first device, wherein the first binding success message comprises second identification information of the second device; sending a second binding success message to the second device, wherein the second binding success message comprises first identity identification information of the first device; the server is further configured to set a status flag corresponding to the first device to a bound status; determining a binding message for requesting binding of the first device in response to other second devices according to the authorization of the second device to which the first device has been bound, including: if the second device returns an authorization message, wherein the authorization message contains authorization information for requesting binding of the portable WiFi, the second device responds to binding messages of other second devices requesting binding of the portable WiFi according to the authorization message; if the second device returns a refusal authorization message, wherein the refusal authorization message comprises refusal authorization information for requesting to bind the portable WiFi, and then the binding message of other second devices requesting to bind the portable WiFi is refused according to the refusal authorization message; the method comprises the steps that a server obtains images of first equipment and second equipment in the same scene through identification of the image of the first equipment and the second equipment, the first equipment is carried WiFi, and the second equipment is a mobile terminal through identification of the images.
12. The method of claim 11, wherein after sending the request binding message to the server, further comprising,
responding to the binding prompt message sent by the server, and displaying an operation interface corresponding to the binding prompt message;
responding to the binding confirmation operation acquired from the operation interface, and generating a binding establishment message;
and sending a binding establishment message to the server.
13. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 12 when executing the computer program.
14. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1 to 12.
CN201911132217.7A 2019-11-19 2019-11-19 Device matching method, electronic device and storage medium Active CN111093181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911132217.7A CN111093181B (en) 2019-11-19 2019-11-19 Device matching method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911132217.7A CN111093181B (en) 2019-11-19 2019-11-19 Device matching method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN111093181A CN111093181A (en) 2020-05-01
CN111093181B true CN111093181B (en) 2023-06-02

Family

ID=70393145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911132217.7A Active CN111093181B (en) 2019-11-19 2019-11-19 Device matching method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111093181B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620630B2 (en) * 2003-11-12 2009-11-17 Oliver Lloyd Pty Ltd Directory system
EP2236980B1 (en) * 2009-03-31 2018-05-02 Alcatel Lucent A method for determining the relative position of a first and a second imaging device and devices therefore
CN103731800B (en) * 2012-10-15 2017-07-21 阿里巴巴集团控股有限公司 Method of locating terminal and device
CN102937869B (en) * 2012-11-23 2015-11-25 小米科技有限责任公司 The method and apparatus of a kind of terminal device trigging control instruction
US9058480B2 (en) * 2013-11-05 2015-06-16 Google Inc. Directional touch unlocking for electronic devices
TWI598612B (en) * 2015-03-20 2017-09-11 傅成龍 Matching system and matching method
CN106375931A (en) * 2015-07-24 2017-02-01 阿里巴巴集团控股有限公司 Interaction method, interaction device and server
CN105472127A (en) * 2015-11-13 2016-04-06 李彬 Method for information interaction between independent mobile terminals based on built-in angle sensors
CN105407454A (en) * 2015-11-23 2016-03-16 深圳还是威健康科技有限公司 Binding method and device for wearable device
CN108377286B (en) * 2016-10-28 2020-12-29 中兴通讯股份有限公司 Data transmission method and device
US10440570B2 (en) * 2016-12-21 2019-10-08 Silicon Laboratories Inc. Systems and methods for initial authentication of wireless communication

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
David W.Griffith .Optimizing the UE Transmission Probability for D2D Direct Discovery.《IEEE》.2016,全文. *
孙博文.基于方向信息的随机蕨特征匹配算法.《计算机工程》.2014,全文. *

Also Published As

Publication number Publication date
CN111093181A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
US9405011B2 (en) Navigation system configured to integrate motion sensing device inputs
JP6966572B2 (en) Signature generation method, electronic devices and storage media
US9002641B2 (en) Navigation system configured to integrate motion sensing device inputs
CN113272804A (en) Identity recognition method and device for fixed-point authorization and server
US20200051052A1 (en) Payment system, payment method, and program
TWI513266B (en) System and method for location-based authentication
CN109711847B (en) Near field information authentication method and device, electronic equipment and computer storage medium
US9699616B2 (en) Mobile electronic device and method
US20210365024A1 (en) Method and device for positioning unmanned vehicle
CN109186602B (en) Navigation method and device for parking lot and terminal equipment
CN105245346B (en) A kind of identity identifying method and user terminal
TW201142749A (en) Orientation determination of a mobile station using side and top view images
CN112740208B (en) Device and system for providing identification information
TWI706332B (en) Graphic coding display method and device and computer equipment
CN109961781B (en) Robot-based voice information receiving method and system and terminal equipment
KR20120073726A (en) Authentication apparatus and method for providing augmented reality information
CN107657441B (en) Self-service transaction method, system, server and mobile terminal
CN112789838B (en) Frictionless and secure method for determining that devices are in the same location
CN112874360A (en) Charging starting method and device for charging pile and computer readable storage medium
US10922514B2 (en) Electronic apparatus
CN111093181B (en) Device matching method, electronic device and storage medium
JP6740784B2 (en) Authentication system, authentication method, and authentication program
CN111354138A (en) Payment method and device with positioning performance
RU2701208C2 (en) Authentication system for mobile data terminal
US12066301B1 (en) Device orientation calibration system

Legal Events

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