CN110475209A - A method of sending the realization hardware device networking of data packet based on multicast and broadcast combination - Google Patents
A method of sending the realization hardware device networking of data packet based on multicast and broadcast combination Download PDFInfo
- Publication number
- CN110475209A CN110475209A CN201810441444.7A CN201810441444A CN110475209A CN 110475209 A CN110475209 A CN 110475209A CN 201810441444 A CN201810441444 A CN 201810441444A CN 110475209 A CN110475209 A CN 110475209A
- Authority
- CN
- China
- Prior art keywords
- multicast
- broadcast
- data
- data packet
- packet
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses provide it is a kind of can send data packet according to special coding rule poll using broadcast and multicast, the method for realizing hardware device networking that data packet is sent based on multicast and broadcast combination of smart machine networking success rate can be improved.It the described method comprises the following steps: obtaining the access authentication information of router;The access authentication information is sent into data packet by broadcast and multicast poll with net mode with net mode and SoftAp using Smartlink and informs that household appliance, household appliance are based on router described in the access authentication information access.It by multicast and broadcasts to router, poll sends data packet, and intelligent object is made to connect network.It wherein broadcasts and coding rule is hidden on data packet length to avoid the problem that router modification data packet causes.
Description
Technical field
The present invention relates to Internet of Things control technology fields, the more particularly, to method of realization hardware device networking.
Background technique
With Internet of Things, now with wifi network, smart phone it is universal, more and more household appliances start to walk intelligence
The road of energyization integrates wifi module in household appliance, by running the App installed on the intelligent terminals such as mobile phone to bind this
Wifi module, to achieve the purpose that household appliance is networked.The distribution of wifi module in present Internet of Things household appliance mainly uses
Smartlink and two kinds of SoftAp match net mode, i.e., are provided with Smartlink module or SoftAp module in home appliance.
Both modules are corresponding different with operation needed for net mode:
Smartlink matches net mode, i.e., passes through UDP (User Data by intelligent terminals such as mobile phone or PC
Protocol, User Datagram Protocol) send router SSID (Service Set Identifier, service set) and
The broadcast packet of password to household appliance wifi module, the wifi module of household appliance receive parse after broadcast packet SSID and
Password, then connection router is gone based on this, achieve the purpose that wifi module is networked.
SoftAp matches net mode, i.e. wifi module connects upper module hot spot initially as hot spot, the equipment such as mobile phone, carries out just
The SSID of router and password are transmitted to Wifi module by mobile phone A pp by normal network communication, and wifi module removes connection router,
Achieve the purpose that wifi module is networked.
Smartlink distribution only sends data in the form of multicast, and multicast distribution loses in this way in certain router
Packet rate is big.Be unable in some intelligent movable equipment forwarding multicasting (such as: iPhone6s) therefore limit the mutual of the prior art
The application and success rate of networking module networking technology.
Summary of the invention
The present invention is the above-mentioned shortcoming in order to overcome internet of things equipment networking technology in the prior art, provides one kind
Data packet can be sent according to special coding rule poll using broadcast and multicast, smart machine networking success rate can be improved
Based on multicast and broadcast combination send data packet realize hardware device networking method.
To achieve the above object, the invention adopts the following technical scheme:
A kind of method for realizing hardware device networking sending data packet based on multicast and broadcast combination of the invention, it is special
Sign is to the described method comprises the following steps:
Obtain the access authentication information of router;It will be described with net mode with net mode and SoftAp using Smartlink
Access authentication information sends data packet by broadcast and multicast poll and informs that household appliance, household appliance are based on the access authentication
Router described in information access.
Preferably, described match net mode for the access authentication information with net mode and SoftAp using Smartlink
The step of data packet informs household appliance is sent by broadcast and multicast poll, further comprise: each udp parlor is divided into 5ms,
Multicast and broadcast interval is sent.
Preferably, the sequence of giving out a contract for a project of each udp packet are as follows:
Interval sends multicast/broadcast lead code, and each inter-packet gap 5ms first sends out leading one group of multicast (3 packet), then sends out broadcast
One group leading (4 packet), total packet number, which is subject to, distributes complete leader code (6.8s);
Interval sends all data of multicast and broadcast magic_code+data data portion, first sends out multicast one and takes turns, then sends out
One wheel of broadcast, every 1000 packet (are distributed and are completed subject to data) rest 1 second;
50s is a wheel, repeats above step.
Preferably, the multicast coding includes are as follows:
Multicast use address code, due to multicast address can only use 23bit, by the 23bit classify 2 regions:
The area metadata (7bit) and the area data (16bit) carry out data encoding;
The area metadata: only allow using low 7bit, high-order multicast address is fixed as 1;Metadata includes 2 parts, frame
Type+frame number;
The area data: 2 bytes can be transmitted in a frame, and low byte is in data0, and high byte is in data1.
Preferably, the multicast coding includes are as follows:
Lead code+magic code+sequence header+data, Intelligent hardware module identify data by lead code
Packet, and data packet (title and password of WiFi) is parsed by magic code and sequence header assembly, and with this
Company connects to the Net.
The embodiment of the present invention provides a kind of realization hardware device connection that data packet is sent based on multicast and broadcast combination simultaneously
The device of net, described device include:
Module is obtained, for obtaining the access authentication information of router;
Networking module is passed through the access authentication information with net mode with net mode and SoftAp using Smartlink
Broadcast and multicast poll send data packet and inform that household appliance, household appliance are based on routing described in the access authentication information access
Device.
It by multicast and broadcasts to router, poll sends data packet, and intelligent object is made to connect network.Wherein broadcast is volume
Code rule is hidden on data packet length to avoid the problem that router modification data packet causes.Each udp parlor is divided into 5ms,
Multicast and broadcast interval is sent.5ms is tested by most of router as a result, will lead to if frequency of giving out a contract for a project is too high
Router paralysis.
During Intelligent hardware market starts to be gradually warmed up, configuration smart machine this function of networking is particularly critical,
It directly determines that the people uses the enthusiasm of smart machine, is frequently found some Intelligent hardware products in the market existing and exists
Distribution success rate allows of no optimist in certain router.This programme just greatly improves the distribution compatibility issue of router.
Detailed description of the invention
Fig. 1 is the first pass figure that present invention implementation provides.
Fig. 2 is the flow chart of the step of giving out a contract for a project of each udp packet in inventive embodiments.
Specific embodiment
The present invention is described further with reference to the accompanying drawings and detailed description.
A kind of method for realizing hardware device networking sending data packet based on multicast and broadcast combination of the invention, it is special
Sign is to the described method comprises the following steps:
Obtain the access authentication information of router;It will be described with net mode with net mode and SoftAp using Smartlink
Access authentication information sends data packet by broadcast and multicast poll and informs that household appliance, household appliance are based on the access authentication
Router described in information access.
Preferably, described match net mode for the access authentication information with net mode and SoftAp using Smartlink
The step of data packet informs household appliance is sent by broadcast and multicast poll, further comprise: each udp parlor is divided into 5ms,
Multicast and broadcast interval is sent.
Preferably, the sequence of giving out a contract for a project of each udp packet are as follows:
Interval sends multicast/broadcast lead code, and each inter-packet gap 5ms first sends out leading one group of multicast (3 packet), then sends out broadcast
One group leading (4 packet), total packet number, which is subject to, distributes complete leader code (6.8s);
Interval sends all data of multicast and broadcast magic_code+data data portion, first sends out multicast one and takes turns, then sends out
One wheel of broadcast, every 1000 packet (are distributed and are completed subject to data) rest 1 second;
50s is a wheel, repeats above step.
Preferably, the multicast coding includes are as follows:
Multicast use address code, due to multicast address can only use 23bit, by the 23bit classify 2 regions:
The area metadata (7bit) and the area data (16bit) carry out data encoding;
The area metadata: only allow using low 7bit, high-order multicast address is fixed as 1;Metadata includes 2 parts, frame
Type+frame number;
The area data: 2 bytes can be transmitted in a frame, and low byte is in data0, and high byte is in data1.
Preferably, the multicast coding includes are as follows:
Lead code+magic code+sequence header+data, Intelligent hardware module identify data by lead code
Packet, and data packet (title and password of WiFi) is parsed by magic code and sequence header assembly, and with this
Company connects to the Net.
The embodiment of the present invention provides a kind of realization hardware device connection that data packet is sent based on multicast and broadcast combination simultaneously
The device of net, described device include:
Module is obtained, for obtaining the access authentication information of router;
Networking module is passed through the access authentication information with net mode with net mode and SoftAp using Smartlink
Broadcast and multicast poll send data packet and inform that household appliance, household appliance are based on routing described in the access authentication information access
Device.
During Intelligent hardware market starts to be gradually warmed up, configuration smart machine this function of networking is particularly critical,
It directly determines that the people uses the enthusiasm of smart machine, is frequently found some Intelligent hardware products in the market existing and exists
Distribution success rate allows of no optimist in certain router.This programme just greatly improves the distribution compatibility issue of router.
Each udp parlor that the networking module is sent is divided into 5ms, and multicast and broadcast interval is sent.
The networking module includes multicast unit and radio unit:
The multicast unit, multicast use address code, and since multicast address can only use 23bit, which is classified
2 regions: the area metadata (7bit) and the area data (16bit) carries out data encoding;
The area metadata: only allow using low 7bit, high-order multicast address is fixed as 1;Metadata includes 2 parts, frame
Type+frame number;
The area data: 2 bytes can be transmitted in a frame, and low byte is in data0, and high byte is in data1.
The radio unit, including lead code+magic code+sequence header+data, Intelligent hardware module
By lead code identify data packet, and by magic code and sequence header assembly parse data packet (WiFi's
Title and password), and even connected to the Net with this.
Claims (8)
1. a kind of method for realizing hardware device networking for sending data packet based on multicast and broadcast combination, characterized in that described
Method the following steps are included:
Obtain the access authentication information of router;
The access authentication information is passed through into broadcast and multicast poll with net mode with net mode and SoftAp using Smartlink
It sends data packet and informs that household appliance, household appliance are based on router described in the access authentication information access.
2. according to the method described in claim 1, it is characterized in that, it is described using Smartlink match net mode and SoftAp distribution
The access authentication information is sent the step of data packet informs household appliance by broadcast and multicast poll by mode, is further wrapped
It includes:
Each udp parlor is divided into 5ms, and multicast and broadcast interval is sent.
3. according to the method described in claim 2, it is characterized in that, the step of giving out a contract for a project of each udp packet are as follows:
Interval sends multicast/broadcast lead code, and each inter-packet gap 5ms first sends out leading one group of multicast (3 packet), then sends out broadcast preamble
One group (4 packet), total packet number, which is subject to, distributes complete leader code (6.8s);
Interval sends all data of multicast and broadcast magic_code+data data portion, first sends out multicast one and takes turns, then hair broadcast
One wheel, every 1000 packet (are distributed and are completed subject to data) rest 1 second;
50s is a wheel, repeats above step.
4. according to the method described in claim 3, it is characterized in that, multicast coding includes are as follows:
Multicast use address code, due to multicast address can only use 23bit, by the 23bit classify 2 regions: metadata
Area (7bit) and the area data (16bit) carry out data encoding;
The area metadata: only allow using low 7bit, high-order multicast address is fixed as 1;Metadata include 2 parts, frame type+
Frame number;
The area data: 2 bytes can be transmitted in a frame, and low byte is in data0, and high byte is in data1.
5. according to the method described in claim 3, it is characterized in that, multicast coding includes are as follows:
Lead code+magic code+sequence header+data, Intelligent hardware module identify data packet by lead code,
And data packet (title and password of WiFi) is parsed by magic code and sequence header assembly, and connect with this
It connects to the Net.
6. a kind of device for realizing hardware device networking for sending data packet based on multicast and broadcast combination, characterized in that described
Device includes:
Module is obtained, for obtaining the access authentication information of router;
The access authentication information is passed through broadcast with net mode with net mode and SoftAp using Smartlink by networking module
Data packet, which is sent, with multicast poll informs that household appliance, household appliance are based on router described in the access authentication information access.
7. device according to claim 6, characterized in that each udp parlor that the networking module is sent is divided into 5ms,
Multicast and broadcast interval is sent.
8. device according to claim 6, characterized in that the networking module includes multicast unit and radio unit:
The multicast unit, multicast use address code, and since multicast address can only use 23bit, which is classified 2
Region: the area metadata (7bit) and the area data (16bit) carries out data encoding;
The area metadata: only allow using low 7bit, high-order multicast address is fixed as 1;Metadata include 2 parts, frame type+
Frame number;
The area data: 2 bytes can be transmitted in a frame, and low byte is in data0, and high byte is in data1.
The radio unit, including lead code+magic code+sequence header+data, Intelligent hardware module pass through
Lead code identifies data packet, and parses the data packet (title of WiFi by magic code and sequence header assembly
And password), and even connected to the Net with this.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810441444.7A CN110475209A (en) | 2018-05-10 | 2018-05-10 | A method of sending the realization hardware device networking of data packet based on multicast and broadcast combination |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810441444.7A CN110475209A (en) | 2018-05-10 | 2018-05-10 | A method of sending the realization hardware device networking of data packet based on multicast and broadcast combination |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110475209A true CN110475209A (en) | 2019-11-19 |
Family
ID=68503877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810441444.7A Pending CN110475209A (en) | 2018-05-10 | 2018-05-10 | A method of sending the realization hardware device networking of data packet based on multicast and broadcast combination |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110475209A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114222254A (en) * | 2021-12-20 | 2022-03-22 | 北京奕斯伟计算技术有限公司 | Network distribution method, device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105898831A (en) * | 2016-03-29 | 2016-08-24 | 海尔优家智能科技(北京)有限公司 | Method and apparatus for smart device accessing wifi and smart device |
CN106209537A (en) * | 2016-07-25 | 2016-12-07 | 深圳市双驰科技有限公司 | A kind of home appliance and WIFI module, distribution method |
CN106453000A (en) * | 2016-10-09 | 2017-02-22 | 美的智慧家居科技有限公司 | Network distribution method and system for household electrical appliance, household electrical appliance and mobile terminal |
CN108011726A (en) * | 2016-11-02 | 2018-05-08 | 九阳股份有限公司 | A kind of household electrical appliances distribution method and system |
CN108243482A (en) * | 2017-12-25 | 2018-07-03 | 惠州Tcl移动通信有限公司 | A kind of network collocating method, storage medium and electronic equipment |
-
2018
- 2018-05-10 CN CN201810441444.7A patent/CN110475209A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105898831A (en) * | 2016-03-29 | 2016-08-24 | 海尔优家智能科技(北京)有限公司 | Method and apparatus for smart device accessing wifi and smart device |
CN106209537A (en) * | 2016-07-25 | 2016-12-07 | 深圳市双驰科技有限公司 | A kind of home appliance and WIFI module, distribution method |
CN106453000A (en) * | 2016-10-09 | 2017-02-22 | 美的智慧家居科技有限公司 | Network distribution method and system for household electrical appliance, household electrical appliance and mobile terminal |
CN108011726A (en) * | 2016-11-02 | 2018-05-08 | 九阳股份有限公司 | A kind of household electrical appliances distribution method and system |
CN108243482A (en) * | 2017-12-25 | 2018-07-03 | 惠州Tcl移动通信有限公司 | A kind of network collocating method, storage medium and electronic equipment |
Non-Patent Citations (1)
Title |
---|
CSDN: "airkiss技术原理", 《互联网获取:HTTPS://BLOG.CSDN.NET/LB5761311/ARTICLE/DETAILS/77945848》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114222254A (en) * | 2021-12-20 | 2022-03-22 | 北京奕斯伟计算技术有限公司 | Network distribution method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109391500B (en) | Configuration management method, device and equipment | |
CN106789259B (en) | A kind of LoRa core network system and implementation method | |
CN105050087B (en) | A kind of method and system of multi-protocols compatible equipment access WiFi network | |
CN103747441B (en) | Wireless network access method and access device | |
CN106254147B (en) | It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal | |
CN106028423A (en) | Wireless network distribution method applicable to smart furniture device | |
EP2541834B1 (en) | Method and device for managing machince-to-machine network topology structure | |
CN106455001A (en) | Method and device for configuring WIFI module | |
CN103701695A (en) | Intelligent home gateway control system | |
CN108449770A (en) | A kind of Intelligent hardware Wifi matches net mode | |
WO2010031338A1 (en) | Service activation method, service providing method, terminal equipment and server | |
CN103327030A (en) | Method for information transmission by utilizing Wi-Fi (Wireless-Fidelity) message length | |
CN105262740B (en) | A kind of big data transmission method and system | |
WO2012062077A1 (en) | Machine type communication device group management method and system based on generic bootstrapping architecture | |
US20180084598A1 (en) | Providing enhanced and/or supplementary network connectivity to at least one client device that is connected to a telecommunications network using a customer premises equipment device | |
CN109302642A (en) | Collecting method and device | |
WO2014075359A1 (en) | Bandwidth adjustment method, device and system | |
CN105407544B (en) | Quick networking method based on WiFi module | |
KR100726175B1 (en) | Method and apparatus for broadcasting higher-layer protocol message in wireless portable internet system | |
CN106550474B (en) | Heterogeneous network integration method and device | |
CN104253763A (en) | Method for realizing data transmission in gateway equipment of ubiquitous network and gateway equipment using method | |
CN108541077A (en) | A kind of quick distribution method and system of intelligent hardware devices based on WPS | |
CN102111289B (en) | Method and device for deploying authentication | |
CN105357088B (en) | Efficient system network transfer method under the interactive medium service environment of cloud framework | |
CN106533503B (en) | A kind of method and device of powerline network communication |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191119 |