Train-mounted communication method, system and equipment and storage medium
By setting sensors and communication nodes on the first bogie of the train and adopting a time slot allocation mechanism, the signal interference and packet loss caused by the high sensor data transmission rate in rail transit is solved, and high-reliability train-on-vehicle communication is achieved.
Patent Information
- Application Number
- CN202311226899.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2025-03-21
AI Technical Summary
In the field of rail transit, the data transmission rate of train sensors is high, resulting in signal interference, transmission conflicts and packet loss, affecting the reliability of communication.
By setting sensors and communication nodes on the first bogie of the train, a time slot allocation mechanism is adopted to ensure that each sensor sends data according to the set data transmission cycle, and avoid signal interference and conflicts by monitoring and updating the time slots.
It effectively avoids signal interference and packet loss between sensor nodes, and improves the reliability and efficiency of on-board communication of trains.
Smart Images

Figure CN119676674A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit technology, and in particular to a train on-board communication method, system, equipment and storage medium. Background Art
[0002] In the field of industrial Internet of Things, wireless sensor technology has been widely used. Through various sensors, data collection and wireless transmission are realized, which has the advantages of low deployment cost, convenient operation and maintenance, and flexible transformation. The industrial Internet of Things has the characteristics of low cost, low power consumption, small amount of data, low transmission frequency, many nodes, and wide coverage. However, in the field of rail transit, the sensors of the train are mainly distributed in the bogie position to monitor the axle temperature, vibration, acceleration and other parameters of the bogie. Compared with the industrial Internet of Things, the sensors arranged at the bogie of the train have the characteristics of large data flow, high transmission frequency, relatively small number of nodes, and small sensor deployment range. Since the general industrial Internet of Things wireless communication technology rate is relatively low, once the data transmission rate increases, the wireless signal interference between sensor nodes will become more serious, resulting in signal transmission conflicts and data packet loss.
[0003] In summary, how to effectively realize on-board communication in trains, avoid frequent signal interference, transmission conflicts, and data packet loss between sensor nodes, and ensure the reliability of communication is a technical problem that technicians in this field urgently need to solve. Summary of the invention
[0004] The purpose of the present invention is to provide a train on-board communication method, system, device and storage medium to effectively realize train on-board communication, avoid frequent signal interference, transmission conflicts and data packet loss between sensor nodes, and ensure the reliability of communication.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] A train on-board communication method is applied to each sensor on a first bogie of a train, wherein each of the sensors on the first bogie is communicatively connected to an on-board host via one or more communication nodes on the first bogie, and the train on-board communication method comprises:
[0007] Collect data;
[0008] The collected data is sent according to the data sending cycle set for the sensor itself, and each time it is sent, the sending time occupied is 1 time slot;
[0009] By monitoring the data transmission behavior of the remaining sensors on the first bogie, the data transmission cycle of each of the remaining sensors on the first bogie and the time slot occupied by each data transmission are determined;
[0010] Whenever the first update time length set for itself has passed, the time slot of itself is updated to determine the time slots occupied by itself within the future first update time length, and the set time slot avoidance principle is satisfied during the update;
[0011] The time slot avoidance principle includes: within the first update time in the future, each time the sensor sends its own data, the time slot occupied by the sensor does not conflict with the time slot occupied by any other sensor on the first bogie;
[0012] One time slot represents a time segment of fixed duration. In a single time slot, only a single sensor on the first bogie is allowed to send data to the communication node on the first bogie.
[0013] In a specific implementation of the present invention, the collected data is sent according to a data sending cycle set for the sensor itself, including:
[0014] According to the data transmission cycle set for the sensor itself, the collected data is encrypted and sent using the first public key configured for the first bogie, so that the communication node on the first bogie only receives data from the sensor on the first bogie.
[0015] In a specific implementation of the present invention, each of the sensors on the first bogie is time-synchronized via a communication node on the first bogie.
[0016] In a specific implementation of the present invention, for any sensor on the first bogie, the data transmission period of the sensor is a value selected from a data transmission period library;
[0017] The data transmission cycle library includes x values, and the smallest value among the x values is a, and the remaining x-1 values are all greater than a and are integer multiples of a; x is a positive integer not less than 2, and a is an integer.
[0018] In a specific implementation of the present invention, for any sensor on the first bogie, the first update duration of the sensor is set to K times the data sending period of the sensor, where K is a setting coefficient.
[0019] In a specific embodiment of the present invention, it also includes:
[0020] A trigger probability value P is configured so that when any sensor on the first bogie has passed a first update time length set for itself, there is a probability of P to update its own time slot, and there is a probability of 1-P not to update its own time slot;
[0021] Among them, when any sensor on the first bogie does not update its own time slot, the sensor determines the time slots occupied by the sensor in the future first update period based on the time slots occupied by the sensor itself in the previous first update period and according to the data sending cycle of the sensor.
[0022] In a specific embodiment of the present invention, two communication nodes are arranged on the first bogie. When the two communication nodes are operating normally, for any one of the sensors on the first bogie, the sensor is connected to a corresponding communication node nearby; when one of the two communication nodes fails, each of the sensors on the first bogie is connected to a communication node operating normally.
[0023] In a specific embodiment of the present invention, each communication node on the first bogie is communicatively connected to the vehicle-mounted host via wired communication and / or wireless communication.
[0024] In a specific embodiment of the present invention, it also includes:
[0025] When there is alarm information to be uploaded, the alarm information is sent to the communication node, and when sending the alarm information, one reserved time slot is occupied;
[0026] The reserved time slot is a pre-set time slot dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the reserved time slot.
[0027] In a specific embodiment of the present invention, it also includes:
[0028] When there is alarm information to be uploaded, the alarm information is sent to the communication node using a dedicated channel;
[0029] The dedicated channel is a pre-set channel dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the dedicated channel.
[0030] A train onboard communication system is applied to each sensor on a first bogie of a train, wherein each of the sensors on the first bogie is communicatively connected to an onboard host via one or more communication nodes on the first bogie, and the train onboard communication system comprises:
[0031] A collection module is used for collecting data;
[0032] The sending module is used to send the collected data according to the data sending cycle set for the sensor itself, and each time the data is sent, the sending time occupied is 1 time slot;
[0033] A monitoring module, used for monitoring the data transmission behaviors of the remaining sensors on the first bogie to determine the data transmission cycles of the remaining sensors on the first bogie and the time slots occupied by each data transmission;
[0034] A time slot update avoidance module, used for updating its own time slots after a first update duration set for itself has passed, so as to determine the time slots occupied by itself within the future first update duration, and satisfying the set time slot avoidance principle during the update;
[0035] The time slot avoidance principle includes: within the first update time in the future, each time the sensor sends its own data, the time slot occupied by the sensor does not conflict with the time slot occupied by any other sensor on the first bogie;
[0036] One time slot represents a time segment of fixed duration. In a single time slot, only a single sensor on the first bogie is allowed to send data to the communication node on the first bogie.
[0037] In a specific implementation of the present invention, a first alarm information sending module is further included, which is used to:
[0038] When there is alarm information to be uploaded, the alarm information is sent to the communication node, and when sending the alarm information, one reserved time slot is occupied;
[0039] The reserved time slot is a pre-set time slot dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the reserved time slot.
[0040] In a specific implementation of the present invention, a second alarm information sending module is further included, which is used to:
[0041] When there is alarm information to be uploaded, the alarm information is sent to the communication node using a dedicated channel;
[0042] The dedicated channel is a pre-set channel dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the dedicated channel.
[0043] A train-mounted communication device, comprising:
[0044] Memory for storing computer programs;
[0045] A processor is used to execute the computer program to implement the steps of the train on-board communication method as described above.
[0046] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the train on-board communication method as described above are implemented.
[0047] By applying the technical solution provided by the embodiment of the present invention, a sensor is arranged on the first bogie, and one or more communication nodes are arranged on the first bogie, so that each sensor on the first bogie can be connected to the vehicle-mounted host through communication based on these communication nodes, that is, effective communication between each sensor on the first bogie and the vehicle-mounted host is achieved. The train vehicle-mounted communication method of the present application can be applied to each sensor on the first bogie of the train. Specifically, taking any one of the sensors as an example, the sensor can collect data, and a data transmission cycle is set for the sensor, so that the sensor will send the collected data according to the data transmission cycle set for the sensor itself, and each time it sends, the transmission duration occupied is 1 time slot. 1 time slot represents a time segment with a fixed duration. In a single time slot, only a single sensor on the first bogie is allowed to send data to the communication node on the first bogie.
[0048] The sensor will monitor the data transmission behavior of the remaining sensors on the first bogie, so as to determine the data transmission cycle of each of the remaining sensors on the first bogie and the time slots occupied each time the data is transmitted. Due to the monitoring, whenever the sensor updates its own time slot after the first update time length set for itself, it can determine the time slots occupied by itself in the future first update time length, and avoid time slot conflicts. That is, the time slots updated to be occupied in the future first update time length will meet the set time slot avoidance principle. The time slot avoidance principle specifically refers to that in the future first update time length, each time the sensor transmits its own data, the time slot occupied does not conflict with the time slot occupied by any other sensor on the first bogie. Due to the non-conflict in the time slots, the solution of the present application can avoid frequent signal interference, transmission conflicts, and data packet loss between sensors.
[0049] In addition, it should be pointed out that in some cases, if a suitable data transmission cycle and a corresponding occupied time slot are set for each sensor, even if the time slot is not updated, under normal circumstances, there will be no conflict between the time slots occupied by two sensors. However, the present application further takes into account that due to the change of the sensor from a normal operating state to a fault state, or from a fault state to a normal operating state, the number of sensors arranged on the first bogie will change. In addition, the sensor may also be interfered by other wireless signals. The existence of these special circumstances makes it possible that if the time slot is not updated, the time slots occupied by two sensors may change from non-conflict to conflict. In this regard, since the scheme of the present application can update the time slots occupied by the sensors, even if some abnormal situations occur, the present application can also eliminate the abnormal situation of conflicting time slots between sensors in a timely manner by updating the time slots occupied by the sensors, thereby further ensuring the communication reliability of the scheme of the present application.
[0050] To sum up, the solution of the present application can effectively realize train on-board communication, that is, the data collected by each sensor can be effectively sent to the on-board host, and the solution of the present application effectively avoids frequent signal interference, transmission conflicts, and data packet loss between sensors, thereby ensuring the reliability of communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 This is a flow chart of an implementation of a train onboard communication method in the present invention;
[0053] Figure 2 A schematic diagram of the connection between a sensor on a first bogie and a corresponding communication node in a specific implementation manner of the present invention;
[0054] Figure 3 A schematic diagram of connecting sensors on a first bogie and a second bogie with corresponding communication nodes in a specific implementation manner of the present invention;
[0055] Figure 4 The figure is a schematic diagram of the structure of a train on-board communication system in the present invention. DETAILED DESCRIPTION
[0056] The core of the present invention is to provide a train on-board communication method, which can effectively realize train on-board communication, that is, the data collected by each sensor can be effectively sent to the on-board host, and the solution of the present application effectively avoids frequent signal interference, transmission conflicts, and data packet loss between sensors, thereby ensuring the reliability of communication.
[0057] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] Please refer to Figure 1 , Figure 1 The present invention is a flow chart of an implementation of a train vehicle-mounted communication method. The train vehicle-mounted communication method can be applied to each sensor on the first bogie of the train. Each sensor on the first bogie is connected to the vehicle-mounted host through one or more communication nodes on the first bogie. The train vehicle-mounted communication method may include the following steps:
[0059] Step S101: collecting data.
[0060] In the solution of the present application, one or more sensors may be arranged on the first bogie, and usually multiple sensors are arranged. One or more communication nodes are also arranged on the first bogie, for example Figure 2 In the implementation manner, only one communication node is arranged on the first bogie.
[0061] For each sensor on the first bogie, the sensor can be connected to the vehicle-mounted host through one or more communication nodes on the first bogie, for example Figure 2 In the example, since there is only one communication node, Figure 2 Each sensor in the system is connected to the vehicle host through the same communication node. Figure 2 Each sensor in the system is a wireless sensor and can realize wireless communication with the communication node.
[0062] The first bogie can be any bogie in the train. In other words, any bogie in the train can adopt the arrangement of the present application. The present application takes the first bogie and each sensor on the first bogie as an example for explanation. Figure 3 In the case of Figure 3As for the second bogie, a certain number of communication nodes and sensors may also be arranged on the second bogie, so that these sensors on the second bogie can be communicatively connected with the on-board host through the corresponding communication nodes on the second bogie.
[0063] The specific type of communication node can be set and adjusted as needed, and can usually be implemented based on communication equipment such as gateways, and can meet the functional requirements of the communication node in this application, that is, each sensor on the first bogie can communicate with the on-board host through the communication node on the first bogie.
[0064] The specific types of the sensors on the first bogie can be set and adjusted according to actual needs, and are usually wireless sensors, such as Figure 2 and Figure 3 Each sensor is specifically a wireless sensor, for example, it can specifically include various types such as wireless temperature monitoring sensors, wireless vibration monitoring sensors, wireless temperature and vibration composite sensors, etc.
[0065] Each sensor can collect corresponding data and then send it to the vehicle host through the communication node.
[0066] Step S102: The collected data is sent according to the data sending cycle set for the sensor itself, and each time the data is sent, the sending duration is 1 time slot.
[0067] Different sensors have different data transmission requirements. For example, the wireless temperature monitoring sensor has a low acquisition frequency, a short transmission message, and a high real-time requirement, while the wireless vibration monitoring sensor has a high acquisition frequency, a long transmission message, and a low real-time requirement. Therefore, for any sensor, a suitable data transmission cycle can be set for it based on the data transmission requirements of the sensor.
[0068] In actual applications, for a certain sensor, once a suitable data transmission cycle is set for it, no further adjustment is required unless there are special circumstances.
[0069] After a data transmission cycle is set for a sensor, the sensor will transmit the collected data according to its data transmission cycle during each first update period of the sensor, and each transmission will occupy 1 time slot.
[0070] A time slot described in the present application represents a time segment of fixed duration. In a single time slot, only a single sensor on the first bogie is allowed to send data to the communication node on the first bogie.
[0071] It is understandable that the specific duration of a time slot can be set and adjusted according to actual conditions. However, since a sensor needs to send data once within a time slot, when setting the duration of a single time slot, it is necessary to exceed the minimum time required for the sensor to complete one wireless signal transmission. For example, in actual applications, a time slot can usually be 1ms, that is, 1 second is divided into 1000 time slots. This example will be used in the following text.
[0072] Step S103: by monitoring the data transmission behaviors of the remaining sensors on the first bogie, the data transmission cycles of the remaining sensors on the first bogie and the time slots occupied by each data transmission are determined.
[0073] For any sensor on the first bogie, in order to effectively avoid conflicting time slots during subsequent time slot updates, the sensor needs to monitor the data sending behaviors of the remaining sensors on the first bogie, that is, when any other sensor has data sending behavior, monitor the time slot occupied by this data sending behavior. Therefore, the sensor can determine the data sending cycles of the remaining sensors on the first bogie and the time slots occupied by each data transmission through monitoring.
[0074] Step S104: Whenever the first update duration set for itself has passed, update its own time slots to determine the time slots occupied by itself within the future first update duration, and satisfy the set time slot avoidance principle during the update;
[0075] For any sensor on the first bogie, after the first update time length set for the sensor itself has passed, the sensor can update its own time slot. The updated time slot is used for use within the first update time length in the future, and the set time slot avoidance principle must be met during the update.
[0076] The time slot avoidance principle means that, within the first update time period in the future, each time the sensor sends its own data, the time slot occupied by the sensor does not conflict with the time slot occupied by any other sensor on the first bogie.
[0077] For ease of understanding, a specific scenario is used as an example. In this scenario, one time slot is 1ms, and the time synchronization of each sensor is achieved through a communication node. For example, the first time slot is numbered as time slot 1, and correspondingly, the second time slot is numbered as time slot 2, and so on. For example, at the 10th second, it is the 10000th time slot, numbered as time slot 10000, and the time slot number can be reset every 10 seconds, that is, the next time slot after slot 10000 is numbered as time slot 1.
[0078] For example, the data sending cycle of sensor A is 200ms, and the first update duration of sensor A is 1s, for example. Starting from time 0, within the first update duration of sensor A, the time slots occupied by sensor A are, for example, time slot 3, time slot 203, time slot 403, time slot 603, and time slot 803, respectively. When the time reaches the 1st second, sensor A will trigger the update of the time slot, that is, the next time slot occupied by sensor A is not necessarily 1003.
[0079] For another example, in this example, the data sending periods of sensor B and sensor C are 500ms and 100ms respectively, and the first update durations of sensor B and sensor C are both 3s, for example. In the first update duration starting from time 0, the time slots occupied by sensor B are, for example, time slot 5, time slot 505, time slot 1005, time slot 1505, time slot 2005... and so on, and the time slots occupied by sensor C are, for example, time slot 6, time slot 106, time slot 206... time slot 1906, time slot 2006, time slot 2016... and so on.
[0080] It can be seen that in this example, from time 0 to the end of the 1st second, the first update duration of sensor A ends, sensor A triggers the update of the time slot, and sensor A needs to determine the time slots that it will occupy in the next 1 second. In actual applications, sensor A can determine the time slots that may be occupied in the first update duration in the future, and then exclude these time slots that may be occupied, and then select the time slots that it needs to occupy from the remaining time slots according to its own data transmission cycle.
[0081] For instance, in the above example, sensor A can determine that within the first update period in the future, the time slots that may be occupied are specifically: time slot 1505 occupied by sensor B, time slot 1006 occupied by sensor C, time slot 1106, time slot 1206, time slot 1306, time slot 1406, time slot 1506, time slot 1606, time slot 1706, time slot 1806 and time slot 1906. Just avoid these time slots. For instance, in one scenario, sensor A determines that within the first update period in the future, the time slots occupied by itself are time slot 1009, time slot 1209, time slot 1409, time slot 1609 and time slot 1809, respectively.
[0082] In addition, it should be pointed out that in some cases, if a suitable data transmission cycle and the corresponding occupied time slot are set for each sensor, even if the time slot is not updated, under normal operation, there will be no conflict between the time slots occupied by two sensors. For example, in the above example, the data transmission cycles of sensor A, sensor B and sensor C are 200ms, 500ms and 100ms respectively, and the first time slots occupied by the three are time slot 3, time slot 5 and time slot 6 respectively. It can be seen that in this example, as long as no abnormal situation occurs, there will be no time slot conflict even if the time slot is not updated.
[0083] However, in practical applications, the train operation conditions are complex, the number of sensors may change, or they may be interfered with by other wireless signals. As a result, if the time slots are not updated, the time slots occupied by two sensors may change from non-conflicting to conflicting.
[0084] For instance, in the above example, there is actually a sensor D on the first bogie. Previously, sensor D was down, but at some point later, sensor D resumed operation. For example, when sensor D resumed operation, the first time slot selected happened to be time slot 6. After sensor D resumed operation, sensor D and sensor C would continue to conflict, resulting in the inability of their data packets to be sent to the on-board host through the communication node, which resulted in continuous loss of data packets.
[0085] After adopting the above-mentioned time slot update mechanism of the present application scheme, after sensor D resumes operation, even if the first time slot happens to be time slot 6, sensor D and sensor C will only conflict for a short time. Once the time slot update of sensor C or sensor D is triggered, there will be no subsequent conflicts in the time slots occupied by the two. Therefore, it can be seen that the update mechanism for the time slots occupied by sensors set by the present application can eliminate the conflict in time even if there is a conflict in the time slots occupied by sensors, thereby further ensuring the communication reliability of the present application scheme.
[0086] In a specific implementation of the present invention, for any sensor on the first bogie, the data transmission period of the sensor is a value selected from a data transmission period library;
[0087] The data transmission cycle library includes x values, and the smallest value among the x values is a, and the remaining x-1 values are all greater than a and are all integer multiples of a; x is a positive integer not less than 2, and a is an integer.
[0088] For example, in one scenario, the data sending cycle library includes several values, namely 100ms, 200ms, 500ms and integers from 1s to 60s. That is, in this example, the smallest value a among the x cycle values is 100ms, and the remaining x-1 values are all greater than 100ms and are integer multiples of 100ms.
[0089] In this implementation, on the one hand, it is considered that although there are various types of sensors, the required data transmission period is usually a number of optional values, so a data transmission period library is set up so that the data transmission period of the sensor can be selected from it. On the other hand, since in this implementation, the x-1 period values are all greater than a and are all integer multiples of a, the execution of step S104 can be facilitated.
[0090] Specifically, as described above, when a sensor executes step S104 and updates its own time slot, the determined time slots occupied by itself within the first future update duration must meet the set time slot avoidance principle. In practice, the sensor can usually first determine the time slots that may be occupied by other sensors within the first future update duration, and after excluding the time slots that may be occupied, the sensor can select the time slots that it needs to occupy from the remaining time slots according to its own data transmission cycle.
[0091] For example, in the case of sensor A, sensor B and sensor C, sensor A determines that the time slots that may be occupied in the first update duration in the future are: time slot 1505 occupied by sensor B, time slot 1006, time slot 1106, time slot 1206, time slot 1306, time slot 1406, time slot 1506, time slot 1606, time slot 1706, time slot 1806 and time slot 1906 occupied by sensor C. It is sufficient to avoid these time slots. Therefore, sensor A can determine that the time slots occupied by itself in the first update duration in the future are time slot 1009, time slot 1209, time slot 1409, time slot 1609 and time slot 1809. However, in some special cases, occasional time slot conflicts may still occur in the implementation of this example, because in some special cases, the data transmission cycles of sensor B and sensor C may change.
[0092] Therefore, in practical applications, a more reliable implementation method is that when sensor A determines the time slots that may be occupied in the first update duration in the future, the data transmission period of the remaining sensors can be regarded as the above-mentioned minimum period value a, that is, sensor A can consider the worst case when selecting time slots. For example, in the above example, sensor A can regard the data transmission period of sensor B and sensor C as the minimum period value of 100ms, and then determine the time slots that may be occupied by sensor B and sensor C in the first update duration in the future, and then after avoiding these time slots, from the remaining time slots, according to its own data transmission period, select the time slots that it needs to occupy, so as to more effectively avoid the conflict of occupied time slots.
[0093] In addition, it can be understood that in the scheme of the present application, the purpose of avoiding the occupied time slot is to avoid the conflict of data sent by different sensors. In other words, in the same time slot, only a single sensor can be allowed to send one message to the communication node within the duration of the time slot. In practical applications, some types of sensors are composite sensors. For example, a sensor can detect both temperature data and humidity data. If the sensor in this example places the temperature data and humidity data in the same message for sending, the sensor can be regarded as one sensor. If the sensor sends temperature data and humidity data separately, since it is impossible to send one message carrying temperature data and one message carrying humidity data in the same time slot, then at this time, the composite sensor can be regarded as a combination of two different sensors, that is, it can be regarded as a combination of one temperature sensor and one humidity sensor. For example, whenever the temperature sensor described here updates its own time slot, for the first update duration in the future, each time slot occupied by itself needs to avoid the humidity sensor.
[0094] In a specific implementation of the present invention, the sending of the collected data according to the data sending cycle set for the sensor itself as described in step S102 may specifically include:
[0095] According to the data transmission cycle set for the sensor itself, the collected data is encrypted and sent using the first public key configured for the first bogie, so that the communication node on the first bogie only receives data from the sensor on the first bogie.
[0096] This embodiment takes into account that for each sensor on the first bogie, for example, Figure 2The communication node is configured with the first public key for each sensor, so that for any sensor on the first bogie, the sensor can use the first public key to encrypt and send data, which on the one hand ensures the security of data transmission. On the other hand, the first bogie may receive interference signals, such as data received from sensors on other bogies, or data received from sensors of other trains when two trains meet, etc. For these interference signals, since they are not encrypted based on the first public key, the communication node on the first bogie cannot parse these interference signals, that is, the communication node on the first bogie can only effectively parse the data encrypted by the first public key, thereby achieving the purpose of the communication node on the first bogie only receiving data from the sensors on the first bogie.
[0097] In the solution of the present application, it is necessary to avoid conflicts in the occupied time slots between sensors, so it is understandable that time synchronization between sensors needs to be achieved. For example, if sensor A believes that the current time slot is time slot 1, then all other sensors also need to believe that the current time slot is time slot 1. In practical applications, there are many ways to achieve time synchronization. For example, time synchronization can be achieved through mutual communication between sensors. In a specific implementation of the present application, it is considered that the present application is provided with a communication node. Therefore, each sensor on the first bogie can be more conveniently time synchronized through the communication node on the first bogie.
[0098] In addition, it should be pointed out that there can be multiple communication nodes on the first bogie, so in actual applications, one of them can be selected as the main communication node, and the main communication node can be used to perform time synchronization of various sensors on the first bogie.
[0099] In a specific implementation of the present invention, for any sensor on the first bogie, the first update duration of the sensor is set to K times the data transmission period of the sensor, where K is a setting coefficient.
[0100] For any sensor on the first bogie, it is necessary to configure the first update duration of the sensor. A simple implementation method in practical applications is to configure a unified first update duration for each sensor. However, this will cause each sensor to trigger a time slot update at the same time, which may easily lead to conflicts in the occupancy of the updated time slots.
[0101] In this regard, in this implementation, for any sensor on the first bogie, the first update duration of the sensor is set to K times the data transmission period of the sensor, where K is a setting coefficient, for example, typically set to a value of 6 to 8.
[0102] In this implementation, for sensors with different data transmission cycles, the triggering timing of time slot updates can be staggered, and it is not easy for multiple sensors to trigger time slot updates at the same time, and the above-mentioned disadvantage of easily causing conflicts in the occupancy of updated time slots will not occur.
[0103] In a specific embodiment of the present invention, it may also include:
[0104] A trigger probability value P is configured so that when any sensor on the first bogie has passed the first update time length set for itself, there is a probability of P to update its own time slot, and there is a probability of 1-P not to update its own time slot;
[0105] Among them, when any sensor on the first bogie does not update its own time slot, the sensor determines the time slots occupied by the sensor in the future first update period based on the time slots occupied by the sensor itself in the previous first update period and according to the data sending cycle of the sensor.
[0106] In this implementation, it is possible to further avoid the situation where multiple sensors trigger time slot updates at the same time, because for any sensor on the first bogie, in this implementation, the time slot update is not triggered every first update time of the sensor, but a trigger probability value P is set. For example, in one case, P is 70%, that is, for any sensor on the first bogie, every time the sensor has passed the first update time set for itself, there is a 70% probability of updating its own time slot. If it is necessary to update its own time slot, it can be executed according to the description of the above step S104, which will not be repeated here.
[0107] In addition, since there is a probability that the time slot update is not triggered, this implementation is also beneficial to reducing the amount of calculation and saving the computing resources of the sensor.
[0108] In this implementation, there is a 30% probability of not updating its own time slot. For example, in the above example, if sensor A does not update its own time slot, sensor A can determine the time slots occupied by the sensor in the future first update duration based on the time slots occupied by the sensor itself in the previous first update duration and according to the data sending cycle of the sensor. That is, in the above example, the time slots occupied by sensor A in the previous first update duration are time slot 3, time slot 203, time slot 403, time slot 603, and time slot 803, respectively. Therefore, if sensor A does not update its own time slot, it can be determined that in the future first update duration, the time slots occupied by itself are time slot 1003, time slot 1203, time slot 1403, time slot 1603, and time slot 1803, respectively.
[0109] It should also be noted that in some extreme cases, such as when there are too many sensors and they all use small-cycle transmission, when a sensor reselects the time slot for periodic data, that is, when the time slot update is triggered, there may be no idle time slots to choose from. At this time, the sensor can select the time slot with weaker signal strength when other sensors send data as the time slot occupied by the sensor. In actual applications, these time slots with weaker signal strength may be interference, that is, this implementation method can maximize the avoidance of packet loss caused by time slot occupancy.
[0110] In a specific embodiment of the present invention, two communication nodes are arranged on the first bogie. When the two communication nodes are operating normally, for any one sensor on the first bogie, the sensor is connected to a corresponding communication node nearby; when one of the two communication nodes fails, each sensor on the first bogie is connected to a communication node operating normally.
[0111] In the above Figure 2 and Figure 3 In the example, a single communication node is sufficient on the first bogie, which has a low cost. This implementation method takes into account that two communication nodes can be provided on the first bogie. In this way, when the two communication nodes are operating normally, any sensor on the first bogie can be connected to a corresponding communication node nearby, thereby realizing communication with the on-board host, which is beneficial to improving the overall communication efficiency.
[0112] When one of the two communication nodes fails, all sensors on the first bogie can be connected to the normally operating communication node, thus achieving redundancy of the communication nodes and further ensuring the reliability of the communication link.
[0113] Each communication node on the first bogie needs to be connected to the vehicle-mounted host. In practical applications, each communication node on the first bogie can be connected to the vehicle-mounted host through wired communication and / or wireless communication to ensure the flexibility of the present application. In addition, in practical applications, there can be multiple communication technologies between the sensor and the communication node, such as WiFi, ZigBee, LoRa, Bluetooth and other feasible wireless communication technologies.
[0114] In a specific embodiment of the present invention, it may also include:
[0115] When there is alarm information to be uploaded, the alarm information is sent to the communication node, and when sending the alarm information, 1 reserved time slot is occupied;
[0116] The reserved time slot is a pre-set time slot dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the reserved time slot.
[0117] This implementation method takes into account that in addition to the data normally collected by the sensor, the sensor may need to send sudden alarm information, such as alarm information indicating abnormal monitoring data, low sensor power, abnormal sensor operation, etc.
[0118] In this regard, in order to ensure that the alarm information can be effectively fed back to the vehicle-mounted host, in this implementation, a reserved time slot is set. For example, in the above example, among time slots 1 to 10000, time slots 5000 to 5020 are all reserved time slots.
[0119] When a sensor has alarm information to be uploaded, the sensor can send the alarm information to the communication node, and when sending the alarm information, it occupies one reserved time slot, for example, the time slot 5001 in the above example, to send the alarm information.
[0120] In this implementation, in order to ensure that the alarm information can be effectively fed back to the vehicle host, the reserved time slot is a pre-set time slot dedicated to sending the alarm information, that is, the data collected by the sensor is prohibited from using the reserved time slot to effectively ensure system security.
[0121] In a specific embodiment of the present invention, it may also include:
[0122] When there is alarm information to be uploaded, the alarm information is sent to the communication node using a dedicated channel;
[0123] Among them, the dedicated channel is a pre-set channel dedicated to sending alarm information. The data collected by the sensor is prohibited from using the dedicated channel.
[0124] In this implementation, for alarm information, a dedicated channel can be used to send the alarm information to the communication node. The dedicated channel is a pre-set channel dedicated to sending alarm information, that is, the data collected by the sensor is prohibited from using the dedicated channel.
[0125] In practical applications, only the above-mentioned reserved time slot implementation method may be used, or only the dedicated channel implementation method in this implementation method may be used, or both implementation methods may be used at the same time, and the selection may be made according to actual needs.
[0126] Of course, in practical applications, due to the limited channel resources, the above-mentioned reserved time slot implementation method is usually adopted. Only in some cases, when the number of sensors is particularly large and the data transmission cycle is short, making it difficult to reserve enough space for reserved time slots, in order to ensure the normal periodic transmission of collected data, the reserved time slots in the general channel used for collecting data can be canceled, and a dedicated channel implementation method can be set for alarm information.
[0127] By applying the technical solution provided by the embodiment of the present invention, a sensor is arranged on the first bogie, and one or more communication nodes are arranged on the first bogie, so that each sensor on the first bogie can be connected to the vehicle-mounted host through communication based on these communication nodes, that is, effective communication between each sensor on the first bogie and the vehicle-mounted host is achieved. The train vehicle-mounted communication method of the present application can be applied to each sensor on the first bogie of the train. Specifically, taking any one of the sensors as an example, the sensor can collect data, and a data transmission cycle is set for the sensor, so that the sensor will send the collected data according to the data transmission cycle set for the sensor itself, and each time it sends, the transmission duration occupied is 1 time slot. 1 time slot represents a time segment with a fixed duration. In a single time slot, only a single sensor on the first bogie is allowed to send data to the communication node on the first bogie.
[0128] The sensor will monitor the data transmission behavior of the remaining sensors on the first bogie, so as to determine the data transmission cycle of each of the remaining sensors on the first bogie and the time slots occupied each time the data is transmitted. Due to the monitoring, whenever the sensor updates its own time slot after the first update time length set for itself, it can determine the time slots occupied by itself in the future first update time length, and avoid time slot conflicts. That is, the time slots updated to be occupied in the future first update time length will meet the set time slot avoidance principle. The time slot avoidance principle specifically refers to that in the future first update time length, each time the sensor transmits its own data, the time slot occupied does not conflict with the time slot occupied by any other sensor on the first bogie. Due to the non-conflict in the time slots, the solution of the present application can avoid frequent signal interference, transmission conflicts, and data packet loss between sensors.
[0129] In addition, it should be pointed out that in some cases, if a suitable data transmission cycle and a corresponding occupied time slot are set for each sensor, even if the time slot is not updated, under normal circumstances, there will be no conflict between the time slots occupied by two sensors. However, the present application further takes into account that due to the change of the sensor from a normal operating state to a fault state, or from a fault state to a normal operating state, the number of sensors arranged on the first bogie will change. In addition, the sensor may also be interfered by other wireless signals. The existence of these special circumstances makes it possible that if the time slot is not updated, the time slots occupied by two sensors may change from non-conflict to conflict. In this regard, since the scheme of the present application can update the time slots occupied by the sensors, even if some abnormal situations occur, the present application can also eliminate the abnormal situation of conflicting time slots between sensors in a timely manner by updating the time slots occupied by the sensors, thereby further ensuring the communication reliability of the scheme of the present application.
[0130] To sum up, the solution of the present application can effectively realize train on-board communication, that is, the data collected by each sensor can be effectively sent to the on-board host, and the solution of the present application effectively avoids frequent signal interference, transmission conflicts, and data packet loss between sensors, thereby ensuring the reliability of communication.
[0131] Corresponding to the above method embodiment, an embodiment of the present invention further provides a train on-board communication system, which can be referred to in correspondence with the above.
[0132] The train-mounted communication system can be applied to each sensor on the first bogie of the train. Each sensor on the first bogie is connected to the on-board host through one or more communication nodes on the first bogie. Figure 4 , the train onboard communication system includes:
[0133] The acquisition module 401 is used for acquiring data;
[0134] The sending module 402 is used to send the collected data according to the data sending cycle set for the sensor itself, and each time the data is sent, the sending time occupied is 1 time slot;
[0135] The monitoring module 403 is used to monitor the data transmission behavior of the remaining sensors on the first bogie to determine the data transmission cycle of each of the remaining sensors on the first bogie and the time slot occupied by each data transmission;
[0136] The time slot update avoidance module 404 is used to update its own time slots every time after the first update time length set for itself has passed, so as to determine the time slots occupied by itself within the future first update time length, and to meet the set time slot avoidance principle during the update;
[0137] The time slot avoidance principle includes: within the first update time in the future, each time the sensor sends its own data, the time slot occupied by the sensor does not conflict with the time slot occupied by any other sensor on the first bogie;
[0138] One time slot represents a time segment of fixed duration. In a single time slot, only a single sensor on the first bogie is allowed to send data to the communication node on the first bogie.
[0139] In a specific implementation of the present invention, the sending module 402 is specifically used to:
[0140] According to the data transmission cycle set for the sensor itself, the first public key configured for the first bogie is used to encrypt and transmit the collected data, so that the communication node on the first bogie only receives the data from the sensor on the first bogie, and each time the data is transmitted, the transmission time occupied is 1 time slot;
[0141] In a specific implementation of the present invention, each sensor on the first bogie is time-synchronized via a communication node on the first bogie.
[0142] In a specific implementation of the present invention, for any sensor on the first bogie, the data transmission period of the sensor is a value selected from a data transmission period library;
[0143] The data transmission cycle library includes x values, and the smallest value among the x values is a, and the remaining x-1 values are all greater than a and are all integer multiples of a; x is a positive integer not less than 2, and a is an integer.
[0144] In a specific implementation of the present invention, for any sensor on the first bogie, the first update duration of the sensor is set to K times the data transmission period of the sensor, where K is a setting coefficient.
[0145] In a specific embodiment of the present invention, a probability configuration module is also included, which is used to:
[0146] A trigger probability value P is configured so that when any sensor on the first bogie has passed the first update time length set for itself, there is a probability of P to update its own time slot, and there is a probability of 1-P not to update its own time slot;
[0147] Among them, when any sensor on the first bogie does not update its own time slot, the sensor determines the time slots occupied by the sensor in the future first update period based on the time slots occupied by the sensor itself in the previous first update period and according to the data sending cycle of the sensor.
[0148] In a specific embodiment of the present invention, two communication nodes are arranged on the first bogie. When the two communication nodes are operating normally, for any one sensor on the first bogie, the sensor is connected to a corresponding communication node nearby; when one of the two communication nodes fails, each sensor on the first bogie is connected to a communication node operating normally.
[0149] In a specific implementation of the present invention, each communication node on the first bogie is communicatively connected to the vehicle-mounted host via wired communication and / or wireless communication.
[0150] In a specific implementation of the present invention, a first alarm information sending module is further included, which is used to:
[0151] When there is alarm information to be uploaded, the alarm information is sent to the communication node, and when sending the alarm information, 1 reserved time slot is occupied;
[0152] The reserved time slot is a pre-set time slot dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the reserved time slot.
[0153] In a specific implementation of the present invention, a second alarm information sending module is further included, which is used to:
[0154] When there is alarm information to be uploaded, the alarm information is sent to the communication node using a dedicated channel;
[0155] The dedicated channel is a pre-set channel dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the dedicated channel.
[0156] Corresponding to the above method and system embodiments, an embodiment of the present invention further provides a train-mounted communication device and a computer-readable storage medium, which can be referred to in correspondence with the above.
[0157] The train onboard communication equipment may include:
[0158] Memory for storing computer programs;
[0159] A processor is used to execute a computer program to implement the steps of the train on-board communication method in any of the above embodiments.
[0160] The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the train vehicle communication method in any of the above embodiments are implemented. The computer readable storage medium mentioned here includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the technical field.
[0161] It should also be noted that, in this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0162] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0163] The present application uses specific examples to illustrate the principles and implementation methods of the present invention, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A train-mounted communication method, characterized in that: In each sensor applied to the first bogie of the train, each of the sensors on the first bogie is communicatively connected to the on-board host through one or more communication nodes on the first bogie, and the on-board communication method of the train includes: Collect data; The collected data is sent according to the data sending cycle set for the sensor itself, and each time it is sent, the sending time occupied is 1 time slot; By monitoring the data transmission behavior of the remaining sensors on the first bogie, the data transmission cycle of each of the remaining sensors on the first bogie and the time slot occupied by each data transmission are determined; Whenever the first update time length set for itself has passed, the time slot of itself is updated to determine the time slots occupied by itself within the future first update time length, and the set time slot avoidance principle is satisfied during the update; The time slot avoidance principle includes: within the first update time in the future, each time the sensor sends its own data, the time slot occupied by the sensor does not conflict with the time slot occupied by any other sensor on the first bogie; One time slot represents a time segment of fixed duration. In a single time slot, only a single sensor on the first bogie is allowed to send data to the communication node on the first bogie.
2. The train-mounted communication method according to claim 1, characterized in that: The collected data is sent according to the data sending cycle set for the sensor itself, including: According to the data transmission cycle set for the sensor itself, the collected data is encrypted and sent using the first public key configured for the first bogie, so that the communication node on the first bogie only receives data from the sensor on the first bogie.
3. The train-mounted communication method according to claim 1, characterized in that: The sensors on the first bogie are time-synchronized via a communication node on the first bogie.
4. The train-mounted communication method according to claim 1, characterized in that: For any sensor on the first bogie, the data transmission period of the sensor is a value selected from a data transmission period library; The data transmission cycle library includes x values, and the smallest value among the x values is a, and the remaining x-1 values are all greater than a and are integer multiples of a; x is a positive integer not less than 2, and a is an integer.
5. The train-mounted communication method according to claim 1, characterized in that: For any sensor on the first bogie, the first update duration of the sensor is set to K times the data sending period of the sensor, where K is a setting coefficient.
6. The train-mounted communication method according to claim 1, characterized in that: Also includes: A trigger probability value P is configured so that when any sensor on the first bogie has passed a first update time length set for itself, there is a probability of P to update its own time slot, and there is a probability of 1-P not to update its own time slot; Among them, when any sensor on the first bogie does not update its own time slot, the sensor determines the time slots occupied by the sensor in the future first update period based on the time slots occupied by the sensor itself in the previous first update period and according to the data sending cycle of the sensor.
7. The train-mounted communication method according to claim 1, characterized in that: Two communication nodes are arranged on the first bogie. When the two communication nodes are operating normally, any one of the sensors on the first bogie is connected to a corresponding communication node nearby. When one of the two communication nodes fails, each of the sensors on the first bogie is connected to a communication node operating normally.
8. The train-mounted communication method according to claim 1, characterized in that: Each communication node on the first bogie is communicatively connected to the vehicle-mounted host via wired communication and / or wireless communication.
9. The train-mounted communication method according to any one of claims 1 to 8, characterized in that: Also includes: When there is alarm information to be uploaded, the alarm information is sent to the communication node, and when sending the alarm information, one reserved time slot is occupied; The reserved time slot is a pre-set time slot dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the reserved time slot.
10. The train-mounted communication method according to any one of claims 1 to 8, characterized in that: Also includes: When there is alarm information to be uploaded, the alarm information is sent to the communication node using a dedicated channel; The dedicated channel is a pre-set channel dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the dedicated channel.
11. A train-mounted communication system, characterized in that: In each sensor applied to the first bogie of the train, each of the sensors on the first bogie is communicatively connected to the on-board host through one or more communication nodes on the first bogie, and the on-board communication system of the train includes: A collection module is used to collect data; The sending module is used to send the collected data according to the data sending cycle set for the sensor itself, and each time the data is sent, the sending time occupied is 1 time slot; A monitoring module, used for monitoring the data transmission behaviors of the remaining sensors on the first bogie to determine the data transmission cycles of the remaining sensors on the first bogie and the time slots occupied by each data transmission; A time slot update avoidance module, used for updating its own time slots after a first update duration set for itself has passed, so as to determine the time slots occupied by itself within the future first update duration, and satisfying the set time slot avoidance principle during the update; The time slot avoidance principle includes: within the first update time in the future, each time the sensor sends its own data, the time slot occupied by the sensor does not conflict with the time slot occupied by any other sensor on the first bogie; One time slot represents a time segment of fixed duration. In a single time slot, only a single sensor on the first bogie is allowed to send data to the communication node on the first bogie.
12. The train-mounted communication system according to claim 11, characterized in that: It also includes a first alarm information sending module, which is used to: When there is alarm information to be uploaded, the alarm information is sent to the communication node, and when sending the alarm information, one reserved time slot is occupied; The reserved time slot is a pre-set time slot dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the reserved time slot.
13. The train-mounted communication system according to claim 11, characterized in that: It also includes a second alarm information sending module, which is used to: When there is alarm information to be uploaded, the alarm information is sent to the communication node using a dedicated channel; The dedicated channel is a pre-set channel dedicated to sending alarm information, and the data collected by the sensor is prohibited from using the dedicated channel.
14. A train-mounted communication device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the train on-board communication method as described in any one of claims 1 to 10.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the train on-board communication method according to any one of claims 1 to 10 are implemented.