CN106413124B - Equipment binding method and device - Google Patents

Equipment binding method and device Download PDF

Info

Publication number
CN106413124B
CN106413124B CN201510465645.7A CN201510465645A CN106413124B CN 106413124 B CN106413124 B CN 106413124B CN 201510465645 A CN201510465645 A CN 201510465645A CN 106413124 B CN106413124 B CN 106413124B
Authority
CN
China
Prior art keywords
equipment
serial number
binding
graphic code
page
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
CN201510465645.7A
Other languages
Chinese (zh)
Other versions
CN106413124A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510465645.7A priority Critical patent/CN106413124B/en
Publication of CN106413124A publication Critical patent/CN106413124A/en
Application granted granted Critical
Publication of CN106413124B publication Critical patent/CN106413124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention relates to a device binding method and a device, wherein the method comprises the following steps: scanning a graphic code corresponding to the controlled equipment to obtain an equipment type identifier and an equipment serial number; inquiring a corresponding device connection mode according to the device type identifier; searching the controlled equipment corresponding to the equipment serial number according to the inquired equipment connection mode to establish connection; after the connection is successfully established, the user identification and the equipment serial number are uploaded to an Internet of things open platform, and the Internet of things open platform is enabled to establish the binding relationship between the user identification and the equipment serial number. The equipment binding method and the equipment binding device provided by the invention can automatically trigger a series of operations of binding equipment only by scanning the graphic code, are simple and convenient to operate and improve the convenience of operation.

Description

