CN111490881A - Data acquisition method, server, system and readable medium - Google Patents

Data acquisition method, server, system and readable medium Download PDF

Info

Publication number
CN111490881A
CN111490881A CN201910078219.6A CN201910078219A CN111490881A CN 111490881 A CN111490881 A CN 111490881A CN 201910078219 A CN201910078219 A CN 201910078219A CN 111490881 A CN111490881 A CN 111490881A
Authority
CN
China
Prior art keywords
data acquisition
data
acquisition terminal
identification code
terminal
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.)
Withdrawn
Application number
CN201910078219.6A
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.)
Guangdong Uniteddata Holding Group Co ltd
Original Assignee
Guangdong Uniteddata Holding Group 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 Guangdong Uniteddata Holding Group Co ltd filed Critical Guangdong Uniteddata Holding Group Co ltd
Priority to CN201910078219.6A priority Critical patent/CN111490881A/en
Publication of CN111490881A publication Critical patent/CN111490881A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data acquisition method, a server, a system and a readable medium, wherein the method is applied to the server and comprises the following steps: determining a classification label of each first data acquisition terminal; receiving a trigger signal carrying an identification code, and broadcasting a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether a classification label of the first data acquisition terminal comprises the identification code carried by the first acquisition instruction; and receiving the sensing data acquired and sent by at least one second data acquisition terminal in each first data acquisition terminal, wherein the classification label of the second data acquisition terminal comprises an identification code. According to the technical scheme provided by the invention, the sensing data acquired by the specific data acquisition terminal can be directly acquired, and the sensing data acquired by all the data acquisition terminals is not required to be acquired and screened, so that more computing resources of a server are avoided being occupied.

Description

Data acquisition method, server, system and readable medium
Technical Field
The invention relates to the technical field of computers, in particular to a data acquisition method, a server, a system and a readable medium.
Background
A large number of data acquisition terminals are deployed in the data center, and the data acquisition terminals transmit acquired sensing data to corresponding service terminals according to protocol regulations, so that the service terminals can know the operating state of the data center through the sensing data transmitted by each data acquisition terminal.
At present, a server can indiscriminately receive sensing data sent by each data acquisition terminal, when the sensing data acquired by a specific data acquisition terminal needs to be acquired, the sensing data acquired by all the data acquisition terminals needs to be acquired firstly, and then the sensing data acquired by the specific data acquisition terminal is screened out, so that more computing resources of the server are occupied.
Disclosure of Invention
The invention provides a data acquisition method, a server, a system and a readable medium, which can directly acquire sensing data acquired by a specific data acquisition terminal without acquiring sensing data respectively acquired by all the data acquisition terminals and carrying out screening processing, thereby avoiding occupying more computing resources of the server.
In a first aspect, the present invention provides a data acquisition method, applied to a server, including:
determining a classification label of each first data acquisition terminal;
receiving a trigger signal carrying an identification code, and broadcasting a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether the classification label of the first data acquisition terminal comprises the identification code carried by the first acquisition instruction;
and receiving sensing data which is acquired and sent by at least one second data acquisition terminal in each first data acquisition terminal, wherein the classification label of the second data acquisition terminal comprises the identification code.
Preferably, the first and second electrodes are formed of a metal,
after the receiving of the sensing data collected and sent by at least one second data collection terminal in each of the first data collection terminals, the method further includes:
determining a first total amount of the second data acquisition terminals carrying the identification codes from each first data acquisition terminal;
detecting a second total amount of each second data acquisition terminal which sends the sensing data;
and determining a data acquisition rate by using the first total amount and the second total amount, detecting whether the data acquisition rate is not less than a preset threshold value, and if so, determining that the sensing data is valid.
Preferably, the first and second electrodes are formed of a metal,
the classification labels of the first data acquisition terminals are different;
then the process of the first step is carried out,
when the data acquisition rate is less than a preset threshold, the method further comprises the following steps:
detecting each target data acquisition terminal which does not send the sensing data from each second data acquisition terminal;
and broadcasting a second acquisition instruction carrying the classification label of the target data acquisition terminal aiming at each target data acquisition terminal.
Preferably, the first and second electrodes are formed of a metal,
the classification label includes: a hierarchy label composed of at least two of the area identification code, the type identification code, and the area number identification code.
In a second aspect, the present invention provides a server, including:
the label determining module is used for determining the classification label of each first data acquisition terminal;
the instruction broadcasting module is used for receiving a trigger signal carrying an identification code and broadcasting a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether the classification label of the first data acquisition terminal comprises the identification code carried by the first acquisition instruction;
the data receiving module is used for receiving the sensing data which is acquired and sent by at least one second data acquisition terminal in the first data acquisition terminals, and the classification labels of the second data acquisition terminals comprise the identification codes.
Preferably, the first and second electrodes are formed of a metal,
further comprising: an acquisition rate calculation module; wherein the content of the first and second substances,
the acquisition rate calculation module comprises: the device comprises a first total amount determining unit, a second total amount determining unit and an acquisition rate calculating unit;
the first total amount determining unit is used for determining a first total amount of the second data acquisition terminals carrying the identification codes from each first data acquisition terminal;
the second total amount determining unit is configured to detect a second total amount of each of the second data acquisition terminals that send the sensing data;
and the acquisition rate calculation unit is used for determining a data acquisition rate by using the first total amount and the second total amount, detecting whether the data acquisition rate is not less than a preset threshold value, and if so, determining that the sensing data is valid.
Preferably, the first and second electrodes are formed of a metal,
the classification labels of the first data acquisition terminals are different;
then the process of the first step is carried out,
when the data acquisition rate is smaller than a preset threshold, the acquisition rate calculation module further comprises: a detection unit;
the detection unit is configured to detect, from each of the second data acquisition terminals, each target data acquisition terminal that does not send the sensing data, and trigger the instruction broadcasting module, where the instruction broadcasting module is configured to broadcast a second acquisition instruction that carries the classification tag of the target data acquisition terminal, under the trigger of the detection unit.
In a third aspect, the present invention provides a data acquisition system, including:
at least two data acquisition terminals, and the server according to any one of the second aspect;
the data acquisition terminal is used for pre-storing the classification label of the data acquisition terminal; receiving an acquisition instruction broadcasted by a server, and detecting whether the stored classification label comprises an identification code carried by the acquisition instruction; and when the classification label comprises the identification code carried by the acquisition instruction, acquiring and sending sensing data to the server.
Preferably, the first and second electrodes are formed of a metal,
the data acquisition terminal comprises:
the device comprises a storage module, a broadcast receiving module and a data sending module;
the storage module is used for pre-storing the classification label of the data acquisition terminal;
the broadcast receiving module is used for receiving an acquisition instruction broadcasted by a server and detecting whether the stored classification label comprises an identification code carried by the acquisition instruction;
and the data sending module is used for collecting and sending the sensing data to the server when the classification label comprises the identification code carried by the collection instruction.
In a fourth aspect, the invention provides a readable medium comprising executable instructions which, when executed by a processor of an electronic device, cause the electronic device to perform the method according to any one of the first aspect.
The invention provides a data acquisition method, a server, a system and a readable medium, wherein the method is applied to the server and comprises the steps of determining a classification label formed by one or more identification codes of each first data acquisition terminal; after a user determines that an identification code included in a classification label of a specific first data acquisition terminal to be acquired is input and a trigger signal carrying the identification code is input, a server receives the trigger signal carrying the identification code and broadcasts a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether the classification label of the first data acquisition terminal includes the identification code carried by the first acquisition instruction; when detecting that the classification labels of one or more second data acquisition terminals in the first data acquisition terminals include the identification codes carried by the first acquisition instructions, the second data acquisition terminals acquire and transmit the sensing data, the server receives the sensing data transmitted by the second data acquisition terminals, and the sensing data is acquired and transmitted by each second data acquisition terminal of which the classification label includes the identification codes, namely the sensing data acquired by the specific first data acquisition terminal which needs to be acquired. Therefore, the server can directly acquire the sensing data acquired by the specific first data acquisition terminal without acquiring the sensing data respectively acquired by all the first data acquisition terminals and carrying out screening processing, so that more computing resources of the server are avoided being occupied.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data acquisition method provided in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another server provided in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data acquisition system provided in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a data acquisition terminal in a data acquisition system provided in an embodiment of the present invention;
fig. 8 is a schematic flow chart of another data acquisition method provided in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a data acquisition method, which is applied to a server and includes:
step 101, determining a classification label of each first data acquisition terminal;
102, receiving a trigger signal carrying an identification code, and broadcasting a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether the classification label of the first data acquisition terminal comprises the identification code carried by the first acquisition instruction;
103, receiving sensing data acquired and sent by at least one second data acquisition terminal in each first data acquisition terminal, wherein the classification label of the second data acquisition terminal comprises the identification code.
In the embodiment shown in fig. 1, the classification label formed by one or more identification codes is determined for each first data acquisition terminal; after a user determines that an identification code included in a classification label of a specific first data acquisition terminal to be acquired is input and a trigger signal carrying the identification code is input, a server receives the trigger signal carrying the identification code and broadcasts a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether the classification label of the first data acquisition terminal includes the identification code carried by the first acquisition instruction; when detecting that the classification labels of one or more second data acquisition terminals in the first data acquisition terminals include the identification codes carried by the first acquisition instructions, the second data acquisition terminals acquire and transmit the sensing data, the server receives the sensing data transmitted by the second data acquisition terminals, and the sensing data is acquired and transmitted by each second data acquisition terminal of which the classification label includes the identification codes, namely the sensing data acquired by the specific first data acquisition terminal which needs to be acquired. Therefore, the server can directly acquire the sensing data acquired by the specific first data acquisition terminal without acquiring the sensing data respectively acquired by all the first data acquisition terminals and carrying out screening processing, so that more computing resources of the server are avoided being occupied.
For example, first data acquisition terminals are distributed on each layer of a three-layer data center, and classification labels are set for the first data acquisition terminals in advance: setting the classification label of each first data acquisition terminal of a first layer to be 01, setting the classification label of each first data acquisition terminal of a second layer to be 02, and setting the classification label of each first data acquisition terminal of a third layer to be 03; when a user determines that sensing data acquired by first data acquisition terminals on a first layer of a data center needs to be acquired, if the classification labels of the first data acquisition terminals on the first layer are all 01, the identification code carried by the trigger signal is determined to be 01, and if the user inputs 01, the server receives the trigger signal carried by 01 and broadcasts a first acquisition instruction carried by 01 to each first data acquisition terminal; each first data acquisition terminal receives a first acquisition instruction, the first data acquisition terminal with the classification label of 01 acquires and sends sensing data when detecting that the identification code carried by the first acquisition instruction is 01, and the first data acquisition terminal with the classification label of 02 and the first data acquisition terminal with the classification label of 03 do not send the sensing data when detecting that the identification code carried by the first acquisition instruction is 01. Therefore, the sensing data received by the server are the sensing data acquired and sent by the first data acquisition terminal with the classification label of 01, namely the sensing data acquired by the first data acquisition terminal on the first layer of the data center, which needs to be acquired by the user, the purpose of directly acquiring the sensing data acquired by the specific first data acquisition terminal can be achieved, and more computing resources of the server are avoided being occupied.
It should be noted that, in the embodiments of the present invention, the first data acquisition terminal includes, but is not limited to, a sensor.
In an embodiment of the present invention, after receiving the sensing data collected and sent by at least one second data collection terminal in each first data collection terminal, the method further includes:
determining a first total amount of the second data acquisition terminals carrying the identification codes from each first data acquisition terminal;
detecting a second total amount of each second data acquisition terminal which sends the sensing data;
and determining a data acquisition rate by using the first total amount and the second total amount, detecting whether the data acquisition rate is not less than a preset threshold value, and if so, determining that the sensing data is valid.
In the above embodiment, whether the sensing data received by the server is valid is determined by calculating the data acquisition rate, the data acquisition rate is calculated to first determine a first total amount of the second data acquisition terminals carrying the identification codes in each first data acquisition terminal, and the first total amount of the second data acquisition terminals can be determined when the classification tags of the first data acquisition terminals are usually set. For example, the number of the first data acquisition terminals in the first layer of the data center is 1000, when the classification tags are set, the classification tags of the first data acquisition terminals in the first layer are all set to 01, when a user determines that the identification code corresponding to a specific first data acquisition terminal is 01, the first total amount of the second data acquisition terminal can be determined to be 1000, the first total amount of the second data acquisition terminal can be obtained in other ways, for example, the classification tags of the first data acquisition terminals are stored in the server in advance, the identification code of the specific first data acquisition terminal is determined by the user, the trigger signal carrying the identification code is input, the server receives the trigger signal carrying the identification code, and the first total amount of the second data terminal is directly counted by using the classification tags of the first data acquisition terminals stored in advance. Further detecting a second total amount of each second data acquisition terminal sending the sensing data, and acquiring the second total amount by directly counting the received sensing data through the server; and determining the data acquisition rate by using the ratio of the second total amount to the first total amount, detecting whether the obtained data acquisition rate is not less than a preset threshold value after the data acquisition rate is determined, and if so, determining that the sensing data is valid. It will be appreciated by those skilled in the art that the preset threshold may be an empirical value.
For example, given that the number of the first data acquisition terminals in the first layer of the data center is 1000, when a user determines that sensing data acquired by the first data acquisition terminals in the first layer of the data center needs to be acquired, the first data acquisition terminals in the first layer of the data center are all determined to be the second data acquisition terminals, the first total amount is 1000, and theoretically 1000 sensing data should be acquired, but actually not every second data acquisition terminal will acquire and transmit the sensing data, a preset threshold value of 90% is given, when sensing data are acquired and transmitted by not less than 900 second data acquisition terminals, it is determined that each sensing data received by the service end are valid, and the service end can know the operating state of the data center according to the received sensing data; when less than 900 second data acquisition terminals acquire and send sensing data, the server side sends a first acquisition instruction for the second time, so that each second data acquisition terminal acquires and sends the sensing data again, after the first acquisition instruction is determined to be sent for the second time, a new second total amount of each second data acquisition terminal of the sensing data is sent, a new data acquisition rate is determined by using the new second total amount and the first total amount, when the new data acquisition rate is still less than 90%, the server side determines the address of each second data acquisition terminal which does not send the sensing data for two times, and sends an alarm signal to remind a user to overhaul each second data acquisition terminal which does not send the sensing data for two times and corresponds to the address.
In an embodiment of the present invention, the classification labels of each of the first data acquisition terminals are different; then, when the data acquisition rate is smaller than a preset threshold, the method further includes: detecting each target data acquisition terminal which does not send the sensing data from each second data acquisition terminal; and broadcasting a second acquisition instruction carrying the classification label of the target data acquisition terminal aiming at each target data acquisition terminal.
In the above embodiment, the classification labels of each first data acquisition terminal are different, that is, one classification label corresponds to only one first data acquisition terminal, and when the data acquisition rate is smaller than the preset threshold, each target data acquisition terminal that does not send the sensing data may be detected from each second data acquisition terminal. Specifically, the classification labels of the first data acquisition terminals are stored in the server in advance; when the second data acquisition terminal acquires and sends the sensing data, the classification labels of the second data acquisition terminal are sent to the server side together; the server side determines a second data acquisition terminal for sending the sensing data according to the received classification tags while receiving the sensing data, and determines the classification tags of all target data acquisition terminals which do not send the sensing data according to the pre-stored classification tags of all first data acquisition terminals, so that all target data acquisition terminals are determined. Because the classification labels of the target data acquisition terminals are different, a second acquisition instruction carrying the classification labels of the target equipment acquisition terminals can be broadcasted for each target data acquisition terminal, and after each target data acquisition terminal receives the second acquisition instruction consistent with the classification label of the target equipment acquisition terminal, the sensing data are acquired and sent to the server side.
Specifically, after each target data acquisition terminal acquires and transmits sensing data, the server receives the sensing data acquired and transmitted by at least one target data acquisition terminal, detects a third total amount of each target data acquisition terminal transmitting the sensing data, calculates a ratio of the sum of the second total amount and the third total amount to the first total amount to obtain a new data acquisition rate, detects whether the new data acquisition rate is not less than a preset threshold value, if so, determines that the sensing data is valid (the sensing data acquired and transmitted by each second data acquisition terminal before the server does not broadcast a second acquisition instruction, and the sensing data acquired and transmitted by each target data acquisition terminal after the server broadcasts the second acquisition instruction), if not, determines a classification label of the target data acquisition terminal not transmitting the sensing data, and transmits an alarm signal, and reminding the user to overhaul each target data acquisition terminal which is corresponding to the classification label and does not send the sensing data.
When the classification tags only include one identification code, for example, the classification tags of the first data acquisition terminal in the first layer of the data center are all set to 01, and a user needs to acquire sensing data acquired by the first data acquisition terminal in the first layer of the data center, it is obvious that the classification tag including only one identification code cannot directly meet the needs of the user, and therefore in one embodiment of the present invention, the classification tag includes: a hierarchy label composed of at least two of the area identification code, the type identification code, and the area number identification code.
In the above embodiment, the classification tag includes, but is not limited to, a hierarchical tag composed of a plurality of identification codes, and each first data acquisition terminal is divided differently by using each identification code as much as possible, so as to meet the requirement of a user for acquiring sensing data acquired by a specific first data acquisition terminal.
Specifically, the identification code includes, but is not limited to, a zone identification code, a type identification code, and a zone number identification code, where the zone identification code may be floor information of the first data acquisition terminal, for example, setting the zone identification code in the classification tag of the first data acquisition terminal distributed on the first floor of the data center to 01, and setting the zone identification code in the classification tag of the first data acquisition terminal distributed on the second floor of the data center to 02; the method comprises the following steps that the first data acquisition terminal is further divided into a temperature data acquisition terminal, a humidity data acquisition terminal, an illumination data acquisition terminal and the like according to the type of sensing data acquired by the first data acquisition terminal, a type identification code in a classification label of the temperature data acquisition terminal is set as A, a type identification code in a classification label of the humidity data acquisition terminal is set as B, and a type identification code in a classification label of the illumination data acquisition terminal is set as C; each layer of the data center is divided into a plurality of areas, and an area number is set for each area, for example, a classification label of a first data acquisition terminal in an area a of a first layer of the data center is set to be 01-a, and a classification label of a temperature data acquisition terminal in an area b of a third layer of the data center is set to be 03-b-A. Certainly, the classification labels of the first data acquisition terminals may be set differently, for example, the classification label of the first data acquisition terminal in the first layer c area of the data center is set to 01-c-0001, and when the classification label of one first data acquisition terminal is determined to be 01-a-0010-B, the first data acquisition terminal may be determined to be the tenth first data acquisition terminal in the first layer a area of the data center, and the first data acquisition terminal is the humidity data acquisition terminal. The user can set up the classification label according to actual conditions, can set up a classification label and only correspond one first data acquisition terminal, also can set up a classification label and correspond a plurality of first data acquisition terminals.
In terms of hardware, as shown in fig. 2, a hardware structure diagram of a device where the server is located provided in the embodiment of the present invention is shown, and in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 2, the device where the server is located in the embodiment may further include other hardware. Taking a software implementation as an example, as shown in fig. 3, as a service end in a logical sense, the service end is formed by reading a corresponding computer program instruction in a non-volatile memory into an internal memory by a CPU of a device where the service end is located to run. The service end provided by the embodiment includes:
a tag determination module 301, configured to determine a classification tag of each first data acquisition terminal;
an instruction broadcasting module 302, configured to receive a trigger signal carrying an identification code, and broadcast a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether the classification tag of the first data acquisition terminal includes the identification code carried by the first acquisition instruction;
the data receiving module 303 is configured to receive sensing data acquired and sent by at least one second data acquisition terminal in each first data acquisition terminal, where the classification tag of the second data acquisition terminal includes the identification code.
As shown in fig. 4, in an embodiment of the present invention, the method further includes: an acquisition rate calculation module 304; wherein the content of the first and second substances,
the acquisition rate calculation module 304 includes: a first total amount determining unit 3041, a second total amount determining unit 3042, and an acquisition rate calculating unit 3043;
the first total amount determining unit 3041 is configured to determine, from each of the first data acquisition terminals, a first total amount of the second data acquisition terminals that carry the identification code;
the second total amount determining unit 3042 is configured to detect a second total amount of each of the second data collecting terminals that send the sensing data;
the acquisition rate calculating unit 3043 is configured to determine a data acquisition rate by using the first total amount and the second total amount, detect whether the data acquisition rate is not less than a preset threshold, and if so, determine that the sensing data is valid.
As shown in fig. 5, in an embodiment of the present invention, the classification labels of each of the first data collecting terminals are different;
then the process of the first step is carried out,
when the data acquisition rate is smaller than a preset threshold, the acquisition rate calculation module 304 further includes: a detection unit 3044;
the detecting unit 3044 is configured to detect each target data collecting terminal that does not send the sensing data from each second data collecting terminal, and trigger the instruction broadcasting module 302, where the instruction broadcasting module 302 is used to broadcast a second collecting instruction carrying the classification tag of the target data collecting terminal under the trigger of the detecting unit 3044.
As shown in fig. 6, an embodiment of the present invention provides a data acquisition system, including:
at least two data acquisition terminals 602, and the server 601;
the data acquisition terminal 602 is configured to pre-store the classification label of the data acquisition terminal 602; receiving an acquisition instruction broadcasted by the server 601, and detecting whether the stored classification label comprises an identification code carried by the acquisition instruction; when the classification label includes the identification code carried by the acquisition instruction, the sensing data is acquired and sent to the server 601.
As shown in fig. 7, in an embodiment of the present invention, the data collecting terminal 602 includes: a storage module 6021, a broadcast receiving module 6022 and a data transmitting module 6023.
The storage module 6021 is configured to store the classification label of the data acquisition terminal 602 in advance;
the broadcast receiving module 6022 is configured to receive an acquisition instruction broadcast by the server 601, and detect whether the stored classification tag includes an identification code carried by the acquisition instruction;
a data sending module 6023, configured to collect and send the sensing data to the server 601 when the classification tag includes the identification code carried by the collection instruction.
For convenience of description, the above device embodiments are described with functions divided into various units or modules, and the functions of the units or modules may be implemented in one or more software and/or hardware when implementing the present invention.
In order to more clearly illustrate the technical solutions and advantages of the present invention, the following data acquisition system provided in an embodiment of the present invention is combined to obtain the sensing data acquired by a specific data acquisition terminal under the system, and please refer to fig. 8, which may specifically include the following steps:
step 801, setting and storing a classification label composed of an area identification code, an area number identification code and a sequence number identification code for each first data acquisition terminal in advance, and storing the classification label of each first data acquisition terminal at a server.
The area identification code may be floor information of the first data acquisition terminal, such as setting the area identification code distributed in the classification tag of the first data acquisition terminal on the first floor of the data center to 01; the area number identification code is number information for dividing each layer of the data center into a plurality of areas, for example, the area number identification code in the classification label of the first data acquisition terminal in the area a of each layer in the data center is set as a; the serial number identification code can be serial number information of the first data acquisition terminal, for example, a classification label of an eighth first data acquisition terminal of a first layer a area of the data center can be set to 01-a-0008.
Taking 12 (only for convenience of explanation) first data acquisition terminals arranged in a data center as an example, 12 classification labels of the first data acquisition terminals are arranged according to the contents of the area identification code, the area number identification code and the sequence number identification code, and the classification labels of the 12 first data acquisition terminals are respectively: 01-a-0001, 01-a-0002, 01-a-0003, 01-a-0004, 01-b-0001, 01-b-0002, 01-b-0003, 01-b-0004, 02-a-0001, 02-a-0002, 02-a-0003 and 02-a-0004, wherein in the above 12 first data acquisition terminals, a user needs to acquire the sensing data acquired by the first data acquisition terminals in the area a of the first layer of the data center, namely the sensing data acquired by the first data acquisition terminals with classification labels of 01-a-0001, 01-a-0002, 01-a-0003 and 01-a-0004.
Step 802, the server receives a trigger signal carrying the identification code, and broadcasts a first acquisition instruction carrying the identification code.
When a user determines that sensing data collected by a first data collection terminal in a first-layer a area of a data center needs to be obtained, the identification code of a trigger signal is determined to be 01-a-NU LL, wherein NU LL can be matched with any content, the user inputs 01-a-NU LL, a service end receives the trigger signal carrying 01-a-NU LL, and broadcasts a first collection instruction carrying 01-a-NU LL.
Step 803, each first data acquisition terminal receives a first acquisition instruction broadcasted by the server.
The 12 first data acquisition terminals receive the first acquisition instruction which is broadcast by the server and carries 01-a-NU LL.
Step 804, the first data acquisition terminal detects whether the stored classification label includes the identification code carried by the first acquisition instruction, and if so, step 805 is executed.
The 12 first data acquisition terminals detect whether the stored classification labels comprise 01-a-NU LL carried by the first acquisition order, wherein the first data acquisition terminals with the classification labels 01-a-0001, 01-a-0002, 01-a-0003 and 01-a-0004 detect that the stored classification labels comprise 01-a-NU LL carried by the first acquisition order, and the first data acquisition terminals with the classification labels 01-b-0001, 01-b-0002, 01-b-0003, 01-b-0004, 02-a-0001, 02-a-0002, 02-a-0003 and 02-a-0004 detect that the stored classification labels do not comprise 01-a-NU LL carried by the first acquisition order, so that the classification labels 01-b-0002, 01-b-0003, 01-b-0001, 02-a-0004, 02-a-0002 and 02-a-0004 end the current first data acquisition process.
Step 805, at least one second data acquisition terminal in each first data acquisition terminal acquires and sends sensing data to a server.
And when the first data acquisition terminal with the classification labels of 01-a-0001, 01-a-0002, 01-a-0003 and 01-a-0004 detects that the stored classification label comprises the identification code 01-a-NU LL carried by the first acquisition instruction, the first data acquisition terminal with the classification labels of 01-a-0001, 01-a-0002, 01-a-0003 and 01-a-0004 is determined as the second data acquisition terminal, and the second data acquisition terminal acquires and transmits the sensing data to the server.
Step 806, the server receives the sensing data collected and sent by at least one second data collection terminal, determines a first total amount of the second data collection terminals carrying the identification codes from each first data collection terminal, detects a second total amount of each second data collection terminal sending the sensing data, and determines a first data collection rate by using the first total amount and the second total amount.
The server receives the sensing data acquired and sent by the second data acquisition terminals with the classification labels of 01-a-0001, 01-a-0002 and 01-a-0003, determines that the first total amount of the second data acquisition terminals carrying 01-a-NU LL is 4 according to the stored classification labels of 12 first data acquisition terminals, and detects that the second total amount of the second data acquisition terminals sending the sensing data is 3, so that the first data acquisition rate is determined to be 75%.
In step 807, the server detects whether the first data acquisition rate is not less than a preset threshold, if so, the server determines that the sensing data is valid, and if not, step 808 is executed.
Given that the preset threshold is 90%, the preset threshold is an empirical value, and the first data acquisition rate determined by the above steps is 75%, which is less than the preset threshold 90%.
And 808, detecting each target data acquisition terminal which does not send the sensing data from each second data acquisition terminal by the server.
The server side determines that the classification labels of 4 second data acquisition terminals corresponding to the identification codes 01-a-NU LL are 01-a-0001, 01-a-0002, 01-a-0003 and 01-a-0004 respectively after receiving a trigger signal carrying the identification code 01-a-NU LL according to the stored classification labels of 12 first data acquisition terminals, the stored classification labels are simultaneously sent to the server side when the second data acquisition terminals acquire and send sensing data, and the server side receives the sensing data acquired and sent by the second data acquisition terminals with the classification labels of 01-a-0001, 01-a-0002 and 01-a-0003, so that the second data acquisition terminal with the classification label of 01-a-0004 is determined to be a target data acquisition terminal from the 4 second data acquisition terminals.
Step 809, the server broadcasts a second acquisition instruction carrying the classification label of the target data acquisition terminal for the target data acquisition terminal.
And the server broadcasts a second acquisition instruction carrying the classification label 01-a-0004 aiming at the target data acquisition terminal with the classification label 01-a-0004.
And step 810, when the received classification label carried by the second acquisition instruction is consistent with the stored classification label, each target data acquisition terminal acquires and sends the sensing data to the server.
And after receiving a second acquisition instruction carrying 01-a-0004, the target data acquisition terminal acquires and sends the sensing data to the server.
Step 811, the server receives the sensing data collected and sent by at least one target data collection terminal, detects a third total amount of each target data collection terminal sending the sensing data, and determines a second data collection rate by using the first total amount, the second total amount, and the third total amount.
The server does not receive the sensing data which is acquired and sent by the target data acquisition terminal with the classification label of 01-a-0004, namely the third total amount is 0, and the second data acquisition rate is still 75%.
In step 812, the server detects whether the second data acquisition rate is not less than a preset threshold, if so, determines that the sensing data is valid, and if not, executes step 813.
The preset threshold value is given to be 90%, and the second data acquisition rate is determined to be 75% and is smaller than the preset threshold value by 90% through the steps.
Step 813, the server determines the classification label of each target data acquisition terminal that does not send the sensing data, and sends an alarm signal.
The server side determines the classification label 01-a-0004 of the target data acquisition terminal which does not send the sensing data, and sends out an alarm signal to remind a user of overhauling the first data acquisition terminal with the classification label 01-a-0004.
An embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can be caused to execute the data acquisition method provided in any embodiment of the present invention, and is specifically configured to execute the methods shown in fig. 1 and fig. 8.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It is further 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 like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A data acquisition method is characterized by being applied to a server side and comprising the following steps:
determining a classification label of each first data acquisition terminal;
receiving a trigger signal carrying an identification code, and broadcasting a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether the classification label of the first data acquisition terminal comprises the identification code carried by the first acquisition instruction;
and receiving sensing data which is acquired and sent by at least one second data acquisition terminal in each first data acquisition terminal, wherein the classification label of the second data acquisition terminal comprises the identification code.
2. The data acquisition method according to claim 1,
after the receiving of the sensing data collected and sent by at least one second data collection terminal in each of the first data collection terminals, the method further includes:
determining a first total amount of the second data acquisition terminals carrying the identification codes from each first data acquisition terminal;
detecting a second total amount of each second data acquisition terminal which sends the sensing data;
and determining a data acquisition rate by using the first total amount and the second total amount, detecting whether the data acquisition rate is not less than a preset threshold value, and if so, determining that the sensing data is valid.
3. The data acquisition method according to claim 2,
the classification labels of the first data acquisition terminals are different;
then the process of the first step is carried out,
when the data acquisition rate is less than a preset threshold, the method further comprises the following steps:
detecting each target data acquisition terminal which does not send the sensing data from each second data acquisition terminal;
and broadcasting a second acquisition instruction carrying the classification label of the target data acquisition terminal aiming at each target data acquisition terminal.
4. The data acquisition method according to any one of claims 1 to 3,
the classification label includes: a hierarchy label composed of at least two of the area identification code, the type identification code, and the area number identification code.
5. A server, comprising:
the label determining module is used for determining the classification label of each first data acquisition terminal;
the instruction broadcasting module is used for receiving a trigger signal carrying an identification code and broadcasting a first acquisition instruction carrying the identification code, so that the first data acquisition terminal receives the first acquisition instruction and detects whether the classification label of the first data acquisition terminal comprises the identification code carried by the first acquisition instruction;
the data receiving module is used for receiving the sensing data which is acquired and sent by at least one second data acquisition terminal in the first data acquisition terminals, and the classification labels of the second data acquisition terminals comprise the identification codes.
6. The server according to claim 5,
further comprising: an acquisition rate calculation module; wherein the content of the first and second substances,
the acquisition rate calculation module comprises: the device comprises a first total amount determining unit, a second total amount determining unit and an acquisition rate calculating unit;
the first total amount determining unit is used for determining a first total amount of the second data acquisition terminals carrying the identification codes from each first data acquisition terminal;
the second total amount determining unit is configured to detect a second total amount of each of the second data acquisition terminals that send the sensing data;
and the acquisition rate calculation unit is used for determining a data acquisition rate by using the first total amount and the second total amount, detecting whether the data acquisition rate is not less than a preset threshold value, and if so, determining that the sensing data is valid.
7. The server according to claim 6,
the classification labels of the first data acquisition terminals are different;
then the process of the first step is carried out,
when the data acquisition rate is smaller than a preset threshold, the acquisition rate calculation module further comprises: a detection unit;
the detection unit is configured to detect, from each of the second data acquisition terminals, each target data acquisition terminal that does not send the sensing data, and trigger the instruction broadcasting module, where the instruction broadcasting module is configured to broadcast a second acquisition instruction that carries the classification tag of the target data acquisition terminal, under the trigger of the detection unit.
8. A data acquisition system, comprising:
at least two data acquisition terminals, and a server according to any one of claims 5 to 7;
the data acquisition terminal is used for pre-storing the classification label of the data acquisition terminal; receiving an acquisition instruction broadcasted by a server, and detecting whether the stored classification label comprises an identification code carried by the acquisition instruction; and when the classification label comprises the identification code carried by the acquisition instruction, acquiring and sending sensing data to the server.
9. The data acquisition system of claim 8,
the data acquisition terminal comprises:
the device comprises a storage module, a broadcast receiving module and a data sending module;
the storage module is used for pre-storing the classification label of the data acquisition terminal;
the broadcast receiving module is used for receiving an acquisition instruction broadcasted by a server and detecting whether the stored classification label comprises an identification code carried by the acquisition instruction;
and the data sending module is used for collecting and sending the sensing data to the server when the classification label comprises the identification code carried by the collection instruction.
10. A readable medium comprising executable instructions which, when executed by a processor of an electronic device, cause the electronic device to perform the method of any of claims 1 to 4.
CN201910078219.6A 2019-01-28 2019-01-28 Data acquisition method, server, system and readable medium Withdrawn CN111490881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910078219.6A CN111490881A (en) 2019-01-28 2019-01-28 Data acquisition method, server, system and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910078219.6A CN111490881A (en) 2019-01-28 2019-01-28 Data acquisition method, server, system and readable medium

Publications (1)

Publication Number Publication Date
CN111490881A true CN111490881A (en) 2020-08-04

Family

ID=71795821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910078219.6A Withdrawn CN111490881A (en) 2019-01-28 2019-01-28 Data acquisition method, server, system and readable medium

Country Status (1)

Country Link
CN (1) CN111490881A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910972A (en) * 2021-01-21 2021-06-04 深圳市九洲电器有限公司 Data acquisition method, terminal and data acquisition system
CN113340357A (en) * 2021-07-05 2021-09-03 山东国稳电气有限公司 GIS equipment state on-line monitoring system
WO2023083026A1 (en) * 2021-11-12 2023-05-19 华为技术有限公司 Data acquisition method and system, and related device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910972A (en) * 2021-01-21 2021-06-04 深圳市九洲电器有限公司 Data acquisition method, terminal and data acquisition system
CN113340357A (en) * 2021-07-05 2021-09-03 山东国稳电气有限公司 GIS equipment state on-line monitoring system
WO2023083026A1 (en) * 2021-11-12 2023-05-19 华为技术有限公司 Data acquisition method and system, and related device

Similar Documents

Publication Publication Date Title
CN111490881A (en) Data acquisition method, server, system and readable medium
CN108776616B (en) Method for determining credible state of block chain node, block chain link point and system
CN107888703B (en) Information pushing method and device, server and readable storage medium
CN105553769A (en) Data collecting-analyzing system and method
CN113395200B (en) Message pushing method and system, client, storage medium and processor
US20160335279A1 (en) Method for loading website commenting information, and browser client
CN112866260A (en) Flow detection method combining cloud computing and user behavior analysis and big data center
CN108574839B (en) Bayonet equipment abnormity detection method and device
CN111079478A (en) Unmanned goods selling shelf monitoring method and device, electronic equipment and system
CN112257649A (en) Article identification method, model training method, device and electronic equipment
CN112235722A (en) Information output method and device, computer equipment and readable storage medium
CN110505177B (en) Information collection system, terminal equipment and remote host
CN108388616B (en) Data collection device, method, system and computer readable storage medium
CN112115745A (en) Method, device and system for identifying code missing scanning behaviors of commodities
CN110083775A (en) A kind of configuration method and configuration device for recommending resource
CN113094248A (en) User behavior data analysis method and device, electronic equipment and medium
CN113609389A (en) Community platform information pushing method and system
CN112700312A (en) Method, server, client and system for settling account of object
CN111259274A (en) Information processing method, device, equipment and information display device
CN110503284B (en) Statistical method and device based on queuing data
CN107491332B (en) Method and device for identifying false installation of application program and server
CN110942619A (en) Vehicle determination method, device and system and electronic equipment
CN114780304A (en) Smart city operation and maintenance management method based on big data and cloud platform
CN112163442A (en) Graphic code recognition system, method and device
CN110874277B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200804

WW01 Invention patent application withdrawn after publication