Light projecting and receiving method, device and system of correlation type photoelectric sensor

By establishing a wireless communication connection between the light projector and the light receiver of the convex type photoelectric sensor, clock synchronization between the light projector and the peripheral light projector and the light projection frequency mode allocation are realized, the problem that the light receiver is difficult to distinguish the signal source is solved, crosstalk is reduced, and detection accuracy is improved.

CN119860801APending Publication Date: 2025-04-22OMRON SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510046644.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-10
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In the application scenario of a counter-emission photoelectric sensor, due to the lack of connection between the light projector and the light receiver, it is difficult for the light receiver to distinguish the source of the received signal, resulting in crosstalk problems and affecting the detection accuracy.

Method used

By establishing a wireless communication connection between the light projector and the light receiver, the light projection clock is synchronized with the peripheral light projector, and its own light projection frequency mode is determined. The light receiver synchronizes the light projection timing with the matching light projector, and then performs light projection and light reception operations simultaneously.

Benefits of technology

The detection timing staggered between each light projector is realized, which avoids light projection interference, and synchronous operation of the light projector and the light receiver is achieved through one-to-one matching, which reduces crosstalk and improves detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119860801A_ABST
    Figure CN119860801A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a light projecting and receiving method, device and system of a correlation type photoelectric sensor. The correlation type photoelectric sensor comprises a light projector and a light receiver. The light projection method comprises the following steps: the light projector and the peripheral light projector synchronize a light projection clock; determining an own projection frequency mode; and performing light projection based on the determined light projection frequency mode. The light receiving method comprises the steps that the light receiver searches the light projector matched with the light receiver through the wireless communication module; and synchronizing a light projection time sequence with the matched light projector, determining a light receiving time sequence and a signal enabling time sequence, and starting light receiving processing according to the light receiving time sequence and the signal enabling time sequence. Therefore, the mutual connection of the light projector and the light receiver matched with the light projector is realized, and the light projector and the light receiver are synchronously subjected to light projection and light receiving operations by synchronizing internal time sequences of the light projector and the light receiver, so that crosstalk is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of photoelectric sensors, and in particular to a method, device and system for projecting and receiving light of a through-beam photoelectric sensor. Background Art

[0002] Photoelectric sensors are sensors that use photoelectric elements to complete detection functions. They sense the existence, position, speed and other information of objects by emitting and receiving light signals and converting changes in light intensity into changes in electrical signals. Photoelectric sensors are widely used in automation, industrial control, security, transportation and other fields.

[0003] Through-beam photoelectric sensors are a type of photoelectric sensor, which consists of a transmitter and a receiver. The transmitter emits light signals, and the receiver receives the light signals transmitted along a straight line, thereby determining the product's action. Through-beam photoelectric sensors are highly efficient, accurate, and convenient, and are widely used in various industries and daily applications.

[0004] In practical applications, since the light receiver of the through-beam photoelectric sensor does not know when the light projector will project light, the light receiver needs to continuously receive external signals, that is, the light receiver continuously opens the light receiving window to receive the light projection pulse of unknown occurrence time. When the size of the received signal exceeds the threshold, the light receiver considers the signal to be a valid signal, that is, the light receiver considers the signal to be the signal emitted by the target light projector, but in practical applications, the signal may come from other light projectors, that is, any light projector may allow the light receiver to make a light reception judgment, and then cause mutual interference.

[0005] Therefore, in order to avoid the above problems, the prior art uses filters, optical structures, etc. to physically interfere with the interference signal to reduce the signal amount and reduce the probability of misjudgment.

[0006] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present application and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because they are described in the background technology section of the present application. Summary of the invention

[0007] The inventor found that in the application scenario of through-beam photoelectric sensors, due to the lack of connection between the light projector and the light receiver of the through-beam photoelectric sensor, the light receiver has difficulty distinguishing the source of the received signal. It can only reduce the crosstalk between products by reducing the light spot and the light intensity on the light receiving side. However, this method only reduces the size of the interfered signal and cannot really avoid the occurrence of crosstalk. Therefore, how to reduce the impact of crosstalk and improve the detection accuracy of through-beam photoelectric sensors is a problem that needs to be solved.

[0008] In addition, under existing technical conditions, it is difficult to prevent mutual interference of through-beam sensors because the projector and the receiver are independent products and cannot correspond one to one with each other. Therefore, the receiver cannot know when the projector will emit light or whether the currently received signal is emitted by the corresponding projector. In actual application scenarios, the improvement of automation has led to a large number of sensors being used, and there are more and more signals interfering with each other. Therefore, how to reduce signal interference is a problem that needs to be solved.

[0009] In response to at least one of the above technical problems or other similar problems, embodiments of the present application provide a method, device and system for projecting and receiving light of a through-beam photoelectric sensor.

[0010] According to a first aspect of an embodiment of the present application, a light projection method of a through-beam photoelectric sensor is provided, wherein the through-beam photoelectric sensor comprises a light projector and a light receiver, and the method comprises:

[0011] The light projector synchronizes the light projection clock with the surrounding light projectors;

[0012] The light projector determines its own light projection frequency mode;

[0013] The light projector projects light based on the determined light projection frequency pattern.

[0014] In some embodiments, the method further comprises:

[0015] After being powered on, the light projector searches for the surrounding light projectors through wireless communication technology;

[0016] If the peripheral light projector is not found, determining that the light projector is the host;

[0017] If the peripheral light projector is found, it is determined that the light projector is a slave.

[0018] In some embodiments, the light projector determines its own light projection frequency mode, including:

[0019] If the light projector is a host, the light projector continuously polls to find the surrounding light projectors, and when the surrounding light projectors are found, synchronizes the light projection clock with the surrounding light projectors, allocates light projection frequency modes to the surrounding light projectors, and determines its own light projection frequency mode according to a predetermined configuration;

[0020] If the light projector is a slave, the light projector synchronizes the light projection clock with the host and determines its own light projection frequency mode according to the allocation of the host.

[0021] In some embodiments, the method further comprises:

[0022] The light projector searches for a light receiver that matches it through the wireless communication technology, synchronizes the light projection timing with the matching light receiver, and starts the light projection process.

[0023] In some embodiments, the light projection frequency patterns of the respective light projectors communicating with the same host are different, and the light projection frequency patterns of the respective light projectors are different from the light projection frequency pattern of the light projector serving as the host.

[0024] In some embodiments, the light projection frequency patterns of the light projectors communicating with the same host are staggered in sequence according to the time sequence of connection to the host.

[0025] According to a second aspect of an embodiment of the present application, a light receiving method of a through-beam photoelectric sensor is provided, wherein the through-beam photoelectric sensor comprises a light projector and a light receiver, and the method comprises:

[0026] After being powered on, the light receiver searches for a light projector that matches it through wireless communication technology;

[0027] The light receiver synchronizes the light projection timing with the light projector, determines the light reception timing and the signal enable timing, and starts the light reception process according to the light reception timing and the signal enable timing.

[0028] According to a third aspect of an embodiment of the present application, a light projector is provided, including a control module, a wireless communication module, a computing module, and a light projecting module:

[0029] The wireless communication module synchronizes the light projection clock with the surrounding light projectors through wireless communication;

[0030] The calculation module determines the light projection frequency mode of the light projector itself;

[0031] The light projection module projects light based on the light projection frequency mode determined by the calculation module;

[0032] The control module controls operations of the wireless communication module and the computing module.

[0033] In some embodiments, the control module controls the wireless communication module to search for surrounding light projectors through wireless communication technology after the light projector is powered on;

[0034] If the peripheral light projector is not found, determining that the light projector is the host;

[0035] If the peripheral light projector is found, it is determined that the light projector is a slave.

[0036] In some embodiments, if the light projector is a host, the control module controls the wireless communication module to continuously poll and search for the surrounding light projectors, and when the surrounding light projectors are found, controls the wireless communication module to synchronize the light projection clock with the surrounding light projectors, allocates a light projection frequency mode to the surrounding light projectors, and determines its own light projection frequency mode according to the pre-configuration;

[0037] If the light projector is a slave, the control module controls the wireless communication module to synchronize the light projection clock with the host, and determines its own light projection frequency mode according to the allocation of the host.

[0038] In some embodiments, the control module further controls the wireless communication module to search for a light receiver matching the light projector through wireless communication technology, synchronizes the light projection timing with the light receiver, and the light projection module starts the light projection process.

[0039] In some embodiments, the light projection frequency patterns of the respective light projectors communicating with the same host are different, and the light projection frequency patterns of the respective light projectors are different from the light projection frequency pattern of the light projector serving as the host.

[0040] In some embodiments, the light projection frequency patterns of the light projectors communicating with the same host are staggered in sequence according to the time sequence of connection to the host.

[0041] According to a fourth aspect of an embodiment of the present application, a light receiver is provided, including a control module, a wireless communication module, a computing module and a light receiving module:

[0042] After the light receiver is powered on, the wireless communication module searches for a light projector matching the light receiver through wireless communication, and synchronizes the light projection timing with the light projector;

[0043] The calculation module determines the light receiving timing and the signal enabling timing according to the light projection timing;

[0044] The light receiving module starts light receiving processing according to the light receiving timing sequence and the signal enabling timing sequence;

[0045] The control module controls operations of the wireless communication module and the computing module.

[0046] According to a fifth aspect of an embodiment of the present application, a mutual interference prevention system for through-beam sensors is provided, comprising the light projector described in any one of the above items and the light receiver described in the above items, wherein the light receiver communicates with the light projector matched therewith.

[0047] One of the beneficial effects of the embodiments of the present application is that: on the one hand, the light projector synchronizes the light projection clock with the surrounding light projectors, and then determines its own light projection frequency mode, thereby, the detection timings of the light projectors can be staggered with each other, avoiding mutual light projection interference; on the other hand, the light receiver and the light projector are matched one by one, and the two synchronize the light projection and light receiving clocks, and then synchronize the light projection and light receiving operations, reducing crosstalk.

[0048] With reference to the following description and accompanying drawings, the specific implementation of the embodiment of the present application is disclosed in detail, indicating the way in which the principle of the embodiment of the present application can be adopted. It should be understood that the implementation of the present application is not limited in scope. Within the scope of the spirit and clauses of the attached claims, the implementation of the present application includes many changes, modifications and equivalents. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The elements and features described in one figure or one implementation of the present application embodiment may be combined with the elements and features shown in one or more other figures or implementations. In addition, in the accompanying drawings, similar reference numerals represent corresponding parts in several figures and can be used to indicate corresponding parts used in more than one implementation.

[0050] The included drawings are used to provide a further understanding of the embodiments of the present application, which constitute a part of the specification, are used to illustrate the implementation methods of the present application, and together with the text description, explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other implementation methods can be obtained based on these drawings without creative work. In the drawings:

[0051] Figure 1 is an example diagram of a through-beam photoelectric sensor according to an embodiment of the present application;

[0052] Figure 2 is a schematic diagram of a light projection method of a through-beam photoelectric sensor according to an embodiment of the present application;

[0053] Figure 3 is an example diagram of the light projection frequency of the light projector according to an embodiment of the present application;

[0054] Figure 4 This is an example diagram of a light projector according to an embodiment of the present application having a variable light projection frequency;

[0055] Figure 5 is a schematic diagram of the working process of the light projector of the through-beam type photoelectric sensor according to an embodiment of the present application;

[0056] Figure 6 is a schematic diagram of a light receiving method of a through-beam photoelectric sensor according to an embodiment of the present application;

[0057] Figure 7 is an example diagram of the effectiveness of the light receiving signal of the light receiver according to the embodiment of the present application;

[0058] Figure 8 is another example diagram of the effectiveness of the light receiving signal of the light receiver according to the embodiment of the present application;

[0059] Fig. 9 is a schematic diagram of the working process of the light receiver of the through-beam photoelectric sensor of the embodiment of the present application;

[0060] Fig.10 is a schematic diagram of a light projector according to an embodiment of the present application;

[0061] Fig.11 is a schematic diagram of a light receiver according to an embodiment of the present application;

[0062] Fig.12 It is an example diagram of a mutual anti-interference system of through-beam sensors according to an embodiment of the present application. DETAILED DESCRIPTION

[0063] With reference to the accompanying drawings, the foregoing and other features of the embodiments of the present application will become apparent through the following description. In the description and the accompanying drawings, specific embodiments of the present application are specifically disclosed, which show some embodiments in which the principles of the embodiments of the present application can be adopted. It should be understood that the present application is not limited to the described embodiments. On the contrary, the embodiments of the present application include all modifications, variations and equivalents that fall within the scope of the attached claims.

[0064] In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish different elements in terms of title, but do not indicate the spatial arrangement or temporal order of these elements, etc., and these elements should not be limited by these terms. The term "and / or" includes any one and all combinations of one or more of the associated listed terms. The terms "comprising", "including", "having", etc. refer to the presence of the stated features, elements, components or components, but do not exclude the presence or addition of one or more other features, elements, components or components.

[0065] In the embodiments of the present application, the singular forms "a", "the", etc. include plural forms and should be broadly understood as "a kind" or "a type" rather than being limited to the meaning of "one"; in addition, the term "said" should be understood to include both singular and plural forms, unless the context clearly indicates otherwise. In addition, the term "according to" should be understood as "at least in part according to...", and the term "based on" should be understood as "at least in part based on...", unless the context clearly indicates otherwise.

[0066] Features described and / or shown for one embodiment may be used in one or more other embodiments in the same or similar manner, combined with features in other embodiments, or replace features in other embodiments. The term "includes / comprising" when used herein refers to the presence of a feature, an entirety, a step, or a component, but does not exclude the presence or addition of one or more other features, entireties, steps, or components.

[0067] In the embodiments of the present application, the photoelectric sensor is a sensor that uses various properties of light to detect the presence or absence of an object and changes in the surface state. The photoelectric sensor is mainly composed of a light-emitting light-projecting part and a light-receiving part that receives the light. If the projected light is blocked or reflected due to different detection objects, the light signal reaching the light-receiving part will change. The light-receiving part will detect this change and convert it into an electrical signal for output. Most photoelectric sensors use visible light (mainly red, but green and blue are also used to judge the color) and infrared light. Photoelectric sensors are mainly divided into through-beam photoelectric sensors, regressive reflective photoelectric sensors and diffuse emission photoelectric sensors.

[0068] In the embodiment of the present application, a through-beam photoelectric sensor is taken as an example for description.

[0069] Figure 1 is an example diagram of a through-beam photoelectric sensor according to an embodiment of the present application. Figure 1 As shown, the through-beam photoelectric sensor 1000 includes a light projector 1001 and a light receiver 1002. The light projector 1001 and the light receiver 1002 are arranged opposite to each other so that the light emitted by the light projector 1001 can enter the light receiver 1002. The light receiver 1002 detects the received light signal. When the size of the received light signal meets the conditions, it is determined that the product is in action. The specific determination method can refer to the prior art, and the present application is not limited thereto. Otherwise, the light signal is considered to be an invalid signal.

[0070] The specific implementation of the embodiment of the present application is described below in conjunction with the accompanying drawings. In the following description, if there is no confusion, "if ...", "under ..." and "when ..." have the same meaning and can be used interchangeably.

[0071] Embodiments of the first aspect

[0072] The embodiment of the present application provides a light projection method of a through-beam photoelectric sensor. Figure 2 FIG. 1 is a schematic diagram of a light projection method of a through-beam photoelectric sensor according to an embodiment of the present application, and is described from one side of a light projector of the through-beam photoelectric sensor. Figure 2 As shown, the method includes:

[0073] 201: The light projector synchronizes the light projection clock with the surrounding light projectors;

[0074] 202: The light projector determines its own light projection frequency mode;

[0075] 203: The light projector projects light based on the determined light projection frequency pattern.

[0076] It is worth noting that the above Figure 2 The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, some of the above steps can be executed simultaneously or in a sequential order, the execution order between the operations can be adjusted appropriately, and other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above appended Figure 2 Records of.

[0077] In the embodiment of the present application, the light projector synchronizes the light projection clock with the surrounding light projectors, thereby determining its own light projection frequency mode, and performing the light projection operation based on the determined light projection frequency mode. As a result, the detection timings of the light projectors can be staggered, avoiding light projection interference between each other.

[0078] In some embodiments, the projector can search for surrounding projectors through wireless communication technology after power-on. If no surrounding projectors are found, that is, before the projector is powered on, there are no other projectors within its predetermined range, then the projector determines that the machine is the host; if surrounding projectors are found, that is, before the projector is powered on, there are other projectors within its predetermined range, that is, there are other projectors already serving as hosts, then the projector determines that the machine is a slave.

[0079] In the above embodiments, the wireless communication method includes but is not limited to Bluetooth communication, WIFI communication, etc. For example, a Bluetooth module or a WIFI module is set on the projector to find surrounding projectors through the Bluetooth module or the WIFI module, but the present application is not limited to this.

[0080] For example, the current projector uses the Bluetooth broadcast mode to broadcast signals to the surroundings to find surrounding projectors. If there are surrounding projectors, the surrounding projectors actively scan and receive the broadcast signals of the current projector within the Bluetooth range, and respond based on the broadcast signals of the current projector. The current projector receives the response signal and then determines that there are surrounding projectors. Therefore, the current projector is in slave mode. At the same time, the current projector is connected to the surrounding projectors based on the response signal. If there are no surrounding projectors, then within the preset time, when the current projector does not receive a response signal from the surrounding projectors, the current projector is in host mode.

[0081] In some embodiments, the light projector may actively send a light projection clock to surrounding light projectors to achieve clock synchronization, or the surrounding light projectors may actively send a clock synchronization request to the light projector, but the present application is not limited thereto.

[0082] For example, when a light projector (host) simultaneously performs clock synchronization with multiple peripheral light projectors (slaves), the light projector can actively send its own pre-configured or user-set light projection clock to the peripheral light projectors, and the peripheral light projectors receive and synchronize the light projection clock.

[0083] For another example, when a peripheral light projector (slave) establishes a connection with a light projector (host), the peripheral light projector actively sends a synchronization clock request to the light projector, and the light projector receives the request and sends a light projection clock, and the peripheral light projector synchronizes the clock.

[0084] This ensures that the time consistency between the projector and surrounding projectors is maintained.

[0085] In some embodiments, the light projector may also use wireless communication technology to find a light receiver that matches it, synchronize the light projection timing with the light receiver, and start the light projection process.

[0086] In the above embodiment, the light projector and the light receiver are matched one by one. For example, the light receiver is connected to the designated light projector when leaving the factory. By synchronizing the internal timings of the two (light projection and light receiving clocks), the two can perform light projection and light receiving operations synchronously. As a result, the light projection and light receiving timings of the specific light projector (that is, the light projector that matches the current light receiver) and the light receiver are synchronized, thereby reducing the occurrence of crosstalk.

[0087] For example, if the light projector uses Bluetooth communication or WIFI communication to find the light receiver, it can verify whether the light receiver is a light receiver that matches the light projector based on the MAC address.

[0088] In the above embodiment, the matching relationship between the light projector and the light receiver may be preset.

[0089] For example, a light projector broadcasts a signal to the surrounding area via Bluetooth to find a light receiver that matches it. At this time, the light receiver is in a listening state. When the light receiver listens to the broadcast signal, it detects the MAC address and compares it with its pre-stored MAC address to determine whether the light projector is a light projector that matches it. If the Bluetooth MAC address matches, the light receiver responds to the broadcast signal, otherwise, it ignores the broadcast signal. When the light projector receives the response signal from the light receiver, it connects to the light receiver based on the response signal and synchronizes the internal timing with the light receiver, thereby achieving synchronous light projection and light receiving operations.

[0090] In this way, the specific light projector and light receiver can be connected to each other, so that the light projection and light reception timing between the specific light projector and the light receiver are synchronized, thereby reducing the generation of crosstalk.

[0091] In some embodiments, the light projector determines its own light projection frequency mode. For example, if the light projector is a host, the light projector continuously polls to find surrounding light projectors. When surrounding light projectors are found, the light projector synchronizes the light projection clock with the surrounding light projectors, allocates light projection frequency modes to the surrounding light projectors, and determines its own light projection frequency mode according to a predetermined configuration. If the light projector is a slave, the light projector synchronizes the light projection clock with the host, and determines its own light projection frequency mode according to the host's allocation.

[0092] In some embodiments, the light projection frequency mode of the predetermined configuration of the light projector may be configured at the factory or may be set by the user, but the present application is not limited thereto.

[0093] For example, the light projector as the master uses the light projection frequency mode configured at the factory as its own light projection frequency mode, and determines the light projection frequency mode of the slave connected to it based on the light projection frequency mode, and assigns the light projection frequency mode of the slave to the slave. The light projector as the slave receives the light projection frequency mode assigned by the master, and uses the light projection frequency mode as its own light projection frequency mode.

[0094] In this way, the automatic allocation of light projection frequency patterns can be achieved, thereby improving efficiency.

[0095] In some embodiments, if the light projector is a host, the light projector polls to find the surrounding light projectors. For example, the light projector regularly uses the broadcast mode of Bluetooth to broadcast signals to the surroundings to find surrounding light projectors, but the present application is not limited thereto.

[0096] In some embodiments, when a light projector finds surrounding light projectors, it can synchronize light projection clocks with the surrounding light projectors and assign light projection frequency patterns to the surrounding light projectors.

[0097] In some embodiments, the light projection frequency modes of different light projectors (including light projectors as hosts and light projectors as slaves) are different, that is, the light projection frequency modes of the light projectors communicating with the same host are different, and the light projection frequency modes of the light projectors are different from the light projection frequency mode of the light projector as the host. For example, light projector A as the host communicates with light projector B as a slave and light projector C as a slave. Light projector A assigns light projection frequency modes to light projectors B and C based on its own light projection frequency mode, wherein the light projection frequency modes of light projector A, light projector B and light projector C are different, and the light projection frequency modes of light projector B and light projector C are also different.

[0098] In some embodiments, the light projection frequency patterns of different light projectors (light projectors as slaves) are staggered in sequence according to the time sequence of connection to the host, that is, the light projection frequency patterns of the light projectors communicating with the same host are staggered in sequence according to the time sequence of connection to the host. Among them, the light projectors communicating with the same host can project light in sequence according to the time sequence of connection to the host, or project light in reverse order according to the time sequence of connection to the host, and the present application is not limited to this.

[0099] In some embodiments, the light projection frequency mode includes the initial light projection timing, light projection frequency, etc. of the light projector, but the present application is not limited thereto.

[0100] For example, Figure 3 is an example diagram of the light projection frequency of the light projector according to the embodiment of the present application. Figure 3 As shown, projector 1 is the host, and projectors 2-N are connected to projector 1 in sequence as slaves in chronological order. After the host and the slaves are clock synchronized, based on the projection frequency mode of projector 1 itself, projector 1 allocates projection frequency modes to each slave in sequence according to the time sequence in which the slaves are connected to it, that is, the projection frequency modes of the slaves are determined according to the time sequence in which the slaves are connected to the host, that is, the initial projection timing determined based on the projection frequency mode is staggered in sequence according to the order in which the slaves are connected to the host.

[0101] In some embodiments, the light projection frequency determined by the light projector as the master based on the light projection frequency pattern is variable, and the light projector as the slave determines the light projection frequency based on the light projection frequency pattern assigned by the master, and the light projection frequency is also variable.

[0102] For example, Figure 4 is an example diagram of a light projector of an embodiment of the present application having a variable light projection frequency, such as Figure 4 As shown, after the host and the slave have synchronized the clock, the light projector 1 as the host determines the light projection frequency based on its own light projection frequency mode, and the light projector 1 sequentially allocates the light projection frequency mode to the light projector 2 to the light projector N based on the time sequence of the slaves connecting to the host, wherein the light projection frequency determined by the light projector 2 to the light projector N as the slaves based on the received light projection frequency mode is variable, that is, in one light projection cycle, the light projector as the slave sequentially projects light according to the order in which the slaves are connected to the host, and projects light according to the opposite light projection order in the next light projection cycle. In this way, the interference of external random light can be reduced and the ability to resist mutual interference can be improved.

[0103] Figure 5 FIG. 1 is a schematic diagram of the working process of the light projector of the through-beam photoelectric sensor of the embodiment of the present application. Figure 5As shown, after the light projector is powered on, it searches for surrounding light projectors. If surrounding light projectors are found, it is determined that the local device is a slave device and enters the process of 5011 to 5014. If surrounding light projectors are not found, it is determined that the local device is a master device and enters the process of 5001 to 5006.

[0104] like Figure 5 As shown on the right side of the figure, for the case where the projector is the host, the workflow includes:

[0105] 5001: The light projector is powered on to search for surrounding light projectors. If no surrounding light projectors are found, the light projector is set to host mode.

[0106] 5002: Use the pre-set or user-set light-emitting frequency as the light-emitting frequency for the host;

[0107] 5003: Find the light receiver that matches this machine and communicate with it;

[0108] 5004: synchronize with the receiver clock and send the light-casting frequency;

[0109] 5005: Continuously polling to find new light projectors in the surrounding area;

[0110] 5006, when a new light projector appears, synchronize its clock and assign a light projection frequency to it.

[0111] like Figure 5 As shown on the left side of the figure, for the case where the light projector is a slave, the workflow includes:

[0112] 5011: The light projector is powered on to search for surrounding light projectors. If surrounding light projectors are found, the light projector is set to slave mode.

[0113] 5012: synchronize the light-casting clock with the host and obtain the specified light-casting frequency mode;

[0114] 5013: Find the light receiver that matches this machine and communicate with it;

[0115] 5014: Synchronize with the receiver clock and send the light emission frequency.

[0116] It is worth noting that the above Figure 5 The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, some of the above steps can be executed simultaneously or in a sequential order, the execution order between the operations can be adjusted appropriately, and other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above appended Figure 5 Records of.

[0117] According to the above embodiment, the light projector synchronizes the light projection clock with the surrounding light projectors, and then determines its own light projection frequency mode, thereby, the detection timings of the light projectors can be staggered, thereby avoiding mutual light projection interference.

[0118] Embodiments of the second aspect

[0119] An embodiment of the present application provides a light receiving method for a through-beam photoelectric sensor, which is a processing on the light receiver side corresponding to the method of the embodiment of the first aspect, wherein the contents identical to those of the embodiment of the first aspect will not be described repeatedly.

[0120] Figure 6 FIG. 1 is a schematic diagram of a light receiving method of a through-beam photoelectric sensor according to an embodiment of the present application, and is described from one side of the light receiving device of the through-beam photoelectric sensor. Figure 6 As shown, the method includes:

[0121] 601: After being powered on, the light receiver searches for a matching light emitter through wireless communication technology;

[0122] 602: The light receiver and the matching light emitter synchronize the light emission timing;

[0123] 603: The light receiver determines the light receiving timing and the signal enabling timing;

[0124] 604: The light receiver starts light reception processing according to the light reception timing sequence and the signal enable timing sequence.

[0125] It is worth noting that the above Figure 6 The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, some of the above steps can be executed simultaneously or in a sequential order, the execution order between the operations can be adjusted appropriately, and other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above appended Figure 6 Records of.

[0126] In an embodiment of the present application, the light receiver communicates with the designated light projector through wireless communication to synchronize the light projection timing, and determines the light receiving timing and signal enable timing based on the synchronized light projection timing. The light receiver starts the light receiving processing according to the light receiving timing and the signal enable timing, that is, synchronizes the time when the light receiving signal is valid, and receives the light within the determined light receiving timing, thereby achieving the effect of filtering the signals of other light projectors.

[0127] Figure 7 FIG. 1 is an example diagram of the effectiveness of the light receiving signal of the light receiving device of the embodiment of the present application. Figure 7As shown, photoreceiver 1 is a photoreceiver matched with light projector 1. After photoreceiver 1 synchronizes the light projection timing with light projector 1, photoreceiver 1 determines the light receiving timing and signal enable timing based on the light projection timing, and then receives signals from different light projectors. However, since these signals are not signals received within the specified light receiving timing, photoreceiver 1 considers these signals to be invalid signals, and the signals of light projector 1 received within the specified light receiving timing are valid signals.

[0128] Therefore, based on the synchronized light-casting clock, the light receiver can determine the light-casting timing of the light projector, and then determine its own light-receiving timing, thereby avoiding the problem of misidentifying the light-casting signals of other light projectors and improving the performance of the through-beam photoelectric sensor.

[0129] In some embodiments, since the light projection frequency of the light projector is variable, the light receiving timing of the light receiver changes along with the light projection timing of the light projector.

[0130] Figure 8 FIG. 2 is another example diagram of the effectiveness of the light receiving signal of the light receiving device of the embodiment of the present application. Figure 8 As shown, the photoreceiver 1 is a photoreceiver matched with the projector 1. The light projection frequency determined by the projector 1 based on the light projection frequency mode is variable, and the light projection timing of the projector 1 changes accordingly. Therefore, in order to receive the light projection signal of the projector 1, the light receiving timing of the photoreceiver 1 changes with the light projection timing of the projector 1.

[0131] In some embodiments, the light projector may actively send a light projection clock to the light receiver to achieve clock synchronization, or the light receiver may actively send a clock synchronization request to the light projector, but the present application is not limited thereto.

[0132] For example, when the light projector and the light receiver perform clock synchronization, the light projector can actively send its own pre-configured or user-set light projection clock to the light receiver, and the light receiver receives the light projection clock and synchronizes the clock.

[0133] For another example, when the light receiver establishes a connection with the light projector, the light receiver actively sends a synchronization clock request to the light projector. The light projector receives the request and sends a light projection clock, and the light receiver synchronizes the clock.

[0134] This ensures that the timing between the light receiver and the light projector is consistent.

[0135] In some embodiments, the wireless communication method for the light receiver to find the light projector that matches it can be Bluetooth, WIFI, etc., but the present application is not limited thereto. For example, the light receiver uses Bluetooth or WIFI to find the light projector, which can be based on the MAC address to verify whether the light projector is a light projector that matches the light receiver.

[0136] In some embodiments, the matching relationship between the light receiver and the light projector is preset.

[0137] For example, when the light receiver is in the monitoring state and monitors the broadcast signal from the light projector, the light receiver detects the MAC address of the light projector and compares it with the matching MAC address stored in advance to determine whether the light projector is a light projector that matches it. If the MAC address matches, the light receiver responds to the broadcast signal, otherwise, it ignores the broadcast signal. When the light projector receives the response signal of the light receiver, it connects to the light receiver based on the response signal.

[0138] This enables specific light projectors and light receivers to be connected to each other.

[0139] Fig. 9 FIG. 1 is a schematic diagram of the working process of the light receiver of the through-beam photoelectric sensor of the embodiment of the present application. Fig. 9 As shown, the workflow includes:

[0140] 901: After being powered on, the light receiver searches for a light emitter that matches the receiver and communicates with the light emitter;

[0141] 902: Synchronize the clock with the light projector;

[0142] 903: Obtain the light projection period of the light projector;

[0143] 904: Determine the validity of the data according to the light projection period.

[0144] It is worth noting that the above Fig. 9 The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, some of the above steps can be executed simultaneously or in a sequential order, the execution order between the operations can be adjusted appropriately, and other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above appended Fig. 9 Records of.

[0145] According to the above embodiment, the light receiver and the light projector are matched one by one, and the two synchronize the light projection timing, and then synchronize the light projection and light receiving operations, thereby reducing crosstalk. The embodiment of the present application provides a light projector, the principle of solving the problem of the light projector is the same as the light projector described in the embodiment of the first aspect and the embodiment of the second aspect, and its specific implementation can refer to the embodiment of the first aspect and the embodiment of the second aspect, and the same content will not be repeated.

[0146] Embodiments of the third aspect

[0147] Fig.10 is a schematic diagram of a light projector according to an embodiment of the present application. Fig.10As shown, the light projector includes: a computing module 1001 , a light projection module 1002 , a control module 1003 and a wireless communication module 1004 .

[0148] Among them, the wireless communication module 1004 synchronizes the light projection clock with the surrounding projectors through wireless communication; the calculation module 1001 determines the light projection frequency mode of the projector itself; the light projection module 1002 projects light based on the light projection frequency mode determined by the calculation module; and the control module 1003 controls the operation of the wireless communication module and the calculation module.

[0149] In some embodiments, after the projector is powered on, the control module 1003 controls the wireless communication module 1004 to search for surrounding projectors through wireless communication technology. If no surrounding projectors are found, that is, before the projector is powered on, there are no other projectors within its predetermined range, then the projector determines that the machine is the host; if surrounding projectors are found, that is, before the projector is powered on, there are other projectors within its predetermined range, that is, there are other projectors already as hosts, then the projector determines that the machine is a slave.

[0150] In the above embodiment, the wireless communication module 1004 may be a Bluetooth module, a WIFI module, etc., but the present application is not limited thereto.

[0151] For example, when the wireless communication module 1004 is a Bluetooth module, the control module 1003 of the current light projector controls the wireless communication module 1004 to broadcast signals to the surrounding area using the Bluetooth broadcast mode to find surrounding light projectors. If there are surrounding light projectors, the surrounding light projectors actively scan and receive the broadcast signals of the current light projector within the range of their own wireless communication modules 1004, and respond based on the broadcast signals of the current light projector. The current light projector receives the response signal based on its own wireless communication module 1004, and then the control module 1003 determines that there are surrounding light projectors. Therefore, the control module 1003 sets the current light projector to the slave mode, and at the same time, controls the wireless communication module 1004 of the current light projector to connect with the surrounding light projectors based on the response signal. If there are no surrounding light projectors, then within the preset time, when the current light projector does not receive the response signal from the surrounding light projectors, the control module 1003 sets the current light projector to the host mode.

[0152] In some embodiments, the control module 1003 of the light projector controls the wireless communication module 1004 to actively send the light projection clock to the surrounding light projectors to achieve clock synchronization, or the control module 1003 of the surrounding light projectors controls the wireless communication module 1004 to actively send a clock synchronization request to the light projector. The present application is not limited to this.

[0153] For example, when a light projector (host) simultaneously performs clock synchronization with multiple peripheral light projectors (slaves), the control module 1003 of the light projector controls the wireless communication module 1004 to actively send its own pre-configured or user-set light projection clock to the peripheral light projectors. The peripheral light projectors receive the light projection clock based on their own wireless communication modules 1004 and synchronize the light projection clock under the control of their own control module 1003.

[0154] For another example, when a peripheral light projector (slave) establishes a connection with a light projector (host), the control module 1003 of the peripheral light projector controls the wireless communication module 1004 to actively send a synchronization clock request to the light projector. The light projector receives the request based on its own wireless communication module 1004 and sends the light projection clock under the control of its own control module 1003, and the peripheral light projector synchronizes the clock.

[0155] This ensures that the time consistency between the projector and surrounding projectors is maintained.

[0156] In some embodiments, the control module 1003 controls the wireless communication module 1004 to find a light receiver matching the light projector through wireless communication technology, synchronizes the light projection timing with the light receiver, and the light projection module 1002 starts the light projection process.

[0157] In the above embodiment, the light projector and the light receiver are matched one by one. For example, the light receiver is connected to the designated light projector when leaving the factory. By synchronizing the internal timings of the two (light projection and light receiving clocks), the two can perform light projection and light receiving operations synchronously. As a result, the light projection and light receiving timings of the specific light projector (that is, the light projector that matches the current light receiver) and the light receiver are synchronized, thereby reducing the occurrence of crosstalk.

[0158] For example, if the wireless communication module 1004 of the light projector is a Bluetooth module, that is, the light projector uses Bluetooth communication to find the light receiver, then it can verify whether the light receiver is a light receiver that matches the light projector based on the MAC address. For another example, if the wireless communication module 1004 of the light projector is a WIFI module, that is, the light projector uses WIFI to find the light receiver, then it can verify whether the light receiver is a light receiver that matches the light projector based on the MAC address.

[0159] In the above embodiment, the matching relationship between the light projector and the light receiver may be preset.

[0160] For example, when the wireless communication module 1004 of the light projector is a Bluetooth module, the light projector broadcasts signals to the surrounding area via Bluetooth to find a light receiver that matches it, and the light receiver is in a listening state at this time. When the light receiver listens to the broadcast signal, it detects the MAC address of the wireless communication module 1004 of the light projector, and compares it with its own pre-stored MAC address to determine whether the light projector is a light projector that matches it. If the MAC address matches, the light receiver responds to the broadcast signal, otherwise, the broadcast signal is ignored. When the wireless communication module 1004 of the light projector receives the response signal of the light receiver, the control module 1003 of the light projector controls the wireless communication module 1004 to connect with the light receiver based on the response signal, and synchronizes the internal timing with the light receiver, thereby realizing the synchronization of light projection and light receiving operations.

[0161] In this way, the specific light projector and light receiver can be connected to each other, so that the light projection and light reception timing between the specific light projector and the light receiver are synchronized, thereby reducing the generation of crosstalk.

[0162] In some embodiments, the computing module 1001 of the light projector determines the light projection frequency mode of the light projector itself. For example, if the light projector is a host, the control module 1003 of the light projector controls the wireless communication module 1004 to continuously poll for surrounding light projectors. When surrounding light projectors are found, the control module 1003 controls the wireless communication module 1004 to synchronize the light projection clock with the surrounding light projectors, and determines the light projection frequency mode corresponding to the surrounding light projectors based on the computing module 1001, and assigns it to the surrounding light projectors. The control module 1003 determines the light projection frequency mode of the light projector itself according to a predetermined configuration; if the light projector is a slave, the control module 1003 of the light projector controls the wireless communication module 1004 to synchronize the light projection clock with the host, and determines its own light projection frequency mode according to the host's assignment.

[0163] In some embodiments, the light projection frequency mode of the predetermined configuration of the light projector may be configured at the factory or may be set by the user, but the present application is not limited thereto.

[0164] In this way, the automatic allocation of light projection frequency patterns can be achieved, thereby improving efficiency.

[0165] In some embodiments, if the light projector is a host, the control module 1003 of the light projector controls the wireless communication module 1004 to poll and find the surrounding light projectors. For example, when the wireless communication module 1004 is a Bluetooth module, the control module 1003 of the light projector periodically uses the broadcast mode of Bluetooth to broadcast signals to the surrounding to find surrounding light projectors, but the present application is not limited thereto.

[0166] In some embodiments, when the wireless communication module 1004 of the projector receives a response signal from a surrounding light projector, its control module 1003 controls the wireless communication module 1004 to synchronize the light projection clock with the surrounding light projectors, and distributes the light projection frequency pattern determined by the calculation module 1001 to the surrounding light projectors through the wireless communication module 1004.

[0167] In some embodiments, the light projection frequency patterns of different light projectors (including light projectors acting as hosts and light projectors acting as slaves) are different, that is, the light projection frequency patterns of each light projector communicating with the same host are different, and the light projection frequency pattern of each light projector is different from the light projection frequency pattern of the light projector acting as the host.

[0168] In some embodiments, the light projection frequency mode includes an initial light projection timing, a light projection frequency, etc., but the present application is not limited thereto.

[0169] For example, projector A, which is a host, communicates with projector B, which is a slave, and projector C, which is a slave, through a wireless communication module. The calculation module of projector A determines the light projection frequency based on its own light projection frequency mode, and determines the light projection frequency modes of projectors B and C. Projector A allocates the light projection frequency mode to projectors B and C through the wireless communication module. Projectors B and C accept the light projection frequency mode through the wireless communication module, and determine their own light projection frequencies based on the calculation module, wherein the light projection frequencies of projectors B and C are different, and the light projection frequencies of projectors B and C are also different from the light projection frequency of projector A.

[0170] In some embodiments, the light projection frequency patterns of different light projectors (light projectors as slaves) are staggered in sequence according to the time sequence of connection to the host, that is, the light projection frequency patterns of the light projectors communicating with the same host are staggered in sequence according to the time sequence of connection to the host. Among them, the light projectors communicating with the same host can project light in sequence according to the time sequence of connection to the host, or project light in reverse order according to the time sequence of connection to the host, and the present application is not limited to this.

[0171] For example, Figure 3 As shown, projector 1 is the host, and projectors 2-N are connected to projector 1 in sequence as slaves in chronological order. After the clocks of the host and the slaves are synchronized, the calculation module 1001 of projector 1 determines its own light projection frequency based on the light projection frequency mode of projector 1 itself, and determines the light projection frequency mode of each slave according to the time sequence in which the slaves are connected to it, that is, the calculation module 1001 of projector 1 determines the light projection frequency mode of the slaves according to the time sequence in which the slaves are connected to the host, that is, the calculation module 1001 of projector 1 staggers the initial light projection timing of the light projection frequency mode in sequence according to the order in which the slaves are connected to the host.

[0172] In some embodiments, the light projection frequency determined by the light projector as the master based on the light projection frequency pattern is variable, and the light projector as the slave determines the light projection frequency based on the light projection frequency pattern assigned by the master, and the light projection frequency is also variable.

[0173] For example, Figure 4 As shown, after the host and the slave have performed clock synchronization, the calculation module 1001 of the light projector 1 as the host determines the light projection frequency based on its own light projection frequency pattern, and the light projection frequency is variable. The control module 1003 controls the calculation module 1001 to allocate the light projection frequency pattern to the light projectors 2 to N as slaves based on the time sequence of connection to the host, wherein the light projection frequency patterns received by the slaves are different, that is, the light projection frequencies determined by the calculation modules 1001 of the light projectors 2 to N as slaves based on the received light projection frequency patterns are different, and the light projection frequencies are variable.

[0174] In this way, the interference of external stray light can be reduced and the ability to resist mutual interference can be improved.

[0175] Embodiments of the fourth aspect

[0176] The embodiment of the present application provides a light receiver, the principle of solving the problem of the light receiver is similar to the light receiver described in the embodiment of the first aspect and the embodiment of the second aspect. The specific implementation thereof can refer to the embodiment of the first aspect and the embodiment of the second aspect, and the same contents will not be repeated.

[0177] Fig.11 is a schematic diagram of a light receiver according to an embodiment of the present application. Fig.11 As shown, the light receiver includes: a calculation module 1101 , a light receiving module 1102 , a control module 1103 and a wireless communication module 1104 .

[0178] Among them, the wireless communication module 1104 searches for a light projector that matches the light receiver through wireless communication after the light receiver is powered on, and synchronizes the light projection timing with the light projector; the calculation module 1101 determines the light receiving timing and the signal enable timing according to the light projection timing; the light receiving module 1102 starts the light receiving processing according to the light receiving timing and the signal enable timing; the control module 1103 controls the operation of the wireless communication module 1104 and the calculation module 1101.

[0179] In an embodiment of the present application, the light receiver communicates with the designated light projector through the wireless communication module 1104 to synchronize the light projection timing. Based on the synchronized light projection timing, the calculation module 1101 determines the light receiving timing and the signal enable timing. The light receiving module 1102 starts the light receiving processing according to the light receiving timing and the signal enable timing, that is, based on the effective time of the light receiving signal calculated by the calculation module 1101, the light projection is received within the determined light receiving timing, thereby achieving the effect of filtering the signals of other light projectors.

[0180] like Figure 7 As shown, light receiver 1 is a light receiver matched with light projector 1. After light receiver 1 synchronizes the light projection timing with light projector 1, light receiver 1 determines the light reception timing and signal enable timing based on calculation module 1101, and receives signals from different light projectors through wireless communication module 1104. However, since these signals are not signals received within the specified light reception timing, the control module 1103 of light receiver 1 considers these signals to be invalid signals, and the signals of light projector 1 received within the specified light reception timing are valid signals.

[0181] Therefore, based on the synchronized light-casting clock, the light receiver can determine the light-casting timing of the light projector, and then determine its own light-receiving timing, thereby avoiding the problem of misidentifying the light-casting signals of other light projectors and improving the performance of the through-beam photoelectric sensor.

[0182] In some embodiments, since the light projection frequency of the light projector is variable, the light receiving timing of the light receiver changes along with the light projection timing of the light projector.

[0183] like Figure 8 As shown, the light receiver 1 is matched with the light projector 1, the light projection frequency of the light projector 1 is variable, and its light projection timing also changes accordingly, so the light receiving timing calculated by the calculation module 1101 of the light receiver 1 based on the light projection timing is also variable.

[0184] In some embodiments, the wireless communication module 1004 of the light projector may actively send a light projection clock to the light receiver to achieve clock synchronization, or the wireless communication module 1104 of the light receiver may actively send a clock synchronization request to the light projector, but the present application is not limited thereto.

[0185] For example, when the light projector and the light receiver are performing clock synchronization, the wireless communication module 1004 of the light projector can actively send its own pre-configured or user-set light projection clock to the light receiver, and the wireless communication module 1104 of the light receiver receives the light projection clock and synchronizes the clock.

[0186] For another example, when the light receiver establishes a connection with the light projector, the wireless communication module 1104 of the light receiver actively sends a synchronization clock request to the light projector, and the wireless communication module 1004 of the light projector receives the request and sends the light projection clock, and the light receiver synchronizes the clock.

[0187] This ensures that the timing between the light receiver and the light projector is consistent.

[0188] In some embodiments, the wireless communication module 1104 may be a Bluetooth module, a WIFI module, etc., but the present application is not limited thereto. If the wireless communication module 1104 of the light receiver is a Bluetooth module, the light receiver searches for the light projector by broadcasting based on the wireless communication module 1104, and then verifies whether the light projector is a light projector that matches the light receiver based on the MAC address. If the wireless communication module 1104 of the light receiver is a WIFI module, the light receiver searches for the light projector by WIFI based on the wireless communication module 1104, and then verifies whether the light projector is a light projector that matches the light receiver based on the MAC address.

[0189] In some embodiments, the matching relationship between the light receiver and the light projector is preset.

[0190] For example, when the wireless communication module 1104 of the light receiver is in a listening state and listens to a broadcast signal from a light projector, the control module 1103 of the light receiver detects the MAC address of the wireless communication module 1004 of the light projector and compares it with its own pre-stored MAC address to determine whether the light projector is a light projector that matches it. If the MAC addresses match, the light receiver responds to the broadcast signal, otherwise, the broadcast signal is ignored. When the wireless communication module 1004 of the light projector receives the response signal of the light receiver, it connects to the light receiver based on the response signal.

[0191] This enables specific light projectors and light receivers to be connected to each other.

[0192] Embodiments of the fifth aspect

[0193] The embodiment of the present application further provides a mutual interference prevention system for through-beam sensors, the system comprising the light projector 1001 described in the embodiment of the third aspect and the light receiver 1002 described in the embodiment of the fourth aspect.

[0194] Fig.12 is an example diagram of a mutual anti-interference system of a beam-type sensor according to an embodiment of the present application. Fig.12 As shown, the system includes a light projector 1 as a master and a light receiver 1 matched therewith, and a light projector N as a slave connected to the light projector 1 and a light receiver N matched therewith.

[0195] For light projector 1:

[0196] The control module of the projector 1 instructs the Bluetooth communication module to search for surrounding projectors. If no surrounding projectors are found, the control module sets the projector 1 to the host mode; the calculation module uses the pre-set or user-set light projection frequency mode as the light projection frequency mode of the projector 1, and instructs the light projection module to operate at the light projection frequency specified by the light projection frequency mode; the control module instructs the Bluetooth communication module to search for the light receiver 1 that matches the projector 1; the projector 1 synchronizes the light projection timing with the light receiver 1 through the Bluetooth communication module, and starts the light projection processing based on the light projection module; the control module instructs the Bluetooth communication module to search for new surrounding projectors in a polling manner; after finding the projector N, the Bluetooth communication module sends a light projection clock to the projector N, and allocates a light projection frequency mode to the projector N based on the calculation module.

[0197] For projector N:

[0198] The control module of projector N instructs the Bluetooth communication module to search for surrounding projectors. When projector 1 is found, the control module sets projector N to slave mode; projector N obtains the light projection clock based on the Bluetooth communication module, and synchronizes the light projection clock under the control of the control module; the Bluetooth communication module obtains the light projection frequency pattern from the host; the control module controls the calculation module to calculate the light projection timing based on the light projection frequency pattern, and the calculation module instructs the light projection module to work with the light projection timing.

[0199] For Receiver 1 or Receiver N:

[0200] The control module of the light receiver instructs the Bluetooth communication module to find a paired specific light projector, that is, light receiver 1 searches for light projector 1, and light receiver N searches for light projector N; the control module of light receiver 1 determines that the MAC address of light projector 1 is a pre-stored MAC address, then light projector 1 is a specific light projector that matches light receiver 1, and similarly, light projector N is a specific light projector that matches light receiver N; the Bluetooth communication module of the light receiver synchronizes the light projection timing with the specific light projector; the calculation module calculates the light reception timing of the light receiving module, and instructs the light receiving module to work based on the calculation result.

[0201] The above embodiments are merely exemplary of the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may be made based on the above embodiments. For example, the above embodiments may be used alone, or one or more of the above embodiments may be combined.

[0202] For simplicity, the above figures only illustrate the connection relationship or signal direction between various components or modules, but it should be clear to those skilled in the art that various related technologies such as bus connection can be used. The above components or modules can be implemented by hardware facilities such as processors and memories; the embodiments of the present application are not limited to this.

[0203] An embodiment of the present application also provides a computer-readable program or program product, wherein when the program is executed in an electronic device, the program enables a computer to execute the light projection and receiving method of a through-beam photoelectric sensor as described in the previous embodiment in the electronic device.

[0204] An embodiment of the present application further provides a storage medium storing a computer-readable program, wherein the computer-readable program enables a computer to execute the light projection and receiving method of the through-beam photoelectric sensor as described in the previous embodiment in an electronic device.

[0205] The above devices and methods of the present application can be implemented by hardware, or by hardware combined with software. The present application relates to such a computer-readable program, which, when executed by a logic component, enables the logic component to implement the above-mentioned devices or components, or enables the logic component to implement the various methods or steps described above. The present application also relates to a storage medium for storing the above program, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, etc.

[0206] The method / device described in conjunction with the embodiments of the present application may be directly embodied as hardware, a software module executed by a processor, or a combination of the two. For example, one or more of the functional block diagrams shown in the figure and / or one or more combinations of the functional block diagrams may correspond to various software modules of the computer program flow or to various hardware modules. These software modules may correspond to the various steps shown in the figure, respectively. These hardware modules may be implemented by solidifying these software modules, for example, using a field programmable gate array (FPGA).

[0207] The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The software module may be stored in a memory of a mobile terminal or in a memory card that can be inserted into the mobile terminal. For example, if a device (such as a mobile terminal) uses a large-capacity MEGA-SIM card or a large-capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large-capacity flash memory device.

[0208] For one or more of the functional blocks described in the drawings and / or one or more combinations of functional blocks, it can be implemented as a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof for performing the functions described in the present application. For one or more of the functional blocks described in the drawings and / or one or more combinations of functional blocks, it can also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in communication with a DSP, or any other such configuration.

[0209] The present application is described above in conjunction with specific implementation methods, but it should be clear to those skilled in the art that these descriptions are exemplary and are not intended to limit the scope of protection of the present application. Those skilled in the art can make various modifications and variations to the present application based on the principles of the present application, and these modifications and variations are also within the scope of the present application.

Claims

1. A method for projecting light of a through-beam photoelectric sensor, the through-beam photoelectric sensor comprising a light projector and a light receiver, characterized in that: The method comprises: The light projector synchronizes the light projection clock with the surrounding light projectors; The light projector determines its own light projection frequency mode; The light projector projects light based on the determined light projection frequency pattern.

2. The method according to claim 1, characterized in that The method further comprises: After being powered on, the light projector searches for the surrounding light projectors through wireless communication technology; If the peripheral light projector is not found, determining that the light projector is the host; If the peripheral light projector is found, it is determined that the light projector is a slave.

3. The method according to claim 1, characterized in that The light projector determines its own light projection frequency mode, including: If the light projector is a host, the light projector continuously polls to find the surrounding light projectors, and when the surrounding light projectors are found, synchronizes the light projection clock with the surrounding light projectors, allocates light projection frequency modes to the surrounding light projectors, and determines its own light projection frequency mode according to a predetermined configuration; If the light projector is a slave, the light projector synchronizes the light projection clock with the host and determines its own light projection frequency mode according to the allocation of the host.

4. The method according to claim 1, characterized in that The method further comprises: The light projector searches for a light receiver that matches it through the wireless communication technology, synchronizes the light projection timing with the matching light receiver, and starts the light projection process.

5. The method according to claim 1, characterized in that The light projection frequency patterns of the respective light projectors communicating with the same host are different, and the light projection frequency patterns of the respective light projectors are different from the light projection frequency pattern of the light projector serving as the host.

6. The method according to claim 5, characterized in that The light projection frequency patterns of the light projectors communicating with the same host are staggered in sequence according to the time sequence of connection to the host.

7. A method for receiving light by a through-beam photoelectric sensor, the through-beam photoelectric sensor comprising a light projector and a light receiver, characterized in that: The method comprises: After being powered on, the light receiver searches for a light projector that matches it through wireless communication technology; The light receiver synchronizes the light projection timing with the light projector, determines the light reception timing and the signal enable timing, and starts the light reception process according to the light reception timing and the signal enable timing.

8. A light projector, comprising a control module, a wireless communication module, a computing module and a light projecting module, characterized in that: The wireless communication module synchronizes the light projection clock with the surrounding light projectors through wireless communication; The calculation module determines the light projection frequency mode of the light projector itself; The light projection module projects light based on the light projection frequency mode determined by the calculation module; The control module controls operations of the wireless communication module and the computing module.

9. The light projector according to claim 8, characterized in that: The control module controls the wireless communication module to find surrounding light projectors through wireless communication technology after the light projector is powered on; If the peripheral light projector is not found, determining that the light projector is the host; If the peripheral light projector is found, it is determined that the light projector is a slave.

10. The light projector according to claim 8, characterized in that: If the light projector is a host, the control module controls the wireless communication module to continuously poll and search for the surrounding light projectors, and when the surrounding light projectors are found, controls the wireless communication module to synchronize the light projection clock with the surrounding light projectors, allocates a light projection frequency mode to the surrounding light projectors, and determines its own light projection frequency mode according to the pre-configuration; If the light projector is a slave, the control module controls the wireless communication module to synchronize the light projection clock with the host, and determines its own light projection frequency mode according to the allocation of the host.

11. The light projector according to claim 8, characterized in that: The control module also controls the wireless communication module to find a light receiver matching the light projector through wireless communication technology, synchronize the light projection timing with the light receiver, and the light projection module starts the light projection process.

12. The light projector according to claim 8, characterized in that The light projection frequency patterns of the respective light projectors communicating with the same host are different, and the light projection frequency patterns of the respective light projectors are different from the light projection frequency pattern of the light projector serving as the host.

13. The light projector according to claim 12, characterized in that: The light projection frequency patterns of the light projectors communicating with the same host are staggered in sequence according to the time sequence of connection to the host.

14. A light receiver, comprising a control module, a wireless communication module, a computing module and a light receiving module, characterized in that: After the light receiver is powered on, the wireless communication module searches for a light projector matching the light receiver through wireless communication, and synchronizes the light projection timing with the light projector; The calculation module determines the light receiving timing and the signal enabling timing according to the light projection timing; The light receiving module starts light receiving processing according to the light receiving timing sequence and the signal enabling timing sequence; The control module controls operations of the wireless communication module and the computing module.

15. A mutual interference prevention system for through-beam sensors, characterized in that: The system comprises the light projector according to any one of claims 8 to 12 and the light receiver according to claim 14, wherein the light receiver communicates with the light projector matched therewith.