CN112105007A - WI-FI communication method based on Bluetooth connection - Google Patents

WI-FI communication method based on Bluetooth connection Download PDF

Info

Publication number
CN112105007A
CN112105007A CN202010667121.7A CN202010667121A CN112105007A CN 112105007 A CN112105007 A CN 112105007A CN 202010667121 A CN202010667121 A CN 202010667121A CN 112105007 A CN112105007 A CN 112105007A
Authority
CN
China
Prior art keywords
module
bluetooth
communication
mobile equipment
connection
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.)
Pending
Application number
CN202010667121.7A
Other languages
Chinese (zh)
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.)
Shanghai High Flying Electronics Technology Co ltd
Original Assignee
Shanghai High Flying Electronics 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 Shanghai High Flying Electronics Technology Co ltd filed Critical Shanghai High Flying Electronics Technology Co ltd
Priority to CN202010667121.7A priority Critical patent/CN112105007A/en
Publication of CN112105007A publication Critical patent/CN112105007A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The invention discloses a Bluetooth connection-based WI-FI communication method, which relates to the technical field of WI-FI communication and comprises the following steps: the mobile equipment is connected with a communication module to establish connection, the communication module comprises a Bluetooth module and a WI-FI module, and the WI-FI module and a Bluetooth chip module; the mobile equipment is connected with the Bluetooth module, scans an instruction and acquires an optional WI-FI module in the communication module; the Bluetooth module acquires a WI-FI module configuration instruction to be selected, wherein the WI-FI module configuration instruction comprises an SSID (service set identifier) and a password of the WI-FI module to be selected; the communication module completes the configuration instruction, and the mobile equipment switches the WI-FI module to access the current connection network. The invention realizes that the mobile equipment switches the WI-FI module to access the current connection network, not only has simple and convenient operation process, but also can control the WI-FI module to connect only by operating the mobile equipment by a user, has wide application range and can adapt to different groups.

Description

WI-FI communication method based on Bluetooth connection
Technical Field
The invention relates to the technical field of WI-FI communication, in particular to a WI-FI communication method based on Bluetooth connection.
Background
WI-FI, also known as "mobile hotspot" in chinese, is a wireless local area network technology that is established in the IEEE802.11 standard. Based on the close correlation of the two systems, WI-FI is often regarded as a synonymous term for the IEEE802.11 standard.
The revolution of the internet of things has enabled more new devices to be connected wirelessly to the home network and the cloud. However, for most of these terminal devices without keyboard or touch screen, such as household appliances, lamps, thermostats, treadmills, electronic scales, etc., how to successfully connect them to Wi-Fi network is a great obstacle to widespread deployment of connecting household products. In order to successfully access the internet, the products operating in the wireless base Station (STA) mode must first complete a network configuration process, which includes correctly selecting a wireless router to be accessed, setting an encryption mode and an encryption algorithm, then inputting a correct password, and finally accessing the network and establishing a connection channel. The configuration process is not a simple process for devices providing rich interactive interfaces such as computers and mobile phones, and can be realized only by an operator having a certain wireless network technical background, and for most of internet of things devices without keyboards or touch screens, it is very difficult for a user to complete the configuration of the parameters without an operation interface and without sufficient feedback mechanisms and diagnosis methods. And a large part of consumer groups of household equipment of the Internet of things are the old and children without the background knowledge of the wireless network technology.
An effective solution to the problems in the related art has not been proposed yet.
Disclosure of Invention
Aiming at the problems in the related art, the invention provides a WI-FI communication method based on Bluetooth connection, so as to overcome the technical problems in the prior related art.
The technical scheme of the invention is realized as follows:
a WI-FI communication method based on Bluetooth connection comprises the following steps:
step S1, the mobile device connects with a communication module to establish connection, the communication module comprises a Bluetooth module and a WI-FI module, and the WI-FI module and the Bluetooth chip module;
step S2, the mobile device is connected with a Bluetooth module, scans the instruction and obtains an optional WI-FI module in the communication module;
step S3, the Bluetooth module acquires a WI-FI module configuration instruction to be selected, wherein the instruction comprises an SSID (service set identifier) and a password of the WI-FI module to be selected;
and step S4, the communication module completes the configuration instruction, and the mobile equipment switches the WI-FI module to access the current connection network.
Further, the method comprises the following steps:
s001, initially setting a communication module, wherein the communication module comprises initially setting Bluetooth configuration and initially setting WI-FI module configuration;
further, the bluetooth configuration initial setting includes configuring connection basic information.
Further, the initial setting of the WI-FI module configuration comprises SSID and password information, a wireless network protocol IEEE802.11 protocol stack and a TCP/IP protocol stack.
Further, the method for acquiring the WI-FI module configuration instruction to be selected by the Bluetooth module comprises the following steps:
s301, obtaining WI-FI module configuration information;
step S302, judging whether the mobile equipment finishes switching the WI-FI module;
step S303, if the mobile equipment does not finish the WI-FI module switching, trying to manually configure the WI-FI module configuration information and finishing the mobile equipment switching the WI-FI module;
and step S304, if the mobile equipment finishes switching the WI-FI module, accessing to the current connection network.
Further, if the mobile device does not complete the switching of the WI-FI module, the method further includes the following steps:
step S305, restarting the WI-FI module and reloading the configuration information of the WI-FI module;
step S306, the WI-FI module enters an STA mode;
and step S307, the mobile equipment accesses the WI-FI module in the STA mode to carry out current network connection.
Furthermore, the Bluetooth module and the WI-FI module are connected and communicated in a UART (universal asynchronous receiver/transmitter), SPI (serial peripheral interface) or I2C mode.
Further, the communication module is a WI-FI module.
The invention has the beneficial effects that:
according to the WI-FI communication method based on Bluetooth connection, the communication module is built and comprises the Bluetooth module and the WI-FI module, the mobile equipment is connected with the communication module to establish connection, the mobile equipment is connected with the Bluetooth module, the instruction is scanned, the optional WI-FI module in the communication module is obtained to complete the configuration instruction, the mobile equipment is switched to access the current connection network, the operation process is very simple and convenient, the WI-FI module can be controlled to be connected only by operating the mobile equipment by a user, the application range is wide, and the method can be suitable for different groups.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for WI-FI communication based on bluetooth connection according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
According to the embodiment of the invention, a WI-FI communication method based on Bluetooth connection is provided.
As shown in fig. 1, the WI-FI communication method based on bluetooth connection according to the embodiment of the present invention includes the following steps:
step S1, the mobile device connects with a communication module to establish connection, the communication module comprises a Bluetooth module and a WI-FI module, and the WI-FI module and the Bluetooth chip module;
step S2, the mobile device is connected with a Bluetooth module, scans the instruction and obtains an optional WI-FI module in the communication module;
step S3, the Bluetooth module acquires a WI-FI module configuration instruction to be selected, wherein the instruction comprises an SSID (service set identifier) and a password of the WI-FI module to be selected;
and step S4, the communication module completes the configuration instruction, and the mobile equipment switches the WI-FI module to access the current connection network.
The method comprises the following steps:
s001, initially setting a communication module, wherein the communication module comprises initially setting Bluetooth configuration and initially setting WI-FI module configuration;
and the Bluetooth configuration initial setting comprises configuration connection basic information.
The initial setting of the WI-FI module configuration comprises SSID and password information, a wireless network protocol IEEE802.11 protocol stack and a TCP/IP protocol stack.
The method for acquiring the WI-FI module configuration instruction to be selected by the Bluetooth module comprises the following steps:
s301, obtaining WI-FI module configuration information;
step S302, judging whether the mobile equipment finishes switching the WI-FI module;
step S303, if the mobile equipment does not finish the WI-FI module switching, trying to manually configure the WI-FI module configuration information and finishing the mobile equipment switching the WI-FI module;
and step S304, if the mobile equipment finishes switching the WI-FI module, accessing to the current connection network.
Wherein, if the mobile device does not complete the WI-FI module switching, the method further comprises the following steps:
step S305, restarting the WI-FI module and reloading the configuration information of the WI-FI module;
step S306, the WI-FI module enters STA (Static Timing Analysis, Static Timing Analysis mode);
and step S307, the mobile equipment accesses the WI-FI module in the STA mode to carry out current network connection.
The Bluetooth module and the WI-FI module are connected and communicated in a UART (universal asynchronous receiver/transmitter), SPI (serial peripheral interface) or I2C mode.
Wherein, the communication module is a WI-FI module.
By means of the technical scheme, the communication module is built and comprises the Bluetooth module and the WI-FI module, the mobile device is connected with the communication module to establish connection, the mobile device is connected with the Bluetooth module, the instruction is scanned, the optional WI-FI module in the communication module is obtained to complete the configuration instruction, the mobile device is switched to access the current connection network, the operation process is very simple and convenient, the WI-FI module can be controlled to be connected only by operating the mobile device by a user, the application range is wide, and the mobile device is suitable for different groups.
Specifically, the bluetooth chip and the WI-FI chip in the communication module are connected for communication in a UART, SPI or I2C manner.
The UART scheme, a Universal Asynchronous Receiver Transmitter (UART), is an asynchronous receiver Transmitter (atm), which is part of the computer hardware. The chip for converting data from serial communication to parallel communication and converting data into serial output as parallel input is usually integrated with the connection of other communication interfaces. And the Bluetooth chip and the WI-FI chip are in bus communication connection in a UART mode. SPI means, which is an abbreviation for Serial Peripheral Interface (Serial Peripheral Interface). The SPI is a high-speed, full-duplex, synchronous communication bus, and occupies only four wires on the pins of the chip, saving the pins of the chip, and providing convenience for saving space on the layout of the PCB, just because of the simple and easy-to-use characteristic. The communication principle of SPI is simple and it works in a master-slave mode, which usually has a master device and one or more slave devices, requiring at least 4 wires, and in fact 3 wires (in case of unidirectional transmission). Also common to all SPI-based devices are SDI (data in), SDO (data out), SCLK (clock), CS (chip select).
1) SDO master device data output and slave device data input;
2) SDI master equipment data input and slave equipment data output;
3) an SCLK clock signal generated by the master device;
4) the CS slave enable signal, controlled by the master device.
And the Bluetooth chip and the WI-FI chip are in bus communication connection in an SPI mode.
I2C mode, I2C (Inter-Integrated Circuit) bus is used to connect the microcontroller and its peripherals. The Bluetooth chip and the WI-FI chip are in bus communication connection in an I2C mode.
In summary, according to the technical scheme of the invention, the WI-FI communication method based on bluetooth connection includes building a communication module including a bluetooth module and a WI-FI module, establishing connection through a mobile device connecting the communication module, connecting the bluetooth module with the mobile device, scanning an instruction, obtaining a configuration instruction of an optional WI-FI module in the communication module, and switching the WI-FI module to access a current connection network by the mobile device.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A WI-FI communication method based on Bluetooth connection is characterized by comprising the following steps:
the mobile equipment is connected with a communication module to establish connection, the communication module comprises a Bluetooth module and a WI-FI module, and the WI-FI module and a Bluetooth chip module;
the mobile equipment is connected with the Bluetooth module, scans an instruction and acquires an optional WI-FI module in the communication module;
the Bluetooth module acquires a WI-FI module configuration instruction to be selected, wherein the WI-FI module configuration instruction comprises an SSID (service set identifier) and a password of the WI-FI module to be selected;
the communication module completes the configuration instruction, and the mobile equipment switches the WI-FI module to access the current connection network.
2. The method of claim 1, further comprising the steps of:
and the communication module is initially set, wherein the communication module comprises Bluetooth configuration initial set and WI-FI module configuration initial set.
3. The method of claim 2, wherein the bluetooth configuring initial settings comprises configuring connection infrastructure information.
4. The method of claim 3, wherein the WI-FI module configuration initial settings comprise SSID and password information, wireless network protocol IEEE802.11 protocol stack, and TCP/IP protocol stack.
5. The WI-FI communication method based on bluetooth connection according to claim 1, wherein the bluetooth module obtains a candidate WI-FI module configuration instruction, comprising the steps of:
obtaining WI-FI module configuration information;
judging whether the mobile equipment completes the switching of the WI-FI module or not;
if the mobile equipment does not finish switching the WI-FI module, trying to manually configure the WI-FI module configuration information and finishing switching the WI-FI module by the mobile equipment;
and if the mobile equipment finishes switching the WI-FI module, accessing the current connection network.
6. The method of claim 5, wherein the step of switching the WI-FI module if the mobile device does not complete comprises the further steps of:
restarting the WI-FI module and reloading the configuration information of the WI-FI module;
the WI-FI module enters an STA mode;
the mobile device accesses the WI-FI module in the STA mode to perform current network connection.
7. The WI-FI communication method based on bluetooth connection according to claim 1, wherein the bluetooth module and the WI-FI module are connected for communication by UART, SPI or I2C.
8. The method of claim 1, wherein the communication module is a WI-FI module.
CN202010667121.7A 2020-07-13 2020-07-13 WI-FI communication method based on Bluetooth connection Pending CN112105007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010667121.7A CN112105007A (en) 2020-07-13 2020-07-13 WI-FI communication method based on Bluetooth connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010667121.7A CN112105007A (en) 2020-07-13 2020-07-13 WI-FI communication method based on Bluetooth connection

Publications (1)

Publication Number Publication Date
CN112105007A true CN112105007A (en) 2020-12-18

Family

ID=73750219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010667121.7A Pending CN112105007A (en) 2020-07-13 2020-07-13 WI-FI communication method based on Bluetooth connection

Country Status (1)

Country Link
CN (1) CN112105007A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592409A (en) * 2016-03-23 2016-05-18 北京清川科技有限公司 Bluetooth-based WI-FI connection and communication method and system
CN105873182A (en) * 2015-12-18 2016-08-17 乐视移动智能信息技术(北京)有限公司 Communication method and device
CN107396290A (en) * 2017-07-25 2017-11-24 上海小蚁科技有限公司 Establish the method and device, storage medium, terminal of WI FI connections

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873182A (en) * 2015-12-18 2016-08-17 乐视移动智能信息技术(北京)有限公司 Communication method and device
CN105592409A (en) * 2016-03-23 2016-05-18 北京清川科技有限公司 Bluetooth-based WI-FI connection and communication method and system
CN107396290A (en) * 2017-07-25 2017-11-24 上海小蚁科技有限公司 Establish the method and device, storage medium, terminal of WI FI connections

Similar Documents

Publication Publication Date Title
CN106878923B (en) Quick networking method for ultra-low power consumption intelligent equipment and intelligent home system
CN103458399B (en) Intelligent WIFI module and method for configuring device supporting WIFI connection into WIFI network
CN103024504B (en) Based on the intelligent remote control system of digital TV set-top box
EP2840455B1 (en) Method, apparatus and system for intelligently controlling device, and plug-and-play device
EP2804393B1 (en) Remote control method, intelligent terminal and intelligent remote control system
WO2017148082A1 (en) Device access controlling method, and related device and system
US20230040580A1 (en) Binding method and system for device network configuration, and mobile terminal and storage medium
US9015383B2 (en) Method and apparatus for changing input type in input system using universal plug and play
CN104185253A (en) Method for accessing wireless router, related device and system thereof
US20100111055A1 (en) Wireless access point, wireless network architecture, and method for establishing wireless network architecture
CN103428799A (en) WIFI network module configuring method
CN107318119B (en) Household appliance networking method, household appliance and computer readable storage medium
CN1677941A (en) System and method for remotely controlling networked home appliances using mobile telephone short message service
CN108605377A (en) Electronic equipment, display device and its control method
CN105163371A (en) WIFI setting system and method based on Bluetooth
CN105636159A (en) Configuration method and apparatus for connection between electrical appliance and wireless router and mobile communication terminal
CN112312515A (en) Binding method and device of intelligent equipment, electronic equipment and storage medium
CN101340459A (en) Remote control method based on Bluetooth
CN105446153A (en) Information processing method and intelligent household device
CN111163144A (en) Internet of things module, Internet of things control method and intelligent equipment
CN105577717A (en) Control method and system having compatibility with various electric appliances
CN104424036A (en) Synchronous operation method and device of smart terminal
CN103561087A (en) Equipment interconnection method and device
CN103457743A (en) Network connecting device
CN112105007A (en) WI-FI communication method based on Bluetooth connection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201218

RJ01 Rejection of invention patent application after publication