The embodiment of the invention discloses a LiFi non-inductive switching method and
system based on a WiFi
protocol stack, and the method comprises the steps: receiving a downlink optical
signal broadcasted by a plurality of LiFi light sources, carrying out the conversion and
demodulation, extracting a serial number and
signal intensity, carrying out the analysis, building an
available light source
list, and when the
signal intensity of the currently connected LiFi
light source is detected to be lower than a preset threshold value, carrying out the switching of the LiFi
light source. And selecting the LiFi
light source with the maximum
signal intensity from the
available light source
list as a target light source, packaging an association request comprising the
MAC address of the terminal and the serial number of the target light source through a WiFi
protocol stack, modulating the association request into an uplink
light signal, and sending the uplink
light signal to the target light source. Automatic non-inductive switching of the terminal among the multiple LiFi light sources is achieved through the WiFi
protocol stack, and the problems that in the prior art, switching
delay is large, the
system development cost is high, and compatibility with existing
wireless communication equipment is poor are solved.