Sensor anti-interference method, sensor anti-interference module, sensor and storage medium

文档序号:195459 发布日期:2021-11-02 浏览:30次 中文

阅读说明:本技术 传感器抗干扰方法、模组、传感器及存储介质 (Sensor anti-interference method, sensor anti-interference module, sensor and storage medium ) 是由 谭鸿彪 李绍斌 宋德超 唐杰 李喜林 覃广志 于 2021-07-23 设计创作,主要内容包括:本发明实施例提供了一种传感器抗干扰方法、模组、传感器及存储介质,所述方法包括:对传感器发出的原始电磁波进行转换,转换成所述原始电磁波对应的传感器原始电信号;对所述传感器原始电信号进行调制,生成所述传感器原始电信号对应的调制信号,并发出所述调制信号;对所述调制信号传输遇到障碍物所返回的回波信号进行解调,生成所述回波信号对应的传感器目标电信号;对所述传感器目标电信号进行还原,还原成所述传感器目标电信号对应的目标电磁波。如此通过将电磁波转换成电信号,来进行调制、解调,以此来减少不同传感器对彼此的干扰,甚至是减少同类传感器之间对彼此的干扰,以及噪声的干扰。(The embodiment of the invention provides a sensor anti-interference method, a sensor anti-interference module, a sensor and a storage medium, wherein the method comprises the following steps: converting original electromagnetic waves emitted by a sensor into original sensor electrical signals corresponding to the original electromagnetic waves; modulating the original electric signal of the sensor to generate a modulation signal corresponding to the original electric signal of the sensor, and sending out the modulation signal; demodulating an echo signal returned by the modulated signal transmission when encountering an obstacle to generate a sensor target electric signal corresponding to the echo signal; and restoring the sensor target electric signal to obtain a target electromagnetic wave corresponding to the sensor target electric signal. Therefore, the electromagnetic wave is converted into the electric signal to carry out modulation and demodulation, so that the interference of different sensors to each other is reduced, and even the interference of the sensors of the same type to each other and the interference of noise are reduced.)

1. A method for resisting interference from a sensor, the method comprising:

converting original electromagnetic waves emitted by a sensor into original sensor electrical signals corresponding to the original electromagnetic waves;

modulating the original electric signal of the sensor to generate a modulation signal corresponding to the original electric signal of the sensor, and sending out the modulation signal;

demodulating an echo signal returned by the modulated signal transmission when encountering an obstacle to generate a sensor target electric signal corresponding to the echo signal;

and restoring the sensor target electric signal to obtain a target electromagnetic wave corresponding to the sensor target electric signal.

2. The method of claim 1, wherein the converting the original electromagnetic wave emitted by the sensor into the sensor original electrical signal corresponding to the original electromagnetic wave comprises:

determining the number of sensors in the area where the sensors are located, and judging whether the number of the sensors exceeds a preset number threshold value;

and if the number of the sensors exceeds the preset number threshold, converting the original electromagnetic waves sent by the sensors into the original sensor electrical signals corresponding to the original electromagnetic waves.

3. The method of claim 2, wherein said determining the number of sensors in the area in which the sensor is located comprises:

and searching the sensor type corresponding to the sensor, and determining the number of the sensors corresponding to the sensor type in the area where the sensor is located.

4. The method according to any one of claims 1 to 3, wherein the modulating the raw sensor electrical signal to generate a modulated signal corresponding to the raw sensor electrical signal comprises:

acquiring a sensor identifier of the sensor, encrypting the original electric signal of the sensor by using the sensor identifier, and generating a first modulation signal corresponding to the original electric signal of the sensor;

modulating the first modulation signal by using a radio frequency signal to generate a second modulation signal corresponding to the first modulation signal;

the demodulating the echo signal returned by the modulated signal transmission when encountering the obstacle to generate the sensor target electric signal corresponding to the echo signal includes:

demodulating an echo signal returned by the second modulation signal transmission when encountering an obstacle, and generating a third modulation signal corresponding to the echo signal;

and decrypting the third modulation signal by using the sensor identifier to generate a sensor target electric signal corresponding to the third modulation signal.

5. The method of claim 4, wherein the sensor identification comprises a sensor MAC address.

6. The method of claim 4, wherein demodulating an echo signal returned by the second modulated signal transmission encountering an obstacle to generate a third modulated signal corresponding to the echo signal comprises:

