CN104363076A - Method for exchanging data by wireless message length - Google Patents
Method for exchanging data by wireless message length Download PDFInfo
- Publication number
- CN104363076A CN104363076A CN201410740274.4A CN201410740274A CN104363076A CN 104363076 A CN104363076 A CN 104363076A CN 201410740274 A CN201410740274 A CN 201410740274A CN 104363076 A CN104363076 A CN 104363076A
- Authority
- CN
- China
- Prior art keywords
- data
- code sequence
- length
- code
- load
- 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
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0036—Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method for exchanging data by monitoring a wireless message transmitted in the air at a receiving terminal depending on the length of the wireless message at a transmitting terminal. The transmitting terminal is used for allowing the related information of data to generate a head part, encoding the head part and the data to obtain a result CODE sequence, taking CODE values in the result CODE sequence one by one, and sending a UDP (User Datagram Protocol) message taking the CODE value as a length; the receiving terminal is used for collecting the wireless message lengths by continuously monitoring the wireless messages in the air, and decoding to obtain the data of the transmitting terminal; the head part at least comprises a length, a data checksum and a head part checksum; the result CODE sequence comprises a starting characteristic CODE sequence and a load CODE sequence; the starting characteristic CODE sequence comprises starting characteristic CODEs with the same value of agreed numbers; the load CODE sequence carries the head part and the data; the starting characteristic CODE is an encoding reference value at the transmitting terminal and a decoding reference value at the receiving terminal, and has an equal difference of the wireless message length and the sent data block length, and all offset values based on the characteristic CODE can be reduced.
Description
Technical field:
The present invention relates to Wi-Fi communication, particularly relate to a kind of method of carrying out exchanges data by air message length.
Background technology:
IEEE 802.11 is standards that WLAN (wireless local area network) is general now, the standard of the wireless communication that the international motor electronic Engineering society (IEEE) of its Shi You defines.
Wi-Fi is the brand quality certification of trade mark as product of Wi-Fi Alliance manufacturer, for meeting the Wireless LAN devices of IEEE 802.11 standard.Closely related based on two cover systems, also often has people that Wi-Fi is used as the synonymous term of IEEE 802.11 standard.
Many electronic products on the market support Wi-Fi, as: smart mobile phone, panel computer, wireless network camera, wireless DVR, intelligent television, PC, game machine, MP3 player, printer, new notebook computer and other peripheral equipments.And the equipment such as wireless network camera, wireless DVR, wireless door magnetic, wireless controller do not have input/output interface easily.
Wi-Fi network is connection-oriented network, need to be linked into same network between usual equipment or set up directly connect after could swap data, the operating system operated on smart mobile phone, computer, intelligent television such as IOS limits the ability of application program, cannot modify to connect these network equipments to the network of self, can not create focus give these network equipments for connection, the exchange of data cannot be completed easily.
Summary of the invention:
Propose a kind of method of carrying out exchanges data by air message length herein, receiving terminal is by intercepting the aerial air message transmitted, and transmitting terminal carries out the method for exchanges data by air message length.
In the air message aloft transmitted, message length, source MAC, target MAC (Media Access Control) address field can not be encrypted, and in same wireless connections, air message length is strict equal difference relation with sending data block length, and data block length is determined by transmitting terminal.
The present invention realizes like this
Transmitting terminal: the relevant information of data is generated head, head and data is carried out coding and obtains result CODE sequence, takes out the CODE value in result CODE sequence one by one, the UDP message that to send with CODE value be length;
Receiving terminal: air message length, by continuing to intercept on-air radio message, collects by receiving terminal, carrying out decodes obtains the data of transmitting terminal;
Head at least comprises: length, check sum, header checksum;
Result CODE sequence is by initiation feature CODE sequence, load CODE Sequence composition;
Initiation feature CODE sequence: for the identical initiation feature CODE of the value of arranging number is formed;
Load CODE sequence: carry head and data;
Initiation feature CODE: be coding fiducial value at transmit leg is decoding fiducial value recipient, and because of air message length with to send data block length be strict equal difference relation, all deviants based on this feature CODE can be reduced recipient;
Load CODE: the value of School Affairs bit, the split of load bit, based on fiducial value, obtains load CODE by the deviant of arranging;
Escape CODE: based on the agreement deviant of fiducial value, differently with fiducial value may be used for distinguishing the CODE carrying load, for isolating two consecutive identical load CODE;
By with Wi-Fi function mobile phone, to take down notes than the intelligent terminal such as computer, intelligent television there is no the wireless network camera of convenient input/output interface, exchanges data that wireless intelligent house product carries out under notconnect state, by to the identification of data content and process, thus realize:
Wi-Fi network configuration-direct, comprises the SSID needed for access network, cryptographic parameter, completes the access of wireless network;
Cable network configuration-direct, is configured with spider lines parameter;
The instruction of factory reset, returns to factory default by Wireless Communication Equipment and arranges state;
The instruction of restarting equipment, carries out reset by Wireless Communication Equipment and restarts;
Cloth is withdrawn a garrison instruction, deploys troops on garrison duty or withdraw a garrison to wireless network camera;
Configuration, maintenance management instruction, be configured the network equipment, maintenance and management.
Accompanying drawing illustrates:
Below in conjunction with accompanying drawing, the present invention is described in detail.
Fig. 1 is coding principle figure
Fig. 2 exchanges data schematic diagram
Embodiment:
The process of coding: by being together encoded in length in valid data position and School Affairs, significantly can improve the interference defensive ability/resistance ability to other network service of transmitting terminal.
To the data calculated population School Affairs received, the higher jamproof data exchange ways of data can be realized.
In the air message aloft transmitted, data length, source MAC, target MAC (Media Access Control) address field can not be encrypted, and message length becomes strict equal difference relation with the corresponding data block length of data sending terminal, convert data to the length of message, then to the data message sending this length in the air, the method can not be subject to the impact of wireless encryption mode.
In the process of attempting decoding, identical with target MAC (Media Access Control) address for message source MAC one group can be carried out decoding and attempt, the interference between distinct device can be resisted.
Based on the method, can by with Wi-Fi function mobile phone, to take down notes than the intelligent terminal such as computer, intelligent television there is no the wireless network camera of convenient input/output interface, exchanges data that wireless intelligent house product carries out under notconnect state, by to the identification of data content and process, thus realize:
The order of Wi-Fi network configuration and SSID, cryptographic parameter needed for access network, complete the access of wireless network;
The instruction of factory reset, returns to factory default by Wireless Communication Equipment and arranges state;
The instruction of restarting equipment, carries out reset by Wireless Communication Equipment and restarts;
The network equipment is configured, maintenance and management.
Transmitting terminal determines according to configuration or agreement fiducial value of encoding, and generates initiation feature CODE sequence; The relevant information of data is generated head, based on fiducial value, head and data is carried out being encoded to load CODE sequence by bit, initiation feature CODE sequence and load CODE sequence are merged CODE queue as a result.
Receiving terminal detects feature CODE sequence, obtains decoding fiducial value according to feature CODE sequence, decodes, restore head and data, and carry out data check, obtain the data that transmitting terminal sends according to decoding fiducial value.
The present invention is achieved in that
Transmitting terminal and receiving terminal agreement: exchanges data initiation feature, data-bit encoding form, certain BIT number destination data and its associated check and.Data-bit encoding result successively processes through network protocol stack and finally exchanges in the air, can become the data message length that phase difference is constant.
Data receiver:
Step 1: Wi-Fi module is set as listen mode.
Step 2: channel number attempts all effective passages one by one from 1, arranges Wi-Fi module service aisle number, continues to intercept on-air radio message.
Step 3: after listening to message, divide into groups according to source MAC, target MAC (Media Access Control) address, prepare corresponding controll block, set up data length buffering area, data length Wi-Fi module listened to takes out, stored in data length buffering area: not yet enter data receiving state if current, enter step 4, otherwise enter step 5.
Step 4: then detect in length list nearest in data length buffering area whether there is exchanges data initiation feature, if had, enter data receiving state.
Step 5: by length value according to the agreement with transmitting terminal, be partitioned into data division BITS position and School Affairs part BITS position, calculated data School Affairs, and the checksum value calculating gained and the School Affairs part split from length value are verified, if do not mated, ignore this message, if coupling, enter step 6.
Step 6: step 5 the data obtained part BITS position is pushed buffering area, if the length value received reaches the length of header data first, then enters step 7; If the data length received reaches the data total length needing to receive, if arrive overall length, enter step 8; Otherwise repeat step 3;
Step 7: correctly whether detection length and header checksum, if incorrect, reset accepting state and also repeat step 3, if correct, write down the data total length needing reception, repetition step 3;
Step 8: calculate overall School Affairs and and in head the School Affairs that indicates compare, if do not mated, replacement accepting state also repeats step 3; If coupling, takes out data, enters step 9;
Step 9: understand the data received, according to the content of arranging away to respond, is processed for the request having access rights legal; If wifi configuring request, then take out ssid and password, carry out wifi setting; If the request of factory reset, then that recovers data arrives factory state; If the request of restarting equipment, then restarting equipment.
Claims (7)
1. the present invention is achieved in that a kind of method of carrying out exchanges data by air message, and receiving terminal is by intercepting the aerial air message transmitted, and transmitting terminal carries out the method for exchanges data by air message length;
Transmitting terminal: the relevant information of data is generated head, head and data is carried out coding and obtains result CODE sequence, takes out the CODE value in result CODE sequence one by one, the UDP message that to send with CODE value be length;
Receiving terminal: by continuing to intercept on-air radio message, air message length collected, carrying out decodes obtains the data sent of transmitting terminal.
2. as claimed in claim 1:
Head at least comprises: length, check sum, header checksum;
Result CODE sequence is by initiation feature CODE sequence, load CODE Sequence composition;
Initiation feature CODE sequence: for the identical initiation feature CODE of the value of arranging number is formed;
Load CODE sequence: carry head and data.
3. as claim 1, according to claim 2:
Initiation feature CODE: be coding fiducial value at transmit leg is decoding fiducial value recipient, and because of air message length with to send data block length be strict equal difference relation, all deviants based on this feature CODE can be reduced recipient;
Load CODE: the value of School Affairs bit, the split of load bit, based on fiducial value, obtains load CODE by the deviant of arranging;
Escape CODE: based on the agreement deviant of fiducial value, differently with fiducial value may be used for distinguishing the CODE carrying load, for isolating two consecutive identical load CODE.
4. transmitting terminal as claimed in claim 1:
Transmitting terminal determines according to configuration or agreement fiducial value of encoding, and generates initiation feature CODE sequence; The relevant information of data is generated head, based on fiducial value, head and data is carried out being encoded to load CODE sequence by bit, initiation feature CODE sequence and load CODE sequence are merged CODE queue as a result.
5. receiving terminal as claimed in claim 1:
Receiving terminal detects feature CODE sequence, obtains decoding fiducial value according to feature CODE sequence, decodes, restore head and data, and carry out data check, obtain the data that transmitting terminal sends according to decoding fiducial value.
6. method for interchanging data as claimed in claim 1:
By with Wi-Fi function mobile phone, to take down notes than the intelligent terminal such as computer, intelligent television there is no the wireless network camera of convenient input/output interface, exchanges data that wireless intelligent house product carries out under notconnect state, by to the identification of data content and process, thus realize:
Wi-Fi network configuration-direct, comprises the SSID needed for access network, cryptographic parameter, completes the access of wireless network;
Cable network configuration-direct, is configured with spider lines parameter;
The instruction of factory reset, returns to factory default by Wireless Communication Equipment and arranges state;
The instruction of restarting equipment, carries out reset by Wireless Communication Equipment and restarts;
Cloth is withdrawn a garrison instruction, deploys troops on garrison duty or withdraw a garrison to wireless network camera;
Configuration, maintenance management instruction, be configured the network equipment, maintenance and management.
7. receiving terminal as claimed in claim 1:
Wi-Fi module is set as listen mode;
Channel number attempts all effective passages one by one from 1, arranges Wi-Fi module service aisle number, continues to intercept on-air radio message;
After listening to message, divide into groups according to source MAC, target MAC (Media Access Control) address, prepare corresponding controll block, set up data length buffering area, data length Wi-Fi module listened to takes out, and processes stored in data length buffering area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410740274.4A CN104363076A (en) | 2014-12-05 | 2014-12-05 | Method for exchanging data by wireless message length |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410740274.4A CN104363076A (en) | 2014-12-05 | 2014-12-05 | Method for exchanging data by wireless message length |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104363076A true CN104363076A (en) | 2015-02-18 |
Family
ID=52530306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410740274.4A Pending CN104363076A (en) | 2014-12-05 | 2014-12-05 | Method for exchanging data by wireless message length |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104363076A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111756627A (en) * | 2020-06-24 | 2020-10-09 | 广东电网有限责任公司电力科学研究院 | Cloud platform security access gateway of electric power monitored control system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327030A (en) * | 2013-07-10 | 2013-09-25 | 上海庆科信息技术有限公司 | Method for information transmission by utilizing Wi-Fi (Wireless-Fidelity) message length |
CN104010327A (en) * | 2014-06-18 | 2014-08-27 | 江勇 | Method and system for quickly having access to WIFI wireless network |
-
2014
- 2014-12-05 CN CN201410740274.4A patent/CN104363076A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327030A (en) * | 2013-07-10 | 2013-09-25 | 上海庆科信息技术有限公司 | Method for information transmission by utilizing Wi-Fi (Wireless-Fidelity) message length |
CN104010327A (en) * | 2014-06-18 | 2014-08-27 | 江勇 | Method and system for quickly having access to WIFI wireless network |
Non-Patent Citations (1)
Title |
---|
李勇: "《机电控制系统》", 31 January 2012 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111756627A (en) * | 2020-06-24 | 2020-10-09 | 广东电网有限责任公司电力科学研究院 | Cloud platform security access gateway of electric power monitored control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106789462B (en) | Intelligent household electrical appliance network access safety control method | |
US9338130B2 (en) | Apparatus and method to register Wi-Fi clients on a Wi-Fi network | |
CN104427501B (en) | Method for network access, device and system | |
CN101621800B (en) | Method for exchanging authentication information between wireless terminal and wireless router | |
CN104735747A (en) | Information transferring and receiving method and internet-of-things equipment | |
CN103765848A (en) | Apparatus and methods for media access control replacement | |
CN103841626A (en) | Internet of Things wireless terminal, configuration method thereof and mobile terminal | |
CN104010327A (en) | Method and system for quickly having access to WIFI wireless network | |
CN104394577B (en) | The wireless network access method of wireless routing device and electronic equipment | |
CN104270744B (en) | The rapid configuration system and method for wireless network | |
CN104703176A (en) | Configuration method of wireless network, intelligent terminal and wireless network equipment | |
CN104144086A (en) | Communication method and system and information sending/receiving device | |
CN103327030A (en) | Method for information transmission by utilizing Wi-Fi (Wireless-Fidelity) message length | |
EP2383935B1 (en) | Wireless network setup and configuration distribution | |
US9325523B2 (en) | Method, device and system for accessing wireless local area network, wireless station, and wireless access point | |
CN104683994A (en) | Wireless network configuration method and wireless network devices | |
US9807816B2 (en) | Method and device for performing control in WiFi network | |
CN104812093B (en) | Method and device for accessing WIFI equipment of smart home to network | |
CN105119900A (en) | Information secure transmission method, network access method and corresponding terminals | |
CN105101465A (en) | Wireless network configuration method and wireless network configuration system | |
US8037159B2 (en) | System and method for effecting the secure deployment of networks | |
CN106658426A (en) | Wireless WiFi based remote control communication establishing method and terminal | |
CN102612033B (en) | Mobile phone with thin wireless access point and communication method for mobile phone | |
CN108430091B (en) | Efficient wifi network distribution method and device for smart home | |
CN105120454B (en) | Information transferring method, networking cut-in method and corresponding terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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: 20150218 |
|
RJ01 | Rejection of invention patent application after publication |