Wireless network communication method compatible with low rate
Technical Field
The invention relates to a wireless network communication method compatible with low rate.
Background
The Institute of Electrical and Electronics Engineers (IEEE) has developed a standard IEEE802.11 for a Wireless Local Area Network (WLAN), and the lowest rate defined for IEEE802.11 in a Wi-Fi (wireless communication technology) protocol is 1Mbps, a signal coverage of the wireless local area network is inversely proportional to a transmission rate, and the higher the rate, the smaller the signal coverage, and in order to expand the signal coverage, a method of reducing an operating frequency while reducing the transmission rate may be employed. Generally, the Wi-Fi protocol can be compatible with a basic rate set and a high rate set, but is rarely compatible with a low rate set lower than 1Mbps, which reduces operability.
Disclosure of Invention
The invention provides a wireless network communication method compatible with low rate, which realizes the compatibility of a master station and an access point to the low rate on software, improves the adaptability, enlarges the application range and saves the cost.
In order to achieve the above object, the present invention provides a method for communicating with a low-rate compatible wireless network, comprising:
step S1, defining vendor specific elements in the media access control layer MAC of the management frames of the master station supporting low rates and some access points supporting low rates, and defining a low rate set in the vendor specific elements;
the management frame comprises: a beacon frame, a probe request frame, a probe response frame, an association request frame, an association response frame, a reassociation request frame and a reassociation response frame;
step S2, the compatible low-rate master station broadcasts and sends the probe request frame to the access points in the signal coverage range at the basic rate and the low rate, and simultaneously receives the beacon frame broadcast and sent by the compatible or incompatible low-rate access points at the basic rate and/or the low rate or the probe response frame unicast and sent, thereby determining the type of the access points;
step S3, according to the types of different access points, the master station compatible with low rate and the access points compatible or incompatible with low rate respectively establish the rate sets supported by both sides, so as to realize the wireless connection between the master station and the access points;
and step S4, according to the established rate set supported by both sides, the master station and the access point in wireless connection adopt the rate in the rate set to carry out data transmission.
The MAC of the MAC layer of the management frame includes: MAC head, service set identification SSID, basic rate set, extended rate set, supplier specific element, frame check sequence FCS;
the vendor specific elements include: identification number ID, length, data information;
defining a low rate set protocol in said data message, which contains low rate related parameter settings.
The step S2 specifically includes the following steps:
step S2.1, the compatible low-rate master station broadcasts and sends a detection request frame on each channel at a basic rate and a low rate respectively to ensure that all access points can receive the detection request frame;
meanwhile, the access point compatible with the low rate respectively broadcasts and transmits a beacon frame to surrounding main stations at the basic rate and the low rate on each channel, or unicasts and transmits a probe response frame to the main station compatible with the low rate at the basic rate and the low rate;
an access point only supporting low rate broadcasts and transmits a beacon frame to surrounding main stations at low rate on each channel, or transmits a probe response frame to the compatible low rate main station in a unicast mode at low rate;
the normal access point broadcasts and transmits a beacon frame to surrounding main stations at a basic rate on each channel, or transmits a probe response frame to the compatible low-rate main station in a unicast mode at the basic rate;
step S2.2, after receiving the beacon frame or the probe response frame sent by the access point, the master station compatible with the low rate determines, according to the provider specific element, whether the type of the access point is an access point compatible with the low rate, an access point only supporting the low rate, or a normal access point.
In step S3, the method for establishing a wireless connection between the low-rate compatible master station and the low-rate compatible access point specifically includes:
the master station compatible with the low rate unicast transmits association request frames or re-association request frames to the access point compatible with the low rate at the basic rate and the low rate on each channel;
after receiving the association request frame or the re-association request frame, the access point compatible with the low rate unicast transmits an association response frame or a re-association response frame to the master station compatible with the low rate at the basic rate and the low rate on one hand, and on the other hand, acquires a low rate set supported by the master station compatible with the low rate from the provider specific element in the association request frame or the re-association request frame, and establishes a rate set supported by both sides of the master station compatible with the low rate which is currently connected, wherein the rate set comprises both the basic rate set and the low rate set;
after receiving the association response frame or the re-association response frame, the master station compatible with the low rate acquires a low rate set supported by the access point compatible with the low rate from a provider specific element in the association response frame or the re-association response frame, and establishes a rate set supported by both the access point compatible with the low rate and currently connected, wherein the rate set comprises both a basic rate set and a low rate set.
In step S3, the method for establishing a wireless connection between the master station compatible with the low rate and the access point only supporting the low rate specifically includes:
the master station compatible with the low rate unicast transmits an association request frame or a re-association request frame to an access point only supporting the low rate on each channel in a low rate unicast mode;
after an access point only supporting low rate receives an association request frame or a re-association request frame, on one hand, the access point unicasts and sends an association response frame or a re-association response frame to a master station compatible with the low rate, on the other hand, a low rate set supported by the master station compatible with the low rate is obtained from a supplier specific element in the association request frame or the re-association request frame, and a rate set supported by both sides of the master station compatible with the low rate connected currently is established, wherein the rate set only comprises the low rate set;
after receiving the association response frame or the re-association response frame, the master station compatible with the low rate acquires a low rate set supported by the access point only supporting the low rate from the provider specific element in the association response frame or the re-association response frame, and establishes a rate set supported by both access points only supporting the low rate and currently connected, wherein the rate set only comprises the low rate set.
In step S3, the method for establishing a wireless connection between the master station compatible with the low rate and the normal access point specifically includes:
the master station compatible with the low rate unicast transmits an association request frame or a re-association request frame to the normal access point on each channel at the basic rate;
after receiving the association request frame or the re-association request frame, the normal access point unicast transmits an association response frame or a re-association response frame to the master station compatible with the low rate at the basic rate;
and after receiving the association response frame or the re-association response frame, the master station compatible with the low speed establishes wireless connection with the currently connected normal access point.
In step S4, the method for data transmission between the master station compatible with the low rate and the access point compatible with the low rate specifically includes:
the data can be transmitted between the master station compatible with the low rate and the access point compatible with the low rate by adopting the basic rate and the low rate;
when the basic rate cannot be used to maintain the wireless connection and data transmission between the low rate compatible master station and the low rate compatible access point, the low rate is used to transmit data.
In step S4, the method for data transmission between the master station compatible with the low rate and the access point only supporting the low rate specifically includes:
and the low-rate compatible master station and the access point only supporting the low rate automatically adjust the rate to maintain connection and data transmission.
In step S4, the method for data transmission between the master station compatible with the low rate and the normal access point specifically includes:
and the low-rate compatible master station transmits data with the basic rate between the normal access point and the low-rate compatible master station.
The invention realizes the compatibility of the master station and the access point to the low rate in software, enables the devices supporting the low rate to mutually discover and establish connection to realize data communication, improves the adaptability and enlarges the application range.
Drawings
Fig. 1 is a flowchart of a method for communicating with a low-rate compatible wireless network according to the present invention.
Fig. 2 is a frame format of a medium access control layer MAC of a management frame.
Fig. 3 is a frame format of vendor specific elements.
Fig. 4 is a frame format of data information in vendor specific elements.
Detailed Description
The preferred embodiment of the present invention will be described in detail below with reference to fig. 1 to 4.
As shown in fig. 1, the present invention provides a communication method compatible with a low-rate wireless network, comprising the following steps:
step S1, defining Vendor Specific elements (Vendor Specific elements) in the MAC of the MAC layers of the management frames of the master Station (Station) supporting low rate and some Access Points (APs) supporting low rate, and defining a low rate set in the Vendor Specific elements;
the master station supporting low rate and the access point supporting low rate refer to that hardware equipment of the master station supports low rate; the access point supporting the low rate means that the hardware equipment of the access point supports the low rate;
the management frame comprises: beacon frame (Beacon), Probe Request frame (Probe Request), Probe Response frame (Probe Response), association Request frame (Associate Request), association Response frame (Associate Response), reassociation Request frame (reassociation Request) and reassociation Response frame (reassociation Response);
as shown in fig. 2, the MAC of the MAC frame includes: MAC head, service set identification SSID, basic rate set, extended rate set, supplier specific element, frame check sequence FCS;
as shown in fig. 3, the vendor specific elements include: identification number ID, length, data information (data);
as shown in fig. 4, a low rate set protocol is defined in the data information, and the data information includes low rate related parameter settings supported by itself;
step S2, the compatible low-rate master station broadcasts and sends the probe request frame to the access points in the signal coverage range at the basic rate and the low rate, and simultaneously receives the beacon frame broadcast and sent by the compatible or incompatible low-rate access points at the basic rate and/or the low rate or the probe response frame unicast and sent, thereby determining the type of the access points;
step S2.1, the compatible low-rate master station broadcasts and sends a detection request frame on each channel at a basic rate and a low rate respectively to ensure that all access points can receive the detection request frame;
meanwhile, the access point compatible with the low rate respectively broadcasts and transmits a beacon frame to surrounding main stations at the basic rate and the low rate on each channel, or unicasts and transmits a probe response frame to the main station compatible with the low rate at the basic rate and the low rate;
an access point only supporting low rate broadcasts and transmits a beacon frame to surrounding main stations at low rate on each channel, or transmits a probe response frame to the compatible low rate main station in a unicast mode at low rate;
the normal access point broadcasts and transmits a beacon frame to surrounding main stations at a basic rate on each channel, or transmits a probe response frame to the compatible low-rate main station in a unicast mode at the basic rate;
step S2.2, after receiving the beacon frame or the detection response frame sent by the access point, the master station compatible with the low rate determines whether the type of the access point is the access point compatible with the low rate, the access point only supporting the low rate or the normal access point according to the specific elements of the supplier;
step S3, according to the types of different access points, the master station compatible with low rate and the access points compatible or incompatible with low rate respectively establish the rate sets supported by both sides, so as to realize the wireless connection between the master station and the access points;
the method for establishing a wireless connection between a low-rate compatible master station and a low-rate compatible access point specifically comprises the following steps:
the master station compatible with the low rate unicast transmits association request frames or re-association request frames to the access point compatible with the low rate at the basic rate and the low rate on each channel;
after receiving the association request frame or the re-association request frame, the access point compatible with the low rate unicast transmits an association response frame or a re-association response frame to the master station compatible with the low rate at the basic rate and the low rate on one hand, and on the other hand, acquires a low rate set supported by the master station compatible with the low rate from the provider specific element in the association request frame or the re-association request frame, and establishes a rate set supported by both sides of the master station compatible with the low rate which is currently connected, wherein the rate set comprises both an 802.11 basic rate set and a low rate set;
after receiving the association response frame or the re-association response frame, the master station compatible with the low rate acquires a low rate set supported by the access point compatible with the low rate from a provider specific element in the association response frame or the re-association response frame, and establishes a rate set supported by both the access point compatible with the low rate and currently connected, wherein the rate set comprises both an 802.11 basic rate set and a low rate set;
the method for establishing a wireless connection between a low-rate compatible master station and an access point supporting only low rate specifically comprises the following steps:
the master station compatible with the low rate unicast transmits an association request frame or a re-association request frame to an access point only supporting the low rate on each channel in a low rate unicast mode;
after an access point only supporting low rate receives an association request frame or a re-association request frame, on one hand, the access point unicasts and sends an association response frame or a re-association response frame to a master station compatible with the low rate, on the other hand, a low rate set supported by the master station compatible with the low rate is obtained from a supplier specific element in the association request frame or the re-association request frame, and a rate set supported by both sides of the master station compatible with the low rate connected currently is established, wherein the rate set only comprises the low rate set;
after receiving the association response frame or the re-association response frame, the master station compatible with the low rate acquires a low rate set supported by the access point only supporting the low rate from a provider specific element in the association response frame or the re-association response frame, and establishes a rate set supported by both access points only supporting the low rate and currently connected, wherein the rate set only comprises the low rate set;
the method for establishing the wireless connection between the master station compatible with the low rate and the normal access point specifically comprises the following steps:
the master station compatible with the low rate unicast transmits an association request frame or a re-association request frame to the normal access point on each channel at the basic rate;
after receiving the association request frame or the re-association request frame, the normal access point unicast transmits an association response frame or a re-association response frame to the master station compatible with the low rate at the basic rate;
after receiving the association response frame or the re-association response frame, the master station compatible with the low rate establishes wireless connection with the currently connected normal access point;
step S4, according to the speed set supported by both sides, the data transmission is carried out between the main station and the access point in wireless connection by adopting the speed in the speed set;
the method for data transmission between the low-rate compatible master station and the low-rate compatible access point specifically comprises the following steps:
the data can be transmitted between the master station compatible with the low rate and the access point compatible with the low rate by adopting the basic rate and the low rate;
when the basic rate cannot maintain the wireless connection and data transmission between the master station compatible with the low rate and the access point compatible with the low rate, the low rate is adopted to transmit data;
the method for data transmission between a low-rate compatible master station and an access point supporting only low rate specifically comprises the following steps:
the method comprises the following steps that data are transmitted at a low rate between a master station compatible with the low rate and an access point only supporting the low rate, and the connection and data transmission are maintained by self-adjusting the rate between the master station compatible with the low rate and the access point only supporting the low rate;
the method for data transmission between the low-rate compatible master station and the normal access point specifically comprises the following steps:
and the low-rate compatible master station transmits data with the basic rate between the normal access point and the low-rate compatible master station.
The invention realizes the compatibility of the master station and the access point to the low rate in software, enables the devices supporting the low rate to mutually discover and establish connection to realize data communication, improves the adaptability and enlarges the application range.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.