Equipment binding method and device
Technical Field
The invention relates to the technical field of Internet of things, in particular to a device binding method and device.
Background
The Internet of things is an important component of a new generation of information technology, and The English name of The Internet of things refers to The Internet with which things are connected. The core and foundation of the internet of things is still the internet, which is an extended and expanded network on the basis of the internet, and the internet of things enables the internet based on the user terminal to be extended and expanded to the information exchange and communication between the user terminal and the goods and between the goods.
At present, each equipment manufacturer can implant a connection module into equipment such as a socket, a camera, an air conditioner, a refrigerator, a watch and the like to manufacture controlled equipment which can be connected with a user terminal. After the user purchases the controlled device, the binding relationship is established between the user identification and the purchased unique identification of the controlled device, namely the device is bound, so that the user has the management and control right on the controlled device.
However, currently, the binding device usually requires a user to manually input a user identifier and a unique identifier of the controlled device to establish a binding relationship, which is cumbersome to operate.
Disclosure of Invention
Therefore, it is necessary to provide a device binding method and apparatus for solving the problem of complicated operation caused by manual input of a user for binding a device at present.
A method of device binding, the method comprising:
scanning a graphic code corresponding to the controlled equipment to obtain an equipment type identifier and an equipment serial number;
inquiring a corresponding device connection mode according to the device type identifier;
searching the controlled equipment corresponding to the equipment serial number according to the inquired equipment connection mode to establish connection;
after the connection is successfully established, the user identification and the equipment serial number are uploaded to an Internet of things open platform, and the Internet of things open platform is enabled to establish the binding relationship between the user identification and the equipment serial number.
An apparatus for device binding, the apparatus comprising:
the graphic code processing module is used for scanning a graphic code corresponding to the controlled equipment to obtain an equipment type identifier and an equipment serial number;
the device connection mode determining module is used for inquiring the corresponding device connection mode according to the device type identifier;
the connection module is used for searching the controlled equipment corresponding to the equipment serial number according to the inquired equipment connection mode to establish connection;
and the binding module is used for uploading the user identifier and the equipment serial number to an Internet of things open platform after the connection is successfully established, so that the Internet of things open platform establishes the binding relationship between the user identifier and the equipment serial number.
According to the equipment binding method and the equipment binding device, the equipment type identification and the equipment serial number of the controlled equipment are obtained in a mode of scanning the graphic code, wherein the equipment connection mode can be determined according to the equipment type identification, and the equipment serial number can uniquely identify the corresponding network access equipment. Therefore, according to the inquired equipment connection mode, the controlled equipment corresponding to the equipment serial number can be automatically searched and connection can be established. And uploading the user identifier and the equipment serial number to an Internet of things open platform, so that the binding relationship between the user identifier and the equipment serial number can be established on the Internet of things open platform. Wherein the user identification and said device serial number are sent after successful establishment of a connection with the controlled device, indicating that the graphical code is correct and that the controlled device is discoverable and connectable, it can be ensured that this binding relationship is valid. Therefore, a series of operations of the binding equipment can be automatically triggered only by scanning the graphic code, the operation is simple and convenient, and the operation convenience is improved.
A method of device binding, the method comprising:
receiving a device connection mode query request which is sent by a mobile terminal corresponding to a user identifier and carries a device type identifier obtained by scanning a graphic code;
inquiring the equipment connection mode corresponding to the equipment type identification according to the equipment connection mode inquiry request;
feeding back the inquired equipment connection mode to the mobile terminal, and enabling the mobile terminal to establish connection with the controlled equipment corresponding to the equipment serial number obtained by scanning the graphic code according to the fed back equipment connection mode;
receiving the user identification and the equipment serial number which are sent by the mobile terminal after the mobile terminal successfully establishes the connection with the controlled equipment;
and establishing a binding relationship between the user identification and the equipment serial number.
An apparatus for device binding, the apparatus comprising:
the device connection mode query request receiving module is used for receiving a device connection mode query request which is sent by the mobile terminal corresponding to the user identification and carries the device type identification obtained by scanning the graphic code;
the equipment connection mode query module is used for querying the equipment connection mode corresponding to the equipment type identifier according to the equipment connection mode query request;
the device connection mode feedback module is used for feeding back the inquired device connection mode to the mobile terminal, so that the mobile terminal establishes connection with the controlled device corresponding to the device serial number obtained by scanning the graphic code according to the fed back device connection mode;
a receiving module, configured to receive the user identifier and the device serial number that are sent by the mobile terminal after the mobile terminal successfully establishes a connection with the controlled device;
and the binding relation establishing module is used for establishing the binding relation between the user identifier and the equipment serial number.
According to the equipment binding method and device, the mobile terminal obtains the equipment type identification and the equipment serial number of the controlled equipment in a mode of scanning the graphic code. Therefore, when the device connection mode query request of the mobile terminal is received, the device connection mode corresponding to the device type identifier can be fed back to the mobile terminal, so that the mobile terminal establishes connection with the controlled device corresponding to the device serial number according to the fed back device connection mode. Thus, after receiving the user identifier and the equipment serial number sent by the mobile terminal, the binding relationship between the user identifier and the equipment serial number can be established. The mobile terminal sends the user identification and the equipment serial number after establishing the connection with the controlled equipment, which indicates that the graphic code is correct and the controlled equipment can be discovered and connected, thereby ensuring the effectiveness of the established binding relationship. Therefore, the mobile terminal can automatically trigger a series of operations of the binding equipment only by scanning the graphic code, the operation is simple and convenient, and the operation convenience is improved.
Drawings
FIG. 1 is an environmental diagram of an Internet of things communication system in one embodiment;
FIG. 2 is a schematic diagram of an embodiment of an open platform for Internet of things;
FIG. 3 is a diagram illustrating an exemplary mobile terminal;
FIG. 4 is a schematic diagram of the structure of a controlled device in one embodiment;
FIG. 5 is a flowchart illustrating a device binding method according to an embodiment;
FIG. 6 is a diagram that illustrates a contacts page of the communication application, in one embodiment;
FIG. 7 is a diagram illustrating scanning a page with a graphical code for a communication application, under an embodiment;
FIG. 8 is a diagram illustrating a tools menu in an instant messaging page in one embodiment;
fig. 9 is a schematic flowchart illustrating a step of uploading a user identifier and the device serial number to an internet of things opening platform after a connection is successfully established in one embodiment, so that the internet of things opening platform establishes a binding relationship between the user identifier and the device serial number;
FIG. 10 is a diagram of a device binding page in one embodiment;
FIG. 11 is a diagram of a device network configuration page in one embodiment;
FIG. 12 is a flowchart illustrating the steps of querying bound controlled devices in one embodiment;
FIG. 13 is a diagram illustrating an Internet of things public service page in one embodiment;
FIG. 14 is a diagram of a bound device presentation page in one embodiment;
FIG. 15 is a flowchart illustrating steps for reproducing a graphic code in one embodiment;
FIG. 16 is a diagram illustrating a device graphic code presentation page in accordance with an embodiment;
FIG. 17 is a diagram of a scannable graphical code display page in one embodiment;
FIG. 18 is a schematic diagram of a controlled device purchase page in one embodiment;
FIG. 19 is a diagram illustrating a display of a page prompting a user to perform an unbinding operation in a graphical code scan page, in accordance with an embodiment;
FIG. 20 is a diagram illustrating a display of a page in the graphical code scan page prompting a user to disconnect from the network and rescan the graphical code, under an embodiment;
FIG. 21 is a flowchart illustrating a device binding method in accordance with another embodiment;
FIG. 22 is a flowchart illustrating a device binding method according to still another embodiment;
FIG. 23 is a flowchart illustrating steps for configuring a device connectivity under one embodiment;
FIG. 24 is a flowchart illustrating steps for providing device information in one embodiment;
FIG. 25 is a flowchart illustrating the steps of providing a graphical code in one embodiment;
FIG. 26 is a flowchart illustrating the steps of providing binding status query results in one embodiment;
FIG. 27 is a block diagram showing the construction of a device binding apparatus according to one embodiment;
FIG. 28 is a block diagram showing the construction of a device binding apparatus according to another embodiment;
FIG. 29 is a block diagram that illustrates the structure of a binding module in one embodiment;
FIG. 30 is a block diagram showing the construction of a device binding apparatus according to still another embodiment;
FIG. 31 is a block diagram of an apparatus binding device in one embodiment;
FIG. 32 is a block diagram showing the construction of a device binding apparatus according to another embodiment;
FIG. 33 is a block diagram showing the construction of a device binding apparatus according to still another embodiment;
FIG. 34 is a block diagram of the architecture of a device binding apparatus in one embodiment;
FIG. 35 is a block diagram showing the construction of a device binding apparatus according to another embodiment;
FIG. 36 is a block diagram showing the construction of a device binding apparatus according to still another embodiment;
fig. 37 is a block diagram showing the configuration of a device binding apparatus according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, in one embodiment, an internet of things communication system 100 is provided and includes an internet of things open platform 102, a mobile terminal 104 and a controlled device 106. The internet of things open platform 102 in fig. 1 includes one or more physical servers, which are third-party platforms providing access services for controlled devices 106 of various device providers and providing an interactive interface for the mobile terminal 104. The mobile terminal 104 includes a mobile phone, a tablet computer, a PDA (personal digital assistant), a POS (point of sale) machine, and the like. The controlled device 106 is a device having a function of connecting with the mobile terminal 104 and controlled by the mobile terminal 104, and includes a watch, a socket, a camera, an air conditioner, a refrigerator, and the like.
As shown in fig. 2, in one embodiment, the internet of things open platform 102 includes a processor, a non-volatile storage medium, an internal memory, and a network interface connected by a system bus. The processor has computing functions and functions for controlling the operation of the internet of things open platform 102, and is configured to execute a device binding method. Non-volatile storage media include magnetic storage media, optical storage media, and flash memory storage media. The non-volatile storage medium stores an operating system and a device binding apparatus having a function module that implements a device binding method. The internal memory is used to provide a cache for the operating system and the device binding apparatus. The network interface is for connecting to a network.
As shown in fig. 3, in one embodiment, a mobile terminal 104 is provided that includes a processor, a non-volatile storage medium, an internal memory, a network interface, a display screen, a camera, and an input device connected by a system bus. Wherein the processor has computing functionality and functionality to control the operation of the mobile terminal 104, the processor being configured to perform a device binding method. Non-volatile storage media include magnetic storage media, optical storage media, and flash memory storage media. The non-volatile storage medium stores an operating system and a device binding apparatus having a function module that implements a device binding method. The internal memory is used to provide a cache for the operating system and the device binding apparatus. The display may be a liquid crystal display or an electronic ink display. The input device comprises a touch pad, a track ball, a mouse and a touch layer overlapped with the display screen, wherein the display screen and the touch layer form the touch screen. The network interface is used for connecting to a network. The camera is used for acquiring an external image through a photosensitive device of the camera to form a digital signal, and the digital signal is transmitted to the processor for processing.
As shown in fig. 4, in one embodiment, the controlled device 106 is different from the mobile terminal 104, and includes a control chip, a wireless connection module, and an operation function module. The controlled device 106 may be connected to the mobile terminal 104 through a wireless connection Module, which includes at least one of a Wi-Fi (wireless connection technology) Module, a bluetooth Module, a SIM (Subscriber Identity Module) card Module, and an NFC Module. The controlled device 106 may be a webcam, a smart tv, a printer, a smart light bulb, a smart switch, etc. The working function module of the network camera at least has the function of capturing images, and the working function module of the intelligent television at least has the functions of receiving television program signals and playing television programs, and so on.
As shown in fig. 5, in one embodiment, a device binding method is provided, and this embodiment is illustrated by applying the method to the mobile terminal 104 in fig. 1 and 3. The method specifically comprises the following steps:
step 502, scanning the graphic code corresponding to the controlled device to obtain the device type identifier and the device serial number.
Specifically, the mobile terminal scans a graphic code corresponding to the controlled device to obtain a device type identifier and a device serial number. Scanning refers to a process of acquiring and analyzing a graphic code through a camera. The specific mobile terminal obtains and analyzes the graphic code corresponding to the controlled equipment through a camera of the mobile terminal, and obtains the equipment type identifier and the equipment serial number included in the graphic code. The graphic code corresponding to the scanned controlled device can be arranged on the controlled device shell, the packaging box or the device specification, wherein the arrangement is printed or attached, and the graphic code can also be displayed on the display screen of the controlled device.
The graphic code is a graphic obtained by encoding a character or a character string having a meaning expression function, and includes a two-dimensional code, a barcode, and the like. The bar code is a graphic identifier which arranges a plurality of black bars and blanks with different widths according to a certain coding rule and is used for expressing a group of information. Common bar codes are a pattern of parallel lines of dark bars (simply bars) and white bars (simply spaces) of widely differing reflectivity. The two-dimensional code is a bar code for recording data symbol information by black and white figures distributed in a plane two-dimensional direction according to a certain rule by using a certain specific geometric figure. The two-dimensional Code can be divided into a stacked type or row-by-row type and a matrix type two-dimensional Code, wherein the stacked type or row-by-row type two-dimensional Code coding principle is based on a one-dimensional bar Code and is stacked into two or more rows according to requirements, and representative two-dimensional codes comprise Code 16K, Code 49, PDF417 and the like. The matrix type two-dimensional code is coded in a rectangular space through different distribution of black and white pixels in a matrix. On the corresponding element positions of the matrix, representing binary '1' by the appearance of points (square points, round points or other shapes), representing binary '0' by the absence of the points, and determining the meaning represented by the matrix type two-dimensional code by the arrangement and combination of the points; the representative matrix type two-dimensional code is as follows: code One, MaxiCode, QR Code, etc.
The device type identifier is used to uniquely identify a controlled device, and the device serial number is used to uniquely identify a controlled device. For example, a certain device provider a produces a kind of controlled devices B, and the controlled devices B of the kind all have the same device type identifier, but the device serial numbers of the controlled devices B are different from each other. The device type identifier may include at least one of a number, a letter, and a punctuation mark, and the device serial number may include at least one of a number, a letter, and a punctuation mark.
For example, an instant messaging application is run on the mobile terminal, and the mobile terminal can enter the graphic code scanning page shown in fig. 7 after detecting the operation of the graphic code scanning page trigger control (601) in the contact page shown in fig. 6 of the instant messaging application. The mobile terminal can enter the graphic code scanning page shown in fig. 7 after detecting the operation of the graphic code scanning page triggering control (802) in the tool menu (801) in the instant messaging message page shown in fig. 8 even though the communication application is applied. When the mobile terminal detects the graphic code displayed in the view box 701 when the graphic code scans the page, the graphic code is automatically scanned to obtain the device type identifier and the device serial number included in the graphic code.
And step 504, inquiring a corresponding device connection mode according to the device type identifier.
The mobile terminal queries the corresponding device connection mode according to the device type identifier, may query the corresponding device connection mode from a locally stored device connection mode list according to the device type identifier, and may also query the device connection mode corresponding to the device type identifier from the internet of things open platform. The device connection mode list comprises the pairing relation between the device type identification and the device connection mode, and the mobile terminal can be downloaded from the Internet of things open platform in advance. The equipment supplier can configure the equipment connection mode corresponding to the equipment type identification on the Internet of things open platform in advance.
The device connection mode refers to a mode that the mobile terminal is connected with the controlled device. In one embodiment, the device connection mode is a wireless connection mode, and the device connection mode includes: at least one of a wireless lan connection method, a mobile Communication network connection method, an NFC (Near field Communication) connection method, and a bluetooth connection method.
The Wireless LAN connection mode includes a Wi-Fi connection mode and a WAPI (Wireless LAN Authentication and Privacy Infrastructure) connection mode. The Mobile Communication network connection method includes a GSM (Global System for Mobile Communication) connection method, a CDMA (Code Division Multiple Access) connection method, a CDMA2000 connection method, a WCDMA (Wideband Code Division Multiple Access) connection method, a TD-SCDMA (Time Division-Synchronous Code Division Multiple Access) connection method, a TD-LTE (Time Division Long Term Evolution) connection method, and an FDD-LTE (Frequency Division duplex Long Term Evolution) connection method.
Step 506, searching the controlled device corresponding to the device serial number according to the inquired device connection mode to establish connection.
And the mobile terminal searches the controlled equipment corresponding to the equipment serial number according to the inquired equipment connection mode and establishes connection with the searched controlled equipment. The mobile terminal may have a plurality of controlled devices in the environment where the mobile terminal is located, and the mobile terminal may filter the searched controlled devices and only retain the controlled devices corresponding to the device serial numbers.
In one embodiment, after querying the device connection method, the mobile terminal detects whether the function of the queried device connection method is started, and if so, executes step 506; if not, the queried device connection mode function is automatically started and then step 506 is executed, or the user is prompted to start. If the inquired device connection mode is the Wi-Fi connection mode, detecting whether the Wi-Fi function of the mobile terminal is started, if not, automatically starting the Wi-Fi function, then searching the controlled device in the Wi-Fi connection mode and establishing connection, or prompting the user to start the Wi-Fi function, and after the user confirms that the controlled device is started, searching the controlled device in the Wi-Fi connection mode and establishing connection.
The wireless local area network connection mode comprises a wireless local area network connection mode in a routing mode, a wireless local area network connection mode in a routing relay mode and a wireless local area network connection mode in a broadcast mode. In the routing mode, the mobile terminal searches the controlled equipment corresponding to the equipment serial number in the wireless local area network established by the router, so that the router is used as an intermediary to establish connection. In the route relay mode, the mobile terminal can be used as a route relay to search the controlled equipment corresponding to the equipment serial number and directly establish connection with the searched controlled equipment; or the mobile terminal can search the controlled equipment corresponding to the equipment serial number and used as the route relay, and directly establish connection with the searched controlled equipment. In the broadcast mode, the mobile terminal can broadcast a wireless signal, search for controlled equipment corresponding to the equipment serial number, and directly establish connection with the searched controlled equipment.
And step 508, after the connection is successfully established, uploading the user identifier and the equipment serial number to the Internet of things opening platform, so that the Internet of things opening platform establishes the binding relationship between the user identifier and the equipment serial number.
After the mobile terminal successfully establishes connection with the searched controlled equipment, an equipment binding request carrying the user identification and the equipment serial number is sent to the Internet of things open platform, so that the Internet of things open platform establishes a binding relation between the user identification and the equipment serial number carried by the equipment binding request according to the equipment binding request.
According to the equipment binding method, the equipment type identification and the equipment serial number of the controlled equipment are obtained in a mode of scanning the graphic code, wherein the equipment connection mode can be determined according to the equipment type identification, and the equipment serial number can uniquely identify the corresponding network access equipment. Therefore, according to the inquired equipment connection mode, the controlled equipment corresponding to the equipment serial number can be automatically searched and connection can be established. And then the user identification and the equipment serial number are uploaded to the Internet of things open platform, so that the binding relationship between the user identification and the equipment serial number can be established on the Internet of things open platform. Wherein after successfully establishing the connection with the controlled device, the user identifier and the device serial number are sent to indicate that the graphic code is correct and that the controlled device is discoverable and connectable, which can ensure that the binding relationship is valid. Therefore, a series of operations of the binding equipment can be automatically triggered only by scanning the graphic code, the operation is simple and convenient, and the operation convenience is improved.
In one embodiment, before step 504, the method further includes: detecting whether connection can be established with controlled equipment corresponding to the equipment serial number or not through a preset connection mode; if yes, go to step 508; if not, go to step 504.
Specifically, the device connection mode includes: at least one of a wireless local area network connection mode, a mobile communication network connection mode, an NFC connection mode and a Bluetooth connection mode. The preset connection mode may be a device connection mode adopted by the last device connection, or a default device connection mode designated in advance.
In this embodiment, an attempt is made to search for the controlled device corresponding to the device serial number through the preset connection mode, and if the connection is found, the connection is directly established, and at this time, it is detected that the connection can be established with the controlled device corresponding to the device serial number, and then the device connection mode does not need to be queried, so that the efficiency is improved. If the controlled equipment corresponding to the equipment serial number is tried to be searched in the preset connection mode and is not searched, or the connection cannot be established after the controlled equipment corresponding to the equipment serial number is searched, the connection with the controlled equipment corresponding to the equipment serial number is detected to be unavailable, and the equipment connection mode is inquired again at this moment and the connection is established according to the searched controlled equipment.
As shown in fig. 9, in an embodiment, step 508 specifically includes the following steps:
and step 902, jumping to a device binding page after the connection is successfully established.
Specifically, after the mobile terminal implements the steps 502 to 506 in the graphic code scanning page shown in fig. 7, if the connection between the controlled device and the controlled device corresponding to the device serial number is successfully established, the mobile terminal jumps to the device binding page shown in fig. 10. The device binding page is a page for binding the user identifier and the serial number.
In an embodiment, the controlled device is a network access device, and after the mobile terminal successfully establishes a connection with the controlled device, if it is detected that the controlled device does not join the wireless local area network, the device network configuration page shown in fig. 11 is displayed, access authentication information required for accessing the wireless local area network, such as a network name and a corresponding authentication password, is acquired, and the access authentication information is sent to the controlled device, so that the controlled device accesses the wireless local area network according to the access authentication information. Therefore, the controlled equipment can receive the remote control instruction of the mobile terminal.
Step 904, displaying the device information corresponding to the device serial number and the user information corresponding to the user identifier in the device binding page.
Specifically, the device information corresponding to the device serial number is information for describing the corresponding controlled device, and includes at least one of a device image, device introduction information, a device serial number, and a device type number. The user information corresponding to the user identifier is information for describing user attributes, and includes at least one of a user avatar, a user identifier, and user introduction information. The mobile terminal displays the equipment information and the user information in the equipment binding page, so that a user can visually confirm the user identification and the equipment serial number to be bound.
Step 906, receiving a confirm bind instruction triggered in the device bind page.
Specifically, the device binding page includes a confirm bound control 1001 and an unbind control 1002. After detecting the operation of the control 1001 for confirming the binding, for example, clicking, the mobile terminal triggers a binding confirmation instruction. After detecting the operation on the control 1002 for canceling binding, the mobile terminal triggers a command for canceling binding and jumps to a specified page. Such as a contact page, a graphic code scan page, or an instant messaging page.
And 908, uploading the user identifier and the equipment serial number to the Internet of things open platform according to the binding confirmation instruction, so that the Internet of things open platform establishes the binding relationship between the user identifier and the equipment serial number.
Specifically, after the mobile terminal obtains the binding confirmation instruction, the binding relationship between the user identifier and the equipment serial number is established on the internet of things open platform according to the binding confirmation instruction.
In the embodiment, a step of confirming the binding by the user is added, and although one step of operation is added, the correctness of the established binding relationship can be ensured, and both the convenience of operation and the correctness of the binding relationship are taken into consideration.
In one embodiment, after step 502, the method further comprises: inquiring whether a binding relationship between a user identifier and an equipment serial number is established from the Internet of things open platform; if the established binding relationship is inquired, jumping to an equipment control page corresponding to the network equipment serial number, triggering a control instruction in the equipment control page, and sending the control instruction to the controlled equipment through direct connection or an internet of things open platform; if the binding relationship is not established, step 504 is executed.
Specifically, the mobile terminal may send a binding state query request carrying the user identifier and the device serial number to the internet of things opening platform, so that the internet of things opening platform queries whether the binding relationship between the user identifier and the device serial number is established according to the binding state query request, and receives a query result indicating whether the binding relationship is established, which is returned by the internet of things opening platform.
The device control page is a page for controlling the controlled device, and the controlled page may include a plurality of controls each having a different function, for example, if the controlled device is a camera, the device control page may include a control for rotating the camera and a control for displaying an image captured by the camera. When the mobile terminal detects the operation of the control in the device control page, the mobile terminal triggers a control instruction corresponding to the control, and the mobile terminal can send the control instruction to the controlled device through point-to-point direct connection between the mobile terminal and the controlled device, or send the control instruction to the Internet of things open platform and forward the control instruction to the controlled device through the Internet of things open platform. And the controlled equipment responds correspondingly after receiving the control command.
In this embodiment, by querying the binding state, if the binding relationship between the user identifier and the device serial number is established, no binding is required, the behavior of scanning the graphic code by the user may be determined as the behavior of accessing the corresponding controlled device, and the user may jump to the device control page, so that the user may control the bound controlled device.
In one embodiment, if the established binding relationship is inquired, a prompt page for prompting the established binding relationship can be displayed, and if a prompt page closing instruction is triggered in the prompt page, the prompt page is closed according to the prompt page closing instruction so as to return to the graphic code scanning page. And if the instruction for controlling the controlled equipment is triggered in the prompt page, jumping to an equipment control page corresponding to the serial number of the network equipment according to the instruction for controlling the controlled equipment, triggering the control instruction in the equipment control page, and sending the control instruction to the controlled equipment through direct connection or an internet of things open platform.
As shown in fig. 12, in an embodiment, the device binding method further includes a step of querying the bound controlled device, and specifically includes the following steps:
and step 1202, displaying an internet of things public service page corresponding to the internet of things public service account.
Specifically, the public service account of the internet of things refers to an account which is set by the open platform of the internet of things and interacts with the user related to the internet of things. The internet of things public service page, as shown in fig. 13, includes a message session page for displaying session information when the user makes a session with the internet of things public service account.
Step 1204, triggering an equipment query request carrying the user identifier in the public service page of the internet of things and sending the equipment query request to the open platform of the internet of things.
Specifically, after detecting the operation of a graphic code query trigger control 1301 in an internet of things public service page, the mobile terminal triggers an equipment query request carrying a user identifier, and sends the equipment query request to the internet of things open platform. The device inquiry request is for inquiring device information of the controlled device to which the user has bound.
Step 1206, receiving the device information returned by the Internet of things open platform according to the device query request; the equipment serial number corresponding to the returned equipment information has a historical binding relationship with the user identification.
Specifically, the internet of things open platform acquires a user identifier carried by the graphic code query request according to the device query request from the mobile terminal, and searches for a device serial number having a binding relationship with the user identifier, so as to acquire device information corresponding to the device serial number and return the device information to the mobile terminal. Wherein the device information includes at least one of a device image, device introduction information, a device serial number, and a device type number. The historical binding relationship means that the current or the past binding relationship is possessed.
Step 1208, displaying the received device information.
Specifically, the mobile terminal jumps to the bound device presentation page as shown in fig. 14, and displays the received device information in the bound device presentation page. If a plurality of pieces of device information are received, the received device information may be displayed in a list form. The pieces of device information may be sorted in order of binding time.
In this embodiment, the user can query the information of the bound device at any time, so as to manage the bound device.
As shown in fig. 15, in an embodiment, after the step 1208, a step of reproducing the graphic code is further included, which specifically includes the following steps:
and step 1502, acquiring a graphic code query request carrying a corresponding equipment serial number corresponding to the displayed equipment information and sending the graphic code query request to the internet of things open platform.
Specifically, after detecting the graphic code query instruction in the bound device display page shown in fig. 14, for example, detecting a click on a "view" button of a certain controlled device in fig. 14, the mobile terminal triggers a graphic code query request and sends the request to the internet of things open platform. The graphic code query request corresponds to the displayed equipment information and carries an equipment serial number corresponding to the displayed equipment information.
Step 1504, receiving the graphic code returned by the Internet of things open platform according to the graphic code query request; the returned graphic code comprises the equipment serial number and the corresponding equipment type identification carried by the graphic code query request.
Specifically, after receiving the graphic code query request, the internet of things open platform extracts an equipment serial number carried by the graphic code query request, and queries an equipment type identifier corresponding to the equipment serial number, so as to generate a graphic code according to the equipment serial number and the equipment type identifier, and return the generated graphic code to the mobile terminal.
Step 1506, displaying the received graphic code.
Specifically, the mobile terminal jumps to the device graphic code presentation page as shown in fig. 16, and displays the received graphic code on the graphic code presentation page. The mobile terminal can trigger the graphic code sharing instruction in the graphic code display page of the equipment, so that the graphic code is sent to a user designated by the graphic code sharing instruction in a picture form. The mobile terminal may trigger a graphic code scanning instruction in the device graphic code presentation page, so as to trigger the step 502 according to the scanning instruction.
In the embodiment, the user can inquire the graphic code of the bound device at any time when needed, so that the management and maintenance of the bound controlled device are facilitated.
In one embodiment, the mobile terminal triggers an inquiry instruction for inquiring the currently scannable graphic code in the graphic code scanning page shown in fig. 7, for example, the user clicks "what can be scanned" in fig. 7, and jumps to the scannable graphic code presentation page shown in fig. 17 according to the inquiry instruction, and displays the currently scannable graphic code. The currently scanned graphic codes comprise locally stored graphic codes and graphic codes pushed by an Internet of things open platform. The mobile terminal scans the graphic code displayed in the scannable graphic code display page according to the user instruction, and jumps to a corresponding page, for example, jumps to a controlled device purchase page as shown in fig. 18.
In one embodiment, after step 502, the method further comprises: inquiring whether the equipment serial number is bound with the user identifier which is not the user identifier from the internet of things open platform, and if so, prompting the user to perform unbinding operation, as shown in fig. 19.
In one embodiment, if the graphic code corresponding to the controlled device is not connected to the network during scanning, the user is prompted to confirm the connection to the network and rescan the graphic code, as shown in fig. 20.
As shown in fig. 21, in an embodiment, a device binding method specifically includes the following steps:
at step 2102, the corresponding graphic code of the controlled device is scanned to obtain the device type identifier and the device serial number.
Step 2104, inquiring whether the user identification and the equipment serial number have established a binding relationship from the internet of things open platform; if so, go to step 2106, otherwise go to step 2108.
Step 2106, the user is prompted that the binding relationship between the user identifier and the device serial number has been established.
Step 2108, detecting whether a connection can be established with the controlled device corresponding to the device serial number through a preset connection mode; if yes, go to step 2110 and then go to step 2118; if not, go to step 2112.
Step 2112, inquiring the corresponding device connection mode according to the device type identification.
Step 2114, according to the inquired device connection mode, searching the controlled device corresponding to the device serial number to establish connection.
Step 2116, determine whether the connection with the controlled device is successfully established. If yes, go to step 2118; if not, then step 2116 is continued after step 2120.
And step 2118, jumping to an equipment binding page, uploading the user identifier and the equipment serial number to the Internet of things open platform, and enabling the Internet of things open platform to establish a binding relationship between the user identifier and the equipment serial number.
Step 2120, the user is prompted for a connection failure.
As shown in fig. 22, in an embodiment, a device binding method is provided, and this embodiment is illustrated by applying the method to the above-mentioned internet of things open platform in fig. 1 and 2. The method specifically comprises the following steps:
step 2202, receiving a device connection mode query request which carries a device type identifier obtained by scanning the graphic code and is sent by the mobile terminal corresponding to the user identifier.
Specifically, the mobile terminal scans a graphic code corresponding to the controlled device to obtain a device type identifier and a device serial number. The graphic code corresponding to the scanned controlled device can be arranged on the controlled device shell, the packaging box or the device specification, wherein the arrangement is printed or attached, and the graphic code can also be displayed on the display screen of the controlled device. The graphic code is a graphic obtained by encoding a character or a character string having a meaning expression function, and includes a two-dimensional code, a barcode, and the like. The device type identifier is used to uniquely identify a controlled device, and the device serial number is used to uniquely identify a controlled device.
The mobile terminal sends an equipment connection mode query request to the Internet of things open platform after scanning the graphic code to obtain the equipment type identifier and the equipment serial number, wherein the equipment connection mode query request carries the equipment type identifier obtained by scanning the graphic code, and the Internet of things open platform receives the equipment connection mode query request. The mobile terminal corresponding to the user identifier may be a mobile terminal that is logged in with the user identifier and connected to the internet of things open platform.
Step 2204, inquiring the device connection mode corresponding to the device type identifier according to the device connection mode inquiry request.
The device connection mode query request is used for requesting to query the device connection mode corresponding to the device type carried in the request. The internet of things open platform stores the corresponding relation between the equipment type identification and the corresponding equipment connection mode, and inquires the equipment connection mode corresponding to the equipment type identification carried by the equipment connection mode inquiry request according to the equipment connection mode inquiry request.
Step 2206, the inquired device connection mode is fed back to the mobile terminal, so that the mobile terminal establishes connection with the controlled device corresponding to the device serial number obtained by scanning the graphic code according to the fed back device connection mode.
Specifically, after inquiring the equipment connection mode, the Internet of things open platform feeds back the inquired equipment connection mode to the mobile terminal; if the device connection mode is not inquired, a notification that the device connection mode is not inquired can be fed back to the mobile terminal.
And the mobile terminal establishes connection with the controlled equipment corresponding to the equipment serial number obtained by scanning the graphic code according to the fed back equipment connection mode. Specifically, the mobile terminal searches for the controlled device corresponding to the device serial number according to the inquired device connection mode, and establishes connection with the searched controlled device. The mobile terminal may have a plurality of controlled devices in the environment where the mobile terminal is located, and the mobile terminal may filter the searched controlled devices and only retain the controlled devices corresponding to the device serial numbers.
Step 2208, receiving the user identification and the equipment serial number sent by the mobile terminal after the connection with the controlled equipment is successfully established.
Specifically, after the mobile terminal successfully establishes connection with the searched controlled device, the mobile terminal sends a device binding request carrying a user identifier and a device serial number to the internet of things open platform, and the internet of things open platform receives the device binding request, so that the user identifier and the device serial number carried by the device binding request are obtained.
Step 2210, establishing a binding relationship between the user ID and the device serial number.
And the Internet of things open platform establishes a binding relationship between the user identifier and the equipment serial number. Specifically, the internet of things open platform establishes a binding relationship between the user identifier carried by the equipment binding request and the equipment serial number according to the equipment binding request.
According to the equipment binding method, the mobile terminal obtains the equipment type identification and the equipment serial number of the controlled equipment in a mode of scanning the graphic code. Therefore, when the device connection mode query request of the mobile terminal is received, the device connection mode corresponding to the device type identifier can be fed back to the mobile terminal, so that the mobile terminal establishes connection with the controlled device corresponding to the device serial number according to the fed back device connection mode. Thus, after receiving the user identifier and the equipment serial number sent by the mobile terminal, the binding relationship between the user identifier and the equipment serial number can be established. The mobile terminal sends the user identification and the equipment serial number after establishing the connection with the controlled equipment, which indicates that the graphic code is correct and the controlled equipment can be discovered and connected, thereby ensuring the effectiveness of the established binding relationship. Therefore, the mobile terminal can automatically trigger a series of operations of the binding equipment only by scanning the graphic code, the operation is simple and convenient, and the operation convenience is improved.
As shown in fig. 23, in an embodiment, before the step 2202, a step of configuring a device connection mode is further included, which specifically includes the following steps:
step 2302, receiving a device connection mode configuration request carrying a device type identifier, sent by the device management terminal corresponding to the device provider identifier.
Specifically, the device vendor refers to a party who provides the controlled device, and the device vendor identification is used to uniquely identify the corresponding device vendor. Equipment suppliers include manufacturers and distributors of controlled equipment. And the equipment supplier logs in the Internet of things open platform on a certain terminal according to the equipment supplier identification, and the terminal is an equipment management terminal. The device management terminal may be a desktop computer or a mobile terminal.
The equipment management terminal provides an interactive interface between an equipment supplier and the Internet of things open platform, the Internet of things open platform provides selectable equipment connection modes corresponding to the equipment type identifiers for the equipment management terminal, obtains an equipment connection mode selection instruction input by the equipment supplier, and determines an equipment connection mode needing configuration from the selectable equipment connection modes according to the equipment connection mode selection instruction. The alternative device connection means may be configured as a single option only and be a mandatory option. The equipment management terminal generates and sends an equipment connection mode configuration request carrying an equipment type identifier according to the determined equipment connection mode to be configured, and the Internet of things open platform receives the equipment connection mode configuration request.
Step 2304, configuring the device connection mode corresponding to the device type identifier according to the device connection mode configuration request.
Specifically, the internet of things open platform configures, according to the device connection mode, the device type identifier carried by the device connection mode configuration request, and the corresponding device connection mode as the device connection mode specified by the device connection mode configuration request.
In this embodiment, the device supplier may configure the device connection mode adopted by the controlled device according to the device characteristics and the requirements of the controlled device, so that the device supplier can manage and maintain the device connection mode of the controlled device.
As shown in fig. 24, in an embodiment, the device binding method further includes a step of providing device information, and specifically includes the following steps:
step 2402, receiving a device query request carrying a user identifier sent by the mobile terminal.
Specifically, the mobile terminal displays an internet of things public service page corresponding to the internet of things public service account, triggers an equipment query request carrying a user identifier in the internet of things public service page and sends the equipment query request to the internet of things open platform. And the Internet of things open platform receives an equipment query request which is sent by the mobile terminal and carries the user identification. The device inquiry request is for inquiring device information of the controlled device to which the user has bound.
Step 2404, according to the device query request, querying device information corresponding to the device serial number having a historical binding relationship with the user identifier.
Specifically, the internet of things open platform acquires a user identifier carried by the graphic code query request according to the device query request from the mobile terminal, and searches for a device serial number having a binding relationship with the user identifier, thereby acquiring device information corresponding to the device serial number. Wherein the device information includes at least one of a device image, device introduction information, a device serial number, and a device type number. The historical binding relationship means that the current or the past binding relationship is possessed.
Step 2406, returning the device information to the mobile terminal.
Specifically, the Internet of things open platform returns equipment information to the mobile terminal. After receiving the device information, the mobile terminal may display the received device information, specifically, may jump to a bound device display page as shown in fig. 14, and display the received device information in the bound device display page. If a plurality of pieces of device information are received, the received device information may be displayed in a list form. The pieces of device information may be sorted in order of binding time.
In this embodiment, the user can query the information of the bound device at any time, so as to manage the bound device.
As shown in fig. 25, in an embodiment, after step 2406, a step of providing a graphic code is further included, which specifically includes the following steps:
step 2502, receiving a graphic code query request which is sent by the mobile terminal and carries the equipment serial number corresponding to the equipment information.
Specifically, after detecting the graphic code query instruction in the bound device display page shown in fig. 14, for example, detecting a click on a "view" button of a certain controlled device in fig. 14, the mobile terminal triggers a graphic code query request and sends the request to the internet of things open platform. The graphic code query request corresponds to the displayed equipment information and carries an equipment serial number corresponding to the displayed equipment information. And the Internet of things open platform receives a graphic code query request which is sent by the mobile terminal and carries the equipment serial number corresponding to the equipment information.
Step 2504, according to the graphic code query request, generating a graphic code from the device serial number and the corresponding device type identifier carried by the graphic code query request.
Specifically, after receiving a graphic code query request, the internet of things open platform extracts an equipment serial number carried by the graphic code query request, and queries an equipment type identifier corresponding to the equipment serial number, so as to generate a graphic code according to the equipment serial number and the equipment type identifier.
Step 2506, sending the generated graphic code to the mobile terminal.
Specifically, the internet of things open platform sends the generated graphic code to the mobile terminal. After receiving the graphic code, the mobile terminal displays the received graphic code, and specifically, may jump to an equipment graphic code display page shown in fig. 16, and display the received graphic code in the graphic code display page.
In the embodiment, the user can inquire the graphic code of the bound device at any time when needed, so that the management and maintenance of the bound controlled device are facilitated.
As shown in fig. 26, in an embodiment, the device binding method further includes a step of providing a binding status query result, and specifically includes the following steps:
step 2602, receiving a binding state query request carrying the user identifier and the device serial number sent by the mobile terminal.
Specifically, the binding state query request is used to query whether a binding relationship has been established between the user identifier and the device serial number carried by the binding state query request, where the binding state refers to whether a binding relationship has been established. The mobile terminal may send a binding state query request to the internet of things open platform after performing step 502. The mobile terminal can also send a binding state query request to the Internet of things open platform when different actions are required to be executed according to whether the binding relationship between the user identification and the equipment serial number is established, so that the corresponding actions are executed after the binding state is queried.
Step 2604, according to the binding status query request, querying whether the user identifier and the device serial number have established a binding relationship.
Specifically, the internet of things open platform extracts the user identifier and the equipment serial number carried by the binding state query request according to the binding state query request, so as to query whether the binding relationship between the user identifier and the equipment serial number is established.
Step 2606, returning the query result of whether the binding relationship is established to the mobile terminal.
Specifically, the internet of things open platform returns the query result to the mobile terminal after querying the query result whether the binding relationship between the user identifier and the device serial number specified by the binding state query request is established.
In the embodiment, the mobile terminal can trigger different actions aiming at different binding states by inquiring the binding states, and can avoid repeated binding operations.
In one embodiment, the device connection method includes: at least one of a wireless local area network connection mode, a mobile communication network connection mode, an NFC connection mode and a Bluetooth connection mode.
In one embodiment, the graphical code includes a two-dimensional code and a bar code.
As shown in fig. 27, in one embodiment, a device binding apparatus 2700 is provided with functional modules for implementing the device binding methods applicable to the various embodiments of the mobile terminal described above. The device binding apparatus 2700 includes a graphic code processing module 2701, a device connection mode determining module 2702, a connection module 2703, and a binding module 2704.
The graphic code processing module 2701 is configured to scan a graphic code corresponding to a controlled device to obtain a device type identifier and a device serial number.
The device connection mode determining module 2702 is configured to query a corresponding device connection mode according to the device type identifier.
The connection module 2703 is configured to search the controlled device corresponding to the device serial number according to the queried device connection mode to establish a connection.
The binding module 2704 is configured to upload the user identifier and the device serial number to the internet of things open platform after the connection is successfully established, so that the internet of things open platform establishes a binding relationship between the user identifier and the device serial number.
As shown in fig. 28, in an embodiment, the device binding apparatus 2700 further includes a detecting module 2705, configured to detect whether a connection can be established with the controlled device corresponding to the device serial number through a preset connection manner; if so, the binding module 2704 is notified; if not, the device connection mode determination module 2702 is notified.
As shown in fig. 29, in one embodiment, the binding module 2704 comprises: a device binding page triggering module 2704a, an information display module 2704b, a binding confirmation instruction receiving module 2704c, and a binding execution module 2704 d.
The device binding page triggering module 2704a is configured to jump to the device binding page after the connection is successfully established.
The information display module 2704b is configured to display, in the device binding page, device information corresponding to the device serial number and user information corresponding to the user identifier.
The binding confirmation instruction receiving module 2704c is configured to receive a binding confirmation instruction triggered in the device binding page.
And the binding execution module 2704d is configured to upload the user identifier and the equipment serial number to the internet of things open platform according to the binding confirmation instruction, so that the internet of things open platform establishes a binding relationship between the user identifier and the equipment serial number.
As shown in fig. 30, in one embodiment, device binding apparatus 2700 further includes a binding status query module 2706 and a device control module 2707.
A binding state query module 2706, configured to query whether a binding relationship between the user identifier and the device serial number is established from the internet of things open platform; if the binding relationship is found, the device control module 2707 is notified; if the binding relationship is not found, the device connection mode determination module 2702 is notified.
And the device control module 2707 is configured to jump to a device control page corresponding to the network device serial number if the established binding relationship is found, trigger a control instruction in the device control page, and send the control instruction to the controlled device through direct connection or through an internet of things open platform.
As shown in fig. 31, in one embodiment, the device binding apparatus 2700 further includes: an internet of things public service page display module 2708, an equipment information query module 2709, an equipment information receiving module 2710 and an equipment information display module 2711.
And the internet of things public service page display module 2708 is used for displaying an internet of things public service page corresponding to the internet of things public service account.
And the equipment information query module 2709 is configured to trigger an equipment query request carrying a user identifier in the public service page of the internet of things and send the equipment query request to the open platform of the internet of things.
The device information receiving module 2710 is configured to receive device information returned by the internet of things open platform according to the device query request; the equipment serial number corresponding to the returned equipment information has a historical binding relationship with the user identification.
And the device information display module 2711 is configured to display the received graphic code.
As shown in fig. 32, in one embodiment, the device binding apparatus 2700 further includes: a graphic code query module 2712, a graphic code receiving module 2713 and a graphic code display module 2714.
The graphic code query module 2712 is configured to obtain a graphic code query request carrying a corresponding device serial number and corresponding to the displayed device information, and send the graphic code query request to the internet of things open platform.
The graphic code receiving module 2713 is configured to receive a graphic code returned by the internet of things open platform according to the graphic code query request; the returned graphic code comprises the equipment serial number and the corresponding equipment type identification carried by the graphic code query request.
The graphic code display module 2714 is configured to display the received graphic code.
The device binding apparatus 2700 obtains the device type identifier and the device serial number of the controlled device by scanning the pattern code, wherein the device connection mode may be determined according to the device type identifier, and the device serial number may uniquely identify the corresponding network access device. Therefore, according to the inquired equipment connection mode, the controlled equipment corresponding to the equipment serial number can be automatically searched and connection can be established. And then the user identification and the equipment serial number are uploaded to the Internet of things open platform, so that the binding relationship between the user identification and the equipment serial number can be established on the Internet of things open platform. Wherein after successfully establishing the connection with the controlled device, the user identifier and the device serial number are sent to indicate that the graphic code is correct and that the controlled device is discoverable and connectable, which can ensure that the binding relationship is valid. Therefore, a series of operations of the binding equipment can be automatically triggered only by scanning the graphic code, the operation is simple and convenient, and the operation convenience is improved.
As shown in fig. 33, in one embodiment, there is provided a device binding apparatus 3300 having functional modules for implementing the device binding method applicable to various embodiments of the internet of things open platform. The device binding apparatus 3300 includes: the device connection mode query module 3301, the device connection mode query module 3302, the device connection mode feedback module 3303, the receiving module 3304, and the binding relationship establishing module 3305.
The device connection mode query request receiving module 3301 is configured to receive a device connection mode query request carrying a device type identifier obtained by scanning a graphic code, sent by a mobile terminal corresponding to a user identifier.
And the device connection mode query module 3302 is configured to query the device connection mode corresponding to the device type identifier according to the device connection mode query request.
And an equipment connection mode feedback module 3303, configured to feed back the queried equipment connection mode to the mobile terminal, so that the mobile terminal establishes a connection with the controlled equipment corresponding to the equipment serial number obtained by scanning the graphic code according to the fed back equipment connection mode.
A receiving module 3304, configured to receive the user identifier and the device serial number sent by the mobile terminal after the connection with the controlled device is successfully established.
A binding relationship establishing module 3305, configured to establish a binding relationship between the user identifier and the device serial number.
As shown in fig. 34, in one embodiment, the device binding apparatus 3300 further includes: a device connection mode configuration request receiving module 3306 and a device connection mode configuration module 3307.
A device connection mode configuration request receiving module 3306, configured to receive a device connection mode configuration request carrying a device type identifier and sent by a device management terminal corresponding to the device vendor identifier.
The device connection mode configuration module 3307 is configured to configure, according to the device connection mode configuration request, a device connection mode corresponding to the device type identifier.
As shown in fig. 35, in one embodiment, the device binding apparatus 3300 further includes: a device query request receiving module 3308, a device information query module 3309, and a device information return module 3310.
The device query request receiving module 3308 is configured to receive a device query request with a user identifier sent by a mobile terminal.
And the device information query module 3309 is configured to query, according to the device query request, device information corresponding to the device serial number having a historical binding relationship with the user identifier.
A device information returning module 3310 for returning the device information to the mobile terminal.
As shown in fig. 36, in one embodiment, the device binding apparatus 3300 further includes: a graphic code query request receiving module 3311, a graphic code generating module 3312, and a graphic code transmitting module 3313.
The graphic code query request receiving module 3311 is configured to receive a graphic code query request sent by a mobile terminal and carrying an equipment serial number corresponding to the equipment information.
The graphic code generating module 3312 is configured to generate a graphic code according to the graphic code query request, where the graphic code query request carries an equipment serial number and a corresponding equipment type identifier.
A graphic code sending module 3313, configured to send the generated graphic code to the mobile terminal.
As shown in fig. 37, in one embodiment, the device binding apparatus 3300 further includes: a binding status query request receiving module 3314, a binding status querying module 3315, and a query result returning module 3316.
A binding status query request receiving module 3314, configured to receive a binding status query request carrying a user identifier and an equipment serial number sent by a mobile terminal.
A binding status query module 3315, configured to query whether a binding relationship between the user identifier and the device serial number is established according to the binding status query request.
The query result returning module 3316 is configured to return a query result indicating whether the binding relationship is established to the mobile terminal.
In the device binding apparatus 3300, the mobile terminal obtains the device type identifier and the device serial number of the controlled device by scanning the pattern code. Therefore, when the device connection mode query request of the mobile terminal is received, the device connection mode corresponding to the device type identifier can be fed back to the mobile terminal, so that the mobile terminal establishes connection with the controlled device corresponding to the device serial number according to the fed back device connection mode. Thus, after receiving the user identifier and the equipment serial number sent by the mobile terminal, the binding relationship between the user identifier and the equipment serial number can be established. The mobile terminal sends the user identification and the equipment serial number after establishing the connection with the controlled equipment, which indicates that the graphic code is correct and the controlled equipment can be discovered and connected, thereby ensuring the effectiveness of the established binding relationship. Therefore, the mobile terminal can automatically trigger a series of operations of the binding equipment only by scanning the graphic code, the operation is simple and convenient, and the operation convenience is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (22)

