[go: up one dir, main page]

CN105392109B - Wireless connection method and device - Google Patents

Wireless connection method and device Download PDF

Info

Publication number
CN105392109B
CN105392109B CN201510685641.XA CN201510685641A CN105392109B CN 105392109 B CN105392109 B CN 105392109B CN 201510685641 A CN201510685641 A CN 201510685641A CN 105392109 B CN105392109 B CN 105392109B
Authority
CN
China
Prior art keywords
wireless connection
state
connection
modes
configurable mode
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
CN201510685641.XA
Other languages
Chinese (zh)
Other versions
CN105392109A (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.)
Bird Innovation Beijing Technology Co ltd
Original Assignee
Beijing Xiaoniao Tingting Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaoniao Tingting Technology Co Ltd filed Critical Beijing Xiaoniao Tingting Technology Co Ltd
Priority to CN201510685641.XA priority Critical patent/CN105392109B/en
Publication of CN105392109A publication Critical patent/CN105392109A/en
Application granted granted Critical
Publication of CN105392109B publication Critical patent/CN105392109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to the field of wireless communications technologies, and in particular, to a wireless connection method and apparatus. The method comprises the following steps: receiving an operation instruction of a user on a human-computer interface, and controlling various wireless connection modes to synchronously enter a configurable mode if the operation instruction is a preset operation instruction; and detecting the states of the plurality of wireless connection modes in real time in the configurable mode, and if any wireless connection mode in the plurality of wireless connection modes is detected to exit the configurable mode and the connection state is established, selecting and controlling whether other wireless connection modes synchronously exit the configurable mode or not and the connection behavior of other wireless connection modes after the other wireless connection modes synchronously exit the configurable mode according to a preset mechanism. The wireless connection method and the wireless connection device are simple in operation process and high in intelligent degree, and user experience can be effectively improved.

Description

