Information transmission method, device, terminal and storage medium

By using the visible light spectrum information of the terminal environment to generate target light parameters and transmit visible light signals, the problems of excessive divergence of Bluetooth and high infrared cost are solved, and safe and efficient information transmission is achieved, which is suitable for environments with strict electromagnetic interference.

CN116015449BActive Publication Date: 2024-12-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111226215.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-21
Publication Date
2024-12-24
Estimated Expiration
2041-10-21

AI Technical Summary

Technical Problem

In the prior art, Bluetooth information transmission has problems with excessive divergence connection, and infrared transmission costs are high, making it difficult to achieve efficient and secure information transmission.

Method used

By determining the visible light spectrum information of the terminal environment, determining the target light parameters, generating visible light signals for transmission, and using visible light for information transmission, avoiding radio spectrum control and electromagnetic interference.

Benefits of technology

It realizes safe and fast information transmission, reduces terminal costs, and is suitable for occasions where electromagnetic interference is strictly restricted, such as hospitals and aircraft.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116015449B_ABST
    Figure CN116015449B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an information transmission method, device, terminal and storage medium, wherein the information transmission method includes: determining first spectrum information of a first visible light, the first visible light being the visible light of the environment in which the first terminal is located; determining target light parameter information according to the first spectrum information; determining second visible light for carrying information to be transmitted according to the target light parameter information; emitting the second visible light to transmit the information to be transmitted. This method transmits information through visible light, which is very safe for users. Moreover, visible light transmitting devices are also relatively common, and the requirements for the location of the visible light transmitting devices are relatively low. Moreover, visible light is convenient for carrying more information, increasing the transmission speed of information, thereby increasing the response speed of the corresponding terminal. In addition, this method is not subject to radio spectrum regulation, does not require a radio spectrum license, and has no electromagnetic interference. It can be applied to hospitals, airplanes, space stations and other occasions where electromagnetic interference is strictly restricted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to an information transmission method, device, terminal and storage medium. Background Art

[0002] Generally, after two terminals are paired, infrared or Bluetooth is used to transmit information.

[0003] However, the disadvantage of Bluetooth is that it is too diffuse and will try to connect to multiple terminals that are not designated targets. And the cost of terminals is relatively high when information is transmitted through infrared. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides an information transmission method, device, terminal and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an information transmission method, which is applied to a first terminal, and the method includes:

[0006] Determine first spectrum information of first visible light, where the first visible light is visible light in an environment where the first terminal is located;

[0007] Determining target light parameter information according to the first spectrum information;

[0008] Determining, according to the target light parameter information, a second visible light used to carry the information to be transmitted;

[0009] The second visible light is emitted to transmit the information to be transmitted.

[0010] Optionally, the first spectrum information includes sub-spectrum information corresponding to at least one light collection frequency band, and determining the target light parameter information according to the first spectrum information includes:

[0011] Determine the target spectrum information corresponding to each sub-spectrum information according to the set frequency condition and each sub-spectrum information;

[0012] Determine a first light parameter group corresponding to each target spectrum information, wherein the first light parameter group includes a maximum light intensity value in the corresponding target spectrum information and a maximum light frequency value corresponding to the maximum light intensity value;

[0013] The target light parameter information is determined according to all of the first light parameter groups.

[0014] Optionally, determining the target spectrum information corresponding to each sub-spectrum information according to the set frequency condition and each sub-spectrum information includes:

[0015] Determining a maximum light frequency value in the sub-spectrum information;

[0016] The product of the set ratio and the maximum light frequency value is determined as the cutoff light frequency value;

[0017] Determine a light frequency band between the cutoff light frequency value and the maximum light frequency value as a target light frequency band;

[0018] The spectrum information corresponding to the target light frequency band in the sub-spectrum information is determined as the target spectrum information corresponding to the sub-spectrum information.

[0019] Optionally, determining the target light parameter information according to all of the first light parameter groups includes:

[0020] Determining at least one reference light parameter group according to all of the first light parameter groups;

[0021] Determine a target light parameter group corresponding to each of the reference light parameter groups, wherein, in the corresponding reference light parameter groups and the target light parameter groups, the light intensity value of the target light parameter group is greater than the light intensity value of the reference light parameter group, and the light frequency value of the target light parameter group is greater than the light frequency value of the reference light parameter group;

[0022] All of the target light parameter groups are determined as the target light parameter information.

[0023] Optionally, determining at least one reference light parameter group according to the light intensity values ​​of all the first light parameter groups includes:

[0024] If the reference light intensity value is less than or equal to the set intensity value, each of the first light parameter groups is determined as the reference light parameter group; and / or,

[0025] If the reference light intensity value is greater than the set intensity value, and there is no light intensity value in all the first light parameter groups whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group with the smallest light intensity value in all the first light parameter groups is determined as the reference light parameter group; and / or,

[0026] If the reference light intensity value is greater than the set intensity value, and among all the first light parameter groups, there is a light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group corresponding to the light intensity value is determined as the reference light parameter;

[0027] The reference light intensity value is the maximum light intensity value among all the light intensity values ​​of the first light parameter group.

[0028] Optionally, determining the second visible light for carrying the information to be transmitted according to the target light parameter information includes:

[0029] Sending a first information conversion rule to the second terminal, where the first information conversion rule is an information conversion rule supported by the first terminal;

[0030] receiving a target information conversion rule fed back by the second terminal, wherein the target information conversion rule is determined by the second terminal according to a second information conversion rule and the received first information conversion rule, and the second information conversion rule is an information conversion rule supported by the second terminal;

[0031] According to the target information conversion rule, the information to be transmitted is loaded into the visible light corresponding to the target light parameter information to determine the second visible light.

[0032] Optionally, determining first spectrum information of the first visible light includes:

[0033] receiving indication information, where the indication information includes first indication information for determining the second visible light and / or second indication information for adjusting the second visible light;

[0034] The first spectrum information is determined according to the indication information.

[0035] According to a second aspect of an embodiment of the present disclosure, there is provided an information transmission device, applied to a first terminal, the device comprising:

[0036] A determination module, configured to determine first spectrum information of first visible light, where the first visible light is visible light in an environment where the first terminal is located;

[0037] Also used to determine target light parameter information according to the first spectrum information;

[0038] It is also used to determine the second visible light used to carry the information to be transmitted according to the target light parameter information;

[0039] The transmitting module is used to transmit the second visible light to transmit the information to be transmitted.

[0040] Optionally, the first spectrum information includes sub-spectrum information corresponding to at least one light collection frequency band, and the determination module is used to:

[0041] Determine the target spectrum information corresponding to each sub-spectrum information according to the set frequency condition and each sub-spectrum information;

[0042] Determine a first light parameter group corresponding to each target spectrum information, wherein the first light parameter group includes a maximum light intensity value in the corresponding target spectrum information and a maximum light frequency value corresponding to the maximum light intensity value;

[0043] The target light parameter information is determined according to all of the first light parameter groups.

[0044] Optionally, the determining module is used to:

