CN104469660B - Network-building method based on bluetooth - Google Patents

Network-building method based on bluetooth Download PDF

Info

Publication number
CN104469660B
CN104469660B CN201410666055.6A CN201410666055A CN104469660B CN 104469660 B CN104469660 B CN 104469660B CN 201410666055 A CN201410666055 A CN 201410666055A CN 104469660 B CN104469660 B CN 104469660B
Authority
CN
China
Prior art keywords
bluetooth equipment
packet
bluetooth
mobile terminal
network
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
CN201410666055.6A
Other languages
Chinese (zh)
Other versions
CN104469660A (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.)
Goertek Techology Co Ltd
Original Assignee
Qingdao Goertek 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 Qingdao Goertek Co Ltd filed Critical Qingdao Goertek Co Ltd
Priority to CN201410666055.6A priority Critical patent/CN104469660B/en
Publication of CN104469660A publication Critical patent/CN104469660A/en
Application granted granted Critical
Publication of CN104469660B publication Critical patent/CN104469660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The invention discloses a kind of network-building method based on bluetooth, including networking process and data transmission procedure;Networking process includes:Mobile terminal is authenticated to bluetooth equipment;Mobile terminal generates id information and sent to the bluetooth equipment;Data transmission procedure includes:Mobile terminal is established BLE with bluetooth equipment and is connected, and packet is sent to the bluetooth equipment;Bluetooth equipment received data packet;Bluetooth equipment judges whether packet meets predetermined protocol;If packet meets predetermined protocol, bluetooth equipment completes corresponding operating according to packet, and sends response message to mobile terminal, and data transmission procedure terminates;If packet does not meet predetermined protocol, bluetooth equipment goes out data packet broadcast.The network-building method based on bluetooth of the present invention, by mobile terminal and surrounding bluetooth equipment network consisting, realizes transmission, relaying, the reception of packet in a network;Procotol is simple, and networking cost is low, and realizes the long range transmission of packet in a network.

Description

Network-building method based on bluetooth
Technical field
The invention belongs to bluetooth applications technical field, is to be related to a kind of network-building method based on bluetooth specifically.
Background technology
Home intranet all uses ZigBee technology substantially at present, but Zigbee prices are relatively expensive, and communication protocol is answered It is miscellaneous, limit its application in home intranet.And mobile terminal does not have standard configuration Zigbee applications at present, in actual applications Mobile terminal directly can not communicate, it is necessary to by other bridging devices with the device node in Zigbee network, greatly increase The cost of whole system.
The content of the invention
The invention provides a kind of network-building method based on bluetooth, solve the problems, such as that networking cost is high.
In order to solve the above-mentioned technical problem, the present invention is achieved using following technical scheme:
A kind of network-building method based on bluetooth, including networking process and data transmission procedure;
The networking process comprises the following steps:
(11)Mobile terminal is authenticated to bluetooth equipment;
(12)Mobile terminal generates id information and sent to the bluetooth equipment;
The data transmission procedure comprises the following steps:
(21)Mobile terminal is established BLE with bluetooth equipment and is connected, and sends packet to the bluetooth equipment;
(22)Bluetooth equipment received data packet;
(23)Bluetooth equipment judges whether packet meets predetermined protocol;
If packet meets predetermined protocol, bluetooth equipment completes corresponding operating according to packet, and to mobile terminal Response message is sent, data transmission procedure terminates;
If packet does not meet predetermined protocol, bluetooth equipment goes out data packet broadcast, into step(24);
(24)Broadcast data packet is arrived in bluetooth equipment scanning in network, and receives the packet of broadcast, return to step(23).
Further, the mobile terminal carries out authentication to bluetooth equipment includes:
A, mobile terminal exchanges Bluetooth address with bluetooth equipment;
B, mobile terminal generation encryption key is sent to bluetooth equipment.
Further, in step(11)Before, the bluetooth equipment around the mobile terminal to search.
Further, the packet includes timestamp information, in step(23)Before, bluetooth equipment first has to basis Timestamp information judges whether it is to receive the packet first, if receiving the packet first, then into step(23), such as Fruit is not to receive the packet first, then bluetooth equipment does not handle the packet.
Further, the packet includes device identifier id information, and the predetermined protocol is included in packet The id information of bluetooth equipment of the id information with receiving the packet is consistent.
Preferably, it is inverse for the bluetooth equipment received data packet to mobile terminal to send the path of response message for bluetooth equipment Path.
Further, the mobile terminal is mobile phone, flat board, blue Tooth remote controller, the notebook computer for having Bluetooth function Or Intelligent worn device.
Further, the bluetooth equipment includes bluetooth earphone, Intelligent worn device, Bluetooth adapter, bluetooth alarm Device or intelligent home device.
Compared with prior art, the advantages and positive effects of the present invention are:The network-building method based on bluetooth of the present invention, will Mobile terminal and the bluetooth equipment around it form a network, by the scanning, broadcast, transceiver mode of bluetooth equipment, realize Transmission, relaying, the reception of packet in a network;Procotol is simple, and networking cost is low, and realizes packet in a network Long range transmission.
After the detailed description of embodiment of the present invention is read in conjunction with the figure, the other features and advantages of the invention will become more Add clear.
Brief description of the drawings
Fig. 1 is the flow chart of one embodiment of the networking process of the network-building method based on bluetooth;
Fig. 2 is the flow chart of one embodiment of the data transmission procedure of the network-building method based on bluetooth;
Fig. 3 is the home network schematic diagram of the network-building method based on bluetooth.
Embodiment
The embodiment of the present invention is described in more detail below in conjunction with the accompanying drawings.
Embodiment one, in the network-building method based on bluetooth of the present embodiment include two processes, when networking process, second, Data transmission procedure.
Networking process refers to the process of that the bluetooth equipment of mobile terminal and surrounding forms a network, and the mobile terminal is Refer to mobile phone, flat board, blue Tooth remote controller, notebook computer or Intelligent worn device with Bluetooth function etc., the bluetooth equipment Including bluetooth earphone, Intelligent worn device, Bluetooth adapter, bluetooth warner or intelligent home device etc..Data transmission procedure Refer to the process of mobile terminal and the bluetooth equipment transmission data in network.
Shown in Figure 1, networking process concretely comprises the following steps:
Step 101:Bluetooth equipment around mobile terminal to search.
Mobile terminal enters search pattern, searches for the bluetooth equipment of surrounding, and step is entered after bluetooth equipment is searched 102。
Step 102:Mobile terminal is authenticated to bluetooth equipment.
Mobile terminal exchanges Bluetooth address with bluetooth equipment first, and then mobile terminal generation encryption key is sent to bluetooth Equipment, complete authentication process.
Step 103:Mobile terminal generates id information, sends to bluetooth equipment.
Mobile terminal generates id information, and the id information of generation is sent into bluetooth equipment, i.e. mobile terminal is set to bluetooth It is standby to be assigned with an id information, so as to complete the networking process of mobile terminal and the bluetooth equipment.Id information is that the bluetooth is set Standby mark in a network.
If there are other bluetooth equipments to need to add network, repeat step 102 and 103.
It is different that the id information of each bluetooth equipment is distributed to due to mobile terminal, ensure that in consolidated network, often The id information of individual bluetooth equipment is unique.In consolidated network, id information can be as the unique mark of bluetooth equipment.Encryption Key is used for the encryption of data transmission procedure, and the bluetooth equipment only in consolidated network could receive data, ensure that data The safety and reliability of transmitting procedure.In the present embodiment, encryption key is preferably 128bit.
In consolidated network, include mobile terminal and multiple bluetooth equipments.Mobile terminal and the bluetooth in consolidated network The data transmission procedure of equipment comprises the following steps that:
Step 201:Start.
All bluetooth equipments in network are in scan pattern.
Step 202:Mobile terminal is established BLE with bluetooth equipment and is connected, and sends packet to the bluetooth equipment.
Mobile terminal chooses a bluetooth equipment in network, establishes BLE with it and is connected, the bluetooth equipment that this is chosen is by sweeping It is transceiver mode to retouch pattern switching, and other bluetooth equipments are still in scan pattern.The bluetooth equipment that mobile terminal is chosen to this Send packet.Packet includes device identifier id information, timestamp information, control information, check information etc..
Step 203:Bluetooth equipment received data packet.
Step 204:Bluetooth equipment judges whether it is to receive the packet first.
Timestamp information in packet, bluetooth equipment judge whether it is to receive the packet first.
If the bluetooth equipment is to receive the packet first, into step 205;
If the bluetooth equipment is not to receive the packet first, i.e. the bluetooth equipment has treated the packet, Then enter step 209.
Step 205:Bluetooth equipment judges whether packet meets predetermined protocol.
The predetermined protocol can be the id information of bluetooth equipment of the id information with receiving the packet in packet Unanimously.
If packet meets predetermined protocol, that is to say, that indigo plant of the id information with receiving the packet in packet The id information of tooth equipment is consistent, illustrates that the packet is destined to the bluetooth equipment, then into step 208;
If packet does not meet predetermined protocol, that is to say, that the id information in packet is with receiving the packet The id information of bluetooth equipment is inconsistent, illustrates that the packet is not destined to the bluetooth equipment, then into step 206.
Step 206:Broadcast data packet.
Bluetooth equipment switches to broadcast mode by transceiver mode, and data packet broadcast is gone out, i.e., bluetooth equipment is as one Communication node relays away data.Bluetooth equipment switches to scan pattern after data packet broadcast is gone out, into step 207.
Step 207:Receive broadcast data packet.
Bluetooth equipment scanning in network switches to transceiver mode by scan pattern, receives broadcast to the packet of broadcast Packet, return to step 204.
Step 208:Bluetooth equipment completes corresponding operation according to the control information in packet, and is sent to mobile terminal Response message.
Bluetooth equipment receives the inverse path of the packet to the path of mobile terminal transmission response message for the bluetooth equipment. For example, Fig. 3 is refer to, mobile terminal M(Mobile phone)N number of bluetooth equipment around is received after performing the networking process of step 101 to 103 Enter networking(Shown in solid circles), then send with the bluetooth connection of bluetooth equipment 4 and to bluetooth equipment 4 and include the ID of bluetooth equipment 5 The packet of information, bluetooth equipment 4 judge that the packet is not that mobile phone is sent to oneself after performing step 205, therefore Perform step 206 data packet broadcast is gone out(Shown in dotted line circle), bluetooth equipment 1,2,3,5 ..., N receive bluetooth equipment 4 The packet of broadcast, the bluetooth equipment execution step 205 and 206 in addition to bluetooth equipment 5, the execution of bluetooth equipment 5 step 205, 208, to complete corresponding operating according to the control information of packet, then send response message, the response message of transmission is transmitted first To bluetooth equipment 4, transmitted by bluetooth equipment 4 to mobile terminal M, thus terminate scanning of remaining bluetooth equipment to the packet And broadcast, into the scan pattern state to next packet.
After bluetooth equipment has sent response message, scan pattern is switched to by transceiver mode.Into step 210.
Step 209:Do not deal with.
If the bluetooth equipment has treated packet, that is to say, that the bluetooth equipment had broadcasted the data Wrap or the control information in packet completes corresponding operation, then the bluetooth equipment does not reprocess the data Bag.Same bluetooth equipment is avoided to reprocess same packet.
Step 210:Terminate.
Predetermined protocol in the step 205 is not limited to the example above, can be formulated according to the actual requirements.Example Such as, other identification informations are also included in the packet, predetermined protocol can be that other identification informations meet the requirements, bluetooth Equipment judges whether packet meets predetermined protocol, that is, judges whether other identification informations meet the requirements, and according to judgement As a result subsequent operation is carried out.
In the present embodiment, a bluetooth equipment has Three models:Scan pattern, broadcast mode, transceiver mode.Pass through The switching of bluetooth equipment pattern, a bluetooth equipment is possessed three kinds of different functions, reduce further networking cost, and control Mode simple and flexible processed.Bluetooth equipment can realize packet in network as the communication node broadcast data packet in network In long range transmission.
Certainly, described above is not limitation of the present invention, and the present invention is also not limited to the example above, this technology neck The variations, modifications, additions or substitutions that the those of ordinary skill in domain is made in the essential scope of the present invention, should also belong to this hair Bright protection domain.

Claims (7)

  1. A kind of 1. network-building method based on bluetooth, it is characterised in that:Including networking process and data transmission procedure;
    The networking process comprises the following steps:
    (11)Mobile terminal is authenticated to bluetooth equipment;
    (12)Mobile terminal generates id information and sent to the bluetooth equipment;
    The data transmission procedure comprises the following steps:
    (21)Mobile terminal is established BLE with bluetooth equipment and is connected, and sends packet to the bluetooth equipment:
    Mobile terminal chooses a bluetooth equipment in network, establishes BLE with it and is connected, and the bluetooth equipment chosen is by scanning mould Formula switches to transceiver mode, and other bluetooth equipments are still in scan pattern;Mobile terminal is sent to the bluetooth equipment chosen Packet;
    (22)Bluetooth equipment received data packet;
    (23)Bluetooth equipment judges whether packet meets predetermined protocol;
    If packet meets predetermined protocol, bluetooth equipment completes corresponding operating according to packet, and is sent to mobile terminal Response message, after bluetooth equipment has sent response message, scan pattern is switched to by transceiver mode;Data transmission procedure terminates;
    Inverse path of the bluetooth equipment to the path of mobile terminal transmission response message for the bluetooth equipment received data packet;
    If packet does not meet predetermined protocol, bluetooth equipment switches to broadcast mode by transceiver mode, and bluetooth equipment is by data Packet broadcast is gone out, and bluetooth equipment switches to scan pattern after data packet broadcast is gone out, into step(24);
    (24)Broadcast data packet is arrived in bluetooth equipment scanning in network, switches to transceiver mode by scan pattern, and receive broadcast Packet, return to step(23).
  2. 2. the network-building method according to claim 1 based on bluetooth, it is characterised in that:The mobile terminal is to bluetooth equipment Carrying out authentication includes:
    A, mobile terminal exchanges Bluetooth address with bluetooth equipment;
    B, mobile terminal generation encryption key is sent to bluetooth equipment.
  3. 3. the network-building method according to claim 1 based on bluetooth, it is characterised in that:In step(11)Before, the shifting Bluetooth equipment around dynamic terminal searching.
  4. 4. the network-building method according to claim 1 based on bluetooth, it is characterised in that:The packet is believed including timestamp Breath, in step(23)Before, bluetooth equipment first has to judge whether it is to receive the packet first according to timestamp information, if It is to receive the packet first, then into step(23), if not the packet is received first, then bluetooth equipment does not handle this Packet.
  5. 5. the network-building method according to claim 1 based on bluetooth, it is characterised in that:The packet includes device identification Id information is accorded with, the predetermined protocol includes the id information in packet and receives the id information one of the bluetooth equipment of the packet Cause.
  6. 6. the network-building method according to any one of claim 1 to 5 based on bluetooth, it is characterised in that:It is described mobile whole End is mobile phone, flat board, blue Tooth remote controller, notebook computer or the Intelligent worn device for having Bluetooth function.
  7. 7. the network-building method according to any one of claim 1 to 5 based on bluetooth, it is characterised in that:The bluetooth is set It is standby to include bluetooth earphone, Intelligent worn device, Bluetooth adapter, bluetooth warner or intelligent home device.
CN201410666055.6A 2014-11-20 2014-11-20 Network-building method based on bluetooth Active CN104469660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410666055.6A CN104469660B (en) 2014-11-20 2014-11-20 Network-building method based on bluetooth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410666055.6A CN104469660B (en) 2014-11-20 2014-11-20 Network-building method based on bluetooth

Publications (2)

Publication Number Publication Date
CN104469660A CN104469660A (en) 2015-03-25
CN104469660B true CN104469660B (en) 2018-04-10

Family

ID=52914886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410666055.6A Active CN104469660B (en) 2014-11-20 2014-11-20 Network-building method based on bluetooth

Country Status (1)

Country Link
CN (1) CN104469660B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3255953B1 (en) 2015-04-01 2020-06-03 Huawei Technologies Co. Ltd. Data transmission method and device
CN105101463B (en) * 2015-06-09 2018-08-03 深圳市嘀嗒互动科技有限公司 A kind of data sharing method based on BLE
CN106301478A (en) * 2015-06-26 2017-01-04 博通集成电路(上海)有限公司 Data transmission method and broadcast transmitting apparatus thereof
CN105050033A (en) * 2015-07-01 2015-11-11 惠州Tcl移动通信有限公司 Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth
US20170094696A1 (en) * 2015-09-30 2017-03-30 Misfit, Inc. Methods and apparatuses for simulataneously exchanging messages between a low-energy radio device and multiple central devices
CN105336013B (en) * 2015-10-16 2018-10-09 江苏协信信息科技有限公司 It is a kind of that the method and system called the roll is realized by beacon broadcast
CN105744469A (en) * 2016-03-29 2016-07-06 海尔优家智能科技(北京)有限公司 Method for communication among equipment in Internet of Things based on Bluetooth and equipment in Internet of Things
CN105848095A (en) * 2016-05-25 2016-08-10 深圳时瑞鸿科技有限公司 Non-connecting bluetooth network transmission method and apparatus
CN108377482B (en) * 2016-11-07 2021-05-28 中兴通讯股份有限公司 Method, device, system and equipment for connecting terminal with Bluetooth equipment
CN106658368A (en) * 2016-12-01 2017-05-10 九阳股份有限公司 Bluetooth networking method and system
CN106878059B (en) * 2017-01-10 2019-10-29 珠海格力电器股份有限公司 BLE MESH network-based communication control method and device
CN109168150B (en) * 2018-08-24 2022-02-25 欧普照明股份有限公司 Bluetooth rapid networking method
CN114520959A (en) * 2020-11-19 2022-05-20 合肥炬芯智能科技有限公司 Bluetooth communication method and system
CN113068163B (en) * 2021-02-20 2023-07-07 麒盛科技股份有限公司 Bluetooth networking method and system thereof
CN114979830A (en) * 2022-05-19 2022-08-30 宁夏隆基宁光仪表股份有限公司 BLE-based intelligent water meter cluster data transmission method and system and control equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2037201A (en) * 1999-12-06 2001-06-12 Telefonaktiebolaget Lm Ericsson (Publ) Broadcast as a triggering mechanism for route discovery
KR100389820B1 (en) * 2001-07-12 2003-07-02 삼성전자주식회사 Method for establishing link between bluetooth apparatuses using bluetooth wireless communication
CN101127537B (en) * 2007-09-30 2011-07-06 东南大学 Multi-jump voice transmission method based on Bluetooth technology
CN201262702Y (en) * 2007-10-31 2009-06-24 西南科技大学 Wireless sensor network node based on Bluetooth
KR20120066979A (en) * 2010-12-15 2012-06-25 한국전자통신연구원 Wireless local area communication system

Also Published As

Publication number Publication date
CN104469660A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104469660B (en) Network-building method based on bluetooth
EP3288296B1 (en) Method and system for building steady piconet based on bluetooth
CN106507330A (en) A kind of equipment networking collocation method and device
CN106789468A (en) A kind of appliances equipment control method and system based on intelligent terminal
CN104780499B (en) A kind of more device intelligence interconnecting methods and system based on bluetooth
CN104539324B (en) Bluetooth low-power-consumption networking interconnecting method and system
CN103841626A (en) Internet of Things wireless terminal, configuration method thereof and mobile terminal
CN108449770A (en) A kind of Intelligent hardware Wifi matches net mode
CN105472699A (en) Access method and system of smart home device
US20160261994A1 (en) Method and Device for Realizing Terminal WIFI Talkback
CN104394577B (en) The wireless network access method of wireless routing device and electronic equipment
CN108601093B (en) Wireless communication method and system
CN105636159A (en) Configuration method and device for connecting electric appliance with wireless router and mobile communication terminal
CN105392182B (en) The setting method and system of the network configuration information of WIFI equipment
CN102612033B (en) Mobile phone with thin wireless access point and communication method for mobile phone
CN104363360A (en) Missed call transferring reminding system and method
CN104768143A (en) Method and terminal for sending Wi-Fi configuration information
CN103595712A (en) Method, device and system for Web authentication
CN105246129B (en) The network-building method and device of a kind of intelligent terminal
CN103442450B (en) Wireless communications method and Wireless Telecom Equipment
EP3515121A1 (en) Device networking method, apparatus and system
CN105099836A (en) BLE intelligent node control method and system
CN102857918A (en) Vehicle-mounted communication system
CN105208679A (en) Equipment and method for realizing wireless network intercommunication
CN117440534A (en) Wi-Fi quick network distribution method and device based on 2.4g and intelligent equipment

Legal Events

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

Effective date of registration: 20240506

Address after: 266104 No. 500, Songling Road, Laoshan District, Qingdao, Shandong

Patentee after: GOERTEK TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 266061 room 401-436, 4th floor, building 3, Guozhan wealth center, No.18 Qinling Road, Laoshan District, Qingdao City, Shandong Province

Patentee before: QINGDAO GOERTEK TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right