Wireless connection method and device
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a wireless connection method and apparatus.
Background
With the development of the internet of things technology, more and more devices can be in communication connection through the wireless communication technology. These devices typically do not have a complex human-machine interface such as a screen, but often require the necessary operations of configuration, connection, etc. with other wireless clients.
In the prior art, for devices that can communicate by using multiple wireless connection technologies, configuration and connection of each wireless communication are generally implemented by using separate isolated entities. For example, for devices that can respectively adopt bluetooth and WiFi for wireless connection, different operation buttons are respectively adopted to control various wireless connection modes, that is, at least one button is required to control bluetooth connection, and in addition, one button is required to control WiFi connection.
Disclosure of Invention
The embodiment of the invention provides a wireless connection method and device, which are simple in operation process and high in intelligent degree and can effectively improve user experience.
In one aspect, an embodiment of the present invention provides a wireless connection method, including:
receiving an operation instruction of a user on a human-computer interface, and controlling multiple wireless connection modes to synchronously enter a configurable mode if the operation instruction is a preset operation instruction;
and detecting the states of the plurality of wireless connection modes in real time in the configurable mode, and if any wireless connection mode in the plurality of wireless connection modes is detected to exit the configurable mode and the connection state is established, selecting and controlling whether other wireless connection modes synchronously exit the configurable mode and the connection behavior of other wireless connection modes after other wireless connection modes synchronously exit the configurable mode according to a preset mechanism.
Preferably, the method further comprises: after detecting that the connection state of any one of the multiple wireless connection modes is a connection established state, if a preset operation instruction of a user on a human-computer interface is received again, controlling the connection state to be switched to a connection disconnection state, and controlling the multiple wireless connection modes to synchronously enter a configurable mode.
Preferably, in the configurable mode, if a preset operation instruction of the user on the human-computer interface is received again, or if a configuration instruction of the user is not received within a preset time period, the plurality of wireless connection modes are controlled to synchronously exit the configurable mode, and whether the connection state is restored to a previous connection established state is selected and controlled according to a preset mechanism.
Preferably, the method further includes a step of displaying a current wireless connection status, specifically including:
before the multiple wireless connection modes synchronously enter the configurable mode, displaying the current wireless connection state as a connection established state or an idle state;
after the multiple wireless connection modes synchronously enter the configurable mode, displaying the current wireless connection state as the configurable state;
and after the plurality of wireless connection modes synchronously exit the configurable mode, displaying the current wireless connection state as a connection established state or an idle state.
Preferably, the plurality of wireless connection modes include a bluetooth connection mode and a WiFi connection mode.
In another aspect, an embodiment of the present invention provides a wireless connection apparatus, including:
the receiving module is used for receiving an operation instruction of a user on a human-computer interface;
the main control module is used for judging whether the operation instruction is a preset operation instruction or not, and controlling a plurality of wireless connection modes to synchronously enter a configurable mode after judging that the operation instruction is the preset operation instruction;
the main control module is further configured to perform real-time detection on the states of the multiple wireless connection modes in the configurable mode, and select and control whether other wireless connection modes synchronously exit the configurable mode and connection behaviors after other wireless connection modes synchronously exit the configurable mode according to a preset mechanism when detecting that any one of the multiple wireless connection modes exits the configurable mode and the connection state is that connection is established.
Preferably, the main control module is further configured to, after detecting that the connection state of any one of the multiple wireless connection manners is a connection established state, if a preset operation instruction of a user on a human-computer interface is received again, control the connection state to be switched to a connection disconnection state, and control the multiple wireless connection manners to synchronously enter a configurable mode.
Preferably, the main control module is further configured to, in the configurable mode, if a preset operation instruction of the user on the human-computer interface is received again, or if a configuration instruction of the user is not received within a preset time period, control the multiple wireless connection modes to synchronously exit the configurable mode, and select and control whether the connection state is restored to a previous connection established state according to a preset mechanism.
Preferably, the apparatus further comprises: the display module is used for displaying the current wireless connection state;
the display module is specifically configured to display a current wireless connection state as a connection established state or an idle state before the plurality of wireless connection modes synchronously enter the configurable mode; after the multiple wireless connection modes synchronously enter the configurable mode, displaying the current wireless connection state as the configurable state; and after the plurality of wireless connection modes synchronously exit the configurable mode, displaying the current wireless connection state as a connection established state or an idle state.
Preferably, the wireless connection device is an intelligent sound box, and the multiple wireless connection modes include a bluetooth connection mode and a WiFi connection mode.
By using the wireless connection method and the wireless connection device provided by the embodiment of the invention, one instruction button can be used for controlling a plurality of wireless connection modes to enter/exit the configurable mode, so that the operation process of connecting the wireless device by a user is simpler, and the user does not need to select which wireless connection mode to adopt on the wireless device. The method has high intelligent degree and can effectively improve the user experience.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a wireless connection method according to an embodiment of the present invention;
fig. 2 is a flowchart of a second wireless connection method according to an embodiment of the present invention;
fig. 3 is a flowchart of a third wireless connection method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a wireless connection device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second wireless connection device according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a third wireless connection apparatus according to an embodiment of the present invention establishing a wireless connection with a client bluetooth device and a client WiFi device;
fig. 7 is a message flow diagram illustrating that bluetooth and WiFi synchronously enter a configurable mode according to an embodiment of the present invention;
fig. 8 is a schematic diagram of message flows of the bluetooth connection being successful and exiting the configurable mode according to an embodiment of the present invention.
Description of reference numerals:
the system comprises a human-computer interface 303, a receiving module 201, a main control module 202, a display module 203, a WiFi module 204, a Bluetooth module 205, a client WiFi device 301 and a client Bluetooth device 302.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In the embodiment of the present invention, for convenience of understanding, a wireless connection method is explained by taking a wireless connection process between a smart phone and a smart sound box as an example. The multiple wireless connection modes include a bluetooth connection mode and a WiFi connection mode, for example, those skilled in the art can easily understand that the client bluetooth device and the client WiFi device may be integrated on one mobile phone entity or different mobile phone entities, so that both the two mobile phones can control the smart speaker, and the related smart speaker may also be other smart devices or apparatuses.
As shown in fig. 1, a wireless connection method provided in an embodiment of the present invention includes:
step 101: and receiving an operation instruction of a user on the human-computer interface, and controlling multiple wireless connection modes to synchronously enter a configurable mode if the operation instruction is a preset operation instruction, namely controlling the multiple wireless connection modes to enter the configurable mode.
Specifically, the human-computer interface comprises an input operation interface and a state display interface, and a user can input a corresponding operation instruction on the input operation interface. The input operation interface can be an entity operation panel or a touch panel. When the input operation interface is an entity operation panel, entity buttons can be arranged on the input operation interface to input operation instructions; when the input operation interface is a touch panel, a virtual button may be set on the input operation interface to input an operation instruction. The physical buttons and the virtual buttons may be represented by any icon, for example, they may be configured as a bird icon.
The preset operation instruction may be an instruction for pressing or rotating an entity button, or an instruction for clicking or touching a virtual operation button, and when the preset operation instruction is detected to occur, the user is considered to want to configure multiple wireless connection modes, so that the multiple wireless connection modes are controlled to synchronously enter the configurable mode. Through the input of an operation instruction, multiple wireless connections are controlled to enter a configurable mode, the operation process is simple, the intelligent degree is high, and the user experience is effectively improved.
Certainly, whether a preset operation instruction is input or not can be confirmed by adding an operation time length according to needs, for example, the operation time length can be defined as 2 seconds, and when the time length for clicking the bird icon by the user reaches 2 seconds, the user is considered to want to enable multiple wireless connection modes to synchronously enter the configurable mode.
The plurality of wireless connection modes may include at least two wireless connection modes, namely bluetooth connection and WiFi connection, and certainly may also include any other wireless connection modes, such as infrared connection, NFC connection, Zigbee connection, and the like. For convenience of explanation, the embodiments of the present invention are often referred to as bluetooth connection and WiFi connection when referring to multiple wireless connection manners, but those skilled in the art will readily understand that any other wireless connection manners may be included where bluetooth connection, WiFi connection and multiple wireless connection manners are referred to.
As shown in fig. 7, a user clicks a bird icon on the human-computer interface 303 of the smart speaker (the human-computer interface 303 receives a preset operation instruction), the main control module 202 is notified, the main control module 202 commands both WiFi and bluetooth to enter a configurable mode (a state that the WiFi and bluetooth are required to be connected to an external device), the WiFi and bluetooth enter the configurable mode respectively and send a report that the WiFi and bluetooth have entered the configurable mode to the main control module 202 respectively, and then the main control module 202 displays the bird icon entering the configurable mode on the human-computer interface 303. After the steps shown in fig. 7 are completed, the process will enter a waiting state in which the smart phone performs configuration connection on the smart speaker.
Step 102: and detecting the states of the plurality of wireless connection modes in real time in the configurable mode, and if any wireless connection mode in the plurality of wireless connection modes is detected to exit the configurable mode and the connection state is established, selecting and controlling whether other wireless connection modes synchronously exit the configurable mode or not and the connection behavior of other wireless connection modes after the other wireless connection modes synchronously exit the configurable mode according to a preset mechanism.
In the embodiment of the present invention, after the process of fig. 7 is completed (after both WiFi and bluetooth enter the configurable mode), a WiFi configuration connection process or a bluetooth configuration connection process may be further entered, and which process is specifically entered depends on the selection of the user client.
It should be noted that, the configuration and connection process of WiFi and bluetooth of the smart phone can be implemented by using the bluetooth button and WiFi button operations on the existing phone by using the method in the prior art, so that the operation habit of the user does not need to be changed. The smart phone may use a special software client to control the smart speaker, but this needs to be described in detail after the smart phone is connected to the smart speaker.
The following embodiments are provided, after the smart speaker enters the configurable mode, the user selects the client-side bluetooth device to establish bluetooth wireless connection with the smart speaker, and after the bluetooth connection is completed and the configurable mode is exited, the WiFi module 204 is controlled to synchronously exit the configurable mode according to a preset mechanism of the smart speaker. In this embodiment, the successful bluetooth configuration connection means that the bluetooth connection is completed between the smart speaker and the smart phone. As shown in fig. 8, a user clicks on a bluetooth button of a client bluetooth device 302 (e.g., a smartphone), which displays a bluetooth device, a smart speaker, and selects the smart speaker. The steps of fig. 8 are specifically described below:
step 1: the smart phone sends a bluetooth configuration connection request to the bluetooth module 205;
step 2: exchanging PASSSKEY (Bluetooth pairing password) by both parties, establishing Bluetooth connection, and exiting from a configurable mode;
and 3, step 3: the bluetooth module 205 sends a status report to the main control module 202 reporting that it exits the configurable mode;
and 4, step 4: the main control module 202 immediately sends a command for controlling the WiFi module 204 to exit the configurable mode;
and 5, step 5: the WiFi module 204 exits the configurable mode, and the WiFi module 204 sends a status report to the main control module 202, reporting that it exits the configurable mode;
and 6, step 6: and displaying that the Bluetooth connection is established on the man-machine interface 303 of the intelligent sound box.
The following embodiments are that after the smart speaker enters the configurable mode, the user selects the client-side WiFi device to establish WiFi wireless connection with the smart speaker, and after the WiFi finishes connecting and exiting the configurable mode, the bluetooth module 205 is controlled to synchronously exit the configurable mode according to the preset mechanism of the smart speaker. In this embodiment, the successful WiFi configuration connection refers to the WiFi and routing connection, and the following describes the steps involved therein:
step 1: the user clicks a WiFi button of the mobile phone to display a Service Set Identifier (SSID) of the smart sound box, and the user clicks the SSID and inputs a WiFi password of the smart sound box (certainly, the WiFi of the smart sound box can have no password, and in this case, the password input operation is not required), so that the smart mobile phone is connected with the WiFi module 204;
and step 2, the smart phone sends the routed SSID and password to the WiFi module 204.
And 3, step 3: the WiFi module 204 automatically disconnects the connection with the smart phone and connects the route.
And 4, step 4: the WiFi module 204 sends a status report to the master control module 202 reporting that it exits the configurable mode;
and 5, step 5: the main control module 202 immediately sends a command for controlling the bluetooth module 205 to exit the configurable mode;
and 6, step 6: the bluetooth module 205 exits the configurable mode, and the bluetooth module 205 sends a status report to the main control module 202, reporting that it exits the configurable mode;
and 7, step 7: and displaying that the WiFi connection is established on the human-computer interface 303 of the smart sound box.
After the WiFi module 204 disconnects from the smartphone, the smartphone resumes connection with the route, which may be automatically attempted and routed for the phone, or manually selected by the user.
If the smart phone is directly connected with the WiFi of the smart sound box to perform sound box control only in the step 1, the smart phone cannot be connected with a router to surf the internet, so that the smart sound box and the router need to be connected, the smart phone can control the sound box through the router and surf the internet at the same time, the subsequent steps are similar to those in the step 8, and all the smart phone exits from the configurable mode and can be referred to.
In step 102, in the configurable mode, it is detected that any one of the plurality of wireless connection modes has exited the configurable mode and the connection state is that connection has been established, and according to a preset mechanism, it is also possible to selectively control other wireless connection modes not to synchronously exit the configurable mode but to wait for further configuration.
As shown in fig. 2, the wireless connection method provided in the embodiment of the present invention may further include:
step 103: after detecting that the connection state of any one of the multiple wireless connection modes is the connection established state, if receiving the preset operation instruction of the user on the human-computer interface again, controlling the connection state to be switched to the connection disconnection state, and controlling the multiple wireless connection modes to synchronously enter the configurable mode.
Specifically, after detecting that the connection is currently in the connection established state, if it is detected that the user inputs a preset operation instruction on the operation interface again, for example, clicking a bird icon, the connection state is controlled to be switched from the connection established state to the connection disconnected state, and the configuration process is restarted, that is, returning to step 101, and the multiple wireless connection modes synchronously enter the configurable mode.
As shown in fig. 3, the wireless connection method provided in the embodiment of the present invention may further include:
step 104: in the configurable mode, if a preset operation instruction of a user on the human-computer interface is received again, or if the configuration instruction of the user is not received within a preset time period, controlling a plurality of wireless connection modes to synchronously exit the configurable mode, and selecting whether the connection state is recovered to the previous connection established state or not according to a preset mechanism. In step 104, if the connection is not restored to the previous connection established state according to the preset mechanism, displaying an idle state on a state display interface of the human-computer interface. Several embodiments for selectively controlling the connection state to revert to the previous connection established state according to a predetermined mechanism are given below:
for example, when the speaker is currently in a certain connection state, and the user clicks the bird icon, the speaker is disconnected, and thus fig. 7 is entered, and the configurable mode is entered by multiple wireless connection manners, in which the following two situations may occur:
in the first case: and receiving a preset operation instruction of the user on the human-computer interface again, for example, detecting that the user clicks the bird icon again, determining that the user does not want to configure, at this time, controlling all wireless connection modes to completely exit the configurable mode, taking a plurality of wireless connection modes including bluetooth wireless connection and WiFi wireless connection as an example, the bluetooth and WiFi completely exit the configurable mode, and then, restoring the connection state to the previous connection established state. For example, if the previous connection state is WiFi connection, the connection state at this time is also restored to WiFi connection, and since the SSID and password of the route are already known in the previous connection process, the restoration of the established state of WiFi connection can be achieved without using fig. 7, so that the degree of intelligence is further improved, and after the master control module receives the connected state report, the state report is displayed on a state display interface of a human-computer interface.
In the second case: the method comprises the steps that a configuration instruction of a user is not received within a preset time period, namely overtime occurs, for example, an instruction for establishing connection between a mobile phone of the user and a sound box is not received, so that wireless connection cannot be established, at the moment, a plurality of wireless connection modes are controlled to synchronously exit from a configurable mode, and the sound box automatically restores the state of the established connection at the previous time. And after receiving the connected state report, the main control module displays the state report on a state display interface of the human-computer interface.
In the two cases, if the sound box fails to recover the state established in the previous connection, that is, after the main control module receives the state report of the connection failure, the sound box is displayed on the human-computer interface to enter the idle state. In other embodiments of the present invention, the substrate may be,
in another embodiment, if the plurality of wireless connection modes of the sound box are not configured to connect with any client device, and the user clicks the bird icon, the sound box enters fig. 7, and the plurality of wireless connection modes synchronously enter the configurable mode, in the configurable mode, if the preset operation instruction of the user on the human-computer interface is received again or the configuration instruction of the user is not received within the preset time period (timeout), the main control module controls the plurality of wireless connection modes to synchronously exit the configurable mode, and the display enters the idle state on the human-computer interface.
In order to visually display the current wireless connection state, the wireless connection method provided in the embodiment of the present invention may further include one or more of the following display steps:
before a plurality of wireless connection modes synchronously enter a configurable mode, displaying the current wireless connection state as a connection established state or an idle state;
after the multiple wireless connection modes synchronously enter the configurable mode, displaying the current wireless connection state as the configurable state;
and after the plurality of wireless connection modes synchronously exit the configurable mode, displaying the current wireless connection state as a connection established state or an idle state.
The state display can be displayed on a state display interface of a human-computer interface, wherein the state display interface can be a Touch board or an LCD display panel, the current wireless connection state of the intelligent sound box can be clearly and accurately seen through the state display, and the visualization degree is high.
According to the wireless connection method provided by the embodiment of the invention, when the received operation instruction of the user on the human-computer interface is a preset instruction, a plurality of wireless connection modes are controlled to synchronously enter a configurable mode; when any one of the plurality of wireless connection modes is detected to exit the configurable mode and the connection state is established, other wireless connection modes are controlled to synchronously exit the configurable mode, the operation process is simple, the intelligent degree is high, and the user experience can be effectively improved.
An embodiment of the present invention provides a wireless connection device, as shown in fig. 4, including:
a receiving module 201, configured to receive an operation instruction of a user on a human-computer interface;
the main control module 202 is configured to determine whether the operation instruction is a preset operation instruction, and control multiple wireless connection modes to synchronously enter a configurable mode after determining that the operation instruction is the preset operation instruction;
the main control module 202 is further configured to perform real-time detection on states of the multiple wireless connection modes in the configurable mode, and when it is detected that any one of the multiple wireless connection modes exits the configurable mode and the connection state is that connection is established, select and control whether other wireless connection modes synchronously exit the configurable mode or not according to a preset mechanism, and select and control a connection behavior after other wireless connection modes synchronously exit the configurable mode.
The main control module 202 is further configured to, after detecting that the connection state of any one of the multiple wireless connection modes is the connection established state, if a preset operation instruction of the user on the human-computer interface is received again, control the connection state to be switched to the connection disconnection state, and control the multiple wireless connection modes to synchronously enter the configurable mode.
The main control module 202 is further configured to, in the configurable mode, if a preset operation instruction of the user on the human-computer interface is received again, or if a configuration instruction of the user is not received within a preset time period, control the multiple wireless connection modes to synchronously exit the configurable mode, and selectively control whether the connection state is restored to a previous connection established state according to a preset mechanism.
As shown in fig. 5, the wireless connection device may further include:
a display module 203, configured to display a current wireless connection state;
the display module 203 is specifically configured to display the current wireless connection state as a connection established state or an idle state before the multiple wireless connection modes synchronously enter the configurable mode; after the multiple wireless connection modes synchronously enter the configurable mode, displaying the current wireless connection state as the configurable state; and after the plurality of wireless connection modes synchronously exit the configurable mode, displaying the current wireless connection state as a connection established state or an idle state.
It should be noted that the receiving module 201 and the displaying module 203 may be two independent modules, or may be integrated on a human-computer interface 303 and externally present as a physical entity.
The wireless connection device may further include:
as shown in fig. 6, a schematic diagram of a third wireless connection apparatus according to an embodiment of the present invention for establishing a wireless connection with a client bluetooth device and a client WiFi device is shown, and it can be seen from the diagram:
the receiving module 201 and the display module 203 are integrated on a human-computer interface 303, and are connected with the main control module 202, specifically, can be connected through an SPI interface.
The main control module 202 is connected to the WiFi module 204 and the bluetooth module 205 respectively, and specifically, may be connected by electronic circuits, and performs communication according to a certain bus specification, for example, the bluetooth module 205 and the main control module 202 may be connected by a UART interface, and the human-machine interface 303 and the main control module 202 may be an SPI interface.
The wireless connection apparatus provided in the embodiment of the present invention is described below as well as a client WiFi device 301 and a client bluetooth device 302, where the client device and a local device (shown in a square in fig. 6, for example, a smart speaker) communicate with each other through wireless short-distance transmission, and can meet corresponding communication specifications, such as a bluetooth specification and a WiFi specification.
In this embodiment of the present invention, all modules of the local device can communicate with the main control module 202, and the message transmitted by the communication specifically may include: m11, M12, M13, M14, M15 and M16, and the detailed information of the messages is shown in the table below.
Figure BDA0000826104760000111
Encoding and decoding these messages are essential steps for delivery using a serial bus, and the following is a message format defined by an embodiment of the invention:
prefix Message numbering Check code Data length Byte 1 Byte 2
AAAA 006B XXXX XX XX XX XX
The prefix is used for positioning the frame header when the serial communication is interrupted; the message number is used for uniquely determining a message of a specific purpose; the check code is used for ensuring that the received data is correct and then the message processing is carried out; the data length indicates the length of the subsequent data, which varies depending on the message type; bytes 1 to n are the contents of the subsequent data.
The master control module 202 processes complex control logic by using a state machine, and after receiving the serial data streams, the master control module 202 first decodes the serial data streams and programs messages that can be stored in a message queue. Messages from the human-computer interface 303, the WiFi module 204 and the Bluetooth module 205 are queued in the message queue, which is equivalent to changing concurrent events into serial events, and ensuring the atomicity of event processing.
The interactive message between the peer device, that is, the client device, and the WiFi module 204 and the bluetooth module 205 of the local device through wireless communication includes: configuration request messages, password interaction messages, connection request messages, disconnection request messages. These messages conform to the corresponding WiFi specification and bluetooth specification, which are not described herein again, and are abstracted as the following messages: m21, M22, M23 and M24, wherein the detailed information of the message is detailed in the following table:
Figure BDA0000826104760000121
according to the wireless connection device provided by the embodiment of the invention, when an operation instruction of a user on a human-computer interface is a preset instruction, a plurality of wireless connection modes are controlled to synchronously enter a configurable mode; and controlling other wireless connection modes to synchronously exit the configurable mode when detecting that any wireless connection mode in the plurality of wireless connection modes exits the configurable mode and the connection state is that the connection is established. By using the wireless connection method and the wireless connection device provided by the embodiment of the invention, one instruction button can be used for controlling a plurality of wireless connection modes to enter/exit the configurable mode, so that the operation process of connecting the wireless device by a user is simpler, and the user does not need to select which wireless connection mode to adopt on the wireless device. The method has high intelligent degree and can effectively improve the user experience.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A wireless connection method for an electronic device supporting multiple wireless connection modes, comprising:
receiving an operation instruction of a user on a human-computer interface of the electronic equipment, and controlling the multiple wireless connection modes to synchronously enter a configurable mode if the operation instruction is a preset operation instruction;
the electronic equipment detects the states of the multiple wireless connection modes in real time in the configurable mode, and if any wireless connection mode in the multiple wireless connection modes is detected to exit the configurable mode and the connection state is established, the electronic equipment selects and controls whether other wireless connection modes synchronously exit the configurable mode or not and selects and controls the connection behavior of other wireless connection modes after the other wireless connection modes synchronously exit the configurable mode according to a preset mechanism;
wherein the method further comprises:
after detecting that the connection state of any one of the multiple wireless connection modes is a connection established state, if a preset operation instruction of a user on a human-computer interface is received again, controlling the connection state to be switched to a connection disconnection state, and controlling the multiple wireless connection modes to synchronously enter a configurable mode.
2. The wireless connection method of claim 1, further comprising:
in the configurable mode, if a preset operation instruction of a user on a human-computer interface is received again, or if the configuration instruction of the user is not received within a preset time period, the multiple wireless connection modes are controlled to synchronously exit the configurable mode, and whether the connection state is recovered to the previous connection established state is selected and controlled according to a preset mechanism.
3. The wireless connection method according to any one of claims 1 to 2, further comprising the step of displaying a current wireless connection status, specifically comprising:
before the multiple wireless connection modes synchronously enter the configurable mode, displaying the current wireless connection state as a connection established state or an idle state;
after the multiple wireless connection modes synchronously enter the configurable mode, displaying the current wireless connection state as the configurable state;
and after the plurality of wireless connection modes synchronously exit the configurable mode, displaying the current wireless connection state as a connection established state or an idle state.
4. The wireless connection method according to any one of claims 1 to 2, wherein the plurality of wireless connection modes include a bluetooth connection mode and a WiFi connection mode.
5. A wireless connection device supporting a plurality of wireless connection modes, comprising:
the receiving module is used for receiving an operation instruction of a user on a human-computer interface;
the main control module is used for judging whether the operation instruction is a preset operation instruction or not, and controlling the multiple wireless connection modes to synchronously enter a configurable mode after judging that the operation instruction is the preset operation instruction;
the main control module is further configured to perform real-time detection on the states of the multiple wireless connection modes in the configurable mode, and when it is detected that any one of the multiple wireless connection modes exits the configurable mode and the connection state is that connection is established, select and control whether other wireless connection modes synchronously exit the configurable mode or not according to a preset mechanism, and select and control a connection behavior after other wireless connection modes synchronously exit the configurable mode;
the main control module is further configured to, after detecting that the connection state of any one of the multiple wireless connection modes is a connection established state, if a preset operation instruction of a user on a human-computer interface is received again, control the connection state to be switched to a connection disconnection state, and control the multiple wireless connection modes to synchronously enter a configurable mode.
6. The wireless connection device of claim 5, wherein:
the main control module is further configured to, in the configurable mode, control the multiple wireless connection modes to synchronously exit the configurable mode if a preset operation instruction of the user on the human-computer interface is received again, or if a configuration instruction of the user is not received within a preset time period, and selectively control whether the connection state is restored to a previous connection established state according to a preset mechanism.
7. The wireless connection device according to any one of claims 5 to 6, wherein the device further comprises:
the display module is used for displaying the current wireless connection state;
the display module is specifically configured to display a current wireless connection state as a connection established state or an idle state before the plurality of wireless connection modes synchronously enter the configurable mode; after the multiple wireless connection modes synchronously enter the configurable mode, displaying the current wireless connection state as the configurable state; and after the plurality of wireless connection modes synchronously exit the configurable mode, displaying the current wireless connection state as a connection established state or an idle state.
8. The wireless connection device according to any one of claims 5 to 6, wherein the wireless connection device is a smart speaker, and the plurality of wireless connection modes include a Bluetooth connection mode and a WiFi connection mode.
CN201510685641.XA 2015-10-20 2015-10-20 Wireless connection method and device Active CN105392109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510685641.XA CN105392109B (en) 2015-10-20 2015-10-20 Wireless connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510685641.XA CN105392109B (en) 2015-10-20 2015-10-20 Wireless connection method and device

