CN111405008A - Coal mine data transmission method, device and system - Google Patents

Coal mine data transmission method, device and system Download PDF

Info

Publication number
CN111405008A
CN111405008A CN202010153503.8A CN202010153503A CN111405008A CN 111405008 A CN111405008 A CN 111405008A CN 202010153503 A CN202010153503 A CN 202010153503A CN 111405008 A CN111405008 A CN 111405008A
Authority
CN
China
Prior art keywords
client
file
transmitted
coal mine
clients
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
CN202010153503.8A
Other languages
Chinese (zh)
Other versions
CN111405008B (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.)
Jingying Digital Technology Co Ltd
Original Assignee
Jingying Digital 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 Jingying Digital Technology Co Ltd filed Critical Jingying Digital Technology Co Ltd
Priority to CN202010153503.8A priority Critical patent/CN111405008B/en
Publication of CN111405008A publication Critical patent/CN111405008A/en
Application granted granted Critical
Publication of CN111405008B publication Critical patent/CN111405008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The embodiment of the invention discloses a coal mine data transmission method, a device and a system. The method comprises the following steps: acquiring heartbeat data and communication addresses of one or more clients, and determining a file client to be transmitted according to the heartbeat data of the one or more clients; acquiring a historical transmission record, and determining whether the client of the file to be transmitted is a current active client or not according to a comparison result of heartbeat data of the client of the file to be transmitted and the historical transmission record; and when the client side of the file to be transmitted is the current active client side, the client side of the file to be transmitted is informed to send the file to be transmitted according to the communication address, and the historical transmission record is updated. According to the technical scheme provided by the invention, the client in the active state is utilized to acquire the file to be transmitted by judging which client is in the active state at present, so that the stability and reliability of coal mine data transmission are improved.

Description

Coal mine data transmission method, device and system
Technical Field
The embodiment of the invention relates to the field of data transmission, in particular to a coal mine data transmission method, a device and a system.
Background
As shown in fig. 2, in a conventional coal mine communication network, various terminal devices such as a tunneling device and a detection device communicate with remote center software through local client software. For example, the client a, the client B, and the client c report their data to the lan 001, and then the lan 001 reports the data to the remote server Y. However, in actual operation, due to the reasons of a large number of shelters, weak signals and the like in a coal mine, the phenomenon that the local area network 001 cannot timely transmit signals to the remote server Y occurs occasionally, so that the remote server Y is difficult to comprehensively and timely acquire data of various clients, and the problems of inaccurate analysis result, poor reliability, poor user experience and the like of the remote server Y are caused. How to improve the stability and reliability of coal mine data transmission is a technical problem to be solved urgently in the field.
Disclosure of Invention
The embodiment of the invention aims to provide a coal mine data transmission method, a coal mine data transmission device and a coal mine data transmission system, which are used for improving the stability and reliability of coal mine data transmission.
In order to achieve the above object, the embodiments of the present invention mainly provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a coal mine data transmission method, which is applied to a central end in a coal mine data transmission system, and the method includes:
acquiring heartbeat data and communication addresses of one or more clients, and determining a file client to be transmitted according to the heartbeat data of the one or more clients;
acquiring a historical transmission record, and determining whether the file client to be transmitted is a current active client or not according to a comparison result of heartbeat data of the file client to be transmitted and the historical transmission record;
and when the client side of the file to be transmitted is the current active client side, the client side of the file to be transmitted is informed to send the file to be transmitted according to the communication address, and the historical transmission record is updated.
By the technical scheme, the central terminal in the coal mine network acquires the file to be transmitted by judging which client terminals are in the active state at present and utilizing the client terminals in the active state, so that stable and reliable transmission can be simultaneously performed through a plurality of client terminal software, and the stability and reliability of coal mine data transmission are greatly improved.
Further, determining a file client to be transmitted according to the heartbeat data of the one or more clients includes:
when the transmission state information in the heartbeat data of the one or more clients is normal, determining that the one or more clients are not to-be-transmitted file clients, and determining that the one or more clients are to-be-transmitted file clients;
and in response to the fact that the transmission state information in the heartbeat data of the one or more clients is abnormal, informing the one or more clients to wait.
Further, determining whether the file client to be transmitted is a current active client according to a comparison result between the heartbeat data of the file client to be transmitted and the historical transmission record, including:
in response to that the historical transmission record is empty, determining that the file client to be transmitted is a current active client;
and when the historical transmission record is not empty and the identity information of the to-be-transmitted file client is included, determining that the to-be-transmitted file client is the current active client.
Further, determining whether the file client to be transmitted is a current active client according to a comparison result between the heartbeat data of the file client to be transmitted and the historical transmission record, and further comprising:
responding to the condition that the historical transmission record is not empty and does not include the identity information of the file client to be transmitted, and acquiring the current time and the heartbeat time in the historical transmission record;
when the difference value between the current time and the heartbeat time in the historical transmission record does not exceed a preset value, informing the file client to wait;
and determining the file client to be transmitted as the current active client when the difference value between the current time and the heartbeat time in the historical transmission record exceeds a preset value.
Further, the method further comprises:
and when the response is made to the situation that the to-be-transmitted file client is not the current active client, prompting to process the communication problem of the to-be-transmitted file client.
Through the technical scheme, the stability and the reliability of coal mine data transmission are greatly improved, and meanwhile, whether the current client is in an active state or not can be determined, so that the client with the communication problem is accurately positioned.
The embodiment of the invention also provides another coal mine data transmission method, which is applied to a client in a coal mine data transmission system and comprises the following steps:
determining transmission state information according to whether a file to be transmitted exists or not, and determining whether to send a communication address and heartbeat data to a central terminal or not according to the transmission state information;
and in response to the fact that the central terminal receives the information that the client side sends the file to be transmitted according to the communication address, the file to be transmitted is sent to the central terminal.
Further, still include:
and when the central terminal responds to the notification of the client terminal waiting, after waiting for a preset time, updating the transmission state information according to whether the file to be transmitted exists or not.
By the technical scheme, the central terminal in the coal mine network acquires the file to be transmitted by judging which client terminals are in the active state at present and utilizing the client terminals in the active state, so that stable and reliable transmission can be simultaneously performed through a plurality of client terminal software, and the stability and reliability of coal mine data transmission are greatly improved.
In a second aspect, an embodiment of the present invention further provides a coal mine data transmission device, which is applied to a central end in a coal mine data transmission system, and the device includes: an acquisition request unit, a client selection unit, and an acquisition file unit, wherein,
the acquisition request unit is used for acquiring heartbeat data and communication addresses of one or more clients and determining a file client to be transmitted according to the heartbeat data of the one or more clients;
the client selecting unit is used for acquiring a historical transmission record and determining whether the client of the file to be transmitted is the current active client or not according to the comparison result of the heartbeat data of the client of the file to be transmitted and the historical transmission record;
and the file obtaining unit is used for responding to the situation that the file client to be transmitted is the current active client, informing the file client to be transmitted to send the file to be transmitted according to the communication address, and updating the historical transmission record.
By the technical scheme, the central terminal in the coal mine network acquires the file to be transmitted by judging which client terminals are in the active state at present and utilizing the client terminals in the active state, so that stable and reliable transmission can be simultaneously performed through a plurality of client terminal software, and the stability and reliability of coal mine data transmission are greatly improved.
Further, determining a file client to be transmitted according to the heartbeat data of the one or more clients includes:
when the transmission state information in the heartbeat data of the one or more clients is normal, determining that the one or more clients are not to-be-transmitted file clients, and determining that the one or more clients are to-be-transmitted file clients;
and in response to the fact that the transmission state information in the heartbeat data of the one or more clients is abnormal, informing the one or more clients to wait.
Further, determining whether the file client to be transmitted is a current active client according to a comparison result between the heartbeat data of the file client to be transmitted and the historical transmission record, including:
in response to that the historical transmission record is empty, determining that the file client to be transmitted is a current active client;
and when the historical transmission record is not empty and the identity information of the to-be-transmitted file client is included, determining that the to-be-transmitted file client is the current active client.
Further, determining whether the file client to be transmitted is a current active client according to a comparison result between the heartbeat data of the file client to be transmitted and the historical transmission record, and further comprising:
responding to the condition that the historical transmission record is not empty and does not include the identity information of the file client to be transmitted, and acquiring the current time and the heartbeat time in the historical transmission record;
when the difference value between the current time and the heartbeat time in the historical transmission record does not exceed a preset value, informing the file client to wait;
and determining the file client to be transmitted as the current active client when the difference value between the current time and the heartbeat time in the historical transmission record exceeds a preset value.
Further, the device also comprises a prompting unit:
and the prompting unit is used for prompting to process the communication problem of the file client to be transmitted when the file client to be transmitted is not the current active client.
In a third aspect, an embodiment of the present invention further provides another coal mine data transmission device, which is applied to a client in a coal mine data transmission system, and includes: a sending request unit and a file obtaining unit, wherein,
the sending request unit is used for determining transmission state information according to whether a file to be transmitted exists or not and determining whether to send a communication address and heartbeat data to the central terminal or not according to the transmission state information;
and the file acquiring unit is used for responding to the received information and sending the file to be transmitted to the central terminal when the central terminal informs the client terminal to send the file to be transmitted according to the communication address.
By the technical scheme, the coal mine network can simultaneously perform stable and reliable transmission through the plurality of client software, so that the stability and reliability of coal mine data transmission are greatly improved.
Further, the sending request unit is further configured to:
and when the central terminal responds to the notification of the client terminal waiting, after waiting for a preset time, updating the transmission state information according to whether the file to be transmitted exists or not.
In a fourth aspect, an embodiment of the present invention further provides a coal mine data transmission system, where the system includes: the method comprises the following steps: at least one client, at least one hub, wherein,
the client is used for determining transmission state information according to whether the file to be transmitted exists or not and determining whether to send a communication address and heartbeat data to the center terminal or not according to the transmission state information; and in response to the fact that the central terminal receives the information that the client side sends the file to be transmitted according to the communication address, the file to be transmitted is sent to the central terminal.
The central terminal is used for acquiring heartbeat data and communication addresses of one or more client terminals and determining a file client terminal to be transmitted according to the heartbeat data of the one or more client terminals; acquiring a historical transmission record, and determining whether the file client to be transmitted is a current active client or not according to a comparison result of heartbeat data of the file client to be transmitted and the historical transmission record; and when the client side of the file to be transmitted is the current active client side, the client side of the file to be transmitted is informed to send the file to be transmitted according to the communication address, and the historical transmission record is updated.
Drawings
Fig. 1 is a flowchart of a coal mine data transmission method according to embodiment 1 of the present invention;
FIG. 2 is a diagram of a prior art coal mine data transmission network architecture;
fig. 3 is a diagram of a coal mine data transmission network structure according to embodiment 1 of the present invention;
fig. 4 is a flowchart of a transmission method between a client and a central node according to embodiment 1 of the present invention;
fig. 5 is a schematic structural diagram of a transmission device at a coal mine data center end according to embodiment 2 of the present invention;
fig. 6 is a schematic structural diagram of a coal mine data client transmission device according to embodiment 2 of the present invention;
fig. 7 is a schematic structural diagram of a coal mine data transmission system according to embodiment 3 of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided for illustrative purposes, and other advantages and effects of the present invention will become apparent to those skilled in the art from the present disclosure.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
Hereinafter, a coal mine data transmission method will be described in detail, and the method uses many application scenarios, and in this embodiment, only a coal mine data transmission scenario is taken as an example for description. As shown in fig. 1, the method comprises the following steps:
step 110: acquiring heartbeat data and communication addresses of one or more clients, and determining a file client to be transmitted according to the heartbeat data of the one or more clients.
As shown in fig. 3, a network structure of this embodiment may include: one or more client programs, such as client program a, client program B, client program c, and the like; one or more hub-side programs, such as hub-side program X, etc.; one or more coal mine safety monitoring networking system software, such as coal mine safety monitoring networking system software Y and the like. Wherein, a plurality of client software can be in the same coal mine local area network, such as coal mine local area network 001, coal mine local area network 002, etc.
Specifically, the carrier for running the client software is not particularly limited, and any electronic device having a signal transmission function may be used, for example, a tunneling device, a detection device, a sensor, an image recognition device, a computer, and the like, and a plurality of client software may also be simultaneously run on the same device.
Specifically, the heartbeat data includes: coal mine information, client identity information and transmission state information. The coal mine information may be identity information of a coal mine where the client software is located, such as a coal mine number. The client identity information can be determined according to the UUID randomly generated by the client software. The transmission state information refers to whether the client software has the state information required for sending files with the center-end software. For example, when the client has a file sending requirement, the client marks the transmission state information as 1, and when the client does not have the file sending requirement, the client marks the transmission state information as 0.
Optionally, in this embodiment, determining a to-be-transmitted file client according to heartbeat data of one or more clients includes:
when transmission state information in heartbeat data of one or more clients is normal, determining the one or more clients as to-be-transmitted file clients;
and in response to the condition that the transmission state information in the heartbeat data of one or more clients is abnormal, determining that the one or more clients are not the file-waiting clients, and informing the one or more clients of waiting.
For example, as shown in FIG. 4, the client software randomly generates a UUID as the client ID. And reading the coal mine number, the center end address and the data transmission directory from the configuration file of the client software. And establishing communication connection with the central terminal. Connecting 5000 ports of the center end, if the connection fails, waiting for a preset time and continuing the connection, for example, 30 seconds, until the connection is successful. If the data transmission directory has transmission data, namely the client side has files to be transmitted, the client side software marks the transmission state information as 1, and if the files do not have the files to be transmitted, the transmission state information is marked as 0. The client records the ID of the client, the coal mine number of the coal mine local area network where the client is located and the transmission state information in the heartbeat data, and sends the heartbeat data and the communication address to the center terminal. Wherein, the communication address can be the IP of the client. After the client sends the heartbeat data and the communication address, waiting for the center end to feed back the indication information, if the indication information fed back by the center end is 1, reading the data file from the data transmission directory, analyzing the data file according to a preset transmission standard, transmitting the data file to the center end, and then judging whether the file to be transmitted exists again after waiting for a preset time; if the indication information fed back by the center end is not 1, waiting for a preset time, and judging whether the file to be transmitted still exists again. Preferably, the preset time is set to 30 seconds.
And the central terminal monitors the 5000 port, acquires heartbeat data of one or more client terminals and judges whether transmission state information in the heartbeat data is normal or not. If the value of the transmission status information is 1, which means that the transmission status information is normal and the client has a file transmission requirement, it is determined that the one or more clients are to-be-transmitted file clients, and step 120 is performed. If the value of the transmission state information is 0, it represents that the transmission state information is abnormal, the client does not have a file transmission requirement, and in order to save resources, the center terminal X sends a waiting identifier to the client a for notifying the client a to suspend communication, for example, to wait for 30 seconds and then resend heartbeat data.
Step 120: and acquiring a historical transmission record, and determining whether the client of the file to be transmitted is the current active client or not according to the comparison result of the heartbeat data of the client of the file to be transmitted and the historical transmission record.
The specific form of the historical transmission record can be a transmission state table and is used for recording heartbeat data, communication addresses and heartbeat time of clients which have successfully transmitted files with the central end. The heartbeat time refers to the time when the client and the central terminal successfully transmit the file. For example, the following table shows:
Figure BDA0002403241410000081
optionally, in this embodiment, determining whether the file client to be transferred is a currently active client according to a comparison result between heartbeat data of the file client to be transferred and a historical transmission record includes:
in response to the fact that the historical transmission record is empty, determining the file client to be transmitted as a current active client;
and when the response is made to that the historical transmission record is not empty and the identity information of the file client to be transmitted is included, determining the file client to be transmitted as the current active client.
For example, as shown in fig. 4, the central end obtains the historical transmission record of the coal mine from the transmission state table according to the coal mine number. It is determined whether the historical transmission record is empty. And when the central terminal does not successfully transmit the file with any client in the coal mine local area network before, the content in the historical transmission record is empty, and the central terminal determines the current file client to be transmitted as the current active client.
When the file is successfully transmitted between the central terminal and any client in the coal mine local area network, at the moment, the content in the historical transmission record is not empty, and whether the historical transmission record comprises the identity information of the client of the file to be transmitted is judged. For example, whether the ID of the historically active client in the coal mine in the historical transmission record is the same as the ID of the client to be transmitted, that is, whether the ID of the client in the coal mine in the transmission state table is the same as the ID of the client in the current heartbeat data is obtained.
If the history transmission record comprises the information of the client side of the file to be transmitted, namely the two IDs are the same, the client side of the file to be transmitted and the central side successfully transmit the file. And the central terminal determines the client side of the file to be transmitted as the current active client side.
Optionally, in this embodiment, determining, according to a comparison result between heartbeat data of the to-be-transmitted file client and the historical transmission record, whether the to-be-transmitted file client is a currently active client further includes:
when the historical transmission record is not empty and does not include the identity information of the file client to be transmitted, acquiring the current time and the heartbeat time in the historical transmission record;
when the difference value between the current time and the heartbeat time in the historical transmission record does not exceed a preset value, informing the client of the file to be transmitted to wait;
and when the difference value between the current time and the heartbeat time in the historical transmission record exceeds a preset value, determining the client of the file to be transmitted as the current active client.
For example, if the history transmission record does not include the information of the client of the file to be transmitted, which means that the client of the file to be transmitted has not successfully transmitted the file with the central terminal, the current time and the heartbeat time in the history transmission record are obtained, and whether the difference between the current time and the heartbeat time in the history transmission record exceeds a preset value or not is judged. Preferably, the preset value is set to 90 seconds.
And if the difference value between the heartbeat time of the file client to be transmitted and the heartbeat time in the historical transmission record does not exceed the preset value, informing the client to wait for the preset time. Preferably, the preset time is set to 30 seconds.
For example, assuming that the current time is 16 minutes 16 seconds at 1 month, 1 day, 16 months, and 2020, the contents of the history transmission record, i.e., the transmission state table, are as shown in the following table:
coal mine numbering Client ID Status of transmission Client IP Time of heartbeat
****** ****** ****** ****** 1 month, 1 day, 16 hours, 05 minutes and 10 seconds in 2020
****** ****** ****** ****** 1 month, 1 day, 16 hours, 10 minutes and 10 seconds in 2020
3456 abcd ****** ****** 16 minutes and 06 seconds for 1 month, 1 day and 16 days in 2020
At this time, the client ID recorded last time under coal mine item No. 3456 in the transmission state table is "abcd", the heartbeat time is 16 minutes and 06 seconds at 1 month, 1 day, 16 hours and 16 minutes and 06 seconds at 2020, and the difference between 16 minutes and 16 seconds at 1 month, 1 day, 16 hours and 16 minutes and 06 seconds at 1 month, 1 day, 16 hours and 06 seconds at 2020 at the current time is only 10 seconds, and does not exceed the preset value of 90 seconds, and the client is notified to wait for 30 seconds.
And if the difference value between the current time and the heartbeat time in the historical transmission record exceeds the preset value, determining that the client side of the file to be transmitted is a second active client side. For example, the heartbeat time of the client side of the file to be transmitted is 16 minutes and 16 seconds at 16 days 1 month and 1 month in 2020, the active client side recorded last time in the first transmission record is the client side B, the heartbeat time of the client side B is 26 minutes and 16 seconds at 16 days 1 month and 1 month in 2020, the difference between the two is 10 minutes and exceeds the preset value of 90 seconds, which means that the client side B may lose connection with the central side X in such a long time as 10 minutes, and the central side cannot use the client side B to successfully acquire the file to be transmitted. Therefore, the central node X determines the file client to be transmitted as the current active client, and performs step 130.
Step 130: and when the client side of the file to be transmitted is the current active client side, the client side of the file to be transmitted is informed to send the file to be transmitted according to the communication address, and the historical transmission record is updated.
For example, as shown in fig. 4, when the central end determines that the file client to be transmitted is the current active client, the central end records the current time as the heartbeat time of the client, and records the client ID, the coal mine number, the transmission state information, the client IP, and the heartbeat time of the client in the transmission state table, that is, updates the historical transmission record. Meanwhile, the central terminal sends an activation identifier to the file client to be transmitted according to the communication address of the client to be transmitted, so as to inform the client of sending the file to be transmitted.
Optionally, in this embodiment, the method further includes the step of prompting the client with the communication problem:
and when the response is made to the file to be transmitted client side which is not the current active client side, prompting to process the communication problem of the file to be transmitted client side.
For example, the coal mine safety monitoring networking system can monitor the abnormal condition of each client software by accessing the transmission state table of the central terminal in real time. When the client side of the file to be transmitted is determined to be not the current active client side, staff or other systems are informed that the client side of the file to be transmitted possibly has communication problems and are prompted to process the communication problems, and the technical effect of accurately positioning the client side with communication abnormality is achieved.
Corresponding to the foregoing embodiment 1, embodiment 2 of the present invention further provides a coal mine data transmission device, which is applied to a central end in a coal mine data transmission system, and specifically as shown in fig. 5, the device includes: a get request unit 201, a client selection unit 202, a get file unit 203, wherein,
the acquisition request unit 201 is configured to acquire heartbeat data and communication addresses of one or more clients, and determine a file client to be transmitted according to the heartbeat data of the one or more clients;
the client selecting unit 202 is configured to obtain a historical transmission record, and determine whether the file client to be transmitted is a currently active client according to a comparison result between heartbeat data of the file client to be transmitted and the historical transmission record;
the file obtaining unit 203 is configured to, in response to that the to-be-transmitted file client is the current active client, notify the to-be-transmitted file client to send the to-be-transmitted file according to the communication address, and update the historical transmission record.
Corresponding to the foregoing embodiment 1, embodiment 2 of the present invention further provides another coal mine data transmission device, which is applied to a client in a coal mine data transmission system, and specifically as shown in fig. 6, the device includes: a sending request unit 204, and a file obtaining unit 205, wherein,
the sending request unit 204 is configured to determine whether to send the communication address and the heartbeat data to the central end according to the transmission state information; the file sending unit 205 is configured to send the file to be transmitted to the central end in response to receiving the notification that the central end notifies the client to send the file to be transmitted according to the communication address.
Corresponding to the foregoing embodiment 1, an embodiment 3 of the present invention further provides a coal mine data transmission system, specifically as shown in fig. 7, where the system includes: at least one client 301, at least one hub 302, wherein,
the client 301 is configured to determine transmission state information according to whether a file to be transmitted exists, and determine whether to send a communication address and heartbeat data to the central end according to the transmission state information; and in response to the received message, the central terminal informs the client terminal of sending the file to be transmitted according to the communication address, and sends the file to be transmitted to the central terminal.
The central terminal 302 is configured to obtain heartbeat data and communication addresses of one or more client terminals, and determine a file client terminal to be transmitted according to the heartbeat data of the one or more client terminals; acquiring a historical transmission record, and determining whether the client of the file to be transmitted is a current active client or not according to a comparison result of heartbeat data of the client of the file to be transmitted and the historical transmission record; and when the client side of the file to be transmitted is the current active client side, the client side of the file to be transmitted is informed to send the file to be transmitted according to the communication address, and the historical transmission record is updated.
In an embodiment of the invention, the processor may be an integrated circuit chip having signal processing capability. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The processor reads the information in the storage medium and completes the steps of the method in combination with the hardware.
The storage medium may be a memory, for example, which may be volatile memory or nonvolatile memory, or which may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory.
By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous link DRAM (Synchlink DRAM, S L DRAM), and direct Memory bus RAM (DRTrampbus RAM).
The storage media described in connection with the embodiments of the invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that the functionality described in the present invention may be implemented in a combination of hardware and software in one or more of the examples described above. When software is applied, the corresponding functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. A coal mine data transmission method is characterized in that the method is applied to a center end in a coal mine data transmission system and comprises the following steps:
acquiring heartbeat data and communication addresses of one or more clients, and determining a file client to be transmitted according to the heartbeat data of the one or more clients;
acquiring a historical transmission record, and determining whether the file client to be transmitted is a current active client or not according to a comparison result of heartbeat data of the file client to be transmitted and the historical transmission record;
and when the client side of the file to be transmitted is the current active client side, the client side of the file to be transmitted is informed to send the file to be transmitted according to the communication address, and the historical transmission record is updated.
2. The coal mine data transmission method of claim 1, wherein determining the file to be transmitted client based on heartbeat data of the one or more clients comprises:
when the transmission state information in the heartbeat data of the one or more clients is normal, determining that the one or more clients are to-be-transmitted file clients;
and when the transmission state information in the heartbeat data of the one or more clients is abnormal, determining that the one or more clients are not to-be-transmitted file clients, and informing the one or more clients of waiting.
3. The coal mine data transmission method of claim 1, wherein determining whether the file client to be transmitted is a currently active client according to the comparison result between the heartbeat data of the file client to be transmitted and the historical transmission record comprises:
in response to that the historical transmission record is empty, determining that the file client to be transmitted is a current active client;
and when the historical transmission record is not empty and the identity information of the to-be-transmitted file client is included, determining that the to-be-transmitted file client is the current active client.
4. The coal mine data transmission method as claimed in claim 3, wherein determining whether the file client to be transmitted is a currently active client according to the comparison result between the heartbeat data of the file client to be transmitted and the historical transmission record further comprises:
responding to the condition that the historical transmission record is not empty and does not include the identity information of the file client to be transmitted, and acquiring the current time and the heartbeat time in the historical transmission record;
when the difference value between the current time and the heartbeat time in the historical transmission record does not exceed a preset value, informing the file client to wait;
and determining the file client to be transmitted as the current active client when the difference value between the current time and the heartbeat time in the historical transmission record exceeds a preset value.
5. A coal mine data transmission method as claimed in any one of claims 1 to 4 further including:
and when the response is made to the situation that the to-be-transmitted file client is not the current active client, prompting to process the communication problem of the to-be-transmitted file client.
6. A coal mine data transmission method is characterized in that the client applied to a coal mine data transmission system comprises the following steps:
determining transmission state information according to whether a file to be transmitted exists or not, and determining whether to send a communication address and heartbeat data to a central terminal or not according to the transmission state information;
and in response to the fact that the central terminal receives the information that the client side sends the file to be transmitted according to the communication address, the file to be transmitted is sent to the central terminal.
7. A coal mine data transmission method as defined in claim 6, further comprising:
and when the central terminal responds to the notification of the client terminal waiting, after waiting for a preset time, updating the transmission state information according to whether the file to be transmitted exists or not.
8. A coal mine data transmission device is characterized in that the coal mine data transmission device is applied to a central end in a coal mine data transmission system and comprises: an acquisition request unit, a client selection unit, and an acquisition file unit, wherein,
the acquisition request unit is used for acquiring heartbeat data and communication addresses of one or more clients and determining a file client to be transmitted according to the heartbeat data of the one or more clients;
the client selecting unit is used for acquiring a historical transmission record and determining whether the client of the file to be transmitted is the current active client or not according to the comparison result of the heartbeat data of the client of the file to be transmitted and the historical transmission record;
and the file obtaining unit is used for responding to the situation that the file client to be transmitted is the current active client, informing the file client to be transmitted to send the file to be transmitted according to the communication address, and updating the historical transmission record.
9. A coal mine data transmission device is characterized in that the coal mine data transmission device is applied to a client in a coal mine data transmission system and comprises: a sending request unit and a file obtaining unit, wherein,
the sending request unit is used for determining whether to send the communication address and the heartbeat data to the central terminal according to the transmission state information;
and the file sending unit is used for sending the file to be transmitted to the central terminal when the central terminal is received to inform the client terminal to send the file to be transmitted according to the communication address.
10. A coal mine data transmission system, comprising: at least one client, at least one hub, wherein,
the client is used for determining transmission state information according to whether the file to be transmitted exists or not and determining whether to send a communication address and heartbeat data to the center terminal or not according to the transmission state information; when the central terminal receives a notice that the client side sends a file to be transmitted according to the communication address, the file to be transmitted is sent to the central terminal;
the central terminal is used for acquiring heartbeat data and communication addresses of one or more client terminals and determining a file client terminal to be transmitted according to the heartbeat data of the one or more client terminals; acquiring a historical transmission record, and determining whether the file client to be transmitted is a current active client or not according to a comparison result of heartbeat data of the file client to be transmitted and the historical transmission record; and when the client side of the file to be transmitted is the current active client side, the client side of the file to be transmitted is informed to send the file to be transmitted according to the communication address, and the historical transmission record is updated.
CN202010153503.8A 2020-03-06 2020-03-06 Coal mine data transmission method, device and system Active CN111405008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010153503.8A CN111405008B (en) 2020-03-06 2020-03-06 Coal mine data transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010153503.8A CN111405008B (en) 2020-03-06 2020-03-06 Coal mine data transmission method, device and system

Publications (2)

Publication Number Publication Date
CN111405008A true CN111405008A (en) 2020-07-10
CN111405008B CN111405008B (en) 2021-04-06

Family

ID=71432220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010153503.8A Active CN111405008B (en) 2020-03-06 2020-03-06 Coal mine data transmission method, device and system

Country Status (1)

Country Link
CN (1) CN111405008B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515297A (en) * 2009-04-16 2009-08-26 浙江浙大中控信息技术有限公司 History data inquiry method, route server and inquiry terminal and system
CN101778056A (en) * 2009-12-25 2010-07-14 北京邮电大学 Processing method and system for meeting history record fusing message business and
CN102821119A (en) * 2011-06-10 2012-12-12 北大方正集团有限公司 Client end, method, system and equipment for uploading files
CN103297256A (en) * 2012-02-23 2013-09-11 感知技术无锡有限公司 Method and system for managing perceiving layer node of internet of things
CN104144435A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Intelligent network control method and system
CN104202385A (en) * 2014-08-27 2014-12-10 四川长虹电器股份有限公司 Data backup and updating method of distributed file system
CN104202774A (en) * 2014-09-18 2014-12-10 东南大学 Reliable and real-time industrial wireless local area network transmission method
CN104639393A (en) * 2015-01-07 2015-05-20 烽火通信科技股份有限公司 Passive optical network flow whole-network acquisition device and passive optical network flow whole-network acquisition method
CN106027678A (en) * 2016-07-13 2016-10-12 桂林电子科技大学 Scenic region tourist flow real-time statistics and tourist flow over-limit automatic early warning system and method
CN108632383A (en) * 2018-05-15 2018-10-09 中国电子科技集团公司第二十八研究所 A kind of method of serial ports transmitting file
CN109324897A (en) * 2018-08-24 2019-02-12 平安科技(深圳)有限公司 Data uploading method and system, terminal and computer readable storage medium
CN109617996A (en) * 2019-01-04 2019-04-12 平安科技(深圳)有限公司 File uploads and method for down loading, server and computer readable storage medium
CN109982248A (en) * 2019-02-18 2019-07-05 平安科技(深圳)有限公司 A kind of information push method based on geography fence, device and readable storage medium storing program for executing
CN110196826A (en) * 2018-02-24 2019-09-03 深圳市中兴微电子技术有限公司 A kind of deadlock judgment method and device
CN110674476A (en) * 2019-08-29 2020-01-10 万翼科技有限公司 File printing method and device with embedded dark watermark
CN110808874A (en) * 2019-10-25 2020-02-18 北京大米科技有限公司 Cross-machine-room service monitoring method and device, storage medium and server

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515297A (en) * 2009-04-16 2009-08-26 浙江浙大中控信息技术有限公司 History data inquiry method, route server and inquiry terminal and system
CN101778056A (en) * 2009-12-25 2010-07-14 北京邮电大学 Processing method and system for meeting history record fusing message business and
CN102821119A (en) * 2011-06-10 2012-12-12 北大方正集团有限公司 Client end, method, system and equipment for uploading files
CN103297256A (en) * 2012-02-23 2013-09-11 感知技术无锡有限公司 Method and system for managing perceiving layer node of internet of things
CN104144435A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Intelligent network control method and system
CN104202385A (en) * 2014-08-27 2014-12-10 四川长虹电器股份有限公司 Data backup and updating method of distributed file system
CN104202774A (en) * 2014-09-18 2014-12-10 东南大学 Reliable and real-time industrial wireless local area network transmission method
CN104639393A (en) * 2015-01-07 2015-05-20 烽火通信科技股份有限公司 Passive optical network flow whole-network acquisition device and passive optical network flow whole-network acquisition method
CN106027678A (en) * 2016-07-13 2016-10-12 桂林电子科技大学 Scenic region tourist flow real-time statistics and tourist flow over-limit automatic early warning system and method
CN110196826A (en) * 2018-02-24 2019-09-03 深圳市中兴微电子技术有限公司 A kind of deadlock judgment method and device
CN108632383A (en) * 2018-05-15 2018-10-09 中国电子科技集团公司第二十八研究所 A kind of method of serial ports transmitting file
CN109324897A (en) * 2018-08-24 2019-02-12 平安科技(深圳)有限公司 Data uploading method and system, terminal and computer readable storage medium
CN109617996A (en) * 2019-01-04 2019-04-12 平安科技(深圳)有限公司 File uploads and method for down loading, server and computer readable storage medium
CN109982248A (en) * 2019-02-18 2019-07-05 平安科技(深圳)有限公司 A kind of information push method based on geography fence, device and readable storage medium storing program for executing
CN110674476A (en) * 2019-08-29 2020-01-10 万翼科技有限公司 File printing method and device with embedded dark watermark
CN110808874A (en) * 2019-10-25 2020-02-18 北京大米科技有限公司 Cross-machine-room service monitoring method and device, storage medium and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李树刚,马莉,杨守国: "《互联网+煤矿安全信息化关键技术及应用构架》", 《煤炭科学技术》 *

Also Published As

Publication number Publication date
CN111405008B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
US20210036907A1 (en) Methods and apparatuses for pushing a message
CN111585867B (en) Message processing method and device, electronic equipment and readable storage medium
US8977889B2 (en) Method for increasing reliability in monitoring systems
CN112866408A (en) Service switching method, device, equipment and storage medium in cluster
US20190280925A1 (en) Hash based device configuration management
CN111405008B (en) Coal mine data transmission method, device and system
US10674337B2 (en) Method and device for processing operation for device peripheral
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN113596195B (en) Public IP address management method, device, main node and storage medium
CN107800754B (en) Data transmission task processing method and device, and data transmission task monitoring method and device
CN113391759B (en) Communication method and equipment
CN112749142B (en) Handle management method and system
CN111190754B (en) Block chain event notification method and block chain system
CN110784554B (en) Method and device for processing web micro-service cluster service errors
WO2018121353A1 (en) Method of testing data channel, test server, and test system
CN114866595B (en) Connection method, terminal station data collector and management platform
CN115687168B (en) File operation notification system and method
WO2022077221A1 (en) Service management and access methods and apparatuses, device, and storage medium
CN111131528B (en) Equipment network domain determining method, server and terminal
CN116340001A (en) Load balancing method and device for server and electronic equipment
CN116263696A (en) Machine room task notification processing method, device and task notification processing system
CN117235033A (en) Service platform control method and device and electronic equipment
CN114461506A (en) Cluster alarm control method and device, electronic equipment and storage medium
CN117221375A (en) Node state detection method, electronic device and readable storage medium
CN115150856A (en) Load query processing method and device, storage medium and electronic device

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