CN115061878A - 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
CN115061878A
CN115061878A CN202210752734.XA CN202210752734A CN115061878A CN 115061878 A CN115061878 A CN 115061878A CN 202210752734 A CN202210752734 A CN 202210752734A CN 115061878 A CN115061878 A CN 115061878A
Authority
CN
China
Prior art keywords
monitoring
data
storage format
logs
log
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.)
Granted
Application number
CN202210752734.XA
Other languages
Chinese (zh)
Other versions
CN115061878B (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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • G06Q50/265Personal security, identity or safety

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; calling a monitoring log stored in the fire-fighting host according to a first data storage format, wherein the monitoring log comprises monitoring contents and acquisition time of the monitoring contents; converting the monitoring logs into display logs according to the first data storage format, the second data storage format, the monitoring logs and a preset format conversion model, wherein the display logs comprise monitoring contents and acquisition time of the monitoring contents; and screening out the sub display logs with the value degree higher than the threshold value according to the display logs and a preset data screening model, and outputting the screened display logs to a fire fighting platform. In this way, the data sorting and statistics of the fire fighting platform are facilitated, and before the display logs are output to the fire fighting platform, partial invalid data can be screened out, and the data redundancy of the fire fighting 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, an apparatus, an electronic device, and a storage medium.
Background
The security protection is an important foundation of urban safety, particularly for the real-time monitoring and investigation of fire-fighting equipment with potential high-risk environmental problems, and is a work which must be taken into account to maintain social public safety and guarantee the benefits of people. In the field of fire-fighting informatization, fire-fighting big data platforms are gradually established all over the country.
However, some existing fire-fighting hosts can only be locally applied, and processors of fire-fighting hosts configured in different areas and different periods are different in model, so that data sharing with a fire-fighting big data platform cannot be realized.
Disclosure of Invention
According to the 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;
calling a monitoring log stored in the fire-fighting host according to the first data storage format, wherein the monitoring log comprises monitoring content and acquisition time of the monitoring content;
converting the monitoring logs into display logs according to the first data storage format, the second data storage format, the monitoring logs and a preset format conversion model, wherein the display logs comprise monitoring contents and acquisition time of the monitoring contents;
and screening out the sub display logs with the value degree higher than the threshold value according to the display logs and a preset data screening model, and outputting the screened display logs to a fire fighting 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 in that:
determining a data calling rule according to a first data storage format;
calling monitoring data in the monitoring log based on the data calling rule;
compiling the monitoring data 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 in that:
dividing the display log into a plurality of sub-display logs by taking a preset time period as a division rule according to the acquisition time of the monitoring content in the display log;
calculating the collection number of the monitoring contents in each sub-display log, and determining a first score according to the collection number of the monitoring contents and the standard collection number in a preset time period;
analyzing the continuity of the acquisition time of the monitoring content in the sub-display log, and determining a second score according to the continuity;
determining the worth degree of the data from the first score and the second score.
Optionally, the determining the first score according to the number of the monitored contents collected and the number of the standard collections within the preset time period includes:
determining the duty ratio of the collection number according to the collection number of the monitoring contents and the standard collection number in a preset time period;
and determining a first score according to the duty ratio of the collected number and a preset first comparison table.
Optionally, the analyzing the continuity of the acquisition time of the monitoring content in the sub-presentation log, and determining the second score according to the continuity includes:
matching the acquisition time of the monitoring contents in the sub-display logs with the standard acquisition time one by taking the preset standard acquisition time as a time axis;
acquiring monitoring contents successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring contents successfully matched continuously;
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 and the continuous number in each effective data segment.
The data transmission method can acquire a first data storage format of the fire-fighting host and a second storage format of the fire-fighting host, convert monitoring logs stored in the first data storage format in the fire-fighting host into display logs stored in the second data storage format, screen data in the display logs, and output the screened sub display logs with the value degree higher than a threshold value to the fire-fighting platform. Therefore, under the condition that processor models in the fire fighting host are different, the data transmission method can call the monitoring logs in the fire fighting host, convert the monitoring logs into a second data storage format which can be identified by the fire fighting platform, and facilitate the arrangement and statistics of the fire fighting platform on data. And before exporting the show journal to fire platform, this application screens the content of show journal, can shine out partial invalid data, reduces fire platform's data redundancy.
In a second aspect of the present application, a data transmission apparatus is provided. The device includes:
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 a monitoring log stored in the fire-fighting host according to the first data storage format, wherein the monitoring log comprises monitoring contents and the acquisition time of the monitoring contents;
the conversion module is used for converting the monitoring logs into display logs according to the first data storage format, the second data storage format, the monitoring logs and a preset format conversion model, wherein the display logs comprise monitoring contents and acquisition time of the monitoring contents;
and the screening module is used for screening out the sub display logs with the value degree higher than the threshold value according to the display logs and a preset data screening model, and outputting the screened display logs to a fire fighting platform.
Optionally, the format conversion model is characterized in that:
determining a data calling rule according to a first data storage format;
calling monitoring data in the monitoring log based on the data calling rule;
compiling the monitoring data 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 having a computer program stored thereon and a processor implementing the method as described above when executing the program.
In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the method as according to the first aspect of the present application.
It should be understood that what is described in this summary section is not intended to limit key or critical features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of various embodiments of the present application will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like or similar reference characters designate like or similar elements, and wherein:
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 diagram of a method of data transmission according to an embodiment of the present application;
FIG. 3 shows a block diagram of a data transmission apparatus according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of a terminal device or a server suitable for implementing the embodiments of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in 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 obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making creative efforts shall fall within the protection scope of the present application.
In the application, the disclosed data transmission method can acquire a first data storage format of the fire-fighting host and a second storage format of the fire-fighting host, converts a monitoring log stored in the fire-fighting host in the first data storage format into a display log stored in the second data storage format, screens data in the display log, and outputs the screened sub-display log with the value degree higher than a threshold value to the fire-fighting platform. Therefore, under the condition that processor models in the fire fighting host are different, the data transmission method can call the monitoring logs in the fire fighting host, convert the monitoring logs into a second data storage format which can be identified by the fire fighting platform, and facilitate the arrangement and statistics of the fire fighting platform on data. And before exporting the show journal to fire platform, this application screens the content of show journal, can shine out partial invalid data, reduces fire platform's data redundancy.
FIG. 1 illustrates a schematic diagram of an exemplary operating environment 100 in which embodiments of the present application can be implemented. The fire fighting host 101, the data transmission module 102 and the fire fighting platform 103 are included in the operating environment.
Fig. 2 shows a flow chart of a data transmission method according to an embodiment of the application. The method may be performed 102 by the data transmission module in fig. 1.
And S100, acquiring a first data storage format of the fire fighting host and a second data storage format of the fire fighting platform.
In the embodiment of the application, the first data storage format of the fire-fighting host can be obtained by 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 second data storage format of the fire fighting platform can be obtained by firstly obtaining the chip model of the fire fighting platform and then determining the second data storage format of the fire fighting platform according to the chip signal of the processor and the storage format comparison table. Of course, the number of fire platforms is small, and usually many fire-fighting hosts output data together to one fire platform, and one fire platform is matched with one data transmission module, so that the second data storage format of the fire platform can be prestored.
And S200, calling a monitoring log stored in the fire-fighting host according to the first data storage format, wherein the monitoring log comprises monitoring contents and the acquisition time of the monitoring contents.
In the embodiment of the application, the monitoring logs can be called in a manner that the storage positions of the monitoring logs in the fire-fighting host are determined according to the first data storage mode and a preset storage position comparison table, and then the monitoring logs stored in the fire-fighting host are called according to the storage positions, wherein the monitoring logs comprise detection contents and acquisition time of the detection contents.
The monitoring content can be temperature information, smoke information, humidity information and the like, the acquisition time of the detection content can be day unit, or hour unit, and the monitoring content acquired by the fire-fighting host is mainly used.
In a specific example, it may be determined that the monitoring log is stored in the memory in the TXT format after the first storage format of the fire host, and a new folder is established for storing the monitoring log every time the detection data is collected. Therefore, when the monitoring log is acquired, the monitoring content stored in each folder is recalled more than that which locks the folder position according to the storage position.
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 contents and acquisition time of the monitoring contents.
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 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 retrieval rule may be that after the folder storing the monitoring log is found, the stored monitoring data in the TXT file in the folder is retrieved, and 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, and specifically may be specific temperature data in a first column of the table, and the second column corresponds to temperature acquisition time, and after all the data are called and inserted into the Excel table, a display log is generated, so as to facilitate statistics on the data.
And S400, screening out sub-display logs with the value degree higher than a threshold value according to the display logs and a preset data screening model, and outputting the screened-out display logs to a fire fighting platform.
In the embodiment of the present application, the data screening model is characterized as follows:
step S410, dividing the display log into a plurality of sub-display logs by taking a preset time period as a division rule according to the acquisition time of the monitoring content in the display log.
If the collection time of the monitoring content is in units of days, the preset time period may be one month as a period, and if the collection time of the monitoring content is in units of hours, the preset time period may be in units of weeks. The data statistical mode is beneficial to sorting the data and is also convenient for summarizing the rule according to the monitoring data in a time period.
Step S420, calculating the number of collected monitoring contents in each sub-display log, and determining a first score according to the number of collected monitoring contents and the number of standard collected monitoring contents in a preset time period.
Specifically, the duty ratio of the collected number may be determined according to the collected number of the monitoring content and the standard collected number within the preset time period, and the first score may be determined according to the duty ratio of the collected number and a preset first lookup table.
In a specific example, with a month as a preset time period, 30 pieces of temperature information are used as a standard acquisition format, if the sub-presentation log only includes 27 pieces of temperature information, the duty ratio of the acquired number is 90%, and then the corresponding first score is searched in the first lookup table according to 90% of the duty ratio of the acquired number. In the first comparison table, 100% of the duty ratio of the collected number corresponds to 100 minutes, 90% of the duty ratio of the collected number corresponds to 90 minutes, namely, the duty ratio of the collected number is in direct proportion to the first score. Of course, other corresponding relationships are also possible, and are not limited herein.
And step S430, analyzing the continuity of the acquisition time of the monitoring content in the sub-display log, and determining a second score according to the continuity.
In the embodiment of the application, the preset standard acquisition time can be used as a time axis, and the acquisition time of the monitoring contents in the sub-display logs is matched with the standard acquisition time one by one; acquiring monitoring contents successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring contents successfully matched continuously; 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 collection time as once per day as an example, the collection time of the temperature information in the sub-presentation log may be matched with the standard collection time to determine whether the collection time of the temperature information is continuous, and if there are 3 consecutive days in a month in the sub-presentation day, the number of the continuous days is 3.
If the collection time of one section of temperature information is 4 continuous days, the collection time of another section of temperature information is 5 continuous days, and the preset quantity value is 4 in one month, the valid data end in the sub-log is 2.
The second control table may store second score values corresponding to different contact numbers, for example, if the continuous number is 4, the corresponding second score value is 2.
And step S440, determining the value degree of the data according to the first score and the second score.
The manner of determining the degree of merit may be to take the sum of the first score and the second score as the degree of merit. Or the first score and the second score may be weighted separately and then summed.
In the embodiment of the application, the value degree threshold value can be set according to the service life of the fire fighting host, namely, the longer the service life is, the higher the corresponding value degree threshold value is.
The value degree threshold value is lower when the collection time month is close 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 above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
The above is a description of method embodiments, and the embodiments of the present application are further described below by way of apparatus embodiments.
Fig. 3 shows a block diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 3, the apparatus includes:
an obtaining module 301, configured to obtain a first data storage format of a fire-fighting host and a second data storage format of a fire-fighting platform;
the invoking module 302 is configured to invoke a monitoring log stored in the fire-fighting host according to the first data storage format, where the monitoring log includes monitoring content and acquisition time of the monitoring content;
the conversion module 303 is configured to convert 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, where the display log includes monitoring content and acquisition time of the monitoring content;
and the screening module 304 is used for screening out the sub-display logs with the value degree higher than the threshold value according to the display logs and a preset data screening model, and outputting the screened display logs to a fire fighting platform.
The retrieval module is further configured to:
the monitoring logs stored in the fire fighting host are 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 in that:
determining a data calling rule according to a first data storage format;
calling monitoring data in the monitoring log based on the data calling rule;
compiling the monitoring data 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 in that:
dividing the display log into a plurality of sub-display logs by taking a preset time period as a division rule according to the acquisition time of the monitoring content in the display log;
calculating the collection number of the monitoring contents in each sub-display log, and determining a first score according to the collection number of the monitoring contents and the standard collection number in a preset time period;
analyzing the continuity of the acquisition time of the monitoring content in the sub-display log, and determining a second score according to the continuity;
determining the worth degree of the data from the first score and the second score.
Optionally, the determining the first score according to the number of the collected monitoring contents and the number of the standard collected monitoring contents within the preset time period includes:
determining the duty ratio of the collected number according to the collected number of the monitoring contents and the standard collected number in a preset time period;
and determining a first score according to the duty ratio of the collected number and a preset first comparison table.
Optionally, the analyzing the continuity of the acquisition time of the monitoring content in the sub-presentation log, and determining the second score according to the continuity includes:
matching the acquisition time of the monitoring contents in the sub-display logs with the standard acquisition time one by taking the preset standard acquisition time as a time axis;
acquiring monitoring contents successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring contents successfully matched continuously;
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 and the continuous number in each effective data segment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 4 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present application.
As shown in fig. 4, the electronic apparatus includes a Central Processing Unit (CPU)401 that can perform various appropriate actions and processes in accordance with 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 the RAM 403, various programs and data necessary for the operation of the system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via 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 section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and 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. A driver 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 mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
In particular, according to embodiments of the present application, the process described above with reference to the flowchart fig. 1 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 illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The above-described functions defined in the system of the present application are executed 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present application, 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 this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. 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 thereof. 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 flowchart 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 hardware. The described units or modules may also be provided in a processor, and may be described 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 in some cases constitute a limitation on the units or modules themselves, 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, which may be included in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer-readable storage medium stores one or more programs which, when executed by one or more processors, perform a data transmission method described herein.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application referred to in the present application is not limited to the embodiments with a particular combination of the above-mentioned features, but also encompasses other embodiments with any combination of the above-mentioned features or their equivalents without departing from the spirit of the application. For example, the above features may be replaced with (but not limited to) features having similar functions as those described in this application.

Claims (10)

1. A method of data transmission, comprising:
acquiring a first data storage format of a fire fighting host and a second data storage format of a fire fighting platform;
calling a monitoring log stored in the fire-fighting host according to the first data storage format, wherein the monitoring log comprises monitoring content and acquisition time of the monitoring content;
converting the monitoring logs into display logs according to the first data storage format, the second data storage format, the monitoring logs and a preset format conversion model, wherein the display logs comprise monitoring contents and acquisition time of the monitoring contents;
and screening the sub display logs with the value degrees higher than the value degree threshold value according to the display logs and a preset data screening model, and outputting the screened sub display logs to a fire fighting platform.
2. A data transfer method according to claim 1, wherein the retrieving of the monitoring log stored in the fire-fighting host according to the first data storage format comprises:
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.
3. A data transmission method according to claim 1, characterized in that said format conversion model is characterized by:
determining a data calling rule according to a first data storage format;
calling monitoring data in the monitoring log based on the data calling rule;
and generating a display log according to the monitoring data based on a second data storage format, wherein the display log is stored in the second data storage format.
4. A method of data transmission according to claim 1, wherein 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 division rule according to the acquisition time of the monitoring content in the display log;
calculating the collection number of the monitoring contents in each sub-display log, and determining a first score according to the collection number of the monitoring contents and the standard collection number in a preset time period;
analyzing the continuity of the acquisition time of the monitoring content in the sub-display log, and determining a second score according to the continuity;
determining the worth degree of the data from the first score and the second score.
5. The data transmission method according to claim 4, wherein the determining the first score according to the number of collected monitoring contents and the number of standard collected monitoring contents within the preset time period comprises:
determining the duty ratio of the collected number according to the collected number of the monitoring contents and the standard collected number in a preset time period;
and determining a first score according to the duty ratio of the collected number and a preset first comparison table.
6. The data transmission method of claim 5, wherein the analyzing the continuity of the collection time of the monitoring content in the sub-presentation log, and the determining the second score according to the continuity comprises:
matching the acquisition time of the monitoring contents in the sub-display logs with the standard acquisition time one by taking the preset standard acquisition time as a time axis;
acquiring monitoring contents successfully matched with a time axis, and acquiring the continuous quantity of acquisition time of the monitoring contents successfully matched continuously;
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.
7. A data transmission apparatus, comprising:
the acquisition module (301) 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 (302) is used for calling a monitoring log stored in the fire fighting host according to the first data storage format, wherein the monitoring log comprises monitoring content and acquisition time of the monitoring content;
the conversion module (303) is used for converting the monitoring logs into display logs according to the first data storage format, the second data storage format, the monitoring logs and a preset format conversion model, wherein the display logs comprise monitoring contents and acquisition time of the monitoring contents;
and the screening module (304) is used for screening out the sub-display logs with the value degree higher than the threshold value according to the display logs and a preset data screening model, and outputting the screened display logs to a fire fighting platform.
8. A data transmission apparatus according to claim 7, wherein the format conversion model is characterized by:
determining a data calling rule according to a first data storage format;
calling monitoring data in the monitoring log based on the data calling rule;
compiling the monitoring data into a presentation log based on a second data storage format, the presentation log being stored in the second data storage format.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method of any one of claims 1 to 6.
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 true CN115061878A (en) 2022-09-16
CN115061878B 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)

Citations (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
CN111565095A (en) * 2019-02-13 2020-08-21 华为技术有限公司 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

Patent Citations (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
CN111565095A (en) * 2019-02-13 2020-08-21 华为技术有限公司 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
CN115061878B (en) 2023-07-07

Similar Documents

Publication Publication Date Title
CN111580855B (en) Policy issuing method and system based on full-flow gray level issuing and electronic equipment
US20220084051A1 (en) System and method for processing public sentiment, computer storage medium and electronic device
CN113377372A (en) Business rule analysis method and device, computer equipment and storage medium
CN113887551A (en) Target person analysis method based on ticket data, terminal device and storage medium
CN110782128B (en) User occupation label generation method and device and electronic equipment
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
CN115221892A (en) Work order data processing method and device, storage medium and electronic equipment
CN114546780A (en) Data monitoring method, device, equipment, system and storage medium
CN114581219A (en) Anti-telecommunication network fraud early warning method and system
CN114090514A (en) Log retrieval method and device for distributed system
CN114723455A (en) Service processing method and device, electronic equipment and storage medium
CN115145623A (en) White box monitoring method, device, equipment and storage medium of software business system
CN111178696A (en) Service processing time overtime early warning method and device
CN113282471B (en) Equipment performance testing method and device and terminal equipment
CN110795424B (en) Characteristic engineering variable data request processing method and device and electronic equipment
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
CN111126769A (en) Performance statistical data processing method, device, medium and equipment
CN115270970A (en) Network security emergency linkage method and system, and intelligent terminal storage medium
CN112232076A (en) Script processing method and device and electronic equipment
CN116955869A (en) News link extraction method and device, storage medium and electronic equipment
CN117009179A (en) Method and device for realizing monitoring micro-service, storage medium and electronic equipment
CN116701423A (en) Method, device, equipment and storage medium for updating operation logic library

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