CN112396819B - Infrared communication device, system, method, terminal device and storage medium - Google Patents

Infrared communication device, system, method, terminal device and storage medium Download PDF

Info

Publication number
CN112396819B
CN112396819B CN201910759008.9A CN201910759008A CN112396819B CN 112396819 B CN112396819 B CN 112396819B CN 201910759008 A CN201910759008 A CN 201910759008A CN 112396819 B CN112396819 B CN 112396819B
Authority
CN
China
Prior art keywords
signal
infrared
information
infrared communication
infrared signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910759008.9A
Other languages
Chinese (zh)
Other versions
CN112396819A (en
Inventor
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910759008.9A priority Critical patent/CN112396819B/en
Publication of CN112396819A publication Critical patent/CN112396819A/en
Application granted granted Critical
Publication of CN112396819B publication Critical patent/CN112396819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Abstract

The disclosure relates to an infrared communication device, system, method, terminal device and storage medium, belonging to the communication field. The infrared communication device includes: the control circuit is configured to encode information to be transmitted to obtain an encoded signal; the infrared signal transmitting circuit is configured to modulate the coded signal onto a carrier signal to obtain a modulated signal, and control to transmit a first infrared signal by adopting the modulated signal, so that the first infrared signal carries the information to be transmitted; an infrared signal receiving circuit configured to receive a second infrared signal and convert the second infrared signal into an electrical signal; demodulating a demodulation signal based on the electrical signal; the control circuit is further configured to decode the demodulated signal output by the infrared signal receiving circuit to obtain the information carried by the second infrared signal.

Description

Infrared communication device, system, method, terminal device and storage medium
Technical Field
The present disclosure relates to the field of communications, and in particular, to an infrared communication apparatus, system, method, terminal device, and storage medium.
Background
With the spread of 5G and long term evolution Advanced (LTE-Advanced) networks, the throughput of the networks is sufficient to support the interconnection of everything, and the internet of things has come.
The control center in the era of the internet of things is a network topology structure taking a mobile terminal as a center, the mobile terminal is a control center of an intelligent home, and particularly, an intelligent television, an intelligent gateway and the like take the mobile terminal as the control center. Under the control of a wireless local area network with a mobile terminal as a core, the application of the infrared technology is most popular.
Disclosure of Invention
The present disclosure provides an infrared communication apparatus, system, method, terminal device, and storage medium, which can implement bidirectional communication based on an infrared technology.
In one aspect, an infrared communication apparatus is provided, where the infrared communication apparatus includes:
the control circuit is configured to encode information to be transmitted to obtain an encoded signal;
the infrared signal transmitting circuit is configured to modulate the coded signal onto a carrier signal to obtain a modulated signal, and control to transmit a first infrared signal by adopting the modulated signal, so that the first infrared signal carries the information to be transmitted;
an infrared signal receiving circuit configured to receive a second infrared signal and convert the second infrared signal into an electrical signal; demodulating a demodulation signal based on the electrical signal;
the control circuit is further configured to decode the demodulated signal output by the infrared signal receiving circuit to obtain the information carried by the second infrared signal.
In the embodiment of the disclosure, the control circuit encodes information to be transmitted into a coded signal, the infrared signal transmitting circuit can modulate the coded signal onto a carrier to obtain a modulated signal, and then the modulated signal is adopted to control the transmission of the first infrared signal, so that the first infrared signal carries the information to be transmitted, and the infrared transmission of the information is realized; the infrared signal receiving circuit can receive the second infrared signal, then the second infrared signal is converted into an electric signal, and the control circuit decodes the electric signal to obtain information carried by the second infrared signal, so that the infrared receiving information is realized. It can be seen that the infrared communication device provided by the disclosure can realize information transmission and information reception, and by adopting the infrared communication device, not only can the intelligent home be controlled, but also the information from the intelligent home can be received, the state of the intelligent home can be known, and the like, so that the control of the intelligent home is facilitated.
Optionally, the infrared signal transmitting circuit includes:
the AND gate comprises a coding signal input end, a carrier signal input end and an output end, and the output end of the AND gate outputs the modulation signal;
a digital-to-analog converter configured to convert the modulation signal output by the and gate from a digital modulation signal to an analog modulation signal;
the driving transistor comprises a control end, a power supply signal input end and an output end, wherein the control end is electrically connected with the output end of the digital-to-analog converter;
and the infrared emitter is electrically connected with the output end of the driving transistor.
In the implementation mode, the AND gate is used for AND operation of the coded signal and the carrier signal, so that the output modulation signal bears information to be sent, and then the modulation signal is converted into an analog signal to control the on-off of the driving transistor, so that the infrared emitter outputs infrared pulses. Because the modulation signal generated by controlling the infrared pulse carries the information to be transmitted, the generated infrared pulse (i.e. the first infrared signal) carries the information to be transmitted, and thus the infrared signal transmitting circuit can realize information transmission.
Optionally, the infrared signal transmitting circuit further includes:
and the current limiting resistor is connected between the output end of the driving transistor and the infrared emitter.
In general, the power supply signal supplied to the driving transistor is a power supply signal of a terminal device having the infrared communication apparatus, and since the power supply signal is simultaneously supplied to each module in the terminal device, the signal size cannot be adjusted according to the requirements of the infrared transmitter. In order to avoid the current of the infrared emitter from being too large due to the power signal, a current-limiting resistor can be arranged, so that the current passing through the infrared emitter is not too large, and the infrared emitter is prevented from being damaged.
Optionally, the infrared signal receiving circuit includes:
a photoelectric converter configured to receive the second infrared signal and convert the second infrared signal into an electrical signal output;
the first-stage operational amplifier comprises a positive phase input end, a reverse phase bias voltage input end and an output end, and the positive phase input end of the first-stage operational amplifier is electrically connected with the output end of the photoelectric converter;
and the second-stage operational amplifier comprises a positive phase input end, a reverse phase threshold voltage input end and an output end, wherein the positive phase input end of the second-stage operational amplifier is electrically connected with the output end of the first-stage operational amplifier, and the output end of the second-stage operational amplifier is electrically connected with the control circuit.
In the implementation mode, the photoelectric converter converts the second infrared signal into an electric signal, and then the electric signal is subjected to offset voltage elimination and threshold comparison through the two-stage operational amplifier to obtain a demodulation signal.
Optionally, the control circuit is configured to obtain an encoding manner, where the encoding manner includes a first bit string corresponding to bit 1 and a second bit string corresponding to bit 0; coding the information to be sent by adopting the coding mode to obtain a coded signal;
and converting the demodulation signal from an analog demodulation signal to a digital demodulation signal; and decoding the digital demodulation signal based on the coding mode to obtain the information carried by the second infrared signal.
In this implementation, infrared communication is implemented by acquiring the encoding mode and then encoding and decoding information based on the encoding mode.
Optionally, the control circuit is further configured to obtain an available encoding mode of the peer device; selecting a coding mode available for the infrared communication device from available coding modes of the opposite terminal equipment; informing the opposite terminal device of the selected coding mode; or, sending the available coding mode of the infrared communication device to the opposite terminal equipment; and receiving the available coding mode of the opposite terminal equipment selected from the available coding modes of the infrared communication device, which are sent by the opposite terminal equipment.
In this implementation, the acquisition of the encoding mode can be achieved by both of these modes. Therefore, the two parties adopt an agreed coding mode, on one hand, the confidentiality of the information can be enhanced, on the other hand, even if other equipment receives the information, the content of the information cannot be obtained due to the fact that the information cannot be decoded, and therefore the error control of the other equipment can be avoided.
Optionally, the information carried by the second infrared signal is information obtained by the peer device from the first infrared signal; the control circuitry is further configured to compare information carried by the second infrared signal with the information to be transmitted; and when the error rate of the information carried by the second infrared signal is higher than the error code threshold value compared with the information to be sent, the information to be sent is sent again.
In this implementation manner, when the infrared communication transmits information, the information may be received and decoded by the peer device and then transmitted back to the infrared communication apparatus, so that the infrared communication apparatus may determine the error rate of the transmission, and if the error rate is higher, retransmission is not required, and if the error rate is lower, for example, the error rate exceeds an error rate threshold, retransmission of the information is required. This way, the accuracy of information transmission can be guaranteed.
Optionally, the infrared communication device includes a plurality of infrared signal transmitting circuits; the control circuit is also configured to convert the serial coded signals into a plurality of parallel signals and transmit the signals through the plurality of infrared signal transmitting circuits respectively.
In the implementation mode, serial signals are converted into parallel signals, and information is transmitted in a multi-path parallel mode, so that the information transmission speed is improved.
Optionally, the infrared communication device includes a plurality of infrared signal receiving circuits; the control circuit is further configured to decode the demodulated signals output by the multiple infrared signal receiving circuits respectively; and splicing the information obtained by decoding according to the sequence.
In this implementation, the information transmitted in parallel is restored to serial information by sequentially splicing the decoded information.
Optionally, the infrared communication device includes a plurality of infrared signal transmitting circuits; the control circuit is also configured to encode the information to be transmitted by adopting a plurality of different encoding modes respectively to obtain a plurality of paths of different encoding signals; and respectively sending the multiple different coding signals through the multiple infrared signal transmitting circuits.
In the implementation mode, the same infrared communication device can be implemented, information is sent to a plurality of different opposite terminal devices at the same time, the information sent to each opposite terminal device is coded in different coding modes, only the opposite terminal device adopting the corresponding coding mode can decode the information, and each opposite terminal device can only receive the information sent by the corresponding infrared signal transmitting circuit. Of course, the scheme can also be applied between an infrared communication device and an opposite terminal device with a multi-channel infrared signal receiving circuit, and the same signal is transmitted by adopting a plurality of coding modes.
Optionally, the infrared communication device includes a plurality of infrared signal receiving circuits; the control circuit is further configured to select a value with a larger number of occurrences among values of each bit as a value of the bit by comparing information decoded by the multi-channel infrared signal receiving circuit.
In the implementation mode, the same information is transmitted by multiple paths of infrared light, so that the decoding can be carried out by integrating the conditions of the multiple paths of information during decoding, and the accuracy of transmission can be ensured.
In another aspect, a terminal device is provided, which comprises the infrared communication apparatus according to any one of the preceding claims.
In another aspect, an infrared communication system is provided, which includes a transmitting end and a receiving end;
at least one of the transmitting end and the receiving end is the infrared communication device as described in any one of the preceding items.
In another aspect, an infrared communication method is provided, where the infrared communication method is implemented based on any one of the foregoing infrared communication apparatuses, and the infrared communication method includes:
coding information to be sent to obtain a coded signal;
modulating the coded signal to a carrier signal to obtain a modulated signal, and controlling a first infrared signal transmitted to opposite-end equipment by adopting the modulated signal so that the first infrared signal carries the information to be transmitted;
receiving a second infrared signal transmitted by the opposite terminal equipment, and converting the second infrared signal into an electric signal;
demodulating a demodulation signal based on the electrical signal;
and decoding the demodulated signal to obtain information carried by the second infrared signal, wherein the information carried by the second infrared signal is response information of the information to be sent.
Optionally, the encoding the information to be transmitted to obtain an encoded signal includes:
acquiring a coding mode, wherein the coding mode comprises a first bit string corresponding to a bit 1 and a second bit string corresponding to a bit 0;
and coding the information to be sent by adopting the coding mode to obtain a coded signal.
Optionally, the obtaining the encoding manner includes:
acquiring an available coding mode of opposite-end equipment; selecting a coding mode available for the infrared communication device from available coding modes of the opposite terminal equipment; informing the opposite terminal device of the selected coding mode;
or sending the available coding mode of the infrared communication device to opposite-end equipment; and receiving the available coding mode of the opposite terminal equipment selected from the available coding modes of the infrared communication device, which are sent by the opposite terminal equipment.
Optionally, the information carried by the second infrared signal is information obtained by the peer device from the first infrared signal; the method further comprises the following steps:
comparing the information carried by the second infrared signal with the information to be sent;
and when the error rate of the information carried by the second infrared signal is higher than the error code threshold value compared with the information to be sent, the information to be sent is sent again.
Optionally, the infrared communication apparatus includes a multi-channel infrared signal transmitting circuit, and the modulating the encoded signal onto a carrier signal to obtain a modulated signal includes:
and converting the serial coded signals into a plurality of paths of parallel signals, and respectively modulating the signals to carrier signals corresponding to the plurality of paths of infrared signal transmitting circuits.
Optionally, the infrared communication device includes a multi-channel infrared signal transmitting circuit, and the encoding of the information to be transmitted includes:
and coding the information to be transmitted by adopting a plurality of different coding modes to obtain a plurality of paths of different coding signals, wherein the plurality of paths of different coding signals are respectively transmitted by the plurality of paths of infrared signal transmitting circuits.
On the other hand, an infrared communication method is provided, and the infrared communication method is implemented based on any one of the foregoing infrared communication apparatuses, and the infrared communication method includes:
receiving a second infrared signal transmitted by opposite-end equipment, and converting the second infrared signal into an electric signal;
demodulating a demodulation signal based on the electrical signal;
decoding the demodulated signal to obtain information carried by the second infrared signal;
coding information to be sent to obtain a coded signal, wherein the information to be sent is response information of information carried by the second infrared signal;
and modulating the coded signal to a carrier signal to obtain a modulated signal, and controlling a first infrared signal transmitted to the opposite terminal device by adopting the modulated signal, so that the first infrared signal carries the information to be transmitted.
Optionally, the decoding the demodulated signal to obtain the information carried by the second infrared signal includes:
converting the demodulation signal from an analog demodulation signal to a digital demodulation signal;
and decoding the digital demodulation signal based on the coding mode to obtain the information carried by the second infrared signal.
Optionally, the infrared communication apparatus includes a multi-channel infrared signal receiving circuit, and the decoding, based on the encoding manner, the digital demodulation signal to obtain the information carried by the second infrared signal includes:
respectively decoding the demodulation signals output by the multi-path infrared signal receiving circuit; and splicing the information obtained by decoding according to the sequence.
Optionally, the infrared communication device includes a multi-channel infrared signal receiving circuit, and the decoding the digital demodulation signal based on the encoding mode to obtain the information carried by the second infrared signal includes:
and comparing the information decoded by the multipath infrared signal receiving circuit, and selecting the value with more occurrence times in the value of each bit as the value of the bit.
In another aspect, a terminal device is provided, where the terminal device includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform any of the infrared communication methods described above.
In another aspect, a computer readable storage medium is provided, on which computer instructions are stored, wherein the computer instructions, when executed by a processor, implement the infrared communication method of any one of the preceding claims. .
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic structural diagram of an infrared communication device provided in an embodiment of the present disclosure;
fig. 2 is a circuit diagram of an infrared communication device provided by an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an infrared communication system provided by an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating an infrared communication method provided by an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating an infrared communication method provided by an embodiment of the present disclosure;
fig. 6 shows a flowchart of an infrared communication method provided by an embodiment of the present disclosure;
fig. 7 is a block diagram illustrating a terminal device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 shows a schematic structural diagram of an infrared communication device provided in an embodiment of the present disclosure. Referring to fig. 1, the infrared communication apparatus includes:
a control circuit 100 configured to encode information to be transmitted, resulting in an encoded signal;
the infrared signal transmitting circuit 200 is configured to modulate the coded signal onto a carrier signal to obtain a modulated signal, and control to transmit a first infrared signal by using the modulated signal, so that the first infrared signal carries information to be transmitted;
an infrared signal receiving circuit 300 configured to receive the second infrared signal and convert the second infrared signal into an electrical signal; demodulating a demodulation signal based on the electric signal;
the control circuit 100 is further configured to perform decoding processing on the demodulated signal output by the infrared signal receiving circuit 300, so as to obtain information carried by the second infrared signal.
In the embodiment of the disclosure, the control circuit encodes information to be transmitted into a coded signal, the infrared signal transmitting circuit can modulate the coded signal onto a carrier to obtain a modulated signal, and then the modulated signal is adopted to control the transmission of the first infrared signal, so that the first infrared signal carries the information to be transmitted, and the infrared transmission of the information is realized; the infrared signal receiving circuit can receive the second infrared signal, then the second infrared signal is converted into an electric signal, and the control circuit decodes the electric signal to obtain information carried by the second infrared signal, so that the infrared receiving information is realized. It can be seen that the infrared communication device provided by the disclosure can realize information transmission and information reception, and by adopting the infrared communication device, not only can the intelligent home be controlled, but also the information from the intelligent home can be received, the state of the intelligent home can be known, and the like, so that the control of the intelligent home is facilitated.
Fig. 2 is a circuit diagram of an infrared communication device provided in an embodiment of the present disclosure. Referring to fig. 2, the infrared signal transmitting circuit 200 includes: and gate 201, digital-to-analog converter 202, drive transistor 203, and infrared emitter 204.
An and gate 201 including an encoded signal input terminal, a carrier signal input terminal (S1 in fig. 2), and an output terminal, the output terminal of the and gate 201 outputting a modulation signal; an input end of the digital-to-analog converter 202 is electrically connected to an output end of the and gate 201, and the digital-to-analog converter 202 is configured to convert the modulation signal output by the and gate 201 from a digital modulation signal to an analog modulation signal; a driving transistor 203 including a control terminal, a power signal input terminal (VDD in fig. 2) and an output terminal, the control terminal being electrically connected to the output terminal of the digital-to-analog converter 202; and an infrared emitter 204 electrically connected to an output terminal of the driving transistor 203.
In the implementation mode, the AND gate is used for AND operation of the coded signal and the carrier signal, so that the output modulation signal bears information to be sent, and then the modulation signal is converted into an analog signal to control the on-off of the driving transistor, so that the infrared emitter outputs infrared pulses. Because the modulation signal generated by controlling the infrared pulse carries the information to be transmitted, the generated infrared pulse (i.e. the first infrared signal) carries the information to be transmitted, and thus the infrared signal transmitting circuit can realize information transmission.
Illustratively, the signal to be encoded may be a sequence of bits 0 and 1. While encoding the signal, each 0 and 1 may be encoded into more bits. For example, bit 1 is represented by a first bit string, e.g., a string of bits alternating between 1 and 0 for M cycles, and bit 0 is represented by a second bit string, e.g., a string of bits alternating between 1 and 0 for N cycles, where N is less than M. The carrier signal can be a high-frequency square wave or sine wave signal, for example, the frequency is up to 38KHz, and the transmission distance of the infrared signal can be ensured by using the high-frequency carrier signal.
After inputting the code signal and the carrier signal into the AND gate, obtaining a modulation signal; under the action of the AND gate, the output is 1 when the coded signal and the carrier signal are simultaneously 1, otherwise, the output is 0, because the frequency of the carrier signal is far higher than that of the coded signal (the frequency of the coded signal output to the AND gate), after the bit 1 in the coded signal is input, the AND gate outputs a plurality of pulses (between 0 and 1), and after the bit 0 in the coded signal is input, the AND gate outputs a continuous low level (the output is continuous 0) for a period of time. After the digital-to-analog conversion, the digital modulation signal is converted into an analog modulation signal, the analog modulation signal has a high level and a low level, the high level enables the driving transistor to be turned on, and the low level enables the driving transistor to be turned off. When the driving transistor is conducted, the power supply signal passes through the driving transistor and the infrared emitter to drive the infrared emitter to emit infrared light.
Illustratively, the driving Transistor may be a Thin Film Transistor (TFT), which facilitates control of the driving Transistor.
Illustratively, the infrared emitter may be an infrared light emitting diode for generating infrared light at 940nm or other wavelength bands.
Referring again to fig. 2, the infrared signal transmitting circuit 200 may further include:
and a current limiting resistor 205 connected between the output terminal of the driving transistor 203 and the infrared emitter 204.
In general, the power signal (VDD) supplied to the driving transistor may be a power signal of a terminal device having the infrared communication apparatus, and since the power signal is simultaneously supplied to each module in the terminal device, the signal size cannot be adjusted according to the requirements of the infrared transmitter. In order to avoid the current of the infrared emitter from being too large due to the power signal, a current-limiting resistor can be arranged, so that the current passing through the infrared emitter is not too large, and the infrared emitter is prevented from being damaged.
For example, the current limiting resistor 205 may be sized according to the maximum current that the infrared emitter can pass through. For example, the current limiting resistor 205 may be sized as: (VDD-Driving transistor PN junction Voltage-maximum Current time Voltage of Infrared emitter)/maximum Current of Infrared emitter. Wherein, the PN junction voltage is usually a calibration parameter, such as 0.7V, and the maximum current and the maximum voltage of the infrared emitter are calibration parameters of the infrared emitter, so the size of the current limiting resistor is easy to determine.
Referring again to fig. 2, the infrared signal receiving circuit 300 includes: a photoelectric converter 201, a first stage operational amplifier 302 and a second stage operational amplifier 303.
A photoelectric converter 201 configured to receive the second infrared signal and convert it into an electrical signal output; a first-stage operational amplifier 302, including a positive-phase input terminal, a reverse-phase bias voltage input terminal (S2 in fig. 2), and an output terminal, where the positive-phase input terminal of the first-stage operational amplifier 302 is electrically connected to the output terminal of the photoelectric converter 201; the second stage operational amplifier 303 includes a positive phase input terminal, a negative phase threshold voltage input terminal (S3 in fig. 2), and an output terminal, the positive phase input terminal of the second stage operational amplifier 303 is electrically connected to the output terminal of the first stage operational amplifier 302, and the output terminal of the second stage operational amplifier 303 is electrically connected to the control circuit 100.
In this implementation, the photoelectric converter 201 first converts the second infrared signal into an electrical signal, and then performs offset voltage cancellation and threshold comparison via the two-stage operational amplifier to obtain a demodulated signal.
Among them, since the photoelectric converter 201 has dark current and parasitic resistance, both of which generate a bias voltage, the bias voltage needs to be eliminated by the first stage operational amplifier 302. The electrical signal at the output of the optical-to-electrical converter 201 is amplified after the offset voltage is subtracted from the first stage operational amplifier 302, and then compared with the threshold voltage provided by the second stage operational amplifier 303 to generate a demodulation signal with high and low levels. Here, the threshold voltage is used to distinguish the high and low levels corresponding to the infrared light and dark states.
Illustratively, the photoelectric converter 201 may be a photodiode.
As shown in fig. 2, a resistor R is further connected between the non-inverting input terminal and the output terminal of each operational amplifier.
In the disclosed embodiment, the control circuit 100 may be a Micro Control Unit (MCU).
In the embodiment of the present disclosure, the control circuit 100 is configured to obtain a coding mode, where the coding mode includes a first bit string corresponding to bit 1 and a second bit string corresponding to bit 0; coding information to be transmitted by adopting a coding mode to obtain a coded signal; and converting the demodulated signal from an analog demodulated signal to a digital demodulated signal; and decoding the digital demodulation signal based on the coding mode to obtain the information carried by the second infrared signal.
In this implementation, infrared communication is implemented by acquiring the encoding mode and then encoding and decoding information based on the encoding mode.
Wherein, the first bit string corresponding to bit 1, the second bit string corresponding to bit 0. Based on the working process of the infrared signal transmitting circuit, the code patterns of the modulated signals corresponding to the first bit string and the second bit string after modulation can be known, and when decoding, the digital demodulation signals are decoded by adopting the code patterns to obtain the information carried by the second infrared signal.
For example, bit 1 and bit 0 are encoded to have the same length and include a first bit string and a second bit string having different numbers of bit 1. During decoding, the demodulation signal is divided according to the time length corresponding to the length, and then the pulse number (pulse obtained by the operation of bit 1 and carrier signal) in each section of demodulation signal is determined, so that whether the bit 1 or 0 corresponds to the section of demodulation signal is determined, and decoding is realized. Here, the time length is related to the bit string length and the frequency of the encoded signal; the number of pulses corresponding to bits 1 and 0, respectively, is related to the time length, the number of bits 1 contained in the first bit string and the second bit string, and the carrier frequency. The control circuit can determine the numerical values based on the coding mode and then store and use the numerical values.
As before, the control circuit 100 is an MCU having an analog-to-digital converter that converts the demodulated signal from an analog demodulated signal to a digital demodulated signal.
Optionally, the control circuit 100 is further configured to obtain the foregoing encoding manner.
In the embodiment of the present disclosure, the scheme for the control circuit 100 to obtain the encoding mode may include:
firstly, acquiring an available coding mode of opposite-end equipment; selecting a coding mode available for the infrared communication device from available coding modes of opposite-end equipment; and informing the selected coding mode to the opposite terminal equipment. The selection of the available coding modes of the infrared communication device may be performed by the control circuit according to a predetermined mode (e.g., random, sequential, etc.), or may be presented to the user via a terminal integrated with the infrared communication device, selected by the user, etc.
Secondly, sending the available coding mode of the infrared communication device to opposite-end equipment; and receiving the available coding mode of the opposite terminal equipment selected from the available coding modes of the infrared communication device, which are sent by the opposite terminal equipment.
Both of these ways can achieve the acquisition of the coding way. Therefore, the two parties adopt an agreed coding mode, on one hand, the confidentiality of the information can be enhanced, on the other hand, even if other equipment receives the information, the content of the information cannot be obtained due to the fact that the information cannot be decoded, and therefore the error control of the other equipment can be avoided.
When the coding mode is interacted, the interactive coding mode between the infrared communication device and the opposite-end equipment can be a first bit string and a second bit string, so that the coding mode can be learned from the opposite end even if the coding mode is not known originally, and the coding mode can be used in the subsequent communication process, therefore, the infrared communication device has the learning capability of the coding mode under the scheme. The encoding method may be a number of the encoding method (the number may be a device Identification (ID)), and the first bit string and the second bit string corresponding to the numbers of different encoding methods may be stored in the apparatus in advance.
In the embodiment of the present disclosure, the information carried by the second infrared signal is information obtained by the peer device from the first infrared signal; control circuitry 100 further configured to compare information carried by the second infrared signal with information to be transmitted; and when the error rate of the information carried by the second infrared signal is higher than the error code threshold value compared with the information to be sent, the information to be sent is sent again. The error rate is a ratio of different bits of information carried by the second infrared signal compared with information to be transmitted.
In this implementation manner, when the infrared communication transmits information, the information may be received and decoded by the peer device and then transmitted back to the infrared communication apparatus, so that the infrared communication apparatus may determine the error rate of the transmission, and if the error rate is higher, retransmission is not required, and if the error rate is lower, for example, the error rate exceeds an error rate threshold, retransmission of the information is required. This way, the accuracy of information transmission can be guaranteed.
When retransmitting, the identifier can also indicate that the information is the retransmission of the information sent last time in the information, so as to avoid that the opposite terminal device mistakenly considers the information to be new information.
When the error rate is determined, the decoded information is compared with the bits of the original information to be transmitted one by one, and when the error rate is low, the control circuit 100 is further configured to control the infrared signal transmitting circuit to transmit the confirmation information to the opposite terminal device, so that the opposite terminal device determines that the received information is accurate.
In the disclosed embodiment, the infrared communication device may include a multi-channel infrared signal transmitting circuit 200. Accordingly, the infrared communication apparatus may also include a multi-channel infrared signal receiving circuit 300. Therefore, the multi-input and multi-output of the infrared communication device can be realized, the transmission efficiency is improved, and the demand of the Internet of things on communication information quantity can be met.
Illustratively, the control circuit 100 is further configured to convert the serial coded signal into a plurality of parallel signals, and transmit the signals through the plurality of infrared signal transmitting circuits 200, respectively. In the implementation mode, serial signals are converted into parallel signals, and information is transmitted in a multi-path parallel mode, so that the information transmission speed is improved.
Correspondingly, the infrared communication apparatus also needs to be correspondingly provided with multiple infrared signal receiving circuits 300 for receiving, and the infrared signal receiving circuit 300 of the opposite-end device corresponds to the infrared signal transmitting circuit 200 of the infrared communication apparatus one to one. At the time of transmission, the encoded signal may be segmented and distributed to the respective infrared signal transmitting circuits 200 in order, and accordingly, the counterpart device also decodes in order of the respective infrared signal receiving circuits 300 and then combines the information.
Optionally, when the encoded signal is sent in segments, sequence numbers of the segments may be carried in the encoded signal, thereby facilitating recovery into serial information upon reception.
When the peer device sends information in parallel, the control circuit 100 is further configured to decode the demodulated signals output by the multiple infrared signal receiving circuits respectively; and splicing the information obtained by decoding according to the sequence.
Illustratively, the control circuit 100 is further configured to encode information to be transmitted by using a plurality of different encoding modes, respectively, to obtain a plurality of different encoded signals; the multiple different coded signals are respectively transmitted through the multiple infrared signal transmitting circuits 200. Therefore, the same infrared communication device can simultaneously send information to a plurality of different opposite-end devices, the information sent to each opposite-end device is coded in different coding modes, only the opposite-end device adopting the corresponding coding mode can decode the information, and each opposite-end device can only receive the information sent by the corresponding infrared signal transmitting circuit 200.
Of course, the scheme can also be applied between an infrared communication device and an opposite terminal device with a multi-channel infrared signal receiving circuit, and the same signal is transmitted by adopting a plurality of coding modes.
When the opposite-end device uses multiple different encoding modes to encode and transmit the same information to be transmitted, the control circuit 100 is further configured to select a value with a larger number of occurrences among values of each bit as a value of the bit by comparing information decoded by the multiple infrared signal receiving circuits 300. For example, each bit appears 1 and 0 times more, and this is taken as the value of this bit. For example, in each decoded channel, if the first bit 1 appears 3 times and 0 appears 1 time, 1 is selected as the value of the bit.
Optionally, when the control circuit 100 encodes the signal by using different encoding methods, the different encoding methods may be matched with carrier signals of different frequencies. Therefore, only if the receiving party accurately receives the infrared light of the corresponding carrier frequency and then uses the correct coding mode, the infrared light can be correctly decoded. The correspondence between the carrier frequency and the coding scheme may be stored in advance, or may be sent to the peer device together with the coding scheme when the coding scheme is sent.
As before, the control circuit 100 is an MCU having a clock generation circuit so that carrier signals of various frequencies can be generated and supplied to the respective infrared signal emitting circuits.
The embodiment of the present disclosure also provides a terminal device, which includes an infrared communication apparatus as shown in fig. 1 or fig. 2.
Fig. 3 shows a schematic structural diagram of an infrared communication system provided by an embodiment of the present disclosure. Referring to fig. 3, the infrared communication system includes a transmitting end 10 and a receiving end 20;
at least one of the transmitting end 10 and the receiving end 20 is an infrared communication device shown in fig. 1 or fig. 2.
For example, the transmitting end 10 may be a mobile terminal, and the receiving end 20 may be an intelligent home, but it is also possible that the transmitting end 10 may be an intelligent home, and the receiving end 20 may be a mobile terminal.
Fig. 4 shows a flowchart of an infrared communication method provided by the embodiment of the present disclosure. Referring to fig. 4, the infrared communication method is implemented based on the infrared communication apparatus shown in fig. 1 or fig. 2, and the infrared communication method includes:
in step S41, the information to be transmitted is encoded to obtain an encoded signal.
In step S42, the coded signal is modulated onto a carrier signal to obtain a modulated signal, and the modulated signal is used to control a first infrared signal transmitted to the peer device, so that the first infrared signal carries information to be transmitted.
In step S43, a second infrared signal transmitted by the peer device is received, and the second infrared signal is converted into an electrical signal.
In step S44, a demodulated signal is demodulated based on the electrical signal.
In step S45, the demodulated signal is decoded to obtain information carried by the second infrared signal, where the information carried by the second infrared signal is response information of the information to be sent.
In the embodiment of the present disclosure, after the infrared communication device sends the infrared signal to the peer device, the peer device returns response information to implement interaction between the two parties. The response message may be a message confirming receipt, or may be a message that is sent back to the infrared communication device to confirm whether receipt is correct or not, whether retransmission is necessary, or the like. Through the interaction of the two parties, the communication quality can be improved.
Optionally, encoding information to be transmitted to obtain an encoded signal, including:
acquiring a coding mode, wherein the coding mode comprises a first bit string corresponding to a bit 1 and a second bit string corresponding to a bit 0;
and coding the information to be transmitted by adopting a coding mode to obtain a coded signal.
Optionally, the obtaining the encoding mode includes:
acquiring an available coding mode of opposite-end equipment; selecting a coding mode available for the infrared communication device from available coding modes of opposite-end equipment; informing the selected coding mode to opposite terminal equipment;
or sending the available coding mode of the infrared communication device to the opposite terminal equipment; and receiving the available coding mode of the opposite terminal equipment selected from the available coding modes of the infrared communication device, which are sent by the opposite terminal equipment.
It should be noted that, before determining the coding mode between the sending end and the receiving end, the sending end and the receiving end may use a general coding mode for communication. For example, before step S41, the transmitting end and the receiving end may transmit information in a general encoding manner to establish a connection therebetween. The process of establishing the connection comprises the following steps:
a sending end (such as a mobile terminal) sends a signal a to a receiving end (such as a controlled smart home); after receiving the a, the receiving end returns a response signal b to the sending end; and after receiving the b, the sending end sends a response signal c to the receiving end to complete connection establishment. The transmitting end senses the existence of the receiving end and can carry out communication. Optionally, after receiving c, the receiving end may send a response signal d to the sending end, so that the opposite end knows the connection establishment.
Optionally, the information carried by the second infrared signal is information obtained by the peer device from the first infrared signal; the method further comprises the following steps:
comparing the information carried by the second infrared signal with the information to be transmitted;
and when the error rate of the information carried by the second infrared signal is higher than the error code threshold value compared with the information to be sent, the information to be sent is sent again.
Optionally, the infrared communication device includes a multi-channel infrared signal transmitting circuit, and modulates the encoded signal onto a carrier signal to obtain a modulated signal, including:
and converting the serial coded signals into multiple paths of parallel signals, and modulating the signals to carrier signals corresponding to multiple paths of infrared signal transmitting circuits respectively.
Optionally, the infrared communication device includes a plurality of infrared signal transmitting circuits, encodes information to be transmitted, and includes:
and coding the information to be transmitted by adopting a plurality of different coding modes to obtain a plurality of paths of different coding signals, and transmitting the plurality of paths of different coding signals through a plurality of paths of infrared signal transmitting circuits respectively.
Fig. 5 shows a flowchart of an infrared communication method provided by the embodiment of the present disclosure. Referring to fig. 5, the infrared communication method is implemented based on the infrared communication apparatus shown in fig. 1 or fig. 2, and the infrared communication method includes:
in step S51, a second infrared signal transmitted by the peer device is received, and the second infrared signal is converted into an electrical signal.
In step S52, a demodulated signal is demodulated based on the electrical signal.
In step S53, the demodulated signal is decoded to obtain information carried by the second infrared signal.
In step S54, the information to be sent is encoded to obtain an encoded signal, and the information to be sent is response information of the information carried by the second infrared signal.
In step S55, the coded signal is modulated onto a carrier signal to obtain a modulated signal, and the modulated signal is used to control a first infrared signal transmitted to the peer device, so that the first infrared signal carries information to be transmitted.
In the embodiment of the disclosure, after receiving the infrared signal sent by the peer device, the infrared communication device returns response information to the peer device, so as to implement interaction between the peer device and the peer device. The response message may be a message confirming receipt, or may be a message sending the received message back to the peer device to confirm whether the receipt is correct, whether retransmission is required, or the like. Through the interaction of the two parties, the communication quality can be improved.
Optionally, decoding the demodulated signal to obtain information carried by the second infrared signal, including:
converting the demodulation signal from an analog demodulation signal to a digital demodulation signal;
and decoding the digital demodulation signal based on the coding mode to obtain the information carried by the second infrared signal.
Optionally, the infrared communication device includes a multi-channel infrared signal receiving circuit, decodes the digital demodulation signal based on the encoding mode to obtain information carried by the second infrared signal, and includes:
respectively decoding the demodulated signals output by the multi-path infrared signal receiving circuit; and splicing the information obtained by decoding according to the sequence.
Optionally, the infrared communication device includes a multi-channel infrared signal receiving circuit, decodes the digital demodulation signal based on the encoding mode to obtain information carried by the second infrared signal, and includes:
and comparing the information decoded by the multipath infrared signal receiving circuit, and selecting the value with more occurrence times in the value of each bit as the value of the bit.
Fig. 6 shows a flowchart of an infrared communication method provided by the embodiment of the present disclosure. Referring to fig. 6, the infrared communication method is implemented based on the infrared communication system shown in fig. 3, and the infrared communication method includes:
in step S61, the transmitting end and the receiving end establish a connection.
A sending end (such as a mobile terminal) sends a signal a to a receiving end (such as a controlled smart home); after receiving the a, the receiving end returns a response signal b to the sending end; and after receiving the b, the sending end sends a response signal c to the receiving end to complete connection establishment. The transmitting end senses the existence of the receiving end and can carry out communication. Optionally, after receiving c, the receiving end may send a response signal d to the sending end, so that the opposite end knows the connection establishment.
In step S62, the sending end encodes the information to be sent, and obtains a first encoded signal.
In step S63, the sending end modulates the first coded signal onto a carrier signal to obtain a first modulated signal, and controls to send a first infrared signal by using the first modulated signal, so that the first infrared signal carries information to be sent. The receiving end receives the first infrared signal.
In step S64, the receiving end converts the first infrared signal into a first electrical signal.
In step S65, the receiving end demodulates the first demodulated signal based on the first electrical signal.
In step S66, the receiving end decodes the first demodulated signal to obtain information carried by the first infrared signal.
Here, the information carried by the first infrared signal decoded by the receiving end may be the same as or different from the original information to be transmitted, and is related to the infrared transmission condition.
In step S67, the receiving end encodes the information carried by the first infrared signal to obtain a second encoded signal.
In step S68, the receiving end modulates the second encoded signal onto the carrier signal to obtain a second modulated signal, and controls to transmit the second infrared signal by using the second modulated signal, so that the second infrared signal carries the information carried by the first infrared signal. The transmitting end receives the second infrared signal.
Here, the carrier signals used by the receiving end and the transmitting end may be the same.
In step S69, the transmitting end converts the second infrared signal into a second electrical signal.
In step S70, the transmitting end demodulates a second demodulated signal based on the second electrical signal.
In step S71, the sending end decodes the second demodulated signal to obtain information carried by the second infrared signal.
In step S72, the sending end determines whether the error rate of the information carried by the second infrared signal compared with the information to be sent exceeds the error code threshold. If the bit error rate exceeds the error code threshold, step S73 is performed, otherwise step S74 is performed.
In step S73, the transmitting end retransmits the information to be transmitted to the receiving end by infrared.
In step S74, the transmitting end transmits confirmation information to the receiving end by infrared.
Fig. 7 is a block diagram illustrating a terminal device 400 according to an example embodiment. Referring to fig. 7, the terminal device 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, and a communication component 408.
The processing component 402 generally controls overall operation of the terminal device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components.
The memory 404 is configured to store various types of data to support operations at the terminal device 400. Examples of such data include instructions for any software program or method operating on the terminal device 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 406 provide power to the various components of terminal device 400. Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal device 400.
The communication component 408 is configured to facilitate wireless communication between the terminal device 400 and other devices. In the disclosed embodiment, the communication component 408 may access a wireless network based on a communication standard, such as 2G, 3G, 4G, or 5G, or a combination thereof, so as to implement the physical downlink control signaling detection. In an exemplary embodiment, the communication component 408 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. Optionally, the communication component 408 further comprises an NFC module.
Those skilled in the art will appreciate that the configuration shown in fig. 7 does not constitute a limitation of the terminal device 400, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
In an exemplary embodiment, the terminal device 400 may be implemented by one or more software Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described infrared communication method.
In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, that may be executed by the processor 420 of the terminal device 400 to perform the above-described infrared communication method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. An infrared communication apparatus, characterized in that the infrared communication apparatus comprises:
a control circuit (100) configured to encode information to be transmitted, resulting in an encoded signal;
the infrared signal transmitting circuit (200) is configured to modulate the coded signal onto a carrier signal to obtain a modulated signal, and control to transmit a first infrared signal by using the modulated signal, so that the first infrared signal carries the information to be transmitted;
an infrared signal receiving circuit (300) configured to receive a second infrared signal and convert the second infrared signal into an electrical signal; demodulating a demodulation signal based on the electrical signal;
the control circuit (100) is further configured to perform decoding processing on the demodulated signal output by the infrared signal receiving circuit (300) to obtain information carried by the second infrared signal;
the control circuit (100) is configured to obtain a coding scheme, wherein the coding scheme comprises a first bit string corresponding to bit 1 and a second bit string corresponding to bit 0; coding the information to be sent by adopting the coding mode to obtain a coded signal;
and converting the demodulation signal from an analog demodulation signal to a digital demodulation signal; decoding the digital demodulation signal based on the coding mode to obtain information carried by the second infrared signal;
the infrared communication device comprises a multi-channel infrared signal transmitting circuit (200); the infrared communication device is in signal transmission with opposite-end equipment with a plurality of paths of infrared signal receiving circuits;
the control circuit (100) is further configured to encode the information to be transmitted by adopting a plurality of different encoding modes to obtain a plurality of different encoding signals; the multiple paths of different coding signals are respectively sent through the multiple paths of infrared signal transmitting circuits (200);
the infrared communication device comprises a multi-channel infrared signal receiving circuit (300);
when the opposite-end device adopts multiple different coding modes to code and send the same information to be sent, the control circuit (100) is further configured to select a value with a larger number of occurrences in the value of each bit as the value of the bit by comparing the information decoded by the multi-path infrared signal receiving circuit (300).
2. The infrared communication device according to claim 1, characterized in that the infrared signal transmitting circuit (200) comprises:
the AND gate (201) comprises a coding signal input end, a carrier signal input end and an output end, and the output end of the AND gate (201) outputs the modulation signal;
a digital-to-analog converter (202) configured to convert the modulation signal output by the AND gate (201) from a digital modulation signal to an analog modulation signal;
the driving transistor (203) comprises a control end, a power supply signal input end and an output end, wherein the control end is electrically connected with the output end of the digital-to-analog converter (202);
and the infrared emitter (204) is electrically connected with the output end of the driving transistor (203).
3. The infrared communication device according to claim 2, characterized in that the infrared signal transmitting circuit (200) further comprises:
a current limiting resistor (205) connected between the output of the driving transistor (203) and the infrared emitter (204).
4. The infrared communication device according to claim 1, characterized in that the infrared signal receiving circuit (300) comprises:
a photoelectric converter (301) configured to receive the second infrared signal and convert it into an electrical signal output;
the first-stage operational amplifier (302) comprises a positive phase input end, a reverse phase bias voltage input end and an output end, and the positive phase input end of the first-stage operational amplifier (302) is electrically connected with the output end of the photoelectric converter (301);
and the second-stage operational amplifier (303) comprises a positive phase input end, a reverse phase threshold voltage input end and an output end, the positive phase input end of the second-stage operational amplifier (303) is electrically connected with the output end of the first-stage operational amplifier (302), and the output end of the second-stage operational amplifier (303) is electrically connected with the control circuit (100).
5. The infrared communication apparatus according to claim 1, wherein the control circuit (100) is further configured to obtain a coding scheme available to the peer device; selecting a coding mode available for the infrared communication device from available coding modes of the opposite terminal equipment; informing the opposite terminal equipment of the selected coding mode; or sending the available coding mode of the infrared communication device to opposite-end equipment; and receiving the available coding mode of the opposite terminal equipment selected from the available coding modes of the infrared communication device, which are sent by the opposite terminal equipment.
6. The infrared communication device according to claim 1, wherein the information carried by the second infrared signal is information obtained from the first infrared signal by a peer device;
the control circuit (100) further configured to compare information carried by the second infrared signal with the information to be transmitted; and when the error rate of the information carried by the second infrared signal is higher than the error code threshold value compared with the information to be sent, the information to be sent is sent again.
7. A terminal device characterized in that it comprises an infrared communication means according to any one of claims 1 to 6.
8. An infrared communication system is characterized by comprising a sending end and a receiving end;
at least one of the transmitting end and the receiving end is the infrared communication apparatus according to any one of claims 1 to 6.
9. An infrared communication method, wherein the infrared communication method is implemented based on the infrared communication apparatus of any one of claims 1 to 4, and the infrared communication method includes:
acquiring a coding mode, wherein the coding mode comprises a first bit string corresponding to a bit 1 and a second bit string corresponding to a bit 0;
coding the information to be transmitted by adopting the coding mode to obtain a coded signal;
modulating the coded signal to a carrier signal to obtain a modulated signal, and controlling a first infrared signal transmitted to opposite-end equipment by adopting the modulated signal so that the first infrared signal carries the information to be transmitted;
receiving a second infrared signal transmitted by the opposite terminal equipment, and converting the second infrared signal into an electric signal;
demodulating a demodulation signal based on the electric signal;
decoding the demodulated signal to obtain information carried by the second infrared signal, wherein the information carried by the second infrared signal is response information of the information to be sent;
the infrared communication device comprises a multi-channel infrared signal transmitting circuit, and the method for coding the information to be transmitted comprises the following steps:
and coding the information to be transmitted by adopting a plurality of different coding modes to obtain a plurality of paths of different coding signals, wherein the plurality of paths of different coding signals are respectively transmitted by the plurality of paths of infrared signal transmitting circuits.
10. The infrared communication method according to claim 9, wherein the acquiring the encoding scheme includes:
acquiring an available coding mode of opposite-end equipment; selecting a coding mode available for the infrared communication device from available coding modes of the opposite terminal equipment; informing the opposite terminal device of the selected coding mode;
or sending the available coding mode of the infrared communication device to opposite-end equipment; and receiving the available coding mode of the opposite terminal equipment selected from the available coding modes of the infrared communication device, which are sent by the opposite terminal equipment.
11. The infrared communication method according to claim 9 or 10, wherein the information carried by the second infrared signal is information obtained by a peer device from the first infrared signal; the method further comprises the following steps:
comparing the information carried by the second infrared signal with the information to be sent;
and when the error rate of the information carried by the second infrared signal is higher than the error code threshold value compared with the information to be sent, the information to be sent is sent again.
12. An infrared communication method, implemented based on the infrared communication apparatus of any one of claims 1 to 4, the infrared communication method comprising:
receiving a second infrared signal transmitted by opposite-end equipment, and converting the second infrared signal into an electric signal;
demodulating a demodulation signal based on the electrical signal;
converting the demodulation signal from an analog demodulation signal to a digital demodulation signal;
decoding the digital demodulation signal based on the coding mode to obtain information carried by the second infrared signal;
coding information to be sent to obtain a coded signal, wherein the information to be sent is response information of information carried by the second infrared signal;
modulating the coded signal to a carrier signal to obtain a modulated signal, and controlling a first infrared signal transmitted to the opposite terminal device by adopting the modulated signal, so that the first infrared signal carries the information to be transmitted;
wherein the infrared communication device includes a multi-channel infrared signal receiving circuit, and the decoding the digital demodulation signal based on the encoding mode to obtain the information carried by the second infrared signal includes:
and comparing the information decoded by the multipath infrared signal receiving circuit, and selecting the value with more occurrence times in the value of each bit as the value of the bit.
13. A terminal device, characterized in that the terminal device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the infrared communication method of any one of claims 9 to 11 or the infrared communication method of claim 12.
14. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the infrared communication method of any one of claims 9 to 11 or the infrared communication method of claim 12.
CN201910759008.9A 2019-08-16 2019-08-16 Infrared communication device, system, method, terminal device and storage medium Active CN112396819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910759008.9A CN112396819B (en) 2019-08-16 2019-08-16 Infrared communication device, system, method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910759008.9A CN112396819B (en) 2019-08-16 2019-08-16 Infrared communication device, system, method, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN112396819A CN112396819A (en) 2021-02-23
CN112396819B true CN112396819B (en) 2022-06-03

Family

ID=74601929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910759008.9A Active CN112396819B (en) 2019-08-16 2019-08-16 Infrared communication device, system, method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN112396819B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113904723B (en) * 2021-09-23 2023-09-01 追觅创新科技(苏州)有限公司 Infrared communication method and device, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735079A (en) * 2004-08-09 2006-02-15 皇家飞利浦电子股份有限公司 Space channel coding and decoding method and device for realizing multipath parallel transmission
TWM371876U (en) * 2009-08-25 2010-01-01 Shen-Hao Yao Infrared sensing device
CN102356585A (en) * 2011-08-19 2012-02-15 华为技术有限公司 Fiber transmission module and optical signal transmission device
CN105721111A (en) * 2010-10-18 2016-06-29 松下电器(美国)知识产权公司 Transmission method, transmission device, reception method, and reception device
WO2016192193A1 (en) * 2015-05-29 2016-12-08 广东美的制冷设备有限公司 Infrared emission structure, infrared remote control, and infrared remote control method
CN107809286A (en) * 2017-10-02 2018-03-16 广东美的制冷设备有限公司 The anti-tampering processing method of infrared signal, device, air conditioner and readable storage medium storing program for executing
CN110034821A (en) * 2019-03-25 2019-07-19 浩云科技股份有限公司 A kind of two dimensional code isolation network information transfer device and its method with feedback signal

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02274091A (en) * 1989-04-14 1990-11-08 Matsushita Electric Ind Co Ltd Light transmitting/receiving device
JP2000201138A (en) * 1999-01-07 2000-07-18 Sony Corp Error ratio estimating device, its method and providing medium
JP2002009680A (en) * 2000-06-21 2002-01-11 Matsushita Electric Ind Co Ltd Receiver and transmitter
AU2002250356A1 (en) * 2001-03-14 2002-09-24 Mercury Computer Systems, Inc. Wireless communications methods and systems for long-code and other spread spectrum waveform processing
US7418515B2 (en) * 2001-04-27 2008-08-26 International Business Machines Corporation Data communication method, data communication system and program
US6914527B2 (en) * 2003-04-29 2005-07-05 Jui-Hung Hsu Infrared detector
US7456860B2 (en) * 2004-09-28 2008-11-25 U.S.K. Co., Ltd. Surveillance system using pulse-coded rays
CN101325438B (en) * 2007-06-15 2012-10-10 上海无线通信研究中心 Four-antenna diversity transmission device based on GMC system, transmission method and receiving device, receiving method
CN101707585A (en) * 2008-11-13 2010-05-12 上海纳杰电气成套有限公司 Communication method for nonstandard communication protocol
CN101847302B (en) * 2010-04-27 2012-01-04 广州天网安防科技有限公司 Infrared anti-theft device and method thereof for automatically transforming modulating frequency
CN102945104A (en) * 2012-11-27 2013-02-27 哈尔滨师范大学 Interactive light-emitting diode (LED) display screen using infrared address signals
CN104183112A (en) * 2013-05-21 2014-12-03 鸿富锦精密工业(深圳)有限公司 Infrared remote control device
CN104574931A (en) * 2015-01-04 2015-04-29 中兴通讯股份有限公司 Infrared remote control circuit, method and terminal
CN105490723B (en) * 2015-12-09 2019-03-01 谢红丹 A kind of LTE relay system based on circulation positioning spreading code
US10367624B2 (en) * 2017-03-01 2019-07-30 Qualcomm Incorporated Uplink multi-bits acknowledgement for self contained transmissions

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735079A (en) * 2004-08-09 2006-02-15 皇家飞利浦电子股份有限公司 Space channel coding and decoding method and device for realizing multipath parallel transmission
TWM371876U (en) * 2009-08-25 2010-01-01 Shen-Hao Yao Infrared sensing device
CN105721111A (en) * 2010-10-18 2016-06-29 松下电器(美国)知识产权公司 Transmission method, transmission device, reception method, and reception device
CN102356585A (en) * 2011-08-19 2012-02-15 华为技术有限公司 Fiber transmission module and optical signal transmission device
WO2016192193A1 (en) * 2015-05-29 2016-12-08 广东美的制冷设备有限公司 Infrared emission structure, infrared remote control, and infrared remote control method
CN107809286A (en) * 2017-10-02 2018-03-16 广东美的制冷设备有限公司 The anti-tampering processing method of infrared signal, device, air conditioner and readable storage medium storing program for executing
CN110034821A (en) * 2019-03-25 2019-07-19 浩云科技股份有限公司 A kind of two dimensional code isolation network information transfer device and its method with feedback signal

Also Published As

Publication number Publication date
CN112396819A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
US6262994B1 (en) Arrangement for the optimization of the data transmission via a bi-directional radio channel
Li et al. Two-way visible light communication and illumination with LEDs
US10476715B2 (en) Modulation for a data bit stream
US20040176063A1 (en) Apparatus and method for transmitting and receiving ultra wideband signals
Siddique et al. Joint rate-brightness control using variable rate MPPM for LED based visible light communication systems
Yang et al. Composite amplitude-shift keying for effective LED-camera VLC
CN112396819B (en) Infrared communication device, system, method, terminal device and storage medium
US9130630B2 (en) Methods and systems for determining indicators used in channel state information (CSI) feedback in wireless systems
US7292645B2 (en) Binary transmitter and method of transmitting data in binary format
KR101101367B1 (en) Method of signalling, a communication system and a communication equipment
CN106160795B (en) Modulator approach, data transmission method, data receiver method and its device
CN101808368A (en) Data transmission method, microwave equipment and network system
US20210367710A1 (en) Apparatus and method for sending side-channel bits on an ethernet cable
Kim et al. Applicability of color-independent visual-MIMO for V2X communication
CN101764667B (en) Wireless transmitting apparatus and method and wireless communication system
KR20040094562A (en) Method and apparatus for ultra wideband wireless communication using channel information
Ryu et al. RGB MIMO optical camera communication with Histogram equalization
US10320427B2 (en) Non-orthogonal multiple access data transmission method and transmission device
Walter et al. Deep learning based optical camera communications
CN112235047A (en) Screen two-way communication system based on visible light communication
Kim et al. Zero reduction codes for efficient transmission and enhanced brightness in visible light communication
CN102106128A (en) Modulation of a carrier radio signal by a mobile terminal in a wireless telecommunications network
Sandeep et al. Utilizing a Raspberry Pi for Transmitting Image using Li-Fi Transceiver
Mousavi et al. A relay subset selection scheme for wireless sensor networks based on channel state information
WO2015100657A1 (en) Network management control information transmission method and microwave device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant