Optical carrier information transmission method and equipment based on multicolor light source, and medium

By using a full-spectral semiconductor light emitting device and multiple LED light sources in the optical information transmission system, the data is divided and scheduled according to the data characteristics and the light source bandwidth, the problem of bandwidth overload when multi-color light sources are used simultaneously is solved, and the transmission stability and efficiency are improved.

CN119544074AActive Publication Date: 2025-02-28XUYU OPTOELECTRONICSSHENZHEN CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411659595.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2025-02-28
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

The existing multi-color light load information transmission scheme is prone to bandwidth overload when all multi-color light sources are used for data transmission at the same time, resulting in data loss.

Method used

By using a full spectrum semiconductor light emitting device at the emitting end, including a plurality of LED light sources with different light emission wavelengths, the data is distinguished in type and size according to the basic parameters of the data to be transmitted and the bandwidth capacity of the LED light source, and the most suitable target LED light source is selected for optical information transmission.

Benefits of technology

It effectively reduces conflicts and collisions during data transmission, improves the stability and reliability of the system, reduces the loss of data transmission, and optimizes the signal quality and power efficiency of optical information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544074A_ABST
    Figure CN119544074A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of optical carrier information, provides an optical carrier information transmission method and equipment based on a multicolor light source and a medium, and is used for solving the problem that data loss is easily caused by data transmission of the multicolor light source in the prior art. The method comprises the following steps: acquiring basic parameters of data to be transmitted; determining first transmission demand information of the to-be-transmitted data according to the basic parameters; determining the second preset number according to the bandwidth capacity of each LED light source; performing data division on the to-be-transmitted data according to the data type and the second preset number to obtain data fragments; determining a second preset number of target LED light sources according to the light emitting characteristic parameters of the LED light sources and the first transmission demand information; processing the data fragments corresponding to the corresponding target LED light sources according to the LED light sources and a corresponding preset modulation algorithm to obtain corresponding light source control signals; and controlling a corresponding target LED light source to carry out optical carrier information transmission according to the light source control signal.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application filed on September 6, 2024, with the invention name “Light-carrying information transmission method and light source equipment based on full-spectrum LED” and application number 202411250653.5. Technical Field

[0002] The present invention relates to the field of light-borne information, and in particular to a light-borne information transmission method, device and medium based on a multi-color light source. Background Art

[0003] Optical Carrier Information Technology (OCIT) is a technology that uses optical signals as information transmission carriers. Compared with traditional electromagnetic wave signal transmission technology, OCIT has higher bandwidth, faster transmission speed and lower signal attenuation. It is widely used in optical fiber communication, visible light communication (VLC) and other fields, greatly promoting the development of modern communication technology. OCIT is not only of great significance in improving communication efficiency and quality, but also shows significant advantages in reducing energy consumption and electromagnetic interference.

[0004] The multi-color light-carrying information transmission scheme is an innovative application of light-carrying information technology. It transmits different data fragments simultaneously through multiple wavelength light sources to achieve high-speed and high-capacity information transmission. In this scheme, each LED light source is responsible for the transmission of optical signals in a specific wavelength range, and multiple LED light sources work together to achieve bandwidth superposition and increase data transmission rate.

[0005] Although the existing multi-color light-carrying information transmission scheme has made significant progress in improving the transmission rate and capacity, there are still some problems that need to be solved. One of the main problems is that when all multi-color light sources are used for data transmission at the same time, bandwidth overload is prone to occur because the type and size of the transmitted data are not effectively divided, resulting in data loss. Summary of the invention

[0006] In view of this, the embodiments of the present invention provide a method, device and medium for light-borne information transmission based on a multi-color light source, so as to solve the problem in the prior art that data loss is easily caused when multi-color light sources are used for data transmission at the same time.

[0007] In a first aspect, an embodiment of the present invention provides a method for transmitting information carried by light based on a full spectrum, which is applied to a transmitting end, wherein the transmitting end includes a full-spectrum semiconductor light-emitting device, wherein the full-spectrum semiconductor light-emitting device includes a first preset number of LED light sources with different light-emitting wavelengths, and the adjustment range of the light-emitting wavelength of each of the LED light sources belongs to a different wavelength interval, and the method includes:

[0008] Acquire basic parameters of the data to be transmitted, wherein the basic parameters include data type and data size;

[0009] Determine first transmission requirement information of the data to be transmitted according to the basic parameters, wherein the first transmission requirement information includes a bandwidth requirement parameter and a rate requirement parameter;

[0010] Determining the second preset number according to the bandwidth capacity of each LED light source;

[0011] Dividing the data to be transmitted according to the data type and the second preset number to obtain data segments;

[0012] Determining a second preset number of target LED light sources according to the light emitting characteristic parameters of the LED light source and the first transmission requirement information;

[0013] Processing the data fragment corresponding to the corresponding target LED light source according to each of the LED light sources and the corresponding preset modulation algorithm to obtain a corresponding light source control signal;

[0014] According to the light source control signal, the corresponding target LED light source is controlled to transmit the light-carrying information.

[0015] Preferably, determining the second preset number according to the bandwidth capacity of each LED includes:

[0016] According to each of the preset modulation algorithms, obtaining the minimum bandwidth capacity and the maximum bandwidth capacity of each LED;

[0017] Calculating an average according to the minimum bandwidth capacity and the maximum bandwidth capacity to obtain an average bandwidth capacity;

[0018] According to the average bandwidth capacity and the bandwidth requirement parameter, matching is performed to determine the second preset number of LEDs.

[0019] Preferably, the obtaining the mean bandwidth capacity by calculating the mean according to the minimum bandwidth capacity and the maximum bandwidth capacity comprises:

[0020] Calculating a sum of the minimum bandwidth capacity and the maximum bandwidth capacity to obtain a capacity sum;

[0021] According to the capacity and value, an average is calculated to obtain the mean bandwidth capacity.

[0022] Preferably, dividing the data to be transmitted according to the data type and the second preset number to obtain data segments includes:

[0023] According to the data type, obtaining a corresponding data partitioning strategy;

[0024] According to the data partitioning strategy, the data to be transmitted is divided to obtain data segments.

[0025] Preferably, dividing the data to be transmitted to obtain data segments according to the data division strategy includes:

[0026] If the data type is video, dividing the data to be transmitted according to the number of data frames to obtain data segments;

[0027] If the data type is audio, dividing the data to be transmitted according to data time slices to obtain data segments;

[0028] If the data type is text, the data to be transmitted is divided according to the number of data characters to obtain data segments.

[0029] Preferably, determining a second preset number of target LED light sources according to the light emitting characteristic parameters of the LED light sources and the first transmission requirement information comprises:

[0030] Determine second transmission requirement information of each of the data segments according to the first transmission requirement information, wherein the first transmission requirement information includes a bandwidth requirement parameter and a rate requirement parameter;

[0031] Screening the LED light sources according to the second transmission requirement information to obtain candidate LED light sources, wherein the number of the candidate LED light sources is greater than or equal to the second preset number and less than or equal to the first preset number;

[0032] When the number of the candidate LED light sources is greater than the second preset number, determining the second preset number of candidate LED light sources as target LED light sources according to the light emission characteristic parameters of the candidate LED light sources;

[0033] When the number of the candidate LED light sources is equal to the second preset number, the candidate LED light sources are used as target LED light sources.

[0034] Preferably, the processing of the data fragment corresponding to the corresponding target LED light source according to each of the LED light sources and the corresponding preset modulation algorithm to obtain the corresponding light source control signal includes:

[0035] Obtaining the frequency response characteristics of each of the target LED light sources, wherein the frequency response characteristics include: operating frequency range, bandwidth capacity, modulation efficiency and maximum transmission rate;

[0036] Acquire second transmission requirement information of each of the data segments, wherein the second transmission requirement information includes: data segment bandwidth requirement, data segment rate requirement and priority;

[0037] Calculate the difference between the bandwidth capacity of each of the target LED light sources and the data segment bandwidth requirement of each of the data segments, and record it as a first difference;

[0038] Calculate the difference between the maximum transmission rate of each of the target LED light sources and the data segment rate requirement of each of the data segments, and record it as a second difference;

[0039] According to the first difference and the second difference, an initial matching list is established for each of the data segments, wherein the initial matching list includes a number of target LED light sources that meet a preset transmission condition, and the preset transmission condition includes that the first difference is greater than or equal to a first difference threshold and the second difference is greater than or equal to a second difference threshold;

[0040] According to the weighted calculation result of the first difference and the second difference, sort each initial matching list in ascending order;

[0041] When there are duplicate target LED light sources in each of the initial matching lists, removing the duplicate target LED light sources according to the priority;

[0042] Establishing a mapping relationship between the data segment and the first target LED light source in the corresponding initial matching list;

[0043] Determine a target modulation algorithm according to the second transmission requirement information of the data segment, the frequency response characteristics of the target LED light source corresponding to the data segment, and a preset modulation algorithm, wherein the preset modulation algorithm includes: a PPM modulation algorithm, a PAM modulation algorithm, a QAM modulation algorithm, and an OFDM modulation algorithm;

[0044] The corresponding data segments are coded and modulated according to the target modulation algorithm to obtain corresponding light source control signals.

[0045] Preferably, controlling the corresponding target LED light source to transmit light-carrying information includes:

[0046] Acquiring ambient lighting parameters, wherein the ambient lighting parameters include ambient light intensity and ambient spectral distribution;

[0047] When the first preset number is equal to the second preset number, adjusting each of the light source control signals according to the ambient light intensity, the ambient spectral distribution and a preset filtering algorithm to obtain a first target control signal;

