CN117914930B - Mobile equipment operation method and device based on network state detection under coal mine - Google Patents

Mobile equipment operation method and device based on network state detection under coal mine Download PDF

Info

Publication number
CN117914930B
CN117914930B CN202410297980.XA CN202410297980A CN117914930B CN 117914930 B CN117914930 B CN 117914930B CN 202410297980 A CN202410297980 A CN 202410297980A CN 117914930 B CN117914930 B CN 117914930B
Authority
CN
China
Prior art keywords
network
terminal
detecting
state
network state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410297980.XA
Other languages
Chinese (zh)
Other versions
CN117914930A (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.)
Tehuakemai Xi'an Information Technology Co ltd
Original Assignee
Tehuakemai Xi'an Information Technology Co ltd
Filing date
Publication date
Application filed by Tehuakemai Xi'an Information Technology Co ltd filed Critical Tehuakemai Xi'an Information Technology Co ltd
Priority to CN202410297980.XA priority Critical patent/CN117914930B/en
Publication of CN117914930A publication Critical patent/CN117914930A/en
Application granted granted Critical
Publication of CN117914930B publication Critical patent/CN117914930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a method and a device for operating mobile equipment based on network state detection under a coal mine, a computer readable medium and electronic equipment. The method for operating the mobile equipment based on network state detection under the coal mine comprises the following steps: before the terminal operates, detecting the current position of the terminal, and automatically triggering and detecting the network state according to the position; detecting a network state based on the running state of the terminal at a server side; detecting a network state at a terminal side based on the frequency of detecting the network state by the terminal; if the detected network state is in a communicable state, triggering the terminal to enter an online mode, transmitting data through a network and processing the data; if the network is disconnected, the off-line state is maintained, and the data is acquired and stored locally. According to the technical scheme provided by the application, the client side actively polls and the service side explores, so that the production data processing efficiency in wired and wireless scenes is enhanced, and the working efficiency of the underground terminal is improved.

Description

