CN115061878B - Data transmission method and device, electronic equipment and storage medium - Google Patents

Data transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115061878B
CN115061878B CN202210752734.XA CN202210752734A CN115061878B CN 115061878 B CN115061878 B CN 115061878B CN 202210752734 A CN202210752734 A CN 202210752734A CN 115061878 B CN115061878 B CN 115061878B
Authority
CN
China
Prior art keywords
monitoring
log
data
display
fire
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.)
Active
Application number
CN202210752734.XA
Other languages
Chinese (zh)
Other versions
CN115061878A (en
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.)
Wanlin Fire Technology Co ltd
Original Assignee
Wanlin Fire 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 Wanlin Fire Technology Co ltd filed Critical Wanlin Fire Technology Co ltd
Priority to CN202210752734.XA priority Critical patent/CN115061878B/en
Publication of CN115061878A publication Critical patent/CN115061878A/en
Application granted granted Critical
Publication of CN115061878B publication Critical patent/CN115061878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3068Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data format conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • G06Q50/265Personal security, identity or safety

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Educational Administration (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)
  • Alarm Systems (AREA)

Abstract

The application provides a data transmission method, a data transmission device, electronic equipment and a storage medium. The method comprises the steps of obtaining a first data storage format of a fire-fighting host and a second data storage format of a fire-fighting platform; according to the first data storage format, a monitoring log stored in the fire-fighting host is called, wherein the monitoring log comprises monitoring content and acquisition time of the monitoring content; according to the first data storage format, the second data storage format, the monitoring log and a preset format conversion model, converting the monitoring log into a display log, wherein the display log comprises monitoring content and acquisition time of the monitoring content; screening sub-display logs with bidding value higher than a threshold value according to the display logs and a preset data screening model, and outputting the screened display logs to a fire platform. In this way, the arrangement and statistics of the fire platform on the data are facilitated, and part of invalid data can be screened out before the display log is output to the fire platform, so that the data redundancy of the fire platform is reduced.

Description