and demodulating an echo signal returned by the second modulation signal transmission encountering the obstacle by using a coherent demodulation mode to generate a third modulation signal corresponding to the echo signal.

7. The method of claim 1, wherein the converting the original electromagnetic wave emitted by the sensor into the sensor original electrical signal corresponding to the original electromagnetic wave comprises:

converting original electromagnetic waves emitted by a sensor through an encoder into original sensor electrical signals corresponding to the original electromagnetic waves;

the method for restoring the sensor target electric signal into the target electromagnetic wave corresponding to the sensor target electric signal comprises the following steps:

and restoring the sensor target electric signal through a decoder to obtain a target electromagnetic wave corresponding to the sensor target electric signal.

8. The utility model provides an anti-interference module of sensor which characterized in that, the module includes:

the electromagnetic wave conversion module is used for converting original electromagnetic waves emitted by the sensor into original sensor electrical signals corresponding to the original electromagnetic waves;

the electric signal modulation module is used for modulating the original electric signal of the sensor, generating a modulation signal corresponding to the original electric signal of the sensor and sending out the modulation signal;

the electric signal demodulation module is used for demodulating an echo signal returned by the modulated signal transmission when encountering an obstacle to generate a sensor target electric signal corresponding to the echo signal;

and the electromagnetic wave reduction module is used for reducing the sensor target electric signal to obtain a target electromagnetic wave corresponding to the sensor target electric signal.

9. A sensor is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;

a memory for storing a computer program;

a processor for implementing the method steps of any one of claims 1 to 7 when executing a program stored on a memory.

10. A storage medium on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.

Technical Field

The embodiment of the invention relates to the technical field of sensors, in particular to a sensor anti-interference method and a sensor anti-interference module.

Background

In the current internet era of rapid development, various types of sensors are increasingly being used in a variety of scenes. For example, a temperature sensor for detecting a human body, and a humidity sensor for detecting air humidity. Generally, the sensors have the same frequency, different sensors have certain interference effect on each other in a dense area, and the interference on each other is more serious among the sensors of the same type. Therefore, reducing mutual interference between sensors becomes a problem to be solved urgently.

Disclosure of Invention

In order to solve the technical problems that the common sensors have basically the same frequency, different sensors in a dense area have certain interference effect on each other, and the interference between the sensors of the same type is more serious, the embodiment of the invention provides an anti-interference method, a module, a sensor and a storage medium for the sensor.

In a first aspect of the embodiments of the present invention, there is provided an anti-interference method for a sensor, where the method includes:

converting original electromagnetic waves emitted by a sensor into original sensor electrical signals corresponding to the original electromagnetic waves;

modulating the original electric signal of the sensor to generate a modulation signal corresponding to the original electric signal of the sensor, and sending out the modulation signal;

demodulating an echo signal returned by the modulated signal transmission when encountering an obstacle to generate a sensor target electric signal corresponding to the echo signal;

and restoring the sensor target electric signal to obtain a target electromagnetic wave corresponding to the sensor target electric signal.

In an optional embodiment, the converting the original electromagnetic wave emitted by the sensor into a sensor original electrical signal corresponding to the original electromagnetic wave includes:

determining the number of sensors in the area where the sensors are located, and judging whether the number of the sensors exceeds a preset number threshold value;

and if the number of the sensors exceeds the preset number threshold, converting the original electromagnetic waves sent by the sensors into the original sensor electrical signals corresponding to the original electromagnetic waves.

In an alternative embodiment, the determining the number of sensors in the area where the sensor is located includes:

and searching the sensor type corresponding to the sensor, and determining the number of the sensors corresponding to the sensor type in the area where the sensor is located.

In an optional embodiment, the modulating the raw sensor electrical signal to generate a modulated signal corresponding to the raw sensor electrical signal includes:

acquiring a sensor identifier of the sensor, encrypting the original electric signal of the sensor by using the sensor identifier, and generating a first modulation signal corresponding to the original electric signal of the sensor;

modulating the first modulation signal by using a radio frequency signal to generate a second modulation signal corresponding to the first modulation signal;

the demodulating the echo signal returned by the modulated signal transmission when encountering the obstacle to generate the sensor target electric signal corresponding to the echo signal includes:

demodulating an echo signal returned by the second modulation signal transmission when encountering an obstacle, and generating a third modulation signal corresponding to the echo signal;

and decrypting the third modulation signal by using the sensor identifier to generate a sensor target electric signal corresponding to the third modulation signal.

In an alternative embodiment, the sensor identification comprises a sensor MAC address.

In an optional embodiment, the demodulating an echo signal returned by the second modulated signal transmission encountering an obstacle to generate a third modulated signal corresponding to the echo signal includes:

and demodulating an echo signal returned by the second modulation signal transmission encountering the obstacle by using a coherent demodulation mode to generate a third modulation signal corresponding to the echo signal.

In an optional embodiment, the converting the original electromagnetic wave emitted by the sensor into a sensor original electrical signal corresponding to the original electromagnetic wave includes:

converting original electromagnetic waves emitted by a sensor through an encoder into original sensor electrical signals corresponding to the original electromagnetic waves;

the method for restoring the sensor target electric signal into the target electromagnetic wave corresponding to the sensor target electric signal comprises the following steps:

and restoring the sensor target electric signal through a decoder to obtain a target electromagnetic wave corresponding to the sensor target electric signal.

In a second aspect of the embodiments of the present invention, there is provided a sensor anti-interference module, including:

the electromagnetic wave conversion module is used for converting original electromagnetic waves emitted by the sensor into original sensor electrical signals corresponding to the original electromagnetic waves;

the electric signal modulation module is used for modulating the original electric signal of the sensor, generating a modulation signal corresponding to the original electric signal of the sensor and sending out the modulation signal;

the electric signal demodulation module is used for demodulating an echo signal returned by the modulated signal transmission when encountering an obstacle to generate a sensor target electric signal corresponding to the echo signal;

and the electromagnetic wave reduction module is used for reducing the sensor target electric signal to obtain a target electromagnetic wave corresponding to the sensor target electric signal.

In a third aspect of the embodiments of the present invention, there is further provided a sensor, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;

a memory for storing a computer program;

and a processor, configured to implement the sensor interference rejection method according to the first aspect when executing the program stored in the memory.

In a fourth aspect of the embodiments of the present invention, there is also provided a storage medium, where instructions are stored, and when the storage medium is executed on a computer, the storage medium causes the computer to execute the sensor interference rejection method described in the first aspect.

In a fifth aspect of the embodiments of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, cause the computer to execute the sensor immunity method described in the first aspect above.

According to the technical scheme provided by the embodiment of the invention, original electromagnetic waves emitted by the sensor are converted into original sensor electrical signals corresponding to the original electromagnetic waves, the original sensor electrical signals are modulated to generate modulated signals corresponding to the original sensor electrical signals, the modulated signals are emitted, echo signals returned when the modulated signals meet obstacles in transmission are demodulated to generate sensor target electrical signals corresponding to the echo signals, and the sensor target electrical signals are restored to be target electromagnetic waves corresponding to the sensor target electrical signals. Therefore, the electromagnetic wave is converted into the electric signal to carry out modulation and demodulation, so that the interference of different sensors to each other is reduced, and even the interference of the sensors of the same type to each other and the interference of noise are reduced.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.

Fig. 1 is a schematic flow chart illustrating an implementation of a sensor anti-interference method according to an embodiment of the present invention;

fig. 2 is a schematic flow chart illustrating an implementation of converting an original electromagnetic wave into an original electrical signal according to an embodiment of the present invention;

FIG. 3 is a schematic flow chart illustrating another implementation of a sensor anti-interference method according to an embodiment of the present invention;

FIG. 4 is a schematic flow chart illustrating another implementation of a sensor anti-interference method according to an embodiment of the present invention;

fig. 5 is a schematic structural diagram of a sensor anti-interference module according to an embodiment of the present invention;

fig. 6 is a schematic structural diagram of a sensor shown in the embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

As shown in fig. 1, an implementation flow diagram of an anti-interference method for a sensor provided in an embodiment of the present invention is shown, where the method is applied to a sensor, and specifically includes the following steps:

s101, converting original electromagnetic waves emitted by a sensor into original sensor electrical signals corresponding to the original electromagnetic waves.

For a sensor, it can emit electromagnetic waves, and the electromagnetic waves initially emitted by the sensor are referred to herein as raw electromagnetic waves. In the embodiment of the invention, the original electromagnetic wave emitted by the sensor is converted, so that the original electromagnetic wave can be converted into the sensor original electric signal corresponding to the original electromagnetic wave.

It should be noted that, as for the light wave, it belongs to one kind of electromagnetic wave, and taking the light wave as an example, the light wave initially emitted by the sensor is referred to as an original light wave. In the embodiment of the invention, the original light wave emitted by the sensor is converted, so that the original light wave can be converted into the original electric signal of the sensor corresponding to the original light wave.

In the embodiment of the present invention, for the original electromagnetic wave emitted by the sensor, the original electromagnetic wave emitted by the sensor is converted by the encoder so as to be converted into the original electrical signal of the sensor corresponding to the original electromagnetic wave, which means that the original electromagnetic wave emitted by the sensor is input to the encoder and converted by the encoder so as to be converted into the original electrical signal of the sensor corresponding to the original electromagnetic wave.

In the embodiment of the present invention, the sensor may be, for example, a microwave radar, an AI sensor, or other sensors capable of emitting electromagnetic waves, which is not limited in the embodiment of the present invention.

It should be noted that, for the acoustic wave or other types of waves emitted by the sensor, the method for resisting interference of the sensor provided by the embodiment of the present invention is also applicable, and the embodiment of the present invention is not limited thereto.

In addition, different sensors in a dense area have certain interference effect on each other, and the interference between the sensors of the same type is more serious. In order to reduce the energy consumption and simultaneously reduce the interference of different sensors to each other, even reduce the interference of the same type of sensors to each other and the interference of noise, before converting the original electromagnetic wave emitted by the sensors, as shown in fig. 2, the following steps may be performed:

s201, determining the number of the sensors in the area where the sensors are located, and judging whether the number of the sensors exceeds a preset number threshold value.

In the embodiment of the invention, for the sensors, the number of the sensors in the area where the sensors are located can be determined, and whether the number of the sensors exceeds a preset number threshold value is judged, so that whether the area where the sensors are located belongs to a dense area can be determined according to the judgment result.

For example, a number threshold 25 is preset, in the embodiment of the present invention, the number of sensors 30 in the area where the sensor is located is determined, and it is determined that the number of sensors exceeds the preset number threshold, so that it can be determined that the area where the sensor is located belongs to a dense area.

For example, a number threshold 25 is preset, in the embodiment of the present invention, the number of sensors 5 in the area where the sensor is located is determined, and it is determined that the number of sensors does not exceed the preset number threshold, so that it can be determined that the area where the sensor is located does not belong to a dense area.

It should be noted that, for the preset number threshold, the preset number threshold may be determined by the degree of interference of different sensors (or sensors of the same type) in the area with each other, which means that the larger the degree of interference of different sensors (or sensors of the same type) in the area with each other is, the smaller the preset number threshold is, and the smaller the degree of interference of different sensors (or sensors of the same type) in the area with each other is, the larger the preset number threshold is.

Further, the number of the sensors may refer to the number of the sensors of the same type, that is, the sensor type corresponding to the sensor may be searched, and the number of the sensors corresponding to the sensor type in the area where the sensor is located may be determined.

For example, in the embodiment of the present invention, a sensor type (e.g., microwave radar) corresponding to the sensor a may be searched, and the number of sensors corresponding to different sensor types in the area where the sensor is located is shown in table 1 below, and the embodiment of the present invention may determine the number 30 corresponding to the sensor type in the area where the sensor a is located.

Sensor type Number of sensors
Temperature sensor 20
Infrared sensor 5
Microwave radar 30

TABLE 1

And S202, if the number of the sensors exceeds the preset number threshold, converting the original electromagnetic waves sent by the sensors into original sensor electrical signals corresponding to the original electromagnetic waves.

For the number of sensors, in the embodiment of the present invention, if the number of sensors exceeds a preset number threshold, it indicates that the area where the sensors are located belongs to a dense area (dense here means that the number of sensors in the area is large and is relatively concentrated), so that the original electromagnetic waves emitted by the sensors can be converted into the original sensor electrical signals corresponding to the original electromagnetic waves.

In addition, for the number of sensors, in the embodiment of the present invention, if the number of sensors does not exceed the preset number threshold, it indicates that the area where the sensors are located is not a dense area, and the original electromagnetic waves emitted by the sensors can be normally transmitted and received without executing the sensor anti-interference method provided by the embodiment of the present invention.

Therefore, under the condition that the area where the sensor is located is not a dense area, the original electromagnetic waves sent by the sensor can be normally sent and received, the sensor anti-interference method provided by the embodiment of the invention is not required to be executed, the energy consumption can be saved, and under the condition that the area where the sensor is located belongs to the dense area, the sensor anti-interference method provided by the embodiment of the invention can be executed, the interference of different sensors to each other can be reduced, and even the interference of the same type of sensors to each other and the interference of noise can be reduced.

For example, assuming that the number of sensors is 30 and the preset number threshold is 25, in the embodiment of the present invention, if the number of sensors exceeds the preset number threshold, it indicates that the area where the sensors are located belongs to a dense area, so that the original electromagnetic wave emitted by the sensors can be converted into the original sensor electrical signal corresponding to the original electromagnetic wave.

For example, if the number of sensors is 5 and the preset number threshold is 25, in the embodiment of the present invention, if the number of sensors does not exceed the preset number threshold, it indicates that the area where the sensors are located is not a dense area, and the original electromagnetic waves emitted by the sensors can be normally transmitted and received without executing the sensor anti-interference method provided in the embodiment of the present invention.

S102, modulating the original electric signal of the sensor, generating a modulation signal corresponding to the original electric signal of the sensor, and sending out the modulation signal.

For the original electric signal of the sensor, in the embodiment of the invention, the original electric signal of the sensor is modulated, so that a modulation signal corresponding to the original electric signal of the sensor can be generated and sent out, and the modulation signal has certain anti-interference effect on other noises in the air transmission process.

In order to further increase the anti-interference performance of the modulated signal and enhance the stability of the modulated signal, the original electric signal of the sensor is modulated by using a radio frequency signal (here, the radio frequency signal is used as a carrier), so that the modulated signal corresponding to the original electric signal of the sensor can be generated and can be sent out, and thus the anti-interference performance of the modulated signal to other noises can be greatly increased in the air transmission process, and the stability of the modulated signal is enhanced.

S103, demodulating an echo signal returned by the modulated signal transmission when encountering an obstacle, and generating a sensor target electric signal corresponding to the echo signal.

For the modulated signal, when encountering an obstacle in the air transmission process, an echo signal is returned, and the embodiment of the invention demodulates the echo signal to generate a sensor target electric signal corresponding to the echo signal.

In the embodiment of the present invention, a coherent demodulation mode is used to demodulate an echo signal returned by a modulated signal transmission encountering an obstacle, so that a carrier wave can be removed, and a sensor target electrical signal corresponding to the echo signal can be generated.

It should be noted that, for demodulation of the echo signal, the main purpose is to remove the carrier in the echo signal, and the demodulation method is not limited to coherent demodulation, and other demodulation methods may be used as well, which is not limited in the embodiment of the present invention.

And S104, restoring the sensor target electric signal into a target electromagnetic wave corresponding to the sensor target electric signal.

In the embodiment of the invention, the sensor target electric signal is restored to be a target electromagnetic wave corresponding to the sensor target electric signal, the target electromagnetic wave is different from the original electromagnetic wave emitted by the sensor in terms of amplitude, frequency, phase and the like, and the distance between the sensor and the obstacle can be determined according to the difference in terms of amplitude, frequency, phase and the like.

In the embodiment of the invention, the sensor target electrical signal can be restored through the decoder to be restored to the target electromagnetic wave corresponding to the sensor target electrical signal, that is, the sensor target electrical signal is input to the decoder, and the sensor target electrical signal is restored by the decoder to be restored to the target electromagnetic wave corresponding to the sensor target electrical signal.

Through the above description of the technical solution provided by the embodiment of the present invention, the original electromagnetic wave emitted by the sensor is converted into the original sensor electrical signal corresponding to the original electromagnetic wave, the original sensor electrical signal is modulated to generate the modulated signal corresponding to the original sensor electrical signal, the modulated signal is emitted, the echo signal returned when the modulated signal meets an obstacle during transmission is demodulated to generate the sensor target electrical signal corresponding to the echo signal, and the sensor target electrical signal is restored to the target electromagnetic wave corresponding to the sensor target electrical signal. Therefore, the electromagnetic wave is converted into the electric signal to carry out modulation and demodulation, so that the interference of different sensors to each other is reduced, and even the interference of the sensors of the same type to each other and the interference of noise are reduced.

In the embodiment of the invention, in order to ensure that the sensor can obtain the electromagnetic wave related to the sensor and shield other electromagnetic waves, the electromagnetic wave of the sensor can be encrypted. Based on this principle, as shown in fig. 3, an implementation flow diagram of another anti-interference method for a sensor provided in the embodiment of the present invention is shown, where the method is applied to a sensor, and specifically includes the following steps:

s301, converting original electromagnetic waves emitted by a sensor into original sensor electrical signals corresponding to the original electromagnetic waves.

In the embodiment of the invention, the original electromagnetic wave emitted by the sensor is converted by the encoder and can be converted into the sensor original electric signal corresponding to the original electromagnetic wave.

In addition, in the embodiment of the invention, for the sensors, the number of the sensors in the area where the sensors are located can be determined, and whether the number of the sensors exceeds a preset number threshold value is judged, so that whether the area where the sensors are located belongs to a dense area can be determined according to the judgment result.

Further, the number of the sensors may refer to the number of the sensors of the same type, that is, the sensor type corresponding to the sensor may be searched, and the number of the sensors corresponding to the sensor type in the area where the sensor is located may be determined.

For the number of sensors, if the number of sensors exceeds a preset number threshold, it indicates that the area where the sensors are located belongs to a dense area (dense means that the number of sensors in the area is large and concentrated), so that the original electromagnetic waves emitted by the sensors can be converted into the original sensor electrical signals corresponding to the original electromagnetic waves.

In addition, for the number of sensors, in the embodiment of the present invention, if the number of sensors does not exceed the preset number threshold, it indicates that the area where the sensors are located is not a dense area, and the original electromagnetic waves emitted by the sensors can be normally transmitted and received without executing the sensor anti-interference method provided by the embodiment of the present invention.

S302, obtaining a sensor identifier of the sensor, encrypting the original electric signal of the sensor by using the sensor identifier, and generating a first modulation signal corresponding to the original electric signal of the sensor.

And acquiring a sensor identifier of the sensor, encrypting the original electric signal of the sensor by using the sensor identifier, and generating a first modulation signal corresponding to the original electric signal of the sensor. The sensor identification serves as an encryption key, and the original sensor electric signal is encrypted, so that a first modulation signal corresponding to the original sensor electric signal can be generated.

It should be noted that, in the process of encrypting the original electrical signal of the sensor, AES (Advanced Encryption Standard) is used for Encryption, where the sensor identifier is used as an Encryption key, and of course, other Encryption methods may be used, which is not limited in the embodiment of the present invention.

As for the sensor identifier, the sensor identifier may be a MAC address of the sensor in the embodiment of the present invention, so that the sensor MAC address may be used as an encryption key to encrypt the original electrical signal of the sensor, and the sensor identifier may also be other information representing the identity of the sensor, which is not limited in the embodiment of the present invention.

For example, for an original electrical signal of a sensor, the embodiment of the present invention obtains a MAC address of the sensor, uses the MAC address of the sensor as an encryption key, and encrypts the original electrical signal of the sensor by using AES, so that the original electrical signal of the sensor can be encrypted into a corresponding first modulation signal, and thus the sensor can obtain an electromagnetic wave related to itself and shield other electromagnetic waves.

S303, modulate the first modulation signal with a radio frequency signal, and generate a second modulation signal corresponding to the first modulation signal.

In order to increase the anti-interference performance of the signal and enhance the stability of the signal, the embodiment of the present invention modulates the first modulation signal by using the radio frequency signal, that is, modulates the first modulation signal by using the radio frequency signal as a carrier, so as to generate a second modulation signal corresponding to the first modulation signal, where the second modulation signal is a final modulation signal. Thus, the final modulation signal is formed by adding the radio frequency signal for modulation.

S304, demodulating an echo signal returned by the second modulation signal transmission when encountering an obstacle, and generating a third modulation signal corresponding to the echo signal.

For the second modulation signal, when encountering an obstacle in the air transmission process, an echo signal is returned.

In the embodiment of the present invention, a coherent demodulation mode is used to demodulate the echo signal returned by the second modulation signal transmission encountering the obstacle, so that the carrier wave can be removed, a third modulation signal corresponding to the echo signal is generated, and decryption is subsequently required.

S305, decrypting the third modulation signal by using the sensor identifier, and generating a sensor target electric signal corresponding to the third modulation signal.

In the embodiment of the invention, the third modulation signal is decrypted by using the sensor identifier, and a sensor target electrical signal corresponding to the third modulation signal is generated. The sensor identifier is used as a decryption key to decrypt the third modulation signal and generate a sensor target electrical signal corresponding to the third modulation signal.

In the process of decrypting the third modulated signal, the sensor identifier is used as a decryption key, and the AES is used to decrypt the third modulated signal, so that the third modulated signal can be decrypted into a corresponding sensor target electrical signal, which means that a decryption method is used to obtain a final electrical signal.

S306, the sensor target electric signal is reduced to a target electromagnetic wave corresponding to the sensor target electric signal.

In the embodiment of the invention, the sensor target electric signal is restored to be a target electromagnetic wave corresponding to the sensor target electric signal, the target electromagnetic wave is different from the original electromagnetic wave emitted by the sensor in terms of amplitude, frequency, phase and the like, and the distance between the sensor and the obstacle can be determined according to the difference in terms of amplitude, frequency, phase and the like.

In the embodiment of the present invention, as shown in fig. 4, the sensor target electrical signal is restored by the decoder, and can be restored to the target electromagnetic wave corresponding to the sensor target electrical signal, that is, the sensor target electrical signal is input to the decoder, and the sensor target electrical signal is restored by the decoder, so that the target electromagnetic wave corresponding to the sensor target electrical signal is restored.

Through the above description of the technical solutions provided by the embodiments of the present invention, electromagnetic waves are converted into electrical signals to perform modulation and demodulation, so as to reduce interference of different sensors to each other, and even reduce interference of the same type of sensors to each other and noise interference. The anti-interference performance of the signal is increased by adding the radio frequency signal, and the stability is enhanced. By encrypting the electromagnetic wave of the sensor, the sensor can obtain the electromagnetic wave related to the sensor and shield other electromagnetic waves.

Corresponding to the above method embodiment, an embodiment of the present invention further provides an anti-interference sensor module, as shown in fig. 5, where the module may include: an electromagnetic wave conversion module 510, an electrical signal modulation module 520, an electrical signal demodulation module 530, and an electromagnetic wave recovery module 540.

An electromagnetic wave conversion module 510, configured to convert an original electromagnetic wave emitted by a sensor into an original sensor electrical signal corresponding to the original electromagnetic wave;

an electrical signal modulation module 520, configured to modulate the original sensor electrical signal, generate a modulation signal corresponding to the original sensor electrical signal, and send the modulation signal;

an electrical signal demodulation module 530, configured to demodulate an echo signal returned by the modulated signal transmission encountering an obstacle, and generate a sensor target electrical signal corresponding to the echo signal;

and an electromagnetic wave restoring module 540, configured to restore the sensor target electrical signal to a target electromagnetic wave corresponding to the sensor target electrical signal.

The embodiment of the present invention further provides a sensor, as shown in fig. 6, which includes a processor 61, a communication interface 62, a memory 63, and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 complete mutual communication through the communication bus 64,

a memory 63 for storing a computer program;

the processor 61 is configured to implement the following steps when executing the program stored in the memory 63:

converting original electromagnetic waves emitted by a sensor into original sensor electrical signals corresponding to the original electromagnetic waves; modulating the original electric signal of the sensor to generate a modulation signal corresponding to the original electric signal of the sensor, and sending out the modulation signal; demodulating an echo signal returned by the modulated signal transmission when encountering an obstacle to generate a sensor target electric signal corresponding to the echo signal; and restoring the sensor target electric signal to obtain a target electromagnetic wave corresponding to the sensor target electric signal.

The communication bus mentioned in the above sensor may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.

The communication interface is used for communication between the sensor and other equipment.

The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.

The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.

In yet another embodiment of the present invention, a storage medium is further provided, where instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the sensor interference rejection method according to any one of the above embodiments.

In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform the sensor immunity method described in any of the above embodiments.

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种相控阵干扰机的收发及控制装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!