Data transmission method, device and storage medium
By establishing a soft bus channel between the central control device and the terminal device, and polling to send tasks and receive responses, the problem of low reliability and efficiency of control command transmission in the Internet of Things framework is solved, and the reliability and efficiency of task transmission are improved.
Patent Information
- Application Number
- CN202310319725.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2043-03-22
AI Technical Summary
The reliability and efficiency of control command transmission in the existing IoT framework are low, and additional costs are incurred.
The central control device establishes a soft bus channel with multiple terminal devices, obtains the task to be executed, and sends the task to each terminal device in a polling manner according to the preset device routing information, and receives data transmission responses. When it receives feedback from any terminal device that the task has been received, it determines that the task has been successfully transmitted and stops sending.
It improves the reliability and efficiency of control command transmission and reduces additional costs.
Smart Images

Figure CN116527440B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a data transmission method, device and storage medium. BACKGROUND
[0002] In the existing Internet of Things framework, in order to improve the reliability of the terminal device executing tasks, the terminal device needs to be monitored. When it is found that the terminal device stops serving, other terminal devices in normal operation need to be monitored and determined to obtain the target terminal device, and the control instruction transmission path is modified and the control instruction is sent to the terminal device in normal operation, so that the terminal device executes the control instruction. For example, when it is monitored that the terminal device A executing the control instruction stops serving, the terminal device B in normal operation is monitored, the control instruction transmission path is modified, and the task to be executed is sent to the terminal device B, so that the terminal device B receives and executes the task to be executed. This control instruction transmission method has low reliability and low efficiency, and additional costs are increased.
[0003] Therefore, how to improve the reliability and efficiency of control instruction transmission is a problem to be solved at present. SUMMARY
[0004] The main purpose of the present application is to provide a data transmission method, device and storage medium, which aims to improve the reliability and efficiency of control instruction transmission.
[0005] In a first aspect, the present application provides a data transmission method applied to a central control device, wherein the central control device has established a soft bus channel with a plurality of terminal devices, and the data transmission method comprises the following steps:
[0006] Obtaining a task to be executed;
[0007] According to the preset device routing information and the soft bus channel, the task to be executed is sent to each terminal device in turn, and after sending the task to be executed to each terminal device, a data transmission response feedback by the terminal device is received;
[0008] When the data transmission response feedback by any terminal device is that the task to be executed has been received, it is determined that the task to be executed has been successfully transmitted and the sending of the task to be executed is stopped.
[0009] In a second aspect, the present application further provides a central control device, which comprises a processor, a memory and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the data transmission method described above are realized.
[0010] Thirdly, this application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the data transmission method described above.
[0011] This application provides a data transmission method, device, and storage medium. The method involves acquiring a task to be executed; sending the task to each terminal device in a polling manner according to preset device routing information and a soft bus channel; and receiving a data transmission response from each terminal device after sending the task. When a data transmission response from any terminal device confirms receipt of the task, the method determines that the task has been successfully transmitted and stops polling. This solution significantly improves the reliability and efficiency of task transmission by polling the terminals and determining successful transmission upon receiving feedback from a terminal device that the task has been received. Attached Figure Description
[0012] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 A flowchart illustrating a data transmission method provided in an embodiment of this application;
[0014] Figure 2 A schematic diagram of a scenario for implementing the data transmission method provided in this embodiment;
[0015] Figure 3 for Figure 1 A flowchart illustrating the sub-steps of the data transmission method in the document;
[0016] Figure 4 Another scenario diagram illustrating the implementation of the data transmission method provided in this embodiment;
[0017] Figure 5 This is a schematic block diagram of a central control device provided in an embodiment of this application.
[0018] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0021] This application provides a data transmission method, device, and storage medium. The data transmission method can be applied to a central control device, which can be an electronic device such as a router, switch, mobile phone, tablet computer, laptop computer, or desktop computer. For example, the central control device is a router. The router has established a soft bus channel with multiple terminal devices. The router obtains tasks to be executed; it sends the tasks to be executed to each terminal device in a polling manner according to preset device routing information and the soft bus channel; and after sending the tasks to each terminal device, it receives a data transmission response from that terminal device. When it receives a data transmission response from any terminal device indicating that the tasks to be executed have been received, it determines that the tasks to be executed have been successfully transmitted and stops polling to send more tasks.
[0022] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0023] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a data transmission method provided in an embodiment of this application.
[0024] like Figure 1 As shown, the data transmission method includes steps S101 to S103.
[0025] Step S101: Obtain the task to be executed.
[0026] The central control device and the plurality of terminal devices establish a soft bus channel, the terminal devices can be selected according to actual conditions, and embodiments of the present application do not make specific limitations thereon, for example, the terminal devices can be mobile phones, computers, switches, desktop computers, notebook computers and the like, and it should be noted that the plurality of terminal devices are hot standby devices, the plurality of terminal devices can execute the to-be-executed task, and the plurality of terminal devices can be the same plurality of devices or a plurality of different devices, for example, the plurality of terminal devices include four mobile phones, and for another example, the plurality of terminal devices include one mobile phone, two desktop computers and two notebook computers.
[0027] It should be noted that the to-be-executed task is a task that can be executed by each terminal device, and the to-be-executed task can be set according to actual conditions, and embodiments of the present application do not make specific limitations thereon, for example, the to-be-executed task can be a device A start instruction.
[0028] In an embodiment, the to-be-executed task sent by an upstream device is acquired. The upstream device is a device that sends the to-be-executed task, and the device can be selected according to actual conditions, and embodiments of the present application do not make specific limitations thereon, for example, the upstream device can be a server (a cloud server, a rack server, a blade server, a tower server and a cabinet server and the like), a gateway device (a base station and a router and the like) and a terminal device (a mobile phone, a notebook computer, a desktop computer and a tablet computer and the like). The to-be-executed task can be accurately acquired by receiving information transmitted by the upstream device.
[0029] In an embodiment, an authentication request for establishing a soft bus channel is sent to each terminal device, so that each terminal device receives the authentication request and performs identity authentication according to the authentication request, and a terminal device that feeds back that the identity authentication is passed establishes a soft bus channel with the central control device. The identity authentication of each terminal device can improve the security of task transmission.
[0030] In an embodiment, the central control device listens to the terminal device, and after listening to the terminal device, sends an authentication request to the terminal device. After the terminal device receives the authentication request, it is determined whether the authentication request is located in a preset identity library. When the identity information is located in the preset identity library, the central control device is fed back that the identity authentication is passed, and when the identity information is not located in the preset identity library, the central control device is fed back that the identity authentication is not passed. The identity information can be set according to actual conditions, and embodiments of the present application do not make specific limitations thereon, for example, the identity information can be a device ID and account information and the like. According to whether the identity information is located in the preset identity library, it can be accurately known whether the identity authentication is passed, greatly improving the efficiency and accuracy of the establishment of the soft bus channel.
[0031] For example, the authentication request is sent to the terminal device 1, the terminal device 2, the terminal device 3, the terminal device 4 and the terminal device 5, and the identity authentication pass information fed back by the terminal device 1, the terminal device 3 and the terminal device 5 is received, and the soft bus channel is established with the terminal device 1, the terminal device 3 and the terminal device 5.
[0032] In an embodiment, the authentication request for establishing the soft bus channel sent by each terminal device is acquired, identity authentication is performed on the authentication request sent by each terminal device, and the soft bus channel is established with the terminal device corresponding to the identity authentication pass of the authentication request. By performing identity authentication on each terminal device, the security of task transmission can be improved.
[0033] In an embodiment, the identity authentication on the authentication request sent by each terminal device can be performed in the following manner: whether the identity information of the terminal device is located in a preset identity library is determined, if the identity information of the terminal device is located in the preset identity library, it is determined that the identity authentication of the terminal device is passed, and the soft bus channel is established with the terminal device. The identity information can be set according to actual conditions, which is not limited in the embodiment of the present application. For example, the identity information can be a device ID and account information. According to whether the identity information is located in the preset identity library, it can be accurately known whether the identity authentication is passed, and the efficiency and accuracy of the establishment of the soft bus channel are greatly improved.
[0034] For example, the identity information A sent by the terminal device 1, the identity information B sent by the terminal device 2, the identity information C sent by the terminal device 3, the identity information D sent by the terminal device 4 and the identity information E sent by the terminal device 5 are received, and the identity information B of the terminal device 2, the identity information D of the terminal device 4 and the identity information E of the terminal device 5 are located in the preset identity library, and the soft bus channel is established with the terminal device 2, the terminal device 4 and the terminal device 5.
[0035] In an embodiment, the message routing information interface and the sending byte extension interface are set, the message routing information interface is used for data interaction with the device sending the to-be-executed task, and the sending byte extension interface is used for data interaction with each terminal device through the soft bus channel. The selection of the message routing information interface and the sending byte extension interface can be set according to actual conditions, which is not limited in the embodiment of the present application. For example, the message routing information interface can be a setMessageRouteinfo interface, and the sending byte extension interface can be a SendBytesExt interface.
[0036] For example, as shown in FIG. 6, the message routing information interface and the sending byte extension interface are set, the message routing information interface is used for data interaction with the device sending the to-be-executed task, and the sending byte extension interface is used for data interaction with each terminal device through the soft bus channel. Figure 2As shown, the server 10 establishes a communication connection with the central control device 20, and the central control device 20 sends an authentication request for establishing a soft bus channel to the terminal device A 31, the terminal device B 32 and the terminal device C 33 in turn, and each of the terminal device A 31, the terminal device B 32 and the terminal device C 33 receives the authentication request and authenticates the authentication request, generates an identity authentication pass response when the authentication request is passed, and sends the identity authentication pass response to the central control device 20, and the central control device 20 receives the identity authentication pass responses sent by each of the terminal devices, and establishes a soft bus channel with the terminal device A 31, the terminal device B 32 and the terminal device C 33 respectively, and obtains a soft bus channel diagram as shown. Figure 2
[0037] In step S102, the preset device routing information and the soft bus channel are used to pollingly send the to-be-executed task to each of the terminal devices, and a data transmission response fed back by each terminal device is received after the to-be-executed task is sent to the terminal device.
[0038] In an embodiment, as shown in Figure 3 Step S102 includes sub-step S1021 to sub-step S1022.
[0039] In an embodiment, the preset device routing information sent by an upstream device is acquired, and the preset device routing information is stored. The storage of the preset device routing information can improve the efficiency and accuracy of the forwarding of the to-be-executed task.
[0040] In sub-step S1021, the to-be-executed task is parsed to generate a target to-be-executed task.
[0041] After the to-be-executed task is acquired, the to-be-executed task is parsed to generate a target to-be-executed task, and the target to-be-executed task can be directly executed by the terminal device. It should be noted that the manner of parsing the to-be-executed task can be selected according to actual conditions, and the embodiment of the present application does not make a specific limitation thereon. For example, the data packet of the to-be-executed task is parsed to generate the target to-be-executed task. The to-be-executed task is parsed to accurately generate the target to-be-executed task.
[0042] In sub-step S1022, the preset device routing information and the soft bus channel are used to pollingly send the target to-be-executed task to each of the terminal devices.
[0043] The preset device routing information includes a random polling transmission routing strategy, a designated transmission routing strategy and a historical transmission routing strategy, etc.
[0044] In an embodiment, when the preset device routing information comprises a random polling transmission routing strategy, the target task to be executed is sent to each terminal device according to the random polling transmission routing strategy through the soft bus channel, and a data transmission response fed back by the terminal device is received after the task to be executed is sent to each terminal device. According to the random polling transmission routing strategy, the target task to be executed is sent to each terminal device, which greatly improves the efficiency of sending the target task to be executed.
[0045] For example, the terminal devices which have established the soft bus channel with the central control device comprise terminal device A, terminal device B, terminal device C and terminal device D. The task to be executed is sent to the terminal device C according to the random polling transmission routing strategy, and a data transmission response fed back by the terminal device C based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the task to be executed is sent to the terminal device A, and a data transmission response fed back by the terminal device C based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the task to be executed is sent to the terminal device B. When the data transmission response fed back by the terminal device B based on the task to be executed is received, and the data transmission response is that the task to be executed is not received, the task to be executed is sent to the terminal device D. When the data transmission response fed back by the terminal device D based on the task to be executed is received, and the data transmission response is that the task to be executed is not received, it is determined that the transmission of the task to be executed fails.
[0046] For example, the terminal devices which have established the soft bus channel with the central control device comprise terminal device A, terminal device B, terminal device C and terminal device D. The task to be executed is sent to the terminal device C according to the random polling transmission routing strategy, and a data transmission response fed back by the terminal device C based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the task to be executed is sent to the terminal device A, and a data transmission response fed back by the terminal device C based on the task to be executed is received. When the data transmission response is that the task to be executed is received, it is determined that the transmission of the task to be executed succeeds and the task to be executed is stopped from being sent.
[0047] In an embodiment, when the device routing information comprises a specified transmission routing strategy, the target task to be executed is sent to each terminal device according to the specified transmission routing strategy through the soft bus channel, and a data transmission response fed back by the terminal device is received after the task to be executed is sent to each terminal device. The specified transmission routing strategy can be a priority routing strategy. According to the specified transmission routing strategy, the target task to be executed is sent to each terminal device, which greatly improves the efficiency of sending the target task to be executed.
[0048] The terminal devices which have established the soft bus channel with the central control device include terminal device A, terminal device B, terminal device C and terminal device D. The transmission routing strategy is a priority routing strategy. The order of the priority levels in the priority routing strategy is terminal device C, terminal device B, terminal device A and terminal device D. The terminal device C is sent a task to be executed, and a data transmission response fed back by the terminal device C based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the terminal device B is sent the task to be executed, and a data transmission response fed back by the terminal device B based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the terminal device A is sent the task to be executed, and a data transmission response fed back by the terminal device A based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the terminal device D is sent the task to be executed, and a data transmission response fed back by the terminal device D based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, it is determined that the transmission of the task to be executed fails.
[0049] The terminal devices which have established the soft bus channel with the central control device include terminal device A, terminal device B, terminal device C and terminal device D. The transmission routing strategy is a priority routing strategy. The order of the priority levels in the priority routing strategy is terminal device C, terminal device B, terminal device A and terminal device D. The terminal device C is sent a task to be executed, and a data transmission response fed back by the terminal device C based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the terminal device B is sent the task to be executed, and a data transmission response fed back by the terminal device B based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the terminal device A is sent the task to be executed, and a data transmission response fed back by the terminal device A based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, the terminal device D is sent the task to be executed, and a data transmission response fed back by the terminal device D based on the task to be executed is received. When the data transmission response is that the task to be executed is not received, it is determined that the transmission of the task to be executed fails.
[0050] In an embodiment, when the device routing information is a historical transmission routing strategy, at least one target terminal device of historical transmission is acquired according to the historical transmission routing strategy; and the target task to be executed is sent to each terminal device through the soft bus channel in a polling manner. The target task to be executed is sent to each terminal device in a polling manner according to the historical transmission routing strategy, which greatly improves the efficiency of sending the target task to be executed.
[0051] According to the historical transmission routing strategy, at least one target terminal device of historical transmission is acquired, the target terminal device includes terminal device A, terminal device B, terminal device C and terminal device D, the to-be-executed task is sent to the terminal device C, and the data transmission response fed back by the terminal device C based on the to-be-executed task is received; when the data transmission response is that the to-be-executed task is not received, the to-be-executed task is sent to the terminal device A, and the data transmission response fed back by the terminal device C based on the to-be-executed task is received; when the data transmission response is that the to-be-executed task is not received, the to-be-executed task is sent to the terminal device B; and when the data transmission response fed back by the terminal device B based on the to-be-executed task is received, the to-be-executed task is sent to the terminal device D when the data transmission response is that the to-be-executed task is not received, and the data transmission response fed back by the terminal device D based on the to-be-executed task is received; when the data transmission response is that the to-be-executed task is not received, it is determined that the to-be-executed task transmission fails.
[0052] In step S103, when the data transmission response fed back by any terminal device is that the to-be-executed task is received, it is determined that the to-be-executed task has been transmitted successfully, and the polling transmission of the to-be-executed task is stopped.
[0053] In an embodiment, when the data transmission response fed back by any terminal device is that the to-be-executed task is received, it is determined that the to-be-executed task has been transmitted successfully, and the polling transmission of the to-be-executed task is stopped.
[0054] As shown in the example, Figure 4 As shown in the example, the server 41 transmits the to-be-executed task to the central control device 42, the central control device 42 acquires the to-be-executed task, sends the to-be-executed task to the terminal device A, the terminal device A 43 feeds back the data transmission response according to whether the to-be-executed task is received, when the central control device 42 receives the data transmission response of the terminal device A 43, the data transmission response is that the transmission fails, the to-be-executed task is sent to the terminal device B 44, the terminal device B 44 feeds back the data transmission response according to whether the to-be-executed task is received, when the central control device 42 receives the data transmission response of the terminal device B 44, the data transmission response is that the transmission succeeds, and it is determined that the to-be-transmitted task transmission succeeds.
[0055] The data transmission method provided by the above embodiment comprises: obtaining a task to be executed; sending the task to be executed to each terminal device according to preset device routing information and a soft bus channel, and receiving a data transmission response fed back by each terminal device after sending the task to be executed to each terminal device; and determining that the task to be executed has been successfully transmitted and stopping sending the task to be executed when the data transmission response fed back by any terminal device is that the task to be executed has been received. The task to be executed is sent to each terminal device by polling, and when the terminal device feeds back that the task to be executed has been received, it is determined that the task to be executed has been successfully transmitted and the sending of the task to be executed is stopped, thereby greatly improving the reliability and efficiency of the transmission of the task to be executed.
[0056] Please refer to Figure 5 , Figure 5 A structural schematic diagram of a central control device is provided in the embodiment of the present application.
[0057] As Figure 5 shown, the central control device 500 comprises a processor 502 and a memory 503 connected through a system bus 501, wherein the memory can comprise a storage medium and an internal memory.
[0058] The storage medium can store a computer program. The computer program comprises program instructions, which, when executed, can cause the processor 502 to execute any kind of data transmission method.
[0059] The processor 502 is used to provide computing and control capabilities to support the operation of the entire central control device.
[0060] The internal memory provides an environment for the running of the computer program in the storage medium, and the computer program, when executed by the processor, can cause the processor to execute any kind of data transmission method.
[0061] Those skilled in the art can understand Figure 5 that the structure shown in the above is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the central control device to which the scheme of the present application is applied. The specific central control device can comprise more or fewer components than those shown in the figure, or some components can be combined, or have a different component arrangement.
[0062] It should be appreciated that the processor 502 can be a central processing unit (CPU), the processor can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0063] In one embodiment, the processor 502 is configured to run a computer program stored in the memory to implement the following steps:
[0064] Obtaining a task to be executed;
[0065] According to the preset device routing information and the soft bus channel, the task to be executed is sent to each terminal device in a polling manner, and after sending the task to be executed to each terminal device, a data transmission response feedback by the terminal device is received;
[0066] When the data transmission response feedback by any terminal device is that the task to be executed has been received, it is determined that the task to be executed has been successfully transmitted and the polling sending of the task to be executed is stopped.
[0067] In one embodiment, when implementing the polling sending of the task to be executed to each terminal device according to the preset device routing information and the soft bus channel, the processor 502 is configured to implement:
[0068] The task to be executed is parsed to generate a target task to be executed;
[0069] According to the preset device routing information and the soft bus channel, the target task to be executed is sent to each terminal device in a polling manner.
[0070] In one embodiment, when implementing the polling sending of the target task to be executed to each terminal device according to the preset device routing information and the soft bus channel, the processor 502 is configured to implement:
[0071] In the case that the preset device routing information includes a random polling transmission routing strategy, the target task to be executed is sent to each terminal device in a polling manner according to the random polling transmission routing strategy and through the soft bus channel.
[0072] In one embodiment, the processor 502, in implementing the sending of the target to-be-executed task to each of the terminal devices via the soft bus channel according to the preset device routing information, is configured to implement:
[0073] In a case where the device routing information comprises a designated transmission routing strategy, the sending of the target to-be-executed task to each of the terminal devices via the soft bus channel is performed according to the designated transmission routing strategy.
[0074] In one embodiment, the processor 502, in implementing the sending of the target to-be-executed task to each of the terminal devices via the soft bus channel according to the preset device routing information, is configured to implement:
[0075] In a case where the device routing information is a historical transmission routing strategy, at least one target terminal device of historical transmission is obtained according to the historical transmission routing strategy.
[0076] The sending of the target to-be-executed task to each of the terminal devices via the soft bus channel is performed.
[0077] In one embodiment, the processor 502, in implementing the method, is further configured to implement:
[0078] The sending of an authentication request for establishing a soft bus channel to each of the terminal devices, so that each of the terminal devices receives the authentication request and performs identity authentication according to the authentication request.
[0079] The establishment of a soft bus channel with the terminal device that feeds back that the identity authentication is passed.
[0080] In one embodiment, the processor 502, in implementing the method, is further configured to implement:
[0081] The obtaining of an authentication request for establishing a soft bus channel sent by each of the terminal devices, and the identity authentication of the authentication request sent by each of the terminal devices.
[0082] The establishment of a soft bus channel with the terminal device corresponding to the authentication request whose identity authentication is passed.
[0083] In one embodiment, the processor 502, before implementing the obtaining of the to-be-executed task, is further configured to implement:
[0084] Setting a message routing information interface and a sending byte extension interface, the message routing information interface being configured to perform data interaction with a device that sends the to-be-executed task, and the sending byte extension interface being configured to perform data interaction with each of the terminal devices via the soft bus channel.
[0085] It should be noted that the skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the control device in the above description can refer to the corresponding process in the foregoing data transmission method embodiments, and will not be described here.
[0086] The embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the computer program includes program instructions. The method implemented by executing the program instructions can refer to each embodiment of the data transmission method of the present application.
[0087] The computer readable storage medium can be an internal storage unit of the control device, such as a hard disk or a memory of the control device. The computer readable storage medium can be non-volatile or volatile. The computer readable storage medium can also be an external storage device of the control device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc.
[0088] It should be understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification of the present application, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms.
[0089] It should also be understood that the term "and / or" used in the specification of the present application means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. It should be noted that in this paper, the term "include", "contain" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or system. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0090] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application.
Claims
1. A data transmission method, characterized by, The application is applied to a central control device, the central control device has established a soft bus channel with a plurality of terminal devices, each terminal device is a hot standby device, a message routing information interface and a sending byte extension interface are provided, the message routing information interface is used for data interaction with a device sending a task to be executed, the sending byte extension interface is used for data interaction with each terminal device through the soft bus channel, and the method comprises the following steps: Obtaining a task to be executed; According to the preset device routing information and the soft bus channel, the task to be executed is sent to each terminal device in a polling manner, and after the task to be executed is sent to each terminal device, a data transmission response feedback by the terminal device is received; When the data transmission response feedback by any terminal device is that the task to be executed has been received, it is determined that the task to be executed has been successfully transmitted and the polling sending of the task to be executed is stopped; Wherein, the central control device and the plurality of terminal devices establish a soft bus channel, comprising: Sending an authentication request for establishing a soft bus channel to each terminal device, so that each terminal device receives the authentication request and performs identity authentication according to the authentication request; and establishing a soft bus channel with the terminal device whose identity authentication is passed; or Obtaining the authentication request for establishing a soft bus channel sent by each terminal device, and performing identity authentication on the authentication request sent by each terminal device; and establishing a soft bus channel with the terminal device corresponding to the authentication request whose identity authentication is passed.
2. The data transmission method of claim 1, wherein, According to the preset device routing information and the soft bus channel, the task to be executed is sent to each terminal device in a polling manner, comprising: Analyzing the task to be executed to generate a target task to be executed; According to the preset device routing information and the soft bus channel, the target task to be executed is sent to each terminal device in a polling manner.
3. The data transmission method of claim 2, wherein, According to the preset device routing information and the soft bus channel, the target task to be executed is sent to each terminal device in a polling manner, comprising: In the case that the preset device routing information includes a random polling transmission routing strategy, the target task to be executed is sent to each terminal device in a polling manner through the soft bus channel according to the random polling transmission routing strategy.
4. The data transmission method of claim 2, wherein, In the case that the device routing information includes a specified transmission routing strategy, the target task to be executed is sent to each terminal device in a polling manner through the soft bus channel according to the specified transmission routing strategy. In the case that the device routing information is a historical transmission routing strategy, at least one target terminal device of historical transmission is obtained according to the historical transmission routing strategy; 5. The data transmission method of claim 2, wherein, The target task to be executed is sent to each terminal device in a polling manner through the soft bus channel. 6. A control device characterized by comprising: The central control device comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the data transmission method according to any one of claims 1 to 5.
7. A computer readable storage medium characterized in that, The computer program is stored on the computer readable storage medium, and when executed by the processor, implements the steps of the data transmission method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Inertial navigation equipment test method, communication server, communication device and storage medium
CN113411410A