WIFI data transmission method, system and correlation technique thereofTechnical field
The present invention relates to a kind of WIFI data transmission method, system and correlation technique thereof.
Background technology
WIFI local area network (LAN) is general to be adopted and is encrypted as cipher modes such as WPA WPA2WEP, multicast is sent in the circulation of WIFI hotspot device, application terminal if desired connects WIFI local area network (LAN) as mobile phone, notebook or panel computer, need to obtain the password of WIFI local area network (LAN), can carry out transfer of data by WIFI local area network (LAN), WIFI data transfer mode is comparatively limited to.
Summary of the invention
For the deficiencies in the prior art, object of the present invention is intended to provide a kind of WIFI data transmission method, system and correlation technique thereof solving the problems of the technologies described above.
For achieving the above object, the present invention adopts following technical scheme:
A kind of WIFI data transmission method, it comprises the following steps:
Steps A: transmitting terminal is treated to the raw information of need transmission the data to be sent of binary form;
Step B: data to be sent are added multicast ip address by transmitting terminal;
Step C: this multicast ip address is mapped as corresponding multicast mac address by transmitting terminal;
Step D: the multicast packet that comprises this multicast mac address is sent in transmitting terminal circulation;
Step e: receiving terminal scan round WIFI passage, to detect above-mentioned multicast packet;
Step F: receiving terminal obtains the multicast mac address of this multicast packet in the time this multicast packet being detected;
Step G: receiving terminal extracts the data to be sent of the binary form of this multicast mac address; And
Step H: receiving terminal is reduced to these data to be sent the raw information that needs transmission.
Further, the raw information of the need of steps A transmission is the information that the plaintext through encrypting, encode or arranging was processed.
Further, step B is that data to be sent are added the low 23 of multicast ip address by transmitting terminal.
Further, step G is that receiving terminal is decrypted these data to be sent, decode or is reduced into the initial data that needs transmission by the plaintext of agreement.
A kind of WIFI data transmission system, it comprises with lower module:
Modules A is applied to transmitting terminal: the data to be sent that the raw information of need transmission are treated to binary form;
Module B is applied to transmitting terminal: data to be sent are added to multicast ip address;
Module C is applied to transmitting terminal: this multicast ip address is mapped as to corresponding multicast mac address;
Module D is applied to transmitting terminal: the multicast packet that comprises this multicast mac address is sent in circulation;
Module E application receiving terminal: scan round WIFI passage, to detect above-mentioned multicast packet;
Module F application receiving terminal: the multicast mac address that obtains this multicast packet in the time this multicast packet being detected;
Module G application receiving terminal: the data to be sent that extract the binary form of this multicast mac address; And
Module H application receiving terminal: these data to be sent are reduced to the raw information that needs transmission.
Further, the raw information of the need of modules A transmission is the information that the plaintext through encrypting, encode or arranging was processed;
Module G is decrypted these data to be sent, decode or is reduced into the initial data that needs transmission by the plaintext of agreement.
Further, data to be sent are added the low 23 of multicast ip address by module B.
A kind of WIFI data transmission method for uplink, is applied to transmitting terminal, and it comprises the following steps:
Raw information waiting for transmission is treated to the data to be sent of binary form;
Data to be sent are added to multicast ip address;
This multicast ip address is mapped as to corresponding multicast mac address; And
Send out the multicast packet that comprises this multicast mac address.
A kind of WIFI data receive method, is applied to receiving terminal, and it comprises the following steps:
Scanning WIFI passage, with test set unicast packets;
In the time this multicast packet being detected, obtain the multicast mac address of this multicast packet;
Extract the data to be restored of the binary form of this multicast mac address; And
These data to be restored are reduced to the raw information that needs transmission.
A kind of WIFI configuration information obtaining method, it comprises the following steps:
By WIFI hotspot device, the SSID of WIFI and PSK are passed through to the plaintext processing of encrypting, encoding or arranging, then be converted to the data to be sent of binary form;
By WIFI hotspot device, data to be sent are added to multicast ip address;
By WIFI hotspot device, this multicast ip address is mapped as to corresponding multicast mac address;
Send by the circulation of WIFI hotspot device the multicast packet that comprises this multicast mac address;
By application terminal scan round WIFI passage, to detect above-mentioned multicast packet;
In the time this multicast packet being detected, obtain the multicast mac address of this multicast packet by application terminal;
Extract the data to be sent of the binary form of this multicast mac address by application terminal; And
By application terminal, these data to be sent are reduced into SSID and the PSK information of this WIFI hotspot device by the plaintext of deciphering, decoding or agreement.
Beneficial effect of the present invention is as follows:
Above-mentioned WIFI data transmission method is set to data to be transmitted in multicast address, and receiving terminal further obtains by obtaining multicast address the raw information that needs transmission, so, can realize and in WIFI network, carry out communication without deciphering WIFI.
Brief description of the drawings
Fig. 1 is the flow chart of the preferred embodiments of WIFI data transmission method of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the present invention is described further:
Refer to Fig. 1, the present invention relates to a kind of WIFI data transmission method, its preferred embodiments comprises the following steps:
Steps A: transmitting terminal is treated to the raw information of need transmission the data to be sent of binary form.Wherein, this raw information that need transmit is the information that the plaintext through encrypting, encode or arranging was processed.
Step B: the data to be sent of binary form are added multicast ip address by transmitting terminal.Particularly, data to be sent are added to the low 23 of multicast ip address in the mode of position, for example, if the binary form of data to be sent is shown 1,010,101 11,011,110 10101010, so, the binary representation of corresponding multicast ip address will be 11,100,000 01,010,101 1101111010101010 (being that IP address is 224.85.222.170).
Step C: this multicast ip address is mapped as corresponding multicast mac address by transmitting terminal.For example, above-mentioned multicast ip address is 224.85.222.170, and the multicast mac address after mapping corresponds to 01:00:5E:55:DE:AA.
Step D: the multicast packet that comprises this multicast mac address is sent in transmitting terminal circulation.
Step e: receiving terminal scan round WIFI passage, to detect above-mentioned multicast packet.
Step F: receiving terminal obtains the multicast mac address of this multicast packet in the time this multicast packet being detected.For example, the multicast mac address that receiving terminal acquires is 01:00:5E:55:DE:AA.And
Step G: receiving terminal extracts the data to be sent of the binary form of this multicast mac address.For example, multicast mac address is 01:00:5E:55:DE:AA, and the data to be restored that acquire from this multicast mac address are 1,010,101 11,011,110 10101010.
Step H: receiving terminal is reduced to these data to be restored the raw information that needs transmission.Particularly, these data to be restored be decrypted, decoded or be reduced into the raw information that needs transmission by the plaintext of agreement.
Above-mentioned WIFI data transmission method is set to data to be transmitted in multicast address, and receiving terminal further obtains by obtaining multicast address the raw information that needs transmission, so, can realize and in WIFI network, carry out communication without deciphering WIFI.
The invention still further relates to a kind of WIFI data transmission method for uplink, be applied to transmitting terminal, it comprises the following steps:
Raw information waiting for transmission is treated to the data to be sent of binary form;
Data to be sent are added to multicast ip address;
This multicast ip address is mapped as to corresponding multicast mac address; And
Send out the multicast packet that comprises this multicast mac address.
The invention still further relates to a kind of WIFI data receive method, be applied to receiving terminal, it comprises the following steps:
Scanning WIFI passage, with test set unicast packets;
In the time this multicast packet being detected, obtain the multicast mac address of this multicast packet;
Extract the data to be restored of the binary form of this multicast mac address; And
These data to be restored are reduced to the raw information that needs transmission.
The invention still further relates to a kind of WIFI configuration information obtaining method, it comprises the following steps:
By WIFI hotspot device by the SSID of WIFI (service set identifier, service set) and PSK (pre-shared key, wildcard pattern) pass through the plaintext processing of encryption, coding or agreement, then be converted to the data to be sent of binary form;
By WIFI hotspot device, data to be sent are added to multicast ip address;
By WIFI hotspot device, this multicast ip address is mapped as to corresponding multicast mac address;
Send by the circulation of WIFI hotspot device the multicast packet that comprises this multicast mac address;
By application terminal scan round WIFI passage, to detect above-mentioned multicast packet;
In the time this multicast packet being detected, obtain the multicast mac address of this multicast packet by application terminal;
Extract the data to be sent of the binary form of this multicast mac address by application terminal; And
By application terminal, these data to be sent are reduced into SSID and the PSK information of this WIFI hotspot device by the plaintext of deciphering, decoding or agreement.
So, WIFI application terminal is without utilizing other WIFI network or Ethernet can obtain SSID and the PSK information of WIFI hotspot device.
For a person skilled in the art, can be according to technical scheme described above and design, make other various corresponding changes and distortion, and these all changes and distortion all should belong to the protection range of the claims in the present invention within.