Infrared transmitting device and method, infrared receiving device and infrared communication system
By splitting information of a preset bit length into multiple time slots for joint modulation and demodulation in infrared communication, the problems of low spectrum utilization and low transmission rate in existing infrared communication are solved, and efficient information transmission is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-15
- Publication Date
- 2026-03-31
AI Technical Summary
Existing infrared communication modulation methods, such as OOK and PPM, have low spectrum utilization and insufficient transmission rates, making it difficult to meet the requirements for efficient data transmission.
By dividing information of a preset bit length into N time slots, using an infrared transmitter to jointly modulate the information, and an infrared receiver to demodulate it, multiple bits of information can be transmitted within one symbol period.
It improves the spectrum utilization and data transmission rate of infrared communication, simplifies the modulation and demodulation process, reduces costs, and enhances anti-interference capabilities and communication security.
Smart Images

Figure CN121770628A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of infrared communication technology, and in particular to an infrared transmitting device, an infrared receiving device, an infrared communication system, and an infrared transmitting method. Background Technology
[0002] Currently, traditional infrared communication modulation methods mostly employ OOK (On-Off Keying) or PPM (Pulse Position Modulation). OOK represents binary signals by switching the current on and off at the transmitting end, with a duty cycle of 50%, and can only transmit 1 bit of information per symbol period, resulting in a spectral efficiency of less than 1 bit / s / Hz. PPM requires a reserved synchronization time slot, and its actual spectral utilization is only 20%-30% higher than OOK. Furthermore, limited by the infrared signal response time (nanosecond level), the actual transmission rate of OOK is usually less than 1 Mbps, and PPM, due to multi-pulse coding delay, generally has a transmission rate of only a few hundred kbps. Summary of the Invention
[0003] This application proposes an infrared transmitting device, method, infrared receiving device, and infrared communication system to improve the spectrum utilization and data transmission rate of infrared communication.
[0004] In a first aspect, embodiments of this application propose an infrared transmitting device, comprising: a first processor, configured to modulate information to be transmitted with a preset bit length to obtain N first digital signals, and sequentially output the N first digital signals in a target order within a target symbol period, wherein the preset bit length is greater than 1 bit length, N is an integer greater than 1 and less than or equal to Nmax, and Nmax is determined according to the target symbol period; a first control circuit, configured to output a first control signal according to the first digital signals; and an infrared transmitter, configured to emit infrared signals under the control of the first control signal.
[0005] Secondly, embodiments of this application propose an infrared receiving device, comprising: an infrared receiver, configured to receive an infrared signal emitted by an infrared transmitter as described in any one of claims 1-7, and output a second control signal under the action of the infrared signal; a second control circuit, configured to convert the second control signal into a second digital signal; and a second processor, configured to demodulate the N second digital signals according to the receiving order of the N second digital signals when N second digital signals are received within a target symbol period, to obtain information to be transmitted with a preset bit length.
[0006] Thirdly, embodiments of this application propose an infrared communication system, comprising: a transmitting end, including the infrared transmitting device described in the first aspect embodiment; and a receiving end, including the infrared receiving device described in the second aspect embodiment.
[0007] Fourthly, this application proposes an infrared emission method, comprising: modulating information to be transmitted of a preset bit length to obtain N first digital signals, wherein the preset bit length is greater than 1 bit length; sequentially obtaining N first control signals according to the N first digital signals within a target symbol period in a target order, wherein N is an integer greater than 1 and less than or equal to Nmax, and Nmax is determined according to the target symbol period; and emitting N infrared signals under the action of the N first control signals.
[0008] The infrared transmitting device, method, receiving device, and communication system of this application embodiment modulate information to be transmitted of a preset bit length using a first processor to obtain N first digital signals. These N first digital signals are then sequentially output within a target symbol period according to a target order. A first control circuit then sequentially outputs N first control signals based on the N first digital signals. Finally, an infrared transmitter sequentially emits N infrared signals under the control of the N first control signals. Thus, the first processor can divide a target symbol period of one bit length into N time slots, and modulate information of a preset bit length greater than one bit length into N first digital signals, which are then sequentially output in the N time slots. These signals are then converted into N infrared signals and emitted via a first control circuit and an infrared transmitter connected in sequence. This achieves the transmission of information greater than one bit length within a target symbol period, improving the spectrum utilization and data transmission rate of infrared communication.
[0009] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0010] Figure 1 This is a structural block diagram of the infrared emitting device according to an embodiment of this application;
[0011] Figure 2 This is a schematic diagram of an example of the intensity-time-slot dual modulation mapping coordinates of this application;
[0012] Figure 3(a) is a structural block diagram of a first control circuit according to an example of this application;
[0013] Figure 3(b) is a structural block diagram of the first control circuit of another example of this application;
[0014] Figure 4This is a schematic diagram of the structure of an example current control sub-circuit of this application;
[0015] Figure 5 This is a structural block diagram of the infrared receiving device according to an embodiment of this application;
[0016] Figure 6 This is a schematic diagram illustrating an example of an infrared communication process according to this application;
[0017] Figure 7 This is a structural block diagram of an infrared communication system according to an embodiment of this application;
[0018] Figure 8 This is a flowchart of an infrared emission method according to an embodiment of this application. Detailed Implementation
[0019] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0020] The infrared communication apparatus, system, method, and terminal device of this application are described below with reference to the accompanying drawings.
[0021] Currently, infrared communication modulation methods mostly employ OOK (On-Off Keying) or PPM (Pulse Position Modulation). OOK represents a binary signal by switching the current on and off at the transmitting end, with a duty cycle of 50%, and can only transmit 1 bit of information per symbol period, resulting in a spectral efficiency of less than 1 bit / s / Hz. PPM requires a reserved synchronization time slot, and its actual spectral utilization is only 20%-30% higher than OOK. Furthermore, limited by the infrared signal response time (nanosecond level), the actual transmission rate of OOK is usually less than 1 Mbps, and PPM, due to multi-pulse coding delay, generally has a transmission rate of only a few hundred kbps. Therefore, this application proposes an infrared transmitting device to improve spectral utilization and data transmission rate.
[0022] Figure 1 This is a structural block diagram of an infrared emitting device according to an embodiment of this application.
[0023] like Figure 1As shown, the infrared transmitting device 100 includes a first processor 10, a first control circuit 20, and an infrared transmitter 30. The first processor 10 modulates the information to be transmitted with a preset bit length to obtain N first digital signals, and outputs these N first digital signals sequentially within the target symbol period according to the target order. The preset bit length is greater than 1 bit, and N is an integer greater than 1 and less than or equal to Nmax, where Nmax is determined according to the target symbol period. The first control circuit 20 outputs a first control signal based on the first digital signals, and the infrared transmitter 30 emits infrared signals under the control of the first control signal.
[0024] In this embodiment, the preset bit length can be set according to transmission needs, such as 2 bits, 3 bits, 4 bits, 6 bits, etc., and the information to be sent is binary information; taking 4-bit binary information as an example, the information to be sent can be 0101, 0111, 1010, etc. The target sequence can be set according to the modulation method; the target symbol period can be the same as the symbol period used in the current OOK or PPM modulation, and for ease of subsequent description, it can be denoted as T; Nmax is the maximum number of first digital signals that the first processor 10 can output and the first control circuit 20 can process in one target symbol period. The first control signal can be a current signal, a power signal, etc., which can control the infrared transmitter 30 to emit infrared light of different intensity amplitudes to carry different infrared signals.
[0025] Taking the transmission of 4-bit binary information in one symbol period T as an example, the first processor 10 divides T into N time slots and performs infrared intensity and time joint modulation on the 4-bit binary information to obtain N first digital signals corresponding one-to-one with the N time slots. Then, it outputs the corresponding first digital signal to the first control circuit 20 in each time slot. After receiving each first digital signal, the first control circuit 20 converts it into a first control signal and outputs it to the infrared transmitter 30, controlling the infrared transmitter 30 to emit infrared light of corresponding intensity to carry the corresponding infrared signal. When the N infrared signals corresponding to the N first digital signals are transmitted, the transmission of 4-bit binary information in one symbol period T is achieved. However, using OOK or PPM modulation, only 1-bit binary information can be transmitted in one symbol period T. Obviously, the infrared transmitting device 100 of this embodiment can improve spectral efficiency and data transmission rate compared to infrared transmitting devices using OOK or PPM modulation. Furthermore, the joint modulation can be implemented by the first processor 10 through software, without the need for complex optical components, resulting in low cost.
[0026] The infrared transmitting device 100 of this application embodiment can be used in various fields requiring infrared transmission, such as wireless remote control, infrared temperature measurement, infrared photography, and short-range communication. It should be noted that the target information to be transmitted by the infrared transmitting device 100 may be longer than a preset bit length. In this case, the target information can be segmented, with each segment being a preset bit length, and transmitted sequentially. For segments shorter than the preset bit length, padding can be added, such as by adding the corresponding number of "0"s or "1"s at the end.
[0027] In one implementation, the first processor 10 is specifically used to: look up N first intermediate values in a table according to the information to be transmitted with a preset bit length; obtain the values corresponding to N first control signals based on the N first intermediate values, each first intermediate value is obtained by performing different mathematical operations on the values corresponding to the N first control signals, and the target order is determined according to the relative position of the values corresponding to the N first control signals and the operators in the mathematical operations; and digitally encode the values corresponding to the N first control signals to obtain N first digital signals.
[0028] In this embodiment, a preset mapping table can be pre-constructed and stored. This preset mapping table includes multiple sets of preset information of preset bit length and mapping relationships with N first intermediate values. The first processor 10 can look up the preset mapping table based on the information to be sent of preset bit length to obtain the N first intermediate values. Mathematical operations can include sum operations, difference operations, variations of sum and difference operations (such as mean operations, difference operations), and combinations of at least two (such as sum-then-difference operations). Taking N as 2 as an example, mathematical operations include mean operations and difference operations. By performing different mathematical operations on the values corresponding to the N first control signals, each first intermediate value can be obtained. When the N first intermediate values are known, the "inverse operation" of mathematical operations based on the first intermediate values can obtain the values corresponding to the N first control signals. As mentioned above, the first control signals are analog signals, such as current signals and power signals. The software code of the first processor 10 can digitally encode the values corresponding to the first control signals to obtain the corresponding first digital signals.
[0029] For example, the preset bit length is divided into N first bit lengths, and the number of levels of each first intermediate value is related to the corresponding first bit length by a power of 2. Each first bit length is greater than or equal to 1 bit length.
[0030] Taking a preset bit length of 4 bits as an example, the 4 bits can be divided into two 2-bit segments, and each first intermediate value can be divided into 2... 2 =4 levels, and the preset mapping table can store 16 sets of correspondences. Alternatively, the 4 bits can be divided into a 1-bit and a 3-bit partition, with the first intermediate value further divided into 2... 1= 2 levels, the other first intermediate value can be divided into 2 3 =8 levels, and the preset mapping table can store 16 sets of correspondences. Compared with the latter, the former divides the two first intermediate values into 4 levels each, which is more balanced, avoids the ambiguity of 2 levels, and reduces the computational complexity and interference risk of 8 levels.
[0031] Taking a preset bit length of 3 bits as an example, the 3 bits can be divided into a 1-bit and a 2-bit, where the first intermediate value can be divided into 2 bits. 1 = 2 levels, the other first intermediate value can be divided into 2 2 = 4 levels, and the preset mapping table can store 8 sets of corresponding relationships.
[0032] Taking a preset bit length of 5 bits as an example, the 5 bits can be divided into one 1-bit and two 2-bit values. One of the first intermediate values can be divided into 2 bits. 1 = 2 levels, the other two first intermediate values can be divided into 2 2 = 4 levels, and the preset mapping table can store 32 sets of corresponding relationships.
[0033] Of course, the preset bit length and the first bit length can be other bit lengths, and the value of N can also be other values, which can be set according to the specific needs.
[0034] In another implementation, the first processor 10 is specifically used to: look up the values corresponding to N first control signals in a table according to the information to be sent with a preset bit length, and determine the target order according to the position of the values corresponding to the N first control signals in the table; and digitally encode the values corresponding to the N first control signals to obtain N first digital signals.
[0035] In this embodiment, a preset mapping table can be pre-constructed and stored. This preset mapping table includes mapping relationships between multiple sets of preset information of preset bit lengths and the corresponding values of N first control signals. The first processor 10 can look up the preset mapping table based on the information to be sent of preset data length to obtain the values corresponding to the N first control signals. As mentioned above, the first control signals are analog signals, such as current signals or power signals. The software code of the first processor 10 can digitally encode the values corresponding to the first control signals to obtain the corresponding first digital signals.
[0036] Compared to the aforementioned implementation that involves mathematical operations, this embodiment eliminates the need for mathematical operations during modulation by the first processor 10, resulting in a simpler modulation process. In contrast, the aforementioned implementation involving mathematical operations requires the receiving end to be aware of these operations for demodulation, thereby improving the security of subsequent infrared communication and enhancing anti-interference capabilities.
[0037] To facilitate understanding, the following example illustrates the implementation of the mathematical operations described above, using a preset bit length of 4 bits, divided into two 2-bit units:
[0038] First, each target symbol period T is divided into two time slots, denoted as the first time slot T1 and the second time slot T2, respectively. The time of each time slot can be T / 2.
[0039] Then, average light intensity amplitude modulation is performed on one of the 2 bits, i.e., modulation is achieved using averaging operations. Specifically: average light intensity amplitude Iavg = (I T1 +I T2 ) / 2, divide Iavg into 4 light intensity levels, and the corresponding current signal values (i.e., a first intermediate value) are I1, I2, I3, and I4, for example, 10mA, 50mA, 100mA, and 150mA. These values can be customized according to the needs of the scenario (such as transmission distance, devices in the first control circuit 20, etc.).
[0040] For the other 2 bits, inter-slot optical intensity difference modulation is performed, that is, modulation is achieved using difference operations. Specifically: inter-slot optical intensity difference ΔI = I T1 -I T2 The difference is divided into 4 light intensity levels, and the corresponding current signal values (i.e., another first intermediate value) are ΔI1, ΔI2, ΔI3, and ΔI4, such as -45mA, -15mA, +15mA, and +45mA. These values can also be customized according to the needs of the scenario (such as transmission distance, devices in the first control circuit 20, etc.).
[0041] Combining the above-mentioned average light intensity amplitude modulation and inter-slot light intensity difference modulation, the preset mapping relationship table shown in Table 1 below can be obtained:
[0042] Table 1
[0043]
[0044]
[0045] As can be seen from Table 1, each 4-bit binary data corresponds one-to-one with the range of average light intensity amplitude and the range of light intensity difference between time slots. Figure 2 The corresponding mapping coordinates are shown. The vertical axis represents the light intensity difference between time slots, i.e., ΔI, and the horizontal axis represents the average light intensity amplitude (I1, I2, I3, I4). The horizontal and vertical axes can also be interchanged.
[0046] The modulation process is described below using two examples:
[0047] Example 1: The message to be sent is "0010"
[0048] By referring to the mapping relationship in Table 1, we can obtain the average light intensity amplitude = 50mA and the light intensity difference between time slots = +15mA. Based on the average light intensity amplitude and the light intensity difference between time slots, the light intensity of the two time slots can be calculated as follows:
[0049] I T1 +I T2 =2×50=100mA,I T1 -I T2 =+15mA
[0050] Solving for I yields T1 =57.5mA, I T2 =42.5mA, meaning the value corresponding to the first control signal in the first time slot is 57.5mA, and the value corresponding to the first control signal in the second time slot is 42.5mA. Taking one symbol period T = 500ns as an example, the first processor 10 causes the first control circuit 20 to output a current signal of 57.5mA as the first control signal in the first 250ns, and output a current signal of 42.5mA as the first control signal in the last 250ns.
[0051] Example 2: The message to be sent is "1101"
[0052] Looking up the mapping in Table 1, we find the average light intensity amplitude = 150 mA and the light intensity difference between time slots = -45 mA. Based on the average light intensity amplitude and the light intensity difference between time slots, the time slot light intensity can be calculated as follows:
[0053] I T1 +I T2 =2×150=300mA,I T1 -I T2 = -45mA
[0054] Solving for I yields T1 =127.5mA, I T2 =172.5mA, meaning the value corresponding to the first control signal in the first time slot is 127.5mA, and the value corresponding to the first control signal in the second time slot is 172.5mA. Taking one symbol period T = 500ns as an example, the first processor 10 causes the first control circuit 20 to output a current signal of 127.5mA as the first control signal in the first 250ns, and output a current signal of 172.5mA as the first control signal in the last 250ns.
[0055] In some examples of this application, as shown in FIG3(a), the first control circuit 20 includes a digital-to-analog converter 21 and a current control sub-circuit 22. The digital-to-analog converter 21 is used to convert a first digital signal into a first voltage signal. The current control sub-circuit 22 is used to convert the first voltage signal into a current signal and output it as a first control signal to the infrared transmitter 30.
[0056] In this example, the digital-to-analog converter 21 performs digital-to-analog conversion on the first digital signal to obtain a first voltage signal. The current control sub-circuit 22 outputs a corresponding current signal under the action of the first voltage signal to provide energy for the infrared transmitter 30 to emit infrared signals.
[0057] In other examples of this application, as shown in FIG3(b), the first control circuit 20 includes a digital-to-analog converter 21 and a power control sub-circuit 23. The digital-to-analog converter 21 is used to convert a first digital signal into a first voltage signal. The power control sub-circuit 23 is used to convert the first voltage signal into a power signal and output it as a first control signal to the infrared transmitter 30.
[0058] The difference between this power example and the current example described above is that this power example converts the first voltage signal into a power signal, which drives the infrared emitter 30 to emit an infrared signal. Specifically, it can be achieved by using electrical power to excite electron transitions in the semiconductor material of the infrared emitter 30, causing it to release energy in the form of infrared photons.
[0059] Since power is the product of current and voltage, current-driven operation is simpler and easier to implement than power-driven operation.
[0060] For current-driven applications, one implementation method is as follows: Figure 4 As shown, the current control sub-circuit 22 includes: a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first switch Q1, a second switch Q2, and an operational amplifier 212.
[0061] See Figure 4The first end of the fourth resistor R4 is connected to the first end of the digital-to-analog converter 21 and the first end of the first switch Q1, and the second end of the fourth resistor R4 is grounded. The control terminal of the first switch Q1 is connected to the second end of the first switch Q1, the first end of the first resistor R1, and the first end of the second resistor R2, and is suitable for connecting a preset voltage Vcc. The second end of the first resistor R1 is connected to the first end of the second switch Q2 and the non-inverting input terminal of the operational amplifier 212, and the second end of the second resistor R2 is connected to the inverting input terminal of the operational amplifier 212 and the first end of the third resistor R3, and the second end of the third resistor R3 is grounded. The output terminal of the operational amplifier 212 is connected to the control terminal of the second switch Q2, and the second end of the second switch Q2 is connected to the infrared transmitter 30.
[0062] In this design, the first switching transistor Q1 can be a bipolar transistor with an internal PN junction exhibiting unidirectional conductivity; the second switching transistor Q2 can be a MOSFET, characterized by high input impedance, high-speed switching, and low drive power. (See also...) Figure 4 The first switch Q1 has its first terminal, second terminal, and control terminal as the emitter, collector, and base of a transistor, respectively, and the transistor is a P-type transistor; the second switch Q2 has its first terminal, second terminal, and control terminal as the drain, source, and gate of a MOSFET, respectively, and the MOSFET is an N-type MOSFET.
[0063] Optionally, the first switching transistor Q1 can also be a MOSFET or a diode, and the second switching transistor Q2 can also be a transistor. When the first switching transistor Q1 is a diode, the anode of the diode is connected to the first terminal of the first resistor R1 and the first terminal of the second resistor R2, respectively, and is suitable for applying a preset voltage Vcc. The cathode of the diode is connected to the first terminal of the fourth resistor R4.
[0064] As one implementation method, see Figure 4 The infrared emitter 30 can be an infrared emitting tube D1. The anode of the infrared emitting tube D1 is connected to the output terminal of the current control sub-circuit 22, and the cathode of the infrared emitting tube D1 is grounded.
[0065] The infrared emitting diode (D1) is a light-emitting device that converts electrical energy into near-infrared light. The forward voltage and current of the infrared emitting diode (D1) vary depending on its power: low-power infrared emitting diodes (D1) have a forward voltage of 1.1–1.5V and a current of 20–100mA; high-power infrared emitting diodes (D1) have a forward voltage of 1.5–1.9V and a current of 200–350mA. In practical applications, either low-power or high-power infrared emitting diodes (D1) can be selected based on requirements (such as cost, transmission distance, etc.).
[0066] The following is combined Figure 4 Describe the working principle of current-driven infrared emitting tube D1 emitting infrared signals:
[0067] See Figure 4 The current Ie is the current signal required by the current control sub-circuit 22, and this current signal directly affects the emission intensity of the infrared emitting diode D1. The formula for calculating the current Ie is as follows:
[0068] Ie=(V1-V2) / R1
[0069] Where V2 = V1 * R3 / (R2 + R3), V1 = V3 + Vr, V3 is the first voltage signal output by the digital-to-analog converter 21 controlled by the first processor 10, the base and collector of the transistor (i.e. the first switching transistor Q1) are connected together, so that the transistor can perform the function of a diode, and Vr is the voltage drop of the transistor, such as 0.7V.
[0070] Therefore, when the driving current of the infrared emitting tube D1 is required to be Ie, the first processor 10 needs to control the digital-to-analog converter 21 to output the first voltage signal: V3=[Ie*R1*(R2+R3)] / R2-Vr.
[0071] In this way, different current signals can be provided to the infrared emitting tube D1. Under the action of different current signals, the infrared emitting tube D1 can emit infrared light with different intensity amplitudes, representing the different infrared signals it carries.
[0072] For example, see Figure 4 The first control circuit 20 also includes a fifth resistor R5. The first end of the fifth resistor R5 is connected to the first end of the first resistor R1, the first end of the second resistor R2, and the control end and the second end of the first switch Q1. The second end of the fifth resistor R5 is adapted to be connected to a preset voltage Vcc.
[0073] The fifth resistor R5 can provide current limiting protection for the first switching transistor Q1 and improve the stability of the first switching transistor Q1 operation.
[0074] Corresponding to the infrared emitting device 100 in the above embodiments, this application also proposes an infrared receiving device 200.
[0075] Figure 5 This is a structural block diagram of the infrared receiving device 200 in the embodiments of this application.
[0076] like Figure 5As shown, the infrared receiving device 200 includes an infrared receiver 40, a second control circuit 50, and a second processor 60. The infrared receiver 40 receives infrared signals emitted by the infrared transmitter 100 and outputs a second control signal under the influence of the infrared signals. The second control circuit 50 converts the second control signal into a second digital signal. The second processor 60, when receiving N second digital signals within a target symbol period, demodulates the N second digital signals according to their reception order to obtain information to be transmitted with a preset bit length.
[0077] Specifically, such as Figure 6 As shown, the first processor 10 modulates the information to be transmitted into N first digital signals and sequentially transmits them to the first control circuit 20 during the target symbol period. Each time the first control circuit 20 receives a first digital signal, it converts it into a first control signal and controls the infrared transmitter 30 to emit an infrared signal, until all N first digital signals are processed, completing the transmission of the information to be transmitted. Each time the infrared receiver 40 receives an infrared signal, it outputs a second control signal to the second control circuit 50 under the influence of the infrared signal. The second control circuit 50 converts the second control signal into a second digital signal and outputs it to the second processor 60 for processing. When the second processor 60 receives N second digital signals during the target symbol period, it demodulates the N second digital signals according to the receiving order to obtain the information to be transmitted.
[0078] For example, the infrared receiver 40 includes an infrared receiving tube that can sense infrared light carrying infrared signals and output a second control signal under the action of the infrared signals.
[0079] For example, the second control circuit 50 may include an analog-to-digital converter that can convert the second control signal from analog to digital form to obtain a second digital signal for demodulation by the second processor 30.
[0080] In one implementation, the second processor 60 is specifically used to: digitally decode N second digital signals to obtain the values corresponding to N second control signals; perform different mathematical operations on the values corresponding to the N second control signals based on the receiving order to obtain N second intermediate values; and look up the N second intermediate values in a table to obtain information to be transmitted with a preset bit length.
[0081] It should be understood that this implementation is the reverse process of modulation performed by the first processor 10 using mathematical operations.
[0082] For example, within one symbol period T, the second processor 60 receives the second digital signal corresponding to Im1 in the first half of the symbol period and the second digital signal corresponding to Im2 in the second half of the symbol period. The two second digital signals are digitally decoded to obtain the values corresponding to the two second control signals, namely Im1 and Im2. Then, using Isum / 2 = (Im1 + Im2) / 2 and Idiff = Im1 - Im2, two second intermediate values, Isum / 2 and Idiff, are calculated. Based on Isum / 2 and Idiff, the corresponding binary data is found by looking up a table (as shown in Table 1 above).
[0083] For example, the second processor 60 is further configured to: calculate the geometric distance between the N second intermediate values and the multiple sets of N first intermediate values obtained by looking up the table when the table lookup fails based on the N second intermediate values; and obtain the information to be sent by looking up the table based on the set of N first intermediate values corresponding to the minimum geometric distance.
[0084] Considering the potential data deviation during infrared signal reception, for example, the second processor 60 might not find the corresponding binary data when looking up tables based on Isum / 2 and Idiff, resulting in a lookup failure. In this case, Isum / 2 and Idiff can be calculated... Figure 5 The geometric distance to each point in the coordinate system shown is: Di = sqrt[(Isum / 2-Ii)] 2 +(Idiff-ΔIi) 2 ], i = 1, 2, 3, 4, and the coordinates corresponding to the smallest Di are taken as the information to be sent.
[0085] In another implementation, the second processor 60 is specifically used to: digitally decode the N second digital signals to obtain the values corresponding to the N second control signals; and look up the values corresponding to the N second control signals in a table based on the receiving order to obtain the information to be transmitted with a preset bit length.
[0086] Compared to the above-described implementation method that involves mathematical operations, this implementation method eliminates the need for mathematical operations, resulting in a simpler demodulation process. Furthermore, the above-described implementation method, which uses mathematical operations for demodulation, offers higher security and better anti-interference capabilities for infrared communication.
[0087] Figure 7 This is a structural block diagram of an infrared communication system according to an embodiment of this application.
[0088] like Figure 7 As shown, the infrared communication system 700 includes a transmitter 710 and a receiver 720.
[0089] The transmitting end 710 includes the infrared transmitting device 100 of the above embodiment, and the receiving end 720 includes the infrared receiving device 200 of the above embodiment.
[0090] Figure 8 This is a flowchart of an infrared emission method according to an embodiment of this application.
[0091] like Figure 8 As shown, the infrared emission method includes:
[0092] S81 modulates the information to be transmitted with a preset bit length to obtain N first digital signals.
[0093] The preset bit length is greater than 1 bit.
[0094] S82, according to the target sequence, obtains N first control signals based on N first digital signals within the target symbol period.
[0095] Where N is an integer greater than 1 and less than or equal to Nmax, and Nmax is determined according to the target symbol period.
[0096] S83 emits N infrared signals under the action of N first control signals.
[0097] In some embodiments of this application, the information to be transmitted with a preset bit length is modulated to obtain N first digital signals, including: obtaining N first intermediate values by looking up a table according to the information to be transmitted with a preset bit length; obtaining the values corresponding to N first control signals based on the N first intermediate values, each first intermediate value being obtained by performing different mathematical operations on the values corresponding to the N first control signals, the target order being determined according to the relative position of the values corresponding to the N first control signals and the operators in the mathematical operations; and digitally encoding the values corresponding to the N first control signals to obtain N first digital signals.
[0098] For example, the preset bit length is divided into N first bit lengths, and the number of levels of each first intermediate value is related to the corresponding first bit length by a power of 2. Each first bit length is greater than or equal to 1 bit length.
[0099] For example, N takes the value of 2, and the mathematical operations include mean and difference operations.
[0100] It should be noted that for other specific implementations of the infrared emission method in this application, please refer to the specific implementation of the infrared emission device 100 in the above embodiments.
[0101] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0102] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0103] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0104] In the description of this application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicating the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0105] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0106] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "joining," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0107] In this application, unless otherwise expressly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.
[0108] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. An infrared emitting device, characterized by include: A first processor is configured to modulate the information to be transmitted with a preset bit length to obtain N first digital signals, and output the N first digital signals sequentially in the target symbol period according to the target order. The preset bit length is greater than 1 bit length, N is an integer greater than 1 and less than or equal to Nmax, and Nmax is determined according to the target symbol period. The first control circuit is used to output N first control signals based on N first digital signals; An infrared transmitter is used to emit infrared signals under the control of the first control signal.
2. The infrared emitting device of claim 1, wherein, The first processor is specifically used for: Based on the information to be sent with the preset bit length, N first intermediate values are obtained by querying the preset mapping relationship table; Based on the N first intermediate values, the values corresponding to the N first control signals are obtained. Each first intermediate value is obtained by performing different mathematical operations on the values corresponding to the N first control signals. The target order is determined according to the relative position of the values corresponding to the N first control signals with the operators in the mathematical operations. The N values corresponding to the first control signals are digitally encoded to obtain the N first digital signals.
3. The infrared emitting device of claim 2, wherein, The preset bit length is divided into N first bit lengths. The number of level divisions for each first intermediate value is a power of 2 with respect to the corresponding first bit length. Each first bit length is greater than or equal to 1 bit length.
4. The infrared emitting device according to claim 2 or 3, characterized in that, The value of N is 2, and the mathematical operations include mean operation and difference operation.
5. The infrared emitting device of claim 1, wherein, The first control circuit includes: A digital-to-analog converter, used to convert the first digital signal into a first voltage signal; The circuit includes a current control subcircuit or a power control subcircuit, wherein the current control subcircuit is used to convert the first voltage signal into a current signal and output it as the first control signal to the infrared transmitter; and the power control subcircuit is used to convert the first voltage signal into a power signal and output it as the first control signal to the infrared transmitter.
6. The infrared emitting device of claim 5, wherein, The current control sub-circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first switching transistor, a second switching transistor, and an operational amplifier; The first end of the fourth resistor is connected to the digital-to-analog converter and the first end of the first switching transistor, respectively. The second end of the fourth resistor is grounded. The control terminal of the first switching transistor is connected to the second end of the first switching transistor, the first end of the first resistor, and the first end of the second resistor, respectively, and is adapted to be connected to a preset voltage. The second end of the first resistor is connected to the first end of the second switching transistor and the non-inverting input terminal of the operational amplifier, respectively. The second end of the second resistor is connected to the inverting input terminal of the operational amplifier and the first end of the third resistor, respectively. The second end of the third resistor is grounded. The output terminal of the operational amplifier is connected to the control terminal of the second switching transistor, and the second end of the second switching transistor is connected to the infrared emitter.
7. The infrared emitting device of claim 6, wherein, The current control sub-circuit further comprises a fifth resistor, a first end of the fifth resistor is connected with the first end of the first resistor, the first end of the second resistor, the control end and the second end of the first switch tube respectively, and a second end of the fifth resistor is adapted to be connected to the preset voltage.
8. An infrared receiving apparatus characterized by comprising: The method comprises: The infrared receiver is configured to receive an infrared signal emitted by the infrared emission device according to any one of claims 1-7, and output a second control signal under the action of the infrared signal. The second control circuit is configured to convert the second control signal into a second digital signal. The second processor is configured to, when N second digital signals are received within a target symbol period, demodulate the N second digital signals according to a receiving order of the N second digital signals to obtain to-be-sent information of a preset bit length.
9. The infrared receiving apparatus according to claim 8, wherein The second processor is specifically configured to: respectively digitally decode the N second digital signals to obtain values corresponding to the N second control signals; respectively perform different mathematical operations on the values corresponding to the N second control signals based on the receiving order to obtain N second intermediate values; query a preset mapping relationship table according to the N second intermediate values to obtain the to-be-sent information of the preset bit length.
10. The infrared receiving apparatus according to claim 9, wherein The second processor is specifically further configured to: in a case where the querying of the preset mapping relationship table according to the N second intermediate values fails, respectively calculate geometric distances between the N second intermediate values and a plurality of groups of N first intermediate values obtained by querying the preset mapping relationship table; query the preset mapping relationship table according to a group of N first intermediate values corresponding to a minimum geometric distance to obtain the to-be-sent information.
11. An infrared communication system, characterized by The method comprises: The sending end comprises the infrared emission device according to any one of claims 1-7. The receiving end comprises the infrared receiving device according to any one of claims 8-10.
12. An infrared emission method, characterized by, The method comprises: modulating to-be-sent information of a preset bit length to obtain N first digital signals, the preset bit length being greater than 1 bit length; according to the N first digital signals in a target symbol period in a target order to obtain N first control signals, N being an integer greater than 1 and less than or equal to Nmax, Nmax being determined according to the target symbol period; emitting N infrared signals under the action of the N first control signals.