1. A method of device binding, the method comprising:
displaying a contact page or an instant messaging message page of the instant messaging application;
when a graphic code scanning page triggering control in a contact page or an instant messaging message page of the instant messaging application is triggered, entering a graphic code scanning page, scanning a graphic code corresponding to controlled equipment on the graphic code scanning page, and obtaining an equipment type identifier and an equipment serial number;
inquiring a corresponding device connection mode according to the device type identifier;
searching the controlled equipment corresponding to the equipment serial number according to the inquired equipment connection mode to establish connection;
after the connection is successfully established, jumping to an equipment binding page of the instant messaging application, and uploading a user identifier and the equipment serial number to an Internet of things open platform when a binding confirmation instruction triggered in the equipment binding page is received, so that the Internet of things open platform establishes a binding relationship between the user identifier and the equipment serial number; and the equipment binding page displays equipment information corresponding to the equipment serial number and user information corresponding to the user identification, wherein the equipment information and the user information are used for confirming the user identification and the equipment serial number.
2. The method according to claim 1, wherein before querying the corresponding device connection method according to the device type identifier, the method further comprises:
detecting whether connection can be established with the controlled equipment corresponding to the equipment serial number or not through a preset connection mode;
if so, uploading the user identifier and the equipment serial number to an Internet of things open platform after the connection is successfully established, so that the Internet of things open platform establishes a binding relationship between the user identifier and the equipment serial number;
if not, executing the step of inquiring the corresponding equipment connection mode according to the equipment type identification.
3. The method according to claim 1, wherein the uploading, when receiving a binding confirmation instruction triggered in the device binding page, a user identifier and the device serial number to an internet of things open platform, so that the internet of things open platform establishes a binding relationship between the user identifier and the device serial number, includes:
displaying equipment information corresponding to the equipment serial number and user information corresponding to the user identification in an equipment binding page;
receiving a binding confirmation instruction triggered in the device binding page;
and uploading the user identifier and the equipment serial number to an Internet of things open platform according to the binding confirmation instruction, so that the Internet of things open platform establishes the binding relationship between the user identifier and the equipment serial number.
4. The method according to claim 1, wherein after scanning a graphic code corresponding to the controlled device and obtaining the device type identifier and the device serial number, the method further comprises:
inquiring whether the user identification and the equipment serial number establish a binding relationship from the Internet of things open platform;
if the established binding relationship is inquired, jumping to an equipment control page corresponding to the equipment serial number, triggering a control instruction in the equipment control page, and sending the control instruction to the controlled equipment through direct connection or the Internet of things open platform;
and if the binding relationship is not established, executing the step of inquiring the corresponding equipment connection mode according to the equipment type identifier.
5. The method of claim 1, further comprising:
displaying an Internet of things public service page corresponding to the Internet of things public service account;
triggering an equipment query request carrying the user identification in the public service page of the internet of things and sending the equipment query request to the open platform of the internet of things;
receiving equipment information returned by the Internet of things open platform according to the equipment query request; the equipment serial number corresponding to the returned equipment information has a historical binding relationship with the user identifier;
displaying the received device information;
acquiring a graphic code query request which corresponds to the displayed equipment information and carries a corresponding equipment serial number, and sending the graphic code query request to the Internet of things open platform;
receiving the graphic code returned by the Internet of things open platform according to the graphic code query request; the returned graphic code comprises an equipment serial number and a corresponding equipment type identifier carried by the graphic code query request;
and displaying the received graphic code.
6. The method of claim 1, wherein the device connection means comprises: at least one of a wireless local area network connection mode, a mobile communication network connection mode, an NFC connection mode and a Bluetooth connection mode; the graphic code is a two-dimensional code.
7. A method of device binding, the method comprising:
receiving a device connection mode query request which is sent by a mobile terminal corresponding to a user identifier and carries a device type identifier obtained by scanning a graphic code; the mobile terminal enters a graphic code scanning page and scans the graphic code scanning page when detecting the triggering operation of a graphic code scanning page triggering control in a contact page or an instant messaging message page displayed by an instant messaging application;
inquiring the equipment connection mode corresponding to the equipment type identification according to the equipment connection mode inquiry request;
feeding back the inquired equipment connection mode to the mobile terminal, and enabling the mobile terminal to establish connection with the controlled equipment corresponding to the equipment serial number obtained by scanning the graphic code according to the fed back equipment connection mode;
receiving the user identifier and the equipment serial number which are sent by the mobile terminal based on a binding confirmation instruction triggered in an equipment binding page of the instant messaging application after the mobile terminal successfully establishes the connection with the controlled equipment; the equipment binding page displays equipment information corresponding to the equipment serial number and user information corresponding to the user identification, wherein the equipment information and the user information are used for confirming the user identification and the equipment serial number;
and establishing a binding relationship between the user identification and the equipment serial number.
8. The method according to claim 7, wherein before receiving the device connection type query request carrying the device type identifier obtained by scanning the graphic code and sent by the mobile terminal corresponding to the user identifier, the method further comprises:
receiving a device connection mode configuration request carrying a device type identifier and sent by a device management terminal corresponding to the device supplier identifier;
and configuring the equipment connection mode corresponding to the equipment type identification according to the equipment connection mode configuration request.
9. The method of claim 7, further comprising:
receiving an equipment query request carrying the user identification sent by the mobile terminal;
inquiring equipment information corresponding to the equipment serial number with the historical binding relation with the user identification according to the equipment inquiry request;
returning the equipment information to the mobile terminal;
receiving a graphic code query request which is sent by the mobile terminal and carries an equipment serial number corresponding to the equipment information;
generating a graphic code by using the equipment serial number and the corresponding equipment type identifier carried by the graphic code query request according to the graphic code query request;
and sending the generated graphic code to the mobile terminal.
10. The method of claim 7, further comprising:
receiving a binding state query request which is sent by the mobile terminal and carries the user identification and the equipment serial number;
inquiring whether the binding relationship between the user identification and the equipment serial number is established according to the binding state inquiry request;
and returning a query result of whether the binding relationship is established to the mobile terminal.
11. The method of claim 7, wherein the device connection means comprises: at least one of a wireless local area network connection mode, a mobile communication network connection mode, an NFC connection mode and a Bluetooth connection mode; the graphic code is a two-dimensional code.
12. An apparatus for binding devices, the apparatus comprising:
the graphic code processing module is used for displaying a contact person page or an instant messaging message page of the instant messaging application; when a graphic code scanning page triggering control in a contact page or an instant messaging message page of the instant messaging application is triggered, entering a graphic code scanning page, scanning a graphic code corresponding to controlled equipment on the graphic code scanning page, and obtaining an equipment type identifier and an equipment serial number;
the device connection mode determining module is used for inquiring the corresponding device connection mode according to the device type identifier;
the connection module is used for searching the controlled equipment corresponding to the equipment serial number according to the inquired equipment connection mode to establish connection;
and the binding module is used for jumping to an equipment binding page of the instant messaging application after the connection is successfully established, uploading a user identifier and the equipment serial number to an Internet of things open platform when a binding confirmation instruction triggered in the equipment binding page is received, so that the Internet of things open platform establishes a binding relationship between the user identifier and the equipment serial number, the equipment binding page displays equipment information corresponding to the equipment serial number and user information corresponding to the user identifier, and the equipment information and the user information are used for confirming the user identifier and the equipment serial number.
13. The apparatus of claim 12, further comprising:
the detection module is used for detecting whether connection can be established with the controlled equipment corresponding to the equipment serial number or not through a preset connection mode; if yes, notifying the binding module; if not, the device connection mode determining module is notified.
14. The apparatus of claim 12, wherein the binding module comprises:
the information display module is used for displaying equipment information corresponding to the equipment serial number and user information corresponding to the user identification in an equipment binding page;
a binding confirmation instruction receiving module, configured to receive a binding confirmation instruction triggered in the device binding page;
and the binding execution module is used for uploading the user identifier and the equipment serial number to an Internet of things open platform according to the binding confirmation instruction, so that the Internet of things open platform establishes the binding relationship between the user identifier and the equipment serial number.
15. The apparatus of claim 12, further comprising: a binding state query module and an equipment control module;
the binding state query module is used for querying whether a binding relationship between the user identifier and the equipment serial number is established from the Internet of things open platform; if the binding relationship is found, the equipment control module is informed; if the binding relation is not established, informing the equipment connection mode determining module;
and the equipment control module is used for jumping to an equipment control page corresponding to the equipment serial number if the established binding relationship is inquired, triggering a control instruction in the equipment control page, and sending the control instruction to the controlled equipment through direct connection or the Internet of things open platform.
16. The apparatus of claim 12, further comprising:
the system comprises an Internet of things public service page display module, a network service module and a network service module, wherein the Internet of things public service page display module is used for displaying an Internet of things public service page corresponding to an Internet of things public service account;
the equipment information query module is used for triggering an equipment query request carrying the user identifier in the public service page of the internet of things and sending the equipment query request to the open platform of the internet of things;
the equipment information receiving module is used for receiving equipment information returned by the Internet of things open platform according to the equipment query request; the equipment serial number corresponding to the returned equipment information has a historical binding relationship with the user identifier;
the equipment information display module is used for displaying the received graphic code;
the graphic code query module is used for acquiring a graphic code query request which corresponds to the displayed equipment information and carries a corresponding equipment serial number and sending the graphic code query request to the Internet of things open platform;
the graphic code receiving module is used for receiving the graphic code returned by the Internet of things open platform according to the graphic code query request; the returned graphic code comprises an equipment serial number and a corresponding equipment type identifier carried by the graphic code query request;
and the graphic code display module is used for displaying the received graphic code.
17. An apparatus for binding devices, the apparatus comprising:
the device connection mode query request receiving module is used for receiving a device connection mode query request which is sent by the mobile terminal corresponding to the user identification and carries the device type identification obtained by scanning the graphic code; the mobile terminal enters a graphic code scanning page and scans the graphic code scanning page when detecting the triggering operation of a graphic code scanning page triggering control in a contact page or an instant messaging message page displayed by an instant messaging application;
the equipment connection mode query module is used for querying the equipment connection mode corresponding to the equipment type identifier according to the equipment connection mode query request;
the device connection mode feedback module is used for feeding back the inquired device connection mode to the mobile terminal, so that the mobile terminal establishes connection with the controlled device corresponding to the device serial number obtained by scanning the graphic code according to the fed back device connection mode;
a receiving module, configured to receive the user identifier and the device serial number sent by the mobile terminal based on a binding confirmation instruction triggered in a device binding page of the instant messaging application after the mobile terminal successfully establishes a connection with the controlled device; the equipment binding page displays equipment information corresponding to the equipment serial number and user information corresponding to the user identification, wherein the equipment information and the user information are used for confirming the user identification and the equipment serial number;
and the binding relation establishing module is used for establishing the binding relation between the user identifier and the equipment serial number.
18. The apparatus of claim 17, further comprising:
the equipment connection mode configuration request receiving module is used for receiving an equipment connection mode configuration request carrying an equipment type identifier and sent by an equipment management terminal corresponding to the equipment supplier identifier;
and the device connection mode configuration module is used for configuring the device connection mode corresponding to the device type identifier according to the device connection mode configuration request.
19. The apparatus of claim 17, further comprising:
a device query request receiving module, configured to receive a device query request carrying the user identifier sent by the mobile terminal;
the equipment information inquiry module is used for inquiring the equipment information corresponding to the equipment serial number which has a historical binding relationship with the user identifier according to the equipment inquiry request;
the device information returning module is used for returning the device information to the mobile terminal;
the graphic code query request receiving module is used for receiving a graphic code query request which is sent by the mobile terminal and carries the equipment serial number corresponding to the equipment information;
the graphic code generation module is used for generating a graphic code by the equipment serial number and the corresponding equipment type identifier carried by the graphic code query request according to the graphic code query request;
and the graphic code sending module is used for sending the generated graphic code to the mobile terminal.
20. The apparatus of claim 17, further comprising:
a binding state query request receiving module, configured to receive a binding state query request that carries the user identifier and the device serial number and is sent by the mobile terminal;
a binding state query module, configured to query whether a binding relationship between the user identifier and the device serial number is established according to the binding state query request;
and the query result returning module is used for returning a query result of whether the binding relationship is established to the mobile terminal.
21. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 11.
22. A storage medium storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 11.
CN201510465645.7A 2015-07-31 2015-07-31 Equipment binding method and device Active CN106413124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510465645.7A CN106413124B (en) 2015-07-31 2015-07-31 Equipment binding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510465645.7A CN106413124B (en) 2015-07-31 2015-07-31 Equipment binding method and device

Publications (2)

Publication Number Publication Date
CN106413124A CN106413124A (en) 2017-02-15
CN106413124B true CN106413124B (en) 2021-03-23

Family

ID=58007500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510465645.7A Active CN106413124B (en) 2015-07-31 2015-07-31 Equipment binding method and device

Country Status (1)

Country Link
CN (1) CN106413124B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070891B (en) * 2017-03-10 2018-05-22 腾讯科技(深圳)有限公司 Service calling method and device
WO2018161851A1 (en) 2017-03-10 2018-09-13 腾讯科技(深圳)有限公司 Device control method, storage medium, and computer device
CN107766738A (en) * 2017-09-12 2018-03-06 阿里巴巴集团控股有限公司 A kind of binding method of smart machine, device and system, communication system
CN109684345B (en) * 2017-10-18 2021-02-02 天津大唐国际盘山发电有限责任公司 Control method of environment-friendly equipment information management system
US11418939B2 (en) 2017-10-25 2022-08-16 Indie Health LLC Systems and methods for automatic pairing of devices
US10701746B2 (en) 2017-10-25 2020-06-30 Indie Health LLC Systems and methods for automatic pairing of devices
CN108667950B (en) * 2018-03-23 2021-12-21 海信集团有限公司 Method and device for obtaining device identification
CN109041038A (en) * 2018-04-20 2018-12-18 珠海奔图电子有限公司 For controlling the method and system of electronic device and designated user's binding
CN110769396B (en) * 2018-07-25 2023-06-09 深圳市优必选科技有限公司 Method, system and terminal equipment for robot to connect network
CN110769397B (en) * 2018-07-25 2023-03-07 深圳市优必选科技有限公司 Method and device for connecting robot with network and terminal equipment
CN109462659B (en) * 2018-12-17 2021-06-15 深圳市网心科技有限公司 Remote access control system, method and storage medium for embedded device
CN110120977B (en) * 2019-05-10 2022-04-08 宁波奥克斯电气股份有限公司 Equipment production serial number uploading method and system
CN110971965B (en) * 2019-12-05 2021-02-26 珠海格力电器股份有限公司 Intelligent display equipment association method, device and system and computer storage medium
KR20220152242A (en) * 2020-03-10 2022-11-15 광동 오포 모바일 텔레커뮤니케이션즈 코포레이션 리미티드 IoT communication method and device
CN111885594B (en) * 2020-06-30 2024-03-22 海尔优家智能科技(北京)有限公司 Equipment binding method and device
CN112036583A (en) * 2020-07-27 2020-12-04 勤上光电股份有限公司 Management system and management method for intelligent street lamp and sub-equipment thereof
CN114089928B (en) * 2020-07-29 2024-03-22 钉钉控股(开曼)有限公司 Binding relation establishing method and device and remote printing method
CN112351471B (en) * 2020-08-24 2024-04-30 深圳Tcl新技术有限公司 Method for accessing device to gateway, gateway device and computer readable storage medium
CN112738265A (en) * 2020-12-31 2021-04-30 青岛海尔科技有限公司 Equipment binding method and device, storage medium and electronic device
CN113542360A (en) * 2021-06-17 2021-10-22 深圳市元征未来汽车技术有限公司 Information association method, association device, electronic equipment and readable storage medium
CN114051238A (en) * 2021-11-04 2022-02-15 珠海读书郎软件科技有限公司 Method for establishing binding relationship of intelligent equipment
CN114885315A (en) * 2022-05-19 2022-08-09 青岛海尔科技有限公司 Equipment binding method and device, storage medium and electronic device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219067A (en) * 2013-05-29 2014-12-17 中国电信股份有限公司 Method, user terminal and system for achieving quick configuration for terminal of Internet of Things
CN104144200A (en) * 2013-12-09 2014-11-12 腾讯科技(深圳)有限公司 Communication methods, communication side and user side for internet of things
CN104023016B (en) * 2014-06-09 2018-03-06 天津三星通信技术研究有限公司 In the method and apparatus that communicating terminal establishes communication connection
CN104378236A (en) * 2014-11-24 2015-02-25 青岛海尔软件有限公司 Internet of things device management platform and method
CN104618440B (en) * 2014-12-31 2018-03-23 腾讯科技(深圳)有限公司 Smart machine control method and device
CN104767756B (en) * 2015-04-15 2018-04-20 北京京东尚科信息技术有限公司 Facility information processing method, client terminal device and service terminal device