Publications (2)

Publication Number Publication Date
CN105392109A CN105392109A (en) 2016-03-09
CN105392109B true CN105392109B (en) 2020-03-03

Family

ID=55423854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510685641.XA Active CN105392109B (en) 2015-10-20 2015-10-20 Wireless connection method and device

Country Status (1)

Country Link
CN (1) CN105392109B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112068741B (en) * 2019-06-10 2023-04-07 海信视像科技股份有限公司 Display device and display method for Bluetooth switch state of display device
CN111736478A (en) * 2020-06-17 2020-10-02 深圳达实智能股份有限公司 Intelligent equipment Internet of things grid-connected device, system and method for intelligent home
CN113507750B (en) * 2021-07-09 2023-04-18 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999251A (en) * 2012-10-31 2013-03-27 东莞宇龙通信科技有限公司 Terminal and equipment connection management method
CN103491655A (en) * 2013-09-30 2014-01-01 深圳前海君浩银通科技发展有限公司 Multi-mode communication system and method between terminal devices
CN103747391A (en) * 2013-06-26 2014-04-23 苏州联科盛世科技有限公司 Sound box with dual-wireless mode and control method thereof
CN104754502A (en) * 2015-04-22 2015-07-01 三星电子(中国)研发中心 Equipment pairing method and equipment pairing system supporting multiple protocols

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8244179B2 (en) * 2005-05-12 2012-08-14 Robin Dua Wireless inter-device data processing configured through inter-device transmitted data
US9800688B2 (en) * 2011-09-12 2017-10-24 Microsoft Technology Licensing, Llc Platform-enabled proximity service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999251A (en) * 2012-10-31 2013-03-27 东莞宇龙通信科技有限公司 Terminal and equipment connection management method
CN103747391A (en) * 2013-06-26 2014-04-23 苏州联科盛世科技有限公司 Sound box with dual-wireless mode and control method thereof
CN103491655A (en) * 2013-09-30 2014-01-01 深圳前海君浩银通科技发展有限公司 Multi-mode communication system and method between terminal devices
CN104754502A (en) * 2015-04-22 2015-07-01 三星电子(中国)研发中心 Equipment pairing method and equipment pairing system supporting multiple protocols

Also Published As

Publication number Publication date
CN105392109A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
US10805380B2 (en) Data transmission method and device
EP3142304B1 (en) Synchronization method for notification message of electronic device, server and electronic device
US9658748B2 (en) System and method of managing states of computer screen and controlling mobile communication terminal
CN108738008B (en) Bluetooth pairing method and system
US20130031275A1 (en) Peripheral device identification for pairing
EP3142336B1 (en) Synchronization method for notification message of electronic device, and electronic device
CN102821150B (en) Based on application management method and the Cloud Server of cloud service
WO2017129124A1 (en) Smart appliance control method and smart appliance
JP2013541777A (en) Interactive messaging service operation method providing acknowledgment
CN103763327A (en) Account number logging-in method and system
CN104144093A (en) Intelligent device control method, relevant device and system
CN102710612B (en) Realize method and the device of interactive communication application in many ways
WO2017166508A1 (en) Data processing method and device
CN105392109B (en) Wireless connection method and device
CN103561087A (en) Equipment interconnection method and device
EP3979071B1 (en) Method, user equipment, and application server for downloading application
JP6345254B2 (en) Video communication termination method and apparatus
CN112333849B (en) Equipment connection disconnection processing method and device, mobile terminal and storage medium
US10853098B2 (en) Interface processing method, electronic device, and graphical user interface
CN108370500A (en) Optimized settings for wireless devices
CN111885201B (en) Data transmission method, device, equipment and medium
KR102123544B1 (en) Method and apparatus for providing communication service based on push
CN116009807A (en) Screen projection method, device, equipment and storage medium
US20150081919A1 (en) Control system and method for controlling network connection of electronic devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221107

Address after: 100191 room 1801, block D, Zhizhen building, 7 Zhichun Road, Haidian District, Beijing

Patentee after: Bird innovation (Beijing) Technology Co.,Ltd.

Address before: 100191 No. d-203, floor 1, No. 28, information road, Haidian District, Beijing

Patentee before: BEIJING XIAONIAO TINGTING TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right