Equipment upgrading method applied to SRB system and related device

By selecting a device in the SRB system to connect to the PC and using the SRB communication mechanism to forward upgrade data messages, the problems of cumbersome and inefficient device upgrade operations in the existing technology are solved, and an efficient and simplified device upgrade process is achieved.

CN120785740APending Publication Date: 2025-10-14北京傲星科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511017220.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-10-14

AI Technical Summary

Technical Problem

In the prior art, upgrading SRB system equipment requires upgrading each device one by one or with the help of external equipment, which is cumbersome and inefficient, and it is impossible to efficiently upgrade multiple devices at the same time.

Method used

By selecting a device in the SRB system to connect to the PC, and using the SRB communication mechanism, the upgrade data message is forwarded to other devices through the non-SRB communication port and the SRB communication port, ensuring that all devices receive the upgrade data and complete the upgrade.

Benefits of technology

This enables simultaneous upgrades of all SRB system devices without the need for external equipment, improving upgrade efficiency and convenience, simplifying the operating process, and increasing upgrade reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120785740A_ABST
    Figure CN120785740A_ABST
Patent Text Reader

Abstract

The invention provides a device upgrading method applied to an SRB system and a related device, and relates to the field of device upgrading. In the application, under the condition that the upgrade data message is received through the non-SRB communication port, the upgrade data message is forwarded to other equipment connected with the target equipment through each SRB communication port, and under the condition that the upgrade data message is received through the SRB communication port, the upgrade data message is forwarded to other equipment connected with the target equipment through each SRB communication port. And forwarding the upgrade data message to other equipment connected with the target equipment through the target communication port. The target communication ports are other ports except the port for receiving the upgrade data message in the SRB communication ports configured by the equipment. Through the forwarding mode of the upgrade data message, only the upgrade data message needs to be sent to one device in the SRB system, each device in the SRB system can receive the upgrade data message through the communication mode, the upgrade operation is completed, and the device upgrade efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of device upgrading, and more particularly, to a device upgrading method applied to an SRB system and a related device. BACKGROUND

[0002] For the devices in the SRB (Security Real-time Bus) system, in order to ensure the consistency of operation, all the devices in the SRB system need to have the same software version.

[0003] If there is a program error BUG or a function update requirement in the software configured in the device, all the devices in the SRB system need to be upgraded, and then how to perform the device upgrading is a technical problem to be solved by the person skilled in the art. SUMMARY

[0004] Therefore, the present application provides a device upgrading method applied to an SRB system and a related device to solve the problem that all the devices in the SRB system need to be upgraded.

[0005] To solve the above technical problem, the present application adopts the following technical solution:

[0006] A device upgrading method applied to an SRB system is applied to a target device in the SRB system, and the target device is any device in the SRB system. The device upgrading method applied to the SRB system comprises the following steps.

[0007] Obtaining an upgrade data packet;

[0008] In a case that the upgrade data packet is received through a non-SRB communication port, forwarding the upgrade data packet to other devices connected with the target device through each SRB communication port;

[0009] In a case that the upgrade data packet is received through an SRB communication port, forwarding the upgrade data packet to other devices connected with the target device through a target communication port; the target communication port is other than the port receiving the upgrade data packet among the SRB communication ports configured for the device;

[0010] Performing an upgrade operation based on the upgrade data packet.

[0011] Optionally, after obtaining the upgrade data packet, the method further comprises the following steps.

[0012] If it is determined that the same multiple upgrade data packets are received, discarding other upgrade data packets after the first upgrade data packet among the same multiple upgrade data packets.

[0013] Optionally, after obtaining the upgrade data message, the method further includes:

[0014] If it is determined that the upgrade data message has been forwarded by the target device, the upgrade data message is discarded.

[0015] Optionally, after obtaining the upgrade data message, the method further includes:

[0016] The upgrade data messages are stored according to the order in which the upgrade data messages are received.

[0017] Optionally, forwarding the upgrade data message to other devices connected to the target device through each SRB communication port includes:

[0018] Determine a message sending time period of the target device;

[0019] During the message sending time period, the upgrade data message is forwarded to other devices connected to the target device through each SRB communication port.

[0020] Optionally, performing an upgrade operation based on the upgrade data message includes:

