The content of the invention
The purpose of the embodiment of the present invention is the method, apparatus and system for providing a kind of accessing terminal to network, existing to solveThere is the problem of terminal access wireless network speed is slow in technology.Concrete technical scheme is as follows:
In a first aspect, the embodiments of the invention provide a kind of method of accessing terminal to network, it is described suitable for first terminalFirst terminal is provided with input unit, and the first terminal communicates with the transit terminal with wireless routing function, the sideMethod can include:
Access network is obtained by the input unit to identify, wherein, the access network is identified as the access transit terminalAccess information needed for caused wireless network;
According to pre-arranged code mode, access network mark is encoded, obtains object transmission data;
According to preset data embedded mode, the object transmission data are embedded in multiple default multicast address, treatedMultiple target multicast address of transmission, wherein, the multiple target multicast address includes the complete interior of the object transmission dataHold, the data content of different piece of each target multicast address comprising the object transmission data, and each target multicastLocation carries sequence location information of the data content of included part in all parts;
The multiple target multicast address is sent to the transit terminal, so that the transit terminal is to the multiple meshMark multicast address and carry out multicast, after the multiple target multicast address is received under promiscuous mode for second terminal, be based onThe preset data embedded mode determines the reduction result corresponding to the multiple target multicast address, and is based on the default volumeDecoding process corresponding to code mode decodes to the reduction result, obtains the access network mark, and connect described in utilizationNetwork identification accesses the wireless network.
Alternatively, it is described according to preset data embedded mode, by the object transmission data with being embedded in multiple default multicastsIn location, multiple target multicast address waiting for transmission are obtained, including:
The object transmission data are divided into default part, obtain default one's share of expenses for a joint undertaking transmission data, wherein, each height transmits numberOrder between each data does not change relative to object transmission data;
According to segmentation order, each height transmission data are numbered;
Each height transmission data and the numbering corresponding to it are embedded in each default multicast address, to be treatedTarget multicast address corresponding to each height transmission data of transmission.
Alternatively, it is described that the object transmission data are divided into default part, default one's share of expenses for a joint undertaking transmission data are obtained, including:
According to the byte number that the object transmission data are included as segmentation number, the object transmission data are dividedCut, wherein, the corresponding one's share of expenses for a joint undertaking transmission data of a byte.
Alternatively, it is described that each height transmission data and the numbering corresponding to it are embedded in each default multicast addressIn, including:
The nybble each height transmission data being respectively embedded into each default multicast address, and each height is passedNumbering corresponding to transmission of data is respectively embedded into the 3rd byte in each default multicast address.
Alternatively, the access network mark can include:
The network name and network cipher of the wireless network.
Alternatively, after the acquisition access network mark by the input unit, methods described can also include:
Obtain the first length value corresponding to the network name and the second length value corresponding to the network cipher;
Correspondingly, it is described according to pre-arranged code mode, access network mark is encoded, obtains object transmission numberAccording to, including:
According to pre-arranged code mode, to first corresponding to the network name, the network cipher, the network nameThe second length value corresponding to length value and the network cipher is encoded, and obtains object transmission data, wherein, it is described defaultCoded system includes default principle, to encode first length value and second length value using the default principle;
Correspondingly, the second terminal determines the multiple target multicast address institute based on the preset data embedded modeAfter corresponding reduction result, based on decoding process corresponding to the default principle, described first is obtained from the reduction resultLength value and second length value, and first length value and second length value are based on, judge the reduction resultWhether it is the object transmission data, it is described based on corresponding to the pre-arranged code mode when being, to perform when judged resultThe step of decoding process decodes to the reduction result.
Second aspect, the embodiments of the invention provide the method for another accessing terminal to network, suitable for second terminal, instituteThe method of stating can include:
Under promiscuous mode, multiple target multicast address by transit terminal multicast are received, wherein, target multicast address isTransferring equipment institute's multicast after the target multicast address of first terminal transmission is received, the first terminal is according to first aspectThe method generation target multicast address of described accessing terminal to network is simultaneously sent to transit terminal;
Reduction result corresponding to the multiple target multicast address is determined based on the preset data embedded mode;
The reduction result is decoded based on the decoding process corresponding to the pre-arranged code mode, obtains access networkMark;
Wireless network caused by the transit terminal is accessed using access network mark.
Alternatively, it is described that going back corresponding to the multiple target multicast address is determined based on the preset data embedded modeFormer result, including:
More height transmission data are extracted from each target multicast address, and are extracted corresponding to the multiple sub- transmission dataNumbering, obtain default one's share of expenses for a joint undertaking transmission data;
The multiple target is obtained based on the numbering corresponding to the default one's share of expenses for a joint undertaking transmission data and each height transmission dataReduction result corresponding to multicast address.
Alternatively, it is described before receiving multiple target multicast address by transit terminal multicast described under promiscuous modeMethod can also include:
Obtain radio network information channel list;
Correspondingly, the multiple target multicast address received by transit terminal multicast, including:
Based on the channel order recorded in the network channel list, judge whether receive any mesh in present channelMulticast address is marked, if so, continuing to other target multicast address by transit terminal multicast;
If it is not, the subsequent channels that present channel is switched to recorded in the network channel list, and continue executing with instituteState and judge whether present channel receives either objective multicast address the step of.
Alternatively, after utilization access network mark accesses wireless network caused by the transit terminal, alsoIt can include:
Judge to access whether the wireless network succeeds using access network mark, if so, the nothing will be successfully accessedThe message of gauze network is broadcasted to the first terminal.
The third aspect, it is described suitable for first terminal the embodiments of the invention provide a kind of device of accessing terminal to networkFirst terminal is provided with input unit, and the first terminal communicates with the transit terminal with wireless routing function, the dressPut including:First acquisition unit, second acquisition unit, embedded unit and transmitting element;
The first acquisition unit, identified for obtaining access network by the input unit, wherein, the access network markKnow to access the access information needed for wireless network caused by the transit terminal;
The second acquisition unit, for according to pre-arranged code mode, being encoded to access network mark, obtaining meshMark transmission data;
The embedded unit, for according to preset data embedded mode, the object transmission data being embedded in multiple defaultIn multicast address, multiple target multicast address waiting for transmission are obtained, wherein, the multiple target multicast address includes the targetThe complete content of data is transmitted, each target multicast address includes the data content of the different piece of the object transmission data,And each target multicast address carries sequence location information of the data content of included part in all parts;
The transmitting element, for the multiple target multicast address to be sent to the transit terminal, in describedTurn the multiple target multicast address of terminal-pair and carry out multicast, so that second terminal receives the multiple mesh under promiscuous modeAfter marking multicast address, the reduction knot corresponding to the multiple target multicast address is determined based on the preset data embedded modeFruit, and the reduction result is decoded based on the decoding process corresponding to the pre-arranged code mode, obtain the accessNetwork mark is known, and accesses the wireless network using access network mark.
Alternatively, the embedded unit, can include:Split subelement, numbering subelement and embedded subelement;
The segmentation subelement, for the object transmission data to be divided into default part, obtain default one's share of expenses for a joint undertaking transmission numberAccording to, wherein, the order in each height transmission data between each data does not change relative to object transmission data;
The numbering subelement, for according to segmentation order, each height transmission data to be numbered;
The embedded subelement, it is each default for each height transmission data and the numbering corresponding to it to be embedded inIn multicast address, to obtain the target multicast address corresponding to each height transmission data waiting for transmission.
Alternatively, the segmentation subelement, specifically for the byte number conduct included according to the object transmission dataSplit number, the object transmission data are split, wherein, the corresponding one's share of expenses for a joint undertaking transmission data of a byte.
Alternatively, the embedded subelement, specifically for each height is transmitted into data with being respectively embedded into each default multicastNybble in location, and the numbering corresponding to each height transmission data is respectively embedded into each default multicast address3rd byte.
Alternatively, can be included by the access network mark acquired in the first acquisition unit:
The network name and network cipher of the wireless network.
Alternatively, described device can also include:3rd acquiring unit;
3rd acquiring unit, for it is described by the input unit obtain access network mark after, described in acquisitionThe second length value corresponding to the first length value and the network cipher corresponding to network name;
Correspondingly, the second acquisition unit, including:Coded sub-units;
The coded sub-units, for according to pre-arranged code mode, to the network name, network cipher, describedThe second length value corresponding to the first length value and the network cipher corresponding to network name is encoded, and obtains target biographyTransmission of data, wherein, the pre-arranged code mode includes default principle, to encode first length value using the default principleWith second length value;
Correspondingly, the second terminal determines the multiple target multicast address institute based on the preset data embedded modeAfter corresponding reduction result, based on decoding process corresponding to the default principle, described first is obtained from the reduction resultLength value and second length value, and first length value and second length value are based on, judge the reduction resultWhether it is the object transmission data, it is described based on corresponding to the pre-arranged code mode when being, to perform when judged resultThe step of decoding process decodes to the reduction result.
Fourth aspect, it is described suitable for second terminal the embodiments of the invention provide a kind of device of accessing terminal to networkDevice can include:Receiving unit, reduction result determining unit, decoding unit and network insertion unit;
The receiving unit, under promiscuous mode, receiving multiple target multicast address by transit terminal multicast, itsIn, target multicast address institute multicast after the target multicast address of first terminal transmission is received for transferring equipment, described theOne terminal generates target multicast address using the device of the accessing terminal to network described in the third aspect and sent to transit terminal;
The reduction result determining unit, the multiple target multicast address is determined based on the preset data embedded modeCorresponding reduction result;
The decoding unit, for being entered based on the decoding process corresponding to the pre-arranged code mode to the reduction resultRow decoding, obtain access network mark;
The network insertion unit, for accessing wireless network caused by the transit terminal using access network markNetwork.
Alternatively, the reduction result determining unit, can include:Extract subelement and object transmission data acquisition is singleMember;
The extraction subelement, for extracting more height transmission data from each target multicast address, and described in extractionNumbering corresponding to more height transmission data, obtain default one's share of expenses for a joint undertaking transmission data;
The reduction result obtains subelement, for based on the default one's share of expenses for a joint undertaking transmission data and each height transmission data instituteCorresponding numbering obtains the reduction result corresponding to the multiple target multicast address.
Alternatively, described device can also include:Channel list acquiring unit;
The channel list acquiring unit, under promiscuous mode, being received described by the multiple of transit terminal multicastBefore target multicast address, radio network information channel list is obtained;
Correspondingly, the receiving unit, including:Judgment sub-unit;
The judgment sub-unit, for based on the channel order recorded in the network channel list, judging currentWhether channel receives either objective multicast address, is continued to if so, triggering the receiving unit by transit terminal multicastOther target multicast address;
If it is not, the subsequent channels that present channel is switched to recorded in the network channel list, and sentence described in triggeringDisconnected subelement judges whether receive either objective multicast address in present channel.
Alternatively, described device can also include:Judging unit;
The judging unit, for being accessed described using access network mark caused by the transit terminal wirelesslyAfter network, judge to access whether the wireless network succeeds using access network mark, if so, will be successfully accessed described wirelessThe message of network is broadcasted to the first terminal.
5th aspect, the embodiment of the present invention additionally provide a kind of system of accessing terminal to network, and the system includes:FirstTerminal, second terminal and transit terminal, the first terminal are provided with input unit, and the first terminal is with having wireless routingThe transit terminal of function communicates;
The first terminal is used for:Access network is obtained by the input unit to identify, wherein, the access network is identified asAccess the access information needed for wireless network caused by the transit terminal;According to pre-arranged code mode, to the access networkMark is encoded, and obtains object transmission data;According to preset data embedded mode, the object transmission data are embedded in multipleIn default multicast address, multiple target multicast address waiting for transmission are obtained, wherein, the multiple target multicast address includes describedThe complete content of object transmission data, each target multicast address are included in the data of the different piece of the object transmission dataHold, and each target multicast address carries sequence location information of the data content of included part in all parts;WillThe multiple target multicast address is sent to the transit terminal;
The transit terminal is used for:Multicast is carried out to the multiple target multicast address;
The second terminal is used for:After the multiple target multicast address is received under promiscuous mode, based on described pre-If data embedded mode determines the reduction result corresponding to the multiple target multicast address, and is based on the pre-arranged code modeCorresponding decoding process decodes to the reduction result, obtains the access network mark, and utilize the access network markKnow and access the wireless network.
Preferably, the first terminal is specifically used for:The object transmission data are divided into default part, obtain default partSon transmission data, wherein, the order in each height transmission data between each data does not change relative to object transmission data;PressAccording to segmentation order, each height transmission data are numbered;By each height transmission data and the numbering corresponding to itIt is embedded in each default multicast address, to obtain the target multicast address corresponding to each height transmission data waiting for transmission.
Preferably, the first terminal is specifically used for:The byte number included according to the object transmission data, which is used as, to be dividedNumber is cut, the object transmission data are split, wherein, the corresponding one's share of expenses for a joint undertaking transmission data of a byte.
Preferably, the first terminal is specifically used for:Each height transmission data are respectively embedded into each default multicast addressIn nybble, and the numbering corresponding to each height transmission data is respectively embedded into each default multicast addressThree bytes.
Preferably, the access network mark includes:The network name and network cipher of the wireless network.
Preferably, the first terminal is additionally operable to:After the acquisition access network mark by the input unit, obtainThe second length value corresponding to the first length value and the network cipher corresponding to the network name;
Correspondingly, the first terminal is specifically used for:According to pre-arranged code mode, to the network name, the networkThe second length value corresponding to the first length value and the network cipher corresponding to password, the network name is encoded,Object transmission data are obtained, wherein, the pre-arranged code mode includes default principle, with using described in the default principle codingFirst length value and second length value;
Correspondingly, the second terminal is used for:The multiple target multicast is determined based on the preset data embedded modeAfter reduction result corresponding to address, based on decoding process corresponding to the default principle, institute is obtained from the reduction resultThe first length value and second length value are stated, and is based on first length value and second length value, judges described go backWhether former result is the object transmission data, and when judged result is to be, the pre-arranged code mode institute is based on described in executionThe step of corresponding decoding process decodes to the reduction result.
Preferably, the second terminal is specifically used for:More height transmission data are extracted from each target multicast address, andThe numbering corresponding to the multiple sub- transmission data is extracted, obtains default one's share of expenses for a joint undertaking transmission data;Transmitted based on the default one's share of expenses for a joint undertakingNumbering corresponding to data and each height transmission data obtains the reduction result corresponding to the multiple target multicast address.
Preferably, the second terminal is additionally operable to:Described under promiscuous mode, receive by the multiple of transit terminal multicastBefore target multicast address, radio network information channel list is obtained;
Correspondingly, the second terminal is specifically used for:Based on the channel order recorded in the network channel list, sentenceBreak whether present channel receives either objective multicast address, if so, continuing to other targets by transit terminal multicastMulticast address;If it is not, the subsequent channels that present channel is switched to recorded in the network channel list, and continue executing with instituteState and judge whether present channel receives either objective multicast address the step of.
Preferably, it is additionally operable in the second terminal:Accessed using access network mark produced by the transit terminalWireless network after, judge to access whether the wireless network succeeds using access network mark, if so, institute will be successfully accessedThe message for stating wireless network is broadcasted to the first terminal.
In embodiments of the present invention, first terminal obtains access network by its input unit and identified, and passes through the access network markThe first terminal can be accessed the corresponding wireless network of access network mark by knowing;And according to pre-arranged code mode, this is connectNetwork identification is encoded, and obtains object transmission data;According to default data embedded mode, the object transmission data are embedded inBroadcast to multiple preset groups in address, obtain multiple target multicast address so that the plurality of target multicast address carries the targetThe complete content of data is transmitted, and entrained position of the data in the object transmission data is carried in each target multicast addressConfidence ceases;The target multicast address is sent to transit terminal, with by transit terminal by the plurality of target multicast address multicastTo second terminal so that embedding according to preset data after second terminal receives the plurality of target multicast address under promiscuous modeEnter mode to reduce to obtain object transmission data, and the object transmission data are decoded, obtain accessing the access of transit terminalNetwork mark is known, and passes through wireless network caused by the transit terminal using access network mark access so that second terminal is not required toThe input unit for relying on itself realizes the access of wireless network, reduces dependence of the terminal access wireless network to input unitDegree, and improve the speed of second terminal access wireless network.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based onEmbodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not madeEmbodiment, belong to the scope of protection of the invention.
In order to solve prior art problem, the embodiment of the present invention provides one from first terminal and second terminal angle respectivelyThe method, apparatus and system of kind accessing terminal to network.
First below from first terminal angle, the method for the accessing terminal to network provided the embodiment of the present invention is situated betweenContinue.
It should be noted that the first terminal is provided with input unit, and the first terminal is with having wireless routing functionTransit terminal communicate, wherein, the communication mode of the first terminal and the transit terminal can be that wire communication can also beRadio communication.For example, the first terminal identifies using the access network of wireless network caused by the transit terminal, realize to thisThe access of wireless network, and then realize radio communication with the transit terminal;It can also be connected using netting twine with the transit terminal, it is realNow with the wire communication of the transit terminal.
Wherein, the first terminal includes but is not limited to smart mobile phone, tablet personal computer and desktop computer;The input unitIncluding but not limited to keyboard and touch-screen.
It is emphasized that first terminal communicates with transit terminal, transit terminal can be received transmitted by first terminalMulticast address, and the multicast address can be forwarded, second terminal can receive the multicast address under promiscuous mode.
It is understood that transit terminal includes but is not limited to wireless router.Second terminal is wireless to can accessThe smart machine of network, its own, which can be provided with input unit, can also be not provided with input unit.
As shown in figure 1, the method for the accessing terminal to network that the embodiment of the present invention provides from first terminal angle, can includeFollowing steps:
S101:Access network is obtained by the input unit to identify, wherein, the access network, which is identified as, accesses the transit terminal instituteAccess information needed for caused wireless network;
Wherein, the input unit that first terminal is configured by itself obtains access network mark, and can pass through the access networkWireless network caused by mark access transit terminal, realizes the communication with the transit terminal, and then realize wireless networking.After one terminal establishes communication connection with transit terminal, when needing second terminal accessing the wireless network, first terminal can lead toThe input unit for crossing itself configuration obtains the access network mark for accessing the transit terminal, is sent so as to perform to identify the access networkThe step of to the second terminal.
It is understood that when the first terminal accesses wireless network caused by the transit terminal for the first time, can incite somebody to actionThe access network inputted by input unit mark is stored in first terminal local, is accessed when needing to identify using the access networkWhen access network mark is sent to second terminal by corresponding wireless network or needs, it can be avoided every directly from local acquisitionIt is secondary to be required for obtaining access network mark by input unit, the cumbersome degree of operation is reduced, improves processing speed.
S102:According to pre-arranged code mode, access network mark is encoded, obtains object transmission data;
Wherein, after the access network for accessing wireless network mark is obtained, according to pre-arranged code mode to the access network markKnowledge is encoded, so as to the object transmission data after being encoded.
For example, access network mark includes username and password, and the entitled ABC of user, password 123 now can be to the useName in an account book and password are encoded, and the object transmission data after being encoded are 123ABC.
It is emphasized that the pre-arranged code mode can be any one coded system to data in the prior art, andIt is not limited to the example above.
S103:According to preset data embedded mode, the object transmission data are embedded in multiple default multicast address, obtainedMultiple target multicast address waiting for transmission, wherein, the plurality of target multicast address includes the complete content of the object transmission data,Each target multicast address includes the data content of the different piece of the object transmission data, and each target multicast address carriesComprising part sequence location information of the data content in all parts;
Wherein, it is after object transmission data are obtained, it is necessary to be transmitted to object transmission data, then embedding according to preset dataEnter mode, can be by the operation that the object transmission data are embedded in multiple default multicast address:The object transmission data are divided into NIndividual part, and by various pieces, and sequence location information corresponding to various pieces are embedded in default multicast address, are obtainedMultiple target multicast address, so as to clearly the plurality of target multicast address, so as to by the plurality of target multicast addressTransit terminal is sent in an orderly manner, to allow transit terminal to forward the plurality of target multicast address, wherein N >=0, Jin ErtiThe speed of high second terminal access wireless network.
For example, the object transmission data obtained are ABC123, the object transmission data can be divided into AB, C1 and 23 3 portionsPoint, sequence location information corresponding to the AB of Part I is 1;Sequence location information corresponding to Part II C1 is 2;Part III23 corresponding to sequence location information be 3.That is, it is by AB, the C1 and 23 3 parts according to the sequence number corresponding to 1-3The sequence number being correctly ordered.
Now, the object transmission data can be embedded in 3 default multicast address 225.x.1.y~225.x.3.y, obtained3 target multicast address are respectively:225.A.1.B, 225.C.2.1 and 225.2.3.3, i.e. 3 target multicast address are includedThere is object transmission data ABC123 complete content, and each target multicast address is included in the data of ABC123 different piecesHold, and each target multicast address is carried comprising the sequence location information corresponding to data content.
It is emphasized that the embedded mode that the above-mentioned object transmission data to acquisition are ABC123 is only for example, this hairBright embodiment includes but is not limited to the object transmission data ABC123 and above-mentioned involved embedded mode.
In addition, it will be appreciated by persons skilled in the art that the default multicast address can 224.0.0.0~239.255.255.255 chosen in the range of.
S104:The plurality of target multicast address is sent to the transit terminal, so that the transit terminal is to the plurality of targetMulticast address carries out multicast, pre- based on this after the plurality of target multicast address is received under promiscuous mode for second terminalIf data embedded mode determines the reduction result corresponding to the plurality of target multicast address, and right based on the pre-arranged code mode instituteThe decoding process answered decodes to the reduction result, obtains access network mark, and access the nothing using access network markGauze network.
Wherein, after each target multicast address is obtained, by wireless network, first terminal is by the plurality of target multicastLocation is sent to transit terminal, and transit terminal is entered after the plurality of target multicast address is received to the plurality of target multicast addressRow multicast.It is understood that first terminal, which can cycle through the plurality of target multicast address, gives the transit terminal, withDuring generation packet drop, transit terminal still can receive complete multiple target multicast address.
Wherein, the second terminal under promiscuous mode can receive all packets, you can to receive the transit terminalMultiple target multicast address of institute's multicast;The second terminal is after the plurality of target multicast address is received, based on preset dataEmbedded mode reduces to the plurality of target multicast address, obtains object transmission data;It is and right using pre-arranged code mode instituteThe decoding process answered decodes to the object transmission data, obtains the access network mark corresponding to object transmission data, so as toSecond terminal causes second terminal to exist using access network mark access wireless network as caused by the transit terminalIn the case of independent of the input unit of itself, realize that wireless network accesses, to input unit when reducing access wireless networkRely on, improve the speed of second terminal access wireless network.
That is, when second terminal is the equipment that input unit is not present in intelligent video camera head and smart jack etc., canTo access wireless network by the above method.
It is emphasized that promiscuous mode refers to that a station terminal can receive all data by the station terminal network interface cardWhether bag, be the station terminal but regardless of the packet destination address to be sent to.
In embodiments of the present invention, first terminal obtains access network by its input unit and identified, and passes through the access network markThe first terminal can be accessed the corresponding wireless network of access network mark by knowing;And according to pre-arranged code mode, this is connectNetwork identification is encoded, and obtains object transmission data;According to default data embedded mode, the object transmission data are embedded inBroadcast to multiple preset groups in address, obtain multiple target multicast address so that the plurality of target multicast address carries the targetThe complete content of data is transmitted, and entrained position of the data in the object transmission data is carried in each target multicast addressConfidence ceases;The target multicast address is sent to transit terminal, with by transit terminal by the plurality of target multicast address multicastTo second terminal so that embedding according to preset data after second terminal receives the plurality of target multicast address under promiscuous modeEnter mode to reduce to obtain object transmission data, and the object transmission data are decoded, obtain accessing the access of transit terminalNetwork mark is known, and passes through wireless network caused by the transit terminal using access network mark access so that second terminal is not required toThe input unit for relying on itself realizes the access of wireless network, reduces dependence of the terminal access wireless network to input unitDegree, and improve the speed of terminal access wireless network.
Alternatively, the object transmission data should be embedded in multiple default multicast address according to preset data embedded mode,Multiple target multicast address waiting for transmission are obtained, can be included:
The object transmission data are divided into default part, obtain default one's share of expenses for a joint undertaking transmission data, wherein, each height transmits dataIn order between each data do not change relative to object transmission data;
According to segmentation order, each height transmission data are numbered;
Each height transmission data and the numbering corresponding to it are embedded in each default multicast address, it is to be passed to obtainTarget multicast address corresponding to defeated each height transmission data.
It is understood that in this kind of implementation, preset data embedded mode is concretely:By object transmission dataDefault part is divided into, such as:Can be AB, C1 and 23 3 parts by object transmission data ABC123 points, can also be by targetIt is A, B, C, 1,2 and 3 six part to transmit ABC123 points of data.
After being divided into default part, default one's share of expenses for a joint undertaking transmission data are obtained, this kind of partitioning scheme can realize that antithetical phrase transmits dataLength be controlled that (when wherein, being divided into AB, C1 and 23 3 parts, the length that can control every height transmission data is 2Byte;When being divided into A, B, C, 1,2 and 3 six part, the length that can control every height transmission data is 1 byte), i.e., it is setThe numerical value corresponding to default part put is bigger, and the son transmission data number for splitting to obtain is more, correspondingly each height transmission dataLength it is shorter.
Each height transmission data can be numbered according to segmentation order, realized to each height transmission data afterwardsOrdering;Each height transmission data and the numbering corresponding to it are embedded in default multicast address, obtain a default targetMulticast address, to determine corresponding son transmission data sequence position corresponding in object transmission data according to each numberingPut, so as to facilitate second terminal to be reduced exactly to object transmission data according to the numbering.
It is understood that segmentation order can be the segmentation order from left to right split to object transmission data,It can also be the segmentation order that object transmission data are split from right to left, not limit herein.
It is emphasized that those skilled in the art can set the number corresponding to the default part according to the demand of transmission precisionValue, concrete numerical value do not limit herein.
Alternatively, the object transmission data are divided into default part by this, are obtained default one's share of expenses for a joint undertaking transmission data, can be included:
According to the byte number that the object transmission data are included as number is split, the object transmission data are split,Wherein, the corresponding one's share of expenses for a joint undertaking transmission data of a byte.
It is understood that in this kind of implementation, by the data transmitted are shorter, error rate is smaller, therefore isEnsure transmission accuracy and receive the degree of accuracy, can be using the byte number that object transmission data are included as number is split, willEach byte is divided into one's share of expenses for a joint undertaking transmission data in the object transmission data, reduces by every part of byte number transmitted, enhances pairThe degree of accuracy of the transmission of each height transmission data and speed, and enhance second terminal and receiving comprising each height transmissionAfter multiple target multicast address of data, the speed of son transmission data is extracted to the plurality of target multicast address.
Such as:When object transmission data are ABC123, the byte number conduct included according to the object transmission data dividesNumber is cut, ABC123 points are A, B, C, 1,2 and 3 six part by the object transmission data.6 parts are respectively embedded into 6 in advanceIf in multicast address 225.115.1.y~225.115.6.y, obtaining 6 target multicast address is respectively:225.115.1.65、225.115.2.66,225.115.3.67,225.115.4.1,225.115.5.2 and 225.115.6.3.
Alternatively, each height is transmitted data by this and the numbering corresponding to it is embedded in each default multicast address,It can include:
The nybble each height transmission data being respectively embedded into each default multicast address, and each height is transmittedNumbering corresponding to data is respectively embedded into the 3rd byte in each default multicast address.
It is understood that in this kind of implementation, using the byte number that object transmission data are included as segmentationIt is several the object transmission data are split after, can by each height obtained after segmentation transmit data be respectively embedded into each pre-If the nybble in multicast address, and the numbering that each height is transmitted corresponding to data is respectively embedded into corresponding default multicastThe 3rd byte in address, multiple target multicast address are obtained, so as to realize the Ordering to multiple target multicast address, enteredAnd second terminal can be each from the nybble extraction in multiple target multicast address according to this kind of preset data embedded modeSon transmission data, and data can be transmitted to each height according to from the numbering that the 3rd byte in target multicast address is extractedArranged, so as to which multiple target multicast address are reduced into object transmission data.
Alternatively, access network mark can include:The network name and network cipher of the wireless network.
It is understood that in this kind of implementation, access network identity can be nothing caused by the transit terminalThe network name and network cipher of gauze network.Wherein, in the wireless network coverage, any terminal is obtaining the network nameAfter title and the network cipher, the access to the wireless network is realized using the network name and network cipher.
It is emphasized that any terminal refers to the intelligent terminal for having access to wireless network.And the access network identifiesIncluding but not limited to be accessed the network name of wireless network, network cipher and other self-defined informations.Wherein, this itsHis self-defined information can be the terminal iidentification of first terminal, after second terminal obtains the terminal iidentification, to judge the terminalIdentify whether as secure ID, if so, then the wireless network is accessed using the network name and the network cipher, if it is not, then notPerform the operation of access wireless network.
Alternatively, after this obtains access network mark by the input unit, this method can also include:
Obtain the second length value corresponding to the first length value and the network cipher corresponding to the network name;
Correspondingly, access network mark should be encoded, obtain object transmission data, wrapped according to pre-arranged code modeInclude:
According to pre-arranged code mode, to the first length value corresponding to the network name, the network cipher, the network nameEncoded with the second length value corresponding to the network cipher, obtain object transmission data, wherein, the pre-arranged code mode bagDefault principle is included, first length value and second length value are encoded to preset principle using this;
Correspondingly, the second terminal is determined corresponding to the plurality of target multicast address based on the preset data embedded modeAfter reduction result, decoding process corresponding to principle is preset based on this, obtained from the reduction result first length value and thisTwo length values, and first length value and second length value are based on, judge whether the reduction result is the object transmission data,When judged result is to be, performs this and the reduction result is decoded based on the decoding process corresponding to the pre-arranged code modeThe step of.
It is understood that in this kind of implementation, first terminal is accessing the wireless network by input unit acquisitionAfter the network name and network cipher of network, obtain corresponding to the first length value and the network cipher corresponding to the network nameSecond length value, and first length value, the second length value, network name and network cipher are encoded, i.e., using thisOne length value, the second length value, network name and network cipher are encoded into object transmission data.
It will be appreciated by persons skilled in the art that together encoded by length value and network name, network cipherWhen, it is in place to set length value institute according to preset rules, with second terminal be based on preset rules identification length value institute in place withAnd the length value length value in place corresponding.
In addition, when the multiple target multicast address for carrying object transmission data are forwarded to second terminal by transit terminal,Son entrained in multiple target multicast address is transmitted data convert by second terminal according to preset data embedded mode, is gone backFormer result;According to preset rules, the first length value and the second length value are found, and according to first length value and the second length valueJudge to reduce obtained network name and whether network cipher receives entirely, it is full-time when judging to receive, utilize pre-arranged code modeCorresponding decoding process decodes to the reduction result, obtains the network name and network cipher;When judgement reception is not completeWhen, the reduction result is not decoded, improve decoding accuracy;After network name and network cipher is obtained, this is utilizedNetwork name and the network cipher access the wireless network.
Below from second terminal angle, the method for the accessing terminal to network provided the embodiment of the present invention is introduced.
It should be noted that second terminal is that can access the smart machine of wireless network, its own can be provided with inputDevice can also be not provided with input unit, that is to say, that second terminal can be that intelligent video camera head and smart jack etc. are not depositedIn the equipment of input unit.Wherein, wireless network caused by second terminal access transit terminal needs not rely on itself instituteThe input unit of carrying.Wherein, the transit terminal has wireless routing function, and the transit terminal including but not limited to hasThere is the router of wireless routing function.
Wherein, first terminal is provided with input unit, and the first terminal and the transit terminal with wireless routing functionCommunicate, wherein, the first terminal and the communication mode of the transit terminal can be that wire communication can also be radio communication.ExampleSuch as, the first terminal identifies using the access network of wireless network caused by the transit terminal, realizes to the wireless networkAccess, and then realize radio communication with the transit terminal;It can also be connected using netting twine with the transit terminal, realized and the transferThe wire communication of terminal.
Wherein, the first terminal includes but is not limited to smart mobile phone, tablet personal computer and desktop computer;The input unitIncluding but not limited to keyboard and touch-screen.
It is emphasized that first terminal communicates with transit terminal, group that transit terminal can be transmitted by receiving terminalAddress is broadcast, and the multicast address can be forwarded, second terminal can receive the multicast address under promiscuous mode.
As shown in Fig. 2 the method for the accessing terminal to network that the embodiment of the present invention is provided from second terminal angle, can be wrappedInclude following steps:
S201:Under promiscuous mode, multiple target multicast address by transit terminal multicast are received, wherein, target multicastAddress institute's multicast after the target multicast address of first terminal transmission is received for transferring equipment, the first terminal is according to aboveTarget multicast address is generated from the method for the accessing terminal to network described by first terminal angle and is sent to transit terminal;
Wherein, second terminal opens promiscuous mode, and in this mode, second terminal can receive all by the second terminalThe packet of network interface card, you can to receive multiple target multicast address by transit terminal multicast, wherein, the plurality of target multicastAddress is sent by first terminal, and is forwarded by transit terminal.
Wherein, the generation method and transmission method of the plurality of target multicast address, reference can be made to first terminal is implemented aboveAssociated description in example, will not be described here.
S202:Reduction result corresponding to the plurality of target multicast address is determined based on the preset data embedded mode;
Wherein, for second terminal after multiple target multicast address are received, the preset data that data are transmitted according to antithetical phrase is embeddingEnter mode to reduce the plurality of target multicast address, obtain the reduction result corresponding to multiple target multicast address.
S203:The reduction result is decoded based on the decoding process corresponding to the pre-arranged code mode, accessedNetwork mark is known;
Wherein, the decoding process according to corresponding to pre-arranged code mode, the reduction result is decoded, acquires thisAccess network mark corresponding to object transmission data.
It is emphasized that the access network mark including but not limited to be accessed wireless network network name,Network cipher and other self-defined informations.Wherein, other self-defined informations can be the terminal iidentification of first terminal, withAfter two terminals obtain the terminal iidentification, judge whether the terminal iidentification is secure ID, if so, then utilizing obtained access networkMark (such as network name and the network cipher) accesses the wireless network, if it is not, not performing the operation of access wireless network then.
S204:Identified using the access network and access wireless network caused by the transit terminal.
Wherein, identified using the access network and access wireless network caused by the transit terminal.It is understood that utilizeAccess network mark (such as network name and network cipher) access wireless network belongs to prior art, herein not to accessing wireless networkThe concrete operations of network are defined.
In embodiments of the present invention, second terminal is received as multiple target multicast address transmitted by transit terminal, wherein,The plurality of target multicast address is generated by following operation:First terminal obtains access network by its input unit and identified, and passes throughAccess network mark can access the first terminal the corresponding wireless network of access network mark;And according to pre-arranged code sideFormula, access network mark is encoded, obtains object transmission data;According to default data embedded mode, the target is passedTransmission of data is embedded in multiple default multicast address, obtains multiple target multicast address so that the plurality of target multicast address is takenComplete content with the object transmission data, and entrained data are carried in each target multicast address in the object transmissionPositional information in data.The target multicast address is sent to transit terminal by first terminal again, and passes through transit terminalBy the plurality of target multicast address multicast to second terminal so that second terminal receives the plurality of target group under promiscuous modeAfter broadcasting address, reduced to obtain object transmission data according to preset data embedded mode, and the object transmission data decoded,Obtain accessing the access network mark of transit terminal, and accessed using access network mark by wireless caused by the transit terminalNetwork so that second terminal needs not rely on the access that the input unit of itself realizes wireless network, reduces terminal access nothingGauze network improves the speed that second terminal accesses wireless network to the degree of dependence of input unit.
Alternatively, the reduction knot corresponding to the plurality of target multicast address should be determined based on the preset data embedded modeFruit, it can include:
More height transmission data are extracted from each target multicast address, and are extracted corresponding to the plurality of sub- transmission dataNumbering, obtain default one's share of expenses for a joint undertaking transmission data;
Based on this preset one's share of expenses for a joint undertaking transmission data and each height transmission data corresponding to numbering obtain the plurality of target multicastReduction result corresponding to address.
It is understood that in this kind of implementation, second terminal after multiple target multicast address are received, according toPreset data embedded mode, more height transmission data, and the plurality of sub- transmission data are extracted from each target multicast addressCorresponding numbering;The plurality of sub- transmission data are ranked up according to extracted number value, obtain object transmission data.
Specifically, first terminal only can should encode access network mark according to pre-arranged code mode, so as to obtain meshMark transmission data, can also come according to pre-arranged code mode in coding network title, network cipher, and access network markThe second length value corresponding to the first length value and network cipher corresponding to network name, so as to obtain object transmission data.Alternatively, when first terminal is according to pre-arranged code mode, to corresponding to the network name, network cipher, the network nameThe second length value corresponding to one length value and the network cipher is encoded, and obtains object transmission data, wherein, the default volumeCode mode includes default principle, and first length value and second length value are encoded to preset principle using this;
Correspondingly, the reduction result corresponding to the plurality of target multicast address should be determined based on the preset data embedded modeAfterwards, can also include:
Decoding process corresponding to principle is preset based on this, first length value and second length are obtained from the reduction resultAngle value, and based on first length value and second length value, judge whether the reduction result is the object transmission data, when sentencingDisconnected result is when being, to perform the step decoded based on the decoding process corresponding to the pre-arranged code mode to the reduction resultSuddenly.
For example, to length 3 corresponding to network name ABC and ABC, length 3 corresponding to network cipher 123 and 123 is compiledCode, when obtaining object transmission data 3ABC3123, i.e., first that the object transmission data are set in coded system is network nameLength corresponding to title;The second to four is network name;5th is length corresponding to network cipher;Six to eight is networkPassword.The object transmission data are divided into 3, A, B, the part of C, 3,1,2 and 3 eight according to default partitioning scheme.Work as preset dataEmbedded mode is:Each height transmission data are respectively embedded into nybble in each default multicast address, and by each heightNumbering corresponding to transmission data is when being respectively embedded into three byte in each default multicast address, obtained each target multicastAddress is:225.115.1.3,225.115.2.65,225.115.3.66 and 225.115.4.67,225.115.5.3,225.115.6.1 with 225.115.7.2 225.115.8.3.
Correspondingly, now son transmission data mode is extracted from each target multicast address to be specifically as follows:According to MACAddress obtains target MAC (Media Access Control) address in target multicast address 225.115.1.3 network data frame with IP address conversion relation:01-00-5e-73-1-3, and obtain the data 1 corresponding to the byte of MAC Address the 5th, i.e., numbering is 1;Number corresponding to 6th byteAccording to 3, i.e. son transmission data are 3.And in the way of this kind extracts son transmission data, it is right that institute in each destination address can be obtainedThe son transmission data answered, and the numbering corresponding to each height transmission data, so as to decode to obtain networking title and network cipher.
Further it will be understood that after decoding obtains the network name and network cipher, promiscuous mode is closed, is preventedSecond terminal receives excessive invalid packets, reduces the load pressure of second terminal received data packet.
Alternatively, at this under promiscuous mode, before receiving multiple target multicast address by transit terminal multicast, this methodIt can also include:
Obtain radio network information channel list;
Correspondingly, the reception by transit terminal multicast multiple target multicast address, including:
Based on the channel order recorded in the network channel list, judge whether receive either objective in present channelMulticast address, if so, continuing to other target multicast address by transit terminal multicast;
If it is not, the subsequent channels that present channel is switched to recorded in the network channel list, and continue executing with this and sentenceBreak whether present channel receives either objective multicast address the step of.
It is understood that in this kind of implementation, multiple target multicast address by transit terminal multicast are being receivedBefore, the radio network information channel present in its previously-scanned place environment of second terminal, and the radio network information channel shape that will be scannedInto radio network information channel list.
Such as the current radio network information channel scanned has channel 1, channel 6 and channel 13, therefore second terminal only existsSwitched on channel 1, channel 6 and channel 13, when being switched to channel 1, channel 6 and channel 13 in any channel, execution is sentencedBreak whether present channel receives either objective multicast address the step of, avoid second terminal in the absence of channel (exampleSuch as channel 2 to channel 5) first-class pending data, reduces time of access network.
Alternatively, after this accesses wireless network caused by the transit terminal using access network mark, can also wrapInclude:
Judge to access whether the wireless network succeeds using access network mark, if so, the wireless network will be successfully accessedMessage broadcast to the first terminal;
If it is not, then show to access the wireless network not successfully.
Wherein, feedback time-out time, such as 5 seconds can be pre-set in first terminal, if first terminal did not obtained in 5 secondsThe access information of second terminal feedback is got, then prompts second terminal access wireless network failure.
It is understood that in this kind of implementation, when second terminal is successfully accessed wireless network, second terminal willAccess the wireless network successful information and feed back to the first terminal in time, avoid first terminal from circulating always and sent to transit terminalData;When second terminal accesses wireless network not successfully, by default feedback time-out time, first terminal receives prompting theThe information of two terminals access wireless network failure, avoids the first access terminal from blindly waiting.
The method of accessing terminal to network provided in an embodiment of the present invention is further described with reference to Fig. 5.
As shown in figure 5, Fig. 5 include be in promiscuous mode under second terminal, have input unit first terminal andTransit terminal, wherein, input network name on the touch-screen of first terminal:Hikwifi, network cipher:123456, Yi JiqiHe:Ipcsn123, and the network name, network cipher and other information can be encoded after click determination on the touch-screenInto object transmission data, and according to preset data embedded mode, the object transmission data are embedded in multiple default multicast address,Multiple target multicast address waiting for transmission are obtained, and are passed the plurality of target multicast address by wireless network as shown in Figure 5Transport to transit terminal;The transit terminal carries out multicast using the wireless network to the plurality of target multicast address;Second terminal is openedPromiscuous mode is opened, and is switched between its channel scanned 1, channel 6 and channel 13, when receiving target group in channel 1When broadcasting address, no longer switch channel, other target multicast address are continued in the channel 1, in the plurality of target multicast addressAfter receiving completely, the plurality of target multicast address is reduced, obtains object transmission data, and to the object transmission dataAfter decoding, obtain into network name:Hikwifi, network cipher:123456, and other:Ipcsn123, and connect using theseThe wireless network as caused by transit terminal is somebody's turn to do in network identification access.
Corresponding to the embodiment of the method corresponding to above-mentioned first terminal, as shown in figure 3, the embodiment of the present invention additionally provides oneThe device of the accessing terminal to network of kind, applied to first terminal, the first terminal includes input unit, and the first terminal is with havingThe transit terminal of wireless routing function communicates, and the device can include:First acquisition unit 301, second acquisition unit 302,Embedded unit 303 and transmitting element 304;
The first acquisition unit 301, identified for obtaining access network by the input unit, wherein, access network markTo access the access information needed for wireless network caused by the transit terminal;
The second acquisition unit 302, for according to pre-arranged code mode, being encoded to access network mark, obtaining meshMark transmission data;
The embedded unit 303, for according to preset data embedded mode, the object transmission data to be embedded in into multiple preset groupsBroadcast in address, obtain multiple target multicast address waiting for transmission, wherein, the plurality of target multicast address includes the object transmission numberAccording to complete content, each target multicast address includes the data content of the different piece of the object transmission data, and each meshMark multicast address and carry sequence location information of the data content of included part in all parts;
The transmitting element 304, for the plurality of target multicast address to be sent to the transit terminal, for the transit terminalMulticast is carried out to the plurality of target multicast address, so that second terminal receives the plurality of target multicast address under promiscuous modeAfterwards, the reduction result corresponding to the plurality of target multicast address is determined based on the preset data embedded mode, and it is default based on thisDecoding process corresponding to coded system decodes to the reduction result, obtains access network mark, and utilize the access networkMark accesses the wireless network.
In embodiments of the present invention, first terminal leads to its input unit acquisition access network mark, and passes through the access network markKnow and the first terminal is accessed into the corresponding wireless network of access network mark;And according to pre-arranged code mode, to the access networkMark is encoded, and obtains object transmission data;According to default data embedded mode, the object transmission data are embedded in moreIn individual default multicast address, multiple target multicast address are obtained so that the plurality of target multicast address carries the object transmissionThe complete content of data, and position letter of the entrained data in the object transmission data is carried in each target multicast addressBreath;The target multicast address is sent to transit terminal, with by transit terminal by the plurality of target multicast address multicast to theTwo terminals so that after second terminal receives the plurality of target multicast address under promiscuous mode, according to preset data insertion sideFormula is reduced to obtain object transmission data, and the object transmission data are decoded, and obtains accessing the access network mark of transit terminalKnow, and pass through wireless network caused by the transit terminal using access network mark access so that second terminal need not be according toRely the input unit of itself to realize the access of wireless network, reduce dependence journey of the terminal access wireless network to input unitDegree, improve the speed of second terminal access wireless network.
Alternatively, the embedded unit 303, can include:Split subelement, numbering subelement and embedded subelement;
The segmentation subelement, for the object transmission data to be divided into default part, default one's share of expenses for a joint undertaking transmission data are obtained, itsIn, the order in each height transmission data between each data does not change relative to object transmission data;
The numbering subelement, for according to segmentation order, each height transmission data to be numbered;
The insertion subelement, for each height transmission data and the numbering corresponding to it to be embedded in into each default multicastIn address, to obtain the target multicast address corresponding to each height transmission data waiting for transmission.
Alternatively, the segmentation subelement, segmentation is used as specifically for the byte number included according to the object transmission dataThe object transmission data are split by number, wherein, the corresponding one's share of expenses for a joint undertaking transmission data of a byte.
Alternatively, insertion subelement, specifically for each height transmission data are respectively embedded into each default multicast addressIn nybble, and the 3rd numbering corresponding to each height transmission data is respectively embedded into each default multicast addressByte.
Alternatively, can be included by the access network mark acquired in the first acquisition unit 301:
The network name and network cipher of the wireless network.
Alternatively, the device can also include:3rd acquiring unit;
3rd acquiring unit, for after this obtains access network mark by the input unit, obtaining the network nameThe second length value corresponding to corresponding the first length value and the network cipher;
Correspondingly, the second acquisition unit 302, can include:Coded sub-units;
The coded sub-units, for according to pre-arranged code mode, to the network name, network cipher, the network name instituteThe second length value corresponding to corresponding first length value and the network cipher is encoded, and obtains object transmission data, wherein,The pre-arranged code mode includes default principle, and first length value and second length value are encoded to preset principle using this;
Correspondingly, the second terminal is determined corresponding to the plurality of target multicast address based on the preset data embedded modeAfter reduction result, decoding process corresponding to principle is preset based on this, obtained from the reduction result first length value and thisTwo length values, and first length value and second length value are based on, judge whether the reduction result is the object transmission data,When judged result is to be, performs this and the reduction result is decoded based on the decoding process corresponding to the pre-arranged code modeThe step of.
Corresponding to the embodiment of the method corresponding to above-mentioned second terminal, as shown in figure 4, the embodiment of the present invention additionally provides oneThe device of the accessing terminal to network of kind, applied to second terminal, the first terminal and the transit terminal with wireless routing functionCommunicate, the device can include:Receiving unit 401, reduction result determining unit 402, decoding unit 403 and network insertion listMember 404;
The receiving unit 401, under promiscuous mode, receiving multiple target multicast address by transit terminal multicast,Wherein, target multicast address for transferring equipment the institute multicast after the target multicast address of first terminal transmission is received, thisOne terminal generates target multicast address using the device of accessing terminal to network as described above and sent to transit terminal;
The reduction result determining unit 402, the plurality of target multicast address institute is determined based on the preset data embedded modeCorresponding reduction result;
The decoding unit 403, for being carried out based on the decoding process corresponding to the pre-arranged code mode to the reduction resultDecoding, obtain access network mark;
The network insertion unit 404, for accessing wireless network caused by the transit terminal using access network mark.
In embodiments of the present invention, second terminal is received as multiple target multicast address transmitted by transit terminal, wherein,The plurality of target multicast address is generated by following operation:First terminal obtains access network by its input unit and identified, and passes throughAccess network mark can access the first terminal the corresponding wireless network of access network mark;And according to pre-arranged code sideFormula, access network mark is encoded, obtains object transmission data;According to default data embedded mode, the target is passedTransmission of data is embedded in multiple default multicast address, obtains multiple target multicast address so that the plurality of target multicast address is takenComplete content with the object transmission data, and entrained data are carried in each target multicast address in the object transmissionPositional information in data.The target multicast address is sent to transit terminal by first terminal again, and passes through transit terminalBy the plurality of target multicast address multicast to second terminal so that second terminal receives the plurality of target group under promiscuous modeAfter broadcasting address, reduced to obtain object transmission data according to preset data embedded mode, and the object transmission data decoded,Obtain accessing the access network mark of transit terminal, and accessed using access network mark by wireless caused by the transit terminalNetwork so that second terminal needs not rely on the access that the input unit of itself realizes wireless network, reduces terminal access nothingGauze network improves the speed that second terminal accesses wireless network to the degree of dependence of input unit.
Alternatively, the reduction result determining unit 402, can include:Extract subelement and object transmission data acquisitionUnit;
The extraction subelement, for extracting more height transmission data from each target multicast address, and extract the plurality ofNumbering corresponding to son transmission data, obtain default one's share of expenses for a joint undertaking transmission data;
Reduction result obtains subelement, for being preset based on this corresponding to one's share of expenses for a joint undertaking transmission data and each height transmission dataNumbering obtains the reduction result corresponding to the plurality of target multicast address.
Alternatively, the device can also include:Channel list acquiring unit;
The channel list acquiring unit, under promiscuous mode, receiving multiple targets by transit terminal multicast at thisBefore multicast address, radio network information channel list is obtained;
Correspondingly, the receiving unit 401, can include:Judgment sub-unit;
The judgment sub-unit, for based on the channel order recorded in the network channel list, judging in present channelWhether either objective multicast address is received, if so, triggering the receiving unit continues to other mesh by transit terminal multicastMark multicast address;
If it is not, the subsequent channels that present channel is switched to recorded in the network channel list, and trigger judgementWhether unit judges receive either objective multicast address in present channel.
Alternatively, the device can also include:Judging unit;
The judging unit, for being accessed at this using access network mark caused by the transit terminal after wireless network,Judge to access whether the wireless network succeeds using access network mark, if so, the message for being successfully accessed the wireless network is wideCast to the first terminal;
If it is not, the message for accessing the wireless network not successfully is broadcasted to the first terminal.
Corresponding to the above method and device embodiment, what the embodiment of the present invention additionally provided a kind of accessing terminal to network isSystem, the system include:First terminal, second terminal and transit terminal, the first terminal are provided with input unit, the first terminalCommunicated with the transit terminal with wireless routing function;
The first terminal is used for:Access network is obtained by the input unit to identify, wherein, the access network is identified as access shouldAccess information needed for wireless network caused by transit terminal;According to pre-arranged code mode, access network mark is compiledCode, obtains object transmission data;According to preset data embedded mode, the object transmission data are embedded in multiple default multicast addressIn, multiple target multicast address waiting for transmission are obtained, wherein, the plurality of target multicast address includes the complete of the object transmission dataWhole content, each target multicast address include the data content of the different piece of the object transmission data, and each target multicastAddress carries sequence location information of the data content of included part in all parts;By the plurality of target multicast addressSend to the transit terminal;
The transit terminal is used for:Multicast is carried out to the plurality of target multicast address;
The second terminal is used for:After the plurality of target multicast address is received under promiscuous mode, based on the preset dataEmbedded mode determines the reduction result corresponding to the plurality of target multicast address, and the solution corresponding to based on the pre-arranged code modeCode mode decodes to the reduction result, obtains access network mark, and access the wireless network using access network mark.
In embodiments of the present invention, first terminal obtains access network by its input unit and identified, and passes through the access network markThe first terminal can be accessed the corresponding wireless network of access network mark by knowing;And according to pre-arranged code mode, this is connectNetwork identification is encoded, and obtains object transmission data;According to default data embedded mode, the object transmission data are embedded inBroadcast to multiple preset groups in address, obtain multiple target multicast address so that the plurality of target multicast address carries the targetThe complete content of data is transmitted, and entrained position of the data in the object transmission data is carried in each target multicast addressConfidence ceases;The target multicast address is sent to transit terminal, with by transit terminal by the plurality of target multicast address multicastTo second terminal so that embedding according to preset data after second terminal receives the plurality of target multicast address under promiscuous modeEnter mode to reduce to obtain object transmission data, and the object transmission data are decoded, obtain accessing the access of transit terminalNetwork mark is known, and passes through wireless network caused by the transit terminal using access network mark access so that second terminal is not required toThe input unit for relying on itself realizes the access of wireless network, reduces dependence of the terminal access wireless network to input unitDegree, improve the speed of second terminal access wireless network.
Preferably, the first terminal is specifically used for:The object transmission data are divided into default part, default one's share of expenses for a joint undertaking is obtained and passesTransmission of data, wherein, the order in each height transmission data between each data does not change relative to object transmission data;According to pointOrder is cut, each height transmission data are numbered;Each height transmission data and the numbering corresponding to it are embedded in respectivelyIn individual default multicast address, to obtain the target multicast address corresponding to each height transmission data waiting for transmission.
Preferably, the first terminal is specifically used for:The byte number included according to the object transmission data is used as segmentation number,The object transmission data are split, wherein, the corresponding one's share of expenses for a joint undertaking transmission data of a byte.
Preferably, the first terminal is specifically used for:Each height transmission data are respectively embedded into each default multicast addressNybble, and the numbering corresponding to each height transmission data is respectively embedded into the 3rd word in each default multicast addressSection.
Preferably, access network mark includes:The network name and network cipher of the wireless network.
Preferably, the first terminal is additionally operable to:After this obtains access network mark by the input unit, the network is obtainedThe second length value corresponding to the first length value and the network cipher corresponding to title;
Correspondingly, the first terminal is specifically used for:According to pre-arranged code mode, to the network name, the network cipher, it is somebody's turn to doThe second length value corresponding to the first length value and the network cipher corresponding to network name is encoded, and obtains object transmissionData, wherein, the pre-arranged code mode includes default principle, with using this preset principle encode first length value and this secondLength value;
Correspondingly, the second terminal is used for:The plurality of target multicast address institute is determined based on the preset data embedded modeAfter corresponding reduction result, decoding process corresponding to principle is preset based on this, first length value is obtained from the reduction resultWith second length value, and based on first length value and second length value, judge whether the reduction result is that the target passesTransmission of data, when judged result is to be, this is performed based on the decoding process corresponding to the pre-arranged code mode to the reduction resultThe step of being decoded.
Preferably, the second terminal is specifically used for:More height transmission data are extracted from each target multicast address, and are carriedThe numbering corresponding to the plurality of sub- transmission data is taken, obtains default one's share of expenses for a joint undertaking transmission data;Based on this preset one's share of expenses for a joint undertaking transmission data andNumbering corresponding to each height transmission data obtains the reduction result corresponding to the plurality of target multicast address.
Preferably, the second terminal is additionally operable to:At this under promiscuous mode, multiple targets by transit terminal multicast are receivedBefore multicast address, radio network information channel list is obtained;
Correspondingly, the second terminal is specifically used for:Based on the channel order recorded in the network channel list, judgeWhether present channel receives either objective multicast address, if so, continuing to other target multicasts by transit terminal multicastAddress;If it is not, the subsequent channels that present channel is switched to recorded in the network channel list, and continue executing with the judgement and existWhether present channel receives the step of either objective multicast address.
Preferably, it is additionally operable in the second terminal:Identified and accessed caused by the transit terminal wirelessly using the access networkAfter network, judge to access whether the wireless network succeeds using access network mark, if so, the wireless network will be successfully accessedMessage is broadcasted to the first terminal.
It should be noted that herein, such as first and second or the like relational terms are used merely to a realityBody or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operationIn any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended toNonexcludability includes, so that process, method, article or equipment including a series of elements not only will including thoseElement, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to includeIntrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded thatOther identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodimentDivide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for deviceFor applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the methodPart explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is allAny modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present inventionIt is interior.