Dispatching command information processing method based on Android platform
By using the LTE/GSM-R network and UDP protocol on the Android platform, communication with the CIR library inspection equipment and the GRIS interface server is achieved, and the dispatch command information transmission problems caused by the locomotive not installed or equipment failure in railway traffic is solved, ensuring the continuity and efficiency of communication.
Patent Information
- Application Number
- CN202411988984.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-16
AI Technical Summary
In railway traffic, some locomotives are not installed or CIR equipment fails, resulting in the inability to receive and send dispatch command information normally, affecting emergency repairs, short-term construction operations and other tasks with high requirements for real-time communication.
The scheduling command information processing method based on the Android platform is adopted, and the scheduling command information is connected to the LTE/GSM-R network and the UDP protocol is used to communicate with the CIR library inspection equipment and the GRIS interface server to realize the reception, storage and query of scheduling command information.
Ensure the continuity and efficiency of work when communication is blocked, can maintain normal operation in emergencies, improve work efficiency, and is suitable for various Android 8.0 and above systems.
Smart Images

Figure CN120018083A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of railway traffic safety communication, and in particular to a dispatching command information processing method based on an Android platform. Background Art
[0002] The locomotive integrated wireless communication equipment (CIR) is an indispensable train control tool in the field of railway transportation. It plays a vital role in ensuring the safety and efficiency of train operation. CIR equipment has certain limitations in transmission capacity and lacks the support of broadband communication channels, which to some extent limits the speed and efficiency of its data transmission.
[0003] In some special and urgent situations, since some locomotives have not yet been equipped with CIR equipment, or although they have been installed, the CIR equipment on the locomotives often fails due to various unexpected reasons, it is impossible to receive and send dispatch command information normally, which seriously affects the smooth progress of emergency repair tasks, short-term construction operations and other special tasks that require high instant communication. In order to ensure the continuity and efficiency of work when communication is blocked, various railway bureaus have put forward urgent needs for this. Summary of the invention
[0004] In order to ensure the continuity and efficiency of work when communication is blocked, the present invention provides a dispatch command information processing method based on Android platform. The method realizes the connection with CIR library inspection station equipment and GRIS interface server by accessing LTE / GSM-R network and using UDP protocol to process train dispatch command information. It is suitable for railway communication applications, such as CIR redundancy standby, emergency repair, short-term operation, and transition scenarios between old and new communication formats.
[0005] The technical solution adopted by the present invention is: a dispatch command information processing method based on the Android platform uses an application composed of a network module, a parsing module, a storage module, and a display module, accesses the LTE / GSM-R network, uses the UDP protocol to communicate with the CIR library inspection station device and the GRIS interface server, receives message information from the CIR library inspection station device and the GRIS interface server, completes the processing of the message information, and realizes the signing, storage, and query of historical information of the message information. The steps are as follows: 1. The network module of the application continuously sends messages to the GRIS interface server through UDP to complete the connection with the GRIS interface server; if the network module does not receive a reply message from the GRIS interface server, the page displays that it is not connected, and the application returns to continue sending messages to the GRIS interface server.
[0006] 2. If the network module receives a message from the GRIS interface server, it sends the message to the parsing module for parsing, and the page displays that it is connected.
[0007] 3. After the user performs a library inspection operation on the page, the network module sends a library inspection message to the CIR library inspection device, and the CIR library inspection device replies with a message containing library inspection information. The network module sends the message containing library inspection information received from the CIR library inspection device to the parsing module for parsing.
[0008] 4. The parsing module parses the dispatch information message and the warehouse inspection information message and sends them to the GRIS interface server and CIR warehouse inspection station equipment through the network module, and sends them to the database of the storage module for querying historical information.
[0009] 5. The page displays the dispatch information and inventory inspection information of the message, and provides voice prompts through the display module.
[0010] 6. The network module automatically sends back a receipt message via UDP; at the same time, after the user manually signs on the page, the network module sends back a receipt message via UDP.
[0011] 7. If UDP receives a reply message, the page will display a successful signature and a voice prompt will be given. Otherwise, the page will prompt a failed signature.
[0012] The beneficial effect of the present invention is that when an emergency occurs and the dispatch command information cannot be received and sent normally, the present invention can ensure that the continuity and efficiency of work can be maintained when communication is blocked. The present invention can be installed on any device with Android 8.0 or above system for use, which is more flexible and convenient and improves work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A block diagram of the system structure of the present invention; Figure 2 It is a flow chart of the software program of the present invention. DETAILED DESCRIPTION
[0014] The present invention is further described below in conjunction with the accompanying drawings.
[0015] like Figure 1 As shown, the dispatch command information processing method based on the Android platform utilizes an application composed of a network module, a parsing module, a storage module, and a display module. By accessing the LTE / GSM-R network, the UDP protocol is used to communicate with the CIR library inspection device and the GRIS interface server, receive message information from the CIR library inspection device and the GRIS interface server, complete the processing of the message information, and realize the signing, storage, and query of historical information of the message information.
[0016] The application program of the present invention comprises a network module, a parsing module, a storage module and a display module, wherein the network module is respectively connected to a GRIS interface server, a CIR library inspection station device and the parsing module, the parsing module is respectively connected to the storage module and the display module, and the display module is connected to the network module; In order to ensure the continuity and efficiency of work when communication is blocked, the present invention designs an application that can receive, save and query dispatching commands, driving certificates, shunting work orders, route notices, and perform in-and-out warehouse detection, and uses the UDP protocol to exchange data in the LTE / GSM-R network.
[0017] like Figure 2 As shown, the application process of the present invention performs the following operations: 1. The network module of the application continuously sends messages to the GRIS interface server through UDP (it can be designed to send messages to the GRIS interface server every ten seconds, three times in a row) to complete the connection with the GRIS interface server; if the network module does not receive a reply message from the GRIS interface server, the page displays that it is not connected, and the application returns to continue sending messages to the GRIS interface server.
[0018] 2. If the network module receives a message from the GRIS interface server, it sends the message to the parsing module for parsing, and the page displays that it is connected.
[0019] 3. After the user performs a library inspection operation on the page, the network module sends a library inspection message to the CIR library inspection device, and the CIR library inspection device replies with a message containing library inspection information. The network module sends the message containing library inspection information received from the CIR library inspection device to the parsing module for parsing.
[0020] 4. The parsing module parses the dispatch information message and the warehouse inspection information message and sends them to the GRIS interface server and CIR warehouse inspection station equipment through the network module, and sends them to the database of the storage module for querying historical information.
[0021] 5. The page displays the dispatch information and inventory inspection information of the message, and provides voice prompts through the display module.
[0022] 6. The network module automatically sends back a receipt message via UDP; at the same time, after the user manually signs on the page, the network module sends back a receipt message via UDP.
[0023] 7. If UDP receives a reply message, the page will display a successful signature and a voice prompt will be given. Otherwise, the page will prompt a failed signature.
[0024] The portable terminal based on the Android platform is equipped with the system platform of Android 8.0 and above, and the application of the present invention is installed thereon. The application functions include: signing and saving the dispatch command information, performing in-and-out warehouse detection, and querying historical information. When the user opens the application, when the dispatch command information is received, the homepage will display its related information, and the user can sign for it; when the user clicks on the data detection, the in-and-out warehouse detection information returned by the CIR warehouse inspection station equipment can be viewed; when the user clicks on the query button, the dispatch command, driving certificate, shunting operation order, route notice, warehouse inspection information history can be further queried.
[0025] When the application of the present invention receives the message of the dispatch command information, it first parses it, and then displays it on the homepage of the software of the present invention and gives a voice prompt. At the same time, the ROOM database framework is used to execute the SQLite database operation to save this information. After signing, the TTS method is used to give a voice prompt of successful signing.
[0026] By clicking the data detection button, the user can send warehouse inspection information to the CIR warehouse inspection station device through the UDP protocol. After receiving the UDP message of the in-and-out warehouse detection signaling, the CIR warehouse inspection station device will return the UDP message containing the in-and-out warehouse detection signaling response.
[0027] The application is developed using Android native language Kotlin, and page drawing is achieved using the Jetpack Compose tool. In order to ensure the persistent storage of important train information, SQLite database technology is used. As a lightweight relational database management system, SQLite has the advantages of high efficiency, reliability, ease of use and cross-platform, and is particularly suitable for mobile devices and embedded systems. However, in order to further improve development efficiency and the convenience of database operations, the ROOM database framework is used in the application of the present invention to perform SQLite database operations. ROOM is an object-relational mapping (ORM) library widely used on the Android platform. It is based on the SQLite database and provides a higher-level abstraction layer, enabling developers to use classes and objects in Java or Kotlin language to directly operate the database without writing cumbersome SQL statements. The ROOM framework generates implementation code at compile time through an annotation processor, maps Java or Kotlin objects to SQLite database tables, and automatically generates methods for adding, deleting, modifying and checking database operations. By using the ROOM database framework, the efficiency and reliability of database operations in the present invention can be greatly improved. The automatic mapping and code generation functions of the ROOM framework can greatly reduce the workload of manually writing SQL statements and database operation codes, while improving the readability and maintainability of the code. In addition, the ROOM framework also provides a rich error handling and exception management mechanism, which can better handle abnormal situations in database operations and ensure data integrity and consistency.
[0028] The dispatch command information processing method based on the Android platform realizes the functions of receiving, saving and voice prompting dispatch commands, querying dispatch commands, driving certificates, shunting work orders, route notice history, and in-and-out warehouse detection.
[0029] When the software of the present invention receives a UDP message containing a dispatch command, driving certificate, shunting work order, route notice from the GRIS interface server or a message containing entry and exit detection information from the CIR warehouse inspection station device, it will parse it and display it on the homepage. The user can sign for it on the homepage. After successful signing, the software of the present invention will give a voice prompt to indicate successful signing, and will save it for subsequent viewing.
[0030] When the user clicks the data detection button, the application of the present invention can send warehouse detection information to the CIR warehouse detection station device through the UDP protocol. After receiving the UDP message of the in-and-out warehouse detection signaling, the CIR warehouse detection station device will return the UDP message containing the in-and-out warehouse detection signaling response.
[0031] The user clicks the query button to enter the historical query page. The user can further query the dispatching orders, driving certificates, shunting work orders, route notices, and warehouse inspection information received in the past on this page.
Claims
1. A dispatch command information processing method based on Android platform, characterized in that: The method uses an application consisting of a network module, a parsing module, a storage module, and a display module, accesses the LTE / GSM-R network, uses the UDP protocol to communicate with the CIR library inspection station device and the GRIS interface server, receives message information from the CIR library inspection station device and the GRIS interface server, completes the processing of the message information, and realizes the signing, storage, and query of historical information of the message information. The steps are as follows:
1. The network module of the application continuously sends messages to the GRIS interface server through UDP to complete the connection with the GRIS interface server; if the network module does not receive a reply message from the GRIS interface server, the page will display that it is not connected, and the application returns to continue sending messages to the GRIS interface server; 2. If the network module receives a message from the GRIS interface server, it sends the message to the parsing module for parsing, and the page displays that it is connected; 3. After the user performs a library inspection operation on the page, the network module sends a library inspection message to the CIR library inspection device, and the CIR library inspection device replies with a message containing library inspection information. The network module sends the message containing the library inspection information received from the CIR library inspection device to the parsing module for parsing; Fourth, the parsing module will parse the dispatch information message and the warehouse inspection information message and send them to the GRIS interface server and CIR warehouse inspection station equipment through the network module, and send them to the database of the storage module for querying historical information; 5. The page displays the dispatch information and warehouse inspection information of the message, and provides voice prompts through the display module; 6. The network module automatically sends back a receipt message via UDP; at the same time, after the user manually signs on the page, the network module sends back a receipt message via UDP; 7. If UDP receives a reply message, the page will display a successful signature and a voice prompt will be given. Otherwise, the page will prompt a failed signature.