Communication method and system based on visible light
By transmitting data between separate modules using optical fibers and photoelectric signal conversion devices, the problem of signal distortion caused by distance is solved, achieving high-quality data transmission. It is suitable for a variety of products, and the circuit is simple and low-cost.
Patent Information
- Application Number
- CN202411481246.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-25
AI Technical Summary
When transmitting data between separate functional modules, existing wired and wireless communication methods are prone to signal distortion due to long distances, affecting the accuracy of data transmission.
A visible light-based communication method is adopted to transmit data between separate modules via optical fibers and photoelectric signal conversion devices. This includes converting data into optical signals, electrical signals, and analog-to-digital signals, using LED modules, photodiodes, and comparators for signal conversion, and combining this with a central processing unit to achieve high-quality data transmission.
It effectively avoids signal distortion caused by long communication lines or loop interference, and is suitable for a variety of products such as headphones and test fixtures. The circuit is simple and low in cost.
Smart Images

Figure CN119519834A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication between separate devices, and more specifically, to a communication method and system based on visible light. Background Art
[0002] Wired communication and wireless communication are the two most important communication methods in today's society. Among them, wired communication refers to the method of data transmission and communication through wired transmission media such as cables and optical cables, including telephone lines, optical fibers, Ethernet, etc. The advantage of wired communication is that the signal transmission is more stable because there is no external interference, and it can provide higher bandwidth, faster speed and better transmission quality. Wireless communication refers to the method of using radio waves to transmit data, including radio, microwave, laser, satellite, etc. The advantages of wireless communication are that it is more convenient than wired communication, can span distances, is easier to install and maintain, and can provide higher bandwidth and faster speed.
[0003] Whether it is wired communication or wireless communication, the accuracy of information transmission is always the most basic and important requirement. With the increasing development of electronic products, various electronic products have entered our lives, and for production and functional requirements, more and more products are combined with various functional modules. Some products have various functional modules far apart due to usage or shape requirements. Regardless of the existing wired transmission method or wireless transmission method, data transmission often causes some distortion of signal quality due to transmission lines and ground, which easily leads to data transmission errors.
[0004] Therefore, there is an urgent need for a solution that can perform high-quality data communication between mutually separated combined functional modules. Summary of the invention
[0005] In view of the above problems, an object of the present invention is to provide a visible light-based communication method and system to establish communication between two different parts of a product, thereby avoiding the problem of signal distortion caused by long communication lines or loop interference.
[0006] According to one aspect of the present invention, there is provided a visible light based communication method, comprising:
[0007] Converting the data to be transmitted from the data sending end into transmission data in the form of an optical signal through a first data converter;
[0008] transmitting the transmission data in the form of optical signals to a second data converter at a data receiving end through an optical fiber to convert the transmission data in the form of optical signals into transmission data in the form of electrical signals;
[0009] At the data receiving end, the transmission data in the form of an electrical signal is converted into transmission data in the form of an analog digital signal by a third data converter;
[0010] The transmission data in the form of analog digital signals is received by the central processing unit of the data receiving end.
[0011] In addition, an optional technical solution is that before transmitting the data, it also includes:
[0012] Transmitting a handshake signal in the form of an optical signal from a data transmitting end through a first data converter to a second data converter at a data receiving end through an optical fiber;
[0013] converting the handshake signal in the form of an optical signal into a handshake signal in the form of an electrical signal through the second data converter and transmitting the handshake signal to the third data converter;
[0014] Converting the handshake signal in the form of an electrical signal into a handshake signal in the form of an analog digital signal by the third data converter;
[0015] The central processing unit establishes a communication connection between the central processing unit and the data sending end according to the handshake signal in the form of the analog digital signal.
[0016] In addition, an optional technical solution is that the first data converter is an LED module, which converts the data to be transmitted into a PWM light signal; and / or, the second data converter is a photoelectric conversion device; and / or, the third data converter is a comparator.
[0017] In addition, an optional technical solution is that the photoelectric conversion device is a photodiode;
[0018] The photodiode is turned on and off according to the PWM light signal;
[0019] The transmission data in the form of an optical signal is converted into transmission data in the form of an electrical signal by turning the photodiode on and off.
[0020] In addition, an optional technical solution is that the data to be transmitted is converted from the data sending end into transmission data in the form of an optical signal, including:
[0021] Converting the data to be transmitted into a PWM signal to be transmitted at the data sending end;
[0022] The LED lamp is controlled to turn on and off according to the PWM signal to be transmitted, so as to send the transmission data in the form of the light signal through the LED lamp.
[0023] In addition, an optional technical solution is that, in the process of converting the transmission data in the form of an electrical signal into the transmission data in the form of an analog digital signal by the comparator, it also includes:
[0024] The comparison voltage of the comparator is adjusted by a resistor.
[0025] On the other hand, an embodiment of the present invention further provides a visible light-based communication system for implementing the visible light-based communication method as described above, comprising:
[0026] A first data converter, arranged at a data transmitting end, for converting the data to be transmitted into transmission data in the form of an optical signal;
[0027] A second data converter, arranged at the data receiving end, for converting the transmission data in the form of an optical signal into transmission data in the form of an electrical signal;
[0028] an optical fiber for transmitting the transmission data in the form of an optical signal from the data transmitting end to the second data converter;
[0029] A third data converter, provided at the data receiving end, for converting the transmission data in the form of electrical signals into transmission data in the form of analog digital signals;
[0030] The central processing unit is arranged at the data receiving end and is used for receiving the transmission data in the form of analog digital signals.
[0031] In addition, an optional technical solution is that the data sending end and the data receiving end are respectively located in two electronic devices that are physically separated from each other.
[0032] In addition, an optional technical solution is to further include an adjusting resistor for adjusting the comparison voltage of the comparator.
[0033] The above-mentioned communication method based on visible light establishes communication between two different parts of the product through a combination of optoelectronic signal conversion devices and optical fibers, which can effectively avoid the problem of signal distortion caused by long communication lines or loop interference and can be applied to a variety of products, such as communication between the two ear shells of headphones and communication between various modules of test tooling. The circuits and procedures are simple and the cost is lower.
[0034] In order to achieve the above and related purposes, one or more aspects of the present invention include the features that will be described in detail later. The following description and the accompanying drawings describe some exemplary aspects of the present invention in detail. However, these aspects indicate only some of the various ways in which the principles of the present invention can be used. In addition, the present invention is intended to include all these aspects and their equivalents. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] By referring to the following description in conjunction with the accompanying drawings, and with a more comprehensive understanding of the present invention, other objects and results of the present invention will become more apparent and easy to understand. In the accompanying drawings:
[0036] Figure 1 is a schematic diagram of a circuit principle of a visible light communication method according to an embodiment of the present invention;
[0037] Figure 2 is a flow chart of a visible light based communication method according to an embodiment of the present invention;
[0038] Figure 3 4 is a flow chart of a visible light based communication method according to an embodiment of the present invention.
[0039] The same reference numerals throughout the drawings indicate similar or corresponding features or functions. DETAILED DESCRIPTION
[0040] 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.
[0041] In the following description, for the purpose of illustration, in order to provide a comprehensive understanding of one or more embodiments, many specific details are set forth. However, it is apparent that these embodiments may also be implemented without these specific details. In other examples, for ease of describing one or more embodiments, known structures and devices are shown in the form of block diagrams.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0043] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.
[0044] With the development of technology, optical fiber technology has become more mature, and the development of plastic optical fiber has greatly promoted the use of optical fiber in communications in all walks of life. Plastic optical fiber can not only transmit light in a bent state, but also has the advantages of good controllability, easy processing, convenient use, low price, etc. It can be applied to more complex and variable products, and can be used for larger products such as test fixtures. Therefore, in order to solve the problem of signal transmission distortion caused by the long distance between several electronic devices / modules that are physically separated from each other, the present invention uses optical fiber as the communication medium between classified devices.
[0045] In order to solve the problems in the prior art, the present invention converts the data to be transmitted into an optical signal form suitable for optical fiber transmission, and then converts the data in the optical signal form into the required data form through photoelectric conversion and other processing at the data receiving end.
[0046] To describe the contents of the visible light-based communication method and system of the present invention in detail, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0047] Figure 1 To illustrate the circuit principle of the visible light communication method according to an embodiment of the present invention, Figure 2 FIG. 2 shows the process of a visible light communication method according to an embodiment of the present invention. Figure 1 and Figure 2 As shown together, the visible light communication method provided by the present invention mainly includes the following steps:
[0048] S210: Converting the data to be transmitted from the data sending end into transmission data in the form of an optical signal through a first data converter;
[0049] S220: transmitting the transmission data in the form of an optical signal to a second data converter at a data receiving end through an optical fiber, so as to convert the transmission data in the form of an optical signal into transmission data in the form of an electrical signal;
[0050] S230: at the data receiving end, converting the transmission data in the form of an electrical signal into transmission data in the form of an analog digital signal through a third data converter;
[0051] S240: receiving the transmission data in the form of analog digital signals through the central processing unit of the data receiving end.
[0052] In order to further improve the accuracy of data transmission, before actually transmitting data, a communication connection between the data sending end and the data receiving end can also be established through a handshake signal. Specifically, as an example, in a specific embodiment of the present invention, before transmitting data, the following steps of establishing a communication connection between devices through a handshake signal are also included:
[0053] S110: Transmitting a handshake signal in the form of an optical signal from the data sending end through the first data converter to the second data converter at the data receiving end through the optical fiber;
[0054] S120: converting the handshake signal in the form of an optical signal into a handshake signal in the form of an electrical signal through the second data converter and transmitting the handshake signal to the third data converter;
[0055] S130: converting the handshake signal in the form of an electrical signal into a handshake signal in the form of an analog digital signal by the third data converter;
[0056] S140: The central processing unit establishes a communication connection between the central processing unit and the data sending end according to the handshake signal in the form of the analog digital signal.
[0057] The transmission mode of the handshake signal in the visible light-based communication method of the present invention is the same as the transmission mode when the data to be transmitted is formally transmitted.
[0058] The first data converter, the second data converter and the third data converter cooperate with each other to reliably transmit the data to be transmitted between two separated modules / electronic devices through optical fibers. Specifically, the first data converter is used to convert the data to be transmitted into transmission data in the form of optical signals, and in theory any device that can emit visible light can be used; the second data converter is used to convert the transmission data in the form of optical signals into transmission data in the form of electrical signals, and in theory any photoelectric conversion device that can convert optical signals into electrical signals can be used; the third data converter is used to convert the transmission data in the form of electrical signals into transmission data in the form of analog digital signals, and in theory any device that can convert electrical signals into analog digital signals can be used.
[0059] That is to say, the system for implementing the above-mentioned visible light-based communication method can be implemented by a combination of a first data converter arranged at the data sending end and a second data converter and a third data converter arranged at the data receiving end. It can also include a central processing unit arranged at the data receiving end for receiving transmission data in the form of analog digital signals.
[0060] More specifically, as an example, an LED module is used as the first data converter, and the LED module can convert the data to be transmitted into a PWM light signal.
[0061] In photodetector technology, a photodiode is a semiconductor device that converts light signals into electrical signals. It uses the PN junction characteristics in semiconductors to generate photogenerated carriers (electron-hole pairs) under light irradiation, thereby forming a photocurrent. Photodiodes have the advantages of simple structure, small size, high sensitivity, and fast response speed. PIN photodiodes are a new type of photodetector developed on the basis of ordinary photodiodes. They are composed of highly doped p-parts, i-parts, and n-parts, and have higher photoelectric conversion efficiency and response speed.
[0062] Therefore, in a specific embodiment of the present invention, a photodiode is used as the second data converter, and further, a PIN photodiode is used as the second data converter. The photodiode (or PIN photodiode) is controlled to be turned on and off according to the PWM light signal converted by the LED module, and the transmission data in the form of the light signal transmitted by the optical fiber is converted into the transmission data in the form of an electrical signal through the conduction and closing of the photodiode.
[0063] The third data converter can use a comparator. In the process of converting the transmission data in the form of an electrical signal into the transmission data in the form of an analog digital signal through the comparator, the comparison voltage of the comparator can also be adjusted by a resistor. Specifically, if the input voltage of the positive input terminal of the comparator (the voltage input from the photodiode terminal) is about Vcc, which is greater than the reference voltage Vref, the comparator outputs a high level to the central processing unit; if the input voltage of the positive input terminal of the comparator (the voltage input from the photodiode terminal) is less than the reference voltage Vref, the comparator outputs a low level to the central processing unit. In this way, the output continues, and a digital signal transmitted to the central processing unit is formed according to the transmission data in the form of an electrical signal converted by the photodiode.
[0064] It should be noted that Figure 1 The layout in the circuit principle block diagram is only an exemplary description. In the specific application process, any required impedance resistor can be flexibly selected according to the specific application conditions of the comparator, resistor, reference voltage, etc. In addition, in the above embodiment, the value of Vref is determined by the impedance between different comparators, charging diodes, and resistors. If different components are selected, the value of Vref may also be different.
[0065] according to Figure 1 As shown in the circuit principle block diagram of the visible light-based communication method, it can be seen that in this embodiment, the visible light-based communication system for implementing the above-mentioned visible light-based communication method mainly includes the following five parts:
[0066] 1. Optical fiber is used to transmit light waves and various optical signals. It consists of a highly transparent core material with a high refractive index and a surrounding skin material with a low refractive index. This structure allows light to be reflected into the optically dense medium at the interface, so that the light is transmitted forward through repeated reflections in the optical fiber core. Plastic optical fiber is widely used in various occasions because of its good controllability, easy processing, convenient use, low price, etc. It can effectively transmit light even in a bent state. Here, it mainly guides LED light to the ambient light sensor, thereby reducing light loss and adapting to changing products and test fixtures.
[0067] 2. Central processing unit, which is a device with logic processing and signal processing;
[0068] 3. Photodiode, which mainly converts light signals into electrical signals;
[0069] 4. The comparator mainly processes the electrical signal converted by the photodiode and converts it into a digital signal for transmission to the central processing unit MCU;
[0070] 5. The LED module mainly converts the data that the functional module needs to transmit into PWM light signal transmission.
[0071] Figure 3 FIG. 2 shows the process logic according to an embodiment of the present invention. Figure 3 As shown, at the beginning of data transmission, the functional module first establishes communication with the central processing unit MCU, converts the handshake signal into a PWM signal, controls the on and off of the LED light, thereby converting the electrical signal into an optical signal and transmitting it to the photodiode through the optical fiber to convert it into an electrical signal, and then converts it into a digital signal through the comparator and transmits it to the central processing unit MCU. The two resistors R1 and R2 are mainly used to adjust the size of the comparison voltage to avoid signal conversion errors caused by excessive or insufficient comparison voltage; the MCU receives the handshake signal and establishes communication with the functional module; similarly, after the communication is established, the data that the functional module wants to transmit is transmitted to the MCU in the same way, thereby realizing optical communication and avoiding the problem of signal transmission distortion due to the long distance between several modules.
[0072] It can be seen from the above embodiments that the communication method and system based on visible light provided by the present invention establish communication between two products of different parts through a combination of optoelectronic signal conversion devices and optical fibers, which can effectively avoid the problem of signal distortion caused by long communication lines or loop interference, and can be applied to a variety of products, such as communication between two ear shells of headphones, communication between various modules of test tooling, etc., and the circuit and program are simple, and the cost is lower.
[0073] As described above with reference to the accompanying drawings, the communication method and system based on visible light according to the present invention are described by way of example. However, those skilled in the art should understand that various improvements can be made to the communication method and system based on visible light proposed by the present invention without departing from the content of the present invention. Therefore, the protection scope of the present invention should be determined by the content of the attached claims.
Claims
1. A communication method based on visible light, characterized in that: include: Converting the data to be transmitted from the data sending end into transmission data in the form of an optical signal through a first data converter; transmitting the transmission data in the form of optical signals to a second data converter at a data receiving end through an optical fiber to convert the transmission data in the form of optical signals into transmission data in the form of electrical signals; At the data receiving end, the transmission data in the form of an electrical signal is converted into transmission data in the form of an analog digital signal by a third data converter; The transmission data in the form of analog digital signals is received by the central processing unit of the data receiving end.
2. The visible light communication method according to claim 1, characterized in that: Before transferring data, it also includes: Transmitting a handshake signal in the form of an optical signal from a data transmitting end through a first data converter to a second data converter at a data receiving end through an optical fiber; converting the handshake signal in the form of an optical signal into a handshake signal in the form of an electrical signal through the second data converter and transmitting the handshake signal to the third data converter; Converting the handshake signal in the form of an electrical signal into a handshake signal in the form of an analog digital signal by the third data converter; The central processing unit establishes a communication connection between the central processing unit and the data sending end according to the handshake signal in the form of the analog digital signal.
3. The visible light communication method according to claim 1 or 2, characterized in that: The first data converter is an LED module, and the LED module converts the data to be transmitted into a PWM light signal; and / or, The second data converter is a photoelectric conversion device; and / or, The third data converter is a comparator.
4. The visible light communication method according to claim 3, characterized in that: The photoelectric conversion device is a photodiode; The photodiode is turned on and off according to the PWM light signal; The transmission data in the form of an optical signal is converted into transmission data in the form of an electrical signal by turning the photodiode on and off.
5. The visible light communication method according to claim 4, characterized in that: The step of converting the data to be transmitted into transmission data in the form of an optical signal from the data transmitting end includes: Converting the data to be transmitted into a PWM signal to be transmitted at the data sending end; The LED lamp is controlled to turn on and off according to the PWM signal to be transmitted, so as to send the transmission data in the form of the light signal through the LED lamp.
6. The visible light communication method according to claim 3, characterized in that: In the process of converting the transmission data in the form of an electrical signal into the transmission data in the form of an analog digital signal by the comparator, the method further includes: The comparison voltage of the comparator is adjusted by a resistor.
7. A visible light based communication system, for implementing the visible light based communication method according to any one of claims 1 to 6, comprising: A first data converter, arranged at a data transmitting end, for converting the data to be transmitted into transmission data in the form of an optical signal; A second data converter, arranged at the data receiving end, for converting the transmission data in the form of an optical signal into transmission data in the form of an electrical signal; an optical fiber for transmitting the transmission data in the form of an optical signal from the data transmitting end to the second data converter; A third data converter, provided at the data receiving end, for converting the transmission data in the form of electrical signals into transmission data in the form of analog digital signals; The central processing unit is arranged at the data receiving end and is used for receiving the transmission data in the form of analog digital signals.
8. The visible light based communication system according to claim 7, characterized in that: The data transmitting end and the data receiving end are respectively located in two electronic devices which are physically separated from each other.
9. The visible light based communication system according to claim 7, characterized in that: The first data converter is an LED module, and the LED module converts the data to be transmitted into a PWM light signal; and / or, The second data converter is a photoelectric conversion device; and / or, The third data converter is a comparator.
10. The visible light based communication system according to claim 9, characterized in that: It also includes an adjusting resistor for adjusting the comparison voltage of the comparator.