CN108200634A - A kind of wireless network adding method of embedded device - Google Patents
A kind of wireless network adding method of embedded device Download PDFInfo
- Publication number
- CN108200634A CN108200634A CN201810147423.4A CN201810147423A CN108200634A CN 108200634 A CN108200634 A CN 108200634A CN 201810147423 A CN201810147423 A CN 201810147423A CN 108200634 A CN108200634 A CN 108200634A
- Authority
- CN
- China
- Prior art keywords
- wireless network
- ssid
- character
- embedded device
- bit7
- 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
- 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
- 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/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of wireless network adding methods of embedded device, specifically include and transmit information using the length of 802.11MAC frame heads FrameBody:Network card setup is promiscuous mode by the first step;Second step is switched to channel where router;Third walks, and is parsed according to 802.11 frame formats;4th step formulates the agreement that information is transmitted with data length.The FrameBody is encrypted former Ethernet data in what is carried, and standard supports 2312 byte lengths.Need not have keyboard and display the invention enables equipment can obtain WiFi ssid and password, quickly access to wireless network so as to more convenient, greatly increase the ease for use of equipment.
Description
Technical field
The invention belongs to radio network technique field, more particularly, to a kind of wireless network adding method of embedded device.
Background technology
WLAN 802.11 (Wi-Fi) is using wide the short distance wireless communication technology, IEEE in Internet of Things
802.11 be the standard that WLAN is general now, it is wireless as defined in international motor electronic Engineering society (IEEE)
The standard of network communication.There is defined MAC layer (MAC layer) and physical layers.Physical layer, which defines, to be operated in
Two kinds of spread spectrums in the ISM band of 2.4GHz make modulation system and a kind of mode of Infrared Transmission, overall data transmission rate design
For 2Mbit/s.Two equipment can voluntarily build casual network, can also be in base station (Base Station, BS) or access
It communicates under the coordination of point (Access Point, AP), however equipment can not obtain WiFi when not having keyboard and display
Ssid and password;Mobile phone send 300M width multicast message, equipment sniff less than.
Invention content
In view of this, the present invention is directed to propose a kind of wireless network adding method of embedded device, to realize that equipment is fast
The ease for use for accessing to wireless network, increasing equipment of speed.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
A kind of wireless network adding method of embedded device specifically includes and utilizes 802.11MAC frame heads FrameBody's
Length transmits information:
(1) it is promiscuous mode by Network card setup;
(2) channel where being switched to router;
(3) it is parsed according to 802.11 frame formats;
(4) agreement that information is transmitted with data length is formulated.
Further, the FrameBody is encrypted former Ethernet data in what is carried, and standard supports 2312 bytes
Length.
Sign is:Data format includes
Bit0~Bit7:It deposits the base64 characters of SSID, Password or deposits the position of character ordinal number
Bit10:Refer to the content that Bit0~Bit7 is currently deposited
0:Represent character position 1:Represent character content
Barcode, separator and end mark:
Broadcast transmission barcode:The first four byte of ssid is the base64 contents of barcode
When bit10 is 1, bit6~Bit8:
0:Even SSID 1:Strange SSID 2:Even Password 3:Strange pwd 4:Separator 5:
End mark
When odevity is when symbolic placeholders:Bit0~bit5 immobilized substances are 0
If bit0~bit5 contents are 1~31, the content of barcode is represented
When Bit10 is 0
Bit7:0- even number group number 1- odd number group numbers
Bit8 is 0:SSID 1:Password
Bit9:It is 1 for 0 and bit7:Wait symbolic placeholders,
Bit9 is 1:Represent the position of non-equal sign.
Further, for the character per secondary two broadcast packets of biography, a packet indicates the position of character, and a packet indicates character content.
Relative to the prior art, a kind of wireless network adding method of embedded device of the present invention has the advantage that:
Need not have keyboard and display the invention enables equipment can obtain WiFi ssid and password, so as to
Wireless network quickly is accessed to more convenient, greatly increases the ease for use of equipment.
Description of the drawings
The attached drawing for forming the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention
Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of wireless network adding method schematic diagram of embedded device described in the embodiment of the present invention.
Specific embodiment
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
In the description of the present invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", " on ", " under ",
The orientation or position relationship of the instructions such as "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom ", " interior ", " outer " are
Based on orientation shown in the drawings or position relationship, it is for only for ease of the description present invention and simplifies description rather than instruction or dark
Show that signified device or element there must be specific orientation, with specific azimuth configuration and operation, therefore it is not intended that right
The limitation of the present invention.In addition, term " first ", " second " etc. are only used for description purpose, and it is not intended that instruction or hint phase
To importance or the implicit quantity for indicating indicated technical characteristic.The feature for defining " first ", " second " etc. as a result, can
To express or implicitly include one or more this feature.In the description of the present invention, unless otherwise indicated, " multiple "
It is meant that two or more.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase
Even ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected or be integrally connected;It can
To be mechanical connection or be electrically connected;It can be directly connected, can also be indirectly connected by intermediary, Ke Yishi
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood by concrete condition
Concrete meaning in the present invention.
The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in Figure 1, the present invention proposes a kind of wireless network adding method of embedded device, utilization is specifically included
The length of 802.11MAC frame heads FrameBody transmits information:
(1) it is promiscuous mode by Network card setup;
(2) channel where being switched to router;
(3) it is parsed according to 802.11 frame formats;
(4) agreement that information is transmitted with data length is formulated.
Embodiment:
High-order --- -- → low level
Bit0~Bit7:It deposits the base64 characters of SSID, Password or deposits the position of character ordinal number
Bit10:Refer to the content that Bit0~Bit7 is currently deposited
0:Represent character position 1:Represent character content
Barcode, separator and end mark:
Broadcast transmission barcode:The first four byte of ssid is the base64 contents of barcode.
When bit10 is 1, bit6~Bit8:
0:Even SSID 1:Strange SSID 2:Even Password 3:Strange pwd 4:Separator 5:End mark
When odevity is when symbolic placeholders:Bit0~bit5 immobilized substances are 0
If bit0~bit5 contents are 1~31, the content of barcode is represented.
When Bit10 is 0
Bit7:0- even number group number 1- odd number group numbers
Bit8 is 0:SSID 1:Password
bit9:It is 1 for 0 and bit7:Wait symbolic placeholders,
Bit9 is 1:Represent the position of non-equal sign.
For such a character per secondary two broadcast packets of biography, a packet indicates the position of character, and a packet indicates character content.
Specific transmission scheme, first sends out SSID:
First group of data Bit7 is 0
Second group of data Bit7 is switched to 1
It is recycled with this, until whole ssid are sent, Bit7 is toggled between 01.Finally send end mark.
It is also such similarly to send password.
Recipient needs the return value with a unsigned int variable saves recvfrom, according to above-mentioned agreement step-by-step
Parsing.
Such as the present a sent in " abc " this character string.
Sender:
(1) a base64 are encoded.
(2) it is bit corresponding by the setting of above-mentioned agreement, calculate the numerical value for representing a positions and content.
(3) it sends respectively in the data packet to broadcast of corresponding size.
(4) continue to send character late, until being sent.
Recipient:
(1) with the return value of the variable save recvfrom of a unsigned int type
(2) the return value base64 of preservation is decoded
(3) by above-mentioned protocol analysis, judge that this data packet represents content or position.
(4) character being resolved to is stored in array corresponding position.
(5) continue to parse next until receiving end mark.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention god.
Claims (4)
1. a kind of wireless network adding method of embedded device, it is characterised in that:It specifically includes and utilizes 802.11 mac frame heads
The length of FrameBody transmits information:
(1) it is promiscuous mode by Network card setup;
(2) channel where being switched to router;
(3) it is parsed according to 802.11 frame formats;
(4) agreement that information is transmitted with data length is formulated.
2. a kind of wireless network adding method of embedded device according to claim 1, it is characterised in that:It is described
FrameBody is encrypted former Ethernet data in what is carried, and standard supports 2312 byte lengths.
3. a kind of wireless network adding method of embedded device according to claim 1, it is characterised in that:Data format
Including
Bit0~Bit7:It deposits the base64 characters of SSID, Password or deposits the position of character ordinal number
Bit10:Refer to the content that Bit0~Bit7 is currently deposited
0:Represent character position 1:Represent character content
Barcode, separator and end mark:
Broadcast transmission barcode:The first four byte of ssid is the base64 contents of barcode
When bit10 is 1, bit6~Bit8:
0:Even SSID 1:Strange SSID 2:Even Password 3:Strange pwd 4:Separator 5:
End mark
When odevity is when symbolic placeholders:Bit0~bit5 immobilized substances are 0
If bit0~bit5 contents are 1~31, the content of barcode is represented
When Bit10 is 0
Bit7:0- even number group number 1- odd number group numbers
Bit8 is 0:SSID 1:Password
Bit9:It is 1 for 0 and bit7:Wait symbolic placeholders,
Bit9 is 1:Represent the position of non-equal sign.
4. a kind of wireless network adding method of embedded device according to claim 1, it is characterised in that:The character
Per secondary two broadcast packets of biography, a packet indicates the position of character, and a packet indicates character content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810147423.4A CN108200634A (en) | 2018-02-12 | 2018-02-12 | A kind of wireless network adding method of embedded device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810147423.4A CN108200634A (en) | 2018-02-12 | 2018-02-12 | A kind of wireless network adding method of embedded device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108200634A true CN108200634A (en) | 2018-06-22 |
Family
ID=62593234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810147423.4A Pending CN108200634A (en) | 2018-02-12 | 2018-02-12 | A kind of wireless network adding method of embedded device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108200634A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102812648A (en) * | 2010-03-11 | 2012-12-05 | 韩国电子通信研究院 | Communication method and frame structure for a coordinator device, source device and relay device in a wireless system |
CN104144086A (en) * | 2013-12-04 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Communication method and system and information sending/receiving device |
CN104703176A (en) * | 2015-03-18 | 2015-06-10 | 北京联盛德微电子有限责任公司 | Configuration method of wireless network, intelligent terminal and wireless network equipment |
WO2017097066A1 (en) * | 2015-12-11 | 2017-06-15 | 华为技术有限公司 | Method and device for transmitting trigger frame in wireless local area network |
-
2018
- 2018-02-12 CN CN201810147423.4A patent/CN108200634A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102812648A (en) * | 2010-03-11 | 2012-12-05 | 韩国电子通信研究院 | Communication method and frame structure for a coordinator device, source device and relay device in a wireless system |
CN104144086A (en) * | 2013-12-04 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Communication method and system and information sending/receiving device |
CN104703176A (en) * | 2015-03-18 | 2015-06-10 | 北京联盛德微电子有限责任公司 | Configuration method of wireless network, intelligent terminal and wireless network equipment |
WO2017097066A1 (en) * | 2015-12-11 | 2017-06-15 | 华为技术有限公司 | Method and device for transmitting trigger frame in wireless local area network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Oliveira et al. | MAC layer protocols for Internet of Things: A survey | |
US9319950B2 (en) | Method and apparatus for band switching in wireless local access network | |
EP3349515B1 (en) | Wireless communication device and wireless communication method | |
US9843558B2 (en) | Method and apparatus for transmitting and receiving a frame supporting a short MAC header in wireless LAN system | |
US7817961B2 (en) | Beacon transmission in short-range wireless communication systems | |
Ullah et al. | Throughput and delay analysis of IEEE 802.15. 6-based CSMA/CA protocol | |
US9131471B2 (en) | Efficient enablement for wireless communication on license-exempt bands | |
KR101477812B1 (en) | Protocol architecture for overlay WLAN and/or millimeter portal, and frame format and frame transmission method for the protocol architecture in a VHT WLAN system | |
US20160337783A1 (en) | Method and apparatus for transmitting and receiving frame supporting short mac header in wireless lan system | |
WO2013162280A1 (en) | Method and apparatus for transmitting and receiving frame including partial association identifier in wireless lan system | |
KR20140126711A (en) | Mac header compression in long-range wireless local area networks | |
WO2015093704A1 (en) | Method and device for transceiving frame comprisng partial association identifier in wireless lan system | |
US11082923B2 (en) | Method for direct communication between stations in wireless local area network and related device | |
CN107223348A (en) | The dynamic instruction figure indicated for multicast group and flow | |
KR101901935B1 (en) | Channel switching to a white space band through tdls | |
WO2022193945A1 (en) | Method and device for direct link addressing | |
Yonis | Performance analysis of IEEE 802.11 ac based WLAN in wireless communication systems | |
CN108200634A (en) | A kind of wireless network adding method of embedded device | |
CN101166186A (en) | Construction method for physical layer frame of OFDM WLAN and its response method | |
Qureshi et al. | A systematic review of the IEEE-802.11 standard’s enhancements and limitations | |
CN103945379B (en) | A kind of method that access authentication and data communication are realized in access network | |
Robert et al. | LPWAN downlink using broadcast transmitters | |
Mahesh et al. | Throughput and energy efficiency analysis of the IEEE 802.11 ah restricted access window mechanism | |
Baños-Gonzalez et al. | Throughput and range characterization of IEEE 802.11 ah | |
US20240163006A1 (en) | Compressed psdu format for nba-mms-uwb control signals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180622 |
|
RJ01 | Rejection of invention patent application after publication |