[0021] When it is determined that the upgrade data message is the last upgrade data message, obtaining data to be upgraded based on all received upgrade data messages;

[0022] An upgrade operation is performed using the data to be upgraded.

[0023] A device upgrade apparatus applied to an SRB system, applied to a target device in the SRB system, wherein the target device is any device in the SRB system; the device upgrade apparatus applied to the SRB system comprises:

[0024] A message acquisition module is used to obtain upgrade data messages;

[0025] A first forwarding module is configured to forward the upgrade data message to other devices connected to the target device through each SRB communication port when the upgrade data message is received through a non-SRB communication port;

[0026] A second forwarding module is configured to forward the upgrade data message to other devices connected to the target device through a target communication port when the upgrade data message is received through an SRB communication port; the target communication port is another port in the SRB communication port configured for the device except the port for receiving the upgrade data message;

[0027] An upgrade control module is used to perform an upgrade operation based on the upgrade data message.

[0028] Optionally, the first forwarding module is specifically configured to:

[0029] A message sending time period of the target device is determined, and within the message sending time period, the upgrade data message is forwarded to other devices connected to the target device through each SRB communication port.

[0030] An electronic device comprising at least one processor and a memory connected to the processor, wherein:

[0031] The memory is used to store computer programs;

[0032] The processor is configured to execute the computer program so that the electronic device can implement the above-mentioned device upgrade method applied to the SRB system.

[0033] A computer storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the above-mentioned device upgrade method applied to the SRB system.

[0034] The present application provides a device upgrade method and related apparatus applied to an SRB system. In the present application, an upgrade data message is obtained. When the upgrade data message is received through a non-SRB communication port, the upgrade data message is forwarded to other devices connected to the target device through each SRB communication port. When the upgrade data message is received through an SRB communication port, the upgrade data message is forwarded to other devices connected to the target device through a target communication port. The target communication port is an SRB communication port configured for the device other than the port for receiving the upgrade data message. Through this forwarding method of the upgrade data message, the present invention only needs to send the upgrade data message to one of the devices in the SRB system, and each device in the SRB system can receive the upgrade data message through the above-mentioned communication method, complete the upgrade operation, and improve the efficiency of the device upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without any creative work.

[0036] Figure 1 A schematic diagram of a device upgrade method applied to an SRB system provided in the related art;

[0037] Figure 2 A schematic diagram of another device upgrade method applied to an SRB system provided in the related art;

[0038] Figure 3 A schematic structural diagram of an SRB system provided in an embodiment of the present invention;

[0039] Figure 4 A schematic diagram of a device upgrade method applied to an SRB system provided by an embodiment of the present invention;

[0040] Figure 5 A method flow chart of a device upgrade method applied to an SRB system provided by an embodiment of the present invention;

[0041] Figure 6 A schematic diagram of a time period of an SRB system provided by an embodiment of the present invention;

[0042] Figure 7 A schematic diagram of a time slice of an SRB system provided in an embodiment of the present invention;

[0043] Figure 8 A flow chart of a method for upgrading an SRB system provided by an embodiment of the present invention;

[0044] Figure 9 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0046] For devices in an SRB system (a system consisting of multiple SRB devices working together to complete a certain function), all devices in the SRB system must have the same software version to ensure consistent operation.

[0047] If the software configured in the device has a program error BUG or the function needs to be updated, all devices in the SRB system need to be upgraded. Then how to upgrade the devices is a technical problem that those skilled in the art urgently need to solve.

[0048] In the related art, software to be upgraded can be placed on a PC (Personal Computer) and then upgraded to the device by means of an upgrade tool software such as TFTP (Trivial File Transfer Protocol).

[0049] One of the upgrade methods is to upgrade the devices in the SRB system one by one.

[0050] As shown in the figure, since the PC generally has only one network port, the port is first used to connect the PC and the device 1, and then the device 1 is upgraded. Figure 1 Then the connection between the PC and the device 1 is disconnected, the PC and the device 2 are connected, the device 2 is upgraded, and the above process is repeated until all the devices are upgraded.

[0051] The disadvantage of this upgrade method is that it cannot upgrade multiple devices at the same time, and each device needs to be upgraded one by one, and the network cable needs to be plugged and unplugged frequently, which is inconvenient to operate and takes a long time to upgrade.

[0052] The other upgrade method is to upgrade all the devices at one time.

[0053] As shown in the figure, the PC can be connected to multiple devices at the same time by means of a switch, and then each device is upgraded. Figure 2 Specifically, the PC and the devices 1, 2, … are connected by means of the switch, and then the devices are upgraded. This method can upgrade multiple devices at the same time, but it needs to use an external device such as a switch, and the upgrade data needs to be sent to each device for upgrade operation. When the number of devices to be upgraded is large, the upgrade data needs to be sent multiple times, and the upgrade process is complicated.

[0054] As can be seen from the above, when upgrading all the devices in the SRB system, either the devices are upgraded one by one, which is inconvenient to operate and takes a long time to upgrade, or an external device is needed and the operation is complicated, and sometimes there is no external device to use, which is inconvenient to upgrade.

[0055] Therefore, in the embodiments of the present application, in order to simplify the upgrade process, only the upgrade data packet needs to be sent to one of the devices in the SRB system, and then the communication mechanism of the SRB system is used to make each device in the SRB system receive the upgrade data packet and complete the upgrade operation, thereby improving the efficiency of device upgrade. Through the present application, all the devices in the system can be upgraded at the same time, and an external device is not needed, which is simple to operate and has high upgrade efficiency.

[0056] Based on the above content, an embodiment of the present invention provides a device upgrade method applied to an SRB system, which is applied to a target device in the SRB system. The target device is any device in the SRB system.

[0057] There is no limit on the number of devices and the connection method in the SRB system. Figure 3 As shown, the SRB system includes four devices, namely device 1, device 2, device 3, and device 4. The four devices are connected in a ring. In addition, the four devices can also adopt other topologies, such as linear topology or star topology.

[0058] For the four devices in the SRB system, one of them needs to be connected to the PC to receive the upgrade data message sent by the PC.

[0059] In actual scenarios, the specific device selected for connection to the PC can be determined based on the actual configuration. For example, a device can be randomly selected, the device with the highest or lowest serial number can be selected, or the device with the lowest operational burden can be connected to the PC. The device connected to the PC connects to the PC through its own Ethernet port. The SRB communication port of this device, such as the SRB service port, is connected to other devices in the SRB system. The SRB communication ports of other devices are also connected to the SRB communication ports of the corresponding device.

[0060] For example, for each device in the SRB system, two SRB communication ports are configured for it, namely port A and port B. Figure 4 As shown, if device 2 is connected to a PC, the Ethernet port of device 2 is connected to the PC, port A of device 2 is connected to port B of device 1, and port B of device 2 is connected to port A of device 3. The connection structure of the remaining ports is as follows. Figure 4 shown.

[0061] Based on the above connection structure, refer to Figure 5 A device upgrade method applied to an SRB system may include:

[0062] S11. Obtain upgrade data message.

[0063] In this embodiment, when upgrading all devices in an SRB system, the software to be upgraded must first be determined. The corresponding upgrade file must then be placed on a PC. The PC then triggers the upgrade process to upgrade the SRB system. Because upgrade files are typically large, the upgrade process can be split into multiple upgrade data packets, such as upgrade data packet 1, upgrade data packet 2, ..., and upgrade data packet 1000. Each upgrade data packet is then transmitted to each device in the SRB system to be upgraded.

[0064] Specifically, when transmitting the upgrade data message, the target device can receive the upgrade data message sent by the PC or other devices in the SRB system.

[0065] In a practical scenario, taking the target device as device 2, device 2 can receive an upgrade data message sent by the PC, such as receiving upgrade data message 1. In one implementation of the present application, in order for device 2 to subsequently use the upgrade data message to perform an upgrade operation, the upgrade data messages can be stored in the order in which they were received. If the currently received upgrade data message is upgrade data message 1, it is directly stored in the database. If the currently received upgrade data message is upgrade data message 2, it is stored in the database after the received upgrade data message 1.

[0066] In addition, based on the characteristics of the SRB bus (forwarding as long as the source of the message is not itself), device 2 can also receive the upgrade data message transmitted by device 1 and device 3.

[0067] If the target device is a device other than device 2, such as device 1, then according to the communication relationship between devices in the SRB system and the characteristics of the SRB bus, device 1 can receive the upgrade data message transmitted by device 2 and device 4.

[0068] S12. Determine whether the upgrade data message is received through a non-SRB communication port; if so, execute step S13; if not, execute step S14.

[0069] Specifically, the non-SRB communication port refers to a port other than the SRB communication port, and in this embodiment, refers to an Ethernet port connected to a PC.

[0070] If the upgrade data message is received through a non-SRB communication port, the target device is device 2 connected to the PC. If the upgrade data message is received through an SRB communication port, the target device is any device in the SRB system, which can be device 2 connected to the PC or devices 1, 3, and 4 not connected to the PC.

[0071] S13: Forward the upgrade data message to other devices connected to the target device through each SRB communication port.

[0072] Specifically, when the upgrade data message is received through a non-SRB communication port, it means that the target device at this time is device 2 connected to the PC, and the upgrade data message is the upgrade data message transmitted by the PC to device 2 through the Ethernet port, such as the PC transmits upgrade data message 1 to device 2 through the Ethernet port.

[0073] At this time, refer to Figure 4 Since Device 2 is the first device in the SRB system to receive Update Data Message 1, it needs to forward Update Data Message 1 to other devices in the SRB system. Since Port A of Device 2 is connected to Port B of Device 1, and Port B of Device 2 is connected to Port A of Device 3, Port A can be used to transmit Update Data Message 1 to Port B of Device 1, allowing Device 1 to receive Update Data Message 1 and perform the corresponding storage operation. Furthermore, Port B will also be used to transmit Update Data Message 1 to Port A of Device 3, allowing Device 3 to receive Update Data Message 1 and perform the corresponding storage operation.

[0074] After successfully sending upgrade data packet 1 to device 2, the PC can continue to transmit upgrade data packet 2 to device 2. After successfully sending upgrade data packet 2 to device 2, the PC can continue to transmit upgrade data packet 3 to device 2... until the upgrade data packet 1000 is successfully sent to device 2.

[0075] S14: Forward the upgrade data message to other devices connected to the target device through the target communication port.

[0076] The target communication port is another port among the SRB communication ports configured for the device except the port for receiving the upgrade data message.

[0077] Specifically, when the upgrade data message is not received through a non-SRB communication port, it means that the upgrade data message is received through an SRB communication port. In this case, the target device is any device in the SRB system, which can be device 2 connected to the PC, or devices 1, 3, and 4 not connected to the PC. However, the upgrade data message must be received through an SRB communication port.

[0078] For example, if the target device is device 1, according to the above example, port B of device 1 can receive upgrade data message 1 sent by port A of device 2. Port B of device 1 is an SRB communication port, which meets the requirement that the upgrade data message is received through the SRB communication port.

[0079] Since port A of device 1 is connected to port B of device 4, and port B of device 1 is connected to port A of device 2, and since device 2 already has upgrade data packet 1, device 1 no longer needs to send upgrade data packet 1 to device 2. Therefore, device 1 can use a port other than the port that receives the upgrade data packet, that is, port A, to send upgrade data packet 1 to port B of device 4. Port 4 receives the upgrade data packet 1 and stores it locally.

[0080] S15. Perform an upgrade operation based on the upgrade data message.

[0081] In this embodiment, the upgrade operation can be performed after all upgrade data messages sent by the PC are completely received.

[0082] In one implementation, if the upgrade data message is the last upgrade data message sent by the PC, that is, when it is determined that the upgrade data message is the last upgrade data message, the data to be upgraded is obtained based on all received upgrade data messages.

[0083] Specifically, all upgrade data messages can be parsed to obtain message content, and based on the message content, the data to be upgraded, such as the aforementioned files to be upgraded, can be combined to perform the upgrade operation. During the upgrade, the local files to be upgraded can be deleted and the newly received files to be upgraded can be stored locally to complete the upgrade operation.

[0084] In this embodiment, an upgrade data message is obtained. When the upgrade data message is received through a non-SRB communication port, the upgrade data message is forwarded to other devices connected to the target device through each SRB communication port. When the upgrade data message is received through an SRB communication port, the upgrade data message is forwarded to other devices connected to the target device through a target communication port. The target communication port is an SRB communication port configured for the device other than the port for receiving the upgrade data message. Through this method of forwarding the upgrade data message, the present invention only needs to send the upgrade data message to one of the devices in the SRB system, and each device in the SRB system can receive the upgrade data message through the above-mentioned communication method, complete the upgrade operation, and improve the efficiency of device upgrades.

[0085] In another implementation of this application, Figure 4Taking the upgrade data packet as an example, let's describe the entire upgrade data packet transmission process. After receiving the upgrade data packet, device 2 obtains and saves a copy, then forwards it through the SRB ports (Port A and Port B). After receiving the upgrade data packet, devices 1 and 3 also obtain and save a copy. Then, leveraging the characteristics of the SRB bus (forwarding the packet as long as it is not from their own source), they forward it through another port (Device 1 forwards it through Port A, and Device 3 forwards it through Port B).

[0086] Since both devices 1 and 3 forwarded the upgrade data message to device 4, device 4 now receives two identical upgrade data messages. To avoid duplicate message processing, in one implementation of the present application, if it is determined that multiple identical upgrade data messages have been received, the other upgrade data messages that follow the first of the multiple identical upgrade data messages are discarded.

[0087] Specifically, if the target device is device 4, after receiving the same upgrade data message sent by devices 1 and 3, the SRB bus feature (same message filtering mechanism) is used to retain the upgrade data message received earlier and discard the upgrade data message received later.

[0088] After receiving the upgrade data message, device 4 forwards it to device 1 via port B, which then forwards it to device 3 via port A. Device 1 then forwards it to device 2 via port B. Similarly, device 3 forwards it to device 2 via port A, and device 2 receives the same upgrade data message again. Based on the identical message filtering mechanism, only the upgrade data message received earlier is retained. At this point, since device 2 has already forwarded the message, continuing to forward the message will result in duplicate forwarding of the message. Therefore, in one implementation of the present application, if it is determined that the upgrade data message has already been forwarded by the target device, the upgrade data message is discarded.

[0089] Specifically, if device 2 determines that the upgrade data message has been forwarded to device 1 and device 3, device 2 directly discards the upgrade data message, and forwarding of the upgrade data message ends.

[0090] For the next upgrade data message, the above process is repeated until all messages are received (messages 1-1000 to be upgraded are received), forming a complete file to be upgraded. The device then automatically replaces the latest file to complete the upgrade.

[0091] Through the above steps, as long as any device in the SRB system is connected to at least one other device, the PC only needs to send the upgrade message once. Through the above forwarding operation, all devices in the SRB system (device 2, device 1, device 3, and device 4) can receive the sent message, improving the efficiency and convenience of the upgrade and simplifying the upgrade process, making it simple, convenient, and efficient for all devices in the SRB system to upgrade. In addition, during the upgrade process, devices 1, 3, and 4 receive two copies of the same message. This redundant message forwarding avoids the problem of failed message reception due to a communication anomaly, which could lead to an upgrade failure, thereby improving upgrade reliability.

[0092] It should be noted that for the same topology structure, such as a linear topology and a star topology, the device upgrade method applied to the SRB system in the embodiment of the present invention can still be adopted.

[0093] In another implementation of the present application, for an SRB system, to avoid conflicts caused by centralized message transmission, devices within the SRB system have different message transmission times. Therefore, in this embodiment, when forwarding the upgrade data message to other devices connected to the target device via each SRB communication port, a message transmission time period for the target device may be determined, and the upgrade data message may be forwarded to the other devices connected to the target device via each SRB communication port during the message transmission time period.

[0094] Specifically, SRB is based on Ethernet technology and is modified for communication determinism and real-time performance. Its principle is as follows: Figure 6 As shown:

[0095] First, divide the communication time into several consecutive equal-length time segments, called macrocycles. Each macrocycle is divided into two parts: cycle time and aperiodic time. Cycle time is used to send periodic data, while aperiodic time is used to send non-periodic data, such as emergency data.

[0096] Furthermore, the cycle time is divided into a corresponding number of time slices based on the number of devices in the SRB system, with each device assigned a time slice. Depending on the amount of data a device needs to send, the time slice length can be set to different values ​​for each device. The larger the amount of data sent, the longer the time slice allocated.

[0097] like Figure 7 As shown, the SRB scheduling principle is as follows:

[0098] Suppose there are four devices in the SRB system, namely device 1, 2, 3, and 4. The cycle time is divided into four time slices. The lengths of the four time slices can be different but cannot overlap. They are allocated to the four devices. For example, if Tm is the start time of the macro cycle, the time slice lengths of device 1, device 2, device 3, and device 4 are t1, t2, t3, and t4 respectively. Then the start time of device 1's time slice can be configured as Tm, the start time of device 2's time slice can be set to Tm+t1, the start time of device 3's time slice can be set to Tm+t1+t2, and the start time of device 4's time slice can be set to Tm+t1+t2+t3.

[0099] When the sending start time of device 1 arrives, if device 1 has periodic data to send, it can send the periodic data. If it does not send it in its own time slice, it must wait until its own time slice of the next macro cycle to send it. If it has non-periodic data to send, it sends a non-periodic data declaration message. Devices 2, 3 and 4 follow the same rule: each device can only send periodic data in its own sending time slice.

[0100] During the non-periodic time period, based on the priorities in the non-periodic data declaration messages sent by devices 1, 2, 3, and 4, the device with a higher priority preferentially uses the non-periodic time to send data, for example, to send urgent data.

[0101] Therefore, in this embodiment, when sending the upgrade data message, the target device can send the corresponding upgrade data message within the corresponding time slice, or send the corresponding upgrade data message within the non-periodic time and within the time period corresponding to the assigned priority order.

[0102] In actual scenarios, a device may need to send two upgrade data packets simultaneously. If these two upgrade data packets need to be output from the same port, for example, for device 1, two upgrade data packets need to be output from port A, then one upgrade data packet can be sent in one macrocycle and the next upgrade data packet can be sent in the next macrocycle. In addition, if these two upgrade data packets need to be output from different ports, each port can send data according to its corresponding time slice.

[0103] In this embodiment, different devices send data within corresponding time slices, which can avoid message conflicts caused by centralized data transmission.

[0104] Based on the embodiment of the device upgrade method described above, another embodiment of the present application provides a device upgrade apparatus applied to an SRB system, which is applied to a target device in the SRB system, wherein the target device is any device in the SRB system. Figure 8, the equipment upgrade device applied to the SRB system includes:

[0105] The message acquisition module 11 is used to obtain the upgrade data message;

[0106] A first forwarding module 12 is configured to forward the upgrade data message to other devices connected to the target device through each SRB communication port when the upgrade data message is received through a non-SRB communication port;

[0107] A second forwarding module 13 is configured to forward the upgrade data message to other devices connected to the target device through a target communication port when the upgrade data message is received through an SRB communication port; the target communication port is another port among the SRB communication ports configured for the device except the port for receiving the upgrade data message;

[0108] The upgrade control module 14 is configured to perform an upgrade operation based on the upgrade data message.

[0109] In one implementation, the method further includes:

[0110] The first processing module is configured to discard other upgrade data messages located after the first upgrade data message among the same multiple upgrade data messages if it is determined that the same multiple upgrade data messages are received.

[0111] In one implementation, the method further includes:

[0112] The second processing module is configured to discard the upgrade data message if it is determined that the upgrade data message has been forwarded by the target device.

[0113] In one implementation, the method further includes:

[0114] The storage module is used to store the upgrade data messages according to the order in which the upgrade data messages are received.

[0115] In one implementation, the first forwarding module is specifically configured to:

[0116] A message sending time period of the target device is determined, and within the message sending time period, the upgrade data message is forwarded to other devices connected to the target device through each SRB communication port.

[0117] In one implementation, the upgrade control module 14 is specifically configured to:

[0118] In the case that it is determined that the upgrade data message is the last upgrade data message, data to be upgraded is obtained based on all received upgrade data messages, and an upgrade operation is performed using the data to be upgraded.

[0119] In this embodiment, an upgrade data message is obtained. When the upgrade data message is received through a non-SRB communication port, the upgrade data message is forwarded to other devices connected to the target device through each SRB communication port. When the upgrade data message is received through an SRB communication port, the upgrade data message is forwarded to other devices connected to the target device through a target communication port. The target communication port is an SRB communication port configured for the device other than the port for receiving the upgrade data message. Through this method of forwarding the upgrade data message, the present invention only needs to send the upgrade data message to one of the devices in the SRB system, and each device in the SRB system can receive the upgrade data message through the above-mentioned communication method, complete the upgrade operation, and improve the efficiency of device upgrades.

[0120] It should be noted that, for the working process of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiment, which will not be repeated here.

[0121] An embodiment of the present application further provides an electronic device, including at least one processor and a memory connected to the processor, wherein:

[0122] The memory is used to store computer programs;

[0123] The processor is configured to execute the computer program so that the electronic device can implement the above-mentioned device upgrade method applied to the SRB system.

[0124] refer to Figure 9 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include, but is not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 9 The electronic device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0125] like Figure 9 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 602 or programs loaded from a storage device 608 into a random access memory (RAM) 603. When the electronic device is powered on, the RAM 603 also stores various programs and data required for the operation of the electronic device. The processing device 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0126] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Figure 9 The electronic device is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0127] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any device upgrade method applied to an SRB system provided in the embodiment of the present application.

[0128] An embodiment of the present application also provides a computer-readable storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any device upgrade method applied to an SRB system provided in the embodiment of the present application.

[0129] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A device upgrade method applied to an SRB system, characterized in that: A target device applied to a secure real-time bus (SRB) system, wherein the target device is any device in the SRB system; The device upgrade method applied to the SRB system includes: Get the upgrade data message; When the upgrade data message is received through a non-SRB communication port, forwarding the upgrade data message to other devices connected to the target device through each SRB communication port; When the upgrade data message is received through the SRB communication port, forwarding the upgrade data message to other devices connected to the target device through the target communication port; the target communication port is another port in the SRB communication port configured for the device except the port for receiving the upgrade data message; An upgrade operation is performed based on the upgrade data message.

2. The device upgrade method applied to the SRB system according to claim 1, characterized in that: After obtaining the upgrade data packet, it also includes: If it is determined that multiple identical upgrade data messages are received, other upgrade data messages located after the first upgrade data message among the multiple identical upgrade data messages are discarded.

3. The device upgrade method applied to the SRB system according to claim 1, characterized in that: After obtaining the upgrade data packet, it also includes: If it is determined that the upgrade data message has been forwarded by the target device, the upgrade data message is discarded.

4. The device upgrade method applied to the SRB system according to claim 1, characterized in that: After obtaining the upgrade data packet, it also includes: The upgrade data messages are stored according to the order in which the upgrade data messages are received.

5. The device upgrade method applied to the SRB system according to claim 1, characterized in that: Forwarding the upgrade data message to other devices connected to the target device through each SRB communication port, including: Determine a message sending time period of the target device; During the message sending time period, the upgrade data message is forwarded to other devices connected to the target device through each SRB communication port.

6. The device upgrade method applied to the SRB system according to claim 1, characterized in that: Performing an upgrade operation based on the upgrade data message includes: When it is determined that the upgrade data message is the last upgrade data message, obtaining data to be upgraded based on all received upgrade data messages; An upgrade operation is performed using the data to be upgraded.

7. An equipment upgrade device applied to an SRB system, characterized in that: A target device applied to an SRB system, wherein the target device is any device in the SRB system; the device upgrading apparatus applied to the SRB system comprises: A message acquisition module is used to obtain upgrade data messages; A first forwarding module is configured to forward the upgrade data message to other devices connected to the target device through each SRB communication port when the upgrade data message is received through a non-SRB communication port; A second forwarding module is configured to forward the upgrade data message to other devices connected to the target device through a target communication port when the upgrade data message is received through an SRB communication port; the target communication port is another port in the SRB communication port configured for the device except the port for receiving the upgrade data message; An upgrade control module is used to perform an upgrade operation based on the upgrade data message.

8. The device upgrade apparatus for SRB system according to claim 7, characterized in that: The first forwarding module is specifically configured to: A message sending time period of the target device is determined, and within the message sending time period, the upgrade data message is forwarded to other devices connected to the target device through each SRB communication port.

9. An electronic device, characterized in that: comprising at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is configured to execute the computer program so that the electronic device can implement the device upgrade method applied to the SRB system according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the device upgrade method applied to the SRB system as described in any one of claims 1 to 7.