Data transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, electronic device, and storage medium.
Background
The security protection is an important foundation of urban security, especially the real-time monitoring and investigation of fire-fighting equipment with potential high-risk environmental problems, and is a job which needs to be paid attention to for maintaining social public security and guaranteeing the benefits of people. In the field of fire control informatization, a fire control big data platform is gradually built all over the country.
However, some fire-fighting hosts at present can only be applied locally, and the types of processors of the fire-fighting hosts configured in different areas and different periods are different, so that data sharing with a fire-fighting big data platform cannot be realized.
Disclosure of Invention
According to an embodiment of the application, a data transmission method, a data transmission device, electronic equipment and a storage medium are provided.
In a first aspect of the present application, a data transmission method is provided. The method comprises the following steps:
acquiring a first data storage format of a fire-fighting host and a second data storage format of a fire-fighting platform;
according to the first data storage format, a monitoring log stored in a fire-fighting host is called, wherein the monitoring log comprises monitoring content and acquisition time of the monitoring content;
according to the first data storage format, the second data storage format, the monitoring log and a preset format conversion model, converting the monitoring log into a display log, wherein the display log comprises monitoring content and acquisition time of the monitoring content;
and screening sub-display logs with bidding values higher than a threshold according to the display logs and a preset data screening model, and outputting the screened display logs to a fire platform.
Optionally, the monitoring log stored in the fire-fighting host is called according to the first data storage format:
determining the storage position of a monitoring log in the fire-fighting host according to the first storage mode and a preset storage position comparison table;
and calling the monitoring log stored in the fire-fighting host according to the storage position.
Optionally, the format conversion model is characterized as:
determining a data retrieval rule according to the first data storage format;
based on the data calling rule, calling the monitoring data in the monitoring log;
the monitoring data is compiled into a presentation log based on a second data storage format, the presentation log being stored in the second data storage format.
Optionally, the data screening model is characterized by:
dividing the display log into a plurality of sub-display logs by taking a preset time period as a dividing rule according to the acquisition time of the monitoring content in the display log;
calculating the collection number of the monitoring content in each sub-display log, and determining a first score according to the collection number of the monitoring content and the standard collection number in a preset time period;
analyzing the continuity of the collection time of the monitoring content in the sub-display log, and determining a second score according to the continuity;
the degree of value of the data is determined from the first score and the second score.
Optionally, determining the first score according to the number of collected monitored contents and the standard number of collected monitored contents in the preset time period includes:
determining the duty ratio of the collection number according to the collection number of the monitoring content and the standard collection number in a preset time period;
and determining a first score according to the acquired number duty ratio and a preset first comparison table.
Optionally, the analyzing the continuity of the collection time of the monitored content in the sub-presentation log, and determining the second score according to the continuity includes:
taking a preset standard acquisition time as a time axis, and matching the acquisition time of the monitoring content in the sub-display log with the standard acquisition time one by one;
acquiring monitoring content successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring content continuously successfully matched;
taking the monitoring content with the continuous quantity larger than the preset quantity value as an effective data segment;
a second score is determined based on the number of valid data segments and the consecutive number in each valid data segment.
According to the data transmission method, the first data storage format of the fire-fighting host and the second storage format of the fire-fighting host can be obtained, the monitoring log stored in the fire-fighting host in the first data storage format is converted into the display log stored in the second data storage format, data in the display log is screened, and the screened sub-display log with the value higher than the threshold value is output to a value fire-fighting platform. Under the condition that the types of the processors in the fire-fighting host are different, the monitoring log in the fire-fighting host can be adjusted out and converted into a second data storage format which can be identified by the fire-fighting platform, and the data can be conveniently tidied and counted by the fire-fighting platform. Before the display log is output to the fire platform, the content of the display log is screened, part of invalid data can be screened out, and the data redundancy of the fire platform is reduced.
In a second aspect of the present application, a data transmission apparatus is provided. The device comprises:
the acquisition module is used for acquiring a first data storage format of the fire-fighting host and a second data storage format of the fire-fighting platform;
the calling module is used for calling the monitoring log stored in the fire-fighting host according to the first data storage format, wherein the monitoring log comprises monitoring content and the acquisition time of the monitoring content;
the conversion module is used for converting the monitoring log into a display log according to the first data storage format, the second data storage format, the monitoring log and a preset format conversion model, wherein the display log comprises monitoring content and acquisition time of the monitoring content;
and the screening module is used for screening the sub-display logs with the bidding value higher than the threshold value according to the display logs and a preset data screening model, and outputting the screened display logs to the fire platform.
Optionally, the format conversion model is characterized as:
determining a data retrieval rule according to the first data storage format;
based on the data calling rule, calling the monitoring data in the monitoring log;
the monitoring data is compiled into a presentation log based on a second data storage format, the presentation log being stored in the second data storage format.
In a third aspect of the present application, an electronic device is provided. The electronic device includes: a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method as described above when executing the program.
In a fourth aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as according to the first aspect of the present application.
It should be understood that the description in this summary is not intended to limit key or critical features of embodiments of the present application, nor is it intended to be used to limit the scope of the present application. Other features of the present application will become apparent from the description that follows.
Drawings
The above and other features, advantages and aspects of embodiments of the present application will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, wherein like or similar reference numerals denote like or similar elements, in which:
FIG. 1 illustrates a schematic diagram of an exemplary operating environment in which embodiments of the present application can be implemented;
fig. 2 shows a flow chart of a data transmission method according to an embodiment of the present application;
fig. 3 shows a block diagram of a data transmission device according to an embodiment of the present application;
fig. 4 shows a schematic diagram of a structure of a terminal device or a server suitable for implementing an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
According to the data transmission method, the first data storage format of the fire-fighting host and the second storage format of the fire-fighting host can be obtained, the monitoring log stored in the fire-fighting host in the first data storage format is converted into the display log stored in the second data storage format, data in the display log is screened, and the screened sub-display log with the value higher than the threshold value is output to a value fire-fighting platform. Under the condition that the types of the processors in the fire-fighting host are different, the monitoring log in the fire-fighting host can be adjusted out and converted into a second data storage format which can be identified by the fire-fighting platform, and the data can be conveniently tidied and counted by the fire-fighting platform. Before the display log is output to the fire-fighting platform, the content of the display log is screened, part of invalid data can be sunk, and the data redundancy of the fire-fighting platform is reduced.
FIG. 1 illustrates a schematic diagram of an exemplary operating environment 100 in which embodiments of the present application can be implemented. In the operating environment, a fire host 101, a data transmission module 102 and a fire platform 103 are included.
Fig. 2 shows a flow chart of a data transmission method according to an embodiment of the present application. The method may be performed 102 by the data transmission module of fig. 1.
Step S100, a first data storage format of the fire-fighting host and a second data storage format of the fire-fighting platform are obtained.
In this embodiment of the present application, the manner of obtaining the first data storage format of the fire-fighting host may be obtaining a chip model of the fire-fighting host, and determining the first data storage format according to the chip model and a preset storage format comparison table. The mode of obtaining the second data storage format of the fire platform may be that the chip model of the fire platform is obtained first, and then the second data storage format of the fire platform is determined according to the chip signal of the processor and the storage format comparison table. Of course, the number of fire-fighting platforms is small, and typically many fire-fighting hosts together output data to one fire-fighting platform that matches one data transmission module, so the second data storage format of the fire-fighting platform may be pre-stored.
Step 200, a monitoring log stored in the fire-fighting host is called according to the first data storage format, wherein the monitoring log comprises monitoring content and acquisition time of the monitoring content.
In this embodiment of the present application, the manner of retrieving the monitoring log may be to determine a storage location of the monitoring log in the fire-fighting host according to the first data storage mode and a preset storage location comparison table, and retrieve the monitoring log stored in the fire-fighting host according to the storage location, where the monitoring log includes detection content and a collection time of the detection content.
The monitoring content can comprise temperature information, smoke information, humidity information and the like, the acquisition time of the detection content can be in a daily unit or an hour unit, and the monitoring content acquired by the fire-fighting host is mainly.
In a specific example, after determining that the monitoring log is stored in the memory in the TXT format according to the first storage format of the fire engine, a new folder is created for storing the monitoring log every time the detection data is collected. Therefore, when the monitoring log is acquired, the position of the folder is locked according to the storage position, and the monitoring content stored in each folder is called.
And step S300, converting the monitoring log into a display log according to the first data storage format, the second data storage format, the monitoring log and a preset format conversion model, wherein the display log comprises monitoring content and acquisition time of the monitoring content.
In the embodiment of the present application, the format conversion model is characterized as: determining a data calling rule according to the first data storage format, calling the monitoring data in the monitoring log based on the data calling rule, generating a display log according to the monitoring data based on the second data storage format, and storing the display log in the second data storage format.
The retrieving rule may be that, after a folder storing the monitoring log is found, the stored monitoring data in the TXT file in the folder is retrieved, where the monitoring data specifically includes temperature data, temperature acquisition time, smoke data, smoke acquisition time, and the like.
Taking the temperature data as an example, the second data storage format may be a storage format of an Excel table, specifically, the second column may be specific temperature data in a first column of the table, and the second column corresponds to the temperature acquisition time, and after all the data are called and inserted into the Excel table, a display log is generated so as to count the data.
And step 400, screening sub-display logs with bidding values higher than a threshold according to the display logs and a preset data screening model, and outputting the screened display logs to a fire platform.
In an embodiment of the present application, the data screening model is characterized as:
step S410, dividing the display log into a plurality of sub-display logs according to the acquisition time of the monitoring content in the display log and by taking a preset time period as a dividing rule.
The preset time period may be a period of one month if the acquisition time of the monitored content is in a unit of day, and a period of one week if the acquisition time of the monitored content is in a unit of hour. The data statistics mode is beneficial to data arrangement and is also convenient for summarizing rules according to the monitoring data in a time period.
Step S420, the collection number of the monitored content in each sub-display log is calculated, and a first score is determined according to the collection number of the monitored content and the standard collection number in a preset time period.
Specifically, the duty ratio of the collection number may be determined according to the collection number of the monitoring content and the standard collection number in the preset time period, and the first score may be determined according to the duty ratio of the collection number and a preset first comparison table.
In a specific example, taking a month as a preset time period, taking 30 pieces of temperature information as a standard acquisition format, if the sub-display log only comprises 27 pieces of temperature information, acquiring the number duty ratio to 90%, and searching a corresponding first score in a first comparison table according to the 90% acquisition number duty ratio. The first comparison table may be that the 100% of the collected number duty cycle corresponds to 100 minutes, and the 90% of the collected number duty cycle corresponds to 90 minutes, that is, the collected number duty cycle is proportional to the first score. Of course, other correspondence relationships are also possible, and are not limited herein.
And step S430, analyzing the continuity of the collection time of the monitoring content in the sub-display log, and determining a second score according to the continuity.
In the embodiment of the present application, a preset standard collection time is taken as a time axis, and the collection time of the monitored content in the sub-display log is matched with the standard collection time one by one; acquiring monitoring content successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring content continuously successfully matched; taking the monitoring content with the continuous quantity larger than the preset quantity value as an effective data segment; and determining a second score according to the number of the effective data segments, the continuous number in each effective data segment and a preset second comparison table.
In a specific example, taking the standard acquisition time as an example of acquisition once a day, the acquisition time of the temperature information in the sub-display log can be matched with the standard acquisition time to determine whether the acquisition time of the temperature information is continuous, and if the temperature information is continuous for 3 days in one month in the sub-display log, the continuous number is 3.
If the acquisition time of one section of temperature information is 4 days continuously and the acquisition time of one section of temperature information is 5 days continuously within one month, and the preset quantity value is 4, the effective data section in the sub-log is 2.
The second comparison table may store a second score value corresponding to a different number of contacts, for example, a consecutive number of 4, and the corresponding second score value is 2.
Step S440, determining the value degree of the data according to the first score and the second score.
The means for determining the value may be to take the sum of the first score and the second score as the value. The first score and the second score may be weighted and summed.
In the embodiment of the application, the value threshold may be set according to the service life of the fire-fighting host, that is, the longer the service life is, the higher the corresponding value threshold is.
The value threshold is lower as the acquisition time is closer to the current time, so that more recent data can be acquired, and data statistics can be facilitated.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required in the present application.
The foregoing is a description of embodiments of the method, and the following further describes embodiments of the device.
Fig. 3 shows a block diagram of a data transmission device according to an embodiment of the present application. The apparatus is shown in fig. 3, the apparatus comprising:
an acquiring module 301, configured to acquire a first data storage format of a fire engine and a second data storage format of a fire platform;
the retrieving module 302 is configured to retrieve a monitoring log stored in the fire-fighting host according to the first data storage format, where the monitoring log includes monitoring content and a collection time of the monitoring content;
the conversion module 303 is configured to convert the monitoring log into a presentation log according to the first data storage format, the second data storage format, the monitoring log and a preset format conversion model, where the presentation log includes monitoring content and a collection time of the monitoring content;
and the screening module 304 is configured to screen sub-presentation logs with bid values higher than a threshold according to the presentation logs and a preset data screening model, and output the screened presentation logs to a fire platform.
The calling module is also used for:
the monitoring log stored in the fire-fighting host is called according to the first data storage format:
determining the storage position of a monitoring log in the fire-fighting host according to the first storage mode and a preset storage position comparison table;
and calling the monitoring log stored in the fire-fighting host according to the storage position.
Optionally, the format conversion model is characterized as:
determining a data retrieval rule according to the first data storage format;
based on the data calling rule, calling the monitoring data in the monitoring log;
the monitoring data is compiled into a presentation log based on a second data storage format, the presentation log being stored in the second data storage format.
Optionally, the data screening model is characterized by:
dividing the display log into a plurality of sub-display logs by taking a preset time period as a dividing rule according to the acquisition time of the monitoring content in the display log;
calculating the collection number of the monitoring content in each sub-display log, and determining a first score according to the collection number of the monitoring content and the standard collection number in a preset time period;
analyzing the continuity of the collection time of the monitoring content in the sub-display log, and determining a second score according to the continuity;
the degree of value of the data is determined from the first score and the second score.
Optionally, determining the first score according to the number of collected monitored contents and the standard number of collected monitored contents in the preset time period includes:
determining the duty ratio of the collection number according to the collection number of the monitoring content and the standard collection number in a preset time period;
and determining a first score according to the acquired number duty ratio and a preset first comparison table.
Optionally, the analyzing the continuity of the collection time of the monitored content in the sub-presentation log, and determining the second score according to the continuity includes:
taking a preset standard acquisition time as a time axis, and matching the acquisition time of the monitoring content in the sub-display log with the standard acquisition time one by one;
acquiring monitoring content successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring content continuously successfully matched;
taking the monitoring content with the continuous quantity larger than the preset quantity value as an effective data segment;
a second score is determined based on the number of valid data segments and the consecutive number in each valid data segment.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the described modules may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
Fig. 4 shows a schematic structural diagram of an electronic device suitable for implementing embodiments of the present application.
As shown in fig. 4, the electronic device includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In RAM 403, various programs and data required for the operation of system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output portion 407 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 408 including a hard disk or the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. The drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, according to embodiments of the present application, the process described above with reference to flowchart fig. 2 may be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 409 and/or installed from the removable medium 411. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 401.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units or modules may also be provided in a processor, for example, as: a processor includes an acquisition module, a retrieval module, a conversion module, and a screening module. Where the names of these units or modules do not constitute a limitation of the unit or module itself in some cases, for example, the acquisition module may also be described as "a module for acquiring a first data storage format of a fire host and a second data storage format of a fire platform".
As another aspect, the present application also provides a computer-readable storage medium that may be included in the electronic device described in the above embodiments; or may be present alone without being incorporated into the electronic device. The computer-readable storage medium stores one or more programs that when executed by one or more processors perform a data transmission method described herein.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the application referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or their equivalents is possible without departing from the spirit of the application. Such as the above-mentioned features and the technical features having similar functions (but not limited to) applied for in this application are replaced with each other.

Claims (7)

1. A data transmission method, comprising:
acquiring a first data storage format of a fire-fighting host and a second data storage format of a fire-fighting platform;
according to the first data storage format, a monitoring log stored in a fire-fighting host is called, wherein the monitoring log comprises monitoring content and acquisition time of the monitoring content;
according to the first data storage format, the second data storage format, the monitoring log and a preset format conversion model, converting the monitoring log into a display log, wherein the display log comprises monitoring content and acquisition time of the monitoring content;
determining a value threshold according to the acquisition time of the monitored content in the display log;
screening sub-display logs with bidding values higher than the value threshold according to the display logs and a preset data screening model, and outputting the screened sub-display logs to a fire platform;
the data screening model is characterized in that:
dividing the display log into a plurality of sub-display logs by taking a preset time period as a dividing rule according to the acquisition time of the monitoring content in the display log;
calculating the collection number of the monitoring content in each sub-display log, and determining a first score according to the collection number of the monitoring content and the standard collection number in a preset time period;
analyzing the continuity of the collection time of the monitoring content in the sub-display log, and determining a second score according to the continuity;
determining the degree of value of the data according to the first score and the second score;
the determining the first score according to the collection number of the monitored content and the standard collection number in the preset time period comprises the following steps:
determining the duty ratio of the collection number according to the collection number of the monitoring content and the standard collection number in a preset time period;
determining a first score according to the acquired number duty ratio and a preset first comparison table;
the analyzing the continuity of the collection time of the monitoring content in the sub-display log, and determining the second score according to the continuity comprises:
taking a preset standard acquisition time as a time axis, and matching the acquisition time of the monitoring content in the sub-display log with the standard acquisition time one by one;
acquiring monitoring content successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring content continuously successfully matched;
taking the continuous number of monitoring contents with the number larger than a preset number value as effective data segments;
and determining a second score according to the number of the effective data segments, the continuous number in each effective data segment and a preset second comparison table.
2. The method according to claim 1, wherein the monitoring log stored in the fire host is retrieved according to the first data storage format:
determining the storage position of a monitoring log in a fire-fighting host according to the first data storage format and a preset storage position comparison table;
and calling the monitoring log stored in the fire-fighting host according to the storage position.
3. A data transmission method according to claim 1, wherein the format conversion model is characterized by:
determining a data retrieval rule according to the first data storage format;
based on the data calling rule, calling the monitoring data in the monitoring log;
based on a second data storage format, generating a presentation log according to the monitoring data, wherein the presentation log is stored in the second data storage format.
4. A data transmission apparatus, comprising:
the acquisition module is used for acquiring a first data storage format of the fire-fighting host and a second data storage format of the fire-fighting platform;
the calling module is used for calling the monitoring log stored in the fire-fighting host according to the first data storage format, wherein the monitoring log comprises monitoring content and the acquisition time of the monitoring content;
the conversion module is used for converting the monitoring log into a display log according to the first data storage format, the second data storage format, the monitoring log and a preset format conversion model, wherein the display log comprises monitoring content and acquisition time of the monitoring content;
the screening module is used for determining a value degree threshold according to the acquisition time of the monitored content in the display log, screening sub-display logs with bidding values higher than the value degree threshold according to the display log and a preset data screening model, and outputting the screened sub-display logs to a fire platform;
the data screening model is characterized in that:
dividing the display log into a plurality of sub-display logs by taking a preset time period as a dividing rule according to the acquisition time of the monitoring content in the display log;
calculating the collection number of the monitoring content in each sub-display log, and determining a first score according to the collection number of the monitoring content and the standard collection number in a preset time period;
analyzing the continuity of the collection time of the monitoring content in the sub-display log, and determining a second score according to the continuity;
determining the degree of value of the data according to the first score and the second score;
the determining the first score according to the collection number of the monitored content and the standard collection number in the preset time period comprises the following steps:
determining the duty ratio of the collection number according to the collection number of the monitoring content and the standard collection number in a preset time period;
determining a first score according to the acquired number duty ratio and a preset first comparison table;
the analyzing the continuity of the collection time of the monitoring content in the sub-display log, and determining the second score according to the continuity comprises:
taking a preset standard acquisition time as a time axis, and matching the acquisition time of the monitoring content in the sub-display log with the standard acquisition time one by one;
acquiring monitoring content successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring content continuously successfully matched;
taking the continuous number of monitoring contents with the number larger than a preset number value as effective data segments;
and determining a second score according to the number of the effective data segments, the continuous number in each effective data segment and a preset second comparison table.
5. The data transmission device of claim 4, wherein the format conversion model is characterized by:
determining a data retrieval rule according to the first data storage format;
based on the data calling rule, calling the monitoring data in the monitoring log;
the monitoring data is compiled into a presentation log based on a second data storage format, the presentation log being stored in the second data storage format.
6. An electronic device comprising a memory and a processor, the memory having a computer program stored thereon, wherein the processor, when executing the program, implements the method of any of claims 1-3.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-3.
CN202210752734.XA 2022-06-29 2022-06-29 Data transmission method and device, electronic equipment and storage medium Active CN115061878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210752734.XA CN115061878B (en) 2022-06-29 2022-06-29 Data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210752734.XA CN115061878B (en) 2022-06-29 2022-06-29 Data transmission method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115061878A CN115061878A (en) 2022-09-16
CN115061878B true CN115061878B (en) 2023-07-07

Family

ID=83203680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210752734.XA Active CN115061878B (en) 2022-06-29 2022-06-29 Data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115061878B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107578596A (en) * 2017-07-18 2018-01-12 上海纳普信息科技有限公司 Wireless fire management system
CN111565095B (en) * 2019-02-13 2021-10-26 华为技术有限公司 Data processing method and device and terminal
CN112671848A (en) * 2020-12-07 2021-04-16 广东粤安科技股份有限公司 Method and device for acquiring data of fire fighting equipment and fire fighting management system

Also Published As

Publication number Publication date
CN115061878A (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN109714636B (en) User identification method, device, equipment and medium
US20220084051A1 (en) System and method for processing public sentiment, computer storage medium and electronic device
CN111598713B (en) Cluster recognition method and device based on similarity weight updating and electronic equipment
CN113887551B (en) Target person analysis method based on ticket data, terminal device and storage medium
CN116244387A (en) Entity relationship construction method, device, electronic equipment and storage medium
CN115061878B (en) Data transmission method and device, electronic equipment and storage medium
CN113141613B (en) Communication channel detection method and device and electronic equipment
CN112800006B (en) Log storage method and device for network equipment
CN113590447B (en) Buried point processing method and device
CN110458743B (en) Community management method, device, equipment and storage medium based on big data analysis
CN114240476A (en) Abnormal user determination method, device, equipment and storage medium
CN110674839B (en) Abnormal user identification method and device, storage medium and electronic equipment
US11068236B2 (en) Identification of users across multiple platforms
CN110795424B (en) Characteristic engineering variable data request processing method and device and electronic equipment
CN114090514A (en) Log retrieval method and device for distributed system
CN114546780A (en) Data monitoring method, device, equipment, system and storage medium
CN113111200A (en) Method and device for auditing picture file, electronic equipment and storage medium
CN117112846B (en) Multi-information source license information management method, system and medium
CN110648208B (en) Group identification method and device and electronic equipment
CN114584616B (en) Message pushing method and device, electronic equipment and storage medium
CN113609451B (en) Risk equipment identification method and device based on relational network feature derivation
CN109656961B (en) Method and device for searching homonymous tasks based on data analysis, medium and electronic equipment
CN107729446B (en) Map telephone discrimination method, apparatus, server and medium
CN114676995A (en) Method and device for controlling gas emission and storage medium
CN116955869A (en) News link extraction method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant