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
Application number
CN201410666055.6A
Other languages
Chinese (zh)
Other versions
CN104469660A (en
Inventor
高强
Original Assignee
青岛歌尔声学科技有限公司
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 青岛歌尔声学科技有限公司 filed Critical 青岛歌尔声学科技有限公司
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements, e.g. access security or fraud detection; Authentication, e.g. verifying user identity or authorisation; Protecting privacy or anonymity ; Protecting confidentiality; Key management; Integrity; Mobile application security; Using identity modules; Secure pairing of devices; Context aware security; Lawful interception
    • 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]

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 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 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10271367B2 (en) 2015-04-01 2019-04-23 Huawei Technologies Co., Ltd. Data transmission method, device, and system
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
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
CN106658368A (en) * 2016-12-01 2017-05-10 九阳股份有限公司 Bluetooth networking method and system
CN106878059B (en) * 2017-01-10 2019-10-29 珠海格力电器股份有限公司 Based on BLE MESH network communication control method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1408159A (en) * 1999-12-06 2003-04-02 艾利森电话股份有限公司 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
US9351158B2 (en) Method for wireless easy connect
CN101867530B (en) Things-internet gateway system based on virtual machine and data interactive method
CN101997575B (en) Short-range communication is used to carry out system, the method and apparatus of wireless network connection
CN104898449A (en) Smart home system and control method thereof
CN104202224A (en) Automatic search controlling method, device and system of intelligent appliance
CN106162602A (en) The method and apparatus downloaded for the configuration file of group device
CN104363213A (en) Register and login control method for network household appliance
CN104519493B (en) A kind of method of multiple bluetooth equipment networkings
CN104967595B (en) The method and apparatus that equipment is registered in platform of internet of things
KR101438243B1 (en) Sim based authentication
CN103458399A (en) Intelligent WIFI module and method for configuring device supporting WIFI connection into WIFI network
CN102724175B (en) The telecommunication safety management framework of ubiquitous green community net control and method
CN104871579B (en) The method and apparatus of group communication safety management in mobile communication system
CN106793090B (en) The selection method and system of D2D direct communication resources
CN103826323A (en) Wireless network connection method, terminal and mobile terminal
CN101621800B (en) Method for exchanging authentication information between wireless terminal and wireless router
CN102480729B (en) Method and the access point of fake user is prevented in wireless access network
CN103327644A (en) Method and equipment for wireless connection
CN102685856B (en) Wireless communication method and Wi-Fi Direct (Wireless Fidelity Direct) communication system
CN103249047A (en) Wireless local area network hotspot access authentication method and device
CN103713608A (en) Hierarchical network architecture of wireless Internet-of-Things home system and networking communication method thereof
CN105636162A (en) Network access method and device for intelligent household electrical appliance
WO2005101727A1 (en) Communication device, communication system, and authentication method
CN103916475A (en) Network remote control method
CN102215474A (en) Method and device for carrying out authentication on communication equipment

Legal Events

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