Mobile equipment operation method and device based on network state detection under coal mine
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for running mobile equipment based on network state detection under a coal mine, a computer readable medium and electronic equipment.
Background
In the production operation process of the coal mine, the acquired data and images need to be transmitted to an upper computer or a server in time. When a user uses a terminal device underground to upload data, the user can not upload the data in real time due to network limitations of underground scenes and the like, at the moment, the file can only be stored locally, and communication is carried out with a server after the network environment is well transferred. In order to be able to upload data to the server in time, a means is needed to detect the network status in order to transmit data at the first time when the availability of the network is detected.
In the prior art, through monitoring the change of the network state in real time, continuous polling detection and the connection state between the servers are carried out by setting a thread, in practical application, when the polling interval is too short, higher-frequency polling is carried out in unit time, so that the problems of excessively high power consumption and resource waste of equipment are caused; when the polling interval is too long, the polling frequency in unit time is low, the network state condition cannot be timely and effectively acquired, and a long-time network island may exist, so that data cannot be timely transmitted, further, the underground terminal control device cannot timely and effectively process the data, and the problem of low terminal working efficiency is caused.
Disclosure of Invention
The embodiment of the application provides a method and a device for operating mobile equipment based on network state detection in underground coal mines, a computer readable medium and electronic equipment, and further solves the problem that the underground terminal control device cannot effectively process data in time to at least a certain extent, so that the working efficiency of a terminal is low.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
According to one aspect of the application, there is provided a method of operating a mobile device based on network status detection downhole in a coal mine, comprising: before the terminal operates, detecting the current position of the terminal, and automatically triggering and detecting the network state according to the position; detecting a network state based on the running state of the terminal at a server side; detecting a network state at a terminal side based on the frequency of detecting the network state by the terminal; if the detected network state is in a communicable state, triggering the terminal to enter an online mode, transmitting data through a network and processing the data; if the network is disconnected, the off-line state is maintained, and the data is acquired and stored locally.
In the present application, based on the foregoing solution, the detecting, at the server side, a network state based on an operation state of the terminal includes: detecting whether the terminal is in an operation state or not according to an address pre-registered by the terminal at a server side; if the network state is in the running state, detecting the network state through the server in a first period; if the network state is not running, the server detects the network state in a second period.
In the present application, based on the foregoing aspect, the method further includes: before entering a weak network environment in the pit, a terminal acquires a local IP address and a local MAC address; and registering the equipment in the server based on the IP address and the MAC address.
In the present application, based on the foregoing aspect, the method further includes: and when the server detects that the network state between the server and the terminal is normal, sending a callback instruction to the terminal.
In the present application, based on the foregoing scheme, the detecting, at a terminal side, a network state based on a frequency of detecting the network state by the terminal includes: if the terminal detects that the accumulated data exists, a detection mode is started; detecting the frequency of detecting the network state, and calculating the time period of the detection based on the frequency; and detecting the network state between the local terminal and the server based on the time period.
In the present application, based on the foregoing solution, if the detected network state is in a communicable state, the method triggers the terminal to enter an online mode, and after transmitting and processing data through a network, the method further includes: detecting network time delay when transmitting data; and when the network time delay is greater than or equal to a set threshold value, detecting the network state.
In the present application, based on the foregoing scheme, the network state includes a packet loss rate and a delay rate.
According to one aspect of the application, there is provided a mobile device operation apparatus for underground coal mine based on network state detection, comprising:
The triggering unit is used for detecting the current position of the terminal before the terminal operates, and automatically triggering and detecting the network state according to the position;
the server side is used for detecting the network state based on the running state of the terminal;
The terminal unit is used for detecting the network state based on the frequency of detecting the network state by the terminal at the terminal side;
the networking unit is used for triggering the terminal to enter an online mode if the detected network state is in a communicable state, and transmitting and processing data through a network;
and the network disconnection unit is used for keeping an offline state if the network disconnection unit is in a network disconnection state, and acquiring and storing data from the local.
In the present application, based on the foregoing solution, the detecting, at the server side, a network state based on an operation state of the terminal includes: detecting whether the terminal is in an operation state or not according to an address pre-registered by the terminal at a server side; if the network state is in the running state, detecting the network state through the server in a first period; if the network state is not running, the server detects the network state in a second period.
In the present application, based on the foregoing aspect, the method further includes: before entering a weak network environment in the pit, a terminal acquires a local IP address and a local MAC address; and registering the equipment in the server based on the IP address and the MAC address.
In the present application, based on the foregoing aspect, the method further includes: and when the server detects that the network state between the server and the terminal is normal, sending a callback instruction to the terminal.
In the present application, based on the foregoing scheme, the detecting, at a terminal side, a network state based on a frequency of detecting the network state by the terminal includes: if the terminal detects that the accumulated data exists, a detection mode is started; detecting the frequency of detecting the network state, and calculating the time period of the detection based on the frequency; and detecting the network state between the local terminal and the server based on the time period.
In the present application, based on the foregoing solution, if the detected network state is in a communicable state, the method triggers the terminal to enter an online mode, and after transmitting and processing data through a network, the method further includes: detecting network time delay when transmitting data; and when the network time delay is greater than or equal to a set threshold value, detecting the network state.
In the present application, based on the foregoing scheme, the network state includes a packet loss rate and a delay rate.
According to one aspect of the application, there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements a method of operating a mobile device based on network status detection downhole in a coal mine as described in the above embodiments.
According to an aspect of the present application, there is provided an electronic apparatus including: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the mobile equipment operation method based on network state detection under the coal mine.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes a mobile device operation method based on network state detection under the coal mine provided in the above various alternative implementations.
In one embodiment of the application, before the terminal operates, detecting the current position of the terminal, and automatically triggering and detecting the network state according to the position; detecting a network state based on the running state of the terminal at a server side; detecting a network state at a terminal side based on the frequency of detecting the network state by the terminal; if the detected network state is in a communicable state, triggering the terminal to enter an online mode, transmitting data through a network and processing the data; if the network is disconnected, the off-line state is maintained, and the data is acquired and stored locally. According to the technical scheme of the application, the client side active polling and the server side active probing scheme can simultaneously give consideration to the network disconnection time and the energy consumption of the terminal equipment, and the defect of higher energy consumption of the common network probing technology in a weak network environment is perfectly overcome. The method reduces the electric quantity consumed by each network detection and the network detection times, ensures the network detection efficiency, and is suitable for the scenes of weak network in coal mine and the terminal needing to pay attention to energy consumption. The method and the device realize smooth conversion between the wired state and the wireless state when the underground coal mine environment terminal operates, enhance the production data processing efficiency under wired and wireless scenes, and improve the working efficiency of the underground terminal.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 schematically illustrates a flow chart of a method of operating a mobile device based on network status detection downhole in a coal mine in accordance with one embodiment of the application.
Fig. 2 schematically illustrates network detection performed by a server in an embodiment of the present application.
Fig. 3 schematically illustrates a schematic diagram of a mobile device operation under a coal mine based on network status detection in one embodiment of the application.
Fig. 4 schematically shows a schematic diagram of a mobile device operating apparatus under a coal mine based on network status detection in an embodiment of the application.
Fig. 5 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The implementation details of the technical scheme of the application are explained in detail as follows:
FIG. 1 illustrates a flow chart of a method of operating a mobile device based on network status detection downhole in a coal mine according to one embodiment of the application. Referring to fig. 1, the method for operating a mobile device based on network status detection under a coal mine at least includes steps S110 to S150, and is described in detail as follows:
In step S110, before the terminal operates, the current location of the terminal is detected, and the detection of the network state is automatically triggered according to the location.
In one embodiment of the application, before the terminal operates, the current position of the terminal is detected by the sensing device, and then the network state is detected according to the position trigger.
The embodiment can be applied to underground production activities of coal mines, workers carry terminals, corresponding working positions comprise underground and underground, and in underground production environments, network states are unstable, so that the current position of the terminals needs to be detected, and network states are automatically triggered and detected.
Furthermore, in this embodiment, from the aspect of optimizing the network request, after the first data uploading failure, the control message protocol (Internet Control Message Protocol, ICMP) protocol is adopted to perform network probing subsequently, so as to reduce the transmission data frames of the internet protocol (Internet Protocol, IP) protocol, thereby achieving the purpose of saving the power consumption of network probing. And uploading the data of the non-transmitted server side until the ICMP probe activity discovery is carried out once to release the network island state.
In step S120, at the server side, a network state is detected based on the operation state of the terminal.
In one embodiment of the application, the application addresses both aspects in order to achieve the goal of conserving power consumption by the mine equipment. On one hand, the electric quantity consumed by each network detection is saved as much as possible, and on the other hand, the frequency of network detection is reduced as much as possible under the condition of ensuring network island as short as possible. The network detection method comprises a server side and a terminal side, and network detection is respectively carried out on the two sides, so that the efficiency of network detection is improved, and the cost and the resource consumption are reduced.
In one embodiment of the present application, further comprising:
Before entering a weak network environment in the pit, a terminal acquires a local IP address and a medium access Control (MEDIA ACCESS Control, MAC) address;
and registering the equipment in the server based on the IP address and the MAC address.
As shown in fig. 2, before the terminal processes data, that is, before entering the underground weak network environment, the terminal performs device registration in the server through its own IP address and MAC address, so as to facilitate network communication with the server later.
After receiving the registration request from the terminal side, the server side continuously starts to search for the active client side, if the server side only performs the active search, the server side can only request the gateway where the current client side is located, the gateway performs the address resolution protocol (Address Resolution Protocol, ARP) request with low energy consumption to acquire whether the current client side is reachable or not, and the energy consumption of the client side is very small.
In one embodiment of the application, detecting a network state based on an operational state of the terminal comprises:
Detecting whether the terminal is in an operation state or not according to an address pre-registered by the terminal at a server side;
If the network state is in the running state, detecting the network state through the server in a first period;
if the network state is not running, the server detects the network state in a second period.
In one embodiment of the present application, it is detected at the server side whether a pre-registered client is in an operational state. If the terminal is detected to be in the running state, network state detection is carried out through the server in a first period, and the process comprises the following steps:
The method comprises the steps that a server detects the number of first terminals in an operation state and the number of second terminals in a connection state in the current networking;
based on the number of first terminals in operation And the number of second terminals in the connected stateAnd a third number corresponding to all terminals in the networkDetermining a first periodThe method comprises the following steps:
Wherein, Representing a preset periodic factor. In the processing procedure, the higher the number of the first terminals in the running state is, the higher the number of the terminals in the server which need to be subjected to network detection is, the frequency of network state detection needs to be improved, and the period of network state detection is reduced; meanwhile, the higher the number of the second terminals in the connection state is, the higher the load of the server is, the frequency of network state detection needs to be properly reduced, and the period of network state detection is increased.
If the terminal is detected to be in the non-operation state, the server detects the network state in a second period. The manner of calculating the second period is the same as the above manner, and will not be described here.
For example, the frequency of the client for the probe activity by the server may also be two cases, where one is the case that the client is reachable (the client survives), and in this case, each probe activity causes a certain energy consumption to the client, so the frequency needs to be set lower. By the method, energy consumption can be saved, and the client is not in a network island in a long-time network disconnection state.
The other condition is the condition that the client is not reachable, in which case the general ARP request does not reach the client (the client is disconnected), the energy consumption of the client is not affected, and the frequency can be set to be higher, so that the defect of long-time network island when the active probing frequency of the client is lower is overcome.
In an embodiment of the present application, when the server detects that the network state with the terminal is normal, a callback instruction is sent to the terminal. Besides the probe activity, the server needs to make a callback after the client is reachable, so as to inform the client that the data can be actively reported.
Furthermore, selective detection is performed in the network detection process, only packet loss rate and delay rate are detected, and irrelevant network traffic analysis and data packet sniffing are avoided, so that energy is saved.
According to the process, the period for detecting the network state in the running state and the non-running state is respectively determined by combining the total number of terminals in the server networking, the number of terminals in the running state and the number of terminals in the connection state, so that the suitability of period configuration in the network state detection is improved, and the efficiency of network state detection is further ensured.
In step S130, at the terminal side, the network state is detected based on the frequency at which the terminal detects the network state.
In one embodiment of the present application, the terminal side determines a probing period by probing the frequency to detect the network state based on the probing period.
In one embodiment of the present application, at a terminal side, detecting a network state based on a frequency of detecting the network state by the terminal includes:
if the terminal detects that the accumulated data exists, a detection mode is started;
Detecting the frequency of detecting the network state, and calculating the time period of the detection based on the frequency;
and detecting the network state between the local terminal and the server based on the time period.
In one embodiment of the present application, the detection mode starts to detect the current network state when the terminal detects the presence of pile-up data. In this embodiment, when network state detection is performed, the frequency of detecting the network state is obtained firstBased on frequencyCalculating the time period corresponding to the detectionThe method comprises the following steps:
Wherein, Representing the periodic factors trained from historical data,Representing a preset time factor. By the method, the time period corresponding to the detection is calculated according to the detection frequency, when the frequency is higher, the detection frequency is higher, and the detection time is longer, the detection needs to be waited for a longer time period, so that the detection frequency and the resource consumption when the network state is not good are reduced, and the network state detection benefit is improved.
The first detection interval time is 6s, the second detection interval time is 20s, and the detection times at the back are increased on the basis of the detection after the data uploading failure phenomenon, so that the purpose of saving electric quantity is achieved. However, the longer the sequence is polled, the longer the later the sequence is, which may cause a subsequent long network island, for which case we use an activation policy to reset the sequence, which activation policy triggers in certain specific situations, for example, when a user enters the system to start preparing to upload new data, in order to avoid data accumulation, at which time the activation policy may be used to reset the sequence.
The network detection at the terminal side can only take one of the network island duration and the network island duration between saving energy consumption and ensuring as little as possible, and the balance is ensured as much as possible, so that the effort at the terminal side can only be said to select one balance strategy as much as possible. At the moment, the thinking is converted, a part of work is converted to the server side, the energy consumption problem is not needed to be considered at the server side, and the network island time of the client side can be ensured as much as possible.
In step S140, if the detected network state is in a communicable state, the terminal is triggered to enter an online mode, and data is transmitted and processed through the network.
In one embodiment of the application, when the network state is detected to be in a communicable state, the terminal is triggered to enter an online mode, and data is transmitted through a network between the terminal and a server to perform relevant processing. And uploading the generated data to a server in real time after processing. And the real-time processing, transmission and storage of the data are ensured.
In one embodiment of the present application, in the above processing, the method further includes: detecting network time delay when transmitting data; and when the network time delay is greater than or equal to a set threshold value, detecting the network state. The normal operation of the network is ensured through the process.
In step S150, if the network is disconnected, the offline state is maintained, and data is acquired and stored locally.
In one embodiment of the application, if the network cannot be detected in the polling state, the network is determined to be in the off-network state. And then maintaining the off-line state, and processing the service through the off-line state. In the processing process, data required by the service are acquired from the local, and meanwhile, the generated data are cached in the local. And when the network state is entered later, uploading the data in the cache to a server or a cloud.
As shown in fig. 3, in one embodiment of the present application, before the terminal operates, the current position of the terminal is detected, and the detection of the network state is automatically triggered according to the position; detecting a network state based on the running state of the terminal at a server side; detecting a network state at a terminal side based on the frequency of detecting the network state by the terminal; if the detected network state is in a communicable state, triggering the terminal to enter an online mode, transmitting data through a network and processing the data; if the network is disconnected, the off-line state is maintained, and the data is acquired and stored locally. According to the technical scheme of the application, the client side active polling and the server side active probing scheme can simultaneously give consideration to the network disconnection time and the energy consumption of the terminal equipment, and the defect of higher energy consumption of the common network probing technology in a weak network environment is perfectly overcome. The method reduces the electric quantity consumed by each network detection and the network detection times, ensures the network detection efficiency, and is suitable for the scenes of weak network in coal mine and the terminal needing to pay attention to energy consumption. The method and the device realize smooth conversion between the wired state and the wireless state when the underground coal mine environment terminal operates, enhance the production data processing efficiency under wired and wireless scenes, and improve the working efficiency of the underground terminal.
The following describes an embodiment of the device of the present application, which may be used to perform a method for operating a mobile device based on network status detection in a coal mine well according to the above embodiment of the present application. It will be appreciated that the apparatus may be a computer program (including program code) running in a computer device, for example the apparatus being an application software; the device can be used for executing corresponding steps in the method provided by the embodiment of the application. For details not disclosed in the embodiment of the device of the present application, please refer to an embodiment of a method for operating a mobile device based on network status detection under a coal mine.
FIG. 4 shows a block diagram of a mobile device operation apparatus for coal mine downhole based on network status detection according to one embodiment of the present application.
Referring to fig. 4, a mobile device operation apparatus for underground coal mine based on network state detection according to an embodiment of the present application includes:
A triggering unit 310, configured to detect a current location of the terminal before the terminal operates, and automatically trigger to detect a network state according to the location;
a service unit 320, configured to detect a network state based on an operation state of the terminal at a server side;
A terminal unit 330, configured to detect a network state at a terminal side based on a frequency of detecting the network state by the terminal;
a networking unit 340, configured to trigger the terminal to enter an online mode if the detected network state is in a communicable state, and transmit data and process the data through a network;
the off-line unit 350 is configured to maintain an off-line state if the off-line state is in the off-line state, and obtain and store data locally.
In the present application, based on the foregoing solution, the detecting, at the server side, a network state based on an operation state of the terminal includes: detecting whether the terminal is in an operation state or not according to an address pre-registered by the terminal at a server side; if the network state is in the running state, detecting the network state through the server in a first period; if the network state is not running, the server detects the network state in a second period.
In the present application, based on the foregoing aspect, the method further includes: before entering a weak network environment in the pit, a terminal acquires a local IP address and a local MAC address; and registering the equipment in the server based on the IP address and the MAC address.
In the present application, based on the foregoing aspect, the method further includes: and when the server detects that the network state between the server and the terminal is normal, sending a callback instruction to the terminal.
In the present application, based on the foregoing scheme, the detecting, at a terminal side, a network state based on a frequency of detecting the network state by the terminal includes: if the terminal detects that the accumulated data exists, a detection mode is started; detecting the frequency of detecting the network state, and calculating the time period of the detection based on the frequency; and detecting the network state between the local terminal and the server based on the time period.
In the present application, based on the foregoing solution, if the detected network state is in a communicable state, the method triggers the terminal to enter an online mode, and after transmitting and processing data through a network, the method further includes: detecting network time delay when transmitting data; and when the network time delay is greater than or equal to a set threshold value, detecting the network state.
In the present application, based on the foregoing scheme, the network state includes a packet loss rate and a delay rate.
In one embodiment of the application, before the terminal operates, detecting the current position of the terminal, and automatically triggering and detecting the network state according to the position; detecting a network state based on the running state of the terminal at a server side; detecting a network state at a terminal side based on the frequency of detecting the network state by the terminal; if the detected network state is in a communicable state, triggering the terminal to enter an online mode, transmitting data through a network and processing the data; if the network is disconnected, the off-line state is maintained, and the data is acquired and stored locally. According to the technical scheme of the application, the client side active polling and the server side active probing scheme can simultaneously give consideration to the network disconnection time and the energy consumption of the terminal equipment, and the defect of higher energy consumption of the common network probing technology in a weak network environment is perfectly overcome. The method reduces the electric quantity consumed by each network detection and the network detection times, ensures the network detection efficiency, and is suitable for the scenes of weak network in coal mine and the terminal needing to pay attention to energy consumption. The method and the device realize smooth conversion between the wired state and the wireless state when the underground coal mine environment terminal operates, enhance the production data processing efficiency under wired and wireless scenes, and improve the working efficiency of the underground terminal.
Fig. 5 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
It should be noted that, the computer system 400 of the electronic device shown in the drawings is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
Among them, the computer system 400 includes a central processing unit (Central Processing Unit, CPU) 401 that can perform various appropriate actions and processes, such as performing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 402 or a program loaded from a storage section 408 into a random access Memory (Random Access Memory, RAM) 403. In the RAM 403, various programs and data required for the system operation are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An Input/Output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output portion 407 including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and a speaker, etc.; a storage section 408 including a hard disk or the like; and a communication section 409 including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. The drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 409 and/or installed from the removable medium 411. When executed by a Central Processing Unit (CPU) 401, performs the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where 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 or flowchart illustration, and combinations of blocks in the block diagrams 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 involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternative implementations described above.
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the methods described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (8)