Also Published As

Publication number Publication date
CN106413124A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN106413124B (en) Equipment binding method and device
CN106559388B (en) Method and device for binding equipment
US20210176228A1 (en) Establishing access to a secure network based on user-created credential indicia
US9818011B2 (en) Method and device for identifying two-dimensional barcodes
US8769030B2 (en) Device event notification registration through direct interaction with mobile device
CN104144420A (en) Wireless access method and related equipment and system
US20120307277A1 (en) Information processing apparatus for transferring image data, server apparatus for receiving transferred image data, and control methods and storage media therefor
US10602021B2 (en) Authentication setting system and image forming apparatus
CN106559312B (en) Group management method and device based on controlled equipment
CN113596832B (en) Network connection establishment method and device, storage medium and electronic device
CN105682090A (en) Device control method and control terminal response method and apparatus
CN104506594A (en) Data communication method and system for social application system
CN103916695A (en) Method of receiving connection information from mobile communication device, and digital image-capturing apparatus
US9876858B2 (en) System, device and method for configuring a connection in a machine to machine environment
EP2874465B1 (en) Method and system for remote equipment data installation
CN111132131A (en) Number copying method, terminal and storage medium
CN115802345A (en) Method, device and storage medium for accessing equipment to wireless network
JP2019068353A (en) Inter-apparatus communication method and information terminal
WO2013071207A1 (en) Scanning a bar code to establish a communication
CN105549976B (en) PDA intelligence interconnection method and device
JP2019220043A (en) Information terminal, terminal application management system, and program
CN112654040B (en) Method, apparatus, processor and non-volatile storage medium for associating devices
CN106302564B (en) Document transmission method, device and system
CN112637038B (en) Method and device for associating instant messaging application with mailbox
EP2725772A1 (en) Method for identifying a scan job file to a user

Legal Events

Date Code Title Description
C06 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