Multi-mode multi-receiver data transmission routing method

Through the multi-modal multi-receiver data transmission routing method, the shortcomings of a single communication method in the existing technology are solved, and the data distribution of multiple transmission methods and the flexible switching between the receiver is realized, which improves the stability of data transmission and exception handling. ability.

CN119052162AActive Publication Date: 2024-11-29CHENGDU CHENGDIAN YIXING DIGITAL HEALTH SOFTWARE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411536363.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2024-11-29
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

In the prior art, data routing devices are mostly a single communication method, and cannot effectively handle multiple receivers and the flexibility of data transmission, resulting in insufficient data transmission stability and exception handling capabilities.

Method used

Using multi-modal multi-receiver data transmission routing method, by obtaining source information, judging legitimacy, obtaining receiver group and circulator, data distribution in multiple transmission methods is realized, and the backup reception method is switched in the receiver cache pool. To ensure the stability of data transmission and abnormal recovery.

Benefits of technology

It realizes the flexibility and transmission stability of data routing, and can quickly switch transmission methods when the receiver is abnormal, avoid data loss, and perform exception monitoring and recovery, improving the reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052162A_ABST
    Figure CN119052162A_ABST
Patent Text Reader

Abstract

A multi-modal multi-receiver data transmission routing method belongs to the technical field of medical software data transmission, and comprises the following steps: step 01, acquiring source information; 02, judging whether the source party information is a legal source or not; step 03, acquiring the information type of a source party, and acquiring a receiver group according to the information type; step 04, setting the number of circulators according to the number of the receiver groups; 05, judging whether the circulator returns to zero or not, and if yes, ending circulation; step 06, reading a receiver, and judging whether to send a message to the read receiver; step 07, if it is judged that the message is sent to the read receiver in the step 06, sending logic is entered; and step 08, if it is judged that the message is not sent to the read receiver in the step 06, subtracting one from the number of circulators, and then continuing the step 06. According to the invention, the flexibility of data routing distribution can be realized, and the data transmission stability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical software data transmission, and in particular to a multi-modal multi-receiver data transmission routing method. Background Art

[0002] Currently, most software or devices with data forwarding functions on the market only have a single path with multiple receivers or a single path with a single receiver.

[0003] Most traditional data routing devices only have a single transmission method. For example, the queue (MQ) in the middleware only has a single channel to send or receive data. Although it has a broadcast method to distribute the same data to different recipients, its single communication method is still a shortcoming. For example, the internal data forwarding interface developed by most companies mostly has a single communication and a single recipient. Summary of the invention

[0004] The present invention provides a multi-modal multi-receiver data transmission routing method to solve the shortcomings of the above-mentioned prior art. Data is sent to one sender and multiple receivers, and multiple data sending modes are provided to the same receiver to ensure data transmission stability. Different three parties can be connected in different ways to achieve flexibility in data export.

[0005] In order to achieve the purpose of the present invention, the following technologies are proposed: A multi-modal multi-receiver data transmission routing method, comprising the steps of: Step 01, obtain source information; Step 02, determine whether the source information is from a legitimate source, so as to perform security verification and switching on the information to achieve the purpose of filtering data.

[0006] Step 03, obtain the source information type, and obtain the recipient group according to the message type; Step 04, setting the number of circulators according to the number of receiver groups. The circulator refers to a circulator that can obtain each receiver in the receiver group, so as to facilitate the processing of data reception of a single receiver.

[0007] Step 05, determine whether the circulator has returned to zero, if so, end the loop; Step 06, read out a recipient, and determine whether to send a message to the read recipient; Step 07, if it is determined in step 06 that a message is to be sent to the read recipient, then the sending logic is entered; Step 08: If it is determined in step 06 that the message is not to be sent to the read recipient, the number of circulators is reduced by one, and then step 06 is continued.

