Infrared light communication method based on mode switching
By introducing a mode switching circuit in the infrared optical communication system, the working state is automatically adjusted according to the pulse signal and counter count value, the problem that the existing infrared optical communication front-end circuit cannot automatically enter the sleep state, and the effect of low power consumption and simplified structure is achieved.
Patent Information
- Application Number
- CN202510412552.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2045-04-03
AI Technical Summary
The existing infrared optical communication front-end circuit cannot automatically switch to sleep when it is not communicating, and requires external signal control. The system structure is complex and the power consumption is high, which makes it easy to drain the battery during the sleep state.
The infrared optical communication method based on mode switching is adopted. Through the mode switching circuit in the infrared optical communication system, based on the pulse signal output by the hysteresis comparator and the count value of the counter, it is determined that the circuit should be in standby mode, communication mode or sleep mode, thereby automatically adjusting the working state of the system and reducing power consumption.
It realizes the low-power operation of the infrared optical communication system in a sleep state, simplifies the system structure, avoids unnecessary exhaustion of battery power, and meets the needs of the battery management system.
Smart Images

Figure CN119921859A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of signal acquisition, and in particular to an infrared light communication method based on mode switching. Background Art
[0002] Infrared optical communication is a communication method that uses infrared rays to transmit information. It mainly transmits data, language, text, images and other information through infrared radiation. The wavelength range of infrared optical communication is mainly between 0.70μm and 1mm, and the commonly used communication band is the near-infrared region of 950nm. The basic working principle of infrared optical communication is to modulate binary signals into infrared optical signals for transmission. The transmitting end converts the baseband binary signals into infrared optical signals through infrared transmitting tubes, and the receiving end receives these optical signals through infrared detectors and converts them into electrical signals. After amplification, filtering and demodulation, they are restored to the original binary digital signals.
[0003] The infrared optical communication front-end circuit mainly includes infrared transmitting circuit and infrared receiving circuit. The infrared transmitting circuit is an important part of the infrared communication system. Its main function is to generate and transmit infrared signals. The infrared receiving circuit is composed of infrared receiving diodes, transistors or silicon photocells. Its main function is to convert the received infrared light signals into electrical signals.
[0004] The existing infrared optical communication front-end circuit cannot automatically enter the sleep state when not communicating. It requires external signal control, has a complex system structure, and has high power consumption. This type of circuit is used in the battery management system and is prone to draining the battery in the sleep state, which cannot meet the requirements. Summary of the invention
[0005] In view of this, the present invention proposes an infrared light communication method based on mode switching, which can be used for infrared light communication between battery management chips and form a communication network, while reducing power consumption and simplifying the structure.
[0006] In order to achieve the above-mentioned object, an infrared light communication method based on mode switching is provided, wherein the infrared light communication method based on mode switching adopts an infrared light communication system to realize infrared light communication, wherein the infrared light communication system comprises: a transimpedance amplifier circuit, a hysteresis comparator, an output pulse judgment circuit, and a mode switching circuit, wherein: after the infrared light communication system is reset, it first enters a standby mode; Then, after detecting the falling edge of the pulse signal output by the hysteresis comparator, the mode switching circuit judges the count value of the counter in the mode switching circuit, and enters the communication mode if the count value is greater than or equal to the first pre-designed value; After entering the communication mode, when the output pulse judgment circuit receives that the pulse signal is continuously at a low level within a preset time and the count value is greater than or equal to a second pre-designed value, the mode switching circuit controls the infrared light communication system to return to the standby mode.
[0007] Preferably, the standby mode includes a first sleep mode and a second sleep mode. After the infrared light communication system is reset, it first enters the first sleep mode. When the output pulse judgment circuit detects the rising edge of the pulse signal output by the hysteresis comparator, the mode switching circuit controls the infrared light communication system to enter the second sleep mode. Then, after detecting the falling edge of the pulse signal output by the hysteresis comparator, the mode switching circuit judges the count value of the counter in the mode switching circuit. If the count value is less than the first pre-designed value, the mode switching circuit controls the infrared light communication system to return to the first sleep mode.
[0008] Preferably, the communication mode includes a first communication mode, a second communication mode and a third communication mode. After detecting the falling edge of the pulse signal output by the hysteresis comparator, the mode switching circuit judges the count value of the counter in the mode switching circuit. If the count value is greater than or equal to a first pre-designed value, the first communication mode is entered. When the infrared light communication system is in the first communication mode, if the output pulse judgment circuit receives the rising edge of the pulse signal before the end of a first preset time interval, the mode switching circuit controls the infrared light communication system to enter the third communication mode. If the output pulse judgment circuit does not receive the rising edge of the pulse signal before the end of the first preset time interval, the mode switching circuit controls the infrared light communication system to enter the third communication mode. When the rising edge of the pulse signal is received, the mode switching circuit controls the infrared light communication system to enter the second communication mode after the first preset time interval delay ends; when the transimpedance amplifier circuit enters the third communication mode, the mode switching circuit will control the infrared light communication system to return to the first communication mode until the output pulse judgment circuit receives the falling edge of the pulse signal; when the transimpedance amplifier circuit enters the second communication mode, the mode switching circuit will control the infrared light communication system to enter the third communication mode until the output pulse judgment circuit receives the rising edge of the pulse signal and the count value is less than the second pre-designed value.
[0009] Preferably, the infrared light communication method based on mode switching also includes: if the output pulse judgment circuit receives that the pulse signal is continuously at a low level within a preset time and the count value is greater than or equal to the second pre-designed value, the mode switching circuit controls the infrared light communication system to return to the first sleep mode.
[0010] Preferably, the infrared light communication system also includes an oscillator and a delay device, the first sleep mode is that the oscillator is asleep and the delay device is not working, the second sleep mode is that the oscillator is working and the delay device is not working, the first communication mode is that the oscillator is not working and the delay device is working, the second communication mode is that the oscillator is working and the delay device is maintained, and the third communication mode is that the oscillator is not working and the delay device is not working.
[0011] Preferably, the oscillator is a relaxation oscillator, which includes a plurality of transistors and a constant capacitor for generating an oscillation signal.
[0012] Preferably, the oscillator specifically includes: a first transistor M1, a second transistor M2, a third transistor M3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8, a ninth transistor M9, a tenth transistor M10, an eleventh transistor M11, a twelfth transistor M12, a thirteenth transistor M13, a fourteenth transistor M14, a fifteenth transistor M15, a sixteenth transistor M16, a seventeenth transistor M17, an eighteenth transistor M18 and a nineteenth transistor M19; the first transistor M1 and the second transistor M2 constitute an input stage of the oscillator, for receiving an external signal Vin and an internal signal; the third transistor M3 and the fourth transistor M 4 constitutes a feedback stage and forms a positive feedback network together with the capacitor C; the fifth transistor M5 and the sixth transistor M6 constitute a bias circuit to provide an operating point for the oscillator; the sixth transistor M6 and the seventh transistor M7 constitute a differential pair, and the eighth transistor M8 and the ninth transistor M9 constitute another differential pair; the tenth transistor M10 and the eleventh transistor M11 constitute a current mirror to provide a bias current for the differential pair, and the thirteenth transistor M13, the fourteenth transistor M14, the fifteenth transistor M15, the sixteenth transistor M16, the seventeenth transistor M17, the eighteenth transistor M18 and the nineteenth transistor M19 constitute an output stage for amplifying the oscillation signal and providing it to the output terminal Vout.
[0013] Preferably, the first preset count value is 25, the second preset count value is 17, and the first preset time interval is 160ns.
[0014] The advantages and beneficial effects of the present invention are: The present invention adopts a time-driven wake-up system to determine the state in which the circuit should work according to the received pulse width, and uses an event-driven mode switching circuit to adjust the power consumption of the infrared light communication system, thereby greatly reducing its power consumption in the sleep state. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the description of the present invention or the prior art will be briefly introduced below. Obviously, the drawings described below are 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] Figure 1 A schematic diagram of an infrared light communication system provided by an embodiment of the present invention; Figure 2 A state transition diagram of an infrared light communication method based on mode switching provided by an embodiment of the present invention; Figure 3 A circuit diagram of an oscillator provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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] As attached Figure 1 As shown, the infrared light communication method based on mode switching adopts an infrared light communication system to realize infrared light communication. The infrared light communication system includes: a transimpedance amplifier (TIA) circuit, a hysteresis comparator, an output pulse judgment circuit, and a mode switching circuit.
[0019] A transimpedance amplifier (TIA) is a circuit that converts the photocurrent generated by a photosensitive diode (such as a photodiode) into a voltage signal. The core of the TIA circuit is to convert the input current signal into a voltage signal. Its basic structure includes an op amp and a feedback resistor, and sometimes a feedback capacitor is connected in parallel to improve the stability of the system. The gain of the TIA is defined as the output voltage divided by the input current, so the unit of gain is resistance. In optical communication circuits, TIA is often used to convert the weak current signal output by the photodiode into a voltage signal for subsequent amplification, filtering and digital processing.
[0020] The hysteresis comparator, also known as the Schmitt Trigger, is a comparator circuit with hysteresis characteristics. It is characterized by having two different threshold voltages, one for triggering a high-level output and the other for triggering a low-level output. This feature enables the hysteresis comparator to provide a stable output when there is noise in the input signal, thereby enhancing the circuit's anti-interference ability.
[0021] Wherein, the transimpedance amplifier (TIA) circuit is connected to the hysteresis comparator, the hysteresis comparator is connected to the output pulse judgment circuit, the output pulse judgment circuit is connected to the mode switching circuit, the mode switching circuit is connected to the transimpedance amplifier (TIA) circuit, the transimpedance amplifier (TIA) circuit converts the input current into a voltage signal and outputs it to the hysteresis comparator, the hysteresis comparator outputs a high level signal or a low level signal according to the signal output by the transimpedance amplifier (TIA) circuit, when the output signal of the hysteresis comparator is a low level signal, the output pulse judgment circuit and the mode switching circuit are both in the off state, thereby realizing low power consumption operation of the infrared communication system; In addition, in this embodiment, the infrared light communication system has a standby mode and a communication mode, wherein the standby mode includes a first sleep mode and a second sleep mode, and the communication mode includes a first communication mode, a second communication mode and a third communication mode.
[0022] like Figure 2 As shown, the infrared light communication method based on mode switching is specifically as follows: after the infrared light communication system is reset, it first enters the first sleep mode, and when the output pulse judgment circuit detects the rising edge of the pulse signal output by the hysteresis comparator, the mode switching circuit controls the infrared light communication system to enter the second sleep mode, and then after detecting the falling edge of the pulse signal output by the hysteresis comparator, the mode switching circuit judges the count value of the counter in the mode switching circuit, and if the count value is <25, the mode switching circuit controls the infrared light communication system to return to the first sleep mode (sleep mode 1), and the oscillator is in sleep mode; if the count value is ≥25, the mode switching circuit controls the infrared light communication system to enter the first communication mode (communication mode 1); When the transimpedance amplifier (TIA) circuit is in the first communication mode (communication mode 1), if the output pulse judgment circuit receives the rising edge of the pulse signal before the end of the first preset time interval, the mode switching circuit controls the infrared light communication system to enter the third communication mode (communication mode 3); if the output pulse judgment circuit does not receive the rising edge of the pulse signal before the end of the first preset time interval, after the first preset time interval delay ends, the mode switching circuit controls the infrared light communication system to enter the second communication mode (communication mode 2); When the transimpedance amplifier (TIA) circuit enters the third communication mode (communication mode 3), the mode switching circuit will control the infrared light communication system to return to the first communication mode (communication mode 1) until the output pulse determination circuit receives the falling edge of the pulse signal; When the transimpedance amplifier (TIA) circuit enters the second communication mode (communication mode 2), the mode switching circuit will control the infrared light communication system to enter the third communication mode (communication mode 3) until the output pulse judgment circuit receives the rising edge of the pulse signal and the count value is less than the second pre-designed value; If the output pulse judgment circuit receives that the pulse signal is continuously at a low level within a preset time and the count value is ≥ a second preset value, the mode switching circuit controls the infrared light communication system to return to the first sleep mode (sleep mode 1).
[0023] Among them, the infrared light communication system also includes an oscillator and a delay device. The first sleep mode is that the oscillator is dormant and the delay device does not work. The second sleep mode is that the oscillator works and the delay device does not work. The first communication mode is that the oscillator does not work and the delay device works. The second communication mode is that the oscillator works and the delay device remains on. The third communication mode is that the oscillator does not work and the delay device does not work.
[0024] By utilizing the sleep-wake detection working mode, mode switching can significantly reduce the power consumption of infrared optical communication systems.
[0025] Attached Figure 3 The circuit structure diagram of the oscillator is shown in the attached Figure 3 As shown, the oscillator includes a plurality of transistors and a constant capacitor, and is used to generate an oscillation signal; The oscillator specifically includes: a first transistor (M1), a second transistor (M2), a third transistor (M3), a fourth transistor (M4), a fifth transistor (M5), a sixth transistor (M6), a seventh transistor (M7), an eighth transistor (M8), a ninth transistor (M9), a tenth transistor (M10), an eleventh transistor (M11), a twelfth transistor (M12), a thirteenth transistor (M13), a fourteenth transistor (M14), a fifteenth transistor (M15), a sixteenth transistor (M16), a seventeenth transistor (M17), an eighteenth transistor (M18) and a nineteenth transistor (M19); the first transistor (M1) and the second transistor (M2) constitute an input stage of the oscillator, for receiving an external signal Vin and an internal signal, and providing an initial condition when the oscillator is powered on to start oscillation; the third transistor (M3) and the fourth transistor (M4) constitute a feedback stage, and together with the capacitor C form a positive feedback network , to maintain oscillation; the fifth transistor (M5) and the sixth transistor (M6) constitute a bias circuit to provide an operating point for the oscillator; the sixth transistor (M6) and the seventh transistor (M7) constitute a differential pair, the eighth transistor (M8) and the ninth transistor (M9) constitute another differential pair, and the two are cross-coupled through the twelfth transistor (M12), wherein the differential pair formed by the eighth transistor (M8) and the ninth transistor (M9) is used to protect the oscillator from damage when an abnormality occurs in the circuit; the tenth transistor (M10) and the eleventh transistor (M11) constitute a current mirror to provide a bias current for the differential pair, and the thirteenth transistor (M13), the fourteenth transistor (M14), the fifteenth transistor (M15), the sixteenth transistor (M16), the seventeenth transistor (M17), the eighteenth transistor (M18) and the nineteenth transistor (M19) constitute an output stage, which is used to amplify the oscillation signal and provide it to the output terminal Vout; Among them, the oscillator adopts a relaxation oscillator, which realizes the oscillation cycle by charging and discharging the capacitor. When Vout is high, the capacitor discharges, and after judgment by the comparator, the Vout output is low, and then the capacitor is charged. When the capacitor voltage reaches Vref, the comparator flips the Vout output to high; in this embodiment, the capacitor C is set to 50fF, and then the charging current is 5 microamperes. At this time, its charging slope is 100 volts per microsecond. The transimpedance amplifier adjusts the bias current and compensation resistance of the transimpedance amplifier according to the working mode by the mode switching circuit.
[0026] Wherein, the comparator is a low power consumption comparator.
[0027] It should be understood by those skilled in the art that the embodiments of this article can be provided as methods, devices (equipment), or computer program products. Therefore, this article can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media generally contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0028] This document is described with reference to flowcharts and / or block diagrams of methods, apparatuses (devices), and computer program products according to the embodiments of this document. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0029] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0030] The embodiments and / or implementation methods described above are only used to illustrate the preferred embodiments and / or implementation methods of the technology of the present invention, and are not intended to impose any formal restrictions on the implementation methods of the technology of the present invention. Any person skilled in the art may make some changes or modifications to other equivalent embodiments without departing from the scope of the technical means disclosed in the content of the present invention, but they should still be regarded as the technology or embodiments that are essentially the same as the present invention. Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described here, and that various obvious changes, readjustments and substitutions can be made to those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention is described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. An infrared light communication method based on mode switching, wherein the infrared light communication method based on mode switching uses an infrared light communication system to realize infrared light communication, and the infrared light communication system comprises: The transimpedance amplifier circuit, the hysteresis comparator, the output pulse judgment circuit, and the mode switching circuit are characterized by: After the infrared optical communication system is reset, it first enters a standby mode; Then, after detecting the falling edge of the pulse signal output by the hysteresis comparator, the mode switching circuit judges the count value of the counter in the mode switching circuit, and enters the communication mode if the count value is greater than or equal to the first pre-designed value; After entering the communication mode, when the output pulse judgment circuit receives that the pulse signal is continuously at a low level within a preset time and the count value is greater than or equal to a second pre-designed value, the mode switching circuit controls the infrared light communication system to return to the standby mode.
2. The infrared light communication method based on mode switching according to claim 1, characterized in that: The standby mode includes a first sleep mode and a second sleep mode. After the infrared light communication system is reset, it first enters the first sleep mode. When the output pulse judgment circuit detects the rising edge of the pulse signal output by the hysteresis comparator, the mode switching circuit controls the infrared light communication system to enter the second sleep mode. Then, after detecting the falling edge of the pulse signal output by the hysteresis comparator, the mode switching circuit judges the count value of the counter in the mode switching circuit. If the count value is less than the first pre-designed value, the mode switching circuit controls the infrared light communication system to return to the first sleep mode.
3. The infrared light communication method based on mode switching according to claim 2, characterized in that: The communication mode includes a first communication mode, a second communication mode and a third communication mode. After detecting the falling edge of the pulse signal output by the hysteresis comparator, the mode switching circuit judges the count value of the counter in the mode switching circuit. If the count value is greater than or equal to a first pre-designed value, the first communication mode is entered. When the infrared light communication system is in the first communication mode, if the output pulse judgment circuit receives the rising edge of the pulse signal before the end of the first preset time interval, the mode switching circuit controls the infrared light communication system to enter the third communication mode. If the output pulse judgment circuit does not receive the rising edge of the pulse signal before the end of the first preset time interval, the mode switching circuit controls the infrared light communication system to enter the third communication mode. When the transimpedance amplifier circuit receives the rising edge of the pulse signal, the mode switching circuit controls the infrared light communication system to enter the second communication mode after the first preset time interval delay ends; when the transimpedance amplifier circuit enters the third communication mode, the mode switching circuit will control the infrared light communication system to return to the first communication mode until the output pulse judgment circuit receives the falling edge of the pulse signal; when the transimpedance amplifier circuit enters the second communication mode, the mode switching circuit will control the infrared light communication system to enter the third communication mode until the output pulse judgment circuit receives the rising edge of the pulse signal and the count value is less than the second pre-designed value.
4. The infrared light communication method based on mode switching according to claim 3, characterized in that: The infrared light communication method based on mode switching also includes: if the output pulse judgment circuit receives that the pulse signal is continuously at a low level within a preset time and the count value is greater than or equal to the second pre-designed value, the mode switching circuit controls the infrared light communication system to return to the first sleep mode.
5. The infrared light communication method based on mode switching according to claim 4, characterized in that: The infrared light communication system also includes an oscillator and a delay device. The first sleep mode is that the oscillator is dormant and the delay device does not work. The second sleep mode is that the oscillator works and the delay device does not work. The first communication mode is that the oscillator does not work and the delay device works. The second communication mode is that the oscillator works and the delay device remains on. The third communication mode is that the oscillator does not work and the delay device does not work.
6. The infrared light communication method based on mode switching according to claim 5, characterized in that: The oscillator is a relaxation oscillator, which includes a plurality of transistors and a constant capacitor and is used to generate an oscillation signal.
7. The infrared light communication method based on mode switching according to claim 5, characterized in that: The oscillator specifically includes: a first transistor M1, a second transistor M2, a third transistor M3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8, a ninth transistor M9, a tenth transistor M10, an eleventh transistor M11, a twelfth transistor M12, a thirteenth transistor M13, a fourteenth transistor M14, a fifteenth transistor M15, a sixteenth transistor M16, a seventeenth transistor M17, an eighteenth transistor M18 and a nineteenth transistor M19; the first transistor M1 and the second transistor M2 constitute an input stage of the oscillator for receiving an external signal Vin and an internal signal; the third transistor M3 and the fourth transistor M4 constitute The fifth transistor M5 and the sixth transistor M6 form a bias circuit to provide an operating point for the oscillator; the sixth transistor M6 and the seventh transistor M7 form a differential pair, and the eighth transistor M8 and the ninth transistor M9 form another differential pair; the tenth transistor M10 and the eleventh transistor M11 form a current mirror to provide a bias current for the differential pair, and the thirteenth transistor M13, the fourteenth transistor M14, the fifteenth transistor M15, the sixteenth transistor M16, the seventeenth transistor M17, the eighteenth transistor M18 and the nineteenth transistor M19 form an output stage for amplifying the oscillation signal and providing it to the output terminal Vout.
8. The infrared light communication method based on mode switching according to claim 4, characterized in that: The first preset count value is 25, the second preset count value is 17, and the first preset time interval is 160ns.
Citation Information
Patent Citations
Control method and system for wake-up robot
CN109062621A
Infrared communication method and system and storage medium
CN115941049A
Current signal amplification circuit with low-power-consumption sleep mode
CN118590016A
Infrared signal interception wake-up circuit, wake-up method and infrared remote control system
CN119254820A
Method for transmitting video and protocol through USB interface of infrared system and infrared system
CN119420858A