CN112511188A - Anti-interference data acquisition method and device, electronic equipment and storage medium - Google Patents

Anti-interference data acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112511188A
CN112511188A CN202011413961.7A CN202011413961A CN112511188A CN 112511188 A CN112511188 A CN 112511188A CN 202011413961 A CN202011413961 A CN 202011413961A CN 112511188 A CN112511188 A CN 112511188A
Authority
CN
China
Prior art keywords
terminal
data
received
control instruction
interference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011413961.7A
Other languages
Chinese (zh)
Inventor
黄海宇
马庆华
李帮家
王莉
赵国锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HANGZHOU DECHENG ELECTRIC POWER TECHNOLOGY CO LTD
Original Assignee
HANGZHOU DECHENG ELECTRIC POWER TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HANGZHOU DECHENG ELECTRIC POWER TECHNOLOGY CO LTD filed Critical HANGZHOU DECHENG ELECTRIC POWER TECHNOLOGY CO LTD
Priority to CN202011413961.7A priority Critical patent/CN112511188A/en
Publication of CN112511188A publication Critical patent/CN112511188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/707Spread spectrum techniques using direct sequence modulation
    • H04B1/7097Interference-related aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay

Abstract

The application provides an anti-interference data acquisition method, an anti-interference data acquisition device, electronic equipment and a storage medium, wherein the method comprises the steps of monitoring whether a control instruction from a first terminal is received; when receiving a control instruction from a first terminal, sending the control instruction to a second terminal and timing; judging whether the acknowledgement information from the second terminal is received within the effective time; if the acknowledgement information from the second terminal is received within the effective time, monitoring whether the sampling data from the second terminal is received; and when the sampling data from the second terminal is received, performing anti-interference filtering processing on the sampling data to generate processing data.

Description

Anti-interference data acquisition method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of wireless transmission, in particular to an anti-interference data acquisition method and device, electronic equipment and a storage medium.
Background
In recent years, the application of the internet of things system in the power industry is more and more extensive, and a communication scheme with higher convenience and better real-time performance is provided for the power industry. The monitoring equipment of the internet of things is one of the most important parts in the system of the internet of things, and the problem of communication interference is more and more prominent. In general: the anti-interference method for the transmission signals of the Internet of things has two solutions, namely hardware anti-interference, namely electromagnetic compatibility design and software anti-interference, and the two anti-interference modes are matched in practical application.
However, in a traditional power system, various sensors generally adopt a physical wiring mode, and after the power system integrates the related technology of the internet of things, wireless sensors or wireless communication modules are mostly adopted, and the traditional method for resisting interference of transmission signals, particularly the method in the aspect of software processing, is mostly not adaptable, and a new method for resisting interference of wireless transmission communication signals by using the internet of things needs to be developed.
Disclosure of Invention
An object of the embodiments of the present application is to provide an anti-interference data acquisition method, a transmission signal anti-interference device, an electronic device, and a non-transitory readable storage medium for solving the technical problems in the prior art.
In a first aspect, the present invention provides an anti-interference data acquisition method, including: monitoring whether a control instruction from a first terminal is received; when receiving a control instruction from a first terminal, sending the control instruction to a second terminal and timing; judging whether the acknowledgement information from the second terminal is received within the effective time; if the acknowledgement information from the second terminal is received within the effective time, monitoring whether the sampling data from the second terminal is received; and when the sampling data from the second terminal is received, performing anti-interference filtering processing on the sampling data to generate processing data.
In an optional embodiment, after monitoring whether the control instruction from the first terminal is received, the method further includes: if the control instruction is not received within a preset time period, generating a sleep instruction; and sending a sleep command to the second terminal.
In an optional embodiment, performing an anti-interference filtering process on the sampled data, and generating the processed data includes: setting a spreading factor; extracting correlated data and irrelevant noise from the sampling data according to the spreading factor; and (4) keeping the related data, deleting the unrelated noise and generating the processing data.
In an optional embodiment, the performing interference rejection filtering processing on the sampled data, and generating the processed data further includes: amplitude limiting and filtering the sampled data; discarding the sampling data exceeding the preset amplitude value, and recording the discarded number; judging whether the discarded number exceeds a discarded threshold value; if the discard threshold is exceeded, an alarm signal is generated.
In a second aspect, the present invention provides a transmission signal interference rejection apparatus, including: the first monitoring module is used for monitoring whether a control instruction from the first terminal is received or not; the first sending module is used for sending a control instruction to the second terminal and timing when the control instruction from the first terminal is received; the first judging module is used for judging whether the acknowledgement information from the second terminal is received within the effective time; the second monitoring module is used for monitoring whether the sampling data from the second terminal is received or not if the confirmation information from the second terminal is received within the effective time; and the first generation module is used for carrying out anti-interference filtering processing on the sampling data to generate processed data when the sampling data from the second terminal is received.
In an alternative embodiment, the method further comprises: the second generation module is used for generating a sleep instruction if the control instruction is not received within a preset time period; and the second sending module is used for sending the sleep instruction to the second terminal.
In an alternative embodiment, the first generating module is further configured to: setting a spreading factor; extracting correlated data and irrelevant noise from the sampling data according to the spreading factor; and (4) keeping the related data, deleting the unrelated noise and generating the processing data.
In an alternative embodiment, the first generating module is further configured to: amplitude limiting and filtering the sampled data; discarding the sampling data exceeding the preset amplitude value, and recording the discarded number; judging whether the discarded number exceeds a discarded threshold value; if the discard threshold is exceeded, an alarm signal is generated.
In a third aspect, the present invention provides an electronic device comprising: a memory to store a computer program; a processor configured to perform the method of any of the preceding embodiments.
In a fourth aspect, the present invention provides a non-transitory electronic device readable storage medium comprising: a program which, when run by an electronic device, causes the electronic device to perform the method of any of the preceding embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic view of an application scenario of an anti-interference data acquisition method according to an embodiment of the present application;
fig. 3 is a flowchart of an anti-interference data acquisition method according to an embodiment of the present application;
fig. 4 is a schematic diagram of an anti-interference data acquisition device according to an embodiment of the present application.
Icon:
1-electronic equipment, 10-bus, 11-processor, 12-memory, 100-first terminal, 200-server, 300-second terminal, 400-anti-interference data acquisition device, 401-first monitoring module, 402-first sending module, 403-first judging module, 404-second monitoring module, 405-first generating module, 406-second generating module, 407-second sending module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Fig. 1 is an electronic device 1 provided in an embodiment of the present application, and includes at least one processor 11 and a memory 12, where fig. 1 illustrates an example of a processor. The processor 11 and the memory 12 are connected by a bus 10, and the memory 12 stores instructions executable by the processor 11 and the instructions are executed by the processor 11. In one embodiment, the electronic device 1 may be a server or other terminal electronic device.
The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
Fig. 2 is a schematic view of an application scenario of the anti-interference data acquisition method according to the embodiment of the present application. As shown in fig. 2, the application scenario includes a first terminal 100, a server 200, and a second terminal 300. The configuration information may be transmitted between the server 200 and the first terminal 100 and the second terminal 300 through wireless communication methods such as WIFI, 2.4G, 433M, GPRS (General Packet Radio Service), so that the server sets data sent to the second terminal according to the instruction of the first terminal.
The server 200 may be a server, a server cluster, or a cloud computing center. The first terminal 100 and the second terminal 300 may be Personal Computers (PCs), tablet computers, smart phones, Personal Digital Assistants (PDAs), and the like, which are installed with application programs, so as to receive data sent by the server 200 and package locally received external input data back to the server 200.
Please refer to fig. 3, which is a flowchart illustrating an interference-free data collection method according to an embodiment of the present application, where the method is executed by the electronic device 1 shown in fig. 1 and is used by the server in the interaction scenario shown in fig. 2. The method comprises the following steps:
step 301: and monitoring whether a control instruction from the first terminal is received.
In this step, if the control command is not received within the preset time period, a sleep command is generated, and then the sleep command is sent to the second terminal.
Step 302: and when receiving the control instruction from the first terminal, sending the control instruction to the second terminal and timing.
Step 303: it is determined whether acknowledgement information from the second terminal is received within the validity time. If so, go to step 304, otherwise, go to step 302.
Step 304: and if the acknowledgement information from the second terminal is received within the valid time, monitoring whether the sampling data from the second terminal is received.
Step 305: and when the sampling data from the second terminal is received, performing anti-interference filtering processing on the sampling data to generate processing data.
In this step, the anti-interference filtering process may include hardware anti-interference and software anti-interference. The hardware interference resistance includes the technologies of shielding electromagnetic radiation noise, isolating high-frequency parts, filtering suppression and the like. In the aspect of hardware anti-interference, a freewheeling diode is added to a relay coil to eliminate interference generated by back electromotive force when the coil is disconnected; an RC suppression circuit is connected in parallel to the silicon controlled switch, so that the noise generated by the silicon controlled switch is reduced; each IC of the circuit board is connected with a high-frequency capacitor of 0.01-0.1 muF in parallel, so that the influence of the high-frequency capacitor on a power supply is reduced; the single chip microcomputer uses a watchdog circuit, if the program is abnormal and the dog is not fed in time, the program is forcibly restarted, and transmission of error signals is greatly reduced.
The software is anti-interference, the wireless transmission standard in the invention selects an LoRa communication protocol, and the interference in the communication signal process is suppressed by a signal anti-interference processing method in the LoRa protocol and processing methods such as software internal filtering and the like. The software anti-interference is mainly embodied in the processing of the communication process of the LoRa communication protocol and the internal filtering processing of the software, the LoRa communication protocol can distinguish the data with relevance from the noise without relevance through the internally specified spread spectrum factor, and the influence generated by noise interference is inhibited; the communication gateway adopts an sx1301 multi-channel LoRa gateway chip, the communication node adopts an sx1278 single-channel LoRa terminal chip, the communication gateway can support the simultaneous uploading of maximum 8-channel data, and if a plurality of gateways exist at the same time, each gateway and node communication frequency band is distributed in the 430-477 MHz frequency band; meanwhile, the LoRa data frame adopts a frame format specified by a channel detection principle CAD, and the communication node is in a dormant state when no data receiving and sending requirements exist.
The software interior carries out various filtering processing on data uploaded by the communication node so as to reduce the influence caused by data abnormity caused by interference in the transmission process: for data with high real-time requirements, amplitude limiting filtering processing is adopted, single data exceeding a specified range are discarded without use, data in a range acquired last time are adopted, if a plurality of continuous data exceeding the range are sampled, abnormality is judged, and corresponding processing is carried out according to a program; and for data with low real-time requirement, median filtering or average filtering is adopted.
Please refer to fig. 4, which is a schematic diagram of an interference-free data acquisition apparatus 400 according to an embodiment of the present application, where the method may be executed by the electronic device 1 shown in fig. 1 and used by a server in the interaction scenario shown in fig. 2. The method specifically comprises the following steps: the device comprises a first monitoring module 401, a first sending module 402, a first judging module 403, a second monitoring module 404, a first generating module 405, a second generating module 406 and a second sending module 407.
The first monitoring module 401 is configured to monitor whether a control instruction from the first terminal is received. Please refer to the description of step 301 in the above embodiments.
And a first sending module 402, configured to send a control instruction to the second terminal and perform timing when receiving the control instruction from the first terminal. Please refer to the description of step 302 in the above embodiment.
A first determining module 403, configured to determine whether the acknowledgment information from the second terminal is received within the valid time. Please refer to the description of step 303 in the above embodiments.
A second monitoring module 404, configured to monitor whether the sampled data from the second terminal is received if the acknowledgment information from the second terminal is received within the valid time. Please refer to the description of step 304 in the above embodiment.
And a first generating module 405, configured to, when receiving the sampled data from the second terminal, perform interference rejection filtering processing on the sampled data to generate processed data.
In an alternative embodiment, the first generating module is further configured to: setting a spreading factor; extracting correlated data and irrelevant noise from the sampling data according to the spreading factor; and (4) keeping the related data, deleting the unrelated noise and generating the processing data.
In an alternative embodiment, the first generating module is further configured to: amplitude limiting and filtering the sampled data; discarding the sampling data exceeding the preset amplitude value, and recording the discarded number; judging whether the discarded number exceeds a discarded threshold value; if the discard threshold is exceeded, an alarm signal is generated. Please refer to the description of step 305 in the above embodiment.
The second generating module 406 is configured to generate a sleep instruction if the control instruction is not received within a preset time period.
A second sending module 407, configured to send the sleep command to the second terminal.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, 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.
The above embodiments are merely examples of the present application and are not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. An interference-free data acquisition method, comprising:
monitoring whether a control instruction from a first terminal is received;
when receiving a control instruction from the first terminal, sending the control instruction to a second terminal, and timing;
judging whether receiving the acknowledgement information from the second terminal within the valid time;
if receiving the acknowledgement information from the second terminal within the valid time, monitoring whether the sampling data from the second terminal is received;
and when receiving the sampling data from the second terminal, performing anti-interference filtering processing on the sampling data to generate processing data.
2. The method of claim 1, wherein the monitoring whether the control instruction from the first terminal is received further comprises:
if the control instruction is not received within a preset time period, generating a sleep instruction;
and sending the sleep instruction to the second terminal.
3. The method of claim 1, wherein the performing antijam filtering on the sampled data to generate processed data comprises:
setting a spreading factor;
extracting correlated data and irrelevant noise from the sampling data according to the spreading factor;
and reserving the associated data, deleting the irrelevant noise, and generating the processing data.
4. The method of claim 1, wherein said performing antijam filtering on said sampled data, and wherein generating processed data further comprises:
amplitude limiting and filtering the sampled data;
discarding the sampling data exceeding a preset amplitude value, and recording the number of the discarded data;
judging whether the abandon number exceeds a abandon threshold value;
if the discard threshold is exceeded, an alarm signal is generated.
5. An interference-free data acquisition device, comprising:
the first monitoring module is used for monitoring whether a control instruction from the first terminal is received or not;
the first sending module is used for sending the control instruction to a second terminal and timing when receiving the control instruction from the first terminal;
the first judging module is used for judging whether the acknowledgement information from the second terminal is received within the effective time;
a second monitoring module, configured to monitor whether sample data from the second terminal is received if the acknowledgment information from the second terminal is received within the valid time;
and the first generation module is used for performing anti-interference filtering processing on the sampling data to generate processing data when the sampling data from the second terminal is received.
6. The apparatus of claim 5, further comprising:
the second generation module is used for generating a sleep instruction if the control instruction is not received within a preset time period;
and the second sending module is used for sending the sleep instruction to the second terminal.
7. The apparatus of claim 5, wherein the first generating module is further configured to:
setting a spreading factor;
extracting correlated data and irrelevant noise from the sampling data according to the spreading factor;
and reserving the associated data, deleting the irrelevant noise, and generating the processing data.
8. The apparatus of claim 5, wherein the first generating module is further configured to:
amplitude limiting and filtering the sampled data;
discarding the sampling data exceeding a preset amplitude value, and recording the number of the discarded data;
judging whether the abandon number exceeds a abandon threshold value;
if the discard threshold is exceeded, an alarm signal is generated.
9. An electronic device, comprising:
a memory to store a computer program;
a processor to perform the method of any one of claims 1 to 4.
10. A non-transitory electronic device readable storage medium, comprising: program which, when run by an electronic device, causes the electronic device to perform the method of any one of claims 1 to 4.
CN202011413961.7A 2020-12-03 2020-12-03 Anti-interference data acquisition method and device, electronic equipment and storage medium Pending CN112511188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011413961.7A CN112511188A (en) 2020-12-03 2020-12-03 Anti-interference data acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011413961.7A CN112511188A (en) 2020-12-03 2020-12-03 Anti-interference data acquisition method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112511188A true CN112511188A (en) 2021-03-16

Family

ID=74970449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011413961.7A Pending CN112511188A (en) 2020-12-03 2020-12-03 Anti-interference data acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112511188A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103913619A (en) * 2012-12-30 2014-07-09 航天信息股份有限公司 Current monitoring system and method based on wireless sensor network
CN104766220A (en) * 2015-03-19 2015-07-08 深圳市振元数码有限公司 Internet of things cloud identification system and control method thereof
CN106559742A (en) * 2016-11-03 2017-04-05 厦门美图移动科技有限公司 A kind of data transferring method, device, terminal and service end

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103913619A (en) * 2012-12-30 2014-07-09 航天信息股份有限公司 Current monitoring system and method based on wireless sensor network
CN104766220A (en) * 2015-03-19 2015-07-08 深圳市振元数码有限公司 Internet of things cloud identification system and control method thereof
CN106559742A (en) * 2016-11-03 2017-04-05 厦门美图移动科技有限公司 A kind of data transferring method, device, terminal and service end

Similar Documents

Publication Publication Date Title
US11943233B2 (en) Vehicle communication apparatus, in-vehicle network system, and vehicle communication method
CN110471872B (en) System and method for realizing M-LVDS bus data interaction based on ZYNQ chip
CN111817924B (en) Test method and related equipment
CN104699598A (en) Automatic testing method, device, equipment and system
CN113114707B (en) Rule filtering method for power chip Ethernet controller
EP2725506A2 (en) Apparatus and method for displaying loading state of web browser in portable terminal
CN114175748B (en) Communication frequency adjusting method, device, electronic equipment and storage medium
CN110365598B (en) Heartbeat message sending method, device, server, terminal and storage medium
US20160261560A1 (en) Protection Method and Computer System thereof for Firewall Apparatus Disposed to Application Layer
CN111625389A (en) VR fault data acquisition method and device and related components
CN101909310A (en) Electronic device testing method
US10079840B2 (en) Protection method and computer system of releasing malware attacks for network interface controller system
US20140156831A1 (en) Apparatus and method for monitoring signals transmitted in bus
TWI557551B (en) Electronic apparatus and wake-up method thereof
US20210294766A1 (en) Terminal and type c interface anti-corrosion method
CN112511188A (en) Anti-interference data acquisition method and device, electronic equipment and storage medium
CN115904719B (en) Data acquisition method and device, electronic equipment and storage medium
CN107168902B (en) Method for realizing automatic identification of high-speed CAN baud rate by using DMA
CN104133745A (en) Electronic device with test function, test method and system
CN111585817B (en) Power-saving mode switching method and device
CN112953723B (en) Vehicle-mounted intrusion detection method and device
CN103905223A (en) Data packet acquisition method, system and device
CN109343961B (en) Memory information processing method and device, storage medium and terminal
CN108388797B (en) Intrusion detection method and device and electronic equipment
CN113033752A (en) Communication fault detection method, host and slave

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210316

RJ01 Rejection of invention patent application after publication