A CANET-based Ethernet maintenance method for hydraulic support controllers on working surfaces
Through the CANET-based Ethernet maintenance method, remote configuration and data verification of the downhole hydraulic support controller are realized, which solves the problem of frequent personnel going down the well under traditional maintenance methods and improves work efficiency and safety.
Patent Information
- Application Number
- CN202411841335.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2044-12-13
AI Technical Summary
The traditional maintenance method of underground hydraulic support controllers relies on technicians to go down the well in person, which makes the work intensive and unsafe. Especially in the case of complex underground environment and difficult wiring, it affects production safety.
An Ethernet maintenance method based on CANET is adopted. The control terminal is connected to the CANET device. The Ethernet card CANET device is used to divide the configuration file into multiple data blocks, and the data blocks are sent to the hydraulic support controller through the CAN bus. Combined with data integrity verification, remote configuration file transmission and verification are realized.
It reduces the frequency of technicians going down to the well, improves work efficiency and safety, enhances the accuracy and efficiency of data transmission, and avoids errors caused by electromagnetic interference of the CAN bus and wear of connecting wires.
Smart Images

Figure CN119652943B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of working face hydraulic support maintenance, in particular to a CANET-based Ethernet maintenance method for a working face hydraulic support controller. Background Art
[0002] Improving the transmission methods for hydraulic support controllers underground is crucial in coal mining, as the underground environment is complex and presents numerous unsafe factors. Traditional maintenance methods rely on technicians physically going down to the mine to transfer and maintain configuration files and programs for hydraulic support controllers. However, underground conditions are limited, wiring is difficult, and maintaining hydraulic support controllers at the working face is challenging, which increases workload and compromises production safety.
[0003] Currently, transmission and maintenance of hydraulic support controllers in fully mechanized mining faces primarily relies on CAN communication. A USBCAN-2E-U CAN device card establishes a bridge between the host computer and the hydraulic support controller. The host computer transmits file streams via the USBCAN-2E-U to the CAN bus, which then distributes the data stream to the controller. However, most fully mechanized mining faces no longer have CAN communication lines, forcing field personnel to carry control terminals to the face for maintenance, increasing workload.
[0004] In order to solve the above problems, people have been seeking an ideal technical solution. Summary of the Invention
[0005] The purpose of the present invention is to address the deficiencies of the prior art and thus provide an Ethernet maintenance method for a hydraulic support controller on a working surface based on CANET.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is:
[0007] A first aspect provides an Ethernet maintenance method for a hydraulic support controller on a working face based on CANET, which is applied to a control terminal, wherein the control terminal is connected to a CANET device via a network cable, and the CANET device is connected to the hydraulic support controller on the working face via a CAN bus, comprising the following steps:
[0008] Step 1: Configure basic information of the CANET device; the basic information includes at least the CANET IP address, local IP address, local working port, target port, working mode, and CAN baud rate, where the CANET IP address and the local IP address are in the same network segment;
[0009] Step 2: Create a client to listen to the local working port and establish a connection with the CANET IP address;
[0010] Step 3: Divide the configuration file into multiple data blocks;
[0011] Step 4: For each data block, encapsulate it into multiple CAN frames, and then encapsulate the multiple CAN frames into TCP message frames and send them to the CANET device, which then sends them to the working face hydraulic support controller via the CAN bus.
[0012] Furthermore, after step 4, the method further includes:
[0013] Step 5: After a data block is sent, the integrity check value of the data block is calculated and saved, and a data integrity check instruction is sent to the hydraulic support controller of the working face through the CANET device;
[0014] The client monitors the local working port to receive the working condition information returned by the working face hydraulic support controller, obtains a data check value by parsing the working condition information, and compares the data check value with the stored integrity check value, wherein the data check value is obtained by the working face hydraulic support controller after performing integrity check on the data block;
[0015] If the two are consistent, it is determined that the data block is sent successfully, otherwise it is determined that the data block is sent unsuccessfully;
[0016] Step 6: When all data blocks of the configuration file are sent successfully, it is determined that the configuration file is sent successfully.
[0017] Furthermore, the configuration file is divided into multiple data blocks, including:
[0018] Convert the configuration file into a binary buffer stream;
[0019] Divide the binary buffer stream into multiple data blocks of 1024 bytes.
[0020] Furthermore, for each data block, it is encapsulated into multiple CAN frames, and the multiple CAN frames are encapsulated into TCP frames according to a preset encapsulation strategy, including:
[0021] Divide each data block into multiple unit data frames in units of 7 bytes;
[0022] According to the CAN communication protocol, CAN frame information and CAN frame ID are created before each unit data frame to encapsulate each unit data frame into a CAN frame according to the control;
[0023] Create TCP frame information and TCP frame ID according to the Ethernet communication protocol, and form a TCP message frame with multiple CAN frames.
[0024] A second aspect can provide a control terminal for maintaining a hydraulic support controller on a working surface based on CANET, comprising:
[0025] A configuration module configured to configure basic information of the CANET device; the basic information includes at least the CANET IP address, the local IP address, the local working port, the target port, the working mode, and the CAN baud rate, wherein the CANET IP address and the local IP address are located in the same network segment;
[0026] The client creation module is used to create a client to listen to the local working port and establish a connection with the CANET IP address to realize data sending and receiving;
[0027] A file division module is used to divide the configuration file into multiple data blocks;
[0028] An encapsulation module is used to encapsulate each data block into multiple CAN frames, and then encapsulate multiple CAN frames into TCP message frames;
[0029] The sending module is used to send the TCP message frame to the CANET device, which then sends it to the working face hydraulic support controller via the CAN bus.
[0030] Furthermore, the control terminal also includes an integrity verification module, which is used to calculate and save the integrity verification value of a data block after a data block is sent, and at the same time send a data integrity verification instruction to the working face hydraulic support controller through the CANET device, and receive the working condition information returned by the working face hydraulic support controller, obtain the data verification value by parsing the working condition information and compare it with the stored integrity verification value, wherein the data verification value is obtained by the working face hydraulic support controller after performing an integrity check on the data block; if the two are consistent, it is determined that the data block is sent successfully, otherwise it is determined that the data block is sent unsuccessfully; when all data blocks of the configuration file are sent successfully, it is determined that the configuration file is sent successfully.
[0031] A third aspect provides an Ethernet maintenance system for a hydraulic support controller on a working face based on CANET, comprising a control terminal, a CANET device, and a hydraulic support controller on a working face; wherein the control terminal is connected to the CANET device via a network cable, and the CANET device is connected to the hydraulic support controller on the working face via a CAN bus;
[0032] The control terminal executes the Ethernet maintenance method for the working face hydraulic support controller based on CANET described in the first aspect;
[0033] Alternatively, the control terminal is the control terminal described in the second aspect.
[0034] The present invention has outstanding substantive features and significant improvements over the prior art. Specifically, the CANET-based Ethernet maintenance method for the hydraulic support controller of the working face can achieve maintenance of the hydraulic support controller of the fully mechanized mining working face above the well or in the centralized control warehouse, reducing the number of people going down the well and improving work efficiency and safety.
[0035] The Ethernet maintenance method has a higher bandwidth and transmits data in TCP frames, while CAN communication transmits data in CAN frames and can transmit larger amounts of data;
[0036] CAN frames are divided before TCP message transmission, eliminating the need for CANET devices to perform data sub-packaging and grouping, which can improve transmission efficiency.
[0037] By performing a CRC check on each data block and comparing the CRC check value calculated in the program with the CRC check value returned by the controller, the accuracy of the result is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a principle block diagram of embodiment 1 of the present invention.
[0039] Figure 2 It is a flowchart of the Ethernet maintenance method described in Example 1 of the present invention.
[0040] Figure 3 It is a flowchart of the Ethernet maintenance method described in Example 2 of the present invention.
[0041] Figure 4 This is a principle block diagram of the control terminal described in Example 4 of the present invention. DETAILED DESCRIPTION
[0042] Traditional maintenance methods involve going underground, requiring on-site personnel to carry control terminals to the work surface for maintenance. This results in a long CAN communication transmission time. Furthermore, the CAN bus is susceptible to external electromagnetic interference, such as power supply interference. Furthermore, wear and tear in the controller cables can short-circuit the bus system, damaging it and causing data transmission errors.
[0043] To solve the above problems, the present invention transmits the configuration files and programs by sending the file stream to the Ethernet card CANET device, which then sends the file stream to the working face hydraulic support controller. At the same time, the Ethernet card CANET device sends the working condition information and data ACK check value returned by the working face hydraulic support controller to the control terminal for integrity verification to confirm whether the configuration file is transmitted correctly. This maintenance method allows technicians to complete the maintenance of the working face controller without having to go to the working face in person, which can greatly reduce the frequency of technicians going down the well and improve work efficiency and safety.
[0044] The technical solution of the present invention is further described in detail below through specific implementation methods.
[0045] Example 1
[0046] This embodiment provides a CANET-based Ethernet maintenance method for a hydraulic support controller on a working surface, which is applied to a control terminal such as Figure 1 As shown, the control terminal is connected to the CANET device via a network cable, and the CANET device is connected to the working face hydraulic support controller via a CAN bus.
[0047] Preferably, the control terminal is a PC device or a mobile terminal.
[0048] like Figure 2 As shown, the Ethernet maintenance method includes the following steps:
[0049] Step 1: Configure basic information of CANET devices;
[0050] In one embodiment, ZNetCom software is used to set the basic information of the CANET device. ZNetCom is an Ethernet-serial conversion device configuration tool that can accurately scan and identify devices within a network segment and provide network administrators with a detailed and accurate device list, including key information such as the device model, IP address, and MAC address.
[0051] In specific implementation, the basic information at least includes CANET IP address, target IP address, local working port, target port, working mode and CAN baud rate, wherein the target IP address is the local IP address of the control terminal, and the CANET IP address and the target IP address are in the same network segment.
[0052] For example, a CANET device includes two ports, can0 and can1. Parameters for any port can be set, including the working mode, CAN baud rate, local working port, target port, and target IP address, where the target IP address is the local IP address. For example, the CANET IP is 192.168.0.178, the target IP address, i.e., the local IP address, is 192.168.0.159, the port used is can0, the working mode is server, the CAN baud rate is 500kbps, and the local working port and target port are 4001.
[0053] It should be noted that the CAN baud rate setting depends on the environment where the control terminal is located. Specifically, when the control terminal is in an above-ground environment, the CAN baud rate is set to 50kbps. At the same time, a mining intrinsically safe data interface is connected between the CANET device and the working face controller. The data interface converts the 50k transmission rate to a 500k transmission rate because the inter-controller connection line requires a 500kbps baud rate. When the control terminal is in an underground environment, the CAN baud rate is set to 500kbps.
[0054] Step 2: Create a client to listen to the local working port and establish a connection with the CANET IP address.
[0055] The client is a TCP client, and the TCP frames between the TCP client and the CANET device adopt the TCP message format.
[0056] Step 3: Divide the configuration file into N data blocks;
[0057] Specifically, convert the configuration file into a binary buffer stream;
[0058] Divide the binary buffer stream into multiple data blocks of 1024 bytes.
[0059] Step 4: For each data block, encapsulate it into multiple CAN frames, and then encapsulate the multiple CAN frames into TCP message frames and send them to the CANET device, which then sends them to the working face hydraulic support controller via the CAN bus.
[0060] In one embodiment, a TCP message frame is composed of 1-50 CAN frames. Each CAN frame includes 13 bytes, including 1 byte of frame information, 4 bytes of frame ID, and 8 bytes of frame data.
[0061] Then, for each data block, encapsulate it into multiple CAN frames, and encapsulate multiple CAN frames into TCP message frames, specifically including: dividing each data block into multiple unit data frames in units of 7 bytes;
[0062] According to the CAN communication protocol, CAN frame information and CAN frame ID are created before each unit data frame to encapsulate each unit data frame into a CAN frame according to the control;
[0063] Create TCP frame information and TCP frame ID according to the Ethernet communication protocol, and form a TCP message frame with multiple CAN frames.
[0064] It should be noted that, compared with traditional CANET device transmission, which involves data segmentation on the CANET device, this embodiment divides the CAN frame before TCP message transmission, eliminating the need for CANET devices to perform data segmentation and assembly, thereby improving transmission efficiency.
[0065] It can be understood that during the transmission process, the block time interval between data blocks and the frame time interval of each TCP message are set according to the business demand scenario to avoid packet sticking; after sending a data block, wait for the block time interval before sending the next data block; similarly, after sending a data frame, wait for the frame time interval before sending the next data frame.
[0066] Example 2
[0067] The difference between this embodiment and embodiment 1 is that Figure 3 As shown, it also includes:
[0068] Step 5: After a data block is sent, the integrity check value of the data block is calculated and saved, and a data integrity check instruction is sent to the hydraulic support controller of the working face through the CANET device;
[0069] The client monitors the local working port to receive the working condition information returned by the working face hydraulic support controller, obtains a data check value by parsing the working condition information, and compares the data check value with the stored integrity check value, wherein the data check value is obtained by the working face hydraulic support controller after performing integrity check on the data block;
[0070] If the two are consistent, it is determined that the data block is sent successfully, otherwise it is determined that the data block is sent unsuccessfully.
[0071] It can be understood that when it is determined that the data block is sent successfully, let i+1 and continue to execute step 3 to send the next data block; when it is determined that the data block is sent unsuccessfully, the current data block is sent repeatedly.
[0072] Specifically, the working condition information also includes the frame number of the working face hydraulic support controller. When it is determined that the data block sending fails, the data is retransmitted and the number of data retransmissions is increased by 1; when the number of data retransmissions is equal to the set maximum number of retransmissions (for example, the maximum number of retransmissions is 3), the frame number of the working face hydraulic support controller and the currently transmitted configuration file are recorded so that the configuration file can be retransmitted again based on the frame number of the working face hydraulic support controller and the corresponding configuration file.
[0073] The retransmission mechanism is set up so that when the controller is maintained underground and TCP communication causes packet loss due to signal interference, it is only necessary to retransmit the erroneous configuration file for the erroneous controller frame number based on the recorded controller frame number and the currently transmitted configuration file, without the need to retransmit the entire working face.
[0074] It should be noted that the data integrity check instruction can check the entire data frame or only the ACK of the data frame; in some embodiments, it can also check each data block as a whole. In specific implementations, the integrity check can be a CRC check or an MD5 check.
[0075] Step 6: When all data blocks of the configuration file are sent successfully, it is determined that the configuration file is sent successfully.
[0076] Example 3
[0077] This embodiment provides a control terminal for maintaining the hydraulic support controller on the working surface based on CANET, such as Figure 4 As shown, including:
[0078] A configuration module configured to configure basic information of the CANET device; the basic information includes at least the CANET IP address, the local IP address, the local working port, the target port, the working mode, and the CAN baud rate, wherein the CANET IP address and the local IP address are located in the same network segment;
[0079] The client creation module is used to create a client to listen to the local working port and establish a connection with the CANET IP address to realize data sending and receiving;
[0080] A file division module is used to divide the configuration file into multiple data blocks;
[0081] An encapsulation module is used to encapsulate each data block into multiple CAN frames, and then encapsulate multiple CAN frames into TCP message frames;
[0082] The sending module is used to send the TCP message frame to the CANET device, which then sends it to the hydraulic support controller on the working face via the CAN bus.
[0083] In one embodiment, the control terminal also includes an integrity verification module, which is used to calculate and save the integrity verification value of a data block after a data block is sent, and at the same time send a data integrity verification instruction to the working face hydraulic support controller through the CANET device, and receive the working condition information returned by the working face hydraulic support controller, obtain a data verification value by parsing the working condition information and compare it with the stored integrity verification value, wherein the data verification value is obtained by the working face hydraulic support controller after performing an integrity verification on the data block; if the two are consistent, it is determined that the data block is sent successfully, otherwise it is determined that the data block is sent unsuccessfully; when all data blocks of the configuration file are sent successfully, it is determined that the configuration file is sent successfully.
[0084] Example 4
[0085] This embodiment provides an Ethernet maintenance system for a hydraulic support controller on a working face based on CANET, comprising a control terminal, a CANET device, and a hydraulic support controller on a working face; wherein the control terminal is connected to the CANET device via a network cable, and the CANET device is connected to the hydraulic support controller on the working face via a CAN bus;
[0086] The control terminal executes the Ethernet maintenance method for the working face hydraulic support controller based on CANET described in the first aspect;
[0087] Alternatively, the control terminal is the control terminal described in the second aspect.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and not to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention. They should all be included in the scope of the technical solution for protection of the present invention.
Claims
1. A CANET-based Ethernet maintenance method for a hydraulic support controller on a working surface, applied to a control terminal, wherein the control terminal is connected to a CANET device via a network cable, and the CANET device is connected to the hydraulic support controller on the working surface via a CAN bus, characterized in that: The following steps are involved: Step 1: Configure the basic information of the CANET device; the basic information includes at least the CANET IP address, the local IP address, the local working port, the target port, the working mode, and the CAN baud rate, wherein the CANET IP address and the local IP address are in the same network segment; Step 2: Create a client to listen to the local working port and establish a connection with the CANET IP address; Step 3: Divide the configuration file into multiple data blocks; Step 4: For each data block, encapsulate it into multiple CAN frames, and then encapsulate the multiple CAN frames into TCP message frames and send them to the CANET device, which then sends them to the working face hydraulic support controller via the CAN bus.
2. The Ethernet maintenance method for the hydraulic support controller of the working face based on CANET according to claim 1 is characterized in that: Divide the configuration file into multiple data blocks, including: Convert the configuration file into a binary buffer stream; Divide the binary buffer stream into multiple data blocks of 1024 bytes.
3. A CANET-based Ethernet maintenance method for a hydraulic support controller on a working surface according to claim 1 or 2, characterized in that: For each data block, it is encapsulated into multiple CAN frames, and multiple CAN frames are encapsulated into TCP frames according to the preset encapsulation strategy, including: Divide each data block into multiple unit data frames in units of 7 bytes; According to the CAN communication protocol, CAN frame information and CAN frame ID are created before each unit data frame to encapsulate each unit data frame into a CAN frame according to the control; Create TCP frame information and TCP frame ID according to the Ethernet communication protocol, and form a TCP message frame with multiple CAN frames.
4. The Ethernet maintenance method for the hydraulic support controller of the working face based on CANET according to claim 3 is characterized in that: Also includes: Step 5: After a data block is sent, the integrity check value of the data block is calculated and saved, and a data integrity check instruction is sent to the hydraulic support controller of the working face through the CANET device; The client monitors the local working port to receive the working condition information returned by the working face hydraulic support controller, obtains a data check value by parsing the working condition information, and compares the data check value with the stored integrity check value, wherein the data check value is obtained by the working face hydraulic support controller after performing integrity check on the data block; If the two are consistent, it is determined that the data block is sent successfully, otherwise it is determined that the data block is sent unsuccessfully; Step 6: When all data blocks of the configuration file are sent successfully, it is determined that the configuration file is sent successfully.
5. The Ethernet maintenance method for the hydraulic support controller of the working face based on CANET according to claim 4 is characterized in that: When it is determined that the data block sending fails, the data is retransmitted and the number of data retransmissions is increased by 1; when the number of data retransmissions is equal to the set maximum number of retransmissions, the frame number of the working face hydraulic support controller and the currently transmitted configuration file are recorded so that the configuration file can be retransmitted again according to the frame number of the working face hydraulic support controller and the corresponding configuration file.
6. A control terminal for maintaining a hydraulic support controller on a working surface based on CANET, characterized in that: include: A configuration module configured to configure basic information of the CANET device; the basic information includes at least the CANET IP address, the local IP address, the local working port, the target port, the working mode, and the CAN baud rate, wherein the CANET IP address and the local IP address are located in the same network segment; The client creation module is used to create a client to listen to the local working port and establish a connection with the CANET IP address to realize data sending and receiving; A file division module is used to divide the configuration file into multiple data blocks; An encapsulation module is used to encapsulate each data block into multiple CAN frames, and then encapsulate multiple CAN frames into TCP message frames; The sending module is used to send the TCP message frame to the CANET device, which then sends it to the working face hydraulic support controller via the CAN bus.
7. The control terminal for maintaining the hydraulic support controller on the working face based on CANET according to claim 6, characterized in that: It also includes an integrity check module; The integrity check module is used to calculate and save the integrity check value of a data block after a data block is sent, and at the same time send a data integrity check instruction to the working face hydraulic support controller through the CANET device, and receive the working condition information returned by the working face hydraulic support controller, obtain the data check value by parsing the working condition information and compare it with the stored integrity check value, wherein the data check value is obtained by the working face hydraulic support controller after performing integrity check on the data block; if the two are consistent, it is determined that the data block is sent successfully, otherwise it is determined that the data block is sent unsuccessfully; when all data blocks of the configuration file are sent successfully, it is determined that the configuration file is sent successfully.
8. An Ethernet maintenance system for hydraulic support controllers on working surfaces based on CANET, characterized by: It includes a control terminal, a CANET device and a working face hydraulic support controller; wherein the control terminal is connected to the CANET device via a network cable, and the CANET device is connected to the working face hydraulic support controller via a CAN bus; The control terminal executes the Ethernet maintenance method for the working face hydraulic support controller based on CANET according to any one of claims 1 to 5; Alternatively, the control terminal is the control terminal described in claim 6 or 7.
Citation Information
Patent Citations
Implementation method of central control platform of underground fully-mechanized coal face hydraulic supports
CN105065050A
Double-wire transmission network control method
CN114500242A