A close-range monitoring and control method for a hydraulic support controller
Through NFC short-range identification communication technology and customized encryption algorithm, the problem of cumbersome on-site operation of hydraulic support controller is solved, fast automatic identification and secure connection are achieved, and the operation convenience and safety of hydraulic support controller are improved.
Patent Information
- Application Number
- CN202411932988.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2044-12-26
AI Technical Summary
The on-site operation of existing hydraulic support controllers is cumbersome and requires manual identification and input of the support number. In certain environments, identification is difficult or error-prone, affecting operational efficiency and safety.
Adopting NFC short-range identification communication technology, the hydraulic support controller is automatically identified through the handheld terminal, and the NFC module and WiFi module are used to generate a dynamic WiFi network to achieve fast connection and control, combined with a custom encryption algorithm to ensure data security.
It enables rapid and automatic identification of specific brackets among hundreds of brackets on the working surface, simplifies the operating process, improves efficiency, ensures safety and reliability, prevents illegal access, and improves system security.
Smart Images

Figure CN119729434B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to a close-range monitoring and control method for a hydraulic support controller. Background Art
[0002] Hydraulic supports play a vital role in the coal mining industry. As support devices for the coal mining working face, hydraulic supports provide a stable support structure for underground mining, effectively preventing mine collapse and protecting workers. Furthermore, as the shearer continuously advances the working face, mining efficiency is improved. Each hydraulic support is equipped with a support controller, which serves as the support's brain, issuing control commands to direct the support's movements and collecting data from various sensors on the support, which is then uploaded to a centralized control center.
[0003] At present, the common operating methods for hydraulic supports are on-site operation and remote operation. Given that the current level of intelligent coal production is not high, most coal mines still use on-site operation. On-site operation includes directly operating the controller buttons and operating the support movement through the remote control at the working face. Direct operation of the controller buttons has the disadvantage of inconvenient operation. The controller is fixed at a specific position of the support and cannot be moved. The controller screen is small and can display limited information. If you use a remote control for operation, it is relatively flexible and lightweight, but you need to manually identify the support number and manually enter it into the remote control. The input support number is used as the reference support for left and right adjacent supports or left and right group operations. The disadvantage of this method is that the support number needs to be set before control, which is cumbersome to operate. In some environments, the support number is difficult to identify, or there is a possibility of input errors. Summary of the Invention
[0004] The purpose of the present invention is to overcome the shortcomings of the existing technology and provide a short-range identification communication technology using NFC, which ensures that a specific bracket can be quickly and automatically identified among hundreds of brackets on the working surface without the need for manual identification, and is a more convenient, efficient and reliable short-range monitoring and control method for hydraulic support controllers.
[0005] The purpose of the present invention is to achieve the following technical solutions: a method for close-range monitoring and control of a hydraulic support controller, wherein the hydraulic support controller is monitored by a handheld terminal, wherein the handheld terminal is provided with an application app capable of monitoring and controlling the hydraulic support, an NFC module, and a WiFi module, and the hydraulic support controller includes an NFC module, an MCU, and a WiFi module; the specific monitoring and control process is as follows:
[0006] A1. All support controllers on the working surface are powered on and started; the support controllers are initialized and then automatically addressed according to their support positions;
[0007] A2. The bracket controller turns on the WiFi module and inputs AT commands to the WiFi module through the MCU, causing the WiFi module to enter Access Point mode. The WiFi module also dynamically generates the WiFi hotspot name and password through the AT commands. The hotspot name is generated based on the bracket number and is saved.
[0008] A3. Extract the hotspot name and password, add the current bracket number and other pre-stored data, and combine these data into a JSON-formatted data structure S0. Then, perform custom encryption on S0 to generate a string S5 containing the encrypted data and signature. The custom encryption method is as follows:
[0009] A3.1. Perform Base64 encoding on the string data S0 in JSON format and convert it into a string S1 in Base64 format.
[0010] A3.2. Perform N SHA265 hash encoding on string S1 and convert the 256-bit data generated by the hash into the corresponding hexadecimal string S2. In this case, S2 contains 64 characters. N can be set to a different value according to actual needs.
[0011] A3.3. Process S1 using a custom hash encryption algorithm to obtain the encrypted string S3.
[0012] A3.4. Encrypt S2 using the RSA asymmetric encryption algorithm. Retrieve the string PRI_RSA representing the private key from local storage. Perform a standard RSA encryption operation on S2 using the private key PRI_RSA to obtain the encrypted string S4. S4 is the signature string. Concatenate S1, S3, and S4 using the # symbol to form a string S5 containing the encrypted data and signature.
[0013] A4. Turn on the NFC module. The MCU sends a command to set the NFC module to card reader mode. Write the string S5 generated in the previous step into the NFC module. After the data is written, the MCU will switch the NFC module to card mode. The NFC module can then be recognized as an NFC tag and read data by other devices.
[0014] A5. Use a handheld terminal to approach a bracket controller. The NFC module of the handheld terminal reads the data from the NFC module inside the bracket controller, converts the data into a string S1 and forwards it to the application App. The application App executes the verification and decryption algorithm to parse the string S1, obtain the bracket number and hotspot information, and actively connects to the wireless network of the bracket controller based on the hotspot name and password. After the handheld terminal and the bracket controller establish a network connection, the handheld terminal realizes detection and control of the bracket controller through the application App.
[0015] The beneficial effects of the present invention are:
[0016] 1. Using NFC short-range identification communication technology, it can ensure that a specific bracket can be quickly and automatically identified among hundreds of brackets on the work surface. There is no need for manual identification and manual setting of bracket numbers, which is more convenient, efficient and reliable.
[0017] 2. The bracket controller will automatically generate a name for the WiFi network based on its number, which is more recognizable.
[0018] 3. The password of the WiFi network is randomly generated each time to ensure security and prevent third-party devices from illegally accessing the WiFi network.
[0019] 4. The bracket controller dynamically writes the current bracket number and WiFi network information to the NFC module, avoiding the tedious maintenance of manual settings.
[0020] 5. By implementing customized encryption and decryption algorithms during the data transmission process within NFC, data can be prevented from being illegally obtained or tampered with, thereby improving the security of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a flow chart of the monitoring control of the present invention. DETAILED DESCRIPTION
[0022] The present invention provides a more convenient on-site operation method for hydraulic support controllers, proposing a control method based on NFC near-field communication. Using a remote control or handheld terminal, the user approaches the target support controller, reads relevant data via NFC, automatically determines the support number, and directly issues control commands by clicking the corresponding button. The support controller's sensor data and operating status can be monitored and viewed in real time on the handheld terminal's large screen, transforming a small screen into a large one and improving work efficiency. The present invention can quickly identify and automatically read the serial number of a specific controller on the work surface, establish a wireless communication channel, and enable data reading and command transmission. The handheld terminal can be an intrinsically safe smartphone or a dedicated remote control. Upon startup, each controller automatically writes its own support number and wireless connection information to the controller's internal NFC module through encryption. When the handheld terminal is brought within a short distance of the support controller, typically within 10 cm, it automatically reads the data from the NFC module, decrypts the data, obtains the support number and WiFi wireless networking information, and quickly establishes a wireless connection with the current controller. Based on the data characteristics, the designated application app is launched, automatically redirecting to the corresponding device management page, and various sensor data from the controller is read and displayed on the terminal screen. Thereafter, there is no need to set a reference bracket number, and the currently read bracket number will be used as the reference bracket number, and convenient remote control operations can be performed on the bracket through the buttons or menus on the page.
[0023] A method for close-range monitoring and control of a hydraulic support controller is disclosed. The method monitors the hydraulic support controller via a handheld terminal. The handheld terminal is equipped with an application app, an NFC module, and a WiFi module capable of monitoring and controlling the hydraulic support. The hydraulic support controller includes an NFC module, an MCU, and a WiFi module. An NFC module is added to the controller. When the NFC is in reader / writer mode, relevant data can be dynamically written to the NFC module. When the NFC is in card mode, the NFC tag can be used as an NFC tag to read data from other handheld terminal devices. The support controller dynamically generates a WiFi network, allowing handheld terminal devices to access and establish a wireless communication link.
[0024] like Figure 1 As shown in the figure, the specific monitoring and control process is as follows:
[0025] A1. All support controllers on the working surface are powered on and started; the support controllers are initialized and then automatically addressed according to their support positions, such as the first frame is numbered 1, the second frame is 2, and so on until the last frame; the automatic addressing capability is a normal function of the controller, and the specific addressing algorithm will not be repeated here.
[0026] A2. The rack controller turns on the WiFi module and sends AT commands to it through the MCU, putting it into Access Point mode, also known as hotspot mode. In this mode, the WiFi module acts as an access point, similar to a router, creating a wireless network that other devices can connect to. The WiFi module is in AP mode, acting as a server, allowing other devices, such as smart terminals, to connect to the WiFi hotspot network it transmits. The WiFi module also dynamically generates the WiFi hotspot name and password using AT commands. The hotspot name is based on the rack number. For example, if the current rack number is 135, the hotspot name is wireless_135, making the WiFi hotspot more recognizable. For security, a 16-bit string is generated using a custom random algorithm during WiFi initialization. This string is then set as the WiFi hotspot password. The hotspot name and password are also saved in local storage.
[0027] A3. Extract the hotspot name and password, add the current bracket number and other pre-stored data, and combine these data into a JSON-formatted data structure S0. To prevent S0 from being tampered with or key leakage, perform custom encryption on S0 to generate a string S5 containing the encrypted data and signature. The custom encryption method is as follows:
[0028] A3.1. Perform Base64 encoding on the string data S0 in JSON format and convert it into a string S1 in Base64 format.
[0029] A3.2. Perform N SHA265 hash encoding on string S1 and convert the 256-bit data generated by the hash into the corresponding hexadecimal string S2. In this case, S2 contains 64 characters. N can be set to a different value according to actual needs.
[0030] A3.3. Process S1 using a custom hash encryption algorithm to obtain the encrypted string S3.
[0031] A3.4. Encrypt S2 using the RSA asymmetric encryption algorithm. Retrieve the string PRI_RSA representing the private key from local storage. Perform a standard RSA encryption operation on S2 using the private key PRI_RSA to obtain the encrypted string S4. S4 is the signature string. Concatenate S1, S3, and S4 using the # symbol to form a string S5 containing the encrypted data and signature.
[0032] A4. Turn on the NFC module. The MCU sends a command to set the NFC module to card reader mode. Now you can perform read and write operations on the NFC module. Write the string S5 generated in the previous step into the NFC module. After the data is written, the MCU will continue to switch the NFC module to card mode. The NFC module can then be recognized as an NFC tag and read data by other devices.
[0033] A5. Use a handheld terminal to approach a stand controller within 10 cm. The handheld terminal's NFC module reads data from the stand controller's internal NFC module, converts the data into a string S5, and forwards it to the app. The app then executes a verification and decryption algorithm to parse string S5, obtaining the stand number and hotspot information. Based on the hotspot name and password, the handheld terminal actively connects to the stand controller's wireless network. After the handheld terminal and the stand controller establish a network connection, the handheld terminal uses the app to detect and control the stand controller.
[0034] In step A5, the process of verifying the decryption algorithm is as follows:
[0035] A5.1. Separate string S5 with the delimiter # to obtain three strings of length greater than 0, denoted as S1, S3, and S4. S1 is the first part of S5 and contains the user data. S3 is the middle part and contains the custom hash value. S4 is the last part of S5 and contains the signature.
[0036] A5.2. Hash string S1 N times with SHA265 and convert the resulting 256-bit data into the corresponding hexadecimal string S6.
[0037] A5.3. Extract the public key PUB_RSA paired with the private key PRI_RSA of the RSA algorithm in step A3 from the handheld terminal. Use the public key to perform the RSA decryption algorithm on string S4 to obtain string S7.
[0038] A5.4. Perform a custom hash encryption algorithm on string S1 to obtain an encrypted string S8.
[0039] A5.5. Compare strings S3 and S8 for consistency to determine if they are identical. Compare strings S6 and S7 for consistency to determine if they are identical. If either comparison fails the consistency check, the decryption verification has failed, indicating that the data has been tampered with or the key has been leaked, and an exception is reported. If both consistency checks pass, the signature and hash checks are successful. Then, perform Base64 decoding on string S1 to obtain a JSON-formatted string. The bracket number, hotspot name, and password are parsed from the JSON data. The two consistency checks are implemented to enhance the security and reliability of system encryption, preventing the risk of leaking the public and private keys generated by the server. This provides a double layer of security. The custom hash encryption algorithm is implemented in C and encapsulated as a dynamic link library (.so) file. This dynamic link library is constantly updated, making the entire verification mechanism more secure and reliable.
[0040] The application app will jump to the corresponding bracket controller details page based on the data parsed in the previous step, such as the bracket number and other information, and use the bracket number obtained in this parsing as the base bracket number. Through the various function buttons on the page, remote control operations such as left and right adjacent brackets or left and right groups of hydraulic brackets can be realized.
[0041] In this paper, a custom hash encryption algorithm is used to convert an input string of any length into a fixed-length 32-character hash string. This algorithm is efficient, stable, and easy to implement, and is suitable for various data processing and transmission application scenarios. The specific algorithm flow is as follows:
[0042] a. Initialize the seed value and hash value: select an initial seed value seed as the starting value for the hash calculation; define a variable h and initialize it to seed;
[0043] b. For each character char in the input string input_string, perform the following processing in sequence:
[0044] b1. Get the ASCII value of the current character ord(char);
[0045] b2. Update the hash value h: h = (h*31 + ord(char)) % 2^64, where 31 is the selected multiplier and the 64-bit modulus ensures that the hash value is within the range of a 64-bit integer;
[0046] c. Generate a fixed-length hash string of 32 characters;
[0047] c1. Convert the obtained 64-bit hash value h into a byte array array with a length of 16 bytes; the conversion process is as follows:
[0048] c1.1. Expand the 64-bit hash value h. Let h1 be the high 64 bits and h2 be the low 64 bits. Let h2 = h, h1 = h XORed to 0xFFFFFFFF. The 128-bit integer formed by combining h1 and h2 is expressed as combined_h = (h1<<64)|h2.
[0049] c1.2. Convert the 128-bit integer combined_h obtained in the previous step into a 16-byte byte array. Using the big-endian byte order, split the 128-bit integer into 16 units, each containing 8 bits, from high to low. Each unit is an element of the byte array.
[0050] c2. Convert the 16-byte array array to hexadecimal format. Add 0 to the left of values less than F so that each byte is represented by 2 characters. This way, 16 bytes are represented by 32 characters in total, resulting in a final hash result string of 32 characters.
[0051] The public key PUB_RSA and private key PRI_RSA are uniformly generated on the system server. Use the ssh-keygen command to generate a key pair to protect the public key PUB_RSA and private key PRI_RSA. Then copy the private key PRI_RSA in the key pair to the bracket controller and copy the public key PUB_RSA to the application app of the handheld terminal.
[0052] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and it should be understood that the scope of protection of the present invention is not limited to such specific descriptions and embodiments. Those skilled in the art can make various other specific variations and combinations based on the technical teachings disclosed in the present invention without departing from the essence of the present invention, and such variations and combinations are still within the scope of protection of the present invention.
Claims
1. A close-range monitoring and control method for a hydraulic support controller, characterized in that: The hydraulic support controller is monitored through a handheld terminal. The handheld terminal is equipped with an application app, NFC module and WiFi module that can monitor and control the hydraulic support. The hydraulic support controller includes an NFC module, MCU and WiFi module. The specific monitoring and control process is as follows: A1. All support controllers on the working surface are powered on and started; the support controllers are initialized and then automatically addressed according to their support positions; A2. The bracket controller turns on the WiFi module and inputs AT commands to the WiFi module through the MCU, causing the WiFi module to enter Access Point mode. The WiFi module also dynamically generates the WiFi hotspot name and password through the AT commands. The hotspot name is generated based on the bracket number and is saved. A3. Extract the hotspot name and password, add the current bracket number and other pre-stored data, and combine these data into a JSON-formatted data structure S0. Then, perform custom encryption on S0 to generate a string S5 containing the encrypted data and signature. The custom encryption method is as follows: A3.
1. Perform Base64 encoding on the string data S0 in JSON format and convert it into a string S1 in Base64 format. A3.
2. Hash string S1 N times with SHA265. Convert the 256-bit data generated by the hash into the corresponding hexadecimal string S2. In this case, S2 contains 64 characters. A3.
3. Process S1 using a custom hash encryption algorithm to obtain the encrypted string S3. A3.
4. Encrypt S2 using the RSA asymmetric encryption algorithm. Retrieve the string PRI_RSA representing the private key from local storage. Perform a standard RSA encryption operation on S2 using the private key PRI_RSA to obtain the encrypted string S4. S4 is the signature string. Concatenate S1, S3, and S4 using the # symbol to form a string S5 containing the encrypted data and signature. A4. Turn on the NFC module. The MCU sends a command to set the NFC module to card reader mode. Write the string S5 generated in the previous step into the NFC module. After the data is written, the MCU will switch the NFC module to card mode. The NFC module can then be recognized as an NFC tag and read data by other devices. A5. Use a handheld terminal to approach a bracket controller. The NFC module of the handheld terminal reads the data from the NFC module inside the bracket controller, converts the data into a string S1 and forwards it to the application App. The application App executes the verification and decryption algorithm to parse the string S1, obtain the bracket number and hotspot information, and actively connects to the wireless network of the bracket controller based on the hotspot name and password. After the handheld terminal and the bracket controller establish a network connection, the handheld terminal realizes detection and control of the bracket controller through the application App.
2. A method for close-range monitoring and control of a hydraulic support controller according to claim 1, characterized in that: In step A5, the process of verifying the decryption algorithm is as follows: A5.
1. Separate string S5 using the delimiter # to obtain three strings of length greater than 0. These strings are named S1, S3, and S4. A5.
2. Hash string S1 N times with SHA265 and convert the resulting 256-bit data into the corresponding hexadecimal string S6. A5.
3. Extract the public key PUB_RSA paired with the private key PRI_RSA of the RSA algorithm in step A3 from the handheld terminal. Use the public key to perform the RSA decryption algorithm on string S4 to obtain string S7. A5.
4. Perform a custom hash encryption algorithm on string S1 to obtain an encrypted string S8. A5.
5. Compare strings S3 and S8 for consistency to determine whether they are identical. Compare strings S6 and S7 for consistency to determine whether they are identical. If either comparison fails the consistency check, the decryption verification has failed, and an exception is reported. If both consistency checks pass, the signature and hash checks are successful. Then, perform Base64 decoding on string S1 to obtain a string in JSON format. Parse the bracket number, hotspot name, and password from the JSON data.
3. The method for close-range monitoring and control of a hydraulic support controller according to claim 1, characterized in that: The custom hash encryption algorithm is used to convert an input string of any length into a hash string of a fixed length of 32 characters. The specific algorithm process is as follows: a. Initialize the seed value and hash value: select an initial seed value seed as the starting value for the hash calculation; define a variable h and initialize it to seed; b. For each character char in the input string input_string, perform the following processing in sequence: b1. Get the ASCII value of the current character ord(char); b2. Update the hash value h: h = (h*31 + ord(char)) % 2^64, where 31 is the selected multiplier and the 64-bit modulus ensures that the hash value is within the range of a 64-bit integer; c. Generate a fixed-length hash string of 32 characters; c1. Convert the obtained 64-bit hash value h into a byte array array with a length of 16 bytes; the conversion process is as follows: c1.
1. Expand the 64-bit hash value h. Let h1 be the high 64 bits and h2 be the low 64 bits. Let h2 = h, h1 = h XORed to 0xFFFFFFFF. The 128-bit integer formed by combining h1 and h2 is expressed as combined_h = (h1<<64)|h2. c1.
2. Convert the 128-bit integer combined_h obtained in the previous step into a 16-byte byte array. Using the big-endian byte order, split the 128-bit integer into 16 units, each containing 8 bits, from high to low. Each unit is an element of the byte array. c2. Convert the 16-byte array array to hexadecimal format. Add 0 to the left of values less than F so that each byte is represented by 2 characters. This way, 16 bytes are represented by 32 characters in total, resulting in a final hash result string of 32 characters.
4. A method for close-range monitoring and control of a hydraulic support controller according to claim 2, characterized in that: The public key PUB_RSA and private key PRI_RSA are uniformly generated on the system server. Use the ssh-keygen command to generate a key pair to protect the public key PUB_RSA and private key PRI_RSA. Then copy the private key PRI_RSA in the key pair to the bracket controller and copy the public key PUB_RSA to the application app of the handheld terminal.
Citation Information
Patent Citations
Communication connection control method and device of hydraulic support group and electronic equipment
CN117939446A
Intelligent control system and method for fully mechanized coal mining working face
WO2023108692A1