The invention relates to the field of
wireless links, and discloses a frequency hopping method based on CSMA, and the frequency hopping method based on CSMA comprises the following steps: S1, channel planning and
numbering: dividing 2.4 G and 5.8 G frequency bands into specific channels, and constructing a data table containing various information; s2, frequency point RSSI
data acquisition: according to a CSMA /
CA protocol, setting
system slot time to be 20us, and adding a frequency sweeping time slot Scan segment; s3, channel quality evaluation and sorting: defining a table structure for storing data; and S4, frequency hopping triggering judgment: by setting a frequency hopping triggering rule, triggering frequency hopping when a condition which is the same as the rule occurs. According to the method, under the condition that a CSMA /
CA protocol is not damaged, the frequency sweeping time slot can be inserted by modifying backoff window parameters, the frequency hopping frequency can be controlled by adjusting the
beacon frame sending interval, switching of the working frequency points is triggered after main sending of the
beacon, frequency point switching of the whole
system equipment can be completed at the minimum cost or approximately synchronously, and the
system efficiency is improved. And communication performance reduction caused by frequent frequency hopping is avoided.