Heterogeneous baud rate adaptive communication method and system for mine safety monitoring
By using a heterogeneous baud rate adaptive communication method, the optimal baud rate of the slave device in the underground safety monitoring system is dynamically matched, which solves the problems of low communication efficiency and poor compatibility caused by fixed baud rates, and realizes efficient and reliable mine safety monitoring communication.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-17
- Publication Date
- 2026-04-14
AI Technical Summary
In existing downhole safety monitoring systems, fixed baud rate communication schemes result in high bit error rates over long distances, prevent short-distance devices from reaching their full performance potential, and lead to low system communication efficiency, poor compatibility, and ineffective utilization of bus bandwidth.
The heterogeneous baud rate adaptive communication method is adopted. By monitoring the substation, the optimal baud rate of each slave device is dynamically matched to achieve reliable low-speed communication over long distances and efficient high-speed communication over short distances. It also supports the mixed use of devices with different baud rates on a single bus.
It significantly improves bus communication efficiency and reliability, automatically adapts to complex environments and equipment changes, requires no manual adjustment, has good compatibility with traditional equipment, and maximizes resource utilization.
Smart Images

Figure CN121864256A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mine safety monitoring technology, and in particular to a heterogeneous baud rate adaptive communication method and system for mine safety monitoring. Background Technology
[0002] Currently, the monitoring substations of downhole safety monitoring systems need to communicate with a large number of dispersed sensors, actuators, and other slave devices. Existing downhole monitoring systems typically use a fixed baud rate for communication between master and slave devices. However, due to the varying deployment distances of the slave devices and the complex electromagnetic environment at the site, fixed baud rate communication schemes face significant challenges. For example, slave devices deployed at greater distances experience high error rates at high speeds, while those deployed closer together cannot realize their performance potential at low speeds, resulting in low overall system communication efficiency. Furthermore, since different slave devices may support different baud rates, they cannot be mixed and matched on a single bus, leading to poor device compatibility and severely restricting the effective utilization of bus bandwidth and the system's real-time performance. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art.
[0004] To this end, the present invention provides a heterogeneous baud rate adaptive communication method for mine safety monitoring, which can dynamically match the optimal baud rate for each slave device on the bus, thereby achieving an optimized combination of "reliable low-speed communication over long distances and efficient high-speed communication over short distances", significantly improving the overall communication efficiency and reliability of the system bus.
[0005] A heterogeneous baud rate adaptive communication method for mine safety monitoring according to an embodiment of the present invention includes the following steps: S1, the monitoring substation sends baud rate synchronization frames to all slave devices via the bus; S2, the slave device that receives the baud rate synchronization frame will switch the current baud rate to a baud rate that matches the monitoring substation according to the baud rate synchronization frame, and then communicate. S3, the monitoring substation sends an inspection command to all slave devices according to the device cache table. If a slave device receives the inspection command, it generates a feedback signal to the monitoring substation. The monitoring substation classifies all slave devices according to the feedback signal and the device cache table. All slave devices are divided into Class A slave devices and Class B slave devices. Class A slave devices support different baud rates, while Class B slave devices support a fixed baud rate. S4, both the Class A slave device and the Class B slave device are stored in the initial baud rate device list, and the Class A slave device and the Class B slave device communicate according to the initial baud rate; S5, the monitoring substation performs baud rate adaptation for each of the Class A slave devices under multiple communicable baud rates, determines the optimal baud rate for communication of the Class A slave devices, and moves the Class A slave devices from the initial baud rate device list to the corresponding optimal baud rate device list.
[0006] The beneficial effects of this invention are: (1) Significantly improve bus efficiency. This invention can achieve an optimized combination of "reliable low-speed communication over long distances and efficient high-speed communication over short distances", realizing on-demand allocation of bus bandwidth and maximizing the utilization of resources.
[0007] (2) Enhanced system adaptability: This invention can automatically adapt to complex field environments and equipment deployment changes without the need for manual baud rate adjustment.
[0008] (3) Improve communication reliability. Through the bit error rate driven baud rate selection mechanism, it is ensured that each slave device link can work at the most reliable rate.
[0009] (4) Good compatibility: This invention also supports data communication of traditional devices that do not have adaptive capabilities, supports mixed use of baud rates on a single bus, and has good device compatibility.
[0010] According to one embodiment of the present invention, the monitoring substation performs baud rate adaptation on the Class A slave device under multiple communicable baud rates, and determines the optimal baud rate for communication of the Class A slave device by including the following steps: S51, the monitoring substation communicates with the Class A slave device at a first baud rate. If the communication is successful, the current communication error rate is calculated. S52, if the current communication bit error rate does not meet the preset conditions, the monitoring substation will automatically switch to the second baud rate and return to step S51 until the current communication bit error rate meets the preset conditions, at which point the baud rate will be determined to be the optimal baud rate.
[0011] According to an embodiment of the present invention, the baud rate of the monitoring substation is adaptively adjusted for the Class A slave devices from high to low, wherein the first baud rate is greater than the second baud rate, and the preset condition is that the current communication bit error rate is less than a preset threshold. Step S52 specifically includes: If the current communication error rate is higher than the preset value, the monitoring substation will automatically switch to the second baud rate until the current communication error rate is lower than the preset value, at which point the current baud rate will be directly determined as the optimal baud rate.
[0012] According to an embodiment of the present invention, the baud rate of the monitoring substation is adaptively adjusted for the Class A slave devices from low to high, wherein the first baud rate is less than the second baud rate, and the preset condition is that the current communication bit error rate is higher than a preset threshold. Step S52 specifically includes: If the current communication bit error rate is less than the preset value, the monitoring substation will automatically switch to the second baud rate until the current communication bit error rate is higher than the preset value. Then, the current baud rate will be lowered by one level, and the bit error rate will be recalculated. If it is less than the preset value, the baud rate that has been lowered by one level will be determined as the optimal baud rate.
[0013] According to one embodiment of the present invention, the baud rate synchronization frames are sent sequentially in descending order of baud rate, and the baud rate synchronization frames contain a specific byte sequence.
[0014] In step S2, if a slave device that has not received the baud rate synchronization frame is not supported, then communication will proceed at the initial baud rate.
[0015] According to one embodiment of the present invention, in step S2, the slave device that supports receiving baud rate synchronization frames captures the edge signal through the GPIO interrupt of the sampling module, calculates the time interval based on the edge signal, obtains the current baud rate, and switches the receiving data baud rate.
[0016] According to one embodiment of the present invention, after receiving the baud rate synchronization frame, if the slave device detects that the baud rate is different from the currently used baud rate, it switches the baud rate to match the baud rate sent by the monitoring substation; otherwise, it does not switch.
[0017] According to one embodiment of the present invention, for Class A slave devices of the same model, the optimal baud rate of the Class A slave device with a longer deployment distance is lower than that of the Class A slave device with a shorter deployment distance.
[0018] A system according to an embodiment of the present invention employing the heterogeneous baud rate adaptive communication method for mine safety monitoring as described above, the system comprising: Monitoring substation; And multiple slave devices, each of which is connected to the monitoring substation via a bus. The slave devices include Class A slave devices and Class B slave devices.
[0019] According to one embodiment of the present invention, the monitoring substation includes: The synchronization frame sending module is used to send baud rate synchronization frames; The equipment inspection module is used to send inspection commands to all slave devices according to the equipment cache table and receive responses. The optimal baud rate identification module is used to perform baud rate adaptation for the Class A slave device under multiple communicable baud rates to determine the optimal baud rate for communicating with the Class A slave device; The dual-list management module is used to maintain and manage the initial baud rate device list and the optimal baud rate device list; The Class A slave devices include: The communication module is used to acquire baud rate synchronization frames and inspection commands; The processing module is used to obtain the inspection command and generate a feedback signal; The sampling module is used to acquire baud rate synchronization frames and switch the current baud rate to a baud rate that matches the monitoring substation based on the baud rate synchronization frames.
[0020] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0021] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0022] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0023] Figure 1 This is a schematic diagram of the method flow of Embodiment 1 of the present invention.
[0024] Figure 2 This is a schematic diagram illustrating the creation of the optimal baud rate device list in Embodiment 1 of the present invention.
[0025] Figure 3 This is a schematic diagram of the updated initial baud rate device list according to Embodiment 1 of the present invention.
[0026] Figure 4 This is a schematic diagram illustrating the update of the optimal baud rate device list in Embodiment 1 of the present invention.
[0027] Figure 5 This is a schematic diagram of the system structure of Embodiment 2 of the present invention.
[0028] Figure 6 This is a schematic diagram of the monitoring substation structure according to Embodiment 2 of the present invention.
[0029] Figure 7 This is a schematic diagram of the Class A slave device structure according to Embodiment 2 of the present invention.
[0030] Figure 8 This is a schematic diagram of the computer device structure according to Embodiment 3 of the present invention. In the diagram, 10 is a computer device; 1002 is a processor; 1004 is a memory; and 1006 is a transmission device. Detailed Implementation
[0031] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0032] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential," etc., indicating orientation or positional relationships, are based on the orientation or positional relationships shown in the accompanying drawings and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, features defined with "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0033] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0034] Example 1 This application provides a heterogeneous baud rate adaptive communication method for mine safety monitoring, such as... Figure 1 As shown, the method includes the following steps: S1, the monitoring substation sends baud rate synchronization frames to all slave devices via the bus.
[0035] S2, the slave device that receives the baud rate synchronization frame will switch its current baud rate to the baud rate that matches the monitoring substation according to the baud rate synchronization frame and then communicate; the slave device that does not receive the baud rate synchronization frame will communicate at the initial baud rate.
[0036] S3, the monitoring substation sends inspection commands to all slave devices according to the device cache table. If a slave device receives an inspection command, it generates a feedback signal to the monitoring substation. The monitoring substation classifies all slave devices according to the feedback signal and the device cache table. All slave devices are divided into Class A slave devices and Class B slave devices.
[0037] S4: Store both Class A and Class B slave devices in the initial baud rate device list. The Class A and Class B slave devices then communicate according to the initial baud rate.
[0038] S5, the monitoring substation performs baud rate adaptation for each Class A slave device under multiple communicable baud rates, determines the optimal baud rate for communication of the Class A slave device, and moves the Class A slave device from the initial baud rate device list to the corresponding optimal baud rate device list, and the Class A slave device communicates according to the optimal baud rate.
[0039] In this embodiment, after receiving a baud rate synchronization frame from the device, if the detected baud rate differs from the currently used baud rate, the baud rate is switched to match the baud rate sent by the monitoring substation; otherwise, it is not switched. The monitoring substation only sends a synchronization frame when a baud rate switch is needed; otherwise, it directly sends data frames to reduce communication overhead. Furthermore, to reduce communication overhead, this embodiment does not frequently send synchronization frames during stable operation. A baud rate synchronization frame is only sent selectively or globally when the monitoring substation triggers a baud rate optimization mechanism or detects a large-scale communication anomaly requiring reinitialization.
[0040] This embodiment, through steps S1 and S2, enables the monitoring substation and all slave devices to quickly establish a communication link based on baud rate synchronization frames, shortening communication time. The baud rate synchronization frames are sent sequentially from high to low baud rates and contain a specific byte sequence: 0x55 and 0xAA. Furthermore, the slave device receiving the baud rate synchronization frame captures the edge signal through the GPIO interrupt of the sampling module, calculates the time interval based on the edge signal to obtain the current baud rate, and switches the received data baud rate. Through baud rate synchronization frames and edge detection technology, fast and accurate baud rate synchronization is achieved. It should be noted that slave devices that cannot receive baud rate synchronization frames will communicate according to the initial baud rate to ensure that all slave devices can communicate with the monitoring substation.
[0041] In this embodiment, in step S3, the monitoring substation sends inspection commands to all slave devices based on the device addresses in the device cache table. If a slave device receives an inspection command, it generates a feedback signal to the monitoring substation. After receiving the feedback signal from the slave device, the monitoring substation combines it with the device addresses in the device cache table to classify all slave devices. The specific classification method is as follows: Class A slave devices: Slave devices that have successfully received feedback signals from monitoring substations are classified as Class A slave devices. Class A slave devices support different baud rates.
[0042] Class B slave devices: Slave devices that do not send feedback signals to the monitoring substation within a specified time are classified as Class B slave devices. Class B slave devices support fixed baud rates.
[0043] In this embodiment, before executing method step S1, initialization is performed, and an initial baud rate device list is dynamically created. When the monitoring substation classifies all slave devices according to the feedback signal and the device cache table, it stores class A slave devices and class B slave devices in the initial baud rate device list based on the device address. At this time, both class A slave devices and class B slave devices communicate at the initial baud rate.
[0044] In this embodiment, for Class A slave devices, the monitoring substation will not directly classify them as high-speed devices, but will instead perform a "quality inspection" process. For example, the monitoring substation will perform communication tests on Class A slave devices. Step S5 specifically includes the following steps: S51, the monitoring substation communicates with the Class A slave device at the first baud rate. If the communication is successful, the current communication error rate is calculated. S52, if the current communication bit error rate does not meet the preset conditions, the monitoring substation will automatically switch to the second baud rate and return to step S51 until the current communication bit error rate meets the preset conditions, at which point the baud rate will be determined to be the optimal baud rate.
[0045] Furthermore, the baud rate of the monitoring substation is adaptively adjusted for Class A slave devices from low to high, with the first baud rate being lower than the second baud rate. The preset condition is that the current communication bit error rate is higher than a preset threshold. Step S52 specifically includes: If the current communication bit error rate is less than the preset value, the monitoring substation will automatically switch to the second baud rate until the current communication bit error rate exceeds the preset value. At this point, the current baud rate will be lowered by one level, and the bit error rate will be recalculated. If it is still less than the preset value, the lowered baud rate will be determined as the optimal baud rate. For example, if the monitoring substation communicates with a Class A slave device at the lowest baud rate of 1200bps, and the communication is successful, the communication bit error rate will be calculated. If the bit error rate is less than the preset value, the monitoring substation will increase the baud rate from low to high, such as communicating with the Class A slave device at 2400bps, until a highest baud rate with a bit error rate higher than the preset value is found. The baud rate will then be lowered by one level based on this highest baud rate. For example, if the highest baud rate is 19200bps, the baud rate will be lowered to 9600bps, and the bit error rate will be recalculated. If it is still less than the preset value, the next baud rate of 9600bps will be the optimal baud rate.
[0046] It should be noted that the optimal baud rate device list is dynamically created based on the optimal baud rate detected by Class A slave devices. For example, using Class A slave devices with address codes 0003, 0004, and 000F, the following explanation is provided: Figure 2 As shown, when the optimal baud rate of the Class A slave device with address code 0003 is 9600bps, a 9600bps optimal baud rate device list is created, and the Class A slave device with address code 0003 in the initial baud rate device list is moved to the 9600bps optimal baud rate device list, and the initial baud rate device list is updated. When the optimal baud rate of the Class A slave device with address code 0004 is 19200bps, a 19200bps optimal baud rate device list is created, and the Class A slave device with address code 0004 in the initial baud rate device list is moved to the 19200bps optimal baud rate device list, and the initial baud rate device list is updated. When the optimal baud rate of the Class A slave device with address code 000F is 9600bps, the Class A slave device with address code 000F in the initial baud rate device list is moved to the 9600bps optimal baud rate device list, and the initial baud rate device list is updated. The updated initial baud rate device list can be found in [reference needed]. Figure 3 Dynamically creating an optimal baud rate device list facilitates fast communication for Class A slave devices by directly using the baud rates from the corresponding optimal baud rate device list. Furthermore, the optimal baud rate device list facilitates maintenance and updates, enabling online monitoring of the communication quality of Class A slave devices, such as... Figure 4 As shown, when the optimal baud rate of the Class A slave device with address code 0004 is 19200bps, poor communication quality is detected. The baud rate of this Class A slave device is updated and the optimal baud rate is re-matched. When the optimal baud rate is calculated to be 9600bps, the list of devices with the optimal baud rate can be maintained and updated directly.
[0047] In this embodiment, for Class A slave devices of the same model, the optimal baud rate of the Class A slave device with a longer deployment distance is lower than that of the Class A slave device with a shorter deployment distance, which greatly improves the data communication efficiency of the entire system bus.
[0048] In this embodiment, when at least one Class A slave device experiences a communication failure, the Class A slave device with the communication failure is moved from the optimal baud rate device list to the initial baud rate device list, and communication is performed at the initial baud rate to ensure that the Class A slave device with the communication failure can communicate normally.
[0049] In this embodiment, during mine safety monitoring, Class A slave devices will communicate using their respective optimal baud rates based on the optimal baud rate device list, while Class B slave devices will communicate based on the initial baud rate, to ensure on-demand allocation of bus bandwidth and maximized utilization of resources.
[0050] In this embodiment, the baud rates from high to low are: 115200bps, 57600bps, 38400bps, 19200bps, 9600bps, 4800bps, 2400bps and 1200bps.
[0051] The beneficial effects of this embodiment include: (1) Significantly improve bus efficiency. This invention can achieve an optimized combination of "reliable low-speed communication over long distances and efficient high-speed communication over short distances", realizing on-demand allocation of bus bandwidth and maximizing the utilization of resources.
[0052] (2) Enhanced system adaptability: This invention can automatically adapt to complex field environments and equipment deployment changes without the need for manual baud rate adjustment.
[0053] (3) Improve communication reliability. By managing compatible new and old heterogeneous devices through hierarchical list management and by implementing dynamic adjustment of communication parameters through a feedback optimization mechanism based on bit error rate, it ensures that each slave device link can work at the most reliable rate, thereby improving the adaptability and stability of mine safety monitoring in harsh environments.
[0054] (4) Good compatibility: This invention also supports data communication of traditional devices that do not have adaptive capabilities, supports mixed use of baud rates on a single bus, and has good device compatibility.
[0055] Example 2 The difference from Example 1 is that the baud rate of the monitoring substation is adaptively adjusted for Class A slave devices from high to low, with the first baud rate being greater than the second baud rate. The preset condition is that the current communication bit error rate is less than a preset threshold. Step S52 specifically includes: If the current communication error rate is higher than the preset value, the monitoring substation will automatically switch to the second baud rate until the current communication error rate is lower than the preset value, at which point the current baud rate will be directly determined as the optimal baud rate.
[0056] Specifically, if the monitoring substation communicates with the Class A slave device at the highest baud rate of 115200bps, and the communication is successful, the communication error rate is calculated. If the error rate is higher than a preset value, the monitoring substation adjusts the baud rate from high to low, such as communicating with the Class A slave device at 57600bps, until a minimum baud rate with an error rate lower than the preset value is found. This minimum baud rate is determined as the optimal baud rate for communication with the Class A slave device. This embodiment simplifies the process of determining the optimal baud rate and improves efficiency by prioritizing dynamic communication testing of the Class A slave device starting from the highest baud rate.
[0057] Example 3 Based on the same inventive concept as the heterogeneous baud rate adaptive communication method for mine safety monitoring in the foregoing embodiments, this application provides a heterogeneous baud rate adaptive communication system for mine safety monitoring. The system employs the aforementioned heterogeneous baud rate adaptive communication method for mine safety monitoring. Figure 5 As shown, the system includes: Monitoring substation; And multiple slave devices, each of which is connected to the monitoring substation via a bus. The slave devices include Class A slave devices and Class B slave devices.
[0058] In this embodiment, as Figure 6 As shown, the monitoring substations include: The synchronization frame sending module is used to send baud rate synchronization frames; The equipment inspection module is used to send inspection commands to all slave devices according to the equipment cache table and receive responses. The optimal baud rate identification module is used to perform baud rate adaptation for Class A slave devices under multiple communicable baud rates to determine the optimal baud rate for communicating with Class A slave devices. The dual-list management module is used to maintain and manage the initial baud rate device list and the optimal baud rate device list.
[0059] In this embodiment, as Figure 7 As shown, Class A slave devices include: The synchronization frame identification module is used to identify and respond to baud rate synchronization frames sent by the monitoring substation; The baud rate switching module is used to switch its own communication baud rate according to the instructions of the synchronization frame identification module.
[0060] Class A slave devices include: The communication module is used to acquire baud rate synchronization frames and inspection commands; The processing module is used to obtain the inspection command and generate a feedback signal; The sampling module is used to acquire baud rate synchronization frames and switch the current baud rate to a baud rate that matches the monitoring substation based on the baud rate synchronization frames.
[0061] The foregoing Figure 1 The various variations and specific examples of the heterogeneous baud rate adaptive communication method for mine safety monitoring in Embodiment 1 are also applicable to the heterogeneous baud rate adaptive communication system for mine safety monitoring in this embodiment. Through the foregoing detailed description of the heterogeneous baud rate adaptive communication method for mine safety monitoring, those skilled in the art can clearly understand the implementation method of the heterogeneous baud rate adaptive communication system for mine safety monitoring in this embodiment. Therefore, for the sake of brevity, it will not be described in detail here.
[0062] Example 4 This application provides a computer device including a processor and a memory. The memory stores at least one instruction or at least one program, which is loaded and executed by the processor to implement a heterogeneous baud rate adaptive communication method for mine safety monitoring as provided in the above method embodiments.
[0063] Figure 8 This diagram illustrates a hardware structure of a device for implementing a heterogeneous baud rate adaptive communication method for mine safety monitoring provided in an embodiment of this application. The device may participate in or include the apparatus or system provided in the embodiments of this application. Figure 8 As shown, the computer device 10 may include one or more processors 1002 (the processor may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 1004 for storing data, and a transmission device 1006 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 8 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer device 10 may also include... Figure 8 The more or fewer components shown, or having the same Figure 8 The different configurations shown.
[0064] It should be noted that the aforementioned one or more processors and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuit may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer device 10 (or mobile device). As involved in the embodiments of this application, the data processing circuit serves as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).
[0065] The memory 1004 can be used to store software programs and modules for application software, such as the program instruction / data storage device corresponding to a heterogeneous baud rate adaptive communication method for mine safety monitoring in an embodiment of this application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 1004, thereby implementing the aforementioned method. The memory 1004 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1004 may further include memory remotely located relative to the processor, and these remote memories can be connected to the computer device 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0066] The transmission device 1006 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer device 10. In one example, the transmission device 1006 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 1006 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0067] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer device 10 (or mobile device).
[0068] Example 5 This application embodiment also provides a computer-readable storage medium, which can be disposed in a server to store at least one instruction or at least one program related to implementing a heterogeneous baud rate adaptive communication method for mine safety monitoring in the method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the heterogeneous baud rate adaptive communication method for mine safety monitoring provided in the above method embodiment.
[0069] Optionally, in this embodiment, the storage medium may be located at at least one of the multiple network servers in a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0070] Example 6 This invention also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform a heterogeneous baud rate adaptive communication method for mine safety monitoring provided in the various optional embodiments described above.
[0071] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired results. In some implementations, multitasking and parallel processing are also possible or may be advantageous.
[0072] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device, equipment, and storage medium embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0073] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0074] Based on the above-described preferred embodiments of the present invention, and through the foregoing description, those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.
Claims
1. A heterogeneous baud rate adaptive communication method for mine safety monitoring, characterized in that, The method Includes the following steps: S1, the monitoring substation sends baud rate synchronization frames to all slave devices via the bus; S2, the slave device that receives the baud rate synchronization frame will switch the current baud rate to a baud rate that matches the monitoring substation according to the baud rate synchronization frame, and then communicate. S3, the monitoring substation sends an inspection command to all slave devices according to the device cache table. If a slave device receives the inspection command, it generates a feedback signal to the monitoring substation. The monitoring substation classifies all slave devices according to the feedback signal and the device cache table. All slave devices are divided into Class A slave devices and Class B slave devices. Class A slave devices support different baud rates, while Class B slave devices support a fixed baud rate. S4, both the Class A slave device and the Class B slave device are stored in the initial baud rate device list, and the Class A slave device and the Class B slave device communicate according to the initial baud rate; S5, the monitoring substation performs baud rate adaptation for each of the Class A slave devices under multiple communicable baud rates, determines the optimal baud rate for communication of the Class A slave devices, and moves the Class A slave devices from the initial baud rate device list to the corresponding optimal baud rate device list.
2. The heterogeneous baud rate adaptive communication method for mine safety monitoring according to claim 1, characterized in that, The monitoring substation performs baud rate adaptation on the Class A slave devices at multiple communicable baud rates to determine the optimal baud rate for communication of the Class A slave devices. This specifically includes the following steps: S51, the monitoring substation communicates with the Class A slave device at a first baud rate. If the communication is successful, the current communication error rate is calculated. S52, if the current communication bit error rate does not meet the preset conditions, the monitoring substation will automatically switch to the second baud rate and return to step S51 until the current communication bit error rate meets the preset conditions, at which point the baud rate will be determined to be the optimal baud rate.
3. The heterogeneous baud rate adaptive communication method for mine safety monitoring according to claim 2, characterized in that, The monitoring substation's baud rate is adaptively adjusted for the Class A slave devices from high to low, with the first baud rate being greater than the second baud rate. The preset condition is that the current communication bit error rate is less than a preset threshold. Step S52 specifically includes: If the current communication error rate is higher than the preset value, the monitoring substation will automatically switch to the second baud rate until the current communication error rate is lower than the preset value, at which point the current baud rate will be directly determined as the optimal baud rate.
4. The heterogeneous baud rate adaptive communication method for mine safety monitoring according to claim 2, characterized in that, The monitoring substation's baud rate is adaptively adjusted for the Class A slave devices from low to high, with the first baud rate being less than the second baud rate. The preset condition is that the current communication bit error rate is higher than a preset threshold. Step S52 specifically includes: If the current communication bit error rate is less than the preset value, the monitoring substation will automatically switch to the second baud rate until the current communication bit error rate is higher than the preset value. Then, the current baud rate will be lowered by one level, and the bit error rate will be recalculated. If it is less than the preset value, the baud rate that has been lowered by one level will be determined as the optimal baud rate.
5. The heterogeneous baud rate adaptive communication method for mine safety monitoring according to claim 1, characterized in that, The baud rate synchronization frames are sent sequentially from high to low baud rates, and each baud rate synchronization frame contains a specific byte sequence.
6. The heterogeneous baud rate adaptive communication method for mine safety monitoring according to claim 1, characterized in that, In step S2, if a slave device that has not received the baud rate synchronization frame is not supported, then communication will proceed at the initial baud rate.
7. The heterogeneous baud rate adaptive communication method for mine safety monitoring according to claim 2, characterized in that, In step S2, the slave device that supports receiving baud rate synchronization frames captures the edge signal through the GPIO interrupt of the sampling module, calculates the time interval based on the edge signal, obtains the current baud rate, and switches the receiving data baud rate.
8. The heterogeneous baud rate adaptive communication method for mine safety monitoring according to claim 1, characterized in that, After receiving the baud rate synchronization frame, if the slave device detects that the baud rate is different from the currently used baud rate, it switches the baud rate to match the baud rate sent by the monitoring substation; otherwise, it does not switch.
9. The heterogeneous baud rate adaptive communication method for mine safety monitoring according to claim 2, characterized in that, For Class A slave devices of the same model, the optimal baud rate of a Class A slave device deployed at a greater distance is lower than that of a Class A slave device deployed at a closer distance.
10. A system employing the heterogeneous baud rate adaptive communication method for mine safety monitoring as described in any one of claims 1 to 9, characterized in that, The system includes: Monitoring substation; And multiple slave devices, each of which is connected to the monitoring substation via a bus; the slave devices include Class A slave devices and Class B slave devices. The monitoring substations include: The synchronization frame sending module is used to send baud rate synchronization frames; The equipment inspection module is used to send inspection commands to all slave devices according to the equipment cache table and receive responses. The optimal baud rate identification module is used to perform baud rate adaptation for the Class A slave device under multiple communicable baud rates to determine the optimal baud rate for communicating with the Class A slave device; The dual-list management module is used to maintain and manage the initial baud rate device list and the optimal baud rate device list; The Class A slave devices include: The communication module is used to acquire baud rate synchronization frames and inspection commands; The processing module is used to obtain the inspection command and generate a feedback signal; The sampling module is used to acquire baud rate synchronization frames and switch the current baud rate to a baud rate that matches the monitoring substation based on the baud rate synchronization frames.