CN109121124A - A kind of client-based bluetooth mesh equipment networking process implementation method - Google Patents
A kind of client-based bluetooth mesh equipment networking process implementation method Download PDFInfo
- Publication number
- CN109121124A CN109121124A CN201810732776.0A CN201810732776A CN109121124A CN 109121124 A CN109121124 A CN 109121124A CN 201810732776 A CN201810732776 A CN 201810732776A CN 109121124 A CN109121124 A CN 109121124A
- Authority
- CN
- China
- Prior art keywords
- equipment
- client
- bluetooth
- certification
- bluetooth mesh
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
Abstract
The invention discloses a kind of client-based bluetooth mesh equipment networking process implementation methods, comprising: 1) after client scan to the bluetooth mesh equipment in original state, obtains the essential information of the equipment;2) by the client that arrives of its AuthKey information transmission by way of divided stator frame, the AuthKey that client will acquire is transferred to server-side and carries out legitimate verification bluetooth mesh equipment;3) client or server-side are configured as generating according to the relevant information of active user or reading specific Mesh network information, and are recorded in server-side;4) the bluetooth Mesh information that client is stored according to server-side is bluetooth mesh equipment distribution node address, and modifies the network information configuration of bluetooth mesh equipment;5) after client confirmation equipment is successfully modified, which is completed into facility registration.The present invention is for the network configuration information modification of the cloud registration and legitimate verification of realizing equipment and the reasonable distribution for realizing device node address, and realization equipment.
Description
Technical field
The present invention relates to Bluetooth technology field more particularly to a kind of client-based bluetooth mesh equipment networking process are real
Existing method.
Background technique
Bluetooth Mesh technology is a kind of multi-to-multi key technology based on bluetooth, be applied to intelligent lighting, building automatic,
The multiple fields such as full room intelligence, realize the intelligence of equipment.This technology provides the network of equipment mainly for bluetooth Mesh technology
Configuration feature enables a device to that some specific bluetooth Mesh network is added.The safety of networking process, viability are to entire
The exclusive requirement of bluetooth mesh network operation.
Current bluetooth Mesh network is only supported to be locally configured by bluetooth, and bluetooth Mesh equipment is being dispatched from the factory
When, a general initial network can be set, when being communicated using this network, have serious security risk, be subject to
It is attacked by network hacker, in addition, Node ID is repeated in network, equipment control is caused to go wrong.
Summary of the invention
The present invention is reasonable point for the cloud registration and legitimate verification and realization device node address of realizing equipment
Match, and realizes the network configuration information modification of equipment.
A kind of client-based bluetooth mesh equipment networking process implementation method of the present invention, comprising:
1) after client scan to the bluetooth mesh equipment in original state, the essential information of the equipment is obtained;
2) transmission of its AuthKey information is arrived the client by way of divided stator frame by the bluetooth mesh equipment
End, the AuthKey that the client will acquire are transferred to server-side and carry out legitimate verification;
3) client or the server-side are configured as generating or reading specific according to the relevant information of active user
Mesh network information, and recorded in the server-side;
4) the bluetooth Mesh information that the client is stored according to the server-side, for the bluetooth mesh equipment point
With node address, and modify the network information configuration of the bluetooth mesh equipment;
5) after the client confirmation equipment is successfully modified, which is passed to the server-side and completes equipment
Registration.
Preferably, client's section is one of mobile phone, plate, computer.
Preferably, the essential information is the address product id and/or Mac.
Preferably, the server-side is cloud server or one of local server or gateway or a variety of groups
It closes.
Preferably, the Mesh network information includes the title of Mesh network, password), in the distribution condition of node address
One or more combination.
Preferably, the network information configuration includes one of node address, network name, network cipher or a variety of groups
It closes.
Preferably, further comprising the steps of:
If certification initiating equipment within a specified time receives response of the bluetooth equipment to the certification request, and connects
The authentication key of the bluetooth equipment received is correct, and authentication authorization and accounting success then authenticates initiating equipment and establishes automatically with the bluetooth equipment
Bluetooth connection;And
If certification initiating equipment time-out does not receive some bluetooth equipment to the response of the certification request or receives
Authentication key it is incorrect, authentication authorization and accounting failure, then terminate with the connection verification process of the bluetooth equipment, and when there is the indigo plant that sorts
When next bluetooth equipment after tooth equipment, certification initiating equipment continues to initiate to the next bluetooth equipment of sequence thereafter
Certification request.
Preferably, further comprising the steps of:
Authenticate the number that initiating equipment specifies the bluetooth equipment to be connected;And
When the bluetooth equipment for establishing bluetooth connection with certification initiating equipment reaches specified number, or certification initiating equipment with
When all bluetooth equipments found all complete certification connection procedure, certification initiating equipment terminates to connect verification process, otherwise recognizes
Card initiating equipment continues to initiate certification request to the bluetooth equipment of sequence thereafter.
Preferably, according to bluetooth signal intensity RSSI value, successively ranking and searching arrives the certification initiating equipment from big to small
Bluetooth equipment.
Preferably, the certification initiating equipment prompts the authentication key of connection certification to bluetooth equipment around.
Detailed description of the invention
Fig. 1 is a kind of equipment networking process implementation method flow chart that present invention implementation provides.
Specific embodiment
The present invention is described further with reference to the accompanying drawings and detailed description.
As shown in Figure 1, a kind of client-based bluetooth mesh equipment networking process implementation method of the present invention, packet
It includes:
1. the bluetooth in original state has been arrived in client (including but not limited to mobile phone, plate, computer etc.) scanning
After mesh equipment (hereinafter referred to as " equipment "), the essential information (address including but not limited to product id, Mac etc.) of the equipment is obtained
2. the transmission of its AuthKey information is arrived client by way of divided stator frame by equipment, what client will acquire
AuthKey is transferred to server-side (including but not limited to cloud server, local server, gateway) and carries out legitimate verification
3. client or server-side can generate or read specific Mesh network information according to the relevant information of active user,
And it is recorded in server-side.Wherein, Mesh network information includes but is not limited to the title (MeshName) of Mesh network, password
(Password), the distribution condition of node address (NodeID),
4. the bluetooth Mesh information that client is stored according to server-side is equipment distribution node address, and modifies equipment
The network information configures (including but not limited to node address, network name, network cipher etc.)
After client confirms that equipment end is successfully modified, which is completed into facility registration, i.e.,
Data input of the equipment in server-side.
In another preferred embodiment of the invention, when obtaining the information of AuthKey, is first sent to equipment and obtain life
It enables, after receiving device replied, data is parsed, including subpackage group packet procedures.Auth key is parsed due to being subpackage
Operation, needs to judge packet serial number, the difference of the first packet and last packet
@param buffer reponse data
*/-(void)authKeyResponse:(uint8_t*)buffer{
//authkey
[TPUtils logByte:buffer len:20str:@"Command_Notify"];
uint8_t paras[10];
memcpy(paras,buffer+10,10);
Uint8_t index=paras [0];
Uint8_t frame_len=paras [1];
Uint8_t*frame_data=¶s [2];
Uint8_t sum=paras [frame_len+2];
[TPUtils logByte:frame_data len:7str:@"Frame_Data"];
if(sum!=check_sum (paras, frame_len+2))
TMLog(@"authkey check sum failed,not eqaul.");
return;
}
If (index==0)
memcpy(&([TYBLEMeshContext sharedInstance].authKeyData[0]),frame_
data,
frame_len);
[TYBLEMeshContext sharedInstance] .authKeyDataLength+=frame_len;
Else if (index==TYBLEMeshAuthKeyEndFlag)
memcpy(&([TYBLEMeshContext
sharedInstance].authKeyData[[TYBLEMeshContext
sharedInstance].authKeyDataLength]),frame_data,frame_len);
[TYBLEMeshContext sharedInstance] .authKeyDataLength+=frame_len;
If ([TYBLEMeshContext sharedInstance] .authKeyData [0]==
[TYBLEMeshContext
sharedInstance].authKeyDataLength){
Uint32_t size_authkey=[TYBLEMeshContext sharedInstance] .authKeyData
[1];
uint8_t authKey[size_authkey];
memcpy(authKey,&[TYBLEMeshContext sharedInstance].authKeyData[2],
size_authkey);
[TPUtils logByte:authKey len:size_authkey str:@"auth key"];
Uint32_t size_pwd=[TYBLEMeshContext sharedInstance] .authKeyData [2+
size_authkey];
uint8_t uuid[size_pwd];
memcpy(uuid,&[TYBLEMeshContext sharedInstance].authKeyData[3+
size_authkey],size_pwd);
[TPUtils logByte:uuid len:size_pwd str:@"uuid"];
NSString*_authKey=[[NSString alloc] initWithBytes:authKey
length:sizeof(authKey)encoding:NSASCIIStringEncoding];
If (_ authKey.length==32)
_ authKey=[[TPEncryptUtils md5WithString:_authKey]
substringWithRange:NSMakeRange(8,16)];}
NSString*_uuid=[[NSString alloc] initWithBytes:uuid length:sizeof
(uuid)
encoding:NSASCIIStringEncoding];
TMLog (@" authkey:%@n uuid:%@", _ authKey, _ uuid);
BOOL isPass=NO;
For (int i=0;i<size_pwd;i++){
if(buffer[i]!=0)
IsPass=YES;
break;
}
}
if(!isPass){
[[NSNotificationCenter defaultCenter]
postNotificationName:@"TYBLEMeshRequestAuthKey"object:@(NO)];
return;
}
If (_ authKey.length==0 | | _ uuid.length==0)
[[NSNotificationCenter defaultCenter]
postNotificationName:@"TYBLEMeshRequestAuthKey"object:@(NO)];
}else{
[TYBLEMeshContext sharedInstance] .authKey=_authKey;
[TYBLEMeshContext sharedInstance] .uuid=_uuid;
[[NSNotificationCenter defaultCenter]
postNotificationName:@"TYBLEMeshRequestAuthKey"object:@(YES)];
}
}
}else{
memcpy(&([TYBLEMeshContext
sharedInstance].authKeyData[[TYBLEMeshContext
sharedInstance].authKeyDataLength]),frame_data,frame_len);
[TYBLEMeshContext sharedInstance] .authKeyDataLength+=frame_len;
}
}
The preferred embodiment of the present invention has been described in detail above.It should be appreciated that the ordinary skill of this field is without wound
The property made labour, which according to the present invention can conceive, makes many modifications and variations.Therefore, all technician in the art
Pass through the available technology of logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea
Scheme, all should be within the scope of protection determined by the claims.
Claims (10)
1. a kind of client-based bluetooth mesh equipment networking process implementation method characterized by comprising
1) after client scan to the bluetooth mesh equipment in original state, the essential information of the equipment is obtained;
2) transmission of its AuthKey information is arrived the client, institute by way of divided stator frame by the bluetooth mesh equipment
The AuthKey that stating client will acquire is transferred to server-side and carries out legitimate verification;
3) client or the server-side are configured as being generated or being read according to the relevant information of active user specific
Mesh network information, and recorded in the server-side;
4) the bluetooth Mesh information that the client is stored according to the server-side, for bluetooth mesh equipment distribution section
Dot address, and modify the network information configuration of the bluetooth mesh equipment;
5) after the client confirmation equipment is successfully modified, which is passed to the server-side and completes equipment note
Volume.
2. client-based bluetooth mesh equipment networking process implementation method as described in claim 1, which is characterized in that institute
Stating client's section is one of mobile phone, plate, computer.
3. client-based bluetooth mesh equipment networking process implementation method as described in claim 1, which is characterized in that institute
Stating essential information is the address product id and/or Mac.
4. client-based bluetooth mesh equipment networking process implementation method as described in claim 1, which is characterized in that institute
Stating server-side is cloud server or one of local server or gateway or multiple combinations.
5. client-based bluetooth mesh equipment networking process implementation method as described in claim 1, which is characterized in that institute
Stating Mesh network information includes the title of Mesh network, password), the combination of one or more of the distribution condition of node address.
6. client-based bluetooth mesh equipment networking process implementation method as described in claim 1, which is characterized in that institute
Stating network information configuration includes one of node address, network name, network cipher or multiple combinations.
7. client-based bluetooth mesh equipment networking process implementation method as described in claim 1, which is characterized in that also
The following steps are included:
If certification initiating equipment within a specified time receives response of the bluetooth equipment to the certification request, and receives
The bluetooth equipment authentication key it is correct, authentication authorization and accounting success, then authenticate initiating equipment and the bluetooth equipment establishes bluetooth automatically
Connection;And
If certification initiating equipment time-out does not receive some bluetooth equipment to the response of the certification request or what is received recognize
It is incorrect to demonstrate,prove key, authentication authorization and accounting failure then terminates the connection verification process with the bluetooth equipment, and sets when there is the bluetooth that sorts
When next bluetooth equipment after standby, certification initiating equipment continues to initiate certification to the next bluetooth equipment of sequence thereafter
Request.
8. client-based bluetooth mesh equipment networking process implementation method as claimed in claim 7, which is characterized in that also
The following steps are included:
Authenticate the number that initiating equipment specifies the bluetooth equipment to be connected;And
When the bluetooth equipment for establishing bluetooth connection with certification initiating equipment reaches specified number, or certification initiating equipment and all
When the bluetooth equipment found all completes certification connection procedure, certification initiating equipment terminates to connect verification process, otherwise certification hair
Equipment is played to continue to initiate certification request to the bluetooth equipment of sequence thereafter.
9. client-based bluetooth mesh equipment networking process implementation method as claimed in claim 7, which is characterized in that institute
Certification initiating equipment is stated according to the bluetooth signal intensity RSSI value bluetooth equipment that successively ranking and searching arrives from big to small.
10. client-based bluetooth mesh equipment networking process implementation method as described in claim 1, which is characterized in that
The certification initiating equipment prompts the authentication key of connection certification to bluetooth equipment around.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810732776.0A CN109121124A (en) | 2018-07-05 | 2018-07-05 | A kind of client-based bluetooth mesh equipment networking process implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810732776.0A CN109121124A (en) | 2018-07-05 | 2018-07-05 | A kind of client-based bluetooth mesh equipment networking process implementation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109121124A true CN109121124A (en) | 2019-01-01 |
Family
ID=64822047
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810732776.0A Withdrawn CN109121124A (en) | 2018-07-05 | 2018-07-05 | A kind of client-based bluetooth mesh equipment networking process implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109121124A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110191451A (en) * | 2019-05-31 | 2019-08-30 | 杭州涂鸦信息技术有限公司 | State synchronization method, mobile terminal, system and the device of bluetooth equipment |
CN110831005A (en) * | 2019-11-11 | 2020-02-21 | 深圳创维数字技术有限公司 | Device adding method of Mesh network, gateway device and storage medium |
CN111328060A (en) * | 2020-02-25 | 2020-06-23 | 杭州涂鸦信息技术有限公司 | Mesh network access method and system for Bluetooth device and device thereof |
CN111328037A (en) * | 2020-03-11 | 2020-06-23 | 四川路桥建设集团交通工程有限公司 | Highway tunnel communication system and communication method based on Bluetooth MESH technology |
CN111885144A (en) * | 2020-07-20 | 2020-11-03 | 青岛易来智能科技股份有限公司 | Equipment binding method and device |
CN111885680A (en) * | 2020-09-11 | 2020-11-03 | 普联技术有限公司 | Method, system and core equipment for establishing network connection |
CN112291386A (en) * | 2020-11-13 | 2021-01-29 | 珠海雷特科技股份有限公司 | Bluetooth address allocation method of intelligent lamp, computer device and computer readable storage medium |
CN113347741A (en) * | 2020-02-18 | 2021-09-03 | 佛山市云米电器科技有限公司 | Online method and system of gateway equipment |
-
2018
- 2018-07-05 CN CN201810732776.0A patent/CN109121124A/en not_active Withdrawn
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110191451A (en) * | 2019-05-31 | 2019-08-30 | 杭州涂鸦信息技术有限公司 | State synchronization method, mobile terminal, system and the device of bluetooth equipment |
CN110191451B (en) * | 2019-05-31 | 2022-08-09 | 杭州涂鸦信息技术有限公司 | State synchronization method, mobile terminal, system and device of Bluetooth equipment |
CN110831005A (en) * | 2019-11-11 | 2020-02-21 | 深圳创维数字技术有限公司 | Device adding method of Mesh network, gateway device and storage medium |
CN113347741A (en) * | 2020-02-18 | 2021-09-03 | 佛山市云米电器科技有限公司 | Online method and system of gateway equipment |
CN111328060A (en) * | 2020-02-25 | 2020-06-23 | 杭州涂鸦信息技术有限公司 | Mesh network access method and system for Bluetooth device and device thereof |
CN111328060B (en) * | 2020-02-25 | 2023-05-12 | 杭州涂鸦信息技术有限公司 | Bluetooth equipment mesh networking method and system and equipment thereof |
CN111328037A (en) * | 2020-03-11 | 2020-06-23 | 四川路桥建设集团交通工程有限公司 | Highway tunnel communication system and communication method based on Bluetooth MESH technology |
CN111885144A (en) * | 2020-07-20 | 2020-11-03 | 青岛易来智能科技股份有限公司 | Equipment binding method and device |
CN111885144B (en) * | 2020-07-20 | 2022-09-16 | 青岛易来智能科技股份有限公司 | Equipment binding method and device |
CN111885680A (en) * | 2020-09-11 | 2020-11-03 | 普联技术有限公司 | Method, system and core equipment for establishing network connection |
CN112291386A (en) * | 2020-11-13 | 2021-01-29 | 珠海雷特科技股份有限公司 | Bluetooth address allocation method of intelligent lamp, computer device and computer readable storage medium |
EP4246924A4 (en) * | 2020-11-13 | 2024-03-27 | Zhuhai Ltech Technology Co Ltd | Bluetooth address allocation method for smart lamp, computer apparatus, and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109121124A (en) | A kind of client-based bluetooth mesh equipment networking process implementation method | |
CN104378145B (en) | The matching method and system of bluetooth equipment | |
CN105184879B (en) | The methods, devices and systems of bio-identification work attendance | |
CN108848112B (en) | Cut-in method, equipment and the system of user equipment (UE) | |
CN104601590B (en) | A kind of login method, server and mobile terminal | |
CN108512862A (en) | Internet-of-things terminal safety certification control platform based on no certificates identified authentication techniques | |
CN106341372A (en) | Terminal authentication processing method and device, and terminal authentication method, device and system | |
CN106102058B (en) | A kind of identity identifying method and device | |
CN105519028B (en) | A kind of wireless system connection control method and device | |
CN105164689A (en) | User authentication | |
CN107222373A (en) | Control method, system, terminal, FIDO servers and the safety means of smart home | |
CN107426160A (en) | Control method, system, terminal, FIDO servers and the safety means of smart home | |
CN109769240A (en) | Bluetooth connecting method, device and system | |
CN108347353A (en) | Network collocating method, apparatus and system | |
CN110191451A (en) | State synchronization method, mobile terminal, system and the device of bluetooth equipment | |
CN114390524B (en) | Method and device for realizing one-key login service | |
CN108541077A (en) | A kind of quick distribution method and system of intelligent hardware devices based on WPS | |
CN105704133A (en) | Method, terminal and server for data synchronism | |
CN108282768A (en) | Bluetooth equipment shares control and requesting method and electronic equipment | |
CN107659935A (en) | A kind of authentication method, certificate server, network management system and Verification System | |
CN112383401B (en) | User name generation method and system for providing identity authentication service | |
CN107786978B (en) | NFC authentication system based on quantum encryption | |
CN105516172A (en) | Identity authentication terminal, identity authentication system and online affair handling platform | |
CN109067749A (en) | A kind of information processing method, equipment and computer readable storage medium | |
CN105516168A (en) | Off-line iris authentication device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190101 |
|
WW01 | Invention patent application withdrawn after publication |