[0048] According to the first target control signal, control the corresponding target LED light source to transmit light-carrying information;

[0049] When the first preset number is greater than the second preset number, adjusting each of the light source control signals according to the ambient light parameter, the preset filtering algorithm and the preset light intensity to obtain a first target control signal;

[0050] Acquire a first actual luminous intensity of each of the target LED light sources according to the first target control signal;

[0051] Acquire a supplementary luminous intensity according to the first actual luminous intensity, the preset luminous intensity and the ambient light intensity;

[0052] According to the supplementary luminous intensity, obtaining the total target luminous intensity of the LED light sources other than the target LED light source;

[0053] According to the total target luminous intensity and the ambient spectral distribution, obtaining a target luminous intensity of each LED light source other than the target LED light source;

[0054] According to the target luminous intensity, obtaining a second target control signal of all unused LED light sources;

[0055] According to the first target control signal and the second target control signal, the corresponding LED light source is controlled to transmit the light-carrying information.

[0056] In a second aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon, which implements the method of the first aspect in the above-mentioned embodiment when the computer program instructions are executed by a processor.

[0057] In summary, the beneficial effects of the present invention are as follows:

[0058] The embodiment of the present invention provides a method for transmitting information on light based on a multicolor light source. By using LED light sources of different wavelengths to cover multiple wavelength intervals, the flexibility and bandwidth of the information on light transmission system can be increased. The light source in each wavelength interval can work independently, thereby realizing multi-channel parallel transmission and improving the overall transmission capacity and efficiency. The data type is distinguished and the data size is divided according to the transmission requirement information to ensure that the amount of data fragments carried by each LED light source is optimally allocated within its capacity. This division and scheduling can effectively reduce conflicts and collisions during data transmission, improve the stability and reliability of the system, and reduce the loss of data transmission. According to the luminous characteristics of the LED light source and the transmission requirement information, the most suitable target LED light source is selected to optimize the signal quality and power efficiency of the information on light transmission. Selecting a suitable light source can minimize the signal attenuation and distortion during the transmission process and ensure the reliability and stability of data transmission. According to the target LED light source and the transmission requirement information, the preset modulation algorithm can effectively improve the rate and accuracy of data transmission. Different modulation algorithms can adapt to different transmission environments and conditions, so that the information on light transmission system can still maintain efficient operation in a variety of complex scenarios. The target LED light source is precisely controlled by the light source control signal to achieve efficient transmission of information on light. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0060] Figure 1 It is a schematic flow chart of a method for transmitting information carried by light based on a full spectrum according to an embodiment of the present invention.

[0061] Figure 2 It is a schematic flow chart of a method for transmitting information carried by light based on a full spectrum according to an embodiment of the present invention.

[0062] Figure 3 It is a schematic flow chart of a method for transmitting information carried by light based on a full spectrum according to an embodiment of the present invention.

[0063] Figure 4 It is a structural schematic diagram of a light source device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0064] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0065] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0066] It should be noted that all actions of acquiring signals, information or data in the present invention are performed in compliance with the corresponding data protection laws and policies of the location and with the authorization given by the owner of the corresponding device.

[0067] Implementation Method 1

[0068] The embodiment of the present invention provides a full-spectrum optical information transmission method, which is applied to a transmitting end, wherein the transmitting end includes a full-spectrum semiconductor light-emitting device, wherein the full-spectrum semiconductor light-emitting device includes a first preset number of monochromatic light sources with different light-emitting wavelengths, and the adjustment range of the light-emitting wavelength of each of the monochromatic light sources belongs to a different wavelength interval;

[0069] Specifically, a full-spectrum light-emitting device refers to a light-emitting device that can emit a spectrum covering the entire visible light range and even including ultraviolet and infrared rays. It is usually composed of multiple monochromatic light sources, each of which emits light of a specific wavelength. By combining monochromatic light sources of different wavelengths, the transmitter can generate an optical signal covering the entire spectrum range. This can achieve higher optical communication efficiency because light of different wavelengths can transmit more data in the same channel. The device includes a first preset number of monochromatic light sources, which means that the number of monochromatic light sources designed in the device is fixed and known. These monochromatic light sources are based on semiconductor materials, such as LEDs (light emitting diodes) or LDs (laser diodes), and each monochromatic light source has a specific emission wavelength. The emission wavelength of a monochromatic light source can be adjusted within a certain range. For example, some semiconductor light sources can fine-tune the emission wavelength by adjusting the current, voltage or temperature;

[0070] The first preset number of monochromatic light sources refers to the number of monochromatic light sources integrated in the light emitting device. These monochromatic light sources may be different channels of an LED chip or different LED elements in an LED module, and the light emitted by each monochromatic light source has a fixed wavelength characteristic;

[0071] The wavelength of light emitted by each monochromatic light source is in a different wavelength range on the spectrum. For example, it may include monochromatic light sources covering different wavelength ranges such as red, green, and blue. This interval wavelength distribution can optimize the diversity and flexibility of the optical information transmission system;

[0072] The combination of these features enables the optical information transmission system to use light sources of different wavelengths to transmit data, and the monochromatic light source in each wavelength range can operate independently, thereby realizing multi-channel parallel transmission. This design not only increases the transmission capacity and bandwidth of the system, but also can adapt to the optical requirements of different application scenarios, such as the need for high color reproduction performance or higher transmission rate.

[0073] In a specific embodiment, the first preset number is 4, which are respectively recorded as the first monochromatic light source, the second monochromatic light source, the third monochromatic light source and the fourth monochromatic light source; the emission wavelength of the first monochromatic light source is within 480-520nm, the emission wavelength of the second monochromatic light source is within 530-540nm, the emission wavelength of the monochromatic light source of the third monochromatic light source is within 640-660nm, and the emission wavelength of the fourth monochromatic light source is within 680-700nm. The first monochromatic light source, the second monochromatic light source, the third monochromatic light source and the fourth monochromatic light source are all excited by a blue light chip, and the blue light chip at least includes a first blue light chip and a second blue light chip. Although their peak wavelengths are in the same wavelength range, their peak wavelengths are different. Using blue light chips with different peak wavelengths can cover a wider blue light area. After the first blue light chip and the second blue light chip are combined, the main wavelength of the blue light chip is between 447 and 457nm;

[0074] In this embodiment, each monochromatic light source covers a different wavelength range, which can achieve a wide spectrum coverage. This design enables the optical information transmission system to transmit data through light of different wavelengths, thereby improving the bandwidth and transmission capacity of the system. Light sources of different wavelengths can better reproduce the spectral components of natural light and improve the color reproduction effect. This is particularly important in application scenarios that require high color fidelity (such as display technology and lighting). By using light sources of different wavelengths, the system can achieve multi-channel parallel transmission, and each monochromatic light source operates independently without interfering with each other. This design can improve the data transmission rate and efficiency and meet the large bandwidth requirements. By combining the first blue light chip and the second blue light chip, a wider blue light area (447~457nm) can be covered. The combination of blue light chips with different peak wavelengths can provide a more stable and uniform blue light excitation light source and improve the overall performance of the system. By controlling the emission of light sources of different wavelengths, efficient data transmission can be achieved without affecting the perception of the human eye. The main wavelength of the blue light chip is between 447 and 457nm, which is in the wavelength range where the human eye has weaker perception, which helps to reduce visual fatigue and discomfort.

[0075] See also Figure 1 , the method comprising:

[0076] S1. Segment the data to be transmitted according to first transmission requirement information of the data to be transmitted to obtain a second preset number of data segments, wherein the second preset number is less than or equal to the first preset number;

[0077] Specifically, the first transmission requirement information refers to the specific requirements of the data to be transmitted on the transmission rate, bandwidth, delay, priority, etc., and data segmentation splits the original data according to certain rules to form multiple small data fragments; this step divides the data to be transmitted according to the first transmission requirement information, so as to facilitate the subsequent optimized transmission according to the characteristics of different light sources, and formulates a data segmentation strategy based on these requirement parameters to divide the data to be transmitted into several data fragments.

[0078] Data segmentation allows each data segment to be independently optimized according to specific needs, improving transmission efficiency and data transmission reliability. By segmenting data segments, the characteristics of different light sources can be better utilized, resource waste can be avoided, and the overall performance of the system can be improved.

[0079] The number of monochromatic light sources of the semiconductor light-emitting device is limited (first preset number), so the number of data segments after segmentation (second preset number) cannot exceed this limit. Otherwise, it will be impossible to allocate a monochromatic light source to each data segment. By ensuring that the second preset number is less than or equal to the first preset number, the monochromatic light source resources can be reasonably allocated and utilized, and the efficiency and stability of optical information transmission can be improved.

[0080] If all monochromatic light sources are used, it may increase the interference perceived by the human eye. By controlling the second preset number, some monochromatic light sources can be selectively used to reduce interference and improve concealment. Ensure that the second preset number does not exceed the first preset number, so that the light sources can be flexibly scheduled and switched when necessary to cope with changes in the needs of different data fragments and changes in the environment.

[0081] Preferably, see Figure 2 , the data segmentation according to the transmission requirement information of the data to be transmitted to obtain a second preset number of data segments includes:

[0082] S11, obtaining basic parameters of the data to be transmitted, wherein the basic parameters include data type and data size;