[0008] Furthermore, in step 07, the sending logic steps are: Step 070, obtain the recipient's buffer pool, which is a temporary storage location for data judgment when the message is sent. It has the characteristics of efficient caching but short storage time. Step 071, determine whether the receiving party has a receiving method, if it is determined that the receiving party has a receiving method, proceed to step 072; Step 072, obtain the flag receiving mode in the receiver's buffer pool, where the flag refers to the location of the main receiving mode, which is also the location that can be directly obtained when obtaining the sending mode.

[0009] Step 073, sending data according to the receiving mode of the flag bit in the receiving side buffer pool; Step 074, determine whether the data sent in step 073 is successful, if successful, jump out, if not, go to step 075; Step 075, determine whether the receiver has a backup receiving mode, if the receiver does not have a backup receiving mode, jump to step 0750, if the receiver has a backup receiving mode, jump to step 076; Step 0750, storing the error data obtained in step 075 and issuing a notification; Step 076, remove the current receiving mode on the flag in the receiver buffer pool, and then initiate an asynchronous return movement and push an exception notification; Step 077, extract one of the backup receiving modes in the receiver buffer pool, and place the extracted backup receiving mode on the flag bit in the receiver buffer pool, and then return to step 072.

[0010] Furthermore, since the problem of non-existence of receiving modes does not occur in the buffer pool under normal circumstances, in order to cope with abnormal situations, the following steps are performed: Step 0710, in step 071, if it is determined that the receiving party does not have a receiving mode, then the receiving mode of the receiving party in the configuration is obtained; Step 0711, store the receiving mode of the receiver in the configuration obtained in step 0710 into the cache pool, and then enter step 072.

[0011] Further: In step 077, when extracting one of the backup receiving modes in the receiver buffer pool, the extraction is performed in the order of the backup receiving modes.

[0012] Furthermore, the steps of the regression movement in step 076 are: Step 0760, manufacturing simulation parameters; Step 0761, determining whether a regression movement is required, if the regression movement is required, proceeding to step 0762, if the regression movement is not required, ending the regression movement; Step 0762, sending simulation parameters to the failed receiving method; Step 0763, determine whether the simulation parameters are sent successfully, if not, go to step 07630, if sent successfully, go to step 0764; Step 07630, after the time waiter waits for 5 seconds, jumps to step 0762 and continues to send simulation parameters to the failed receiving method; Step 0764, placing the failed receiving mode of the successfully received simulation parameter in the waiting-for-return position of the receiving side buffer pool; Step 0765, determine whether it is the main receiving mode of the receiver, if it is the main receiving mode of the receiver, go to step 0766, if it is not the main receiving mode of the receiver, go to step 07650; Step 07650, returning the extracted backup receiving mode to its original position, and then ending; Step 0766, determining whether the receiving mode of the flag bit in the receiving buffer pool is being used, if the receiving mode of the flag bit in the receiving buffer pool is being used, proceeding to step 07660, if the receiving mode of the flag bit in the receiving buffer pool is not being used, proceeding to step 0767; Step 07660, the timer waits for 1 second and then enters step 0766 again; Step 0767, put the backup receiving mode on the flag bit in the receiver buffer pool back to its original position; Step 0768, placing the failed reception mode of the successfully received simulation parameter on the to-be-returned position in the receiver buffer pool in step 0764 on the flag position in the receiver buffer pool.

[0013] Furthermore, the multi-mode multi-route configuration logic steps are: Step 090, set the type for the source information; Step 091, setting a corresponding receiver group according to the source party information type in step 090; Step 092, for the receiver group set in step 091, set the receiving mode group corresponding to the receiver, and set the corresponding receiving address for the receiving mode group; Step 093, setting a priority for each receiving mode in the receiving mode group obtained in step 092.

[0014] Furthermore, the source information has a fixed message header.

[0015] Furthermore, in step 093, as the priority number of the receiving mode decreases, the usage level of the receiving mode increases.

[0016] Further, in step 093, one of the receiving modes is set as the main priority.

[0017] The advantages of the above technical solution are: The present invention can perform multi-channel data distribution according to the routing configuration logic, and also has the characteristics of multiple sending modes during distribution, so that different receivers can receive data. It also has multiple backup receiving modes to avoid the problem of data loss due to the abnormality of a single transmission mode. When the receiving mode is abnormal, a new receiving mode can be quickly switched, and the abnormal receiving mode can also be monitored to achieve automatic return after the abnormality is recovered. The present invention can set a variety of different transmission modes (such as MQ, http, database, channel, etc.) for a receiver, and can send a message to multiple different receivers, which greatly guarantees the flexibility of the interface and the stability of data transmission. In summary, the present invention can achieve the flexibility of data routing distribution and improve the stability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0019] Figure 1 The overall cycle flow chart of the multi-modal multi-receiver data transmission routing method is shown.

[0020] Figure 2 A logical flow chart of multi-modal data transmission is shown.

[0021] Figure 3 A logic flow diagram of the regressive motion is shown.

[0022] Figure 4 A diagram showing the layout of the receiver buffer pool.

[0023] Figure 5 A multi-modal multi-routing configuration logic flow chart is shown. DETAILED DESCRIPTION

[0024] like Figure 1 As shown, a multi-modal multi-receiver data transmission routing method comprises the steps of: Step 01, obtain source information.

[0025] Step 02, determine whether the source information is from a legitimate source, so as to perform security verification and switching on the information to achieve the purpose of filtering data.

[0026] Step 03, obtain the source information type, and obtain the recipient group based on the message type.

[0027] Step 04, setting the number of circulators according to the number of receiver groups. The circulator refers to a circulator that can obtain each receiver in the receiver group, so as to facilitate the processing of data reception of a single receiver.

[0028] Step 05, determine whether the circulator has returned to zero, and if so, end the loop.

[0029] Step 06, read out a recipient, and determine whether to send a message to the read recipient.

[0030] Step 07: If it is determined in step 06 that a message is to be sent to the read recipient, the sending logic is entered.

[0031] Step 08: If it is determined in step 06 that the message is not to be sent to the read recipient, the number of circulators is reduced by one, and then step 06 is continued.

[0032] Among them, Figure 2 As shown, in step 07, the sending logic steps are: Step 070, obtain the receiver's buffer pool. The buffer pool is a temporary storage location for data judgment when the message is sent. It has the characteristics of efficient caching but short storage time. The layout of the receiver's buffer pool is as follows: Figure 4 shown.

[0033] Step 071, determine whether the receiving party has a receiving method. If it is determined that the receiving party has a receiving method, proceed to step 072.

[0034] Under normal circumstances, the problem of no receiving mode in the buffer pool will not occur. In order to deal with abnormal situations, the following steps are performed: Step 0710, in step 071, if it is determined that the receiving party does not have a receiving method, the receiving method of the receiving party in the configuration is obtained.

[0035] Step 0711, store the receiving mode of the receiver in the configuration obtained in step 0710 into the cache pool, and then enter step 072.

[0036] Step 072, obtain the flag receiving mode in the receiver's buffer pool, where the flag refers to the location of the main receiving mode, which is also the location that can be directly obtained when obtaining the sending mode.

[0037] Step 073, sending data according to the receiving mode of the flag bit in the receiving party's buffer pool.

[0038] Step 074, determine whether the data sent in step 073 is successful, if successful, jump out, if not, enter step 075.

[0039] Step 075, determine whether the recipient has a backup receiving method. If the recipient does not have a backup receiving method, jump to step 0750. If the recipient has a backup receiving method, jump to step 076.

[0040] Step 0750, stores the error data obtained in step 075 and issues a notification.

[0041] Step 076, remove the current receiving mode on the flag in the receiver buffer pool, and then initiate an asynchronous return movement and push an exception notification. The above-mentioned asynchronous means that in order not to affect the operation of the main event, another event is started to avoid interfering with the operation of the main event.

[0042] Step 077, extract one of the backup receiving modes in the receiver buffer pool, and place the extracted backup receiving mode on the flag in the receiver buffer pool, and then return to step 072. When extracting one of the backup receiving modes in the receiver buffer pool, the extraction is performed in the order of the backup receiving modes.

[0043] Among them, Figure 3 As shown, the steps of the regression movement in step 076 are: Step 0760, manufacture simulation parameters.

[0044] Step 0761, determine whether regression movement is required. If regression movement is required, proceed to step 0762. If regression movement is not required, end the regression movement.

[0045] Step 0762, sending simulation parameters to the failed receiving method.

[0046] Step 0763, determine whether the simulation parameters are sent successfully. If not, go to step 07630. If sent successfully, go to step 0764.

[0047] Step 07630, after the timer waits for 5 seconds, jumps to step 0762 and continues to send simulation parameters to the failed receiving method.

[0048] Step 0764, placing the failed reception mode of the successfully received simulation parameters in the waiting-for-return position of the receiver buffer pool.

[0049] Step 0765, determine whether it is the main receiving mode of the receiver. If it is the main receiving mode of the receiver, go to step 0766. If it is not the main receiving mode of the receiver, go to step 07650.

[0050] Step 07650, returns the extracted backup receiving mode to its original position, and then ends.

[0051] Step 0766, determine whether the receiving method of the flag bit in the receiving party's buffer pool is being used. If the receiving method of the flag bit in the receiving party's buffer pool is being used, go to step 07660; if the receiving method of the flag bit in the receiving party's buffer pool is not being used, go to step 0767.

[0052] Step 07660, after the timer waits for 1 second, enters step 0766 again.

[0053] Step 0767, put the backup receiving mode on the flag bit in the receiver's buffer pool back to its original position.

[0054] Step 0768, placing the failed reception mode of the successfully received simulation parameter on the to-be-returned position in the receiver buffer pool in step 0764 on the flag position in the receiver buffer pool.

[0055] like Figure 5 As shown, the steps for multi-mode multi-route configuration logic are: Step 090, setting a type for the source information, the source information has a fixed message header.

[0056] Step 091, setting the corresponding receiver group according to the source information type in step 090.

[0057] Step 092, for the recipient group set in step 091, set the receiving mode group corresponding to the recipient, and set the corresponding receiving address for the receiving mode group.

[0058] Step 093, setting a priority for each receiving mode in the receiving mode group obtained in step 092. As the number of priorities of the receiving modes decreases, the use level of the receiving modes increases. And one of the receiving modes needs to be set as the main priority.

[0059] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A multi-modal multi-receiver data transmission routing method, characterized in that: Includes steps: Step 01, obtain source information; Step 02, determine whether the source information is from a legitimate source, if it is legitimate, proceed to step 03, if not, end; Step 03, obtain the source party information type, and obtain the recipient party group according to the information type; Step 04, set the number of circulators according to the number of receiver groups; Step 05, determine whether the circulator has returned to zero, if so, end the loop; Step 06, read out a recipient, and determine whether to send a message to the read recipient; Step 07, if it is determined in step 06 that a message is to be sent to the read recipient, then the sending logic is entered; Step 08: If it is determined in step 06 that the message is not to be sent to the read recipient, the number of circulators is reduced by one, and then step 06 is continued.

2. The multi-modal multi-receiver data transmission routing method according to claim 1, characterized in that: In step 07, the sending logic steps are: Step 070, obtaining the receiver's buffer pool; Step 071, determine whether the receiving party has a receiving method, if it is determined that the receiving party has a receiving method, proceed to step 072; Step 072, obtaining the flag receiving mode in the receiver buffer pool; Step 073, sending data according to the receiving mode of the flag bit in the receiving side buffer pool; Step 074, determine whether the data sent in step 073 is successful, if successful, jump out, if not, go to step 075; Step 075, determine whether the receiver has a backup receiving mode, if the receiver does not have a backup receiving mode, jump to step 0750, if the receiver has a backup receiving mode, jump to step 076; Step 0750, storing the error data obtained in step 075 and issuing a notification; Step 076, remove the current receiving mode on the flag in the receiver buffer pool, and then initiate an asynchronous return movement and push an exception notification; Step 077, extract one of the backup receiving modes in the receiver buffer pool, and place the extracted backup receiving mode on the flag bit in the receiver buffer pool, and then return to step 072.

3. The multi-modal multi-receiver data transmission routing method according to claim 2, characterized in that: The method further includes step 0710. In step 071, if it is determined that the receiving party does not have a receiving mode, the receiving mode of the receiving party in the configuration is obtained; Step 0711, store the receiving mode of the receiver in the configuration obtained in step 0710 into the cache pool, and then enter step 072.

4. The multi-modal multi-receiver data transmission routing method according to claim 2, characterized in that: In step 077, when extracting one of the backup receiving modes in the receiver buffer pool, the extraction is performed in the order of the backup receiving modes.

5. The multi-modal multi-receiver data transmission routing method according to claim 2, characterized in that: The steps of the regression movement in step 076 are: Step 0760, manufacturing simulation parameters; Step 0761, determining whether a regression movement is required, if the regression movement is required, proceeding to step 0762, if the regression movement is not required, ending the regression movement; Step 0762, sending simulation parameters to the failed receiving method; Step 0763, determine whether the simulation parameters are sent successfully, if not, go to step 07630, if sent successfully, go to step 0764; Step 07630, after the time waiter waits for 5 seconds, jumps to step 0762 and continues to send simulation parameters to the failed receiving method; Step 0764, placing the failed receiving mode of the successfully received simulation parameter in the waiting-for-return position of the receiving side buffer pool; Step 0765, determine whether it is the main receiving mode of the receiver, if it is the main receiving mode of the receiver, go to step 0766, if it is not the main receiving mode of the receiver, go to step 07650; Step 07650, returning the extracted backup receiving mode to its original position, and then ending; Step 0766, determining whether the receiving mode of the flag bit in the receiving buffer pool is being used, if the receiving mode of the flag bit in the receiving buffer pool is being used, proceeding to step 07660, if the receiving mode of the flag bit in the receiving buffer pool is not being used, proceeding to step 0767; Step 07660, the timer waits for 1 second and then enters step 0766 again; Step 0767, put the backup receiving mode on the flag bit in the receiver buffer pool back to its original position; Step 0768, placing the failed reception mode of the successfully received simulation parameter on the to-be-returned position in the receiver buffer pool in step 0764 on the flag position in the receiver buffer pool.

6. The multi-modal multi-receiver data transmission routing method according to claim 1, characterized in that: If it is a multi-mode multi-route configuration, the following logical steps are adopted: Step 090, set the type for the source information; Step 091, setting a corresponding receiver group according to the source party information type in step 090; Step 092, for the receiver group set in step 091, set the receiving mode group corresponding to the receiver, and set the corresponding receiving address for the receiving mode group; Step 093, setting a priority for each receiving mode in the receiving mode group obtained in step 092.

7. The multi-modal multi-receiver data transmission routing method according to claim 6, characterized in that: The source message has a fixed message header.

8. The multi-modal multi-receiver data transmission routing method according to claim 6, characterized in that: In step 093, as the priority number of the receiving mode decreases, the usage level of the receiving mode increases.

9. The multi-modal multi-receiver data transmission routing method according to claim 6, characterized in that: In step 093, one of the receiving modes is set as the main priority.

Citation Information

Patent Citations

  • File transmission method based on third party message-oriented middle-ware

    CN104869174A

  • High-speed serial port communication method used for multi-type interface heterogeneous interconnection

    CN108090015A

  • Multi-protocol communication method and system of dual-host

    CN108650253A

  • Specific DMA data sending method, receiving method, system and medium

    CN109815176A

  • Transaction execution method and device, electronic equipment and storage medium

    CN112801794A