5G communication data receiving and transmitting synchronism enhancement method and system based on data distribution service, gateway equipment and electronic equipment
By generating pulse signals after the 5G module receives the timing message and using the cache of the data distribution service, the problem of clock synchronization on the device side in the wireless communication environment is solved, and the accurate and simultaneous triggering of terminal data is achieved, and system reliability and data transmission are improved. consistency.
Patent Information
- Application Number
- CN202410810366.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-11-01
AI Technical Summary
In a wireless communication environment, clock synchronization at the device side is difficult to achieve in industrial automation control, resulting in the consistency of data transmission and affecting system reliability.
After the 5G module receives the timing message sent by the base station, it generates a pulse signal and uses the cache of the data distribution service to obtain cached data to ensure that the data is accurately sent to the target device at a high level, and achieves accurate and simultaneous triggering of terminal data. Ensure consistency of data transmission.
In the 5G wireless communication environment, accurate and simultaneous triggering of data received/send by different terminals is achieved, which improves the reliability of the system and reduces the impact of delay jitter in wireless transmission on data transmission consistency.
Smart Images

Figure CN118890682A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial automation technology, and in particular to a method, system, gateway device and electronic device for enhancing the simultaneity of 5G communication data transmission and reception based on data distribution services. Background Art
[0002] With the development of industrial automation technology, more and more generation processes have been automated. Industrial automation control requires that controllers and action systems must be based on the same clock domain to ensure consistent processing logic. Therefore, clock synchronization on the device side is crucial.
[0003] In the related art, industrial automation control on the device side realizes the automatic control of the master device over the slave device through the data distribution service. However, the device side receives data through the data distribution service, and the mode adopted is to call the callback function, that is, when a new message instruction arrives, the callback function is called to obtain and execute the message instruction. This mode performs well in the wired communication environment, but in the wireless communication environment, due to the inevitable delay jitter, there is a time difference between the arrival of the message at different device ends, which affects the consistency of data transmission.
[0004] Based on this, there is an urgent need for a method to enhance the simultaneity of data transmission and reception to improve the consistency of data transmission between different device ends. Summary of the invention
[0005] The purpose of this application is to provide a method, system, gateway device and electronic device for enhancing the simultaneity of 5G communication data reception and transmission based on data distribution service, which is used to realize the precise and simultaneous triggering of receiving / sending data by different terminals in a 5G wireless communication environment, ensure the consistency of data transmission, and improve the reliability of the entire system.
[0006] The present application provides a method for enhancing the simultaneity of 5G communication data transmission and reception based on a data distribution service, which is applied to a gateway device, wherein the gateway includes: a 5G module, and a first subsystem for running a data distribution service. The method includes:
[0007] After the 5G module receives the timing message sent by the base station, the pulse signal is generated based on the timing message; the period of the pulse signal is a first period; the first subsystem obtains the status information of the pulse signal in real time, and when the status information indicates that the pulse signal is at a high level, obtains the cached data from the cache of the data distribution service; when the data tag of the cached data is unread, the first subsystem sends the cached data to the target device that is communicatively connected to the gateway device; wherein the cached data is used to control the target device to perform corresponding operations.
[0008] Optionally, after the 5G module receives the timing message sent by the base station, it generates a pulse signal based on the timing message, including: after the 5G module receives the timing message sent by the base station, it converts the timing message into a B code message, and periodically transmits it to the first pin of the general input and output GPIO port according to the first period.
[0009] Optionally, the first subsystem obtains status information of the pulse signal in real time, and obtains cached data from the cache of the data distribution service when the status information indicates that the pulse signal is at a high level, including: the first subsystem obtains the pin status of the first pin in real time, and when the first pin is at a high level, obtains the cached data from the cache of the data distribution service, and adjusts the pulse signal from a high level to a low level.
[0010] Optionally, after the 5G module receives the timing message sent by the base station and before generating a pulse signal based on the timing message, the method also includes: the first subsystem obtains a second period for transmitting data of the data distribution service, and determines the first period based on the second period; wherein the second period is an integer multiple of the first period.
[0011] Optionally, when the status information indicates that the pulse signal is at a high level, the first subsystem obtains cached data from the cache of the data distribution service, including: when the status information indicates that the pulse signal is at a high level, the first subsystem obtains cached data from the cache of the data distribution service after delaying a target time length; wherein the target time length is less than the maximum delay of the air interface transmission of the 5G module, and the target time length is greater than the minimum delay of the air interface transmission of the 5G module; the second period is greater than the maximum delay of the air interface transmission of the 5G module.
[0012] Optionally, the gateway device also includes: a second subsystem; before the first subsystem sends the cached data to a target device that is communicatively connected to the gateway device when the data tag of the cached data is unread, the method also includes: after the second subsystem receives the B code message sent by the 5G module, it parses the B code message and synchronizes the clock of the gateway device based on the parsing result.
[0013] Optionally, the first subsystem sends the cached data to a target device that is communicatively connected to the gateway device, including: the first subsystem sends the cached data to the target device that is communicatively connected to the gateway device according to the task execution time indicated in the cached data based on the system time after clock synchronization.
[0014] The present application also provides a 5G communication data transmission and reception simultaneity enhancement system based on a data distribution service, comprising: a 5G module, a first subsystem running a data distribution service;
[0015] The 5G module is used to generate a pulse signal based on the timing message sent by the base station after receiving the timing message; the period of the pulse signal is a first period; the first subsystem is used to obtain the status information of the pulse signal in real time, and when the status information indicates that the pulse signal is at a high level, obtain the cached data from the cache of the data distribution service; the first subsystem is also used to send the cached data to the target device that is communicatively connected to the gateway device when the data tag of the cached data is unread; wherein the cached data is used to control the target device to perform corresponding operations.
[0016] Optionally, the 5G module is specifically used to convert the timing message into a B code message after receiving the timing message sent by the base station, and periodically transmit it to the first pin of the general input and output GPIO port according to the first period.
[0017] Optionally, the first subsystem is specifically used to obtain the pin status of the first pin in real time, and when the first pin is at a high level, obtain the cache data from the cache of the data distribution service, and adjust the pulse signal from a high level to a low level.
[0018] Optionally, the first subsystem is further used to obtain a second period for transmitting data of the data distribution service, and determine the first period based on the second period; wherein the second period is an integer multiple of the first period.
[0019] Optionally, the first subsystem is specifically used to obtain cached data from the cache of the data distribution service after a delay of a target time length when the status information indicates that the pulse signal is at a high level; wherein the target time length is less than the maximum delay of the air interface transmission of the 5G module, and the target time length is greater than the minimum delay of the air interface transmission of the 5G module; and the second period is greater than the maximum delay of the air interface transmission of the 5G module.
[0020] Optionally, the gateway device also includes: a second subsystem; after the second subsystem receives the B code message sent by the 5G module, it parses the B code message and performs clock synchronization of the gateway device based on the parsing result.
[0021] Optionally, the first subsystem is specifically configured to send the cached data to a target device that is communicatively connected to the gateway device based on the system time after clock synchronization and according to the task execution time indicated in the cached data.
[0022] The present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the method for enhancing the simultaneity of 5G communication data transmission and reception based on data distribution service as described in any of the above-mentioned methods.
[0023] The present application also provides a gateway device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for enhancing the simultaneity of sending and receiving 5G communication data based on data distribution service as described in any one of the above are implemented.
[0024] The present application also provides an electronic device on which the above-mentioned gateway device is arranged.
[0025] The present application provides a method, system, gateway device and electronic device for enhancing the simultaneity of 5G communication data reception and transmission based on a data distribution service. After the 5G module receives the timing message sent by the base station, it generates a pulse signal based on the timing message; the period of the pulse signal is the first period; the first subsystem obtains the status information of the pulse signal in real time, and obtains the cached data from the cache of the data distribution service when the status information indicates that the pulse signal is at a high level; the first subsystem sends the cached data to the target device that is connected to the gateway device in communication when the data tag of the cached data is not read; wherein the cached data is used to control the target device to perform corresponding operations. In this way, in a 5G wireless communication environment, accurate and simultaneous triggering of receiving / sending data by different terminals can be achieved to ensure the consistency of data transmission and improve the reliability of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 This is one of the flow charts of the method for enhancing the simultaneity of 5G communication data transmission and reception based on the data distribution service provided by this application;
[0028] Figure 2 It is a structural diagram of a gateway device applied to the method for enhancing the simultaneity of 5G communication data transmission and reception based on a data distribution service provided in the present application;
[0029] Figure 3 This is the second flow chart of the method for enhancing the simultaneity of 5G communication data transmission and reception based on the data distribution service provided by this application;
[0030] Figure 4 This is the third flow chart of the method for enhancing the simultaneity of 5G communication data transmission and reception based on the data distribution service provided by this application;
[0031] Figure 5 This is a data transmission flow diagram of the cache data reading and data distribution service provided by this application;
[0032] Figure 6 It is a schematic diagram of the structure of the electronic device provided by this application. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0035] The following is a detailed description of the professional fields involved in the embodiments of this application:
[0036] SIB9: In the field of 5th Generation Mobile Communication Technology (5G) communications, SIB9 is a specific System Information Block (SIB), which contains information related to the Global Positioning System (GPS) time and Coordinated Universal Time (UTC). The terminal equipment (UE) can use the parameters provided in SIB9 to obtain UTC, GPS and local time. The SIB9 message belongs to the Open System Interconnection (OSI) message, which can be defined in the SIB1 message and sent periodically, or the terminal can apply for it as needed and the network can send it separately.
[0037] B code: In the field of time synchronization, B code (IRIG-B code) is a commonly used serial transmission method in the time system. It is a serial time code with a frame length of 1 second and a total of 100 code elements. B code is encoded using pulse width modulation, and there are three widths of code elements, representing "0", "1" and "P", where "P" is a flag. The total width of each code element of the B code is 10ms, of which the pulse width of "0" is 2ms, the pulse width of "1" is 5ms, and the pulse width of "P" is 8ms. B code can be used for precise synchronization with time signal input and output, and provide standard time for satellite or spacecraft launches, conventional weapons experiments, and measurement and control systems.
[0038] The 5G system can use the air interface timing method to pass the clock to the 5G industrial gateway through the 5G wireless network. The 5G industrial gateway is required to support SIB9 timing. The synchronization sequence is: GPS, gNodeB, 5G gateway equipment. The 5G base station obtains GPS clock information by integrating the Global Navigation Satellite System (GNSS) function module, and puts the clock synchronization information in SIB9 and periodically sends it to the 5G terminal. The terminal parses the SIB9 message to compensate for the transmission delay with the base station to maintain the 5G module clock synchronization state.
[0039] The synchronization process of the terminal equipment UE includes: 1. Obtaining coarse synchronization through the downlink PSS / SSS signal; 2. Obtaining the synchronization error TA between the terminal and the base station through the uplink PREACH signal; 3. The base station informs the UE of the TA value, and the phase synchronization and frequency synchronization are achieved between the UE and the base station; 4. The base station notifies the UE of the absolute time by broadcasting SIB messages / or unicasting RRC messages, and time synchronization is achieved between the UE and the base station.
[0040] The data distribution service is a data-centric, publish / subscribe-based, real-time data distribution technology based on open standards. Its main technical advantage is that it decouples the data sender from the data receiver by publishing and subscribing to topics. Compared with the connection-centric client / server model, this technology can better adapt to discrete complex systems and communication transmission between systems. Different from socket communication, the data distribution service has a receive / send cache at the Real-Time Publish-Subscribe (RTPS) layer based on the publish-subscribe model. The sending and receiving of messages are all extracted from the cache. This mode is very suitable for combining with clock synchronization to enhance the simultaneity of data sending and receiving.
[0041] In view of the above-mentioned technical problems existing in the related technologies, the embodiment of the present application provides a method for enhancing the simultaneity of 5G communication data reception and transmission based on data distribution service, which includes: in a 5G wireless communication environment, realizing accurate and simultaneous triggering of receiving / sending data by different terminals, ensuring the consistency of data transmission, and improving the reliability of the entire system. To apply real-time data distribution service in time-sensitive wireless industrial control, it is necessary to first determine the global clock synchronization of the terminal under the 5G private network and change the data receiving mode of the data distribution service. The 5G base station obtains GPS clock information by integrating the GNSS functional module, and puts the clock synchronization information in SIB9, which is periodically sent to the 5G module of the terminal to ensure that the 5G module can always maintain clock synchronization with the base station. At the same time, the 5G module in the terminal parses the SIB9 message into B code, which is periodically output as a pulse signal. The real-time data distribution service detects the pulse signal and then executes the behavior of sending / receiving data.
[0042] like Figure 1 As shown, it is a flow chart of a method for enhancing the simultaneity of 5G communication data reception and transmission based on a data distribution service provided in an embodiment of the present application. The data distribution service has a cache for storing data received in a Topic, and the data has a tag for identifying whether the data has been read. The data distribution service is always in a blocked state. When a rising edge of a pulse signal is detected, the data in the cache is read. If the data tag is not read, the data is received and subsequent operations are performed, such as transmitting it to a downstream programmable logic controller PLC. If the data tag is read, the blocking state is restored. Similarly, the sending end executes the sending behavior when a pulse signal is detected.
[0043] In the following, in combination with the accompanying drawings, the method for enhancing the simultaneity of sending and receiving 5G communication data based on the data distribution service provided by the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0044] like Figure 2As shown, it is a structural diagram of a gateway device applied to the method for enhancing the simultaneity of 5G communication data transmission and reception based on the data distribution service provided in an embodiment of the present application. The gateway device includes: a 5G module and a first subsystem for running the data distribution service.
[0045] like Figure 3 As shown, an embodiment of the present application provides a method for enhancing the simultaneity of 5G communication data transmission and reception based on a data distribution service. The method may include the following steps 301 to 303:
[0046] Step 301: After the 5G module receives the timing message sent by the base station, it generates a pulse signal based on the timing message.
[0047] Wherein, the period of the pulse signal is the first period.
[0048] Exemplarily, the 5G module set on the gateway device can periodically receive the timing message sent by the base station, or actively send a request to the base station for obtaining the timing message. The timing message can be a SIB9 timing message.
[0049] Exemplarily, after receiving the timing message, the 5G module can convert the timing message into a B code message, and periodically output it to the first pin of the input and output GPIO port in a first period.
[0050] Specifically, the above step 301 may further include the following step 301a:
[0051] Step 301a: After receiving the timing message sent by the base station, the 5G module converts the timing message into a B code message, and periodically transmits it to the first pin of the general input and output GPIO port according to the first period.
[0052] Exemplarily, the pulse signal may be a pulse signal periodically outputted by the 5G module to the first pin. The pulse signal may be used as a trigger signal for the first subsystem to read data from the cache of the data distribution service.
[0053] Step 302: The first subsystem obtains the state information of the pulse signal in real time, and when the state information indicates that the pulse signal is at a high level, obtains cache data from the cache of the data distribution service.
[0054] Exemplarily, when the first subsystem detects that the pulse signal is at a high level, it obtains cached data from the cache of the data distribution service and adjusts the pulse signal from a high level to a low level. When the next cycle arrives, the pulse signal is readjusted to a high level, and this is repeated to achieve periodic acquisition of cached data.
[0055] Specifically, based on the above step 301a, the above step 302 may further include the following step 302a:
[0056] Step 302a, the first subsystem obtains the pin status of the first pin in real time, and when the first pin is at a high level, obtains the cache data from the cache of the data distribution service, and adjusts the pulse signal from a high level to a low level.
[0057] Exemplarily, the first subsystem may be a Linux system, and the first subsystem may determine whether it is necessary to obtain cache data from the cache of the data distribution service by obtaining the GPIO pin state (ie, the first pin mentioned above).
[0058] Step 303: When the data tag of the cached data is unread, the first subsystem sends the cached data to a target device that is communicatively connected to the gateway device.
[0059] The cache data is used to control the target device to perform corresponding operations.
[0060] Exemplarily, when the first subsystem obtains cached data from the cache of the data distribution service and the tag of the cached data is unread, the cached data can be sent to the target device that is communicatively connected to the gateway device. The target device can be an independent device or a programmable logic controller PLC on a terminal device installed with the gateway device.
[0061] It should be noted that in the embodiment of the present application, the gateway device can not only obtain data from the cache of the data distribution service as a subscriber, but also publish a Topic as a publisher.
[0062] For example, Figure 4As shown in the figure, there are four industrial automated guided vehicles (AGVs). To achieve a one-master-three-slave working mode, the master AGV will issue control instructions to the slave AGVs. It is expected that the three slave AGVs can accurately and synchronously trigger the issued control instructions. Each AGV is equipped with a 5G gateway (i.e., the above-mentioned gateway device) and a PLC (i.e., the above-mentioned target device). The PLC is responsible for issuing, receiving and executing instructions, and the 5G gateway is responsible for transparently transmitting instructions through 5G. The PLC only communicates with the gateway through UDP. The 5G gateway device is equipped with a Linux system (i.e., the above-mentioned first subsystem, loaded with real-time data distribution services), in which the control instruction is Topic A, the master AGV is the publisher of the Topic, and the three slave AGVs are subscribers. The gateway 5G module and the base station both support SIB9 timing. The base station periodically sends SIB9 timing messages to each AGV. The 5G module of the 5G gateway set on the AGV receives the timing message and converts it into B code, and outputs it to the GPIO pin as a pulse signal with a period of 10ms (i.e., the above-mentioned first period). The data distribution service reads the GPIO pin status through the Linux system kernel. When the GPIO pin status is low, it is in a blocked state. When the GPIO pin is high, it executes the data read operation from the receive buffer. If the data tag is not read, the data is transmitted to the PLC.
[0063] Optionally, in an embodiment of the present application, the first period of the pulse signal can be adjusted according to the second period of data transmission of the data distribution service.
[0064] Exemplarily, before the above step 301, the method for enhancing the simultaneity of 5G communication data transmission and reception based on the data distribution service provided in the embodiment of the present application may further include the following step 304:
[0065] Step 304: The first subsystem obtains a second period for transmitting data of the data distribution service, and determines the first period based on the second period.
[0066] The second period is an integer multiple of the first period.
[0067] For example, Figure 5 As shown in the figure, if the data transmission of the data distribution service is periodic, the period a of the pulse signal (i.e. the first period mentioned above) needs to be smaller than the period b of the data transmission (i.e. the second period mentioned above), so that in extreme cases the time error of the received data can be guaranteed to be between a and a+n*b, where n is a positive integer. And the transmission period of the data distribution service must be an integer multiple of the pulse signal period, effectively reducing the impact of delay jitter in wireless transmission on the consistency of data transmission.
[0068] Specifically, based on the above step 304, the above step 302 may further include the following step 302b:
[0069] Step 302b: When the state information indicates that the pulse signal is at a high level, the first subsystem obtains cache data from the cache of the data distribution service after a delay of a target time.
[0070] Among them, the target duration is less than the maximum delay of the air interface transmission of the 5G module, and the target duration is greater than the minimum delay of the air interface transmission of the 5G module; the second period is greater than the maximum delay of the air interface transmission of the 5G module.
[0071] Exemplarily, in order to avoid the situation where other gateway devices write data to the cache of the data distribution service at the same time when the gateway device obtains cached data from the cache of the data distribution service, resulting in data acquisition failure, the data reading operation of the gateway device can be delayed when the data reading operation of the gateway device is triggered.
[0072] For example, the minimum delay of the air interface transmission of the 5G module is n1, the maximum delay is n2, the first period is a, and the second period is b. When the gateway device receives and detects that the pulse signal is at a high level, it delays n before obtaining the cache data from the cache of the data distribution service. n is between n1 and n2, and b is greater than n2.
[0073] Optionally, in an embodiment of the present application, when the subject message published by the data distribution service is a task to be executed at a scheduled time, it is also necessary to control each subscribing device to be able to execute the task at the same time.
[0074] For example, Figure 2 As shown, the gateway device also includes: a second subsystem; before the above step 303, the 5G communication data transmission and reception simultaneity enhancement method based on the data distribution service provided in the embodiment of the present application may also include the following steps 305:
[0075] Step 305: After receiving the B code message sent by the 5G module, the second subsystem parses the B code message and performs clock synchronization of the gateway device based on the parsing result.
[0076] Exemplarily, the second subsystem may be a real-time operating system (RTOS). The second subsystem is used to parse B-code messages and synchronize the clocks of the gateway device and the target device.
[0077] Specifically, based on the above step 305, the above step 303 may further include the following step 303a:
[0078] Step 303a: The first subsystem sends the cache data to a target device that is communicatively connected to the gateway device based on the system time after clock synchronization and according to the task execution time indicated in the cache data.
[0079] For example, after the synchronization of the system time is completed, the cached data may be sent to the target device at the task execution time, and the target device may be controlled to execute the corresponding task.
[0080] For example, Figure 4 As shown, the AGV is also provided with an RTOS, namely the second subsystem mentioned above, which is used for parsing the B code and clock synchronization of the gateway device.
[0081] It should be noted that in addition to sending to electronic devices connected to the gateway device, the sending behavior can also be performed, that is, different devices send messages at the same time. The same applies to all subsequent related operations, not only the simultaneity of receiving is enhanced, but also the simultaneity of sending can be enhanced.
[0082] In this way, the impact of delay jitter in wireless transmission on data transmission consistency can be effectively reduced, so that the time difference for all subscribing devices to receive the topic message is minimized.
[0083] The embodiment of the present application provides a method for enhancing the simultaneity of 5G communication data reception and transmission based on a data distribution service. After the 5G module receives the timing message sent by the base station, it generates a pulse signal based on the timing message; the period of the pulse signal is the first period; the first subsystem obtains the status information of the pulse signal in real time, and obtains the cached data from the cache of the data distribution service when the status information indicates that the pulse signal is at a high level; the first subsystem sends the cached data to the target device that is connected to the gateway device in communication when the data tag of the cached data is not read; wherein the cached data is used to control the target device to perform corresponding operations. In this way, in a 5G wireless communication environment, accurate and simultaneous triggering of receiving / sending data by different terminals can be achieved to ensure the consistency of data transmission and improve the reliability of the entire system.
[0084] It should be noted that the method for enhancing the simultaneity of transmitting and receiving 5G communication data based on data distribution service provided in the embodiment of the present application can be executed by a 5G communication data transmission and reception simultaneity enhancement system based on data distribution service, or a control module in the 5G communication data transmission and reception simultaneity enhancement system based on data distribution service for executing the method for enhancing the simultaneity of transmitting and receiving 5G communication data based on data distribution service. In the embodiment of the present application, the 5G communication data transmission and reception simultaneity enhancement system based on data distribution service executing the method for enhancing the simultaneity of transmitting and receiving 5G communication data based on data distribution service is taken as an example to illustrate the system for enhancing the simultaneity of transmitting and receiving 5G communication data based on data distribution service provided in the embodiment of the present application.
[0085] It should be noted that in the embodiments of the present application, the above-mentioned methods are shown in the drawings. The method for enhancing the simultaneity of 5G communication data transmission and reception based on data distribution services is illustrated by combining an accompanying drawing in the embodiment of the present application as an example. In specific implementation, the method for enhancing the simultaneity of 5G communication data transmission and reception based on data distribution services shown in the accompanying drawings of the above-mentioned methods can also be implemented in combination with any other accompanying drawings that can be combined as illustrated in the above-mentioned embodiments, which will not be repeated here.
[0086] The 5G communication data transmission and reception simultaneity enhancement system based on data distribution service provided by the present application is described below. The 5G communication data transmission and reception simultaneity enhancement method based on data distribution service described above and described below can be referenced to each other.
[0087] Figure 2 A structural diagram of a 5G communication data transmission and reception simultaneity enhancement system based on a data distribution service provided in an embodiment of the present application, such as Figure 2 As shown, it specifically includes: a 5G module, and a first subsystem for running data distribution services.
[0088] The 5G module is used to generate a pulse signal based on the timing message sent by the base station after receiving the timing message; the period of the pulse signal is a first period; the first subsystem is used to obtain the status information of the pulse signal in real time, and when the status information indicates that the pulse signal is at a high level, obtain the cached data from the cache of the data distribution service; the first subsystem is also used to send the cached data to the target device that is communicatively connected to the gateway device when the data tag of the cached data is unread; wherein the cached data is used to control the target device to perform corresponding operations.
[0089] Optionally, the 5G module is specifically used to convert the timing message into a B code message after receiving the timing message sent by the base station, and periodically transmit it to the first pin of the general input and output GPIO port according to the first period.
[0090] Optionally, the first subsystem is specifically used to obtain the pin status of the first pin in real time, and when the first pin is at a high level, obtain the cache data from the cache of the data distribution service, and adjust the pulse signal from a high level to a low level.
[0091] Optionally, the first subsystem is further used to obtain a second period for transmitting data of the data distribution service, and determine the first period based on the second period; wherein the second period is an integer multiple of the first period.
[0092] Optionally, the first subsystem is specifically used to obtain cached data from the cache of the data distribution service after a delay of a target time length when the status information indicates that the pulse signal is at a high level; wherein the target time length is less than the maximum delay of the air interface transmission of the 5G module, and the target time length is greater than the minimum delay of the air interface transmission of the 5G module; and the second period is greater than the maximum delay of the air interface transmission of the 5G module.
[0093] Optionally, the gateway device also includes: a second subsystem; after the second subsystem receives the B code message sent by the 5G module, it parses the B code message and performs clock synchronization of the gateway device based on the parsing result.
[0094] Optionally, the first subsystem is specifically configured to send the cached data to a target device that is communicatively connected to the gateway device based on the system time after clock synchronization and according to the task execution time indicated in the cached data.
[0095] The 5G communication data receiving and sending simultaneity enhancement system based on data distribution service provided by the present application is that after the 5G module receives the timing message sent by the base station, it generates a pulse signal based on the timing message; the period of the pulse signal is the first period; the first subsystem obtains the status information of the pulse signal in real time, and obtains the cached data from the cache of the data distribution service when the status information indicates that the pulse signal is at a high level; the first subsystem sends the cached data to the target device connected to the gateway device in communication when the data tag of the cached data is not read; wherein the cached data is used to control the target device to perform corresponding operations. In this way, in the 5G wireless communication environment, accurate and simultaneous triggering of receiving / sending data by different terminals can be achieved to ensure the consistency of data transmission and improve the reliability of the entire system.
[0096] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 complete mutual communication through the communication bus 640. The processor 610 can call the logic instructions in the memory 630 to execute the 6G communication data transmission and reception simultaneity enhancement method based on the data distribution service, the method comprising: after the 5G module receives the timing message sent by the base station, a pulse signal is generated based on the timing message; the period of the pulse signal is the first period; the first subsystem obtains the state information of the pulse signal in real time, and when the state information indicates that the pulse signal is at a high level, obtains the cached data from the cache of the data distribution service; the first subsystem sends the cached data to the target device connected to the gateway device in communication when the data tag of the cached data is not read; wherein the cached data is used to control the target device to perform corresponding operations.
[0097] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0098] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the 5G communication data transmission and reception simultaneity enhancement method based on the data distribution service provided by the above methods, the method including: after the 5G module receives the timing message sent by the base station, it generates a pulse signal based on the timing message; the period of the pulse signal is a first period; the first subsystem obtains the status information of the pulse signal in real time, and when the status information indicates that the pulse signal is at a high level, obtains the cached data from the cache of the data distribution service; the first subsystem sends the cached data to the target device that is communicatively connected to the gateway device when the data tag of the cached data is not read; wherein the cached data is used to control the target device to perform corresponding operations.
[0099] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned methods for enhancing the simultaneity of 5G communication data reception and transmission based on data distribution services, the method comprising: after the 5G module receives a timing message sent by a base station, it generates a pulse signal based on the timing message; the period of the pulse signal is a first period; the first subsystem obtains the status information of the pulse signal in real time, and when the status information indicates that the pulse signal is at a high level, obtains cached data from the cache of the data distribution service; the first subsystem sends the cached data to a target device that is communicatively connected to the gateway device when the data tag of the cached data is unread; wherein the cached data is used to control the target device to perform corresponding operations.
[0100] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for enhancing the simultaneity of 5G communication data transmission and reception based on data distribution service, It is characterized in that Applied to a gateway device, the gateway includes: a 5G module, a first subsystem for running a data distribution service, and the method includes: After receiving the timing message sent by the base station, the 5G module generates a pulse signal based on the timing message; the period of the pulse signal is the first period; The first subsystem acquires state information of the pulse signal in real time, and acquires cache data from a cache of the data distribution service when the state information indicates that the pulse signal is at a high level; The first subsystem sends the cached data to a target device that is communicatively connected to the gateway device when the data tag of the cached data is unread; The cache data is used to control the target device to perform corresponding operations.
2. The method according to claim 1, It is characterized in that After the 5G module receives the timing message sent by the base station, it generates a pulse signal based on the timing message, including: After receiving the timing message sent by the base station, the 5G module converts the timing message into a B code message, and periodically transmits it to the first pin of the general input and output GPIO port according to the first period.
3. The method according to claim 2, It is characterized in that The first subsystem acquires the state information of the pulse signal in real time, and acquires cache data from the cache of the data distribution service when the state information indicates that the pulse signal is at a high level, including: The first subsystem obtains the pin state of the first pin in real time, and when the first pin is at a high level, obtains the cache data from the cache of the data distribution service, and adjusts the pulse signal from a high level to a low level.
4. The method according to claim 2 or 3, It is characterized in that After the 5G module receives the timing message sent by the base station, before generating a pulse signal based on the timing message, the method further includes: The first subsystem obtains a second period of data transmission by the data distribution service, and determines the first period based on the second period; The second period is an integer multiple of the first period.
5. The method according to claim 4, It is characterized in that When the state information indicates that the pulse signal is at a high level, the first subsystem obtains cache data from the cache of the data distribution service, including: When the state information indicates that the pulse signal is at a high level, the first subsystem acquires cache data from the cache of the data distribution service after delaying for a target time period; Among them, the target duration is less than the maximum delay of the air interface transmission of the 5G module, and the target duration is greater than the minimum delay of the air interface transmission of the 5G module; the second period is greater than the maximum delay of the air interface transmission of the 5G module.
6. The method according to claim 2, It is characterized in that The gateway device further includes: a second subsystem; before the first subsystem sends the cached data to a target device that is communicatively connected to the gateway device when the data tag of the cached data is unread, the method further includes: After receiving the B code message sent by the 5G module, the second subsystem parses the B code message and performs clock synchronization of the gateway device based on the parsing result.
7. The method according to claim 6, It is characterized in that The first subsystem sends the cached data to a target device that is communicatively connected to the gateway device, including: The first subsystem sends the cache data to a target device that is communicatively connected to the gateway device according to the task execution time indicated in the cache data based on the system time after clock synchronization.
8. A 5G communication data transmission and reception simultaneity enhancement system based on data distribution service, It is characterized in that The system includes: a 5G module, a first subsystem for running a data distribution service; The 5G module is used to generate a pulse signal based on the timing message after receiving the timing message sent by the base station; the period of the pulse signal is the first period; The first subsystem is used to obtain the state information of the pulse signal in real time, and obtain cache data from the cache of the data distribution service when the state information indicates that the pulse signal is at a high level; The first subsystem is further configured to send the cached data to a target device that is communicatively connected to the gateway device when the data tag of the cached data is unread; The cache data is used to control the target device to perform corresponding operations.
9. A gateway device, It is characterized in that It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of the method for enhancing the simultaneity of sending and receiving 5G communication data based on the data distribution service as described in any one of claims 1 to 7.
10. An electronic device, It is characterized in that A gateway device as claimed in claim 9 is arranged thereon.