[0083] Specifically, basic parameters are basic information about the data to be transmitted, including data type and data size. Data type refers to the type of data, such as video, audio, text, etc. Data size is the total amount of data, usually in bytes (B) or bits (b). The purpose of obtaining basic parameters is to understand the nature and scale of the data to be transmitted, in preparation for subsequent transmission demand analysis and data segmentation. Identify data types through data header information or predefined rules. For example, read the MIME type of a file, or identify data types through data identifiers. Understanding the data type and size allows different segmentation and transmission strategies to be adopted for different types of data to improve transmission efficiency. Accurately measuring data size helps in the accurate calculation of subsequent transmission requirements and resource allocation.

[0084] S12. Determine first transmission requirement information of the data to be transmitted according to the basic parameters, wherein the first transmission requirement information includes a bandwidth requirement parameter and a rate requirement parameter;

[0085] Specifically, the first transmission requirement information is the transmission requirement information determined according to the basic parameters of the data, including a bandwidth requirement parameter and a rate requirement parameter. The bandwidth requirement parameter is the bandwidth required for transmitting the data. The rate requirement parameter is the rate required for transmitting the data. According to the data type, its bandwidth requirement and rate requirement are determined. For example, video data usually requires high bandwidth and high transmission rate, while text data requirements are relatively low. According to the data size and the expected transmission time, the required transmission rate is calculated.

[0086] Standard parameters of bandwidth requirements and rate requirements can be set for each data type. For example, video data requires 10Mbps bandwidth and 30Mbps transmission rate, and audio data requires 1Mbps bandwidth and 2Mbps transmission rate.

[0087] Clarifying the transmission requirements of each type of data helps to reasonably allocate transmission resources and ensure transmission quality and efficiency. By presetting transmission parameter standards, the transmission requirement calculation process is simplified and the adaptability and stability of the system are improved.

[0088] S13, determining the second preset number according to the bandwidth capacity of each of the monochromatic light sources;

[0089] Specifically, bandwidth capacity is the bandwidth that a monochromatic light source can support. The bandwidth capacity of each monochromatic light source is determined by its hardware characteristics and modulation technology. In an optical information transmission system, the bandwidth capacity of a monochromatic light source is an important indicator for evaluating the data transmission rate that it can support under a specific modulation technology. The bandwidth capacity of a monochromatic light source can be obtained through different preset modulation algorithms. The minimum and maximum bandwidth capacity of each monochromatic light source under different preset modulation algorithms. In one embodiment, the bandwidth capacity is the minimum bandwidth capacity. Selecting the minimum bandwidth capacity means that the system design can still work under the most unfavorable conditions. This method takes into account the worst performance of the light source under different conditions, so it can ensure that the system can meet the bandwidth requirements in all cases. By using the minimum bandwidth capacity, system design and calculation can be simplified because it avoids the need for complex bandwidth calculations under different modulation technologies. The risk of insufficient system performance due to failure to take certain conditions into account is avoided, and the reliability and stability of the system are improved.

[0090] In another embodiment, the bandwidth capacity is the average of the minimum bandwidth capacity and the maximum bandwidth capacity; the average bandwidth capacity can more accurately reflect the average performance of the monochromatic light source under different modulation technologies. This method takes into account the typical performance of the light source and can more accurately predict the performance of the system in actual applications. By using the performance of the light source under average conditions, the resources of the system can be more effectively planned and utilized, and the overall efficiency of the system can be improved. It properly balances performance and cost, avoids over-designing the system, and can meet the bandwidth requirements in actual application scenarios.

[0091] The choice of using the minimum bandwidth capacity or the average bandwidth capacity depends on the specific system requirements and design goals. In practical applications, these two methods may be flexibly selected according to specific circumstances to balance the stability of the system, the accuracy of performance prediction, and the optimal use of resources.

[0092] After obtaining the bandwidth capacity of the light source, the total bandwidth requirement of the system is compared and matched with the bandwidth capacity of each monochromatic light source. A sufficient number of monochromatic light sources are selected so that the sum of their bandwidth capacities can meet or exceed the total bandwidth requirement of the system.

[0093] The number of monochromatic light sources determined in step S23 can effectively utilize spectral resources and ensure that the bandwidth requirements for data transmission are met at the physical level. This design can optimize system performance while minimizing energy consumption and waste of spectral resources.

[0094] S14. Divide the data to be transmitted according to the data type and the second preset number to obtain data segments.

[0095] Finally, the data to be transmitted is divided into multiple parts, each of which is called a data segment. Different data types use different division strategies. For example, video data can be divided by frame, audio data can be divided by time slice, and text data can be divided by paragraph or character number. Data division simplifies the data management and transmission process, and improves the flexibility and efficiency of transmission.

[0096] S2. Determine a second preset number of target monochromatic light sources according to the luminous characteristic parameters of the monochromatic light source and the first transmission requirement information;

[0097] Specifically, the light emission characteristic parameters include the wavelength, light intensity, frequency response characteristics, bandwidth, modulation efficiency, etc. of the light source. The target monochromatic light source is a light source used to transmit a specific data fragment, and its characteristics match the requirements of the data fragment. By matching the characteristics of the monochromatic light source with the transmission requirements of the data fragment, the most suitable light source is selected to optimize data transmission. Matching characteristics and requirements ensures that each data fragment can be transmitted through the most suitable light source, improving transmission efficiency and stability.

[0098] Preferably, determining a second preset number of target monochromatic light sources according to the luminous characteristic parameters of the monochromatic light source and the first transmission requirement information includes:

[0099] S21. Determine second transmission requirement information of each of the data segments according to the first transmission requirement information;

[0100] Specifically, based on the characteristics of the data to be transmitted and the transmission requirements, the specific transmission requirements of each data fragment are determined. These requirements will be used in subsequent steps, especially for screening when selecting a suitable monochromatic light source. According to the data type and transmission requirement information (such as bandwidth requirements and rate requirements), the specific transmission requirements of each data fragment are calculated. This ensures that the system has accurate data transmission requirement information when selecting the target monochromatic light source. By accurately obtaining and defining the second transmission requirement information, the selection of an unsuitable monochromatic light source can be avoided, thereby improving the transmission efficiency and reliability of the system. This precise requirement definition helps to optimize the design and implementation process of the optical information transmission system.

[0101] S22. Screening the monochromatic light sources according to the second transmission requirement information to obtain candidate monochromatic light sources, wherein the number of the candidate monochromatic light sources is greater than or equal to the second preset number and less than or equal to the first preset number;

[0102] Specifically, the candidate monochromatic light source is a candidate light source selected from the first preset number of monochromatic light sources on the premise of meeting the second transmission requirement information. By selecting the candidate monochromatic light sources, it is ensured that these light sources can theoretically support the transmission requirements required by the system. According to the second transmission requirement information, the bandwidth capacity and other characteristics of each monochromatic light source are evaluated to select the candidate monochromatic light source that meets the requirements. This step will ensure that the target monochromatic light source selected subsequently can effectively perform the optical information transmission task in practical applications.

[0103] By accurately screening the candidate monochromatic light sources, it is possible to ensure that the selected target monochromatic light source has the required transmission capability while minimizing the waste of system resources. This screening process helps optimize system performance and resource utilization, thereby improving the overall efficiency of optical information transmission.

[0104] S23, when the number of the candidate monochromatic light sources is greater than the second preset number, determining the second preset number of candidate monochromatic light sources as target monochromatic light sources according to the luminous characteristic parameters of the candidate monochromatic light sources;

[0105] When the number of candidate monochromatic light sources exceeds the second preset number, it is necessary to select the most suitable monochromatic light source based on more detailed luminous characteristic parameters and technical capabilities to ensure optimal system performance. For candidate monochromatic light sources exceeding the preset number, the most suitable target monochromatic light source is determined by comparing their luminous characteristic parameters (such as spectral distribution, luminous intensity, modulation support capability, etc.).

[0106] In one embodiment, when the number of the candidate monochromatic light sources is greater than the second preset number, determining the second preset number of candidate monochromatic light sources as target monochromatic light sources according to the luminous characteristic parameters of the candidate monochromatic light sources includes:

[0107] S231, obtaining the luminous characteristic parameters of each candidate monochromatic light source, wherein the luminous characteristic parameters include: luminous wavelength, spectral width and light intensity;

[0108] Specifically, collect and record the luminous characteristic parameters of each candidate monochromatic light source. These parameters will be used for evaluation and sorting in subsequent steps to select the most suitable target monochromatic light source, and measure each candidate monochromatic light source or use equipment to obtain its characteristic parameters such as luminous wavelength, spectral width and light intensity. This may involve the use of a spectrometer, photometer or other optical measurement equipment to obtain accurate data. Luminous wavelength: refers to the wavelength of light emitted by a monochromatic light source, usually in nanometers (nm). Spectral width refers to the distribution range of the luminous wavelength of a monochromatic light source. A narrower spectral width means that the wavelengths are concentrated in a smaller range. Light intensity refers to the power of light emitted by a monochromatic light source per unit area per unit time.

[0109] S232, obtaining a visual acuity function value of each of the candidate monochromatic light sources according to the light emission wavelength and the visual acuity function;

[0110] Specifically, the visual acuity function refers to the human eye's perception of light of different wavelengths. The visual acuity function describes the relative sensitivity of the human eye at different wavelengths. For example, the human eye is most sensitive to light at a wavelength of 555nm, and its visual acuity function value is relatively high.

[0111] According to the emission wavelengths of the candidate monochromatic light sources, their visual acuity function values ​​in the human eye are calculated, which is an important basis for evaluating the degree of interference of monochromatic light sources to the human eye.

[0112] Using the known visual acuity function of the human eye (such as the CIE standard visual acuity function) and combining the emission wavelength of the candidate monochromatic light source, the visual acuity function value of each candidate monochromatic light source is calculated. This can be achieved through a mathematical model or specific software.

[0113] S233, determining a human eye interference index of each of the candidate monochromatic light sources according to the visual acuity function value, the luminous wavelength, the spectrum width and the light intensity, wherein the human eye interference index is positively correlated with the visual acuity function value and the light intensity, and the human eye interference index is negatively correlated with the spectrum width and the light intensity;

[0114] Specifically, the human eye interference index is an indicator used to quantify the degree of interference caused by a monochromatic light source to human vision. A higher interference index means that the light source interferes more significantly with the human eye.

[0115] The visual acuity function value describes the sensitivity of the human eye to light of different wavelengths. A monochromatic light source with a high visual acuity function value means that the human eye is more sensitive to it. Therefore, in order to reduce the interference of human eye perception, monochromatic light sources with lower visual acuity function values ​​are preferred. The spectrum width describes the distribution of light emitted by a monochromatic light source within the wavelength range. The narrower the spectrum width, the less interference the light source has with the human eye. Light intensity describes the intensity of light emitted by a monochromatic light source. Lower light intensity may reduce direct interference with the human eye.

[0116] Taking all these factors into consideration, the human eye interference index is set to be positively correlated with the visual acuity function value in order to give priority to monochromatic light sources with lower human eye perception, while it is negatively correlated with the spectrum width and light intensity in order to minimize the interference effect of the light source on the human eye. This setting can effectively optimize the performance of the optical information transmission system and improve the user experience.

[0117] S234: Sort the candidate monochromatic light sources in descending order according to the human eye interference index, and select the second preset number of candidate monochromatic light sources as the target monochromatic light sources.

[0118] Specifically, when determining the target monochromatic light source, light sources with less interference to the human eye are preferred to reduce the perceptual interference to the human eye during the transmission of light-carrying information. The candidate monochromatic light sources are arranged from high to low according to the interference degree according to the human eye interference index. According to the calculated human eye interference index, the candidate monochromatic light sources are sorted from large to small according to the index value. The first two preset numbers of monochromatic light sources ranked high are selected as the target monochromatic light sources. This process can be achieved by a programming algorithm or a manual sorting method.

[0119] S24. When the number of the candidate monochromatic light sources is equal to the second preset number, use the candidate monochromatic light sources as target monochromatic light sources.

[0120] When the number of candidate monochromatic light sources is exactly equal to the second preset number, the system directly takes these monochromatic light sources as targets without further screening or selection.

[0121] S3, processing the data fragment corresponding to the corresponding target monochromatic light source according to each target monochromatic light source and the corresponding preset modulation algorithm to obtain a corresponding light source control signal;

[0122] Specifically, the preset modulation algorithm is an algorithm used to modulate the signal, such as pulse position modulation (PPM), orthogonal frequency division multiplexing (OFDM), etc. The light source control signal is a signal that controls the light-emitting characteristics of the light source and is used to realize optical information transmission of data fragments.

[0123] This step modulates the data fragments to convert them into a signal form suitable for light source transmission and generates a light source control signal. First, according to the frequency response characteristics and transmission requirements of the target monochromatic light source, the most suitable preset modulation algorithm is selected. The data fragments are processed according to the modulation algorithm to generate the corresponding modulation signal. The modulation signal is converted into a light source control signal to control the light emission characteristics of the light source (such as frequency, intensity, waveform, etc.) to realize the optical information transmission of the data.

[0124] By selecting the appropriate modulation algorithm, the efficiency and reliability of data transmission can be improved. The light source control signal can accurately control the light emission characteristics of the light source to ensure that the data fragments maintain high quality and low interference during the transmission of optical information.

[0125] Preferably, the step of processing the data fragment corresponding to the corresponding target monochromatic light source according to each target monochromatic light source and the corresponding preset modulation algorithm to obtain the corresponding light source control signal comprises:

[0126] S31, establishing a mapping relationship between the target monochromatic light source and each of the data segments according to the frequency response characteristics of the target monochromatic light source and the second transmission requirement information;

[0127] Specifically, each monochromatic light source has its own specific frequency response characteristics, that is, the frequency range and efficiency it can respond to and transmit. The second transmission requirement information is information determined according to the nature of the data to be transmitted and the target requirements, including bandwidth requirements, transmission rate, etc. These requirements determine how many monochromatic light sources are needed to transmit the data. According to the frequency response characteristics of the target monochromatic light source and the second transmission requirement information, determine which monochromatic light sources each data fragment is assigned to. Correctly establishing the mapping relationship between the target monochromatic light source and the data fragment can maximize the efficiency and reliability of light-carrying information transmission. By making full use of the frequency response characteristics of the monochromatic light source and the appropriate modulation algorithm, the data transmission process can be optimized to ensure the accuracy and real-time performance of data transmission.

[0128] Preferably, the establishing of a mapping relationship between the target monochromatic light source and each of the data segments according to the frequency response characteristics of the target monochromatic light source and the second transmission requirement information includes:

[0129] S311, obtaining frequency response characteristics of each of the target monochromatic light sources, wherein the frequency response characteristics include: operating frequency range, bandwidth capacity, modulation efficiency and maximum transmission rate;

[0130] The purpose of this step is to collect and understand the data on the frequency response characteristics of each target monochromatic light source, which will be used in subsequent steps, especially when selecting the appropriate modulation algorithm and determining the data segment allocation. The frequency response characteristics of each target monochromatic light source can be obtained through experimental measurements or the specification sheet provided by the manufacturer. The operating frequency range, light source bandwidth, modulation efficiency, and maximum transmission rate usually vary depending on the physical structure and material properties of the light source. Determining the frequency response characteristics of each monochromatic light source helps to select the most suitable light source for specific data transmission needs. For example, high bandwidth and modulation efficiency can support higher data rates, while a wider operating frequency range can adapt to different application scenarios and improve the flexibility and reliability of the system.

[0131] S312, obtaining second transmission requirement information of each of the data segments, wherein the second transmission requirement information includes: data segment bandwidth requirement, data segment rate requirement and priority;

[0132] The purpose of this step is to determine the transmission requirements of each data fragment, including bandwidth and rate, as well as their priority order. This information will guide the selection of appropriate light sources and modulation algorithms to achieve the best data transmission effect. By obtaining the specific transmission requirements of each data fragment, the system can match the appropriate monochromatic light source and modulation algorithm according to these requirements, thereby achieving efficient resource utilization and optimized data transmission. Priority information can ensure that high-priority data fragments are supported by sufficient bandwidth and rate during transmission, thereby improving the overall performance and responsiveness of the system.

[0133] S313, calculating the difference between the bandwidth capacity of each of the target monochromatic light sources and the data segment bandwidth requirement of each of the data segments, and recording it as a first difference;

[0134] Specifically, it is evaluated whether the bandwidth capacity of each target monochromatic light source is sufficient to meet the bandwidth requirements of the data segments. The calculated first difference reflects the potential matching degree of each monochromatic light source in terms of bandwidth. For each target monochromatic light source, its bandwidth capacity is first determined, and then compared with the bandwidth requirements of each data segment. The calculation of the first difference is the result of subtracting the bandwidth requirements of the data segment from the bandwidth capacity. By calculating the first difference, it is possible to quickly screen out which monochromatic light sources can potentially meet the bandwidth requirements of the data segments, which helps to accurately match the light source and the data segments and improve the transmission efficiency and performance of the system.

[0135] S314, calculating the difference between the maximum transmission rate of each of the target monochromatic light sources and the data segment rate requirement of each of the data segments, and recording it as a second difference;

[0136] The purpose of this step is to evaluate the matching ability of each target monochromatic light source in terms of rate. The calculation result of the second difference reflects the potential matching degree of each monochromatic light source in terms of rate requirements. For each target monochromatic light source, determine its maximum transmission rate and compare it with the rate requirement of each data fragment. The calculation of the second difference is the result of subtracting the data fragment rate requirement from the maximum transmission rate. By calculating the second difference, it is possible to quickly determine which monochromatic light sources can meet the data fragment requirements in terms of rate. This helps to avoid selecting light sources with insufficient rates and improve the stability and reliability of data transmission.

[0137] S315. Establish an initial matching list for each of the data segments according to the first difference and the second difference, wherein the initial matching list includes a plurality of target monochromatic light sources that meet a preset transmission condition, and the preset transmission condition includes that the first difference is greater than or equal to a first difference threshold and the second difference is greater than or equal to a second difference threshold;

[0138] Specifically, based on the calculated first difference and second difference, target monochromatic light sources whose bandwidth capacity and maximum transmission rate meet the data fragment requirements are screened out, and the initial matching list includes several target monochromatic light sources that meet preset transmission conditions, and the preset transmission conditions include that the first difference is greater than or equal to a first difference threshold and the second difference is greater than or equal to a second difference threshold.

[0139] The threshold of the first difference is set to ensure that the selected monochromatic light source has sufficient bandwidth to support the transmission requirements of the data fragments. Generally, if the first difference is greater than or equal to a certain threshold, it indicates that the bandwidth capacity of the light source is sufficient or even exceeds the bandwidth requirements of the data fragments, thereby ensuring that there will be no bandwidth shortage. The threshold of the second difference is set to ensure that the transmission rate of the selected monochromatic light source is sufficient to meet the rate requirements of the data fragments. This difference must be greater than or equal to a set threshold to ensure that the light source will not cause a bottleneck due to insufficient rate in actual transmission.

[0140] Each data fragment has its own initial matching list, which is based on the technical calculation results. Establishing the initial matching list helps the system quickly screen out the best choice from a large number of possible monochromatic light sources, saving computing resources and time costs while ensuring the transmission quality and efficiency of the data fragment.

[0141] S316, sorting each initial matching list in ascending order according to a weighted calculation result of the first difference and the second difference;

[0142] Specifically, for each data segment's initial matching list, a weighted score (usually a linear combination of the first difference and the second difference) is calculated, and then the target monochromatic light sources are sorted from small to large according to these scores. Sorting the initial matching list can help the system prioritize those monochromatic light sources that are most suitable in terms of bandwidth and rate, thereby optimizing the selection of data transmission and resource utilization.

[0143] S317, when there are duplicate target monochromatic light sources in each of the initial matching lists, removing the duplicate target monochromatic light sources according to the priority order;

[0144] Specifically, when the same monochromatic light source is found in the initial matching list of multiple data segments, the repeated light sources are removed according to the priority order of the data segments in which they are located, and the light source with the highest score in each data segment is retained. Removing repeated target monochromatic light sources can ensure that the light source finally selected by the system is the optimal choice, avoid waste of resources and conflicts, and improve the stability and reliability of data transmission.

[0145] S318: Establish a mapping relationship between the data segment and the first target monochromatic light source in the corresponding initial matching list.

[0146] For each data fragment, the first monochromatic light source is selected from the sorted initial matching list as the final selection, and a mapping relationship is established between the selection and the data fragment. Establishing a mapping relationship between the data fragment and the first light source in the initial matching list can speed up the system's response and processing of the data fragment, ensure that each data fragment can get the best transmission support, and optimize the system's performance and efficiency.

[0147] S32, according to the second transmission requirement information of the data segment, the frequency response characteristics of the target monochromatic light source corresponding to the data segment and a preset modulation algorithm, wherein the preset modulation algorithm includes: PPM modulation algorithm, PAM modulation algorithm, QAM modulation algorithm and OFDM modulation algorithm;

[0148] The PPM modulation algorithm transmits information through the time position of the pulse, the PAM modulation algorithm transmits information by changing the amplitude of the pulse, the QAM modulation algorithm transmits multi-bit data through a combination of amplitude and phase, and the OFDM modulation algorithm divides data fragments into multiple subcarriers for parallel transmission to improve spectrum utilization.

[0149] According to the second transmission requirement information of each data segment (such as transmission rate, signal-to-noise ratio requirements), combined with the frequency response characteristics of the target monochromatic light source, select a suitable preset modulation algorithm. According to the frequency response characteristics of the target monochromatic light source, the modulation technology adapted to it is analyzed, and the best modulation method is determined in combination with the transmission requirement information of each data segment. For example, for data segments that require high-speed transmission and high signal-to-noise ratio, QAM or OFDM modulation algorithms may be selected.

[0150] Preferably, the second transmission requirement information according to the data segment, the frequency response characteristics of the target monochromatic light source corresponding to the data segment, and a preset modulation algorithm include:

[0151] S321, allocating a number of preset modulation algorithms that meet corresponding second transmission requirement information to each of the data segments according to the frequency response characteristics of the target monochromatic light source corresponding to the data segment, recorded as a first intermediate modulation algorithm;

[0152] The purpose of this step is to select a suitable modulation algorithm for converting the data fragment into a corresponding optical signal according to the transmission requirements of each data fragment and the frequency response characteristics of the target monochromatic light source. For each data fragment, its transmission requirements are analyzed, and then according to the frequency response characteristics of the target monochromatic light source, a preset modulation algorithm is selected that can most effectively utilize the light source characteristics and meet the data fragment requirements.

[0153] S322, obtaining an estimated optical pulse frequency of the data segment after being modulated by the corresponding first intermediate modulation algorithm;

[0154] Specifically, the estimated optical pulse frequency is the frequency of the optical signal generated after the modulation algorithm is processed, that is, the basic frequency characteristics of the data segment after it is converted into an optical signal. The selected first intermediate modulation algorithm is applied to each data segment to calculate the estimated optical pulse frequency. For example and not limitation, in the PPM modulation algorithm, the optical pulse frequency is equal to the data rate multiplied by the number of pulse positions, the optical pulse frequency of PAM is equal to the data rate, the optical pulse frequency of QAM is equal to the data rate multiplied by the number of symbols, and the optical pulse frequency of OFDM is equal to the data rate multiplied by the number of subcarriers. Obtaining the estimated optical pulse frequency helps system designers understand the characteristics of the optical signal after each data segment is modulated, thereby optimizing the optical transmission efficiency and performance of the system.

[0155] S323, acquiring a corresponding critical flicker frequency according to the emission wavelength of each of the target monochromatic light sources;

[0156] Specifically, the critical flicker frequency of light of different wavelengths to the human eye will be different. The critical flicker frequency (Critical Flicker Fusion, CFF) refers to the frequency at which the human eye cannot distinguish the flicker of the light source at a certain frequency and considers it to be the frequency of continuous light emission. The visual sensitivity of short-wavelength light is higher, and the human eye is more likely to detect the flicker of blue light, so a higher frequency is required to achieve imperceptibility. The eye has a lower visual sensitivity to long-wavelength light, so the flicker frequency of red light and infrared light can be lower, but still imperceptible. When selecting a modulation algorithm and light source, it is necessary to consider the impact of the light source wavelength on CFF to ensure an imperceptible communication effect.

[0157] S324, screening the first intermediate modulation algorithm of each of the data segments according to the critical flicker frequency and the estimated light pulse frequency to obtain a plurality of second intermediate modulation algorithms;

[0158] Specifically, the estimated light pulse frequency is compared with the critical flicker frequency of the target monochromatic light source. If the estimated frequency is greater than the critical flicker frequency, the current first intermediate modulation algorithm is considered acceptable and recorded as the second intermediate modulation algorithm; by screening the second intermediate modulation algorithm, the system can optimize and select the most suitable modulation algorithm according to the luminous characteristics of the light source and the expected light pulse frequency.

[0159] In optical information transmission systems, users usually hope to obtain efficient data transmission under moderate brightness of the light source. Selecting a modulation algorithm with an estimated frequency greater than the critical flicker frequency can effectively reduce or eliminate the human eye's flicker perception and improve user experience. In practical applications, it is particularly important for optical communications, display technology and other fields to select a modulation algorithm that can ensure the stability of the light source and does not cause eye discomfort. This choice can not only meet the technical performance requirements, but also improve the breadth and acceptability of technical applications.

[0160] S325. Determine a target modulation algorithm for each of the data segments according to the second intermediate modulation algorithm.

[0161] For each data segment, according to the list of second intermediate modulation algorithms screened out in step S424, consider its applicability under the conditions of light source wavelength and light pulse frequency. Each second intermediate modulation algorithm has its own specific modulation mode and frequency characteristics, suitable for different light sources and transmission conditions. According to actual needs and system design goals, select the optimal second intermediate modulation algorithm as the target modulation algorithm for each data segment. When determining the target modulation algorithm, it is necessary to comprehensively consider its modulation efficiency, anti-noise performance, frequency utilization and other indicators to ensure that the expected data transmission quality is achieved in optical information transmission.

[0162] S33. Encode and modulate the corresponding data segments according to the target modulation algorithm to obtain corresponding light source control signals.

[0163] Convert the digital data fragments to be transmitted into a signal format that meets the requirements of the selected modulation algorithm. For example, for QAM modulation, the data fragments are divided into symbols, each of which represents a combination of multiple bits. The encoded data is mapped to a signal form that the light source can process. The light source control signal after modulation can directly drive the monochromatic light source for optical information transmission. The control signals generated by different modulation algorithms may differ in frequency, amplitude and phase, depending on the selected modulation technology and the nature of the data fragments.

[0164] S4. According to the light source control signal, control the corresponding target monochromatic light source to transmit light-carrying information.

[0165] Specifically, the light source control signal is input into the corresponding light source driving circuit. The driving circuit adjusts the light emission characteristics of the light source according to the control signal to transmit the light-carrying information. Ensure that the emission characteristics of the light source (such as frequency, intensity, etc.) meet the preset transmission requirements, ensure the transmission quality of the data fragments, and achieve efficient full-spectrum light source light-carrying information transmission through the process of data segmentation, light source matching, modulation processing and control emission. Each step is explained and optimized in detail for specific technical features, so that the entire system has significantly improved the efficiency, stability and concealment of data transmission.

[0166] Preferably, controlling the corresponding target monochromatic light source to transmit light-carrying information according to the light source control signal includes:

[0167] S41, obtaining ambient lighting parameters, wherein the ambient lighting parameters include ambient light intensity and ambient spectral distribution;

[0168] Specifically, the ambient light intensity represents the intensity level of light in a specific environment, and the ambient spectral distribution describes the distribution of light of different wavelengths in the environment, covering the wavelength range from ultraviolet to infrared. This step obtains the optical characteristic data in the environment, which is essential for adjusting the light source control signal to adapt to the current environmental conditions. The ambient lighting parameters affect the selection and setting of the light source in the optical information transmission system.

[0169] Depending on the specific application scenario, use sensors or measuring equipment to obtain data on ambient light intensity and spectral distribution. Ambient light intensity can be measured by a light sensor, which expresses the light intensity level in numerical form. Ambient spectral distribution can be obtained by a spectral analyzer or spectral measuring equipment to obtain the distribution of light of different wavelengths in the environment.

[0170] S42, when the first preset number is equal to the second preset number, adjusting each of the light source control signals according to the ambient light intensity, the ambient spectral distribution and a preset filtering algorithm to obtain a first target control signal;

[0171] The preset filtering algorithm is an algorithm used to adjust the light source control signal to meet specific transmission requirements, which usually involves signal filtering and adjustment parameters. When the first preset number is equal to the second preset number, it means that the number of existing light sources is equal to the expected matching number, and no additional light source adjustment is required. At this time, according to the ambient light parameters (light intensity and spectral distribution) and the preset filtering algorithm, the control signal of the light source is adjusted so that the generated communication light pulse matches the spectrum and intensity of the ambient light as much as possible, thereby improving the efficiency and reliability of the communication system.

[0172] The adjustments may include:

[0173] Brightness adjustment: According to the ambient light intensity, adjust the brightness of the light source to keep it relatively balanced with the ambient light to avoid signal interference caused by spectrum overlap.

[0174] Frequency adjustment: According to the preset frequency range of the light source and the spectral distribution of the environment, the operating frequency of the light source is adjusted to avoid spectrum overlap and interference.

[0175] Waveform adjustment: According to the specific shape of the ambient spectrum, the waveform characteristics of the light source, such as pulse width, pulse interval, etc., are adjusted so that the generated communication optical pulses match the ambient spectrum as much as possible.

[0176] S43, according to the first target control signal, controlling the corresponding target monochromatic light source to transmit light-carrying information;

[0177] The first target control signal is an adjusted signal generated according to the above steps, which contains the relevant parameters of the optical carrier information to be transmitted, such as frequency, intensity, waveform, etc. The first target control signal is applied to the target monochromatic light source, and the required information is carried on the optical carrier by changing the characteristics of the light source (such as light intensity, frequency, phase, etc.). The optical pulse is generated according to the characteristics of the modulated signal so that it can contain the data to be transmitted in the optical carrier signal.

[0178] S44, when the first preset number is greater than the second preset number, adjusting each of the light source control signals according to the ambient lighting parameter, the preset filtering algorithm and the preset light intensity to obtain a first target control signal;

[0179] Specifically, this step is similar to step S42 and will not be described in detail here.

[0180] S45, acquiring a second target control signal of an unused monochromatic light source according to the first target control signal, the ambient light parameter and the preset light intensity;

[0181] When the first preset number is greater than the second preset number, there may be multiple monochromatic light sources that are available but not yet used. Control signals of the unused monochromatic light sources are calculated and acquired according to the first target control signal, the ambient light parameters and the preset light intensity. These control signals are designed to supplement or enhance the performance of the current transmission system.

[0182] Preferably, the acquiring, according to the first target control signal and the ambient light parameter, a second target control signal of an unused monochromatic light source comprises:

[0183] S451. Acquire a first actual luminous intensity of each of the target monochromatic light sources according to the first target control signal;

[0184] According to the first target control signal, the system obtains the current first actual luminous intensity of each target monochromatic light source, including the current brightness, frequency, phase and other parameters of the light source, which are adjusted by the control signal to adapt to communication requirements and environmental conditions.

[0185] S452: acquiring a supplementary luminous intensity according to the first actual luminous intensity, the preset luminous intensity, and the ambient light intensity;

[0186] Specifically, the system pre-sets the luminous intensity level that each light source should achieve in a specific communication environment. At the same time, the ambient light intensity provides a reference for the background light intensity in the current environment. Based on the difference between the first actual luminous intensity and the preset luminous intensity, as well as the influence of the ambient light intensity, the system calculates the luminous intensity that needs to be supplemented. This process ensures that each light source can meet the luminous intensity required for communication while making full use of environmental conditions.

[0187] S453, acquiring the total target luminous intensity of the monochromatic light sources other than the target monochromatic light source according to the supplementary luminous intensity;

[0188] Based on the requirement for supplemental luminous intensity, the system evaluates other available monochromatic light sources other than the target monochromatic light source. The system may consider unused light sources, as well as their luminous properties and availability.

[0189] S454, acquiring the target luminous intensity of each monochromatic light source other than the target monochromatic light source according to the total target luminous intensity and the ambient spectral distribution;

[0190] Based on the ambient spectral distribution and the characteristics of each unused monochromatic light source, the system determines the specific luminous intensity that each monochromatic light source needs to achieve. These target luminous intensities are designed to match the spectral characteristics in the current environment to maximize the effect of information transmission.

[0191] Through the above steps, the system can dynamically adjust the control signal of the unused monochromatic light source according to the actual environmental conditions to optimize the transmission effect of the optical information. This real-time adjustment and optimization can ensure that the optical communication system can maintain efficient and stable operation in different environments.

[0192] S455, acquiring second target control signals of all unused monochromatic light sources according to the target luminous intensity;

[0193] Finally, according to the target luminous intensity, the second target control signal of all unused monochromatic light sources is obtained, so as to dynamically adjust the control signal of the unused monochromatic light sources according to the actual environmental conditions to optimize the transmission effect of the optical information. This real-time adjustment and optimization can ensure that the optical communication system can maintain efficient and stable operation in different environments.

[0194] S46. Control a corresponding monochromatic light source to transmit light-carrying information according to the first target control signal and the second target control signal.

[0195] In steps S44 and S45, the system has determined the first target control signal and the second target control signal. The first target control signal is used for the monochromatic light source that has been determined to be used for data transmission, while the second target control signal is a supplementary control for utilizing the unused monochromatic light source. According to the guidance of the first target control signal and the second target control signal, the system adjusts the luminous intensity, frequency or waveform of the corresponding monochromatic light source to ensure that the transmission of the optically carried information can be carried out under the expected spectrum and intensity conditions.

[0196] In practical applications, the system may continuously monitor the ambient lighting parameters and the effect of light-carrying information transmission. Based on this information, the first and second target control signals can be dynamically adjusted to adapt to environmental changes or optimize the transmission effect.

[0197] Preferably, see Figure 3 After controlling the corresponding target monochromatic light source to transmit light-carrying information according to the light source control signal, the method further includes:

[0198] S5. Monitor the information transmission quality in real time to obtain the communication quality monitoring results of each of the target monochromatic light sources, wherein the communication quality monitoring results include signal strength, bit error rate and transmission delay;

[0199] Specifically, sensors or detectors are used to monitor the signal characteristics of each target monochromatic light source in real time, including the intensity of the light signal it emits, the bit error situation, and the time delay of the information arrival. Signal strength refers to the intensity or power of the light signal. The stronger the signal strength, the better the stability and anti-interference ability of the information transmission. The bit error rate refers to the ratio of the number of erroneously received bits to the total number of received bits during the transmission process. The lower the bit error rate, the higher the accuracy of the information transmission. Transmission delay refers to the time required for information to be transmitted from the sender to the receiver. The smaller the delay, the better the timeliness of the communication.

[0200] By monitoring the transmission quality in real time, possible problems with the light source during information transmission, such as decreased signal strength, increased bit error rate, or increased transmission delay, can be discovered in a timely manner so that adjustments or switches can be made before the problem worsens, thereby maintaining the communication performance and stability of the system.

[0201] S6. When the signal strength of a target monochromatic light source is less than a preset signal strength threshold, and / or the bit error rate is greater than a preset bit error rate threshold, and / or the data transmission delay is greater than a preset delay threshold, the target monochromatic light source is used as the light source to be switched;

[0202] Specifically, the preset signal strength threshold refers to the lowest acceptable limit set for signal strength during the operation of the system. When the signal strength is lower than this threshold, the system considers that the transmission performance of the current light source is insufficient and measures need to be taken. The preset bit error rate threshold refers to the highest acceptable limit set by the system for the bit error rate. Exceeding this limit means that the error rate of the data is too high and the reliability of the transmission is greatly reduced. The preset delay threshold is the highest acceptable time set by the system for transmission delay. Exceeding this delay may result in the timeliness of the communication not meeting the requirements.

[0203] The real-time monitored signal strength, bit error rate, and transmission delay are constantly compared with the preset thresholds. When any indicator does not meet the preset requirements, the system marks the light source as a "light source to be switched" and begins to prepare to look for other light sources to take over the current transmission task.

[0204] This step effectively ensures that the system can respond in time when the transmission quality deteriorates, avoiding data loss or communication interruption caused by long-term low-quality transmission. By marking the light source to be switched in advance, the system can switch before the problem worsens, thereby maintaining the stability of the overall communication performance.

[0205] S7, determining at least one monochromatic light source as a target switching light source according to the data fragment corresponding to the light source to be switched;

[0206] Specifically, the data segments that the light source to be switched is responsible for are first analyzed to determine its specific transmission requirements, including bandwidth requirements, rate requirements, and priority. Based on these requirements, the system will select light sources that can meet these requirements from unused light sources as candidate target switching light sources. If all light sources are currently in use, the system will further analyze the load of the light sources in use and select light sources with lighter loads and suitable data segment characteristics as target switching light sources.

[0207] S8. According to a preset light source switching rule, control the target switching light source to transmit the data segment corresponding to the light source to be switched.

[0208] Specifically, the preset light source switching rules are a series of rules or strategies followed by the system when switching light sources. These rules may include considerations such as data segment splitting ratio, switching time, switching priority, and light source utilization efficiency.

[0209] Preferably, determining at least one monochromatic light source as a target switching light source according to the data segments corresponding to the light source to be switched includes:

[0210] S71, obtaining second transmission requirement information of the data segment corresponding to the light source to be switched, wherein the second transmission requirement information includes: data segment bandwidth requirement, data segment rate requirement and priority;

[0211] Specifically, the second transmission requirement information refers to the data segment transmission conditions that the light source to be switched needs to meet, including bandwidth requirements (the bandwidth required to transmit the amount of data), rate requirements (the amount of data transmitted per unit time) and priority, to obtain accurate transmission requirement information, to ensure that when switching the light source, the selected target light source can meet the transmission requirements of the current data segment, so as to ensure the continuity and quality of data transmission.

[0212] S72, caching the data fragments corresponding to the light source to be switched to obtain cached data fragments;

[0213] Specifically, the data fragments of the light source to be switched are temporarily stored in the cache to prevent the data fragments from being interrupted during the switching process. The cache mechanism can ensure that when the light source is switched, the data fragments will not be lost or delayed due to the switching process, which greatly improves the reliability of the system.

[0214] S73: when the second preset number is less than the first preset number, obtaining the monochromatic light source other than the target monochromatic light source as a first candidate switching light source;

[0215] Specifically, when the second preset number is less than the first preset number, it means that the current system still has light source resources that are not used for optical information transmission. Candidate light sources that can be used for replacement are screened out from the unused light sources to increase the choice of light source switching. The system marks the currently unused light source (i.e., the non-target monochromatic light source) as the "first candidate switching light source". By utilizing the unused light source resources in the system, the flexibility and success rate of light source switching are increased, and the risk of switching failure is reduced.

[0216] S74, obtaining wavelength similarity between the light emission wavelength of each of the first candidate switching light sources and the light emission wavelength of the light source to be switched;

[0217] Specifically, wavelength similarity refers to the similarity between the emission wavelengths of the alternative light source and the light source to be switched. The higher the wavelength similarity, the closer the spectral characteristics of the two light sources are, and the more consistent the performance of the light sources after switching. Based on the similarity, the system can give priority to light sources with closer wavelengths to ensure that the transmission characteristics after switching are as consistent as possible with the previous ones. Selecting light sources with similar wavelengths can ensure that the light sources after switching perform consistently in terms of color, brightness, etc., which is conducive to maintaining the consistency of transmission quality and visual effects.

[0218] S75, selecting the first candidate switching light source that meets a preset switching condition as a target switching light source according to the wavelength similarity, the second transmission requirement information, and the frequency response characteristics of each of the first candidate switching light sources;

[0219] Specifically, first sort according to wavelength similarity, then further screen the light sources that meet the bandwidth and rate requirements based on the second transmission demand information. Finally, combined with the frequency response characteristics of each candidate light source, select the light source that can best meet the preset conditions as the target switching light source. Through multi-dimensional comprehensive screening, the system can find the optimal light source alternative to ensure that the data transmission performance after switching is guaranteed and avoid performance degradation caused by switching.

[0220] In one embodiment, the preset switching conditions include: wavelength similarity must reach or exceed a certain threshold, and / or, bandwidth capacity must be greater than or equal to the bandwidth requirement of the data segment, and / or, the maximum transmission rate must be greater than or equal to the rate requirement of the data segment. In a preferred embodiment, the maximum transmission rate of the target switching light source must be at least 10% higher than the rate requirement, that is, a certain margin is left to cope with possible bandwidth fluctuations. This can avoid the degradation of transmission quality due to insufficient bandwidth after switching. Similarly, the maximum transmission rate of the target switching light source must be at least 10% higher than the rate requirement, similar to the matching condition of bandwidth capacity, leaving a certain buffer space to ensure transmission stability.

[0221] S76. When the second preset number is equal to the first preset number, obtaining the bandwidth margin of the target monochromatic light source other than the light source to be switched according to the communication quality monitoring result;

[0222] Bandwidth margin refers to the portion of bandwidth that has not been occupied when the light source is transmitting data. The larger the bandwidth margin, the more transmission capacity of the light source is not used. When the light source resources are full, by evaluating the bandwidth margin of each light source, find a light source that can carry more data fragments to switch the light source. Based on the real-time communication quality monitoring results, calculate the actual bandwidth usage of each target monochromatic light source and determine its bandwidth margin.

[0223] S77, obtaining, according to the bandwidth margin, a plurality of first candidate switching light source combinations that meet the second transmission requirement information of the data segment corresponding to the light source to be switched, wherein the first candidate switching light source combinations include at least one target monochromatic light source other than the light source to be switched, and at least one of the target monochromatic light sources is different between any two of the first candidate switching light source combinations;

[0224] Specifically, the first alternative switching light source combination refers to a combination of one or more target monochromatic light sources, which is used to jointly carry out the transmission task of data fragments. When light source resources are limited, different light sources are combined to meet the transmission requirements of data fragments and improve the resource utilization of the system. The system combines multiple light sources according to the bandwidth margin of each target light source to form a light source combination that can jointly meet the transmission requirements of data fragments. At least one of the light sources in these light source combinations is different between different combinations to ensure diversity and provide a more flexible selection space. Each combination meets the second transmission requirement. Through the light source combination, the system can make full use of existing resources, avoid the situation where a single light source cannot meet the data fragment requirements, and improve the overall transmission capacity and flexibility of the system.

[0225] S78, screening according to the frequency response characteristics of the target monochromatic light sources in each of the first candidate switching light source combinations and the data segment rate requirements of the data segments corresponding to the light sources to be switched, to obtain a plurality of second candidate switching light source combinations;

[0226] By considering the frequency response characteristics of the light source combination and the data fragment rate requirements, the light source combination that is most suitable for the current data fragment transmission is selected to ensure that the transmission rate after switching can meet the requirements. According to the frequency response characteristics of the light sources in the first candidate switching light source combination, the overall frequency response of the combination is calculated and compared with the data fragment rate requirements of the light source to be switched. A light source combination that can meet the rate requirements and has better frequency response characteristics is selected to form a second candidate switching light source combination.

[0227] S79, performing weighted calculation according to the number of redundant light sources and redundant bandwidth capacity of each of the second candidate switching light source combinations to obtain the redundancy of each of the second candidate switching light source combinations, wherein the weight of the number of redundant light sources is greater than the weight of the redundant bandwidth capacity;

[0228] Specifically, redundancy refers to the degree of redundant configuration of the system in terms of light source and bandwidth. The system calculates the number of redundant light sources (i.e., light sources that are not fully utilized) and redundant bandwidth capacity (i.e., unoccupied bandwidth) in each second alternative switching light source combination, and performs weighted calculation. Since the number of redundant light sources is more important to system stability than the redundant bandwidth capacity, the system gives a greater weight to the number of redundant light sources when calculating redundancy.

[0229] S710: Determine the target switching light source according to the second candidate switching light source group with the smallest redundancy.

[0230] Specifically, smaller redundancy means higher resource utilization efficiency, and this combination is the most optimized in resource allocation because it reduces unnecessary light sources and bandwidth usage. After selecting the combination with the smallest redundancy, the monochromatic light sources in the combination will be determined as the target switching light sources. At this time, the system allocates these light sources to the data fragments corresponding to the light sources to be switched for transmission.

[0231] Preferably, the step of controlling the target switching light source to transmit the data fragment corresponding to the light source to be switched according to the preset light source switching rule includes:

[0232] S81, splitting the data segment corresponding to the light source to be switched according to a preset data splitting ratio to obtain a first data segment and a second data segment;

[0233] Specifically, the preset data split ratio refers to the ratio of data segments to be allocated to different light sources for transmission, which is preset by the system. For example, 70% of the data segments are transmitted through the light source to be switched, and 30% are transmitted through the target switching light source. During the switching process, the data segments are split into two parts, which are respectively allocated to the original light source and the new switching light source for transmission to ensure the continuous transmission of the data segments and test the transmission effect of the switching light source. By allocating a part of the data segments to the target switching light source, the system can test the performance of the light source to decide whether to switch completely.

[0234] S82. According to the preset coding modulation algorithm, control the light source to be switched to transmit the first data segment and control the target switching light source to transmit the second data segment;

[0235] Specifically, the first data segment is modulated according to the preset coding and modulation algorithm corresponding to the light source to be switched, so as to transmit the first data segment, and the second data segment is coded, modulated and transmitted through the preset coding and modulation algorithm corresponding to the target switching light source, so as to ensure that the transmission of the two data segments on different light sources can be carried out according to the coding and modulation method set by the system, so as to ensure the accuracy and effectiveness of data transmission;

[0236] S83, acquiring the transmission quality of the second data segment on the target switching light source according to a preset time interval;

[0237] Specifically, the fixed time interval set by the system is used to periodically check the transmission quality of data segments and regularly monitor the transmission effect of the target switching light source to ensure that it can undertake the transmission task of data segments and provide data basis for subsequent decisions on whether to switch further. Transmission quality refers to the performance indicators such as signal strength, bit error rate, and transmission delay of the second data segment when transmitting on the target switching light source.

[0238] S84, if the transmission quality meets the preset quality condition, increase the preset data splitting ratio according to the preset ratio increment, and return to split the data fragments corresponding to the light source to be switched according to the preset data splitting ratio to obtain a first data fragment and a second data fragment, until the data fragments corresponding to the light source to be switched are completely transmitted through the target switching light source;

[0239] Specifically, first check whether the transmission quality of the target switching light source meets the preset conditions. If the transmission quality meets the requirements, that is, the performance indicators such as signal strength, bit error rate, and transmission delay all reach the corresponding thresholds, the system gradually increases the data segment allocation ratio of the target switching light source according to the preset proportional increment. This process will be repeated until all the data segments on the light source to be switched are transferred to the target switching light source.

[0240] By gradually increasing the data fragment allocation ratio, the system can ensure a smooth switching process and avoid data transmission interruption. This incremental switching method can maximize the transmission capacity of the target switching light source while ensuring quality.

[0241] S85, when the data segment corresponding to the light source to be switched is completely transmitted by the target switching light source, obtaining the second actual luminous intensity of each of the current target monochromatic light sources and the target switching monochromatic light source;

[0242] Specifically, when the data segment corresponding to the light source to be switched is completely transmitted through the target switching light source, that is, after the switching is completed, the actual luminous intensity of the current target switching light source and related light sources is obtained through sensors or other detection means, which is recorded as the second actual luminous intensity. Real-time acquisition of the actual luminous intensity helps to monitor the operating status of the light source and adjust the light source parameters in time to ensure the best lighting effect and transmission quality.

[0243] S86, acquiring a third light source control signal according to the second actual luminous intensity, the preset luminous intensity and the ambient light intensity;

[0244] Specifically, by comprehensively evaluating various light intensity parameters, an optimized control signal is generated to adjust the light emitting state of the light source to be switched to ensure optimal lighting. This step can be referred to S4351-S4355 and will not be elaborated here.

[0245] S87: Control the light source to be switched to perform illumination according to the third light source control signal.

[0246] Finally, the actual lighting state of the light source is adjusted through the generated control signal to ensure that the light source can operate normally during and after the switching process, and ensure that the communication and lighting effects are not affected. This dynamic adjustment method can enhance the stability and adaptability of the system and ensure that it can maintain the best working state under different environments and loads.

[0247] Implementation Method 2

[0248] In addition, combined Figure 1 The optical information transmission method based on full spectrum of the embodiment of the present invention described above can be implemented by a light source device. Figure 4 A schematic diagram of the hardware structure of a light source device provided in an embodiment of the present invention is shown.

[0249] The light source device may include a processor and a memory storing computer program instructions.

[0250] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.

[0251] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0252] The processor implements any one of the full-spectrum optical information transmission methods in the above embodiments by reading and executing computer program instructions stored in the memory.

[0253] In one example, the light source device may further include a communication interface and a bus. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.

[0254] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.

[0255] The bus includes hardware, software or both, and the parts of the light source equipment are coupled to each other. For example, but not limitation, the bus may include accelerated graphics port (AGP) or other graphics buses, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, the bus may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0256] In addition, in combination with the optical information transmission method based on full spectrum in the above embodiments, the embodiments of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the optical information transmission methods based on full spectrum in the above embodiments is implemented.

[0257] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0258] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0259] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0260] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A method for transmitting information via light based on a multi-color light source, characterized in that: Applied to a transmitting end, the transmitting end includes a full-spectrum semiconductor light-emitting device, the full-spectrum semiconductor light-emitting device includes a first preset number of LED light sources with different light-emitting wavelengths, and the adjustment range of the light-emitting wavelength of each of the LED light sources belongs to a different wavelength interval, and the method includes: Acquire basic parameters of the data to be transmitted, wherein the basic parameters include data type and data size; Determine first transmission requirement information of the data to be transmitted according to the basic parameters, wherein the first transmission requirement information includes a bandwidth requirement parameter and a rate requirement parameter; Determining the second preset number according to the bandwidth capacity of each LED light source; Dividing the data to be transmitted according to the data type and the second preset number to obtain data segments; Determining a second preset number of target LED light sources according to the light emitting characteristic parameters of the LED light source and the first transmission requirement information; Processing the data fragment corresponding to the corresponding target LED light source according to each of the LED light sources and the corresponding preset modulation algorithm to obtain a corresponding light source control signal; According to the light source control signal, the corresponding target LED light source is controlled to transmit the light-carrying information.

2. The method for transmitting information via light based on a multi-color light source according to claim 1, characterized in that: Determining the second preset number according to the bandwidth capacity of each LED includes: According to each of the preset modulation algorithms, obtaining the minimum bandwidth capacity and the maximum bandwidth capacity of each LED; Calculating an average according to the minimum bandwidth capacity and the maximum bandwidth capacity to obtain an average bandwidth capacity; According to the average bandwidth capacity and the bandwidth requirement parameter, matching is performed to determine the second preset number of LEDs.

3. The method for transmitting information via light based on a multi-color light source according to claim 2, characterized in that: The obtaining the average bandwidth capacity by calculating the average value according to the minimum bandwidth capacity and the maximum bandwidth capacity comprises: Calculating a sum of the minimum bandwidth capacity and the maximum bandwidth capacity to obtain a capacity sum; According to the capacity and value, an average is calculated to obtain the mean bandwidth capacity.

4. The method for transmitting information via light based on a multi-color light source according to claim 1, characterized in that: The step of dividing the data to be transmitted according to the data type and the second preset number to obtain data segments includes: According to the data type, obtaining a corresponding data partitioning strategy; According to the data partitioning strategy, the data to be transmitted is divided to obtain data segments.

5. The method for transmitting information via light based on a multi-color light source according to claim 4, characterized in that: The step of dividing the data to be transmitted to obtain data segments according to the data division strategy includes: If the data type is video, dividing the data to be transmitted according to the number of data frames to obtain data segments; If the data type is audio, dividing the data to be transmitted according to data time slices to obtain data segments; If the data type is text, the data to be transmitted is divided according to the number of data characters to obtain data segments.

6. The method for transmitting information via light based on a multi-color light source according to claim 1, characterized in that: The step of determining a second preset number of target LED light sources according to the light emitting characteristic parameters of the LED light source and the first transmission requirement information comprises: Determine second transmission requirement information of each of the data segments according to the first transmission requirement information, wherein the first transmission requirement information includes a bandwidth requirement parameter and a rate requirement parameter; Screening the LED light sources according to the second transmission requirement information to obtain candidate LED light sources, wherein the number of the candidate LED light sources is greater than or equal to the second preset number and less than or equal to the first preset number; When the number of the candidate LED light sources is greater than the second preset number, determining the second preset number of candidate LED light sources as target LED light sources according to the light emission characteristic parameters of the candidate LED light sources; When the number of the candidate LED light sources is equal to the second preset number, the candidate LED light sources are used as target LED light sources.

7. The method for transmitting information via light based on a multi-color light source according to claim 1, characterized in that: The processing of the data fragment corresponding to the corresponding target LED light source according to each of the LED light sources and the corresponding preset modulation algorithm to obtain the corresponding light source control signal comprises: Obtaining the frequency response characteristics of each of the target LED light sources, wherein the frequency response characteristics include: operating frequency range, bandwidth capacity, modulation efficiency and maximum transmission rate; Acquire second transmission requirement information of each of the data segments, wherein the second transmission requirement information includes: data segment bandwidth requirement, data segment rate requirement and priority; Calculate the difference between the bandwidth capacity of each of the target LED light sources and the data segment bandwidth requirement of each of the data segments, and record it as a first difference; Calculate the difference between the maximum transmission rate of each of the target LED light sources and the data segment rate requirement of each of the data segments, and record it as a second difference; According to the first difference and the second difference, an initial matching list is established for each of the data segments, wherein the initial matching list includes a number of target LED light sources that meet a preset transmission condition, and the preset transmission condition includes that the first difference is greater than or equal to a first difference threshold and the second difference is greater than or equal to a second difference threshold; According to the weighted calculation result of the first difference and the second difference, sort each initial matching list in ascending order; When there are duplicate target LED light sources in each of the initial matching lists, removing the duplicate target LED light sources according to the priority; Establishing a mapping relationship between the data segment and the first target LED light source in the corresponding initial matching list; Determine a target modulation algorithm according to the second transmission requirement information of the data segment, the frequency response characteristics of the target LED light source corresponding to the data segment, and a preset modulation algorithm, wherein the preset modulation algorithm includes: a PPM modulation algorithm, a PAM modulation algorithm, a QAM modulation algorithm, and an OFDM modulation algorithm; The corresponding data segments are coded and modulated according to the target modulation algorithm to obtain corresponding light source control signals.

8. The method according to claim 1, characterized in that: The controlling the corresponding target LED light source to transmit the light-carrying information according to the light source control signal comprises: Acquiring ambient lighting parameters, wherein the ambient lighting parameters include ambient light intensity and ambient spectral distribution; When the first preset number is equal to the second preset number, adjusting each of the light source control signals according to the ambient light intensity, the ambient spectral distribution and a preset filtering algorithm to obtain a first target control signal; According to the first target control signal, control the corresponding target LED light source to transmit light-carrying information; When the first preset number is greater than the second preset number, adjusting each of the light source control signals according to the ambient light parameter, the preset filtering algorithm and the preset light intensity to obtain a first target control signal; Acquire a first actual luminous intensity of each of the target LED light sources according to the first target control signal; Acquire a supplementary luminous intensity according to the first actual luminous intensity, the preset luminous intensity and the ambient light intensity; According to the supplementary luminous intensity, obtaining the total target luminous intensity of the LED light sources other than the target LED light source; According to the total target luminous intensity and the ambient spectral distribution, obtaining a target luminous intensity of each LED light source other than the target LED light source; According to the target luminous intensity, obtaining a second target control signal of all unused LED light sources; According to the first target control signal and the second target control signal, the corresponding LED light source is controlled to transmit the light-carrying information.

9. A light source device, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 8.

10. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Data transmission method, device and system based on visible light communication

    CN110365410A

  • Optical signal control method, device and system for optical transmitting end

    CN112564801A

  • Visible light communication method, device and equipment based on environment self-adaption and medium

    CN118300686A

  • Method of transmitting data and transmission system

    US20200213028A1