[0045] Determining a maximum light frequency value in the sub-spectrum information;

[0046] The product of the set ratio and the maximum light frequency value is determined as the cutoff light frequency value;

[0047] Determine a light frequency band between the cutoff light frequency value and the maximum light frequency value as a target light frequency band;

[0048] The spectrum information corresponding to the target light frequency band in the sub-spectrum information is determined as the target spectrum information corresponding to the sub-spectrum information.

[0049] Optionally, the determining module is used to:

[0050] Determining at least one reference light parameter group according to all of the first light parameter groups;

[0051] Determine a target light parameter group corresponding to each of the reference light parameter groups, wherein, in the corresponding reference light parameter groups and the target light parameter groups, the light intensity value of the target light parameter group is greater than the light intensity value of the reference light parameter group, and the light frequency value of the target light parameter group is greater than the light frequency value of the reference light parameter group;

[0052] All of the target light parameter groups are determined as the target light parameter information.

[0053] Optionally, the determining module is used to:

[0054] If the reference light intensity value is less than or equal to the set intensity value, each of the first light parameter groups is determined as the reference light parameter group; and / or,

[0055] If the reference light intensity value is greater than the set intensity value, and there is no light intensity value in all the first light parameter groups whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group with the smallest light intensity value in all the first light parameter groups is determined as the reference light parameter group; and / or,

[0056] If the reference light intensity value is greater than the set intensity value, and among all the first light parameter groups, there is a light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group corresponding to the light intensity value is determined as the reference light parameter;

[0057] The reference light intensity value is the maximum light intensity value among all the light intensity values ​​of the first light parameter group.

[0058] Optionally, the device includes a sending module and a receiving module, wherein:

[0059] The sending module is used to send a first information conversion rule to the second terminal, where the first information conversion rule is an information conversion rule supported by the first terminal;

[0060] The receiving module is used to receive a target information conversion rule fed back by the second terminal, where the target information conversion rule is determined by the second terminal according to a second information conversion rule and the received first information conversion rule, and the second information conversion rule is an information conversion rule supported by the second terminal;

[0061] The determination module is used to load the information to be transmitted into the visible light corresponding to the target light parameter information according to the target information conversion rule, and determine the second visible light.

[0062] Optionally, the device comprises a receiving module,

[0063] The receiving module is used to receive indication information, where the indication information includes first indication information used to determine the second visible light and / or second indication information used to adjust the second visible light;

[0064] The determining module is used to determine the first spectrum information according to the indication information.

[0065] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, the terminal including:

[0066] processor;

[0067] a memory for storing instructions executable by the processor;

[0068] The processor is configured to execute the method as described in the first aspect.

[0069] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method described in the first aspect.

[0070] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the method transmits information through visible light, which is very safe for users, and the visible light transmitting device is also relatively common, and the setting location requirements of the visible light transmitting device are relatively low, and the visible light is convenient for carrying more information, increasing the transmission speed of information, thereby increasing the response speed of the corresponding terminal. In addition, the method is not subject to radio spectrum control, does not require a radio spectrum license, and has no electromagnetic interference, and can be applied to hospitals, airplanes, space stations and other occasions where electromagnetic interference is strictly restricted.

[0071] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0073] Figure 1 The figure is a flowchart of an information transmission method according to an exemplary embodiment.

[0074] Figure 2 The figure is a block diagram of an information transmission device according to an exemplary embodiment.

[0075] Figure 3 is a block diagram of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION

[0076] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0077] The present disclosure provides an information transmission method, which is applied to a terminal. The method transmits information through visible light, which is very safe for users. Moreover, visible light transmitting devices are relatively common, and the requirements for the location of the visible light transmitting devices are relatively low. Moreover, visible light is convenient for carrying more information, increasing the transmission speed of information, thereby increasing the response speed of the corresponding terminal. In addition, the method is not subject to radio spectrum control, does not require a radio spectrum license, and has no electromagnetic interference. It can be applied to hospitals, airplanes, space stations and other places where electromagnetic interference is strictly restricted.

[0078] In an exemplary embodiment, a method for transmitting information is provided, which is applied to a terminal. Figure 1As shown, the method includes:

[0079] S110, determining first spectrum information of first visible light;

[0080] S120, determining target light parameter information according to the first spectrum information;

[0081] S130, determining a second visible light for carrying information to be transmitted according to the target light parameter information;

[0082] S140: Emit second visible light to transmit the information to be transmitted.

[0083] In step S110, the first visible light is the visible light in the environment where the first terminal is located, which may include the visible light emitted by the first terminal, and may also include the visible light emitted by other visible light emitting devices.

[0084] The first visible light may be collected by a visible light collection device of the first terminal, or may be obtained by other means, which are not limited here. For example, the first visible light may be collected by other terminals and then transmitted to the first terminal.

[0085] Among them, after the first visible light is collected by the visible light collection device of the first terminal, the collection device can transmit the collected information to the processor of the first terminal, so that the processor obtains the first visible light, and then processes the first visible light to determine the first spectrum information.

[0086] The acquisition device may include at least one of the following: a light sensor, a color sensor, a spectrum sensor, etc. The terminal may be provided with more than one acquisition device to ensure the reliability of the first visible light collected. When the terminal is provided with more than one acquisition device, each acquisition device may collect visible light at different angles, and the first visible light includes the visible light at the above different angles. Then, the final first spectrum information is determined by the spectrum information of the visible light at different angles to better reflect the spectrum information of the ambient light.

[0087] The spectrum information can be obtained by Fourier transforming the collected visible light, and the spectrum information includes information such as the frequency and the light intensity of the light of the corresponding frequency.

[0088] Example 1,

[0089] The terminal is a mobile phone, and the mobile phone can be provided with three acquisition devices, namely a front acquisition device provided on the front of the mobile phone, a rear acquisition device provided on the back of the mobile phone, and a top acquisition device provided on the top of the mobile phone.

[0090] The visible light collected by the front collection device can be referred to as the front visible light, the visible light collected by the rear collection device can be referred to as the rear visible light, and the visible light collected by the top collection device can be referred to as the top visible light.

[0091] The front visible light is subjected to Fourier transform to obtain the front spectrum information, the rear visible light is subjected to Fourier transform to obtain the rear spectrum information, and the top visible light is subjected to Fourier transform to obtain the top spectrum information.

[0092] Then, the final first spectrum information is determined according to the front spectrum information, the rear spectrum information and the top spectrum information. The first spectrum information includes the frequency of the first visible light and the light intensity corresponding to each frequency.

[0093] The union or intersection of the front spectrum information, the rear spectrum information and the top spectrum information may be determined as the first spectrum information. Alternatively, the first spectrum information may be determined according to the front spectrum information, the rear spectrum information and the top spectrum information in other ways, which will not be described in detail here.

[0094] In step S120, the target light parameter information may include light parameters such as light frequency values ​​and light intensity values. For example, the maximum light frequency value and the maximum light intensity value in the first spectrum information may be determined. Then, the light frequency value greater than the maximum light frequency value is determined as the target light frequency value, and the light intensity value greater than the maximum light intensity value is determined as the target light intensity value. Finally, the target light frequency value and the target light intensity value are determined as the target light parameter information.

[0095] Example 2,

[0096] The first spectrum information may include light frequency value P1, light frequency value P2, light frequency value P3, light frequency value P4 and light frequency value P5, as well as light intensity value D1 corresponding to light frequency value P1, light intensity value D2 corresponding to light frequency value P2, light intensity value D3 corresponding to light frequency value P3, light intensity value D4 corresponding to light frequency value P4 and light intensity value D5 corresponding to light frequency value P5.

[0097] Among them, the light frequency value P1 is the maximum light frequency value, and the light intensity value D3 is the maximum light intensity value. In this example, the light parameter information whose light frequency value is greater than the light frequency value P1 and whose light intensity value is greater than the light intensity value D3 can be determined as the target light parameter information.

[0098] In step S130, after the target light parameter information is determined, the visible light corresponding to the target light parameter information can be determined as the target visible light for carrying the information to be transmitted. Then, according to the information conversion rule between the information to be transmitted and the visible light, the information to be transmitted is loaded into the target visible light to form the second visible light.

[0099] The light frequency value of the second visible light is the light frequency value in the target light parameter information, and the light intensity value of the second visible light is the light intensity value in the target light parameter information.

[0100] Example 3,

[0101] The target light parameter information includes the light intensity value D and the light frequency value P. The information conversion rules include sub-conversion rules between the information to be transmitted and the binary information, and sub-conversion rules between the binary information and visible light. Among them, the presence of visible light and lasting for 0.1 seconds represents "0" in binary; the absence of visible light and lasting for 0.1 seconds represents "1" in binary.

[0102] Assuming that the information to be transmitted is converted into binary information as "011000110", in this case, the first terminal can be controlled to emit visible light with a light intensity value of D and a light frequency value of P, and the visible light flashes and emits in the following pattern: 0 seconds to 0.1 seconds to emit, 0.1 seconds to 0.3 seconds to not emit, 0.3 seconds to 0.6 seconds to emit, 0.6 seconds to 0.8 seconds to not emit, 0.8 seconds to 0.9 seconds to emit. The flashing visible light is the second visible light.

[0103] It should be noted that in this method, the target light parameter information may include one light parameter group or more than one light parameter group, which is not limited here. Each light parameter group may include a light intensity value and a light frequency value.

[0104] In step S140, the second visible light may be emitted by a light emitting device of the first terminal, which may be a light emitting device such as a flashlight, a flashlight or a display screen of the first terminal. Of course, a light emitting device specifically used for transmitting information may also be provided in the first terminal, which will not be described in detail here.

[0105] This method uses visible light to transmit information. Visible light transmitting equipment is also relatively common. Visible light is very safe for humans and has low requirements for the location of the visible light transmitting equipment. It can not only reduce terminal costs, but also facilitate the carrying of more information and increase the transmission speed of information, thereby increasing the response speed of the corresponding terminal. In addition, information transmission through visible light is not subject to radio spectrum regulation and does not require a radio spectrum license. Moreover, visible light has no electromagnetic interference, so this method can also be used in hospitals, airplanes, space stations and other places where electromagnetic interference is strictly restricted.

[0106] In an exemplary embodiment, an information transmission method is provided, which is applied to a first terminal. In the method, the first spectrum information includes sub-spectrum information corresponding to at least one light collection frequency band. When the first visible light is determined by a light collection device, the light collection frequency band is related to the collection device.

[0107] When the acquisition device is a light sensor, the first spectrum information only includes sub-spectrum information corresponding to one light acquisition frequency band, that is, the sub-spectrum information is the same as the first spectrum information. The light acquisition frequency band is the frequency band of all visible light.

[0108] When the acquisition device is a color sensor, the first spectrum information includes sub-spectrum information corresponding to three light acquisition frequency bands, wherein the three light acquisition frequency bands correspond to the visible light of the three light frequency bands that the color sensor can collect. It includes the R band corresponding to the red channel (R channel), the G band corresponding to the green channel (G channel), and the B band corresponding to the blue channel (B channel). It should be noted that the color sensor only divides the collected visible light into three light frequency bands, and does not limit the specific color of the visible light. For example, the R band does not only refer to the light frequency band of red visible light, it can also include other visible light frequency bands adjacent to the frequency band where the red visible light is located.

[0109] When the acquisition device is a spectral sensor, the first spectrum information includes sub-spectrum information corresponding to seven light acquisition frequency bands, wherein the seven light acquisition frequency bands correspond to the visible light of the seven light frequency bands that can be collected by the spectral sensor, which will not be elaborated here.

[0110] In the method, determining the target light parameter information according to the first spectrum information may include:

[0111] S210, determining target spectrum information corresponding to each sub-spectrum information according to a set frequency condition and each sub-spectrum information;

[0112] S220, determining a first light parameter group corresponding to each target spectrum information;

[0113] S230. Determine target light parameter information according to all first light parameter groups.

[0114] In step S210, the set frequency condition may be set before the terminal leaves the factory, or may be set after the terminal leaves the factory, and the set frequency condition may be modified later to better meet different needs of users.

[0115] The setting frequency condition may include at least one setting light frequency band, and each setting light frequency band corresponds to a sub-spectrum information. In the mutually corresponding light collection frequency band and the setting light frequency band, the light collection frequency band generally includes the setting light frequency band. It can be understood that the setting light frequency band may be related to the light frequency band of visible light that can be emitted by the first terminal. For example, the setting light frequency band is the same as the light frequency band of visible light that can be emitted by the first terminal.

[0116] In this step, the spectrum information corresponding to the corresponding set light frequency band in each sub-spectrum information may be determined as the target spectrum information corresponding to the sub-spectrum information.

[0117] Example 1,

[0118] There are three sub-spectrum information, which are recorded as the first sub-spectrum information, the second sub-spectrum information and the third sub-spectrum information. Among them, the first sub-spectrum information corresponds to the set light frequency band △S1, the second sub-spectrum information corresponds to the set light frequency band △S2, and the third sub-spectrum information corresponds to the set light frequency band △S3. It can be seen that the target spectrum information corresponding to the first sub-spectrum information is the spectrum information corresponding to the set light frequency band △S1 in the first sub-spectrum information; the target spectrum information corresponding to the second sub-spectrum information is the spectrum information corresponding to the set light frequency band △S2 in the second sub-spectrum information; the target spectrum information corresponding to the third sub-spectrum information is the spectrum information corresponding to the set light frequency band △S3 in the third sub-spectrum information.

[0119] In step S220, the first light parameter group includes a maximum light intensity value in the corresponding target spectrum information, and a maximum light frequency value corresponding to the maximum light intensity value.

[0120] After determining the target spectrum information, the maximum light intensity value in each target spectrum information and the maximum light frequency value corresponding to the maximum light intensity value can be determined, and then the above maximum light intensity value and maximum light frequency value are determined as the first light parameter group corresponding to the target spectrum information.

[0121] For example, three target spectrum information are determined in this step, which are recorded as the first target spectrum information, the second target spectrum information and the third target spectrum information, wherein the maximum light intensity value of the first target spectrum information is D1 and the maximum light frequency value is P1, the maximum light intensity value of the second target spectrum information is D2 and the maximum light frequency value is P2, and the maximum light intensity value of the third target spectrum information is D3 and the maximum light frequency value is P3. It can be seen that the first light parameter group corresponding to the first target spectrum information is the light intensity value D1 and the light frequency value P1, the first light parameter group corresponding to the second target spectrum information is the light intensity value D2 and the light frequency value P2, and the first light parameter group corresponding to the third target spectrum information is the light intensity value D3 and the light frequency value P3.

[0122] In step S230, after all the first light parameter groups are determined, the light intensity value of each first light parameter group can be determined, and the maximum light intensity value can be determined therefrom and recorded as the reference light intensity value. Then the light frequency value corresponding to the reference light intensity value is determined and recorded as the reference light frequency value. Finally, the target light parameter information is determined based on the above reference light intensity value and the reference light frequency value. For example, the light intensity value greater than the above reference light intensity value can be determined as the light intensity value of the target light parameter information; and the light frequency value greater than the above reference light frequency value can be determined as the light frequency value of the target light parameter information. In this way, the target light parameter information can be determined based on the reference light intensity value and the reference light frequency value.

[0123] In this method, the amount of data processing can be reduced, the speed of determining target light parameter information can be further increased, and the user experience is improved.

[0124] In an exemplary embodiment, an information transmission method is provided, which is applied to a first terminal. In the method, according to a set frequency condition and each sub-spectrum information, determining the target spectrum information corresponding to each sub-spectrum information may include:

[0125] S310, determining the maximum light frequency value in the sub-spectrum information;

[0126] S320, multiplying the set ratio by the maximum light frequency value to determine the cutoff light frequency value;

[0127] S330, determining a light frequency band between the cutoff light frequency value and the maximum light frequency value as a target light frequency band;

[0128] S340: Determine the spectrum information corresponding to the target light frequency band in the sub-spectrum information as the target spectrum information of the sub-spectrum information.

[0129] In step S310, each sub-spectrum information includes a light frequency band and a light intensity value corresponding to each light frequency value in the light frequency band. In this step, the maximum light frequency value in the light frequency band of each sub-spectrum information needs to be determined.

[0130] In step S320, setting the frequency condition includes setting a ratio, which may be set before the first terminal leaves the factory or after the first terminal leaves the factory, and the set ratio may be modified later to better meet the needs of the user. The set ratio may be 90%, 85%, 75%, etc.

[0131] In this step, the product of the maximum light frequency value corresponding to each sub-spectrum information and the set ratio is determined as the cutoff light frequency value corresponding to the corresponding sub-spectrum information.

[0132] Example 1,

[0133] The ratio is set to 75%. There are three sub-spectrum information, which are recorded as the first sub-spectrum information, the second sub-spectrum information and the third sub-spectrum information. Among them, the maximum light frequency value corresponding to the first sub-spectrum information is recorded as P1, the maximum light frequency value corresponding to the second sub-spectrum information is recorded as P2, and the maximum light frequency value corresponding to the third sub-spectrum information is recorded as P3. It can be seen that the cutoff light frequency value corresponding to the first sub-spectrum information is 75% P1, the cutoff light frequency value corresponding to the second sub-spectrum information is 75% P2, and the cutoff light frequency value corresponding to the third sub-spectrum information is 75% P3.

[0134] In step S330, a light frequency band between a cutoff light frequency value corresponding to the sub-spectrum information and a maximum light frequency value corresponding to the sub-spectrum information may be determined as a target light frequency band corresponding to the sub-spectrum information.

[0135] Example 2,

[0136] There are three sub-spectrum information, which are recorded as the first sub-spectrum information, the second sub-spectrum information and the third sub-spectrum information. Among them, the maximum light frequency value corresponding to the first sub-spectrum information is recorded as P1, the maximum light frequency value corresponding to the second sub-spectrum information is recorded as P2, and the maximum light frequency value corresponding to the third sub-spectrum information is recorded as P3. The cutoff light frequency value corresponding to the first sub-spectrum information is 75% P1, the cutoff light frequency value corresponding to the second sub-spectrum information is 75% P2, and the cutoff light frequency value corresponding to the third sub-spectrum information is 75% P3. It can be seen that the target light frequency band △P1 corresponding to the first sub-spectrum information is the light frequency band between the light frequency value 75% P1 and the light frequency value P1; the target light frequency band △P2 corresponding to the second sub-spectrum information is the light frequency band between the light frequency value 75% P2 and the light frequency value P2; the target light frequency band △P3 corresponding to the third sub-spectrum information is the light frequency band between the light frequency value 75% P3 and the light frequency value P3.

[0137] In step S340, after the target light frequency band corresponding to the sub-spectrum information is determined, the spectrum information corresponding to the target light frequency band in the sub-spectrum information may be determined as the target spectrum information corresponding to the sub-spectrum information.

[0138] Example 3,

[0139] There are three sub-spectrum information, which are recorded as the first sub-spectrum information, the second sub-spectrum information and the third sub-spectrum information. Among them, the first sub-spectrum information corresponds to the target light frequency band △P1, the second sub-spectrum information corresponds to the target light frequency band △P2, and the third sub-spectrum information corresponds to the target light frequency band △P3. It can be seen that the target spectrum information corresponding to the first sub-spectrum information is the spectrum information corresponding to the target light frequency band △P1 in the first sub-spectrum information; the target spectrum information corresponding to the second sub-spectrum information is the spectrum information corresponding to the target light frequency band △P2 in the second sub-spectrum information; the target spectrum information corresponding to the third sub-spectrum information is the spectrum information corresponding to the target light frequency band △P3 in the third sub-spectrum information.

[0140] In this method, by filtering the target spectrum information from each sub-spectrum signal information based on a set ratio, the subsequent data processing volume can be reduced, which can improve the efficiency of the entire method to a certain extent and enhance the user experience.

[0141] In an exemplary embodiment, an information transmission method is provided, which is applied to a first terminal. In the method, determining target light parameter information according to all first light parameter groups may include:

[0142] S410, determining at least one reference light parameter group according to all first light parameter groups;

[0143] S420, determining a target light parameter group corresponding to each reference light parameter group;

[0144] S430: Determine all target light parameter groups as target light parameter information.

[0145] In step S410, when the acquisition device of the first terminal is a light sensor, the number of the first light parameter group is one, and the first light parameter group can be directly determined as the reference light parameter group.

[0146] When the acquisition device is a color sensor, the number of first light parameter groups is three, corresponding to the R band, the G band, and the B band, respectively. In this case, the light intensity value of each first light parameter group can be determined first, and then a set number (e.g., 1 or 2) of the smaller light intensity values ​​among the three light intensity values ​​can be determined as reference light intensity values. Finally, the first light parameter group corresponding to each reference light intensity value is determined as the reference light parameter group.

[0147] Example 1,

[0148] The number is set to 1. There are three first light parameter groups, corresponding to the R band, the G band, and the B band. Among them, the light intensity value of the first light parameter group corresponding to the R band is the largest, and the light intensity value of the first light parameter group corresponding to the G band is the smallest. In this example, the light intensity value of the first light parameter group corresponding to the G band can be determined as the reference light intensity value, and then the first light parameter group corresponding to the G band can be determined as the reference light parameter group.

[0149] When the acquisition device is a spectral sensor, the number of the first light parameter groups is seven, corresponding to seven light frequency bands. In this case, the light intensity value of each first light parameter group can be determined first, and then a smaller set number (such as 2, 3 or 4, etc.) of the seven light intensity values ​​can be determined as reference light intensity values. Finally, the first light parameter group corresponding to each reference light intensity value is determined as the reference light parameter group.

[0150] Example 2,

[0151] The number is set to 2. The number of the first light parameter groups is seven, corresponding to seven light frequency bands respectively. The seven light frequency bands can be referred to as red frequency band, orange frequency band, yellow frequency band, green frequency band, cyan frequency band, blue frequency band and purple frequency band respectively.

[0152] The light intensity value of the first light parameter group corresponding to the red frequency band is recorded as D1, the light intensity value of the first light parameter group corresponding to the orange frequency band is recorded as D2, the light intensity value of the first light parameter group corresponding to the yellow frequency band is recorded as D3, the light intensity value of the first light parameter group corresponding to the green frequency band is recorded as D4, the light intensity value of the first light parameter group corresponding to the cyan frequency band is recorded as D5, the light intensity value of the first light parameter group corresponding to the blue frequency band is recorded as D6, and the light intensity value of the first light parameter group corresponding to the purple frequency band is recorded as D7. Among them, the above seven light intensity values ​​are D2, D5, D1, D3, D4, D7 and D6 from small to large.

[0153] In this example, the light intensity value recorded as D2 and the light intensity value recorded as D5 can be determined as reference light intensity values, and the first light parameter group corresponding to the orange frequency band and the first light parameter group corresponding to the cyan frequency band can be determined as reference light parameter groups.

[0154] It should be noted that the reference light parameter group may also be determined by other methods, which will not be described in detail here.

[0155] In step S420, in the corresponding reference light parameter group and target light parameter group, the light intensity value of the target light parameter group is greater than the light intensity value of the reference light parameter group, and the light frequency value of the target light parameter group is greater than the light frequency value of the reference light parameter group.

[0156] The difference between the light intensity value of the target light parameter group and the light intensity value of the reference light parameter group may be a set light intensity difference. The set light intensity difference may be set before the first terminal leaves the factory, or may be set after the first terminal leaves the factory, and the set light intensity difference may be modified later to better meet user needs.

[0157] The difference between the light frequency value of the target light parameter group and the light frequency value of the reference light parameter group may be a set light frequency difference. The setting method of setting the light frequency difference is similar to the setting method of setting the light intensity difference. It may be set before the first terminal leaves the factory or after the first terminal leaves the factory. In addition, the set light frequency difference may be modified later to better meet user needs.

[0158] Example 3,

[0159] There are two reference light parameter groups, which are respectively recorded as a first reference light parameter group and a second reference light parameter group. The first reference light parameter group may include a light frequency value P1 and a light intensity value D1, and the second reference light parameter group may include a light frequency value P2 and a light intensity value D2.

[0160] The light intensity difference is set to D0, and the light frequency difference is set to P0. It can be seen that the target light parameter group corresponding to the first reference light parameter group includes the light frequency value P1+P0 and the light intensity value D1+D0; the target light parameter group corresponding to the second reference light parameter group includes the light frequency value P2+P0 and the light intensity value D2+D0.

[0161] In step S430, after the target light parameter group corresponding to each reference light parameter group is determined, all target light parameter groups may be determined as target light parameter information. That is, the target light parameter information includes all target light parameter groups.

[0162] This method can determine more appropriate target light parameter information, so that more appropriate visible light can be used to carry the information to be transmitted, so as to better ensure the reliability of information transmission and improve the user experience.

[0163] In an exemplary embodiment, an information transmission method is provided, which is applied to a first terminal. In the method, determining at least one reference light parameter group according to the light intensity values ​​of all first light parameter groups may include at least one of the following methods:

[0164] Method 1: if the reference light intensity value is less than or equal to the set intensity value, each first light parameter group is determined as a reference light parameter group;

[0165] Mode 2: If the reference light intensity value is greater than the set intensity value, and there is no light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold value among all the first light parameter groups, then the first light parameter group with the smallest light intensity value among all the first light parameter groups is determined as the reference light parameter group;

[0166] Method 3: If the reference light intensity value is greater than the set intensity value, and among all the first light parameter groups, there is a light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group corresponding to the light intensity value is determined as the reference light parameter group.

[0167] The reference light intensity value is the maximum light intensity value among all the light intensity values ​​of the first light parameter group.

[0168] In this method, the set strength value can be set before the terminal leaves the factory, or it can be set after the terminal leaves the factory, and the set strength value can be modified later to better meet user needs. The setting threshold is similar to the setting method of the set strength value, which can be set before the terminal leaves the factory, or it can be set after the terminal leaves the factory, and the setting threshold can be modified later to better meet user needs.

[0169] The specific values ​​of the intensity value and the threshold value can be set according to the actual situation and are not limited here. Generally, the intensity value is between 30Lx and 500Lx, and the threshold value is generally greater than or equal to 10Lx.

[0170] Example 1,

[0171] The intensity value is set to 200 Lx, and the threshold is set to 10 Lx. The number of the first light parameter group is three, and the light intensity values ​​thereof are light intensity value D1, light intensity value D2, and light intensity value D3, wherein light intensity value D1 is the largest and light intensity value D3 is the smallest.

[0172] If the light intensity value D1 is less than or equal to 200 Lx, each first light parameter set may be determined as a reference light parameter set.

[0173] If the light intensity value D1 is greater than 200 Lx, and the difference between the light intensity value D1 and the light intensity value D2 is less than 10 Lx, and the difference between the light intensity value D1 and the light intensity value D3 is also less than 10 Lx, the first light parameter group corresponding to the light intensity value D3 can be determined as the reference light parameter group.

[0174] If the light intensity value D1 is greater than 200 Lx, and the difference between the light intensity value D1 and the light intensity value D2 is less than 10 Lx, and the difference between the light intensity value D1 and the light intensity value D3 is greater than or equal to 10 Lx, the first light parameter group corresponding to the light intensity value D3 can be determined as the reference light parameter group.

[0175] If the light intensity value D1 is greater than 200Lx, and the difference between the light intensity value D1 and the light intensity value D2 is greater than or equal to 10Lx, and the difference between the light intensity value D1 and the light intensity value D3 is also greater than or equal to 10Lx, then the first light parameter group corresponding to the light intensity value D2 can be determined as the reference light parameter group, and the first light parameter group corresponding to the light intensity value D3 can be determined as the reference light parameter group.

[0176] In this method, a more appropriate reference light parameter group can be determined, thereby reducing the requirement on the light intensity value of the second visible light and saving power.

[0177] In an exemplary embodiment, an information transmission method is provided, which is applied to a first terminal. In the method, determining a second visible light for carrying information to be transmitted according to target light parameter information and emitting the second visible light may include:

[0178] S510, sending a first information conversion rule to a second terminal;

[0179] S520, receiving a target information conversion rule fed back by the second terminal;

[0180] S530. According to the target information conversion rule, load the information to be transmitted into the visible light corresponding to the target light parameter information to determine the second visible light.

[0181] In step S510, the first information conversion rule is an information conversion rule supported by the first terminal. The information conversion rule refers to a conversion rule between optical information and information to be transmitted. The information to be transmitted may include various information such as numbers, text, and symbols.

[0182] The information conversion rules can be set according to user needs and are not limited here. For example, the information conversion rules may include at least one of the following:

[0183] Rule 1: light corresponds to the information to be transmitted "1", and no light corresponds to the information to be transmitted "0";

[0184] Rule 2: If there is light and the light lasts for the first time, it corresponds to the information to be transmitted "1"; if there is no light and the light lasts for the second time, it corresponds to the information to be transmitted "0". The first time and the second time can be the same or different. The setting method of the first time and the second time is similar to the setting method of setting the intensity value in other examples, so it will not be repeated here;

[0185] Rule 3: The visible light in the R band corresponds to the information to be transmitted "0", the visible light in the G band corresponds to the information to be transmitted "1", and the visible light in the B band corresponds to the information to be transmitted "2";

[0186] Rule 4: visible light in the red frequency band corresponds to information to be transmitted "0", visible light in the orange frequency band corresponds to information to be transmitted "1", visible light in the yellow frequency band corresponds to information to be transmitted "2", visible light in the green frequency band corresponds to information to be transmitted "3", visible light in the cyan frequency band corresponds to information to be transmitted "4", visible light in the blue frequency band corresponds to information to be transmitted "5", and visible light in the purple frequency band corresponds to information to be transmitted "6";

[0187] Rule 5: Visible light in the nth frequency band and the nth light intensity range corresponds to the information to be transmitted Cn, where n is a positive integer greater than or equal to 1.

[0188] The first information conversion rule may include at least one of the above information conversion rules.

[0189] In step S520, the target information conversion rule is determined by the second terminal according to the second information conversion rule and the received first information conversion rule, and the second information conversion rule is an information conversion rule supported by the second terminal. The second information conversion rule may also be at least one of the above information conversion rules.

[0190] After receiving the first information conversion rule, the second terminal may find an information conversion rule identical to the first information conversion rule from the second information conversion rules, and then determine at least one of the identical information conversion rules as a target information conversion rule.

[0191] Example 1,

[0192] The first information conversion rule includes rule 1 and rule 5, and the second information conversion rule includes rule 2 and rule 5. In this example, rule 5 can be determined as the target information conversion rule.

[0193] Example 2,

[0194] The first information conversion rule includes rule 1, rule 2 and rule 5, and the second information conversion rule includes rule 2, rule 3 and rule 5. In this example, rule 2 or rule 5 can be determined as the target information conversion rule.

[0195] Example 3,

[0196] The first information conversion rule includes rule 1, rule 2 and rule 5, and the second information conversion rule includes rule 2, rule 3 and rule 5. In this example, both rule 2 and rule 5 can be determined as target information conversion rules.

[0197] In step S530, after the target information conversion rule is determined, the information to be transmitted can be loaded into the visible light corresponding to the target light parameter information based on the target information conversion rule to form a second visible light carrying the information to be transmitted, and the second visible light is emitted from the first terminal to the second terminal to realize information transmission between the first terminal and the second terminal.

[0198] It should be noted that the sending of the first target information conversion rule and the receiving of the target information conversion rule in the method can be achieved by setting a communication method, and the set communication method may include Bluetooth communication, infrared communication, NFC communication, ultra wide band (UWB) communication, and the like.

[0199] The method can first determine a target information conversion rule supported by both the first terminal and the second terminal, and then convert the information to be transmitted into optical information based on the target information conversion rule, thereby achieving reliable transmission of the information to be transmitted through visible light.

[0200] In an exemplary embodiment, an information transmission method is provided, which is applied to a terminal. In the method, determining first spectrum information of first visible light may include:

[0201] S610, receiving instruction information;

[0202] S620. Determine first spectrum information according to the indication information.

[0203] In step S610, the indication information includes first indication information and / or second indication information, wherein the first indication information is indication information for determining the second visible light, and the second indication information is indication information for adjusting the second visible light.

[0204] The indication information may be input by a user to the first terminal so that the first terminal receives the indication information. The indication information may also be transmitted by another terminal (such as the second terminal) to the first terminal so that the first terminal receives the indication information.

[0205] When the indication information is transmitted from other terminals (such as the second terminal) to the first terminal, the transmission of the indication information can be achieved by setting a communication method, and the set communication method can include Bluetooth communication, infrared communication, NFC communication, ultra wideband (UWB) communication, etc.

[0206] Example 1,

[0207] The first terminal needs to transmit the information to be transmitted to the second terminal. Before transmitting the information to be transmitted, the user needs to input first indication information to the first terminal so that the first terminal can determine the target light parameter information, and then determine the second visible light used to carry the information to be transmitted based on the target light parameter information, and emit the second visible light to the second terminal so that the second terminal can receive the information to be transmitted.

[0208] During the transmission process of the information to be transmitted, if the second terminal determines that the received second visible light is unstable, it can send a second indication information to the first terminal to enable the first terminal to adjust the second visible light, that is, to enable the first terminal to redetermine the target light parameter information, and then redetermine the second visible light carrying the information to be transmitted, so as to better ensure the reliable transmission of the information to be transmitted.

[0209] The second visible light instability may include that the light intensity value of the optical signal received by the second terminal is too high or too low, or the light frequency value of the optical signal received by the second terminal is too high or too low, etc.

[0210] In this method, by setting the indication information, the target light parameter information can be adjusted in time according to the light conditions of the environment in which the first terminal is located, so as to adjust the second visible light, thereby ensuring that the information to be transmitted is transmitted reliably.

[0211] In an exemplary embodiment, an information transmission device is provided, which is applied to a first terminal. The device is used to implement the above-mentioned information transmission method. For example, referring to Figure 2 As shown, the device may include a determination module 101 and a transmission module 102. In the process of implementing the above method,

[0212] A determination module 101 is used to determine first spectrum information of first visible light, where the first visible light is visible light in an environment where the first terminal is located;

[0213] Also used to determine target light parameter information according to the first spectrum information;

[0214] It is also used to determine the second visible light used to carry the information to be transmitted according to the target light parameter information;

[0215] The transmitting module 102 is used to transmit the second visible light to transmit the information to be transmitted.

[0216] In an exemplary embodiment, an information transmission device is provided, which is applied to a first terminal. Figure 2 As shown, in the device, the first spectrum information includes sub-spectrum information corresponding to at least one light collection frequency band, and the determination module 101 is used to:

[0217] Determine the target spectrum information corresponding to each sub-spectrum information according to the set frequency condition and each sub-spectrum information;

[0218] Determine a first light parameter group corresponding to each target spectrum information, the first light parameter group including a maximum light intensity value in the corresponding target spectrum information and a maximum light frequency value corresponding to the maximum light intensity value;

[0219] According to all the first light parameter groups, target light parameter information is determined.

[0220] In an exemplary embodiment, an information transmission device is provided, which is applied to a first terminal. Figure 2 As shown, in the device, the determination module 101 is used to:

[0221] Determine the maximum light frequency value in the sub-spectrum information;

[0222] The product of the set ratio and the maximum light frequency value is determined as the cutoff light frequency value;

[0223] Determine the light frequency band between the cutoff light frequency value and the maximum light frequency value as the target light frequency band;

[0224] The spectrum information corresponding to the target light frequency band in the sub-spectrum information is determined as the target spectrum information corresponding to the sub-spectrum information.

[0225] In an exemplary embodiment, an information transmission device is provided, which is applied to a first terminal. Figure 2 As shown, in the device, the determination module 101 is used to:

[0226] Determining at least one reference light parameter group according to all first light parameter groups;

[0227] Determine a target light parameter group corresponding to each reference light parameter group, wherein in the corresponding reference light parameter group and target light parameter group, the light intensity value of the target light parameter group is greater than the light intensity value of the reference light parameter group, and the light frequency value of the target light parameter group is greater than the light frequency value of the reference light parameter group;

[0228] All target light parameter groups are determined as target light parameter information.

[0229] In an exemplary embodiment, an information transmission device is provided, which is applied to a first terminal. Figure 2 As shown, in the device, the determination module 101 is used to:

[0230] If the reference light intensity value is less than or equal to the set intensity value, each first light parameter group is determined as a reference light parameter group; and / or,

[0231] If the reference light intensity value is greater than the set intensity value, and among all the first light parameter groups, there is no light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group with the smallest light intensity value among all the first light parameter groups is determined as the reference light parameter group; and / or,

[0232] If the reference light intensity value is greater than the set intensity value, and among all the first light parameter groups, there is a light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group corresponding to the light intensity value is determined as the reference light parameter;

[0233] The reference light intensity value is the maximum light intensity value among all the light intensity values ​​of the first light parameter group.

[0234] In an exemplary embodiment, an information transmission device is provided, which is applied to a first terminal. Figure 2 As shown, the device includes a receiving module 103 and a sending module 104, wherein:

[0235] A sending module 103, configured to send a first information conversion rule to the second terminal, where the first information conversion rule is an information conversion rule supported by the first terminal;

[0236] The receiving module 104 is used to receive a target information conversion rule fed back by the second terminal, where the target information conversion rule is determined by the second terminal according to the second information conversion rule and the received first information conversion rule, where the second information conversion rule is an information conversion rule supported by the second terminal;

[0237] The determination module 101 is used to load the information to be transmitted into the visible light corresponding to the target light parameter information according to the target information conversion rule, and determine the second visible light.

[0238] In an exemplary embodiment, an information transmission device is provided, which is applied to a first terminal. Figure 2 As shown, the device includes a receiving module 104, wherein:

[0239] A receiving module 104, configured to receive indication information, where the indication information includes first indication information for determining the second visible light and / or second indication information for adjusting the second visible light;

[0240] The determination module 101 is used to determine first spectrum information according to the indication information.

[0241] In this device, information is transmitted through visible light, and visible light transmitting equipment is also relatively common. Visible light is very safe for humans, and the requirements for the location of the visible light transmitting equipment are relatively low. It can not only reduce the terminal cost, but also facilitate the carrying of more information, increase the transmission speed of information, and thus increase the response speed of the corresponding terminal. In addition, information transmission through visible light is not subject to radio spectrum control and does not require a radio spectrum license. Moreover, visible light has no electromagnetic interference, so this method can also be used in hospitals, airplanes, space stations and other places where electromagnetic interference is strictly restricted.

[0242] In an exemplary embodiment, a terminal is provided, and the terminal is, for example, a mobile phone, a laptop computer, a tablet computer, a wearable device, etc. The terminal may be the first terminal or the second terminal mentioned above.

[0243] In one example, the terminal is a mobile phone, and the mobile phone can be provided with three acquisition devices, namely a front acquisition device provided on the front of the mobile phone, a rear acquisition device provided on the back of the mobile phone, and a top acquisition device provided on the top of the mobile phone.

[0244] The visible light collected by the front collection device can be referred to as the front visible light, the visible light collected by the rear collection device can be referred to as the rear visible light, and the visible light collected by the top collection device can be referred to as the top visible light.

[0245] refer to Figure 3 As shown, terminal 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0246] Processing component 402 generally controls the overall operation of terminal 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. Processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above method. In addition, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

[0247] The memory 404 is configured to store various types of data to support operations at the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 may be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0248] Power component 406 provides power to various components of terminal 400. Power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 400.

[0249] The multimedia component 408 includes a screen that provides an output interface between the terminal 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera module and / or a rear camera module. When the terminal 400 is in an operating mode, such as a shooting mode or a video mode, the front camera module and / or the rear camera module may receive external multimedia data. Each front camera module and the rear camera module may be a fixed optical lens system or have a focal length and optical zoom capability.

[0250] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the terminal 400 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0251] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0252] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect the open / closed state of the terminal 400, the relative positioning of the components, such as the display and keypad of the terminal 400, and the sensor assembly 414 can also detect the position change of the terminal 400 or a component of the terminal 400, the presence or absence of contact between the user and the terminal 400, the orientation or acceleration / deceleration of the terminal 400, and the temperature change of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0253] The communication component 416 is configured to facilitate wired or wireless communication between the terminal 400 and other terminals. The terminal 700 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or a broadcast-related signal from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0254] In an exemplary embodiment, terminal 400 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned methods.

[0255] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of a terminal 400 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a tape, a floppy disk, and an optical data storage terminal, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the method shown in the above embodiment.

[0256] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present invention are indicated by the claims.

[0257] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0258] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. An information transmission method, applied to a first terminal, characterized in that: The method comprises: Determine first spectrum information of first visible light, where the first visible light is visible light in an environment where the first terminal is located; Determine target light parameter information according to the first spectrum information; the target light parameter information includes a target light frequency value and a target light intensity value, and a value greater than a maximum light frequency value in the first spectrum information is used as the target light frequency value, and a value greater than a maximum light intensity value in the first spectrum information is used as the target light intensity value; Taking the visible light corresponding to the target light parameter information as the target visible light, loading the information to be transmitted into the target visible light, and determining the second visible light; The second visible light is emitted to transmit the information to be transmitted.

2. The method according to claim 1, characterized in that The first spectrum information includes sub-spectrum information corresponding to at least one light acquisition frequency band, and determining target light parameter information according to the first spectrum information includes: Determine the target spectrum information corresponding to each sub-spectrum information according to the set frequency condition and each sub-spectrum information; Determine a first light parameter group corresponding to each target spectrum information, wherein the first light parameter group includes a maximum light intensity value in the corresponding target spectrum information and a maximum light frequency value corresponding to the maximum light intensity value; The target light parameter information is determined according to all of the first light parameter groups.

3. The method according to claim 2, characterized in that The step of determining target spectrum information corresponding to each sub-spectrum information according to the set frequency condition and each sub-spectrum information includes: Determining a maximum light frequency value in the sub-spectrum information; The product of the set ratio and the maximum light frequency value is determined as the cutoff light frequency value; Determine a light frequency band between the cutoff light frequency value and the maximum light frequency value as a target light frequency band; The spectrum information corresponding to the target light frequency band in the sub-spectrum information is determined as the target spectrum information corresponding to the sub-spectrum information.

4. The method according to claim 2, characterized in that: The step of determining the target light parameter information according to all of the first light parameter groups includes: Determining at least one reference light parameter group according to all of the first light parameter groups; Determine a target light parameter group corresponding to each of the reference light parameter groups, wherein, in the corresponding reference light parameter groups and the target light parameter groups, the light intensity value of the target light parameter group is greater than the light intensity value of the reference light parameter group, and the light frequency value of the target light parameter group is greater than the light frequency value of the reference light parameter group; All of the target light parameter groups are determined as the target light parameter information.

5. The method according to claim 4, characterized in that The step of determining at least one reference light parameter group according to the light intensity values ​​of all the first light parameter groups comprises: If the reference light intensity value is less than or equal to the set intensity value, each of the first light parameter groups is determined as the reference light parameter group; and / or, If the reference light intensity value is greater than the set intensity value, and there is no light intensity value in all the first light parameter groups whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group with the smallest light intensity value in all the first light parameter groups is determined as the reference light parameter group; and / or, If the reference light intensity value is greater than the set intensity value, and among all the first light parameter groups, there is a light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group corresponding to the light intensity value is determined as the reference light parameter; The reference light intensity value is the maximum light intensity value among all the light intensity values ​​of the first light parameter group.

6. The method according to any one of claims 1 to 5, characterized in that: The method of using the visible light corresponding to the target light parameter information as the target visible light, loading the information to be transmitted into the target visible light, and determining the second visible light includes: Sending a first information conversion rule to a second terminal, where the first information conversion rule is an information conversion rule supported by the first terminal; receiving a target information conversion rule fed back by the second terminal, wherein the target information conversion rule is determined by the second terminal according to a second information conversion rule and the received first information conversion rule, and the second information conversion rule is an information conversion rule supported by the second terminal; According to the target information conversion rule, the information to be transmitted is loaded into the visible light corresponding to the target light parameter information to determine the second visible light.

7. The method according to any one of claims 1 to 5, characterized in that: The determining of first spectrum information of the first visible light includes: receiving indication information, where the indication information includes first indication information for determining the second visible light and / or second indication information for adjusting the second visible light; The first spectrum information is determined according to the indication information.

8. An information transmission device, applied to a first terminal, characterized in that: The device comprises: A determination module, configured to determine first spectrum information of first visible light, where the first visible light is visible light in an environment where the first terminal is located; Also used to determine target light parameter information according to the first spectrum information; the target light parameter information includes a target light frequency value and a target light intensity value, and a light frequency value greater than the maximum light frequency value in the first spectrum information is used as the target light frequency value, and a light intensity value greater than the maximum light intensity value in the first spectrum information is used as the target light intensity value; It is also used to use the visible light corresponding to the target light parameter information as the target visible light, load the information to be transmitted into the target visible light, and determine the second visible light; The transmitting module is used to transmit the second visible light to transmit the information to be transmitted.

9. The device according to claim 8, characterized in that The first spectrum information includes sub-spectrum information corresponding to at least one light collection frequency band, and the determination module is used to: Determine the target spectrum information corresponding to each sub-spectrum information according to the set frequency condition and each sub-spectrum information; Determine a first light parameter group corresponding to each target spectrum information, wherein the first light parameter group includes a maximum light intensity value in the corresponding target spectrum information and a maximum light frequency value corresponding to the maximum light intensity value; The target light parameter information is determined according to all of the first light parameter groups.

10. The device according to claim 9, characterized in that The determining module is used to: Determining a maximum light frequency value in the sub-spectrum information; The product of the set ratio and the maximum light frequency value is determined as the cutoff light frequency value; Determine a light frequency band between the cutoff light frequency value and the maximum light frequency value as a target light frequency band; The spectrum information corresponding to the target light frequency band in the sub-spectrum information is determined as the target spectrum information corresponding to the sub-spectrum information.

11. The device according to claim 9, characterized in that The determining module is used to: Determining at least one reference light parameter group according to all of the first light parameter groups; Determine a target light parameter group corresponding to each of the reference light parameter groups, wherein, in the corresponding reference light parameter groups and the target light parameter groups, the light intensity value of the target light parameter group is greater than the light intensity value of the reference light parameter group, and the light frequency value of the target light parameter group is greater than the light frequency value of the reference light parameter group; All of the target light parameter groups are determined as the target light parameter information.

12. The device according to claim 11, characterized in that The determining module is used to: If the reference light intensity value is less than or equal to the set intensity value, each of the first light parameter groups is determined as the reference light parameter group; and / or, If the reference light intensity value is greater than the set intensity value, and there is no light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold value in all the first light parameter groups, then the first light parameter group with the smallest light intensity value in all the first light parameter groups is determined as the reference light parameter group; and / or, If the reference light intensity value is greater than the set intensity value, and among all the first light parameter groups, there is a light intensity value whose difference with the reference light intensity value is greater than or equal to the set threshold, then the first light parameter group corresponding to the light intensity value is determined as the reference light parameter; The reference light intensity value is the maximum light intensity value among all the light intensity values ​​of the first light parameter group.

13. The device according to any one of claims 8 to 12, characterized in that: The device comprises a sending module and a receiving module, wherein: The sending module is used to send a first information conversion rule to the second terminal, where the first information conversion rule is an information conversion rule supported by the first terminal; The receiving module is used to receive a target information conversion rule fed back by the second terminal, where the target information conversion rule is determined by the second terminal according to a second information conversion rule and the received first information conversion rule, and the second information conversion rule is an information conversion rule supported by the second terminal; The determination module is used to load the information to be transmitted into the visible light corresponding to the target light parameter information according to the target information conversion rule, and determine the second visible light.

14. The device according to any one of claims 8 to 12, characterized in that: The device comprises a receiving module, The receiving module is used to receive indication information, where the indication information includes first indication information used to determine the second visible light and / or second indication information used to adjust the second visible light; The determining module is used to determine the first spectrum information according to the indication information.

15. A terminal, characterized in that: The terminal comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the method according to any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method according to any one of claims 1 to 7.