CN105049227B - A kind of Wifi non-networked control and the method set - Google Patents

A kind of Wifi non-networked control and the method set Download PDF

Info

Publication number
CN105049227B
CN105049227B CN201510323742.2A CN201510323742A CN105049227B CN 105049227 B CN105049227 B CN 105049227B CN 201510323742 A CN201510323742 A CN 201510323742A CN 105049227 B CN105049227 B CN 105049227B
Authority
CN
China
Prior art keywords
information
wireless
controlled end
length
wifi
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.)
Expired - Fee Related
Application number
CN201510323742.2A
Other languages
Chinese (zh)
Other versions
CN105049227A (en
Inventor
封兴海
费斌
周羽波
丁琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Delan Technology Co Ltd
Original Assignee
Hangzhou Delan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Delan Technology Co Ltd filed Critical Hangzhou Delan Technology Co Ltd
Priority to CN201510323742.2A priority Critical patent/CN105049227B/en
Publication of CN105049227A publication Critical patent/CN105049227A/en
Application granted granted Critical
Publication of CN105049227B publication Critical patent/CN105049227B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The invention discloses a kind of control of Wifi non-networked and the method set.The present invention is a kind of pattern based on WiFi work, using distinctive information in WiFi, such as multicast information, length information, header packet information, carries out time, channel etc. and combines, and utilizes self-defined privately owned data transfer mode and form, completes the transmission of data.The present invention jumps out the dependence to wifi standard agreements, quickly reaches the effect of Configuration network, lifts Consumer's Experience.

Description

A kind of Wifi non-networked control and the method set
Technical field
The invention belongs to internet of things field, is related to a kind of Wifi non-networked control and the method set.
Background technology
With the rise of ' internet+', the development very fast in recent years as the extension field Internet of Things of internet, Wifi technologies have a wide range of applications in Internet of Things field, but at present not one allow between wifi and quickly interconnect well Method, people will always take a significant amount of time for Configuration network, build on Internet of Things network topology.Quickly solves wifi Interconnection problem, the plenty of time is saved for user, it is inevitable trend to improve Consumer's Experience.
The content of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of control of Wifi non-networked and the method set.
The present invention includes controlled end flow and control terminal flow.
Described controlled end flow is specifically:
Step 1. controlled end first determines the need for entering slave mode, it is determined that into entering state parameter after slave mode Initialization;
Step 2. judges whether to receive valid data in setting time, if never received, switching is worked as Preceding channel;
Efficient message in the valid data that step 3. judgement receives, if without effective information, it is empty to monitor crawl Middle data;
Step 4. preserves to valid data;
Step 5. determines whether data frame period is overtime, if not timed out then monitoring captures air-data;If surpass When, then return to step 2;
Described control terminal flow is specifically:
The generation of step 6. control terminal needs the information sent;
Step 7. initializes UDP network connections;
Step 8. information sends broadcast query;
Step 9. confirms whether controlled end is online, if controlled end is online, goes to step 14;If controlled end does not exist Line, then perform step 11;
Step 11. sends udp broadcast and multicast packet in setting time T1;
Step 12. judges whether the packet of transmission is complete, if imperfect, return to step 11;
Step 13. determines whether to exceed timing T3;If being not above timing T3, in stand-by period T2 Go to step 8;If it exceeds timing T3, then go to step 15;
Step 14. sends and receives corresponding information;
Step 15. terminates controlled end flow.
Furtherly, the transmission agreement of the packet described in step 11 containing synchronous head, data length, command word, in detail Information, check information.
Furtherly, when without condition code wireless setting, control terminal is by wireless Name Length, wireless cipher length, wireless Title, the information of wireless cipher are included in details, are sent to controlled end, controlled end is parsed configuration work according to information Make.
Furtherly, when there is condition code wireless setting, control terminal is by wireless Name Length, wireless cipher length, wireless Title, wireless cipher and feature code length, the information of condition code are included in details, are sent to controlled end, controlled end root It is believed that simultaneously whether calibration feature code is consistent with itself for breath parsing, if unanimously completing configuration work, if inconsistent continue to Parsing.
The present invention and prior art contrast have the advantage that:The dependence to wifi standard agreements is jumped out, is quickly reached To the effect of Configuration network, Consumer's Experience is lifted.
Brief description of the drawings
Fig. 1:Controlled end flow chart;
Fig. 2:Control terminal flow chart.
Embodiment
Below according to accompanying drawing, the present invention will be further described.
The present invention is a kind of pattern based on WiFi work, is believed using distinctive information in WiFi, such as multicast information, length Breath, header packet information etc., carry out time, channel etc. and combine, and utilize self-defined privately owned data transfer mode and form, complete number According to transmission.
It is as shown in figure 1, wireless(Containing WIFI)Goods batch is specifically:
Step 1. is wireless(Containing WIFI)Product first determines the need for entering slave mode, it is determined that laggard into slave mode Enter the initialization of state parameter;
Step 2. judges whether to receive valid data in setting time, if never received, switching is worked as Preceding channel;
Efficient message in the valid data that step 3. judgement receives, if without effective information, it is empty to monitor crawl Middle data;
Step 4. preserves to valid data;
Step 5. determines whether data frame period is overtime, if not timed out then monitoring captures air-data;If surpass When, then return to step 2.
Wirelessly(Containing WIFI)Address information in packet header:Address first character section be 239 fix, address second and third, four Byte is respectively mark, frame number, the transmission data of step
Wirelessly(Containing WIFI)Length information in packet header:Pass through the difference of 2 frame multicasts or the length information of broadcast address As coding information.
As shown in Fig. 2 control terminal flow is specifically:
The generation of step 6. control terminal needs the information sent;
Step 7. initializes UDP network connections;
Step 8. information sends broadcast query;
Step 9. confirms wirelessly(Containing WIFI)Whether product is online, if wirelessly(Containing WIFI)On-line Product, then go to step Rapid 14;It is if wireless(Containing WIFI)Product is not online, then performs step 11;
Step 11. sends udp broadcast and multicast packet in setting time T1;
Step 12. judges whether the packet of transmission is complete, if imperfect, return to step 11;
Step 13. determines whether to exceed timing T3;If being not above timing T3, in stand-by period T2 Go to step 8;If it exceeds timing T3, then go to step 15;
Step 14. sends and receives corresponding information;
Step 15. terminates wirelessly(Containing WIFI)Goods batch.
Wherein, the transmission agreement of the packet described in step 11 containing synchronous head, data length, command word, details, Check information.
When without condition code wireless setting, control terminal is by wireless Name Length, wireless cipher length, wireless title, wireless The information of password is included in details, is sent to wireless(Containing WIFI)Product, wirelessly(Containing WIFI)Product is according to information solution Configuration work is completed in analysis.
When there is condition code wireless setting, control terminal is by wireless Name Length, wireless cipher length, wireless title, wireless Password and feature code length, the information of condition code are included in details, are sent to wireless(Containing WIFI)Product, wirelessly(Contain WIFI)Simultaneously whether calibration feature code is consistent with itself according to information parsing for product, if unanimously completing configuration work, if differed Cause continues to parse.
Control command
Specific control instruction, such as serial ports control instruction, IO control instruction information are stored in details by control terminal In, it is sent to wirelessly according to flow(Containing WIFI)Product, wirelessly(Containing WIFI)Product is parsed corresponding control according to information Task.
Other specification configures
The parameter information of desired configuration is stored in details by control terminal, is sent to wirelessly according to flow(Containing WIFI) Product, wirelessly(Containing WIFI)Product is parsed corresponding configuration according to information.
Other
The information that any both sides appoint can be stored in details by control terminal, be sent to wirelessly according to flow (Containing WIFI)Product, wirelessly(Containing WIFI)Product realizes any application according to information parsing.
Such as there is abnormal processing
It is wireless such as to there is configuration(Containing WIFI)Network configuration time-out or configuration are unsuccessful, wirelessly(Containing WIFI)Product will Automatically into configuration mode, such as WIFI ap mode.
The method can be not only used for parameter configuration, and such as network parameter, device parameter configure, while have device coding Identification function, can the different equipment of the automatic distinguishing equipment that ensures only to set needs be configured.Same control and in this way, It can easily realize that WiFi turns the control and communication of other internal-external equipment such as the communication of serial ports, GPIO controls.The method pole The big pattern for facilitating WiFi equipment and WiFi standard agreements must being used to communicate, greatly simplifies, at the same be also A kind of revolutionary method in WiFi technology.

Claims (1)

1. a kind of Wifi non-networked control and the method set, it is characterised in that this method includes controlled end flow and control terminal stream Journey;
Described controlled end flow is specifically:
Step 1. controlled end first determines the need for entering slave mode, it is determined that into enter after slave mode state parameter just Beginningization;
Step 2. judges whether to receive valid data in setting time, if never received, switches currently Channel;
Efficient message in the valid data that step 3. judgement receives, if without effective information, monitor the aerial number of crawl According to;
Step 4. preserves to valid data;
Step 5. determines whether data frame period is overtime, if not timed out then monitoring captures air-data;If it has timed out, Then return to step 2;
Wherein:
Address information in wireless packet header:Address first character section is 239 to fix, address second and third, four bytes be respectively to walk Rapid mark, frame number, transmission data;
Length information in wireless packet header:Coding information is used as by the difference of 2 frame multicasts or the length information of broadcast address;
Described control terminal flow is specifically:
The generation of step 6. control terminal needs the information sent;
Step 7. initializes UDP network connections;
Step 8. information sends broadcast query;
Step 9. confirms whether controlled end is online, if controlled end is online, goes to step 14;If controlled end is not online, Perform step 11;
Step 11. sends udp broadcast and multicast packet in setting time T1;
Step 12. judges whether the packet of transmission is complete, if imperfect, return to step 11;
Step 13. determines whether to exceed timing T3;If being not above timing T3, gone in stand-by period T2 Step 8;If it exceeds timing T3, then go to step 15;
Step 14. sends and receives corresponding information;
Step 15. terminates controlled end flow;
The transmission agreement of packet described in step 11 is containing synchronous head, data length, command word, details, check information;
When without condition code wireless setting, control terminal is by wireless Name Length, wireless cipher length, wireless title, wireless cipher Information be included in details in, be sent to controlled end, controlled end is parsed configuration work according to information;
When there is condition code wireless setting, control terminal is by wireless Name Length, wireless cipher length, wireless title, wireless cipher And feature code length, the information of condition code are included in details, controlled end is sent to, controlled end is parsed according to information and school Whether consistent with itself condition code is tested, if unanimously completing configuration work, if inconsistent continue to parse.
CN201510323742.2A 2015-06-12 2015-06-12 A kind of Wifi non-networked control and the method set Expired - Fee Related CN105049227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510323742.2A CN105049227B (en) 2015-06-12 2015-06-12 A kind of Wifi non-networked control and the method set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510323742.2A CN105049227B (en) 2015-06-12 2015-06-12 A kind of Wifi non-networked control and the method set

Publications (2)

Publication Number Publication Date
CN105049227A CN105049227A (en) 2015-11-11
CN105049227B true CN105049227B (en) 2018-03-30

Family

ID=54455449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510323742.2A Expired - Fee Related CN105049227B (en) 2015-06-12 2015-06-12 A kind of Wifi non-networked control and the method set

Country Status (1)

Country Link
CN (1) CN105049227B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106338974B (en) * 2016-08-31 2018-11-23 杭州古北电子科技有限公司 A method of so that WiFi module is adapted to plurality of devices communications protocol
CN106789415A (en) * 2016-12-12 2017-05-31 东软集团股份有限公司 The acquisition method of facility information, apparatus and system
CN110213017B (en) * 2019-04-30 2021-11-12 普联技术有限公司 Data transmission method, device and system, storage medium and terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009899A (en) * 2006-01-26 2007-08-01 Ut斯达康通讯有限公司 A monitoring method and device based on the air interface of the wireless communication system
CN101119241A (en) * 2007-08-24 2008-02-06 北京启明星辰信息技术有限公司 Condition detection based protocol abnormity detecting method and system
WO2008103684A2 (en) * 2007-02-19 2008-08-28 Microsoft Corporation Self-configuring wireless network location system
EP2145495B1 (en) * 2007-04-30 2012-05-16 InterDigital Technology Corporation A HOME (e)NODE-B WITH NEW FUNCTIONALITY
CN103763757A (en) * 2014-01-23 2014-04-30 上海汉枫电子科技有限公司 Method for rapid networking based on internet-of-thing embedded type Wi-Fi module
CN103813350A (en) * 2014-02-14 2014-05-21 复旦大学无锡研究院 Agricultural internet of things cloud communication system performance simulation platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009899A (en) * 2006-01-26 2007-08-01 Ut斯达康通讯有限公司 A monitoring method and device based on the air interface of the wireless communication system
WO2008103684A2 (en) * 2007-02-19 2008-08-28 Microsoft Corporation Self-configuring wireless network location system
EP2145495B1 (en) * 2007-04-30 2012-05-16 InterDigital Technology Corporation A HOME (e)NODE-B WITH NEW FUNCTIONALITY
CN101119241A (en) * 2007-08-24 2008-02-06 北京启明星辰信息技术有限公司 Condition detection based protocol abnormity detecting method and system
CN103763757A (en) * 2014-01-23 2014-04-30 上海汉枫电子科技有限公司 Method for rapid networking based on internet-of-thing embedded type Wi-Fi module
CN103813350A (en) * 2014-02-14 2014-05-21 复旦大学无锡研究院 Agricultural internet of things cloud communication system performance simulation platform

Also Published As

Publication number Publication date
CN105049227A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN104519493B (en) A kind of method of multiple bluetooth equipment networkings
CN103945369B (en) A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment
WO2017120991A1 (en) Method and apparatus for controlling access of household appliance device to network
EP2061285A3 (en) Encoded information reading terminal with wireless path selection capability
CN104780405B (en) A kind of method and combination tv of configuration sharing parameter
CN106028423A (en) Wireless network distribution method applicable to smart furniture device
CN105049227B (en) A kind of Wifi non-networked control and the method set
CN105099844B (en) Media releasing method, media data acquisition methods and media issuing system
EP2107851A3 (en) Establishing radio link control in wireless communication networks
CN104394577B (en) The wireless network access method of wireless routing device and electronic equipment
CN207766561U (en) A kind of system of control terminal and equipment access network
CN106131028B (en) A kind of data transmission method of Free-port communication gateway
CN105407544B (en) Quick networking method based on WiFi module
CN103116969A (en) Novel remote controller of electrical equipment, and remote controller mainframe
CN107071994A (en) Intelligent lamp system and its network-building method
CN108712739A (en) A kind of IOS systems obtain the method and device of Bluetooth address
CN105245695B (en) A kind of method and system improving wechat AirKiss compatibility
CN105141671A (en) Air conditioning unit system and control method of air conditioning unit
CN105704710A (en) Wi-Fi (Wireless Fidelity) parameter configuration method
CN207399521U (en) Bluetooth equipment and bluetooth connection system
CN105656512B (en) Free networking wireless system and its network-building method
CN106330397B (en) method and device for realizing data interaction by ZigBee and Modbus RTU (remote terminal Unit) protocols
CN111884938A (en) Router information acquisition method and device
CN103176467B (en) Intelligent housing system based on 6LoWPAN (IPv6 Low-Power Wireless Personal Area Network) technology and user datagram protocol (UDP) message transceiving method based on 6LoWPAN technology
CN104639530B (en) A kind of nebula network communication protocol, communication means and communication protocol packet

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180330

Termination date: 20190612

CF01 Termination of patent right due to non-payment of annual fee