A locomotive inter-car data synchronization method, device, equipment and storage medium
By installing a portable server and a 433m wireless module inside the locomotive carriage, and establishing a wireless communication link using routing protocols and customized protocols, the problems of high cost and difficulty in troubleshooting data interaction between locomotive carriages were solved, achieving flexible and reliable data synchronization.
Patent Information
- Application Number
- CN202310799455.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2043-06-30
AI Technical Summary
In existing technologies, data interaction between locomotive carriages is usually achieved by laying cables. Wired communication is costly, time-consuming, and difficult to troubleshoot, and lacks communication flexibility and reliability.
A portable server is installed in each carriage of the locomotive, and two 433m wireless modules are configured to conduct wireless communication through the 433m wireless modules. A communication link is established using routing protocols and customized protocols to ensure the reliability and stability of the server in each carriage.
Wireless communication between locomotive carriages was achieved without altering the carriage structure, improving communication flexibility and reliability, and simplifying troubleshooting and maintenance processes.
Smart Images

Figure CN116709257B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication technology, and in particular to a method, apparatus, device and storage medium for data synchronization between locomotive carriages. Background Technology
[0002] Locomotives typically consist of 3 to 6 carriages. Data exchange between these carriages is usually achieved through pre-designed, wired communication involving cabling and structural perforations. While reliable, this traditional method is costly, time-consuming, and extremely difficult to troubleshoot and repair in case of malfunctions. Therefore, new communication methods are needed to improve the flexibility and reliability of communication between the carriages on a locomotive. Summary of the Invention
[0003] This application provides a method, apparatus, device, and storage medium for data synchronization between locomotive carriages. By setting a 433m wireless module in a portable server in each carriage of the locomotive, wireless communication based on the 433m wireless module is achieved without changing the structure of the locomotive carriage, thereby ensuring the reliability and stability of communication between the servers in each carriage.
[0004] In a first aspect, embodiments of this application also provide a method for data synchronization between locomotive carriages, the method comprising:
[0005] Any portable server can establish a communication link with other portable servers based on the stored routing protocol and the custom protocol;
[0006] Any portable server can synchronize data with other portable servers via a communication link;
[0007] In this system, any portable server is installed in any carriage of the locomotive, and each carriage of the locomotive is equipped with a portable server. Other portable servers are installed in adjacent carriages of any carriage or in carriages separated by one carriage. Each portable server in a locomotive carriage is equipped with two 433m wireless modules. The two 433m wireless modules operate at different frequencies, and either of the two 433m wireless modules operates at the same frequency as the adjacent 433m wireless module in the adjacent carriage.
[0008] Optionally, any of the above portable servers establishes a communication link with other portable servers according to a stored routing protocol and a custom protocol, including:
[0009] Any portable server can receive communication establishment commands from other portable servers via any internally configured 433m wireless module;
[0010] Any portable server establishes a communication link based on the communication establishment instructions, as well as the saved routing protocols and custom protocols.
[0011] Optionally, any of the above portable servers establishes a communication link according to the communication establishment instruction, as well as the stored routing protocol and custom protocol, including:
[0012] Any portable server obtains the current carriage number, the maximum carriage number, and the minimum carriage number according to the routing protocol;
[0013] Any portable server obtains the phase marker according to a customized protocol;
[0014] Any portable server establishes a communication link based on the communication establishment command, the current carriage number, the maximum carriage number, the minimum carriage number, and the stage marker.
[0015] Optionally, any of the aforementioned portable servers establishes a communication link based on the communication establishment command, the current carriage number, the maximum carriage number, the minimum carriage number, and the stage marker, including:
[0016] When the stage marker is the maximum marker, if the current carriage number is less than the maximum carriage number, any portable server sends a communication establishment command to other downstream adjacent portable servers through another 433m wireless module configured internally. If the current carriage number is equal to the maximum carriage number, any portable server stops sending the communication establishment command.
[0017] When the stage marker is the minimum marker, if the current carriage number is greater than the minimum carriage number, any portable server sends a communication establishment command to other adjacent portable servers upstream through another 433m wireless module configured internally. If the current carriage number is equal to the maximum carriage number, any portable server stops sending the communication establishment command.
[0018] If the current carriage number is equal to the maximum carriage number when the stage flag is the maximum or minimum flag, then any portable server stops sending communication establishment commands.
[0019] The upstream section includes the carriage numbers arranged from largest to smallest, while the downstream section includes the carriage numbers arranged from smallest to largest.
[0020] Optionally, the processing of the communication establishment command by any of the aforementioned portable servers based on the current carriage number, the maximum carriage number, the minimum carriage number, and the stage flag further includes:
[0021] Based on the communication establishment command, any portable server, during the response waiting time, replies with a response message to other adjacent portable servers through any of its internally configured 433m wireless modules;
[0022] Any portable server will set the synchronization device flag in the custom protocol.
[0023] Optionally, the above method further includes:
[0024] If any portable server does not receive a response message from another adjacent portable server within the response waiting time, it will send a communication establishment command to the next or previous level portable server of the other adjacent portable server through another 433m wireless module configured internally.
[0025] Optionally, the above method further includes:
[0026] If any portable server does not receive a response message from the next or previous portable server within the response waiting time, it will stop sending the communication establishment command.
[0027] Secondly, embodiments of this application also provide a data synchronization device between locomotive carriages, the device comprising:
[0028] The processing module is used to establish communication links with other devices based on the stored routing protocols and custom protocols;
[0029] The communication module is used to synchronize data with the other devices based on the communication link;
[0030] The device is installed in any car of the locomotive, and each car of the locomotive is equipped with a data synchronization device. The other devices are installed in adjacent cars or in cars separated by one car. Each data synchronization device in the locomotive car is equipped with two 433m wireless modules. The two 433m wireless modules operate at different frequencies, and either of the two 433m wireless modules operates at the same frequency as the adjacent 433m wireless module in the adjacent car.
[0031] Thirdly, embodiments of this application also provide a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements a locomotive-carriage data synchronization method as provided in any embodiment of this application.
[0032] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a locomotive-carriage data synchronization method as provided in any embodiment of this application.
[0033] This application provides a data synchronization device, equipment, and storage medium between locomotive carriages. The method includes: any portable server establishing a communication link with other portable servers according to a stored routing protocol and a customized protocol; any portable server synchronizing data with other portable servers based on the communication link; wherein any portable server is located in any carriage of the locomotive, and each carriage of the locomotive is equipped with a portable server; other portable servers are located in adjacent carriages of any carriage or in carriages separated by one carriage; each portable server in a locomotive carriage is equipped with two 433m wireless modules, the two 433m wireless modules operate at different frequencies, and either of the two 433m wireless modules operates at the same frequency as the adjacent 433m wireless module in the adjacent carriage. In the above solution, by setting 433m wireless modules in the portable servers in each carriage of the locomotive, wireless communication based on 433m wireless modules is achieved without changing the structure of the locomotive carriages, thereby ensuring the reliability and stability of communication between the servers in each carriage. Attached Figure Description
[0034] Figure 1 This is a flowchart of a method for synchronizing data between locomotive carriages provided in an embodiment of this application;
[0035] Figure 2 This is a schematic diagram of a portable server configured with two 433m wireless modules according to an embodiment of this application;
[0036] Figure 3 This is a flowchart illustrating a method for any portable server provided in this application to establish a communication link based on a communication establishment instruction, as well as a stored routing protocol and a customized protocol.
[0037] Figure 4 This is a network topology diagram of the server assigning carriage numbers to each portable server according to an embodiment of this application;
[0038] Figure 5 This is a schematic diagram of the network structure for data synchronization between portable servers provided in the embodiments of this application;
[0039] Figure 6 This is a schematic diagram of the structure of the data synchronization device between locomotive carriages provided in the embodiments of this application;
[0040] Figure 7 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation
[0041] The present disclosure will be further described below with reference to the embodiments shown in the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the present application and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the present application are shown in the drawings, not the entire structure.
[0042] Furthermore, in the embodiments of this application, terms such as "optionally" or "exemplarily" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "optionally" or "exemplarily" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "optionally" or "exemplarily" is intended to present the relevant concepts in a specific manner.
[0043] Figure 1 This application provides a flowchart of a data synchronization method between locomotive carriages. This method achieves radio frequency communication based on the 433MHz wireless module without altering the locomotive carriage structure by installing a 433MHz wireless module in a portable server within each carriage. This ensures the reliability and stability of communication between the servers in each carriage. This method can be executed by the data synchronization device between locomotive carriages provided in this application, which can be implemented using software and / or hardware. In one specific embodiment, the device can be integrated into a computer device, such as a server. The following embodiments will illustrate this using the integration of the device into a computer device as an example. Figure 1 As shown, the method may include, but is not limited to, the following steps:
[0044] S101. Any portable server establishes a communication link with other portable servers according to the saved routing protocol and custom protocol.
[0045] In this application embodiment, any portable server is a server in any carriage of a locomotive. Each carriage of the locomotive is equipped with a portable server. Other portable servers are servers located in adjacent carriages of any given carriage or in carriages separated by one carriage. That is, any portable server and other portable servers are servers located in two adjacent carriages respectively, or servers in two carriages separated by one carriage.
[0046] In addition, each portable server inside the locomotive carriage is equipped with two 433m wireless modules. For example... Figure 2As shown, the two 433MHz wireless modules within the portable server operate at different frequencies, and either of these modules operates at the same frequency as an adjacent 433MHz wireless module in the adjacent carriage. The application layer software handles information processing and communication between the two modules. This configuration prevents communication interference when the 433MHz wireless modules in both carriages transmit data simultaneously. Furthermore, each 433MHz wireless module can switch between transmit and receive modes, and the two modules on the same portable server cannot operate in transmit mode simultaneously; if one is in transmit mode, the other is in receive mode, providing complementarity.
[0047] The 433m wireless module can be set to a maximum air rate of 63 bytes per transmission with a bandwidth of approximately 7kB / s. Communication between the 433m wireless modules uses a custom protocol with self-built routing to reduce protocol bandwidth requirements.
[0048] S102. Any portable server synchronizes data with other portable servers based on a communication link.
[0049] In this embodiment of the application, wireless communication between two 433m wireless modules configured inside any portable server and other portable servers can establish wireless communication links between the carriages of a locomotive without laying cables, thereby ensuring that each carriage communicates data based on the established communication links and achieves data synchronization.
[0050] This application provides a method for data synchronization between locomotive carriages. The method includes: any portable server establishing a communication link with other portable servers based on a stored routing protocol and a customized protocol; any portable server synchronizing data with other portable servers based on the communication link; wherein any portable server is located in any carriage of the locomotive, and each carriage of the locomotive is equipped with a portable server; other portable servers are located in adjacent carriages of any carriage or in carriages separated by one carriage; each portable server in a locomotive carriage is equipped with two 433MHz wireless modules, the two 433MHz wireless modules operate at different frequencies, and either of the two 433MHz wireless modules operates at the same frequency as the adjacent 433MHz wireless module in the adjacent carriage. In this scheme, by setting 433MHz wireless modules in the portable servers in each carriage of the locomotive, wireless communication based on 433MHz wireless modules is achieved without changing the structure of the locomotive carriages, thereby ensuring the reliability and stability of communication between the servers in each carriage.
[0051] In one example, the implementation of step S101 above, in which any portable server establishes a communication link with other portable servers according to the stored routing protocol and the custom protocol, may include:
[0052] Any portable server receives a communication establishment command sent by another portable server through any internally configured 433m wireless module; any portable server establishes a communication link according to the received communication establishment command, as well as the saved routing protocol and custom protocol.
[0053] For example, the routing protocol described above may include the carriage number of the current carriage, the maximum carriage number and the minimum carriage number of the locomotive, the operating frequency of the upstream module of the 433m wireless module in the portable server of the current carriage, the operating frequency of the upstream module's previous level module, the operating frequency of the downstream module, and the operating frequency of the downstream module's next level module. Specifically, the content of the routing protocol may be as shown in Table 1.
[0054] Table 1
[0055]
[0056] It should be noted that since any portable server is configured with two 433m wireless modules and the routing protocol encapsulates the current carriage number where the portable server is located, the portable server can use the time difference in message transmission between its own two 433m wireless modules and the 433m wireless modules configured in the adjacent portable server to distinguish whether the received message is a message sent by the device itself, and does not process the received message sent by itself.
[0057] Furthermore, the aforementioned customized protocol can serve as the basis for communication between 433m wireless modules to send data messages and response messages. Specifically, when sending data messages, the customized protocol can include a stage flag, a synchronization device flag, the current carriage number, data length, and data area. When sending response messages, the customized protocol can include a response flag, a synchronization device flag, the current carriage number, data length, and data area. For example, the specific content of the aforementioned customized protocol can be shown in Tables 2a and 2b.
[0058] Table 2a Sending data messages
[0059]
[0060] Table 2b Sending Response Messages
[0061]
[0062] like Figure 3As shown, in one example, the specific implementation of any of the above portable servers establishing a communication link based on the communication establishment command, as well as the stored routing protocol and custom protocol, may include, but is not limited to, the following steps:
[0063] S301. Any portable server obtains the current carriage number, the largest carriage number, and the smallest carriage number according to the routing protocol.
[0064] S302. Any portable server obtains the phase flag according to the customized protocol.
[0065] S303. Any portable server establishes a communication link based on the communication establishment command, the current carriage number, the maximum carriage number, the minimum carriage number, and the stage marker.
[0066] For example, this step can be implemented in the following ways: when the stage flag is the maximum flag, if the current carriage number is less than the maximum carriage number, any portable server sends a communication establishment command to other downstream adjacent portable servers through another internally configured 433m wireless module; if the current carriage number is equal to the maximum carriage number, any portable server stops sending the communication establishment command. When the stage flag is the minimum flag, if the current carriage number is greater than the minimum carriage number, any portable server sends a communication establishment command to other upstream adjacent portable servers through another internally configured 433m wireless module; if the current carriage number is equal to the minimum carriage number, any portable server stops sending the communication establishment command.
[0067] The upstream section includes the carriage numbers arranged from largest to smallest, while the downstream section includes the carriage numbers arranged from smallest to largest.
[0068] Furthermore, based on the received communication establishment command, any portable server, during the response waiting time, replies with a response message to other adjacent portable servers through any of its internally configured 433m wireless modules, and sets the synchronization device flag in the customized protocol.
[0069] In one example, if any portable server does not receive a response message from another adjacent portable server during the response waiting time, it sends a communication establishment command to the next or previous level portable server of the other adjacent portable server through another internally configured 433m wireless module.
[0070] Similarly, if any of the aforementioned portable servers does not receive a response message from the next or previous portable server within the response waiting time, it will stop sending the communication establishment command.
[0071] The implementation process of the above scheme will be described in detail below with specific examples.
[0072] In this embodiment, the developers assign corresponding carriage numbers to the portable servers configured in each carriage via the control software in the server AP. Assuming carriages 1-6 are assigned according to the number of carriages used by each server, the network topology is as follows: Figure 4 As shown, the response waiting time is 10 * single transmission time. The portable server in carriage 1 first sends a communication establishment command via its internal 433m wireless module according to the routing protocol. The content of this command is shown in Table 2a. Portable server 2 determines that the stage flag carried in the received command is the maximum flag (i.e., a boolean value of 1), and that its current carriage number is 2, while the maximum carriage number set in the routing protocol is 6. Since the current carriage number is less than the maximum carriage number, portable server 2 sends a communication establishment command to the downstream portable server 3 via its internally configured 433m wireless module based on the routing protocol. Furthermore, after receiving the communication establishment command, portable server 2 replies with a response message within the response waiting time. The specific content of this response message is shown in Table 2b. If portable server 1 receives the response message from portable server 2 within the response waiting time, it considers its command transmission successful. Additionally, after successful communication establishment between portable server 1 and portable server 2, both can set the synchronization device flag. Conversely, if portable server 2 malfunctions and portable server 1 does not receive a response message within the response waiting time, it sends a communication establishment command to portable server 3, the next level of portable server 2. If portable server 3 replies with a response message to portable server 1 within the response time, it indicates that portable server 1 successfully sent the command to portable server 3, and the two have successfully established a communication connection. If portable server 1 does not receive a response message from portable server 3 within the response time, it stops sending communication establishment commands and replies with a message to the debugging service software, allowing R&D personnel to check the equipment.
[0073] After portable server 3 successfully establishes a communication connection with portable server 1 or portable server 2, it also sets the synchronization device flag and sends a communication establishment command to the downstream adjacent portable server 4. After receiving the communication establishment command, portable server 4 repeats the above response and sending mechanisms.
[0074] Similarly, after receiving the communication establishment command sent by portable server 5, portable server 6 determines that the current carriage number is equal to the maximum carriage number, and then stops sending the communication establishment command.
[0075] Optionally, portable server 6 can also send a communication establishment command via its internal 433m wireless module according to the routing protocol. Portable server 5 determines that the stage flag carried in the received communication establishment command is the minimum flag (i.e., a boolean value of 0), and that its current carriage number is 5, while the maximum carriage number set in the routing protocol is 1, meaning the current carriage number is greater than the minimum carriage number. Therefore, portable server 5 sends a communication establishment command to the upstream portable server 4 via its internally configured 433m wireless module based on the routing protocol. Furthermore, after receiving the communication establishment command, portable server 5 replies with a response message to portable server 6 within the response waiting time. If portable server 6 receives the response message from portable server 5 within the response waiting time, it considers its command transmission successful. Additionally, after successful communication establishment between portable server 6 and portable server 5, both can set the synchronization device flag. Conversely, if portable server 5 malfunctions and portable server 6 does not receive a response message within the response waiting time, it sends a communication establishment command to portable server 4, the upstream port of portable server 5. If portable server 4 replies with a response message to portable server 6 within the response time, it indicates that portable server 6 successfully sent the command to portable server 4, and the two have successfully established a communication connection. If portable server 1 does not receive a response message from portable server 4 within the response time, it stops sending communication establishment commands and replies with a message to the control software, allowing R&D personnel to inspect the equipment.
[0076] Similarly, following the above communication processing logic, when portable server 1 receives the communication establishment instruction sent by portable server 2, it determines that the current carriage number is equal to the smallest carriage number, and then stops sending the communication establishment instruction.
[0077] It should be noted that the above-described method for establishing communication links involves routing from one portable server at one end to the other portable servers one by one to establish communication links between the servers. Optionally, routing can also be performed from the intermediate portable server to the portable servers at both ends. For example, routing can start from portable server 3 and proceed to the portable servers at both ends. In this case, when portable server 3 routes upstream, the application layer software can set the stage flag in its customized protocol to 0 (minimum flag), and when portable server 3 routes downstream, it can set the stage flag in its customized protocol to 1 (maximum flag).
[0078] In addition, when the portable server 3 routes to the portable servers at both ends, the two 433m wireless modules configured inside it do not send communication establishment commands to the adjacent 433m wireless modules at the same time, but instead send data messages separately, which can avoid communication interference.
[0079] During the process of establishing the communication link, it can be determined whether the 433m wireless module of the portable server is malfunctioning.
[0080] After the communication link between the portable servers in each carriage of the locomotive is successfully established, the portable servers can synchronize data based on this link. The network structure is as follows: Figure 5 As shown. Similarly, the data synchronization process can be described as follows:
[0081] Suppose portable server 3 needs to send synchronization data. It can send a data synchronization message to portable server 2 via upstream routing. In this case, the stage flag is at its minimum. Similarly, an acknowledgment waiting time can be set, which can be set to: data transmission setting waiting time = single transmission time * 3. If portable server 3 receives an acknowledgment message from portable server 2 within the acknowledgment waiting time, it considers its data synchronization with portable server 2 successful. If the timeout occurs, it means the data synchronization has failed, and portable server 3 continues to send data synchronization messages to portable server 1. If portable server 1 replies with an acknowledgment message to portable server 3 within the acknowledgment waiting time, it indicates that data synchronization between portable server 1 and portable server 3 is successful. At this point, portable server 1 determines that the stage flag is at its minimum, and its own carriage number equals the minimum carriage number, so it does not continue sending data synchronization messages.
[0082] Similarly, portable server 3 sends a data synchronization message to portable server 4 via downstream routing. At this point, the stage flag is at its maximum. If portable server 3 receives a response message from portable server 4 within the response waiting time, it considers its data synchronization with portable server 4 to be successful. If a timeout occurs, it means the data synchronization has failed, and portable server 3 continues to send a data synchronization message to portable server 5. If portable server 5 replies with a response message to portable server 3 within the response waiting time, it indicates that the data synchronization between portable server 5 and portable server 3 has been successful. This process continues, with portable server 5 synchronizing data with portable server 6 based on the same routing logic.
[0083] In other words, in this embodiment, the processing logic for establishing a communication link is similar to the processing logic for data synchronization. A portable server sends a message to a neighboring portable server. If no response message is received within a specified time, a message is sent to the next-level server of the neighboring portable server. If a response message is received within the specified time, it indicates successful communication between the two servers. If no response message is received within the specified time, it indicates communication failure, and the application layer software is not sent any more messages.
[0084] Figure 6This is a schematic diagram of the structure of a data synchronization device between locomotive carriages provided in an embodiment of this application, as shown below. Figure 6 As shown, the device may include: a processing module 601 and a synchronization module 602;
[0085] The processing module is used to establish communication links with other devices based on the stored routing protocols and custom protocols;
[0086] The synchronization module is used to synchronize data with other devices based on the communication link.
[0087] The aforementioned device is installed in any car of the locomotive, and each car of the locomotive is equipped with a data synchronization device. Other devices are installed in adjacent cars of any car or in a car separated by one car. Each data synchronization device in the locomotive car is equipped with two 433m wireless modules. The two 433m wireless modules operate at different frequencies, and either of the two 433m wireless modules operates at the same frequency as the adjacent 433m wireless module in the adjacent car.
[0088] In one example, the processing module is configured to receive communication establishment instructions sent by other devices via any of the internally configured 433m wireless modules, and establish a communication link based on the communication establishment instructions, as well as the stored routing protocol and custom protocol.
[0089] Furthermore, the aforementioned processing module is used to obtain the current carriage number, the maximum carriage number, and the minimum carriage number according to the routing protocol; obtain the stage flag according to the customized protocol; and establish a communication link according to the communication establishment instruction, the current carriage number, the maximum carriage number, the minimum carriage number, and the stage flag.
[0090] Specifically, when the stage marker is the maximum marker, if the current carriage number is less than the maximum carriage number, the processing module sends a communication establishment command to other downstream adjacent devices through another 433m wireless module configured internally; if the current carriage number is equal to the maximum carriage number, the aforementioned devices stop sending communication establishment commands.
[0091] When the stage marker is the minimum marker, if the current carriage number is greater than the minimum carriage number, the processing module sends a communication establishment command to other adjacent devices upstream through another 433m wireless module configured internally. If the current carriage number is equal to the minimum carriage number, the aforementioned devices stop sending communication establishment commands.
[0092] The upstream section includes the carriage numbers arranged from largest to smallest, while the downstream section includes the carriage numbers arranged from smallest to largest.
[0093] In one example, the aforementioned processing module is also used to reply with a response message to other adjacent portable servers via any of the internally configured 433m wireless modules during the response waiting time, based on the communication establishment command.
[0094] The aforementioned processing module is also used to set the synchronization device flag in the customized protocol.
[0095] In one example, if the processing module does not receive a response message from another adjacent device during the response waiting time, it sends a communication establishment command to the next-level or previous-level device of the adjacent device through another internally configured 433m wireless module.
[0096] Optionally, if the above processing module does not receive a response message from the next or previous level device during the response waiting time, it will stop sending the communication establishment command.
[0097] The aforementioned locomotive car-to-car data synchronization device can perform Figure 1 The provided method for data synchronization between locomotive carriages includes the corresponding devices and beneficial effects of the method.
[0098] Figure 7 This application provides a schematic diagram of the structure of a computer device, as shown in the embodiment of the present application. Figure 7 As shown, the computer device includes a controller 701, a memory 702, an input device 703, and an output device 704; the number of controllers 701 in the computer device can be one or more. Figure 7 Taking a controller 701 as an example; the controller 701, memory 702, input device 703, and output device 704 in a computer device can be connected via a bus or other means. Figure 7 Taking the example of a connection between China and Israel via a bus.
[0099] Memory 702, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as... Figure 1 The program instructions / modules corresponding to the locomotive-car data synchronization method in the embodiment (e.g., processing module 601 and synchronization module 602 in the locomotive-car data synchronization device). The controller 701 executes various functions of the computer equipment and data processing by running the software programs, instructions and modules stored in the memory 702, thereby realizing the above-mentioned locomotive-car data synchronization method.
[0100] The memory 702 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on computer usage. Furthermore, the memory 702 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, the memory 702 may further include memory remotely configured relative to the controller 701, which can be connected to a terminal / server via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0101] Input device 703 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the computer device. Output device 704 may include a display device such as a screen.
[0102] This application also provides a storage medium containing computer-executable instructions, which, when executed by a computer controller, are used to perform a method for data synchronization between locomotive carriages. The method includes... Figure 1 The steps are shown.
[0103] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this application can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0104] It is worth noting that the modules included in the above-mentioned locomotive car data synchronization device are divided according to functional logic, but are not limited to the above division method. As long as the corresponding functions can be realized, they are acceptable and are not used to limit the scope of protection of this application.
[0105] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.
Claims
1. A method for synchronizing data between railcars, comprising: The method comprises: Any portable server establishes a communication link with other portable servers according to a saved routing protocol and a customized protocol; The any portable server synchronizes data with the other portable servers based on the communication link; Wherein, the any portable server is arranged in any car of a train, and each car of the train is provided with a portable server, the other portable server is arranged in a car adjacent to the any car or a car spaced one car away, each portable server in a car of the train is configured with two 433m wireless modules, the two 433m wireless modules have different working frequencies, and any 433m wireless module of the two 433m wireless modules has the same working frequency as an adjacent 433m wireless module in an adjacent car; The any portable server establishes a communication link with other portable servers according to a saved routing protocol and a customized protocol, comprising: the any portable server receives a communication instruction sent by the other portable server through any 433m wireless module configured internally; the any portable server acquires a current car number, a maximum car number and a minimum car number according to the routing protocol; the any portable server acquires a stage flag according to the customized protocol; in the case that the stage flag is a maximum flag, if the current car number is less than the maximum car number, the any portable server sends a communication instruction to other portable servers downstream adjacent to the any portable server through another 433m wireless module configured internally, if the current car number is equal to the maximum car number, the any portable server stops sending the communication instruction; in the case that the stage flag is a minimum flag, if the current car number is greater than the minimum car number, the any portable server sends a communication instruction to other portable servers upstream adjacent to the any portable server through another 433m wireless module configured internally, if the current car number is equal to the minimum car number, the any portable server stops sending the communication instruction; wherein, the upstream includes an arrangement direction of car numbers from large to small, and the downstream includes an arrangement direction of car numbers from small to large; Further comprising: the any portable server replies a response message to the adjacent other portable server through the any 433m wireless module configured internally within a response waiting time based on the communication instruction; the any portable server sets a synchronization device flag in the customized protocol; if the any portable server does not receive a response message sent by the adjacent other portable server within the response waiting time, the any portable server sends a communication instruction to a next level or a previous level portable server of the adjacent other portable server through another 433m wireless module configured internally.
2. The method of claim 1, wherein, The method further comprises: If the any portable server does not receive a response message sent by the next level or the previous level portable server within the response waiting time, the any portable server stops sending the communication instruction.
3. An apparatus for synchronizing data between railcars, comprising: The device comprises: a processing module configured to establish a communication link with other devices according to a saved routing protocol and a customized protocol; a communication module configured to synchronize data with the other devices based on the communication link; wherein the device is arranged in any car of a locomotive, each car of the locomotive is provided with a data synchronization device, the other device is arranged in a car adjacent to the any car or a car one car away from the any car, each data synchronization device in a car of the locomotive is configured with two 433m wireless modules, the two 433m wireless modules have different working frequencies, and any one of the two 433m wireless modules has the same working frequency as an adjacent 433m wireless module in an adjacent car; the processing module is configured to receive a communication establishment instruction sent by the other portable server through any one of the internally configured 433m wireless modules, obtain a current car number, a maximum car number and a minimum car number according to the routing protocol, obtain a stage flag according to the customized protocol, if the stage flag is a maximum flag, if the current car number is less than the maximum car number, send a communication establishment instruction to the other portable server downstream through another internally configured 433m wireless module, if the current car number is equal to the maximum car number, stop sending the communication establishment instruction, if the stage flag is a minimum flag, if the current car number is greater than the minimum car number, send a communication establishment instruction to the other portable server upstream through another internally configured 433m wireless module, if the current car number is equal to the minimum car number, stop sending the communication establishment instruction, wherein the upstream includes a car number arrangement direction from large to small, and the downstream includes a car number arrangement direction from small to large; the processing module is further configured to reply to an acknowledgement message from the adjacent other portable server through the any one of the internally configured 433m wireless modules within an acknowledgement waiting time based on the communication establishment instruction, set a synchronization device flag in the customized protocol, if no acknowledgement message sent by the adjacent other portable server is received within the acknowledgement waiting time, send a communication establishment instruction to a next level or a previous level portable server of the adjacent other portable server through another internally configured 433m wireless module.
4. A computer device, comprising: comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the program, the method for synchronizing data between cars of a locomotive according to claim 1 or 2 is implemented.
5. An apparatus readable storage medium having stored thereon a computer program, characterized in that, the program is executed by the processor, the method for synchronizing data between cars of a locomotive according to claim 1 or 2 is implemented.
Citation Information
Patent Citations
Synchronous operation and control system and method of locomotives
CN102530026A
Train, train communication network and dynamic construction method thereof
CN112849214A
Data communication systems and methods for locomotive consists
US20140153380A1