CN103841658B - Method and device for transmitting information - Google Patents

Method and device for transmitting information Download PDF

Info

Publication number
CN103841658B
CN103841658B CN201410062276.2A CN201410062276A CN103841658B CN 103841658 B CN103841658 B CN 103841658B CN 201410062276 A CN201410062276 A CN 201410062276A CN 103841658 B CN103841658 B CN 103841658B
Authority
CN
China
Prior art keywords
information
wifi
terminal
access point
data
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.)
Active
Application number
CN201410062276.2A
Other languages
Chinese (zh)
Other versions
CN103841658A (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.)
Beijing Nufront Mobile Multimedia Technology Co Ltd
Original Assignee
Beijing Nufront Mobile Multimedia 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 Beijing Nufront Mobile Multimedia Technology Co Ltd filed Critical Beijing Nufront Mobile Multimedia Technology Co Ltd
Priority to CN201410062276.2A priority Critical patent/CN103841658B/en
Publication of CN103841658A publication Critical patent/CN103841658A/en
Application granted granted Critical
Publication of CN103841658B publication Critical patent/CN103841658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and device for transmitting information. A WiFi data message bearing first information is sent to any WiFi network allowed to be connected through a first terminal, and a second terminal binds the MAC address of an access point in the WiFi network connected with the first terminal and receives the WiFi data message carrying the first information. The first terminal has a WiFi function and WiFi network configuration information. The first information is the information expected to be pushed to the second terminal. The second terminal has a WiFi function and does not have WiFi network configuration information. The second terminal is located within the covering range of the WiFi network connected with the first terminal. Therefore, the method for transmitting the information is provided for the second terminal not allowed to be connected with the WiFi network, and particularly when information is not convenient to input into the second terminal, the information needed by the second terminal can be transmitted to the second terminal through the first terminal.

Description

A kind of information transmitting methods and device
Technical field
The present invention relates to wireless LAN communication technical field is and in particular to information transferring method between WiFi equipment, Communication means more particularly, between mobile terminal and WiFi equipment.
Background technology
WiFi equipment networking needs some necessary configuration informations, for example:SSID, key etc..For notebook computer, intelligence The configuration letter of WiFi network for the intelligent terminals such as energy mobile phone, panel computer, can be inputted by friendly man machine interface Breath.With the development of Internet of Things application, increasing electronic equipment selects WiFi as the passage accessing the Internet.For big For part is without the equipment of man machine interface, for example:How audio amplifier, socket, toy, household electrical appliance etc., obtain access WiFi net Configuration parameter necessary to network (ssid, key etc.) is with regard to having become problem.
Prior art mainly allows user using intelligent terminal, it be carried out by the data channel that WiFi equipment itself provides Configuration, these data channel include Ethernet interface, USB interface, NFC interface and built-in AP network interface.
The method that publication No. CN 103428799A is related to is to allow WiFi module set up an AP network first, then allows intelligence This AP network can be connected to by mobile phone, just can carry out the transmission of data afterwards using this network connection.The method major defect As follows:
1st, WiFi module is required must to support to set up the function of AP network
2nd, operating procedure is comparatively laborious, and smart mobile phone needs first to disconnect original network, is then attached to WiFi module and builds Vertical network, also will be coupled to original network after configuration successful.
The method that publication No. CN 103068066A is related to is to realize data transfer using NFC technique, and the shortcoming of the method is NFC technique popularity rate is not high, and improves the cost of WiFi equipment.
The method that publication No. CN 103458399A is related to is to allow WiFi equipment work in listening mode, using data broadcasting Mode transmission information, the shortcoming of the method is as follows:
1st, depend on the listening mode of WiFi equipment, not every WiFi equipment can support this pattern
2nd, WiFi equipment can receive all WiFi datas of cochannel in the listen mode, complicated in network environment In the case of the reliability of information transmission and efficiency can be impacted.
Although 3 make use of aes algorithm that data is encrypted, key can only be provided in pre-share mode, the peace of key Full property cannot be guaranteed.
4th, configuration information can only be transmitted and not possess extensibility.
Content of the invention
In view of this, the invention provides a kind of method and apparatus to the equipment transmission information with WiFi function.For There is a basic understanding to some aspects of the embodiment disclosing, shown below is simple summary.This summarized section is not It is extensive overview, be not the protection domain that will determine key/critical component or describe these embodiments.Its sole purpose It is to assume some concepts with simple form, in this, as the preamble of following detailed description.
In order to solve the above problems, the invention provides a kind of information transmitting methods, including:
The first information is encapsulated as WiFi data message by first terminal;
Described first terminal sends the described WiFi data report carrying the first information to any WiFi network allowing to connect Literary composition;
Second terminal binds the access point in the WiFi network that described first terminal is connected to;
Described second terminal receives from the access point of described binding and carries the WiFi data message of the first information and process;
Wherein, described first terminal has WiFi function, and has WiFi network configuration information;The described first information is the phase Hope the information pushing to second terminal;Described second terminal has WiFi function, and does not have WiFi network configuration information;Described Second terminal is located within the coverage of WiFi network that described first terminal connects.
In order to solve the above problems, present invention also offers a kind of information transfer device, it is used for realizing above- mentioned information transmission Method, including:
Package module, for being encapsulated as WiFi data message by the first information;
Sending module, is connected with described package module, for sending described carrying to any WiFi network allowing connection The WiFi data message of the first information;
Binding module, for binding the access point in the WiFi network that first terminal is connected to;
Receiving processing module, is connected with described binding module, carries the first letter for receiving from the access point of described binding The WiFi data message of breath is simultaneously processed;
Network connection management module, is connected with described sending module, described receiving processing module, has WiFi function, and There is WiFi network configuration information;
Wherein, the described first information is the information expecting to push to second terminal;Described second terminal has WiFi function, And there is no WiFi network configuration information;The WiFi network that described second terminal is connected positioned at described network connection management module Coverage within.
A kind of method and apparatus to the equipment transmission information with WiFi function that the present invention provides, has excellent as follows Point:
1st, it is independent of the configuration attribute of the connected WiFi network of intelligent terminal, there is good compatibility;
2nd, easy and simple to handle it is not necessary to intelligent terminal is repeated suspension, networking operation;
3rd, the WiFi equipment not needing failed cluster supports listening mode, does not have excessive hardware to the WiFi equipment of failed cluster Require, it is easy to accomplish, possess good portability;
4th, design modulation, coding techniques, the information transmitted is difficult to be stolen;
5th, provide a kind of general data transferring method, the number of random length can be transmitted to the WiFi equipment of failed cluster According to data content is not limited to WiFi configuration information;
6th, can be simultaneously to the WiFi equipment transmission information of one or more failed cluster.
Figure of description
Fig. 1 is a kind of schematic diagram of information transmitting methods provided in an embodiment of the present invention;
Fig. 2 is a kind of embodiment of the present invention method for sending information overview flow chart;
Fig. 3 is the detail flowchart that the embodiment of the present invention is packaged to the first information processing;
Fig. 4 is a kind of embodiment of the present invention message receiving method overview flow chart;
Fig. 5 is the detail flowchart of the access point that the embodiment of the present invention binds in WiFi network;
Fig. 6 is a kind of detail flowchart of message receiving method of the embodiment of the present invention;
Fig. 7 is a kind of embodiment of the present invention information transmitting apparatus block diagram;
Fig. 8 is a kind of embodiment of the present invention information receiver block diagram.
Specific embodiment
The following description and drawings fully illustrate specific embodiments of the present invention, to enable those skilled in the art to Put into practice them.Other embodiments can include structure, logic, electric, process and other change.Embodiment Only represent possible change.Unless explicitly requested, otherwise individually assembly and function are optional, and the order operating is permissible Change.The part of some embodiments and feature can be included in or replace part and the feature of other embodiments.This The scope of bright embodiment includes the gamut of claims, and all obtainable of claims is equal to Thing.Herein, these embodiments of the present invention individually or generally with term " invention " can be represented, this is only For convenience, and if in fact disclosing the invention more than, the scope being not meant to automatically limit this application is to appoint What single invention or inventive concept.
The invention provides a kind of information transmitting methods, a kind of how biography mainly there is provided to the WiFi equipment of failed cluster Pass the solution of information, as shown in figure 1, including step:
Step S101:First terminal sends the described WiFi number carrying the first information to any WiFi network allowing to connect According to message;
Step S102:The MAC Address of the access point in the WiFi network that the described first terminal of second terminal binding connects, connects Receive the WiFi data message carrying the first information.
Wherein, described first terminal has WiFi function, and has WiFi configuration information.Described first terminal has WiFi Configuration information refers to, can input WiFi configuration information by human-computer interaction interface, or storage inside has WiFi configuration information.
Described second terminal is the WiFi equipment of failed cluster.Described second terminal has WiFi function, but does not have WiFi Configuration information.That is, second terminal does not have good human-computer interaction interface it is impossible to input WiFi configuration information, and inside is not deposited Storage WiFi configuration information.Therefore, second terminal cannot access in WiFi network.
Described access point can be that wireless router, AP and any wireless network meeting 802.11 standards access and set Standby.
The described first information is the information expecting to push to second terminal.
For above-mentioned second terminal, it is required that the solution that the present invention provides can transmit it to this Terminal Type well Configuration information.If described first terminal has been coupled to WiFi network, directly utilize the WiFi network of its connection;If Described first terminal without being connected to WiFi network, is then connected to its attachable any WiFi network.Wherein, described Two terminals should be within the coverage of WiFi network that described first terminal is connected.
In one embodiment, can design described first terminal is to have good human-computer interaction interface, is easy to input letter The WiFi terminal equipment of breath.Described second terminal unmanned plane interactive interface, or only simple human-computer interaction interface, are not easy to The WiFi terminal equipment of input information.For example, if described second terminal only has display lamp, simple push button this kind of simply man-machine Interactive interface, will be unable to complete the input of complexity, for example, cannot support capital and small letter input it is impossible to support byte input it is impossible to prop up Hold symbol input etc..The input of so some information will be unable to complete by this simple human-computer interaction interface.And adopt Use such scheme of the present invention, completed to described second terminal using the advantage that described first terminal has good human-computer interaction interface The editing process of required input information, then will be expected to second terminal from described first terminal through the WiFi network that it connects The information pushing, that is, the input information needed for described second terminal send to described second terminal, so that described second eventually End gets required configuration information.
In another embodiment it is also possible to the information Store being edited the expectation completing in advance to second terminal push is to institute State in first terminal.Recall the information that the described expectation being stored in its internal memory pushes to second terminal from first terminal afterwards, The described information expecting to push to second terminal is sent to described second from described first terminal through the WiFi network that it connects Terminal, so that described second terminal gets required configuration information.
The described first information is not limited to WiFi network configuration information, can also be custom parameter information, or application journey Sequence initialization information, or control command etc., or the combination of much information.
On implementing, described first terminal can be intelligent terminal, including computer, smart mobile phone, panel computer Etc. having human-computer interaction interface, and there is the terminal unit of WiFi function.Described second terminal then refers to all and possesses WiFi work( Can but the equipment of inconvenient input information, for example:Audio amplifier, socket, toy, household electrical appliance etc., but it is not limited to this.
The technical solution used in the present invention realizes simplicity, does not rely on joining of the WiFi network that described first terminal is connected Put attribute, there is good compatibility.Described first terminal need not be repeated suspension, networking operation for transmission information.
How information will be sent from the angle explanation first terminal of first terminal to second terminal below, as shown in Fig. 2 being A kind of method for sending information of the present invention, including step:
Step S201:The first information is encapsulated as WiFi data message by first terminal;
Step S202:Described first terminal sends the described carrying first information to any WiFi network allowing to connect WiFi data message.
Wherein, described first terminal has WiFi function, and has WiFi network configuration information.Described second terminal has WiFi function, and there is no WiFi network configuration information.If described first terminal has been coupled to WiFi network, directly utilize The WiFi network of its connection;If described first terminal is without being connected to WiFi network, it is connected to its attachable Meaning WiFi network.Described first terminal utilizes the WiFi network that it connects, and the first information is sent to described first terminal Access point in the WiFi network connecting.Set up with described access point by described second terminal afterwards and be connected, receive described first Information.
The described first information is not limited to WiFi network configuration information, can also be custom parameter information, or application journey Sequence initialization information, or control command etc., or the combination of much information.
It is preferred that in one embodiment, design procedure S201, will be packaged process step such as Fig. 3 institute by the first information Show, further include:
Step S301:The first information is organized, encoded and is filled, generated data block to be sent;
Step S302:Data block to be sent is split according to minimum transmitting element, is generated transmitting element sequence;
Step S303:Transmitting element sequence is modulated into data message sequence according to predetermined algorithm.
The present invention devises a kind of general information transmitting methods, data to be sent is split as minimum transmitting element and enters Row sends, thus can transmit the data of random length to the WiFi terminal of failed cluster.And, data content is not limited to WiFi and joins Confidence ceases, and can also be custom parameter information, or application initialization information, or control command etc., or many The combination of the information of kind.And, the present invention self-defining information transmission algorithm also makes transmitted information be difficult to be stolen, confidentiality Preferably.And, it is possible to achieve simultaneously to the WiFi equipment transmission information of one or more failed cluster.
When the first information being organized in execution step S301, information content method for organizing can be according to practical application Needs be defined.It is preferred that labelling, the form pair of length value preset (TLV, tag, length and value) can be adopted Different information is organized.So that the content of information is not subject to the constraint of pass order it is allowed to the out of order reception of recipient.
It is preferred that when the first information being encoded in execution step S301, having added again using after encrypting to information The mode of whole property check code.Thus improving the transmission security of information to be sent further.When information is encrypted, can adopt Base64, des, 3des, aes scheduling algorithm.Crc can be adopted, hmac-md5, hmac-sha etc. calculate when adding completeness check code Method completes.
In execution step S301 when being filled with to the first information, data filling mode can be according to practical application Needs are defined.It is for instance possible to use the mode of interpolation data head characteristic data tail characteristic.
In execution step S302, described minimum transmitting element can be the data block of any byte length, its length Select to depend on the selection of modulation algorithm in step S303, specifically should determine as needed.For example, when the number selecting 256 systems During word amplitude-modulating modulation, correspondingly, it is 1 byte that minimum transmitting element may be selected.
It is preferred that in execution step S303, when being modulated to transmitting element sequence, it is possible to use digital am, Frequency-shift keying, or digital phase moudlation algorithm.
It is preferred that the embodiment of the present invention is when carrying out digital am to transmitting element sequence, with the length of sequence of message and/ Or the content to carry transmitting element sequence for the frequency of sequence of message transmission, that is,:
Mode one:The content of transmitting element sequence is modulated to carry with the length of WiFi data sequence of message, i.e. with Sequence of message length is indicating different information.This mode is realized being easier to, but channel circumstance is required more, in complicated letter The poor problem of anti-interference is there may be in road.
Mode two:The content of transmitting element sequence is modulated to carry with the transmission frequency of WiFi data sequence of message, That is, different information are indicated with the frequency sending sequence of message each second.The difficulty that this mode is realized is more than mode one, right Hardware requirement is higher.
Mode three:The interference considering channel and the degree that is difficult to realized, the embodiment of the present invention proposes to send list The content of metasequence is modulated to carry out sharing lood with the length of WiFi data sequence of message and the transmission frequency, i.e. with sequence of message Length and the frequency indicating collectively different information, thus on the basis of being easily achieved, effectively improve signal to noise ratio it is ensured that data Correct transmission.
It is preferred that the digital am scheme providing for aforesaid way three, the embodiment of the present invention is further using bipolarity Non-return-to-zero coding mode is modulated.That is, successively positive and negative alternate coded is carried out to transmitting element sequence:When being encoded using positive polarity When, coding result adds the value of transmitting element for carrier wave message length, and when being encoded using negative polarity, coding result is carrier wave report Civilian length deducts the value of transmitting element;When value=0 of transmitting element, first it is replaced with preset value (for example a, maximum + 1) do positive and negative alternate coded after again.0 value message can effectively be detected using this kind of mode, and be easy to the inspection of duplicate message Survey.
In execution step S202, described first terminal sends the described carrying first information to the WiFi network that it connects During WiFi data message, application data message can be sent Lai real to access point by the application software on described first terminal Existing.Application data can be the unicast or broadcast data of udp protocol.
To be how to receive the described first information from the angle explanation second terminal of second terminal below, as shown in figure 4, For a kind of message receiving method of the present invention, including step:
Step S401:Described second terminal binds the access point in the WiFi network that described first terminal is connected to;
Step S402:Described second terminal receives, from the access point of described binding, the WiFi data message carrying the first information And process.
The message receiving method of embodiment of the present invention design is corresponding with above- mentioned information sending method, by the second of failed cluster Terminal is by binding the access point in the WiFi network that is connected to of described first terminal, thus receiving described the from described access point One terminal sends the first information to WiFi network.There is no the requirement on excessive hardware to second terminal, need not support to monitor Pattern, it is easy to accomplish, low cost, portable good.
It is preferred that in one embodiment, design procedure S401, that is, bind in the WiFi network that described first terminal is connected to Access point as shown in figure 5, include step:
Step S501:Do scan channel, obtain WiFi access-in point information list;
Step S502:Bind the MAC Address of WiFi access point according to signal intensity order from high to low one by one;
Step S503:It is switched to the WiFi access point place channel of bound address.
Wherein, the scan channel action of step S501, can be in second terminal electricity after acquiescence start execute;Can also Design touch switch in second terminal, by described on-off control scan channel action executing.
Wherein, step S501, when described second terminal does scan channel, supports active scan mode and drive sweep side Formula:
Active scan mode:When to channel active scan, described second terminal sends under each channel being scanned Probe requests thereby (Probe Request) frame, receive WiFi access point transmission probe response (Probe Response) frame or After person's beacon (Beacon) frame, therefrom obtain the information of WiFi access point.Beacon frame is periodically sent by WiFi access point, its The frequency is relatively low, if waiting Beacon frame, the duration needing is longer.Probe Request and Probe Response answer speed Comparatively fast, but because the reasons such as channel disturbance there may be the problem of packet loss.Using active scan state, no matter receive Probe Response still receives Beacon, all can therefrom obtain the information of WiFi access point.Scanning speed faster, and It can effectively prevent from missing access point, and scanning result is more accurate.
Drive sweep mode:When to channel drive sweep, described second terminal waits under each channel being scanned Receive the beacon frame that WiFi access point sends, after receiving beacon frame, therefrom obtain the information of WiFi access point.
Wherein, step S502, signal intensity can be examined when receiving scanning response data with the hardware of second terminal Survey and data is provided.
Wherein, step S502, described second terminal utilizes the mac address filter function that its device hardware provides, or logical Cross software execution mac address filter function, to bind the MAC Address of WiFi access point.
Wherein, after step S503, also include step S504 (not shown):Described second terminal is switched to described Channel on receive WiFi data message, demodulate the effective information that it carries, determine whether characteristic, if it is, right Described characteristic is decoded and parses, to obtain the initial data of the first information;If do not demodulated in a Preset Time Go out characteristic, it tries next WiFi access point.
In concrete execution step S504, described second terminal can be designed the WiFi data message receiving is being carried out During demodulation, if receiving the characteristic of data head in the first duration, and receive the spy of data tail in the second duration Levy data, then what judgement received is the first information, it is decoded and parses;Otherwise, it tries next WiFi access point; The described very first time is less than described second time.
Wherein, the demodulating process in step S504 is the inverse process of step S303 in method for sending information.In step S504 Decoding and parsing be then step S301 and S302 in method for sending information inverse process.
In order to more intuitively illustrate second terminal is how to receive first terminal to send the first information to WiFi network , flow process shown in Figure 6, including step:
Step S601:Scan all channels, obtain access-in point information, enter step S602;
Step S602:Arrange access-in point information from high to low according to signal intensity, enter step S603;
Step S603:Choose first access-in point information, enter step S604;
Step S604:Binding accesses dot address, is switched to access point place channel, enters step S605;
Step S605:Receive WiFi data sequence of message, enter step S606;
Step S606:Data demodulates, and enters step S607;
Step S607:Judge whether to find data head, if it is not, then entering step S608;If it is, entrance step S610;
Step S608:Judge whether receiving data head is overtime, if it is not, then entering step S605;If it is, entering step Rapid S609;
Step S609:Choose next access-in point information, subsequently into step S604;
Step S610:Preserve data content, subsequently into step S611;
Step S611:Judge whether to find data tail, if it is not, then entering step S612;If it is, entrance step S614;
Step S612:Judge whether receiving data tail is overtime, if it is not, then entering step S605;If it is, entering step Rapid S613;
Step S613:Choose next access-in point information, subsequently into step S604;
Step S614:To the decoding data preserving and parsing, obtain the initial data of the first information.
It is preferred that the time-out of design data head judges that duration is less than the overtime of data tail and judges duration.
In order to realize above- mentioned information sending method, the embodiment of the present invention additionally provides a kind of information transmitting apparatus, as Fig. 7 institute Show, including:
Package module 71, for being encapsulated as WiFi data message by the first information;
Sending module 72, is connected with described package module, for holding described in any WiFi network transmission to permission connection Carry the WiFi data message of the first information;
Network connection management module 73, is connected with described sending module 72, has WiFi function, and have WiFi network and join Confidence ceases;
Wherein, the described first information is the information expecting to push to second terminal;Described second terminal has WiFi function, And there is no WiFi network configuration information;The WiFi net that described second terminal is connected positioned at described network connection management module 73 Within the coverage of network.
In one embodiment, described sending module 72, looks into before the WiFi data message sending the described carrying first information Ask described network connection management module 73, if currently having been coupled to WiFi network, to the described WiFi network being connected to Send the described WiFi data message carrying the first information;If being not currently connected to WiFi network, connecting and permitting to any one The WiFi network permitted, sends the described WiFi data message carrying the first information to the described WiFi network being connected to.
In one embodiment, described package module 71 further includes:
First processing units 711, for being organized to the first information, being encoded and filled, generate data block to be sent;
Second processing unit 712, is connected with described first processing units 711, for by data block to be sent according to Little transmitting element is split, and generates transmitting element sequence;
3rd processing unit 713, is connected with described second processing unit 712, for by transmitting element sequence according to predetermined Algorithm be modulated into WiFi data sequence of message.
In one embodiment, described first processing units 711, when organizing to the first information, using labelling, length The form of value preset is organized to different information.
In one embodiment, described first processing units 711, when encoding to the first information, using to information plus Add the mode of completeness check code again after close.
In one embodiment, described first processing units 711, when being filled with to the first information, using interpolation data The mode of head characteristic data tail characteristic.
In one embodiment, described 3rd processing unit 713, when being modulated to transmitting element sequence, using numeral Amplitude modulation, frequency-shift keying, or digital phase moudlation algorithm.
In one embodiment, described 3rd processing unit 713, when carrying out digital am to transmitting element sequence, to report The content to carry transmitting element sequence for the frequency of the length of civilian sequence and/or sequence of message transmission, that is,:
Mode one:The content of transmitting element sequence is modulated to carry with the length of WiFi data sequence of message, i.e. with Sequence of message length is indicating different information.This mode is realized being easier to, but channel circumstance is required more, in complicated letter The poor problem of anti-interference is there may be in road.
Mode two:The content of transmitting element sequence is modulated to carry with the transmission frequency of WiFi data sequence of message, That is, different information are indicated with the frequency sending sequence of message each second.The difficulty that this mode is realized is more than mode one, right Hardware requirement is higher.
Mode three:The interference considering channel and the degree that is difficult to realized, the embodiment of the present invention proposes to send list The content of metasequence is modulated to carry out sharing lood with the length of WiFi data sequence of message and the transmission frequency, i.e. with sequence of message Length and the frequency indicating collectively different information, thus on the basis of being easily achieved, effectively improve signal to noise ratio it is ensured that data Correct transmission.
It is preferred that the digital am scheme providing for aforesaid way three, the embodiment of the present invention is further using bipolarity Non-return-to-zero coding mode is modulated.That is, successively positive and negative alternate coded is carried out to transmitting element sequence:When being encoded using positive polarity When, coding result adds the value of transmitting element for carrier wave message length, and when being encoded using negative polarity, coding result is carrier wave report Civilian length deducts the value of transmitting element;When value=0 of transmitting element, first it is replaced with preset value (for example a, maximum + 1) do positive and negative alternate coded after again.0 value message can effectively be detected using this kind of mode, and be easy to the inspection of duplicate message Survey.
Described sending module 72, sends the described WiFi data message carrying the first information to the WiFi network that it connects When, application data message can be sent to access point by the application software on described first terminal and realize.Application data can To be the unicast or broadcast data of udp protocol.
In order to realize above- mentioned information method of reseptance, the embodiment of the present invention additionally provides a kind of information receiver, and above-mentioned Information transmitting apparatus use cooperatively, thus reaching the purpose of the WiFi transmission information to failed cluster, as shown in figure 8, including:
Binding module 81, for binding the access point in the WiFi network that first terminal is connected to;
Receiving processing module 82, is connected with described binding module 81, for receiving carrying the from the access point of described binding The WiFi data message of one information is simultaneously processed;
Network connection management module 83, is connected with described receiving processing module 82, has WiFi function, and do not have WiFi Network configuration information.
Wherein, described first terminal has WiFi function, and has WiFi network configuration information;The described first information is the phase Hope the information pushing to described information reception device, sent to WiFi network by described first terminal;Described information receives dress Within the coverage of the WiFi network connecting setting in described first terminal.
In one embodiment, described binding module 81 includes:
Scan channel unit 811, is used for doing scan channel, obtains WiFi access-in point information list;
Sequencing unit 812, is connected with described scan channel unit 811, for the order from high to low according to signal intensity Bind the MAC Address of WiFi access point one by one;
Switch unit 813, is connected with described sequencing unit 812, for being switched to the WiFi access point institute of bound address In channel.
In one embodiment, described receiving processing module 82, receives WiFi data message on the described channel being switched to, Demodulate the effective information that it carries, determine whether characteristic, if it is, being decoded to described characteristic conciliating Analysis, to obtain the initial data of the first information;If not demodulating characteristic in a Preset Time, it tries next WiFi Access point.
In one embodiment, described receiving processing module 82, when being demodulated to the WiFi data message receiving, such as Fruit receives the characteristic of data head in the first duration, and receives the characteristic of data tail in the second duration, then What judgement received is the first information, it is decoded and parses;Otherwise, it tries next WiFi access point;
The described very first time is less than described second time.
In one embodiment, described scan channel unit 811 supports active scan mode and/or drive sweep mode, its In:
When to channel active scan, described second terminal sends probe requests thereby (Probe under each channel being scanned Request) frame, receives probe response (Probe Response) frame or beacon (Beacon) frame of the transmission of WiFi access point Afterwards, therefrom obtain the information of WiFi access point;
When to channel drive sweep, described second terminal is in the inferior WiFi access point to be received of each channel being scanned The beacon frame sending, after receiving beacon frame, therefrom obtains the information of WiFi access point.
Embodiments described above is only a part of embodiment of the present invention, rather than whole embodiments.Any it is based on The method and steps that the present invention provides or the embodiment of slightly modification broadly fall into the scope of protection of the invention.
Unless otherwise specific statement, term such as process, calculate, computing, determination, display etc. can refer to one or more The action of individual process or computing system or similar devices and/or process, described action and/or process will be indicated as processing system The data manipulation measured of physics (as electronics) in the depositor of system or memorizer and be converted into and be similarly represented as processing system Memorizer, depositor or other this type of informations storage, transmitting or display device in physical quantity other data.Information Can be represented using any one of multiple different technology and method with signal.For example, in running through above description Data, instruction, order, information, signal, bit, symbol and the chip referring to can be with voltage, electric current, electromagnetic wave, magnetic field or grain Son, light field or particle or its combination in any are representing.
It should be understood that the particular order of step during disclosed or level are the examples of illustrative methods.It is based on and set Meter preference it should be appreciated that during the particular order of step or level can be in the feelings of the protection domain without departing from the disclosure Rearranged under condition.Appended claim to a method gives the key element of various steps with exemplary order, and not It is intended to be limited to described particular order or level.
In above-mentioned detailed description, group is combined in single embodiment, to simplify the disclosure various features together.No This open method should be construed to reflect such intention, i.e. the embodiment of theme required for protection needs clear The more feature of feature stated in each claim to Chu.On the contrary, reflected as appending claims that Sample, the present invention is in the state fewer than whole features of disclosed single embodiment.Therefore, appending claims is special This is expressly incorporated in detailed description, and wherein each claim is alone as the single preferred embodiment of the present invention.
It should also be appreciated by one skilled in the art that combining the various illustrative box of the embodiments herein description, mould Block, circuit and algorithm steps all can be implemented as electronic hardware, computer software or a combination thereof.In order to clearly demonstrate hardware and Interchangeability between software, is all carried out around its function to various illustrative parts, frame, module, circuit and step above It is generally described.It is implemented as hardware as this function and is also implemented as software, depending on specific application with to whole The design constraint that system is applied.Those skilled in the art can be directed to each application-specific, is realized in the way of flexible Described function, but, this realize decision-making and should not be construed as the protection domain deviating from the disclosure.
Step in conjunction with the method described by the embodiments herein or algorithm can be embodied directly in hardware, be held by processor The software module of row or a combination thereof.Software module may be located at RAM memory, flash memory, ROM memory, eprom memory, Eeprom memory, depositor, hard disk, the storage of mobile disk, CD-ROM or any other form well known in the art are situated between In matter.A kind of exemplary storage medium connects to processor, thus enabling a processor to from this read information, and Information can be write to this storage medium.Certainly, storage medium can also be the ingredient of processor.Processor and storage medium May be located in ASIC.This ASIC may be located in user terminal.Certainly, processor and storage medium can also be used as discrete sets Part is present in user terminal.
Software is realized, technology described in this application can use module (for example, the mistake executing herein described function Journey, function etc.) realizing.These software codes can be stored in memory cell and by computing device.Memory cell can To realize in processor it is also possible to realize outside processor, in the case of the latter, it is via various means by correspondence It is coupled to processor, these are all well known in the art.
Described above includes the citing of one or more embodiments.Certainly, in order to above-described embodiment is described and description portion The all possible combination of part or method is impossible, but it will be appreciated by one of ordinary skill in the art that each enforcement Example can do further combinations and permutations.Therefore, embodiment described herein is intended to fall into appended claims Protection domain in all such changes, modifications and variations.Additionally, with regard to term used in description or claims "comprising", this word cover mode similar to term " inclusion ", solved as link word in the claims just as " inclusion, " As releasing.Additionally, being intended to represent " non-exclusionism using any one the term "or" in the description of claims Or ".

Claims (24)

1. a kind of information transmitting methods are it is characterised in that include:
The first information is encapsulated as WiFi data message by first terminal;
Described first terminal sends the described WiFi data message carrying the first information to any WiFi network allowing to connect;
Second terminal binds the access point in the WiFi network that described first terminal is connected to;
Described second terminal receives from the access point of described binding and carries the WiFi data message of the first information and process;
Wherein, described first terminal has WiFi function, and has WiFi network configuration information;The described first information be expect to The information that second terminal pushes;Described second terminal has WiFi function, and does not have WiFi network configuration information;Described second Terminal is located within the coverage of WiFi network that described first terminal connects.
2. the method for claim 1 it is characterised in that:
If described first terminal currently has been coupled to WiFi network, hold to described in the transmission of the described WiFi network being connected to Carry the WiFi data message of the first information;If being not currently connected to WiFi network, connect to the WiFi net of any one permission Network, sends the described WiFi data message carrying the first information to the described WiFi network being connected to.
3. the method for claim 1 it is characterised in that:
The described first information includes WiFi network configuration information, custom parameter information, and application initialization information, control Order one of or multiple.
4. the method for claim 1 is it is characterised in that described be encapsulated as WiFi data message by the first information and include:
The first information is organized, encoded and is filled, generated data block to be sent;
Data block to be sent is split according to minimum transmitting element, is generated transmitting element sequence;
Transmitting element sequence is modulated into WiFi data sequence of message according to predetermined algorithm.
5. method as claimed in claim 4 it is characterised in that:
When organizing to the first information, in the form of labelling, length value preset, different information is organized;And/or
When encoding to the first information, by the way of adding completeness check code again after information is encrypted;And/or
When being filled with to the first information, by the way of interpolation data head characteristic data tail characteristic.
6. method as claimed in claim 4 it is characterised in that:
When being modulated to transmitting element sequence, using digital am, frequency-shift keying, or digital phase moudlation algorithm.
7. method as claimed in claim 6 it is characterised in that:
When digital am is carried out to transmitting element sequence, come with the frequency that the length of sequence of message and/or sequence of message send Carry the content of transmitting element sequence.
8. method as claimed in claim 7 it is characterised in that:
When the frequency being modulated to send with the length of sequence of message and sequence of message to carry the content of transmitting element sequence, adopt Successively transmitting element sequence is modulated with bipolarity non-return-to-zero coding mode.
9. the method for claim 1 is it is characterised in that described second terminal binds what described first terminal was connected to Access point in WiFi network includes:
Do scan channel, obtain WiFi access-in point information list;
Bind the MAC Address of WiFi access point according to signal intensity order from high to low one by one;
It is switched to the WiFi access point place channel of bound address.
10. method as claimed in claim 9 it is characterised in that:
Described second terminal receives WiFi data message on the described channel being switched to, and demodulates the effective information that it carries, sentences Break and whether be characterized data, if it is, being decoded to described characteristic and parsing, to obtain the original number of the first information According to;If not demodulating characteristic in a Preset Time, it tries next WiFi access point.
11. methods as claimed in claim 10 it is characterised in that:
Described second terminal is when being demodulated to the WiFi data message receiving, if receiving data in the first duration The characteristic of head, and receive the characteristic of data tail in the second duration, then what judgement received is the first information, right It is decoded and parses;Otherwise, it tries next WiFi access point;
The described very first time is less than described second time.
12. methods as claimed in claim 9 are it is characterised in that when described second terminal does scan channel, support active scan Mode and/or drive sweep mode, wherein:
When to channel active scan, described second terminal sends probe requests thereby (Probe under each channel being scanned Request) frame, receives probe response (Probe Response) frame or beacon (Beacon) frame of the transmission of WiFi access point Afterwards, therefrom obtain the information of WiFi access point;
When to channel drive sweep, described second terminal sends in the inferior WiFi access point to be received of each channel being scanned Beacon frame, after receiving beacon frame, therefrom obtain WiFi access point information.
13. the method for claim 1 it is characterised in that:
Described second terminal utilizes the mac address filter function that its device hardware provides, or executes MAC Address mistake by software Filter function, to bind the MAC Address of WiFi access point.
A kind of 14. information transfer devices are it is characterised in that include:
Package module, for being encapsulated as WiFi data message by the first information;
Sending module, is connected with described package module, for sending described carrying first to any WiFi network allowing to connect The WiFi data message of information;
Binding module, for binding the access point in the WiFi network that first terminal is connected to;
Receiving processing module, is connected with described binding module, carries the first information for receiving from the access point of described binding WiFi data message is simultaneously processed;
Network connection management module, is connected with described sending module, described receiving processing module, has WiFi function, and have WiFi network configuration information;
Wherein, the described first information is the information expecting to push to second terminal;Described second terminal has WiFi function, and not There is WiFi network configuration information;The covering of the WiFi network that described second terminal is connected positioned at described network connection management module Within the scope of lid.
15. devices as claimed in claim 14 it is characterised in that:
Described sending module, inquires about described network connection management mould before the WiFi data message sending the described carrying first information Block, if currently having been coupled to WiFi network, sends the described carrying first information to the described WiFi network being connected to WiFi data message;If being not currently connected to WiFi network, connect to the WiFi network of any one permission, to described connection The WiFi network arriving sends the described WiFi data message carrying the first information.
16. devices as claimed in claim 14 are it is characterised in that described package module further includes:
First processing units, for being organized to the first information, being encoded and filled, generate data block to be sent;
Second processing unit, is connected with described first processing units, for by data block to be sent according to minimum transmitting element Split, generated transmitting element sequence;
3rd processing unit, is connected with described second processing unit, for modulating transmitting element sequence according to predetermined algorithm Become WiFi data sequence of message.
17. devices as claimed in claim 16 it is characterised in that:
Described first processing units, when organizing to the first information, to different letters in the form of labelling, length value preset Breath is organized;And/or
Described first processing units, when encoding to the first information, using adding completeness check again after information is encrypted The mode of code;And/or
Described first processing units, when being filled with to the first information, special using interpolation data head characteristic data tail Levy the mode of data.
18. devices as claimed in claim 16 it is characterised in that:
Described 3rd processing unit, when being modulated to transmitting element sequence, using digital am, frequency-shift keying, or number Word phase modulation algorithm.
19. devices as claimed in claim 18 it is characterised in that:
Described 3rd processing unit, when carrying out digital am to transmitting element sequence, with the length of sequence of message and/or message The content to carry transmitting element sequence for the frequency that sequence sends.
20. devices as claimed in claim 19 it is characterised in that:
Described 3rd processing unit, when the frequency being modulated to send with the length of sequence of message and sequence of message to carry transmission list During the content of metasequence, successively transmitting element sequence is modulated using bipolarity non-return-to-zero coding mode.
21. devices as claimed in claim 20 are it is characterised in that described binding module includes:
Scan channel unit, is used for doing scan channel, obtains WiFi access-in point information list;
Sequencing unit, is connected with described scan channel unit, binds one by one for the order from high to low according to signal intensity The MAC Address of WiFi access point;
Switch unit, is connected with described sequencing unit, for being switched to the WiFi access point place channel of bound address.
22. devices as claimed in claim 21 it is characterised in that:
Described receiving processing module, receives WiFi data message on the described channel being switched to, demodulates effective letter that it carries Breath, determines whether characteristic, if it is, being decoded to described characteristic and parse, obtaining the first information Initial data;If not demodulating characteristic in a Preset Time, it tries next WiFi access point.
23. devices as claimed in claim 22 it is characterised in that:
Described receiving processing module, when being demodulated to the WiFi data message receiving, if received in the first duration To the characteristic of data head, and receive the characteristic of data tail in the second duration, then judge to receive is first Information, is decoded to it and parses;Otherwise, it tries next WiFi access point;
The described very first time is less than described second time.
24. devices as claimed in claim 21 it is characterised in that described scan channel unit support active scan mode and/ Or drive sweep mode, wherein:
When to channel active scan, described second terminal sends probe requests thereby (Probe under each channel being scanned Request) frame, receives probe response (Probe Response) frame or beacon (Beacon) frame of the transmission of WiFi access point Afterwards, therefrom obtain the information of WiFi access point;
When to channel drive sweep, described second terminal sends in the inferior WiFi access point to be received of each channel being scanned Beacon frame, after receiving beacon frame, therefrom obtain WiFi access point information.
CN201410062276.2A 2014-02-24 2014-02-24 Method and device for transmitting information Active CN103841658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410062276.2A CN103841658B (en) 2014-02-24 2014-02-24 Method and device for transmitting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410062276.2A CN103841658B (en) 2014-02-24 2014-02-24 Method and device for transmitting information

Publications (2)

Publication Number Publication Date
CN103841658A CN103841658A (en) 2014-06-04
CN103841658B true CN103841658B (en) 2017-02-22

Family

ID=50804671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410062276.2A Active CN103841658B (en) 2014-02-24 2014-02-24 Method and device for transmitting information

Country Status (1)

Country Link
CN (1) CN103841658B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967994B (en) * 2014-10-31 2019-04-12 腾讯科技(上海)有限公司 By the method and apparatus of equipment access to LAN
CN105700905B (en) * 2014-11-28 2019-03-01 奇点新源国际技术开发(北京)有限公司 The WIFI upgrade method and device of car-mounted terminal operating system
CN104581713A (en) * 2015-01-15 2015-04-29 福建天晴数码有限公司 Intelligent equipment networking method, device, equipment and system
US10756964B2 (en) 2015-05-29 2020-08-25 Espressif Systems (Shanghai) Co., Ltd. Internet of things configuration method and system for secure low-power-consumption proxy device
US10693714B2 (en) 2015-05-29 2020-06-23 Espressif Systems (Shanghai) Pte Ltd Communication method for Wi-Fi internet of things equipment and Wi-Fi internet of things system
CN105208528B (en) * 2015-09-24 2018-05-22 山东合天智汇信息技术有限公司 A kind of system and method for identifying with administrative staff
CN105407484B (en) * 2015-10-20 2018-11-16 广东欧珀移动通信有限公司 Broadcast message processing method based on intelligent terminal system, apparatus and system
CN105430761B (en) * 2015-10-30 2018-12-11 小米科技有限责任公司 Establish the method, apparatus and system of wireless network connection
CN105701212B (en) * 2016-01-13 2019-02-05 阿里巴巴集团控股有限公司 Information-pushing method and device
CN105848145A (en) * 2016-05-16 2016-08-10 福州瑞芯微电子股份有限公司 WIFI intelligent configuration method and device
CN106211279B (en) * 2016-07-12 2019-10-18 美的智慧家居科技有限公司 Wireless network method of network entry and wireless device
US11122410B2 (en) * 2016-11-25 2021-09-14 Sony Corporation Information processing apparatus, information processing method, and information processing system
CN108399726A (en) * 2018-03-19 2018-08-14 珠海格力电器股份有限公司 Control method for remote controller, device, remote controler and computer readable storage medium
CN109787843B (en) * 2019-03-14 2023-04-21 杭州涂鸦信息技术有限公司 Network distribution method, device and equipment of intelligent equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103068066A (en) * 2012-12-24 2013-04-24 广东欧珀移动通信有限公司 Intelligent mobile communication terminal and wireless network access method and system thereof
CN103458399A (en) * 2013-07-12 2013-12-18 北京睿通慧联科技有限公司 Intelligent WIFI module and method for configuring device supporting WIFI connection into WIFI network
CN104754565A (en) * 2013-12-27 2015-07-01 中兴通讯股份有限公司 Wireless parameter sending and receiving method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763025B2 (en) * 2001-03-12 2004-07-13 Advent Networks, Inc. Time division multiplexing over broadband modulation method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103068066A (en) * 2012-12-24 2013-04-24 广东欧珀移动通信有限公司 Intelligent mobile communication terminal and wireless network access method and system thereof
CN103458399A (en) * 2013-07-12 2013-12-18 北京睿通慧联科技有限公司 Intelligent WIFI module and method for configuring device supporting WIFI connection into WIFI network
CN104754565A (en) * 2013-12-27 2015-07-01 中兴通讯股份有限公司 Wireless parameter sending and receiving method and device

Also Published As

Publication number Publication date
CN103841658A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN103841658B (en) Method and device for transmitting information
CN104618988B (en) Smart machine method for network access and device
CN106254147B (en) It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal
CN108391238A (en) Wireless MESH network matches network method
CN103124267B (en) The method, system and the cloud server that log in/register is carried out by mobile terminal
CN105099612B (en) A kind of method and apparatus transmitted using unlicensed spectrum
CN106921963A (en) A kind of smart machine accesses the method and device of WLAN
CN106358147A (en) Method and system for connecting wireless network, household electric appliance and user terminal
CN109937560A (en) UL waveform during RACH regulation and autonomous UL are transmitted
CN108632814A (en) A kind of terminal device network collocating method and system
CN106535288A (en) Method for sending and obtaining wifi networking information and corresponding apparatus
CN102821447B (en) Terminal and data communications method
CN104581647A (en) Network access method and device of intelligent equipment
CN107438971A (en) Initialized suitable for the PDCCH of MTC device
CN102891890A (en) Interaction method and related equipment and system among terminals
CN105228264A (en) A kind of quick WI-FI network matching method being applicable to Internet of Things
CN103987038A (en) Radio communication method and system
CN109451042A (en) For matching network method without screen smart machine
CN108040355A (en) Method for network access and system
CN107846707A (en) A kind of method and apparatus in the UE for exempting to authorize, base station
CN104065452A (en) Wireless communication method, related equipment and system
CN107645496A (en) A kind of distribution method and system of intelligent electronic device
CN104270720A (en) Method and device for accessing wireless local area network, and mobile terminal
CN107438247A (en) Wireless relay implementation method and device
CN105120454B (en) Information transferring method, networking cut-in method and corresponding terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant