CN105187164A - Control method and electronic device - Google Patents

Control method and electronic device Download PDF

Info

Publication number
CN105187164A
CN105187164A CN201510618675.7A CN201510618675A CN105187164A CN 105187164 A CN105187164 A CN 105187164A CN 201510618675 A CN201510618675 A CN 201510618675A CN 105187164 A CN105187164 A CN 105187164A
Authority
CN
China
Prior art keywords
wireless communication
communication data
packet
coding
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.)
Granted
Application number
CN201510618675.7A
Other languages
Chinese (zh)
Other versions
CN105187164B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510618675.7A priority Critical patent/CN105187164B/en
Publication of CN105187164A publication Critical patent/CN105187164A/en
Application granted granted Critical
Publication of CN105187164B publication Critical patent/CN105187164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Abstract

The embodiment of the present invention discloses a control method applied to a first electronic device. The method comprises the steps of obtaining the wireless communication data, wherein the wireless communication data is used to represent the account information needed to connect a wireless hot spot; encoding the wireless communication data, bearing the encoded wireless communication data in at least one data packet according to a preset bearing mode, and sending the at least one data packet, wherein the preset bearing mode comprises at least one of the following bearing modes of utilizing the data packet length of the at least one data packet to bear the encoded wireless communication data, utilizing the address information of the at least one data packet to bear the encoded wireless communication data, utilizing the first field information of the at least one data packet to bear the encoded wireless communication data, wherein the first field information is different from the data field information born in the data packet. The embodiment of the present invention also discloses an electronic device.

Description

A kind of control method and electronic equipment
Technical field
The present invention relates to the information processing technology, particularly relate to a kind of control method and electronic equipment.
Background technology
By PC, handheld device, the access way that the such as terminal such as panel computer, mobile phone is wirelessly connected into network becomes the usual way that in life, user surfs the Net already; Such as, Wireless Fidelity (the Wi-Fi of terminal automatic acquisition hotspot, Wireless-Fidelity) service set (SSID, and password ServiceSetIdentifier), and be connected into network by the described Wi-FiSSID that gets and password, realize the object utilizing hotspot connected to the network.Existing, utilize hotspot to be connected into network and often adopt the realizations such as key configuration principle (as smartconfig) or user interface software (as easyconfig), particularly, a described key configures principle by described Wi-FiSSID and password being carried in multicast address or multicast address, so that terminal obtains described Wi-FiSSID and password; And utilize user interface software to realize utilizing hotspot to be connected into the mode of network for described Wi-FiSSID and password being carried in the data packet length of MAC data bag, and then be convenient to terminal and get this Wi-FiSSID and password, realize the object by this Wi-FiSSID and password access network; But existing mode is comparatively single, can not meet consumers' demand.
Summary of the invention
For solving the technical problem of existing existence, embodiments provide a kind of control method and electronic equipment.
The technical scheme of the embodiment of the present invention is achieved in that
Embodiments provide a kind of control method, be applied to the first electronic equipment; Described method comprises:
Obtain wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
Described wireless communication data is encoded, according to default bearing mode, the wireless communication data after coding is carried at least one packet, send at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
The embodiment of the present invention additionally provides a kind of control method, is applied to the second electronic equipment; Described method comprises:
Obtain at least one packet described;
Resolve at least one packet described, to parse wireless communication data from default bearing mode;
Utilize described wireless communication data to carry out network settings, the account information characterized by described wireless communication data to make described second electronic equipment and network are connected;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
The embodiment of the present invention further provides a kind of first electronic equipment, comprising:
First acquiring unit, for obtaining wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
Coding unit, for encoding to described wireless communication data, is carried at least one packet according to default bearing mode by the wireless communication data after coding, sends at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
The embodiment of the present invention further provides a kind of second electronic equipment, comprising:
4th acquiring unit, for obtaining at least one packet described;
Resolution unit, for resolving at least one packet described, to parse wireless communication data from default bearing mode;
Network settings unit, for utilizing described wireless communication data to carry out network settings, the account information characterized by described wireless communication data to make described second electronic equipment and network are connected;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
Control method described in the embodiment of the present invention and electronic equipment, by obtaining wireless communication data, described wireless communication data is encoded, according to default bearing mode, the wireless communication data after coding is carried at least one packet, and then send at least one packet described, realize the wireless communication data after by coding and be carried on object in packet; Further, due to described default bearing mode can be in three kinds of modes any one, any two kinds or any three kinds, so the wireless communication data after coding can be carried in packet by the embodiment of the present invention neatly, lay a good foundation for meeting consumers' demand.
Accompanying drawing explanation
Fig. 1 is the realization flow schematic diagram one of embodiment of the present invention control method;
Fig. 2 is the realization flow schematic diagram two of embodiment of the present invention control method;
Fig. 3 is the realization flow schematic diagram three of embodiment of the present invention control method;
Fig. 4 is the realization flow schematic diagram four of embodiment of the present invention control method;
Fig. 5 is the structural representation one of the embodiment of the present invention first electronic equipment;
Fig. 6 is the structural representation two of the embodiment of the present invention first electronic equipment;
Fig. 7 is the structural representation three of the embodiment of the present invention first electronic equipment;
Fig. 8 is the structural representation of the embodiment of the present invention second electronic equipment.
Embodiment
In order to more at large understand feature of the present invention and technology contents, below in conjunction with accompanying drawing, realization of the present invention is described in detail, the use of appended accompanying drawing explanation only for reference, is not used for limiting the present invention.
Embodiment one
Fig. 1 is the realization flow schematic diagram one of embodiment of the present invention control method; Described method is applied to the first electronic equipment; As shown in Figure 1, described method comprises:
Step 101: obtain wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
In the present embodiment, described first electronic equipment can be specially router, notebook computer, mobile phone, wearable electronic equipment as intelligent watch etc.
In the present embodiment, the place that described hotspot is served for providing WLAN (wireless local area network) (WLAN) access (Internet), such as, described hotspot can be specially described first electronic equipment, also can for other electronic equipments except described first electronic equipment.
Particularly, when described hotspot is described first electronic equipment, the wireless communication data of described first electronic equipment acquisition self, such as obtain the account information of user's input, as user name (being also Wi-FiSSID) and password, so that after making other electronic equipments get this account information, be connected into wireless network by this account information, realize carrying out by hotspot and wireless network the object that is connected.Or, described hotspot is other electronic equipments except described first electronic equipment, as the 3rd electronic equipment, now, described first electronic equipment obtains the wireless communication data of described 3rd electronic equipment, such as, obtain the username and password of the 3rd electronic configurations, so, be convenient to other electronic equipments get described 3rd electronic configurations username and password by described first electronic equipment, to be connected into wireless network by this username and password.
Step 102: encode to described wireless communication data, is carried at least one packet according to default bearing mode by the wireless communication data after coding, sends at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
In the present embodiment, described bearing mode has three kinds, the first, the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding; The second, the wireless communication data after utilizing the address information of at least one packet described to carry described coding; The third, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.And described default bearing mode can be in above three kinds of modes any one, any two kinds or any three kinds; Here, in actual applications, the selection of described default bearing mode can be arranged arbitrarily according to user's request, or arranges according to the data volume of the wireless communication data after coding, or efficiency needed for user number and arrange.Such as, if when wanting all to be sent by the wireless communication data after coding by less packet, if or the data volume of the wireless communication data of the valid data wanting to make packet carry also namely after coding is more, now, described default bearing mode at least can comprise in above three kinds of modes two or three, so, the efficiency of transmission of valid data is improved.
Here, directly picking out for enabling receiving terminal whether the packet received is the packet carrying the wireless communication data after coding, promoting the analyzing efficiency of receiving terminal; In the present embodiment, described method also comprises: at least one packet described in the wireless communication data after carrying described coding arranges bearing identification, pick out the packet received whether carry the wireless communication data after described coding to enable receiving terminal by described bearing identification.
In one embodiment, when described first electronic equipment gets wireless communication data, and after described wireless communication data is encoded, wireless communication data after coding is carried in the multicast address of at least one IP packet by described first electronic equipment, and be carried in the data packet length of at least one IP packet described, and then send at least one packet described of the wireless communication data after carrying described coding, after receiving at least one data described to make receiving terminal, parse the wireless communication data carried at least one packet described, and the account information utilizing described wireless communication data to characterize and network connect.
In another specific embodiment, when described first electronic equipment gets wireless communication data, and after encoding to described wireless communication data, the wireless communication data after coding is carried in the Subtype field in the mac frame head of at least one MAC data bag by described first electronic equipment; Particularly,
Dress up mac frame due to MAC data encapsulating to send in mac frame mode, and, in cryptographic algorithm, frame entity part in mac frame, also namely data field portion is encrypted, and mac frame head is not encrypted, so, receiving terminal can be convenient in the field be carried in mac frame head by the wireless communication data after coding and obtain this wireless communication data; That is, the idle component of field not encrypted in mac frame head can be utilized to carry the wireless communication data after coding; Such as, for 802.11 standards, the wireless communication data after coding is carried in the Subtype field of mac frame head; Further, because the type field in mac frame head can distinguish mac frame type, so mac frame type can be distinguished by the type field, as shown in the table;
Frame type The type field Subtype field
Management 00 0000-1101
Control 01 1000-1111
Data 10 0000-1111
Reserved 11 Nothing
In actual applications, for the type field be 00 Management frame in the 1110-1111 of Subtype field be idle; Be the 0000-0111 of Subtype field in the Control frame of 01 for the type field be idle; The Subtype field being 11 correspondences for the type field is all idle.Therefore, can in the following ways the wireless communication data after coding be carried in described Subtype field, namely be encoded by the 1110-1111 in Management frame Subtype field, such as, be expressed as 0 by 1110, be expressed as 1 by 1111; Encoded by the 0000-0111 in Control frame Subtype field, such as, 0000-0111 is corresponded to 0-7; The Subtype field being 11 correspondences by the type field is encoded, such as, may correspond to 0000-1111 in 0-15.
Like this, control method described in the embodiment of the present invention, by obtaining wireless communication data, described wireless communication data is encoded, according to default bearing mode, the wireless communication data after coding is carried at least one packet, and then send at least one packet described, realize the wireless communication data after by coding and be carried on object in packet; Further, due to described default bearing mode can be in three kinds of modes any one, any two kinds or any three kinds, so the wireless communication data after coding can be carried in packet by the embodiment of the present invention neatly, lay a good foundation for meeting consumers' demand.
Embodiment two
Fig. 2 is the realization flow schematic diagram two of embodiment of the present invention control method; Described method is applied to the first electronic equipment; As shown in Figure 2, described method comprises:
Step 201: obtain wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
In the present embodiment, described first electronic equipment can be specially router, notebook computer, mobile phone, wearable electronic equipment as intelligent watch etc.
In the present embodiment, the place that described hotspot is served for providing WLAN (wireless local area network) (WLAN) access (Internet), such as, described hotspot can be specially described first electronic equipment, also can for other electronic equipments except described first electronic equipment.
Particularly, when described hotspot is described first electronic equipment, the wireless communication data of described first electronic equipment acquisition self, such as obtain the account information of user's input, as user name (being also Wi-FiSSID) and password, so that after making other electronic equipments get this account information, be connected into wireless network by this account information, realize carrying out by hotspot and wireless network the object that is connected.Or, described hotspot is other electronic equipments except described first electronic equipment, as the 3rd electronic equipment, now, described first electronic equipment obtains the wireless communication data of described 3rd electronic equipment, such as, obtain the username and password of the 3rd electronic configurations, so, be convenient to other electronic equipments get described 3rd electronic configurations username and password by described first electronic equipment, to be connected into wireless network by this username and password.
Step 202: obtain and preset residue bearing capacity corresponding to bearing mode; Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet;
In actual applications, due to the payload of default bearing mode, also namely remain the data volume that bearing capacity is less than the wireless communication data after coding usually, so, usually need multiple packet the wireless communication data after coding all could to be carried; And, payload again due to different bearer mode is different, so for the wireless communication data after identical coding, the number of the packet that different bearing modes needs is different, therefore, after determining default bearing mode, need to calculate further and preset residue bearing capacity corresponding to bearing mode, and then determine the number of desired data bag according to residue bearing capacity so that the wireless communication data after whole codings is carried on calculate needed for number packet in.
In the present embodiment, described bearing mode has three kinds, the first, the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding; The second, the wireless communication data after utilizing the address information of at least one packet described to carry described coding; The third, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.And described default bearing mode can be in above three kinds of modes any one, any two kinds or any three kinds; Here, in actual applications, the selection of described default bearing mode can be arranged arbitrarily according to user's request, or arranges according to the data volume of the wireless communication data after coding, or efficiency needed for user number and arrange.Such as, if when wanting all to be sent by the wireless communication data after coding by less packet, or the residue bearing capacity that default bearing mode is corresponding is less, if or the data volume of the wireless communication data of the valid data wanting to make packet carry also namely after coding is more, now, described default bearing mode at least can comprise in above three kinds of modes two or three, so, improves the efficiency of transmission of valid data.
Here, directly picking out for enabling receiving terminal whether the packet received is the packet carrying the wireless communication data after coding, promoting the analyzing efficiency of receiving terminal; In the present embodiment, described method also comprises: at least one packet described in the wireless communication data after carrying described coding arranges bearing identification, pick out the packet received whether carry the wireless communication data after described coding to enable receiving terminal by described bearing identification.
Step 203: the number calculating desired data bag according to described residue bearing capacity;
Step 204: described wireless communication data is encoded, according to default bearing mode the wireless communication data after coding is carried on calculate needed for number packet in, send the packet of described required number.
In actual applications, due to the payload of default bearing mode, also the data volume that bearing capacity is less than the wireless communication data after coding usually is namely remained, so need to intercept the wireless communication data after described coding according to presetting the payload of bearing mode, so ensure packet can carry intercepting after subdata; So in the present embodiment, described method also comprises:
According to described residue bearing capacity, intercept the subdata being less than or equal to residue bearing capacity in wireless communication data in encoded, so that the wireless communication data after described coding is divided at least one subdata;
Accordingly, in step 204, described according to default bearing mode by coding after wireless communication data be carried on calculate needed for number packet in, comprising:
According to default bearing mode at least one subdata described is carried on calculate needed for number packet in.
In one embodiment, when described first electronic equipment gets wireless communication data, and after described wireless communication data is encoded, wireless communication data after coding is carried in the multicast address of at least one IP packet by described first electronic equipment, and be carried in the data packet length of at least one IP packet described, and then send at least one packet described of the wireless communication data after carrying described coding, after receiving at least one data described to make receiving terminal, parse the wireless communication data carried at least one packet described, and the account information utilizing described wireless communication data to characterize and network connect.
In another specific embodiment, when described first electronic equipment gets wireless communication data, and after encoding to described wireless communication data, the wireless communication data after coding is carried in the Subtype field in the mac frame head of at least one MAC data bag by described first electronic equipment; Particularly,
Dress up mac frame due to MAC data encapsulating to send in mac frame mode, and, in cryptographic algorithm, frame entity part in mac frame, also namely data field portion is encrypted, and mac frame head is not encrypted, so, receiving terminal can be convenient in the field be carried in mac frame head by the wireless communication data after coding and obtain this wireless communication data; That is, the idle component of field not encrypted in mac frame head can be utilized to carry the wireless communication data after coding; Such as, for 802.11 standards, the wireless communication data after coding is carried in the Subtype field of mac frame head; Further, because the type field in mac frame head can distinguish mac frame type, so mac frame type can be distinguished by the type field, as shown in the table;
Frame type The type field Subtype field
Management 00 0000-1101
Control 01 1000-1111
Data 10 0000-1111
Reserved 11 Nothing
In actual applications, for the type field be 00 Management frame in the 1110-1111 of Subtype field be idle; Be the 0000-0111 of Subtype field in the Control frame of 01 for the type field be idle; The Subtype field being 11 correspondences for the type field is all idle.Therefore, can in the following ways the wireless communication data after coding be carried in described Subtype field, namely be encoded by the 1110-1111 in Management frame Subtype field, such as, be expressed as 0 by 1110, be expressed as 1 by 1111; Encoded by the 0000-0111 in Control frame Subtype field, such as, 0000-0111 is corresponded to 0-7; The Subtype field being 11 correspondences by the type field is encoded, such as, may correspond to 0000-1111 in 0-15.
Like this, control method described in the embodiment of the present invention, by obtaining wireless communication data, described wireless communication data is encoded, according to default bearing mode, the wireless communication data after coding is carried at least one packet, and then send at least one packet described, realize the wireless communication data after by coding and be carried on object in packet; Further, due to described default bearing mode can be in three kinds of modes any one, any two kinds or any three kinds, so the wireless communication data after coding can be carried in packet by the embodiment of the present invention neatly, lay a good foundation for meeting consumers' demand.
Embodiment three
Fig. 3 is the realization flow schematic diagram three of embodiment of the present invention control method; Described method is applied to the first electronic equipment; As shown in Figure 3, described method comprises:
Step 301: obtain wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
In the present embodiment, described first electronic equipment can be specially router, notebook computer, mobile phone, wearable electronic equipment as intelligent watch etc.
In the present embodiment, the place that described hotspot is served for providing WLAN (wireless local area network) (WLAN) access (Internet), such as, described hotspot can be specially described first electronic equipment, also can for other electronic equipments except described first electronic equipment.
Particularly, when described hotspot is described first electronic equipment, the wireless communication data of described first electronic equipment acquisition self, such as obtain the account information of user's input, as user name (being also Wi-FiSSID) and password, so that after making other electronic equipments get this account information, be connected into wireless network by this account information, realize carrying out by hotspot and wireless network the object that is connected.Or, described hotspot is other electronic equipments except described first electronic equipment, as the 3rd electronic equipment, now, described first electronic equipment obtains the wireless communication data of described 3rd electronic equipment, such as, obtain the username and password of the 3rd electronic configurations, so, be convenient to other electronic equipments get described 3rd electronic configurations username and password by described first electronic equipment, to be connected into wireless network by this username and password.
Step 302: the data volume obtaining the wireless communication data after coding;
In actual applications, for choosing target bearing mode targetedly in default bearing mode, after described first electronic equipment gets wireless communication data, need the data volume of the wireless communication data after calculating coding, and then according to the described data volume calculated, determine target bearing mode.
In the present embodiment, bearing mode has three kinds, the first, the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding; The second, the wireless communication data after utilizing the address information of at least one packet described to carry described coding; The third, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.And described default bearing mode can be in above three kinds of modes any one, any two kinds or any three kinds; Here, in actual applications, the selection of described default bearing mode can be arranged arbitrarily according to user's request, or arranges according to the data volume of the wireless communication data after coding, or efficiency needed for user number and arrange.Such as, if when wanting all to be sent by the wireless communication data after coding by less packet, if or the data volume of the wireless communication data of the valid data wanting to make packet carry also namely after coding is more, or the data volume of the wireless communication data after coding is larger, now, described target bearing mode at least can comprise in above three kinds of modes two or three, so, improves the efficiency of transmission of valid data.
Here, directly picking out for enabling receiving terminal whether the packet received is the packet carrying the wireless communication data after coding, promoting the analyzing efficiency of receiving terminal; In the present embodiment, described method also comprises: at least one packet described in the wireless communication data after carrying described coding arranges bearing identification, pick out the packet received whether carry the wireless communication data after described coding to enable receiving terminal by described bearing identification.
Step 303: according to the data volume of the wireless communication data after described coding, selects the target bearing mode corresponding with described data volume in described default bearing mode;
Step 304: encode to described wireless communication data, is carried at least one packet according to the target bearing mode selected by the wireless communication data after coding, sends at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
In one embodiment, when described first electronic equipment gets wireless communication data, and after described wireless communication data is encoded, wireless communication data after coding is carried in the multicast address of at least one IP packet by described first electronic equipment, and be carried in the data packet length of at least one IP packet described, and then send at least one packet described of the wireless communication data after carrying described coding, after receiving at least one data described to make receiving terminal, parse the wireless communication data carried at least one packet described, and the account information utilizing described wireless communication data to characterize and network connect.
In another specific embodiment, when described first electronic equipment gets wireless communication data, and after encoding to described wireless communication data, the wireless communication data after coding is carried in the Subtype field in the mac frame head of at least one MAC data bag by described first electronic equipment; Particularly,
Dress up mac frame due to MAC data encapsulating to send in mac frame mode, and, in cryptographic algorithm, frame entity part in mac frame, also namely data field portion is encrypted, and mac frame head is not encrypted, so, receiving terminal can be convenient in the field be carried in mac frame head by the wireless communication data after coding and obtain this wireless communication data; That is, the idle component of field not encrypted in mac frame head can be utilized to carry the wireless communication data after coding; Such as, for 802.11 standards, the wireless communication data after coding is carried in the Subtype field of mac frame head; Further, because the type field in mac frame head can distinguish mac frame type, so mac frame type can be distinguished by the type field, as shown in the table;
Frame type The type field Subtype field
Management 00 0000-1101
Control 01 1000-1111
Data 10 0000-1111
Reserved 11 Nothing
In actual applications, for the type field be 00 Management frame in the 1110-1111 of Subtype field be idle; Be the 0000-0111 of Subtype field in the Control frame of 01 for the type field be idle; The Subtype field being 11 correspondences for the type field is all idle.Therefore, can in the following ways the wireless communication data after coding be carried in described Subtype field, namely be encoded by the 1110-1111 in Management frame Subtype field, such as, be expressed as 0 by 1110, be expressed as 1 by 1111; Encoded by the 0000-0111 in Control frame Subtype field, such as, 0000-0111 is corresponded to 0-7; The Subtype field being 11 correspondences by the type field is encoded, such as, may correspond to 0000-1111 in 0-15.
Like this, control method described in the embodiment of the present invention, by obtaining wireless communication data, described wireless communication data is encoded, according to default bearing mode, the wireless communication data after coding is carried at least one packet, and then send at least one packet described, realize the wireless communication data after by coding and be carried on object in packet; Further, due to described default bearing mode can be in three kinds of modes any one, any two kinds or any three kinds, so the wireless communication data after coding can be carried in packet by the embodiment of the present invention neatly, lay a good foundation for meeting consumers' demand.
Embodiment four
Fig. 4 is the realization flow schematic diagram four of embodiment of the present invention control method; Described method is applied to the second electronic equipment; As shown in Figure 4, described method comprises:
Step 401: obtain at least one packet described;
Step 402: resolve at least one packet described, to parse wireless communication data from default bearing mode;
Step 403: utilize described wireless communication data to carry out network settings, the account information characterized by described wireless communication data to make described second electronic equipment and network are connected;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
In the present embodiment, described second electronic equipment obtains at least one packet that enforcement one or embodiment two or the first electronic equipment described in embodiment three send, and parse the wireless communication data carried at least one packet described, and then connected by this wireless communication data and network, realize carrying out by hotspot and wireless network the object that is connected.
In the present embodiment, before at least one packet described in described parsing, described method also comprises:
Judge whether at least one packet described is provided with bearing identification;
Accordingly, resolve at least one packet described, to parse wireless communication data from default bearing mode, comprising:
When determining that at least one packet described is provided with described bearing identification, resolve at least one packet described being provided with described bearing identification, to parse wireless communication data from default bearing mode.
Embodiment five
Fig. 5 is the structural representation one of the embodiment of the present invention first electronic equipment; As shown in Figure 5, described first electronic equipment comprises:
First acquiring unit 51, for obtaining wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
Coding unit 52, for encoding to described wireless communication data, is carried at least one packet according to default bearing mode by the wireless communication data after coding, sends at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
Those skilled in the art are to be understood that, the function of each processing unit in first electronic equipment of the embodiment of the present invention, can refer to aforementioned applications to understand in the associated description of the control method of the first electronic equipment, each processing unit in first electronic equipment of the embodiment of the present invention, realizing by realizing the analog circuit of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
Embodiment six
Fig. 6 is the structural representation two of the embodiment of the present invention first electronic equipment; As shown in Figure 6, described first electronic equipment comprises:
First acquiring unit 51, for obtaining wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
Coding unit 52, for encoding to described wireless communication data, is carried at least one packet according to default bearing mode by the wireless communication data after coding, sends at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
In the present embodiment, described first electronic equipment also comprises:
Second acquisition unit 53, for obtaining residue bearing capacity corresponding to default bearing mode;
Computing unit 54, for calculating the number of desired data bag according to described residue bearing capacity;
Accordingly, described coding unit 52, also for according to default bearing mode by coding after wireless communication data be carried on calculate needed for number packet in.
In the present embodiment, described first electronic equipment also comprises:
Data cutout unit 55, for according to described residue bearing capacity, intercepts the subdata being less than or equal to residue bearing capacity, so that the wireless communication data after described coding is divided at least one subdata in wireless communication data in encoded;
Accordingly, described coding unit 52, also for according to default bearing mode at least one subdata described is carried on calculate needed for number packet in.
Those skilled in the art are to be understood that, the function of each processing unit in first electronic equipment of the embodiment of the present invention, can refer to aforementioned applications to understand in the associated description of the control method of the first electronic equipment, each processing unit in first electronic equipment of the embodiment of the present invention, realizing by realizing the analog circuit of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
Embodiment seven
Fig. 7 is the structural representation three of the embodiment of the present invention first electronic equipment; As shown in Figure 7, described first electronic equipment comprises:
First acquiring unit 51, for obtaining wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
Coding unit 52, for encoding to described wireless communication data, is carried at least one packet according to default bearing mode by the wireless communication data after coding, sends at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
In the present embodiment, described first electronic equipment also comprises:
Second acquisition unit 53, for obtaining residue bearing capacity corresponding to default bearing mode;
Computing unit 54, for calculating the number of desired data bag according to described residue bearing capacity;
Accordingly, described coding unit 52, also for according to default bearing mode by coding after wireless communication data be carried on calculate needed for number packet in.
In the present embodiment, described first electronic equipment also comprises:
Data cutout unit 55, for according to described residue bearing capacity, intercepts the subdata being less than or equal to residue bearing capacity, so that the wireless communication data after described coding is divided at least one subdata in wireless communication data in encoded;
Accordingly, described coding unit 52, also for according to default bearing mode at least one subdata described is carried on calculate needed for number packet in.
In the present embodiment, described first electronic equipment also comprises:
Setting unit 56, for arranging bearing identification at least one packet described in the wireless communication data after carrying described coding, picking out by described bearing identification the packet received to enable receiving terminal and whether carrying the wireless communication data after described coding.
In the present embodiment, described first electronic equipment also comprises:
3rd acquiring unit 57, for obtaining the data volume of the wireless communication data after coding;
Determining unit 58, for the data volume according to the wireless communication data after described coding, selects the target bearing mode corresponding with described data volume in described default bearing mode;
Accordingly, described coding unit 52, also for being carried at least one packet by the wireless communication data after coding according to the target bearing mode selected.
Those skilled in the art are to be understood that, the function of each processing unit in first electronic equipment of the embodiment of the present invention, can refer to aforementioned applications to understand in the associated description of the control method of the first electronic equipment, each processing unit in first electronic equipment of the embodiment of the present invention, realizing by realizing the analog circuit of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
Embodiment eight
Fig. 8 is the structural representation of the embodiment of the present invention second electronic equipment; As shown in Figure 8, described second electronic equipment comprises:
4th acquiring unit 81, for obtaining at least one packet described;
Resolution unit 82, for resolving at least one packet described, to parse wireless communication data from default bearing mode;
Network settings unit 83, for utilizing described wireless communication data to carry out network settings, the account information characterized by described wireless communication data to make described second electronic equipment and network are connected;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
In the present embodiment, described resolution unit, also for judging whether at least one packet described is provided with bearing identification; Also for when determining that at least one packet described is provided with described bearing identification, resolve at least one packet described being provided with described bearing identification, to parse wireless communication data from default bearing mode.
Those skilled in the art are to be understood that, the function of each processing unit in second electronic equipment of the embodiment of the present invention, can refer to aforementioned applications to understand in the associated description of the control method of the second electronic equipment, each processing unit in second electronic equipment of the embodiment of the present invention, realizing by realizing the analog circuit of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
In several embodiments that the application provides, should be understood that disclosed equipment and method can realize by another way.Apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each part or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing unit, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the present invention using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprises some instructions and performs all or part of of method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server or the network equipment etc.).And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (14)

1. a control method, is applied to the first electronic equipment; Described method comprises:
Obtain wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
Described wireless communication data is encoded, according to default bearing mode, the wireless communication data after coding is carried at least one packet, send at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
2. method according to claim 1, is characterized in that, described method also comprises:
Obtain and preset residue bearing capacity corresponding to bearing mode;
The number of desired data bag is calculated according to described residue bearing capacity;
Accordingly, described according to default bearing mode by coding after wireless communication data be carried at least one packet, comprising:
According to default bearing mode by coding after wireless communication data be carried on calculate needed for number packet in.
3. method according to claim 2, is characterized in that, described method also comprises:
According to described residue bearing capacity, intercept the subdata being less than or equal to residue bearing capacity in wireless communication data in encoded, so that the wireless communication data after described coding is divided at least one subdata;
Accordingly, described according to default bearing mode by coding after wireless communication data be carried on calculate needed for number packet in, comprising:
According to default bearing mode at least one subdata described is carried on calculate needed for number packet in.
4. method according to claim 1, is characterized in that, described method also comprises:
For at least one packet described in the wireless communication data after carrying described coding arranges bearing identification, pick out by described bearing identification the packet received to enable receiving terminal and whether carry the wireless communication data after described coding.
5. method according to claim 1, is characterized in that, described method also comprises:
Obtain the data volume of the wireless communication data after coding;
According to the data volume of the wireless communication data after described coding, in described default bearing mode, select the target bearing mode corresponding with described data volume;
Accordingly, described according to default bearing mode by coding after wireless communication data be carried at least one packet, comprising:
According to the target bearing mode selected, the wireless communication data after coding is carried at least one packet.
6. a control method, is applied to the second electronic equipment; Described method comprises:
Obtain at least one packet described;
Resolve at least one packet described, to parse wireless communication data from default bearing mode;
Utilize described wireless communication data to carry out network settings, the account information characterized by described wireless communication data to make described second electronic equipment and network are connected;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
7. method according to claim 6, is characterized in that, before at least one packet described in described parsing, described method also comprises:
Judge whether at least one packet described is provided with bearing identification;
Accordingly, resolve at least one packet described, to parse wireless communication data from default bearing mode, comprising:
When determining that at least one packet described is provided with described bearing identification, resolve at least one packet described being provided with described bearing identification, to parse wireless communication data from default bearing mode.
8. first electronic equipment, comprising:
First acquiring unit, for obtaining wireless communication data, described wireless communication data is connected to the account information of hotspot for characterizing;
Coding unit, for encoding to described wireless communication data, is carried at least one packet according to default bearing mode by the wireless communication data after coding, sends at least one packet described;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
9. the first electronic equipment according to claim 8, is characterized in that, described first electronic equipment also comprises:
Second acquisition unit, for obtaining residue bearing capacity corresponding to default bearing mode;
Computing unit, for calculating the number of desired data bag according to described residue bearing capacity;
Accordingly, described coding unit, also for according to default bearing mode by coding after wireless communication data be carried on calculate needed for number packet in.
10. the first electronic equipment according to claim 9, is characterized in that, described first electronic equipment also comprises:
Data cutout unit, for according to described residue bearing capacity, intercepts the subdata being less than or equal to residue bearing capacity, so that the wireless communication data after described coding is divided at least one subdata in wireless communication data in encoded;
Accordingly, described coding unit, also for according to default bearing mode at least one subdata described is carried on calculate needed for number packet in.
11. first electronic equipments according to claim 8, is characterized in that, described first electronic equipment also comprises:
Setting unit, for arranging bearing identification at least one packet described in the wireless communication data after carrying described coding, picking out by described bearing identification the packet received to enable receiving terminal and whether carrying the wireless communication data after described coding.
12. first electronic equipments according to claim 8, is characterized in that, described first electronic equipment also comprises:
3rd acquiring unit, for obtaining the data volume of the wireless communication data after coding;
Determining unit, for the data volume according to the wireless communication data after described coding, selects the target bearing mode corresponding with described data volume in described default bearing mode;
Accordingly, described coding unit, also for being carried at least one packet by the wireless communication data after coding according to the target bearing mode selected.
13. a kind of second electronic equipment, comprising:
4th acquiring unit, for obtaining at least one packet described;
Resolution unit, for resolving at least one packet described, to parse wireless communication data from default bearing mode;
Network settings unit, for utilizing described wireless communication data to carry out network settings, the account information characterized by described wireless communication data to make described second electronic equipment and network are connected;
Wherein, described default bearing mode comprises at least one in following bearing mode: the wireless communication data after utilizing the data packet length of at least one packet described to carry described coding, wireless communication data after utilizing the address information of at least one packet described to carry described coding, the wireless communication data after utilizing the first field information of at least one packet described to carry described coding; Described first field information is different from the data field information carried in described packet.
14. second electronic equipments according to claim 13, is characterized in that, described resolution unit, also for judging whether at least one packet described is provided with bearing identification;
Also for when determining that at least one packet described is provided with described bearing identification, resolve at least one packet described being provided with described bearing identification, to parse wireless communication data from default bearing mode.
CN201510618675.7A 2015-09-24 2015-09-24 A kind of control method and electronic equipment Active CN105187164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510618675.7A CN105187164B (en) 2015-09-24 2015-09-24 A kind of control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510618675.7A CN105187164B (en) 2015-09-24 2015-09-24 A kind of control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105187164A true CN105187164A (en) 2015-12-23
CN105187164B CN105187164B (en) 2019-08-27

Family

ID=54909035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510618675.7A Active CN105187164B (en) 2015-09-24 2015-09-24 A kind of control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105187164B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110122858A1 (en) * 2009-11-16 2011-05-26 Yashiro Yuichi Wireless transmitter-receiver and mobile object management system
CN104010327A (en) * 2014-06-18 2014-08-27 江勇 Method and system for quickly having access to WIFI wireless network
CN104144034A (en) * 2013-12-04 2014-11-12 腾讯科技(深圳)有限公司 Password sharing and obtaining methods and devices
CN104660726A (en) * 2015-02-03 2015-05-27 普联技术有限公司 Network configuration method, device and system for intelligent device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110122858A1 (en) * 2009-11-16 2011-05-26 Yashiro Yuichi Wireless transmitter-receiver and mobile object management system
CN104144034A (en) * 2013-12-04 2014-11-12 腾讯科技(深圳)有限公司 Password sharing and obtaining methods and devices
CN104010327A (en) * 2014-06-18 2014-08-27 江勇 Method and system for quickly having access to WIFI wireless network
CN104660726A (en) * 2015-02-03 2015-05-27 普联技术有限公司 Network configuration method, device and system for intelligent device

Also Published As

Publication number Publication date
CN105187164B (en) 2019-08-27

Similar Documents

Publication Publication Date Title
CN103068070B (en) A kind of machinery of consultation of protocol version, mobile terminal, base station and communication system
CN103249047B (en) The access authentication method and device of WLAN hot spot
JP4814992B2 (en) Base station, radio control apparatus, radio apparatus, and data transfer method
CN104581647A (en) Network access method and device of intelligent equipment
CN105546931A (en) Intelligent refrigerator netting-in method and system, intelligent refrigerator, intelligent terminal and server
CN104506397A (en) Method and system for intelligent equipment to be accessed into local area network
CN105357737A (en) Method and device for accessing WiFi device to wireless access point
CN101951665A (en) Routing method of double-card mobile terminal and double-card mobile terminal
CN104333610A (en) IPv6 address allocation method and device
CN105188056A (en) Method and device for connecting WiFi (Wireless Fidelity) equipment with access point
US20150040196A1 (en) Network connecting device, system and method for same
CN104811357A (en) Internet-of-things system
CN101873720A (en) Method for establishing wireless connections and wireless access device
CN103906249A (en) Frequency-spectrum-resource distribution method and system, and access network device
CN104661177A (en) Method, system and equipment for realizing D2D communication
CN104581886A (en) Method and system for data transmission and wireless connection of terminal and wireless device
CN103535068A (en) Data transmission method, device, equipment, and base station
CN102713795B (en) Terminal, I/O expanding unit, method and system
CN101902779A (en) Method, device and system for controlling credibility resource allocation of uplink enhanced dedicated channel
CN201263162Y (en) Wireless gateway
CN101877845B (en) WLAN (Wireless Local Area Network) access gateway as well as billing system and method by scenes
CN105187164A (en) Control method and electronic device
CN103152777B (en) Communicator and frequency band switching method
CN102820992A (en) Processing method and device of data packets
CN105357671A (en) System and method for connecting wireless access points with same SSID and different passwords

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant