LED signal spread spectrum sending method, receiving method and system for single-line communication
By allocating multiple frequencies to the bits of the digital signal in LED single-line communication and generating modulated signals, the electromagnetic radiation problem caused by signal energy concentration is solved, the signal energy dispersion and electromagnetic radiation are reduced, and the spectrum utilization efficiency is improved.
Patent Information
- Application Number
- CN202411257660.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-24
AI Technical Summary
In LED single-line communication scenarios, the existing encoding method causes the signal energy to be concentrated at a specific frequency, increases the electromagnetic radiation intensity, and interferes with the surrounding electromagnetic environment.
By sequentially allocating at least two frequencies to each bit in the digital signal, a modulated signal is generated, the frequency transmitted by the code stream on the signal line is expanded, the signal energy is dispersed, and the electromagnetic radiation intensity is reduced.
Effectively dispersing signal energy, significantly reducing electromagnetic radiation intensity, reducing the impact on the surrounding electromagnetic environment, and improving spectrum utilization efficiency.
Smart Images

Figure CN119182495A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a single-line communication LED signal spread spectrum sending method, an LED signal receiving method, and an LED display system. Background Art
[0002] In the LED single-line communication scenario, data information and clock information need to be transmitted simultaneously on a single channel, so a coding method that can integrate these two types of information is usually used, such as return-to-zero code.
[0003] Although this type of coding method solves the special needs of single-line communication, it also brings new problems. Since this type of coding method usually has a fixed frequency, the fixed frequency code stream means that the signal energy is concentrated on a specific frequency and its harmonics. This energy concentration will cause a strong electromagnetic field to be generated at these frequencies, thereby increasing the intensity of electromagnetic radiation and having a significant impact on the surrounding electromagnetic environment. Summary of the invention
[0004] Based on this, the present application provides a single-line communication LED signal spread spectrum transmission method, including: Get digital signal; allocating one of at least two frequencies to each bit in the digital signal in sequence; Generate a modulation signal according to the bit value and the corresponding frequency of each bit in the digital signal; The modulated signal is transmitted.
[0005] In a possible implementation, generating a corresponding modulation waveform according to the bit value and the corresponding frequency of each bit in the digital signal includes: Generate a waveform segment including an effective level segment and a fixed level segment according to the bit value and the corresponding frequency of each bit in the digital signal, wherein the effective level segment is used to represent the bit value, and the fixed level segment is used to separate adjacent bits; All generated waveform segments are combined according to the bit order of the digital signal to obtain the modulated signal.
[0006] In a possible implementation, the bit value includes a first bit value and a second bit value, and generating a waveform segment including a valid level segment and a fixed level segment according to the bit value and frequency corresponding to the bit includes: Corresponding to the first bit value, generating a first waveform segment including an effective level segment having a first duration and a fixed level segment; Corresponding to the second bit value, generating a second waveform segment including an effective level segment having a second duration and a fixed level segment; The first duration and the second duration are different.
[0007] In a possible implementation, generating a corresponding modulation waveform according to the bit value and the corresponding frequency of each bit in the digital signal includes: For each bit in the digital signal: determining the frequency corresponding to the current bit; calculating the number of instruction cycles required to achieve the frequency; generating an instruction sequence including valid instructions and fill instructions according to the number of instruction cycles, wherein the valid instructions are used to control the level, and the fill instructions are used to fill to reach the calculated number of instruction cycles; The instruction sequence corresponding to each bit in the digital signal is executed in sequence to generate the modulated signal.
[0008] In a possible implementation, the digital signal includes a first bit and a second bit, and the allocating one of at least two frequencies to each bit in the digital signal in sequence includes: determining a first frequency set and a second frequency set, wherein each set includes at least two frequencies; Allocating a frequency in a first frequency set to each first bit in the digital signal; For each second bit in the digital signal, a frequency from a second set of frequencies is assigned.
[0009] In a possible implementation, allocating one of at least two frequencies to each bit in the digital signal in sequence includes: One of the at least two frequencies is cyclically allocated to each bit in the digital signal in sequence.
[0010] Corresponding to the above-mentioned LED signal spread spectrum sending method, the present application also provides an LED signal receiving method, including: Receive a modulated signal; sample the modulated signal to obtain a sampling sequence; identify the waveform segment of each bit in the sampling sequence; and restore the digital signal based on the waveform segment of each bit.
[0011] In a possible implementation manner, identifying the waveform segment of each bit in the sampling sequence includes: Detecting alternating changes of effective level segments and fixed level segments in the sampling sequence; Based on the detected alternating changes, the start and end positions of the waveform segment for each bit are determined.
[0012] In a possible implementation, the step of restoring the digital signal according to each of the waveform segments includes: For each waveform segment of the bit, the duration of the effective level segment is detected, and the duration of the effective level segment is compared with a preset threshold, wherein: If the duration of the effective level segment is greater than the preset threshold, the corresponding bit is determined as the first bit; If the duration of the effective level segment is less than or equal to the preset threshold, the corresponding bit is determined as the second bit; The digital signal is restored according to the bit values corresponding to all the bits.
[0013] The present application also provides an LED display system, including an LED controller and an LED driver chip, wherein the LED controller and the LED driver chip communicate with each other via a single line, the LED controller is configured to execute the above-mentioned single-line communication LED signal spread spectrum sending method, and the LED driver chip is configured to execute the above-mentioned LED signal receiving method.
[0014] The present application allocates one of at least two frequencies to each bit, so that the modulated signal finally obtained has at least two frequencies, and the original fixed frequency signal is dispersed to at least two different frequencies, thereby realizing the frequency expansion of the signal on the basis of single-line communication. It can effectively disperse the signal energy and avoid the energy being concentrated on a specific frequency, thereby significantly reducing the intensity of electromagnetic radiation. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] in: Figure 1 It is a schematic diagram of the parallel arrangement of LED driver chips provided by the present application; Figure 2 It is a schematic diagram of the LED driver chips provided by the present application being arranged in series; Figure 3 It is a schematic block diagram of a method for spreading spectrum sending an LED signal in single-line communication provided by an embodiment of the present application; Figure 4 is a waveform diagram of a modulation signal provided in an embodiment of the present application; Figure 5 is a waveform diagram of another modulation signal provided by an embodiment of the present application; Figure 6 It is a schematic block diagram of an LED signal receiving method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0019] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0020] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0021] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0022] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0023] In the single-line communication of the LED display system, such as Figure 1 and Figure 2As shown in the figure, the LED controller realizes signal transmission only through a single signal line and a group of LED driver chips. In this case, data information and clock information need to be transmitted simultaneously on the same signal line, so a coding method that can integrate these two types of information is usually adopted, such as return-to-zero code. However, this type of coding method usually has a fixed frequency. When a fixed-frequency code stream is transmitted on the signal line, the signal energy will be concentrated on a specific frequency and its harmonics. This energy concentration phenomenon will cause a strong electromagnetic field to be generated at these frequencies, thereby increasing the radiation intensity. This increased radiation may seriously interfere with the nearby electromagnetic environment.
[0024] Based on this, the present application proposes a single-line communication LED signal spread spectrum transmission method, which can be applied to the transmitting end, which can be an LED controller. This method assigns one of at least two frequencies to each bit in the digital signal in turn, and generates a modulation signal according to the bit value and corresponding frequency of each bit in the digital signal. On the basis of single-line communication, the frequency of the code stream when it is transmitted on the signal line can be expanded, so that the signal energy is no longer concentrated on a specific frequency and its harmonics, thereby reducing the intensity of electromagnetic radiation, and solving the problem of high electromagnetic radiation in the LED single-line communication scenario.
[0025] like Figure 3 As shown, this method is specifically as follows: 101. Obtain digital signal; In this step, firstly, a digital signal to be transmitted is obtained. This digital signal can be any form of binary data sequence, such as a control instruction or other information to be transmitted through the LED. The acquisition method can be reading from a memory, receiving from other devices, or generated by the system itself, which is not limited in this application.
[0026] 102. Assign one of at least two frequencies to each bit in the digital signal In the embodiment of the present application, one of at least two frequencies is sequentially assigned to each bit in the digital signal obtained in step 101, that is, a fixed frequency is no longer used to encode all bits, but a frequency is assigned to each bit. These frequencies are selected from at least two different frequencies defined in advance. The allocation of frequencies can be carried out according to predetermined rules, such as random selection, dynamic selection of frequencies according to a certain algorithm, or selection of frequencies in a fixed order. In this way, the energy of the signal is dispersed to multiple frequencies instead of being concentrated on a single frequency, thereby achieving the purpose of spectrum spread.
[0027] For example, suppose there is an 8-bit digital signal to be transmitted: 10110101. We pre-define four different frequencies: f1 = 100kHz, f2 = 150kHz, f3 = 200kHz, f4 = 250kHz.
[0028] In this example, a cyclic allocation method is used to allocate frequency to each bit. The specific allocation process is as follows: The first bit (1) is assigned to f1 (100kHz), the second bit (0) is assigned to f2 (150kHz), the third bit (1) is assigned to f3 (200kHz), the fourth bit (1) is assigned to f4 (250kHz), the fifth bit (0) is assigned back to f1 (100kHz), the sixth bit (1) is assigned to f2 (150kHz), the seventh bit (0) is assigned to f3 (200kHz), and the eighth bit (1) is assigned to f4 (250kHz). After this allocation process, we get the following bit-frequency correspondence: 1 - 100kHz, 0 - 150kHz, 1 - 200kHz, 1 -250kHz, 0 - 100kHz, 1 - 150kHz, 0 - 200kHz, 1 - 250kHz. In this example, the original fixed frequency signal is dispersed to four different frequencies, achieving the purpose of spectrum spread.
[0029] It can be understood that as the frequency width increases, the signal power density within a single frequency will decrease, and the corresponding electromagnetic radiation will also decrease accordingly. However, a frequency range that is too wide may cause it to exceed the frequency range of the communication system. Therefore, the selection of frequency can be made according to actual conditions, and this application does not limit this.
[0030] In some embodiments, the digital signal includes a first bit and a second bit, and step 102 of “assigning one of at least two frequencies to each bit in the digital signal in sequence” specifically includes: (11) Determine a first frequency set and a second frequency set, wherein each set includes at least two frequencies.
[0031] (12) assigning a frequency from a first frequency set to each first bit in the digital signal; For each second bit in the digital signal, a frequency from the second set of frequencies is assigned.
[0032] In this embodiment, a first frequency set and a second frequency set are first determined, each of which includes at least two different frequencies. For each bit in the digital signal, a frequency is selected from the corresponding frequency set. This selection process can be a sequential cyclic selection to ensure that all available frequencies are fully utilized, or it can be a random selection or a selection according to a certain algorithm, which is not limited in this application.
[0033] For example, for each first bit (e.g., "0") in the digital signal, a frequency is selected from the first frequency set in turn. For example, if the first frequency set includes frequencies f1, f2, and f3, then the first "0" may use f1, the second "0" may use f2, the third "0" may use f3, the fourth "0" may return to f1, and so on.
[0034] Similarly, for each second bit (e.g., “1”), we sequentially select a frequency from the second frequency set in a cyclic manner.
[0035] As another example, Figure 5 As shown, assuming that the digital signal is 1011010010, the first bit corresponds to bit 1, the second bit corresponds to bit 0, and the first frequency set and the second frequency set are as follows: The first frequency set: {f1, f2, f3, f4, f5} Second frequency set: { f6, f7, f8, f9, f10} The digital signal is digitally modulated to obtain a modulated signal, and the waveform of the modulated signal can be obtained as follows: Figure 5 As shown, the frequencies of the parts corresponding to bit 0 in the modulated signal are f1, f2, f3, f4, and f5, respectively, and the frequencies of the parts corresponding to bit 1 are f6, f7, f8, f9, and f10, respectively.
[0036] This embodiment can effectively disperse the signal energy by using two different frequency sets and selecting frequencies in each set. This method avoids the energy concentration on a specific frequency and its harmonics, thereby significantly reducing the intensity of electromagnetic radiation, reducing the impact on the surrounding electromagnetic environment, and increasing the spectrum utilization efficiency.
[0037] Step 103: Generate a modulation signal according to the bit value and the corresponding frequency of each bit in the digital signal.
[0038] In this embodiment, a corresponding modulation waveform is generated according to the value of each bit and the frequency assigned to it in step 102 .
[0039] For example, for each bit: first, a waveform with the corresponding frequency is generated according to the frequency assigned to the bit. Finally, according to the value of the bit, specific features of the waveform are adjusted to encode the bit information.
[0040] Through this process, each bit is correctly encoded into a waveform with a specific frequency and specific characteristics, thus forming a complete modulated signal.
[0041] In some embodiments, step 103 of “generating a modulation signal according to the bit value and the corresponding frequency of each bit in the digital signal” includes: (21) Generate a waveform segment including an effective level segment and a fixed level segment according to the bit value and the corresponding frequency of each bit in the digital signal.
[0042] (22) All generated waveform segments are combined according to the bit order of the digital signal to obtain the modulated signal.
[0043] The effective level segment is used to represent the bit value, and the fixed level segment is used to separate adjacent bits. The order of the effective level segment and the fixed level segment in each bit is fixed, for example, the effective level segment is followed by the fixed level segment, or the fixed level segment is followed by the effective level segment. As an example, Figure 4 As shown, Figure 4 , which shows a waveform diagram of a modulated signal, including 4 waveform segments, each of which corresponds to a bit ( Figure 4 Each waveform segment is marked with a dotted line in the figure), each waveform segment includes a valid level segment (high level portion) and a fixed level segment (low level portion), and the corresponding bit value can be obtained based on the high level duration of each waveform segment.
[0044] In the present embodiment, for each bit in the digital signal, a waveform segment including an effective level segment and a fixed level segment is generated according to its bit value and the corresponding frequency. Specifically, the effective level segment in the waveform segment is determined by the corresponding bit value, and the duration of the effective level segment can be used to represent different bit values. For example, "1" can be represented by a longer duration, and "0" can be represented by a shorter duration. The fixed level segment appears fixedly in each waveform segment and is used to separate adjacent bits, so the fixed level segment and the effective level segment adopt different level states, for example, the fixed level segment is a low level and the effective level segment is a high level. The frequency assigned to the bit determines the total duration of the waveform segment, that is, the sum of the effective level segment duration and the fixed level segment duration.
[0045] In this embodiment, since the frequency assigned to each bit is variable, the length of the waveform segment corresponding to each bit also changes accordingly. In this case, the fixed level segment provides a clear boundary mark for each bit, so that the receiving end can accurately determine the starting and ending positions of each bit. Not only the identifiability of the signal is improved, but also the accuracy and reliability of data transmission are enhanced. Even in the case where the frequency change causes the waveform length to be different, the receiving end can still accurately demodulate the original digital signal, thereby effectively realizing the spread spectrum transmission of the signal, while ensuring the integrity and correctness of the data.
[0046] In some embodiments, step (21) “generating a waveform segment including an effective level segment and a fixed level segment according to the bit value and the corresponding frequency of each bit in the digital signal” specifically includes: (31) corresponding to the first bit value, generating a waveform segment including an effective level segment and a fixed level segment having a first duration; (32) corresponding to the second bit value, generating a waveform segment including an effective level segment and a fixed level segment having a second duration; Among them, the first duration and the second duration are different In this embodiment, for different bit values, the effective level segment duration of the generated waveform segment is different. Specifically, for each bit in the digital signal, a waveform segment including an effective level segment and a fixed level segment is generated. The characteristics of this waveform segment depend on the bit value and the frequency assigned to it. Specifically, the bit value determines the duration of the effective level segment, and the frequency determines the period of the bit, that is, the sum of the duration of the effective level segment and the fixed level segment. For the first bit value, a waveform segment is generated, which includes two parts: an effective level segment with a duration of the first duration, and a fixed level segment. For example, the first duration can be 10 microseconds. Similarly, for the second bit value, a waveform segment is generated, which also includes an effective level segment and a fixed level segment, but the duration of the effective level segment here is the second duration, for example, 5 microseconds.
[0047] For example, suppose there is a digital signal "1011", where "1" represents the first bit value and "0" represents the second bit value. When processing this signal, we will generate the following in sequence: the first waveform segment (corresponding to the first "1"): a 10 microsecond effective level segment + a fixed level segment, the second waveform segment (corresponding to "0"): a 5 microsecond effective level segment + a fixed level segment, and the last two waveform segments (corresponding to the last two "1"): each is a 10 microsecond effective level segment + a fixed level segment.
[0048] It should be noted that as the frequency changes, the period of the waveform segment corresponding to the bit will change accordingly. However, the duration of the effective level segment of the same bit remains unchanged, because this is the basis for the receiver to judge different bit values. Therefore, in order to adapt to the change of frequency, the length of the fixed level segment will be adjusted accordingly, that is, for the waveform segment representing the same bit, the duration of the fixed level segment can be adjusted to achieve the specified frequency, and the length of the effective level remains unchanged.
[0049] For example, if the frequency assigned to a bit is low, the corresponding fixed level segment duration may be longer, such as 15 microseconds; and if the frequency assigned to a bit is high, the corresponding fixed level segment duration may be shorter, such as 5 microseconds.
[0050] Finally, the generated waveform segments are combined to obtain the modulated signal. In the process of combining the modulated signal, the generated waveform segments are arranged in the bit order of the original digital signal. Figure 4 As shown, Figure 4 An example is shown, which contains a total of 4 bits of waveform segments, the corresponding digital signal is 1011, the high level part of each waveform segment is a valid level segment, the low level part is a fixed level segment, and the frequencies of the 4 waveform segments are f1, f2, f3 and f4 respectively.
[0051] The embodiment of the present application achieves frequency expansion by adjusting the duration of a fixed level. This method can achieve three goals at the same time in a single-line communication scenario: transmitting data information, maintaining clock information, and achieving signal spread spectrum. The embodiment of the present application encodes data information in the duration of the effective level, and adjusts the signal frequency by changing the duration of the fixed level segment. These two aspects are relatively independent, which makes this method have significant advantages: even if the signal frequency changes, the receiving end can still accurately identify the data information, and this design improves communication reliability.
[0052] In some embodiments, step 103 of “generating a modulation signal according to the bit value and the corresponding frequency of each bit in the digital signal” includes: (41) For each bit in the digital signal: determining a frequency corresponding to the current bit; calculating the number of instruction cycles required to achieve the frequency; generating an instruction sequence including valid instructions and fill instructions according to the number of instruction cycles, wherein the valid instructions are used to control the level and the fill instructions are used to fill to achieve the calculated number of instruction cycles; (42) The instruction sequence corresponding to each bit in the digital signal is executed in sequence to generate a modulated signal.
[0053] In an embodiment of the present application, for each bit in the digital signal, the frequency corresponding to the bit is first confirmed, and the number of instruction cycles required to achieve the frequency is calculated, and the number of instruction cycles is inversely proportional to the target frequency. According to the number of instruction cycles, an instruction sequence including valid instructions and fill instructions is generated, wherein the valid instructions are used to control the level so that the modulated signal can represent the corresponding bit value. The fill instruction is used to fill in to reach the calculated number of instruction cycles, for example, it can be an empty instruction, and the instruction sequence is filled with an empty instruction to ensure that the modulated signal can reach the specified frequency.
[0054] After generating the instruction sequence for each bit in the digital signal, the instruction sequence corresponding to each bit in the digital signal is executed in sequence, thereby generating a modulated signal.
[0055] This embodiment fills in valid instructions to generate a modulation signal portion of a specified frequency, thereby accurately controlling the frequency of the output modulation signal, and can implement more complex modulation schemes, such as frequency hopping, etc., and can flexibly change the characteristics of the output signal by adjusting the instruction sequence.
[0056] Step 104: Send the modulated signal In this embodiment, after the corresponding modulation signal is generated, the modulation signal is sent, and the receiving end parses the data and control information according to the received electrical signal. For example, the LED controller sends the modulation signal to the LED driver chip.
[0057] Corresponding to the above-mentioned single-line communication LED signal spread spectrum transmission method, such as Figure 6 As shown, the present application also proposes a LED signal receiving method, which is applied to a receiving end, and the receiving end may be an LED driver chip. The method receives a modulated signal and recovers the modulated signal to obtain a digital signal. The method specifically includes: 201. Receive a modulated signal; 202. Sampling the modulated signal to obtain a sampling sequence; 203. Identify a waveform segment of each bit in the sampling sequence; 204. Restore the digital signal according to the waveform segment of each bit.
[0058] In this embodiment, a modulated signal is first received, and then the modulated signal is sampled to obtain a sampling sequence. For example, the sampling sequence may be a discrete digital sequence. The sampling sequence is then analyzed to identify the waveform segment representing each bit in the sampling sequence. Finally, the digital signal is restored based on the waveform segment of each bit.
[0059] In some embodiments, step 203 of “identifying the waveform segment of each bit in the sampling sequence” specifically includes: (51) Detecting the alternation of effective level segments and fixed level segments in the sampling sequence; (52) Based on the detected alternating changes, determine the start and end positions of the waveform segment of each bit.
[0060] In an embodiment of the present application, the waveform of each bit in the modulated signal includes an effective level segment and a fixed level segment, and their order is fixed, so the starting and ending positions of the waveform segment of each bit can be determined based on the alternating changes of the effective level segment and the fixed level segment. Specifically, the receiving end first samples the received modulated signal to obtain a sampling sequence. In this sampling sequence, the starting position and the ending position of each bit can be identified by detecting the alternating changes of the effective level segment and the fixed level segment.
[0061] by Figure 4 As an example, Figure 4In the example, the effective level segment is a high level, the fixed level segment is a low level, and the effective level segment in each bit is followed by a fixed level segment. The first rising edge from low level to high level, that is, the first rising edge, can be taken as the beginning of the first bit, and the second rising edge can be taken as the end of the first bit and the beginning of the second bit.
[0062] In this embodiment, since the frequency of the modulated signal is changing, the length of the waveform segment corresponding to each bit also changes accordingly. In this case, the fixed level segment provides a clear boundary mark for each bit, so that the receiving end can accurately determine the starting and ending positions of each bit. Not only is the signal identifiability improved, but also the accuracy and reliability of data transmission are enhanced. Even if the frequency change causes the waveform length to be different, the receiving end can still accurately demodulate the original digital signal, thereby effectively realizing the spread spectrum transmission of the signal while ensuring the integrity and correctness of the data.
[0063] In some embodiments, step 204 of “recovering the digital signal according to the waveform segment of each bit” specifically includes: (61) For each bit of the waveform segment, detect the duration of the valid level segment, and compare the duration of the valid level segment with a preset threshold, where: If the duration of the effective level segment is greater than a preset threshold, the corresponding bit is determined to be the first bit; If the duration of the effective level segment is less than or equal to the preset threshold, the corresponding bit is determined to be the second bit; (62) Restore the digital signal based on the bit values corresponding to all bits.
[0064] In this embodiment, for each waveform segment of the identified bit, the receiving end first detects the duration of the effective level segment. Next, the detected effective level segment duration is compared with a preset threshold. This preset threshold can be determined based on the first duration and the second duration used by the transmitting end.
[0065] The result of the comparison is used to determine the value of the bit: if the duration of the effective level segment is greater than a preset threshold, the corresponding bit is determined to be the first bit (for example, it can be represented as "1"); If the duration of the effective level segment is less than or equal to the preset threshold, the corresponding bit is determined to be the second bit (for example, can be represented as “0”).
[0066] In this way, the receiving end can determine the value of each bit in turn. Finally, based on the determination results of all bits, the complete digital signal is reconstructed in the original bit order.
[0067] It should be noted that the selection of the preset threshold may need to be made according to specific communication environments and requirements in practical applications, and this application does not limit this.
[0068] In the embodiment of the present application, since the frequency assigned to each bit is changing, this will cause the length of the waveform segment corresponding to each bit to change accordingly. Therefore, this embodiment does not rely on the waveform segment length, but judges the bit value by comparing the duration of the effective level segment with the threshold. This enables this embodiment to adapt well to the change in waveform segment length caused by frequency change, ensuring accurate decoding in the case of frequency expansion.
[0069] Corresponding to the method proposed above, an embodiment of the present application also provides an LED display system, including an LED controller and an LED driver chip, the LED controller communicates with the LED driver chip via a single line, the LED controller is configured to execute the steps in the above-mentioned LED signal spread spectrum sending method embodiments of each single-line communication, and the LED driver chip is configured to execute the steps in the above-mentioned LED signal receiving method embodiments.
[0070] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0071] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0072] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0073] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0074] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0075] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A single-line communication LED signal spread spectrum transmission method, characterized in that: include: Get digital signal; allocating one of at least two frequencies to each bit in the digital signal in sequence; Generate a modulation signal according to the bit value and the corresponding frequency of each bit in the digital signal; The modulated signal is transmitted.
2. The LED signal spread spectrum transmission method according to claim 1, characterized in that: The step of generating a modulation signal according to the bit value and the corresponding frequency of each bit in the digital signal comprises: For each bit, generating a waveform segment including an effective level segment and a fixed level segment according to the bit value and frequency corresponding to the bit, wherein the effective level segment is used to represent the bit value, and the fixed level segment is used to separate adjacent bits; All generated waveform segments are combined according to the bit order of the digital signal to obtain the modulated signal.
3. The LED signal spread spectrum transmission method according to claim 2, characterized in that: The bit value includes a first bit value and a second bit value, and generating a waveform segment including a valid level segment and a fixed level segment according to the bit value and frequency corresponding to the bit includes: Corresponding to the first bit value, generating a waveform segment including an effective level segment having a first duration and a fixed level segment; Corresponding to the second bit value, generating a waveform segment including an effective level segment having a second duration and a fixed level segment; The first duration and the second duration are different.
4. The LED signal spread spectrum transmission method according to claim 1, characterized in that: The step of generating a modulation signal according to the bit value and the corresponding frequency of each bit in the digital signal comprises: For each bit in the digital signal: determining the frequency corresponding to the current bit, calculating the number of instruction cycles required to achieve the frequency, and generating an instruction sequence including valid instructions and fill instructions according to the number of instruction cycles, wherein the valid instructions are used to control the level, and the fill instructions are used to fill to reach the calculated number of instruction cycles; The instruction sequence corresponding to each bit in the digital signal is executed in sequence to generate the modulated signal.
5. The LED signal spread spectrum transmission method according to claim 1, characterized in that: The digital signal includes a first bit and a second bit, and the step of sequentially allocating one of at least two frequencies to each bit in the digital signal includes: determining a first frequency set and a second frequency set, wherein each set includes at least two frequencies; Allocating a frequency in the first frequency set to each first bit in the digital signal; For each second bit in the digital signal, a frequency from the second set of frequencies is assigned.
6. The LED signal spread spectrum transmission method according to claim 1, characterized in that: The step of sequentially allocating one of at least two frequencies to each bit in the digital signal comprises: One of the at least two frequencies is cyclically allocated to each bit in the digital signal in sequence.
7. A method for receiving LED signals, characterized in that: include: receiving a modulated signal; Sampling the modulated signal to obtain a sampling sequence; identifying a waveform segment for each bit in the sample sequence; The digital signal is restored according to the waveform segment of each bit.
8. The LED signal receiving method according to claim 7, characterized in that: The step of identifying the waveform segment of each bit in the sampling sequence comprises: Detecting alternating changes of effective level segments and fixed level segments in the sampling sequence; Based on the detected alternating changes, the start and end positions of the waveform segment for each bit are determined.
9. The LED signal receiving method according to claim 8, characterized in that: The step of restoring the digital signal according to each of the waveform segments comprises: For each waveform segment of the bit, the duration of the effective level segment is detected, and the duration of the effective level segment is compared with a preset threshold, wherein: If the duration of the effective level segment is greater than the preset threshold, the corresponding bit is determined as the first bit; If the duration of the effective level segment is less than or equal to the preset threshold, the corresponding bit is determined as the second bit; The digital signal is restored according to the bit values corresponding to all the bits.
10. An LED display system, comprising an LED controller and an LED driver chip, characterized in that: The LED controller communicates with the LED driver chip via a single line. The LED controller is configured to execute the method according to any one of claims 1 to 6. The LED driver chip is configured to execute the method according to any one of claims 7 to 9.