1. The method for operating the mobile equipment based on network state detection under the coal mine is characterized by comprising the following steps of:
before the terminal operates, detecting the current position of the terminal, and automatically triggering and detecting the network state according to the position;
Detecting a network state based on the running state of the terminal at a server side;
detecting a network state at a terminal side based on the frequency of detecting the network state by the terminal;
If the detected network state is in a communicable state, triggering the terminal to enter an online mode, transmitting data through a network and processing the data;
if the network is in a disconnected state, maintaining an offline state, and obtaining and storing data from the local;
wherein, at the server side, detecting the network state based on the operation state of the terminal includes:
Detecting whether the terminal is in an operation state or not according to an address pre-registered by the terminal at a server side;
If the network state is in the running state, detecting the network state through the server in a first period;
If the network state is not running, the server detects the network state in a second period;
wherein, at the terminal side, detecting the network state based on the frequency of detecting the network state by the terminal includes:
if the terminal detects that the accumulated data exists, a detection mode is started;
detecting frequency of detecting network state Based on the frequencyCalculating the time period of the current detectionThe method comprises the following steps:
Detecting the network state between the local terminal and the server based on the time period;
Wherein, Representing a periodic factor trained from historical data, i representing the number of rounds of network probing,Representing a preset time factor.
2. The method according to claim 1, wherein the method further comprises:
before entering a weak network environment in the pit, a terminal acquires a local IP address and a local MAC address;
and registering the equipment in the server based on the IP address and the MAC address.
3. The method according to claim 1, wherein the method further comprises:
And when the server detects that the network state between the server and the terminal is normal, sending a callback instruction to the terminal.
4. The method of claim 1, wherein if the detected network state is in a communicable state, triggering the terminal to enter an online mode, transmitting data over a network and processing, further comprising:
detecting network time delay when transmitting data;
and when the network time delay is greater than or equal to a set threshold value, detecting the network state.
5. The method of claim 1, wherein the network status comprises a packet loss rate and a delay rate.
6. A mobile device running gear based on network state detects in colliery underground, characterized in that includes:
The triggering unit is used for detecting the current position of the terminal before the terminal operates, and automatically triggering and detecting the network state according to the position;
the server side is used for detecting the network state based on the running state of the terminal;
The terminal unit is used for detecting the network state based on the frequency of detecting the network state by the terminal at the terminal side;
the networking unit is used for triggering the terminal to enter an online mode if the detected network state is in a communicable state, and transmitting and processing data through a network;
The network disconnection unit is used for keeping an offline state if the network disconnection unit is in a network disconnection state, and obtaining and storing data from local;
wherein, at the server side, detecting the network state based on the operation state of the terminal includes:
Detecting whether the terminal is in an operation state or not according to an address pre-registered by the terminal at a server side;
If the network state is in the running state, detecting the network state through the server in a first period;
If the network state is not running, the server detects the network state in a second period;
wherein, at the terminal side, detecting the network state based on the frequency of detecting the network state by the terminal includes:
if the terminal detects that the accumulated data exists, a detection mode is started;
detecting frequency of detecting network state Based on the frequencyCalculating the time period of the current detectionThe method comprises the following steps:
Detecting the network state between the local terminal and the server based on the time period;
Wherein, Representing a periodic factor trained from historical data, i representing the number of rounds of network probing,Representing a preset time factor.
7. A computer readable medium having stored thereon a computer program, which when executed by a processor implements a method of operating a mobile device based on network status detection in a coal mine downhole according to any of claims 1 to 5.
8. An electronic device, comprising:
One or more processors;
Storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement a method of mobile device operation for in-mine network state detection as claimed in any one of claims 1 to 5.
CN202410297980.XA 2024-03-15 Mobile equipment operation method and device based on network state detection under coal mine Active CN117914930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410297980.XA CN117914930B (en) 2024-03-15 Mobile equipment operation method and device based on network state detection under coal mine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410297980.XA CN117914930B (en) 2024-03-15 Mobile equipment operation method and device based on network state detection under coal mine

Publications (2)

Publication Number Publication Date
CN117914930A CN117914930A (en) 2024-04-19
CN117914930B true CN117914930B (en) 2024-07-12

Family

ID=

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311842A (en) * 2020-03-09 2021-02-02 北京沃东天骏信息技术有限公司 Method and device for information interaction
CN114938521A (en) * 2022-05-23 2022-08-23 中国第一汽车股份有限公司 Network state detection method and device, electronic equipment and storage medium
CN114979938A (en) * 2021-02-20 2022-08-30 深圳市万普拉斯科技有限公司 Network reconnection method and device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311842A (en) * 2020-03-09 2021-02-02 北京沃东天骏信息技术有限公司 Method and device for information interaction
CN114979938A (en) * 2021-02-20 2022-08-30 深圳市万普拉斯科技有限公司 Network reconnection method and device and mobile terminal
CN114938521A (en) * 2022-05-23 2022-08-23 中国第一汽车股份有限公司 Network state detection method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107645529B (en) Heartbeat packet sending method and device
CN107749797B (en) Computing equipment and implementation method thereof
CN108834203B (en) Network switching method, device, terminal and storage medium
CN106557407B (en) Method and device for monitoring equipment load
CN110474975B (en) Heartbeat processing method and device of application program, electronic equipment and storage medium
CN109040295B (en) Method and device for determining abnormal disconnection, terminal and storage medium
CN110691398B (en) Network interaction method, system, equipment and storage medium of intelligent equipment
CN110445683B (en) Server, equipment, method and system for monitoring survival state of server
WO2015154462A1 (en) Method and device for managing instant communication application program, and mobile terminal thereof
WO2019010778A1 (en) Backup method and system for internet of things repeater
CN103139818A (en) Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS)
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
WO2014063487A1 (en) Traffic control method and device
JP2009182956A (en) Network connection control method and terminal
CN117914930B (en) Mobile equipment operation method and device based on network state detection under coal mine
TWI577162B (en) Method for maintaining transmission control protocol connection and computer system
CN111835578B (en) Information transmission management method, information transmission management apparatus, and readable storage medium
CN117914930A (en) Mobile equipment operation method and device based on network state detection under coal mine
CN107612705B (en) Method for saving power for terminal equipment for managing Internet of things in batches and relay equipment
CN107896176B (en) Processing method of computing node, intelligent terminal and storage medium
CN116319670A (en) Method and system for automatically switching multi-domain name IP in charging and battery-changing cabinet
CN113726608B (en) Data processing method and device
CN105357387A (en) Method, apparatus and system for wakening terminal
CN214544335U (en) Internet of things terminal equipment with optimized response mechanism in intelligent building
CN114126014A (en) Heartbeat proxy method and device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant