Wireless upgrading and updating method for underground coal mine equipment based on mobile terminal

By adopting a wireless upgrade and update method based on mobile terminals in coal mine underground equipment, and using the Consul service to obtain the equipment IP address and implement batch upgrades, the problems of incomplete coverage, frequent and low efficiency of equipment upgrades in the existing technology are solved, and the upgrade efficiency is improved. and system stability.

CN119364340APending Publication Date: 2025-01-24CHINA SHENHUA ENERGY CO LTD SHENDONG COAL BRANCH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411536862.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The existing technology has problems such as incomplete coverage, frequent upgrades, and low maintenance efficiency in the upgrading of underground equipment of coal mines, especially in an environment with a large number of equipment and a wide distribution.

Method used

Using a wireless upgrade update method based on mobile terminals, through WIFI hotspots or LANs connected to the device, the IP address of the device is used to obtain the IP address of the device to achieve equipment discovery and batches of upgrade. At the same time, it supports cross -LAN communication and dynamic adjustment of operating parameters to avoid unnecessary application updates.

Benefits of technology

It has significantly improved the upgrade efficiency of the undercut equipment, reduced maintenance time and cost, enhanced the stability and availability of the system, overcomes geographical restrictions, and makes remote maintenance possible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364340A_ABST
    Figure CN119364340A_ABST
Patent Text Reader

Abstract

The invention relates to a coal mine underground equipment wireless upgrading and updating method based on a mobile terminal, and the method comprises the steps: connecting to a WIFI hotspot or a local area network of underground equipment through the mobile terminal; accessing Consul service on the underground equipment, and acquiring IP addresses of all the same type of equipment in the local area network; establishing a device list according to the acquired IP address; sending an upgrading instruction to all the to-be-upgraded devices according to the device list; upgrading and updating a single device, including upgrading a system and an application program and updating running parameters; upgrading and updating are realized by calling a service interface on the equipment; when the running parameters are updated, the current running parameters are obtained from the server side and are transmitted back to the server side after being modified, and the whole application program does not need to be updated. According to the method, the problems of repeated operation, inconvenience in maintenance and low efficiency in a traditional upgrading method are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless upgrade of switches, and more specifically, to a method for wireless upgrade and updating of underground coal mine equipment based on a mobile terminal. Background Art

[0002] At present, the upgrade solution for underground equipment mainly adopts UWB (Ultra-Wideband) technology, which locates the target device and performs program upgrade by measuring distance, signal strength and device type. However, this technology has the following disadvantages: When there are many devices that need to be upgraded and they are distributed far away, UWB may not be able to cover all devices and multiple positioning and upgrades are required.

[0003] UWB technology can only be used to upgrade applications. When operating parameters need to be adjusted, the entire application must also be upgraded, resulting in too frequent application updates.

[0004] Equipment in coal mines is usually in an environment where it cannot be directly connected to the wide area network, which makes it impossible to upgrade the equipment system and application online through the network and can only be upgraded locally. In addition, there are many underground equipment and they are widely distributed, especially in fully mechanized mining faces, where the distance between equipment is long. Therefore, when all equipment needs to be maintained and upgraded, they must be connected one by one for operation, which is inefficient and cumbersome. Summary of the invention

[0005] The purpose of this application is to provide a method and system for wireless upgrading and updating of coal mine underground equipment based on a mobile terminal to solve the problems in the prior art.

[0006] In order to solve the above problems, the energy-efficient intelligent control switching power supply system involved in this application adopts the following technical solutions: A method for wirelessly upgrading and updating coal mine underground equipment based on a mobile terminal, characterized in that it comprises the following steps: S1. Device discovery: Connect to the WIFI hotspot or local area network of the underground equipment through the mobile terminal; Access the Consul service on the underground equipment to obtain the IP addresses of all similar devices in the local area network; Create a device list based on the acquired IP addresses; S2. Device wireless upgrade and update: According to the device list, send upgrade instructions to all devices to be upgraded; Upgrade and update a single device, including upgrading the system, application programs, and updating operating parameters; Upgrade and update by calling the service interface on the device; When updating the running parameters, the current running parameters are obtained from the server, and the modified parameters are sent back to the server without updating the entire application. S3. Cross-LAN communication: When the mobile terminal and the target device are not in the same local area network, communication is completed through proxy access; Select a device in the LAN as a proxy server to forward the upgrade instructions to the target device; When the mobile terminal and the target device are in the same local area network, the service interface of the target device is directly accessed.

[0007] Further, in S1, a device list is established according to the obtained IP address, specifically, including the steps of: Create a device list: Create an empty list or data structure to store the IP addresses of devices of the same type; Add device information: traverse the IP address information obtained from the Consul service and add each valid IP address to the device list; Remove duplicates: Check if there are duplicate IP addresses in the device list. If there are duplicates, remove the redundant IP addresses to ensure that each IP address in the list is unique. Device type tag: If you need to distinguish different types of devices, add a type tag to each IP address in the device list, where the type tag is part of the data returned by the Consul service or a pre-defined type identifier; Exception handling: During the processing, if an invalid IP address or other error is encountered, the error information is recorded and the entry is skipped. If errors occur frequently, the user is prompted to check the status of the Consul service or the network connection; Store device list: Store the final device list on the mobile terminal.

[0008] Further, in S2, according to the device list, an upgrade instruction is sent to all devices to be upgraded, specifically, including the steps of: Prepare upgrade package: Prepare the upgrade package according to the content to be upgraded and ensure the integrity and compatibility of the upgrade package; Build a network request: Build an HTTP POST request to send an upgrade instruction to the device and set the request header, including the necessary Content-Type information; Send upgrade instructions: traverse each IP address in the device list, use POST request to send upgrade instructions to the service port of each device, including the request body including the upgrade package, to ensure the accuracy of data transmission; Handle multi-device concurrency: Use multi-threading or multi-process technology to send upgrade instructions to multiple devices at the same time.

[0009] Further, in S2, for system upgrade, the system upgrade package is sent to the service port of the device through a PUT or POST request; for application upgrade, the application upgrade package is sent to the service port of the device through a PUT or POST request.

[0010] Further, in S2, when the operating parameters are updated, specifically, the following steps are performed: Get the current running parameters: Use HTTP GET request to get the current running parameters from the service port of the device, and make sure that the request URL correctly points to the interface for getting running parameters; Parse operation parameters: parse the operation parameter data returned from the server; Modify operating parameters: modify the operating parameter data locally according to the parameter values ​​that need to be changed, and use the graphical interface or command line tool to make modifications; Send back the modified operating parameters: Use HTTP PUT request to send the modified operating parameters back to the server, and ensure that the request body contains the complete modified operating parameter data; Further, in S3, when the mobile terminal and the target device are not in the same local area network, specifically, including: Select proxy device: Select a device in the current LAN as a proxy server; Configure the proxy server: Configure the proxy service on the proxy device to forward network requests from the mobile terminal; Build proxy request: The mobile terminal builds an HTTP request, the target of which is the service port of the target device, and sets the request header, including Content-Type and other necessary metadata; Send proxy request: The mobile terminal sends the request to the proxy server instead of directly to the target device, ensuring that the request body contains the complete upgrade package file or other data that needs to be sent; Proxy server forwarding: After receiving the request, the proxy server forwards the request to the service port of the target device to ensure the integrity and accuracy of the data during the forwarding process.

[0011] Further, in S3, when the mobile terminal and the target device are in the same local area network, specifically, including: Determine the IP address of the target device: Use the device list created previously to find the IP address of the target device; Build direct access request: Build the corresponding HTTP request and set the request header according to the operation to be performed; Send direct access request: Send a request directly to the service port of the target device, and ensure that the request body contains the complete upgrade package file; Process Response: Receive the response from the target device and process the response data to ensure that the upgrade or update process proceeds as expected.

[0012] Furthermore, an asynchronous processing mechanism is used to manage the upgrade process and the process of sending proxy requests. The response status code of the device is monitored to ensure that the upgrade request is successfully received. When sending the upgrade request, the network status and response results are monitored. If a failure or timeout occurs, the error message is recorded and retried. Devices that cannot successfully receive instructions are marked. The HTTPS encrypted transmission protocol is used to perform signature verification on the upgrade package.

[0013] The beneficial effects of this application are as follows: This application provides an efficient wireless upgrade and update solution for coal mine underground equipment, which solves the problems of repetitive operations, inconvenient maintenance and low efficiency in traditional upgrade methods. The following are the most important technical effects of this application: Device discovery and network information acquisition By accessing the Consul service on the device through a mobile terminal, the network information (such as IP address) of all devices of the same type in the local area network can be automatically obtained, simplifying the device discovery process.

[0014] This technical approach significantly reduces the need for manual intervention and reduces the workload of maintenance personnel.

[0015] Upgrade multiple devices simultaneously After obtaining the network information of all devices to be upgraded, upgrade instructions can be sent to these devices at the same time, realizing the batch upgrade capability.

[0016] Greatly improves upgrade efficiency and reduces maintenance time and cost.

[0017] Cross-LAN communication capability This application supports mobile terminals to communicate with devices that are not in the same local area network, and completes the upgrade task through proxy access or direct access.

[0018] This feature overcomes the geographical limitations of traditional upgrade solutions and makes remote maintenance possible.

[0019] Dynamically adjust operating parameters It provides an operating parameter adjustment function independent of application updates, and can modify the operating parameters of the device at any time according to actual needs.

[0020] The number of unnecessary application updates is reduced, improving system stability and availability.

[0021] Increased data transfer speed Data is transmitted through the network, which is faster than traditional UWB solutions and further improves the upgrade efficiency.

[0022] Increased flexibility Users can choose what to upgrade based on their needs, such as updating only the application without updating the entire system, or adjusting only the operating parameters without updating the software.

[0023] This flexibility makes maintenance work more efficient and reduces unnecessary consumption of resources.

[0024] To sum up, through a series of technological innovations, this application not only significantly improves the efficiency and convenience of underground equipment upgrades in coal mines, but also enhances the overall performance and stability of the system, providing strong support for intelligent maintenance in the coal mining industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solution of the embodiment of the present application, the following is a brief introduction to the drawings required for use in the embodiment: Figure 1 This is a device discovery principle diagram of a method for wirelessly upgrading and updating coal mine underground equipment based on a mobile terminal in the present application; Figure 2 This is a schematic diagram of the wireless upgrade and update principle of a method for wireless upgrade and update of underground coal mine equipment based on a mobile terminal in the present application. DETAILED DESCRIPTION

[0026] In order to make the technical purpose, technical solution and beneficial effects of the present application clearer, the technical solution of the present application is further described below in conjunction with the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application, that is, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings are usually arranged and designed in various different configurations.

[0027] The present application provides a method for wirelessly upgrading and updating coal mine underground equipment based on a mobile terminal, comprising the following steps: S1. Device discovery: Connect to the WIFI hotspot or local area network of the underground equipment through a mobile terminal; specifically, the steps include: Selection and configuration of mobile terminals: Choose a mobile terminal with WIFI function, such as a tablet or laptop.

[0028] Make sure the mobile terminal has the necessary software applications installed so that it can connect to the WIFI hotspot or local area network of the underground equipment and initiate network requests.

[0029] Connect to a WIFI hotspot: Turn on the WIFI function of the mobile terminal, search for and connect to the WIFI hotspot transmitted by the underground equipment.

[0030] If the WIFI hotspot of the underground equipment requires password authentication, enter the correct password to complete the connection.

[0031] Access to LAN: If the underground equipment is located in a local area network, the mobile terminal can directly access the local area network.

[0032] Use a mobile terminal to connect to the access point of the LAN (such as a router) and ensure that the mobile terminal and the underground equipment are in the same LAN.

[0033] Verify the connection status: After the connection is successful, check whether the mobile terminal can access the Internet normally to confirm the validity of the connection.

[0034] If you cannot access the Internet after connecting to a WIFI hotspot or LAN, check whether the network settings are configured correctly.

[0035] Safety considerations: Take necessary security measures to ensure the connection is secure and prevent unauthorized access.

[0036] Use encrypted WIFI connection to ensure data transmission security.

[0037] Through the above steps, the mobile terminal can successfully connect to the WIFI hotspot or local area network of the downhole equipment, laying a solid foundation for subsequent equipment discovery and wireless upgrade and update, ensuring that the mobile terminal can effectively communicate with the downhole equipment.

[0038] Access the Consul service on the underground device to obtain the IP addresses of all similar devices in the local area network; specifically, including: Access the Consul service: Use a mobile terminal to initiate an HTTP GET request to the Consul service port of the connected downhole equipment (usually port 8500 by default).

[0039] The request URL should point to the member list interface of the Consul service. Parsing the response data: Parse the JSON response data returned by the Consul service.

[0040] Extract IP address information of the same type of device from the response data.

[0041] Handling multiple types of devices: If you need to distinguish between different types of devices, you can specify the corresponding service tag or name in the request.

[0042] For example, you can filter by service name.

[0043] Create a device list: Based on the extracted IP address information, create a device list to record the IP addresses of all devices of the same type.

[0044] Make sure that the device list does not contain duplicate IP addresses.

[0045] Exception handling: In the process of initiating requests and parsing responses, it is necessary to handle possible network errors or data parsing errors.

[0046] If an error is encountered, log the error message and try to reconnect or prompt the user to check the network connection.

[0047] Safety considerations: Ensure the security configuration of the Consul service, such as enabling TLS encryption to protect data transmission security.

[0048] Use authentication mechanisms such as API keys or tokens to ensure that only authorized mobile endpoints can access the Consul service.

[0049] Through the above steps, the mobile terminal can effectively access the Consul service on the downhole equipment and obtain the IP addresses of all similar devices in the local area network, preparing for further wireless upgrades of the equipment. This ensures that the mobile terminal can accurately identify and connect to the required downhole equipment. Establish a device list based on the obtained IP address; specifically, the steps include: Create a device list: Create an empty list or data structure to store the IP addresses of devices of the same type.

[0050] Add device information: Traverse the IP address information obtained from the Consul service.

[0051] Add each valid IP address to the device list.

[0052] Remove duplicates: Check if there are any duplicate IP addresses in the device list.

[0053] If there are duplicates, remove the extra IP addresses to ensure that each IP address in the list is unique.

[0054] Device type marking: If you need to distinguish different types of devices, you can add a type tag to each IP address in the device list.

[0055] The type tag can be part of the data returned by the Consul service, or it can be a predefined type identifier.

[0056] Exception handling: During processing, if an invalid IP address or other error is encountered, the error message is logged and the entry is skipped.

[0057] If errors occur frequently, prompt the user to check the status of the Consul service or the network connection.

[0058] Storage device list: The final device list is stored on the mobile terminal for subsequent wireless device upgrades.

[0059] Make sure the storage format is convenient for subsequent reading and use.

[0060] Through the above steps, the mobile terminal can create a device list containing all IP addresses of the same type of devices based on the IP address information obtained from the Consul service, laying the foundation for the subsequent wireless upgrade of the device. This ensures that the mobile terminal can effectively manage the underground equipment that needs to be upgraded.

[0061] S2. Device wireless upgrade and update: According to the device list, send upgrade instructions to all devices to be upgraded; specifically, the steps include: Prepare the upgrade package: Prepare the upgrade package according to the content that needs to be upgraded.

[0062] Ensure the integrity and compatibility of the upgrade package.

[0063] Constructing a network request: Construct an HTTP POST request to send an upgrade instruction to the device.

[0064] Set the request header, including necessary information such as Content-Type.

[0065] Send upgrade command: Iterate through each IP address in the device list.

[0066] Use POST request to send upgrade instructions to the service port of each device.

[0067] The request body, including the upgrade package, ensures the accuracy of data transmission.

[0068] Handling multiple devices concurrently: Use multi-threading or multi-process technology to send upgrade instructions to multiple devices at the same time.

[0069] Ensure that the number of concurrent requests is moderate to avoid excessive load on the network or devices.

[0070] Exception handling: Monitor network status and response results during the sending process.

[0071] If a failure or timeout occurs, log the error and try again.

[0072] Devices that cannot successfully receive instructions are marked for subsequent processing.

[0073] Progress Tracking: Implement progress tracking function to display the number of devices that have sent instructions and the number of remaining devices.

[0074] Provide feedback to users to let them know how the upgrade process is progressing.

[0075] Safety considerations: Use HTTPS or other encrypted transmission protocols to ensure the security of upgrade instructions.

[0076] Signature verification is performed on the upgrade package to prevent tampering.

[0077] Through the above steps, the mobile terminal can effectively send upgrade instructions to all devices to be upgraded according to the previously established device list, thereby realizing batch wireless upgrade and update of devices, thereby ensuring that the mobile terminal can efficiently manage the upgrade process of underground equipment.

[0078] Upgrading and updating a single device, including but not limited to upgrading the system, application programs, and updating operating parameters, is achieved by calling the service interface on the device; specifically, the steps include: Upgrade preparation: Confirm the integrity and compatibility of the upgrade package.

[0079] Prepare upgrade package files, including system upgrade packages, application upgrade packages, etc.

[0080] Build upgrade request: Construct an HTTP PUT or POST request to send an upgrade instruction to the device.

[0081] Set the request header, including Content-Type and other necessary metadata.

[0082] Upgrade System: For system upgrades, send the system upgrade package to the device's service port via a PUT or POST request.

[0083] Make sure the request body contains the complete upgrade package file.

[0084] To upgrade the application: For application upgrades, the application upgrade package is also sent to the service port of the device through a PUT or POST request.

[0085] Make sure the request body contains the complete application upgrade package file.

[0086] Update the running parameters: Get the current operating parameters from the device through a GET request.

[0087] Modify the parameter values ​​that need to be changed.

[0088] The modified operating parameters are sent back to the device's service port through a PUT request.

[0089] Asynchronous processing: Use an asynchronous processing mechanism to manage the upgrade process.

[0090] Monitor the device's response status code to ensure that the upgrade request is successfully received.

[0091] Error handling: When sending upgrade requests, monitor the network status and response results.

[0092] If a failure or timeout occurs, log the error and try again.

[0093] Devices that cannot successfully receive instructions are marked for subsequent processing.

[0094] Progress Tracking: Implement progress tracking function to display the upgrade status of each device.

[0095] Provide feedback to users to let them know how the upgrade process is progressing.

[0096] Safety considerations: Use HTTPS or other encrypted transmission protocols to ensure the security of upgrade packages and operating parameters.

[0097] Signature verification is performed on the upgrade package to prevent tampering.

[0098] Through the above steps, the mobile terminal can effectively upgrade and update a single device according to the previously established device list, including but not limited to upgrading the system, application program and updating the operating parameters, thereby ensuring that the mobile terminal can efficiently manage the upgrade process of the underground equipment.

[0099] Through the above steps, the mobile terminal can effectively call the service interface on the device according to the previously established device list to achieve the upgrade and update of a single device, including but not limited to upgrading the system, application and updating the operating parameters. This ensures that the mobile terminal can efficiently manage the upgrade process of the underground equipment.

[0100] When updating the running parameters, the current running parameters are obtained from the server, and the parameters are modified and sent back to the server without updating the entire application. Specifically, Get the current running parameters: Use HTTP GET request to obtain the current operating parameters from the service port of the device.

[0101] Make sure that the request URL correctly points to the interface for obtaining running parameters.

[0102] Parsing operation parameters: Parse the running parameter data returned from the server.

[0103] Run parameters are usually returned in JSON or other easily parsable format.

[0104] Modify the operating parameters: Modify the operating parameter data locally according to the parameter values ​​that need to be changed.

[0105] Modifications can be made using either the graphical interface or command line tools.

[0106] Return the modified operating parameters: Use HTTP PUT request to send the modified running parameters back to the server.

[0107] Make sure the request body contains the complete modified runtime parameter data.

[0108] Asynchronous processing: Use an asynchronous processing mechanism to manage the process of running parameter updates.

[0109] Monitor the device's response status code to ensure that the operating parameter update request is successfully received.

[0110] Error handling: When sending operation parameter update requests, monitor the network status and response results.

[0111] If a failure or timeout occurs, log the error and try again.

[0112] Devices that cannot successfully receive instructions are marked for subsequent processing.

[0113] Progress Tracking: Implement progress tracking function to display the update status of operating parameters of each device.

[0114] Provide feedback to the user to let the user know the progress of the running parameter update process.

[0115] Safety considerations: Use HTTPS or other encrypted transmission protocols to ensure the security of operating parameters.

[0116] Signature verification is performed on running parameters to prevent tampering.

[0117] Through the above steps, the mobile terminal can effectively call the service interface on the device according to the previously established device list to update the operating parameters without updating the entire application, ensuring that the mobile terminal can efficiently manage the upgrade process of the underground equipment.

[0118] S3. Cross-LAN communication: When the mobile terminal and the target device are not in the same local area network, the communication is completed through the proxy access mode, and a device in the local area network is selected as a proxy server to forward the upgrade instruction to the target device, including: Select the proxy device: Select a device in the current LAN as a proxy server.

[0119] The device should be stable and have sufficient resources to handle the forwarding tasks.

[0120] Configure the proxy server: Configure the proxy service on the proxy device.

[0121] Configure the proxy service to forward network requests from mobile terminals.

[0122] Construct the proxy request: The mobile terminal constructs an HTTP request, the target of which is the service port of the target device.

[0123] Set the request header, including Content-Type and other necessary metadata.

[0124] Send proxy request: The mobile terminal sends the request to the proxy server instead of directly to the target device.

[0125] Make sure the request body contains the complete upgrade package file or other data that needs to be sent.

[0126] Proxy forwarding: After receiving the request, the proxy server forwards the request to the service port of the target device.

[0127] Ensure the integrity and accuracy of data during forwarding.

[0128] Handling the response: After receiving the response from the target device, the proxy server forwards it to the mobile terminal.

[0129] Process the response data to ensure that the upgrade or update process proceeds as expected.

[0130] Exception handling: When sending proxy requests, monitor the network status and response results.

[0131] If a failure or timeout occurs, log the error and try again.

[0132] Devices that cannot successfully receive instructions are marked for subsequent processing.

[0133] Safety considerations: Use HTTPS or other encrypted transmission protocols to ensure the security of upgrade instructions and data.

[0134] Signature verification is performed on the upgrade package to prevent tampering.

[0135] Ensure secure configuration of proxy servers to prevent unauthorized access.

[0136] Through the above steps, the mobile terminal can effectively call the service interface on the device according to the previously established device list, and even if the mobile terminal and the target device are not in the same local area network, cross-local area network communication can be achieved through proxy access to complete the upgrade of the device. This ensures that the mobile terminal can efficiently manage the upgrade process of the underground equipment.

[0137] When the mobile terminal and the target device are in the same local area network, directly access the service interface of the target device, specifically, including: Determine the IP address of the target device: Using the device list created earlier, find the IP address of the target device.

[0138] Construct a direct access request: Construct an appropriate HTTP request (PUT or POST) based on the operation to be performed (for example, upgrading the system or application or updating operating parameters).

[0139] Set the request header, including Content-Type and other necessary metadata.

[0140] Send a direct access request: Send requests directly to the service port of the target device.

[0141] Make sure the request body contains the complete upgrade package file or other data that needs to be sent.

[0142] Handling the response: Receive a response from the target device.

[0143] Process the response data to ensure that the upgrade or update process proceeds as expected.

[0144] Exception handling: When sending direct access requests, monitor the network status and response results.

[0145] If a failure or timeout occurs, log the error and try again.

[0146] Devices that cannot successfully receive instructions are marked for subsequent processing.

[0147] Safety considerations: Use HTTPS or other encrypted transmission protocols to ensure the security of upgrade instructions and data.

[0148] Signature verification is performed on the upgrade package to prevent tampering.

[0149] Ensure target devices are securely configured to prevent unauthorized access.

[0150] Through the above steps, the mobile terminal can effectively call the service interface on the device according to the previously established device list, and when the mobile terminal and the target device are in the same local area network, the device can be upgraded and updated by direct access, ensuring that the mobile terminal can efficiently manage the upgrade process of the underground equipment.

[0151] This application aims to solve the problem in the prior art that for underground coal mine equipment that cannot access the wide area network, the equipment system and application program cannot be upgraded online through the network, and can only be upgraded locally, and there is a situation where the application program operating parameters often need to be changed. However, there are many underground equipments at present, and the distance from the beginning to the end of the comprehensive mining working face is far. When the systems of all the equipments in the working face need to be maintained, upgraded and updated, it is necessary to connect the equipments in turn and then upgrade them, which has the problems of requiring multiple repetitive operations, inconvenient maintenance and low efficiency.

[0152] In order to solve the above technical problems, in an embodiment, the present application uses the WIFI function of a mobile terminal such as a tablet computer, a laptop computer, etc. to connect to the WIFI hotspot of a device or the local area network where the access device is located, so that the network information of other devices can be obtained through one device, thereby realizing cross-device communication, and based on this, wireless upgrades and updates of all devices can be realized.

[0153] The current upgrade solution for underground equipment uses UWB to find the target device for program upgrade based on distance, signal strength, and device type.

[0154] The existing technology uses UWB to discover the target device and then update the device's application program, but this technology has the following disadvantages: (1) When there are many devices that need to be upgraded and the distance is relatively far (for example: all controllers in a comprehensive mining face), it is impossible to obtain all devices through UWB, and multiple acquisitions and upgrades are required. (2) Only the application program can be upgraded. When only some operating parameters need to be changed, the application program also needs to be upgraded, resulting in too frequent updates of the application program.

[0155] In response to the above shortcomings, this application aims to solve the problem of simultaneous upgrading and updating of multiple devices and online updating of application running parameters, making the upgrading and updating of devices more convenient and quick.

[0156] The technical implementation of this application can be roughly divided into two parts: device discovery and wireless device upgrade and update. It is necessary to discover the device first and then upgrade and update it.

[0157] (1) Device discovery like Figure 1 As shown, device discovery means obtaining the IP of the device. The device discovery function of this application needs to rely on the Consul service (similar to an application) on the device. Each device runs a Consul service, which records the IP addresses of all devices of the same type in the same LAN. By connecting to a device's WIFI hotspot or accessing the LAN where the device is located, you can access the device's Consul service through a network request to obtain the IP addresses of all devices in the same LAN, and even obtain the IP of devices in other LANs. Knowing the IP address of the device, you can communicate with the device, and then you can upgrade and update the device's system and applications.

[0158] (2) Wireless device upgrade and update like Figure 2 As shown, upgrading a single device includes upgrading the system, application, and updating operating parameters. The upgrade is completed by calling the interface provided by the service on the device. At this time, the device is equivalent to the server, and the mobile terminal is equivalent to the client. Under the premise of knowing the server IP, the server interface can be accessed. At this time, upgrading the device can be understood as uploading a file to the server; updating the operating parameters can be understood as obtaining the current operating parameters from the server, modifying them, and then sending them back to the server, so there is no need to update the application.

[0159] In this application, the calling of the server interface is divided into two ways: proxy access and direct access. Proxy access is to complete the calling of the server interface by forwarding the network request through the currently connected device; direct access is that the mobile terminal directly communicates with the server and calls its interface. The difference in the usage scenarios of the two methods lies in whether the mobile terminal is in the same LAN as the target device. If they are not in the same LAN, cross-LAN communication must be achieved through proxy access.

[0160] The upgrade and update of multiple devices is to obtain the IP addresses of all devices to be upgraded through device discovery, and then send network requests to all devices at the same time to upgrade and update multiple devices.

[0161] Alternative solution for device discovery: Mobile terminals broadcast via the Coap protocol, and all devices receiving the broadcast will reply to the mobile terminal with their network and device information, thereby achieving the purpose of discovering all devices. Hongmeng system device discovery is based on this protocol.

[0162] The key points of this application are as follows: 1. The mobile terminal accesses the device's Consul service through the network to obtain the network information of all devices registered in it as a means of device discovery.

[0163] 2. Simultaneous upgrade of multiple devices based on device discovery.

[0164] 3. Cross-LAN communication between mobile terminals and devices.

[0165] 4. Dynamic adjustment of device application running parameters.

[0166] Compared with the existing technology, the advantages of this application are as follows: (1) By accessing the local area network where the device is located, all devices of the same type in the local area network can be updated at the same time, reducing the workload of equipment maintenance and upgrading, making it more convenient and quick.

[0167] (2) You can freely choose the part of the device you want to upgrade, avoiding the problem of having to update the entire application when you want to adjust operating parameters.

[0168] (3) Data transmission through the network is faster.

[0169] (4) Support cross-LAN communication.

[0170] Specifically, this application provides an efficient wireless upgrade and update solution for coal mine underground equipment, which solves the problems of repetitive operations, inconvenient maintenance and low efficiency in traditional upgrade methods. The following are the most important technical effects of this application: Device discovery and network information acquisition By accessing the Consul service on the device through a mobile terminal, the network information (such as IP address) of all devices of the same type in the local area network can be automatically obtained, simplifying the device discovery process.

[0171] This technical approach significantly reduces the need for manual intervention and reduces the workload of maintenance personnel.

[0172] Upgrade multiple devices simultaneously After obtaining the network information of all devices to be upgraded, upgrade instructions can be sent to these devices at the same time, realizing the batch upgrade capability.

[0173] Greatly improves upgrade efficiency and reduces maintenance time and cost.

[0174] Cross-LAN communication capability This application supports mobile terminals to communicate with devices that are not in the same local area network, and completes the upgrade task through proxy access or direct access.

[0175] This feature overcomes the geographical limitations of traditional upgrade solutions and makes remote maintenance possible.

[0176] Dynamically adjust operating parameters It provides an operating parameter adjustment function independent of application updates, and can modify the operating parameters of the device at any time according to actual needs.

[0177] The number of unnecessary application updates is reduced, improving system stability and availability.

[0178] Increased data transfer speed Data is transmitted through the network, which is faster than traditional UWB solutions and further improves the upgrade efficiency.

[0179] Increased flexibility Users can choose what to upgrade based on their needs, such as updating only the application without updating the entire system, or adjusting only the operating parameters without updating the software.

[0180] This flexibility makes maintenance work more efficient and reduces unnecessary consumption of resources.

[0181] To sum up, through a series of technological innovations, this application not only significantly improves the efficiency and convenience of underground equipment upgrades in coal mines, but also enhances the overall performance and stability of the system, providing strong support for intelligent maintenance in the coal mining industry.

[0182] Finally, it should be noted that the above embodiments are only used to illustrate but not limit the technical solutions of the present application. Any modifications or partial replacements of the present application that do not deviate from the spirit and scope of the present application should be included in the scope of protection of the claims of the present application.

Claims

1. A method for wireless upgrading and updating of underground coal mine equipment based on a mobile terminal, characterized in that: The following steps are involved: S1. Device discovery: Connect to the WIFI hotspot or local area network of the underground equipment through the mobile terminal; Access the Consul service on the underground equipment to obtain the IP addresses of all similar devices in the local area network; Create a device list based on the acquired IP addresses; S2. Device wireless upgrade and update: According to the device list, send upgrade instructions to all devices to be upgraded; Upgrade and update a single device, including upgrading the system, application programs, and updating operating parameters; Upgrade and update by calling the service interface on the device; When updating the running parameters, the current running parameters are obtained from the server, and the modified parameters are sent back to the server without updating the entire application. S3. Cross-LAN communication: When the mobile terminal and the target device are not in the same local area network, communication is completed through proxy access; Select a device in the LAN as a proxy server to forward the upgrade instructions to the target device; When the mobile terminal and the target device are in the same local area network, the service interface of the target device is directly accessed.

2. According to claim 1, a method for wireless upgrading and updating of coal mine underground equipment based on a mobile terminal is characterized in that: In S1, a device list is established according to the obtained IP address, specifically, the steps include: Create a device list: Create an empty list or data structure to store the IP addresses of devices of the same type; Add device information: traverse the IP address information obtained from the Consul service and add each valid IP address to the device list; Remove duplicates: Check if there are duplicate IP addresses in the device list. If there are duplicates, remove the redundant IP addresses to ensure that each IP address in the list is unique. Device type tag: If you need to distinguish different types of devices, add a type tag to each IP address in the device list, where the type tag is part of the data returned by the Consul service or a pre-defined type identifier; Exception handling: During the processing, if an invalid IP address or other error is encountered, the error information is recorded and the entry is skipped. If errors occur frequently, the user is prompted to check the status of the Consul service or the network connection; Store device list: Store the final device list on the mobile terminal.

3. According to the method for wireless upgrading and updating of coal mine underground equipment based on mobile terminal in claim 1, it is characterized in that: In S2, according to the device list, an upgrade instruction is sent to all devices to be upgraded, specifically, the steps include: Prepare upgrade package: Prepare the upgrade package according to the content to be upgraded and ensure the integrity and compatibility of the upgrade package; Build a network request: Build an HTTP POST request to send an upgrade instruction to the device and set the request header, including the necessary Content-Type information; Send upgrade instructions: traverse each IP address in the device list, use POST request to send upgrade instructions to the service port of each device, including the request body including the upgrade package, to ensure the accuracy of data transmission; Handle multi-device concurrency: Use multi-threading or multi-process technology to send upgrade instructions to multiple devices at the same time.

4. According to the method for wireless upgrading and updating of coal mine underground equipment based on mobile terminal in claim 1, it is characterized in that: In S2, for system upgrade, the system upgrade package is sent to the service port of the device through a PUT or POST request; for application upgrade, the application upgrade package is sent to the service port of the device through a PUT or POST request.

5. According to the method of claim 1, the wireless upgrade and update method of coal mine underground equipment based on mobile terminal is characterized in that: In S2, when the operating parameters are updated, specifically, Get the current running parameters: Use HTTP GET request to get the current running parameters from the service port of the device, and make sure that the request URL correctly points to the interface for getting running parameters; Parse operation parameters: parse the operation parameter data returned from the server; Modify operating parameters: modify the operating parameter data locally according to the parameter values ​​that need to be changed, and use the graphical interface or command line tool to make modifications; Return the modified operating parameters: Use HTTP PUT request to send the modified operating parameters back to the server, and ensure that the request body contains the complete modified operating parameter data.

6. A method for wireless upgrading and updating of coal mine underground equipment based on a mobile terminal according to claim 1, characterized in that: When the mobile terminal and the target device are not in the same local area network in S3, specifically, it includes: Select proxy device: Select a device in the current LAN as a proxy server; Configure the proxy server: Configure the proxy service on the proxy device to forward network requests from the mobile terminal; Build proxy request: The mobile terminal builds an HTTP request, the target of which is the service port of the target device, and sets the request header, including Content-Type and other necessary metadata; Send proxy request: The mobile terminal sends the request to the proxy server instead of directly to the target device, ensuring that the request body contains the complete upgrade package file or other data that needs to be sent; Proxy server forwarding: After receiving the request, the proxy server forwards the request to the service port of the target device to ensure the integrity and accuracy of the data during the forwarding process.

7. A method for wireless upgrading and updating of coal mine underground equipment based on a mobile terminal according to claim 1, characterized in that: In S3, when the mobile terminal and the target device are in the same local area network, specifically, including: Determine the IP address of the target device: Use the device list created previously to find the IP address of the target device; Build direct access request: Build the corresponding HTTP request and set the request header according to the operation to be performed; Send direct access request: Send a request directly to the service port of the target device, and ensure that the request body contains the complete upgrade package file; Process Response: Receive the response from the target device and process the response data to ensure that the upgrade or update process proceeds as expected.

8. The method for wireless upgrading and updating of coal mine underground equipment based on a mobile terminal according to claim 1 is characterized in that: Use asynchronous processing mechanism to manage the upgrade process and the process of sending proxy requests, monitor the response status code of the device, and ensure that the upgrade request is successfully received. When sending the upgrade request, monitor the network status and response results. If a failure or timeout occurs, record the error information and try again. Mark the device that cannot successfully receive the command. Use the HTTPS encrypted transmission protocol to verify the signature of the upgrade package.

Citation Information

Cited By

  • Upgrading method and system of intelligent equipment, electronic equipment and program product

    CN120568315A