A data synchronization method and device for a driver display terminal
By configuring a signal synchronization port and generating a synchronization signal in the driver's display terminal, the problem of data synchronization dead loop in the locomotive driver's display unit was solved, and the accurate distinction and synchronization of level signals and pulse signals were achieved, thus improving data transmission efficiency.
Patent Information
- Application Number
- CN202211091295.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-09-07
AI Technical Summary
The existing locomotive driver display units have completely identical software applications, which causes them to get stuck in a dead loop during data synchronization, making it impossible to distinguish between pulse signals and level signals, thus affecting data transmission efficiency.
By configuring a signal synchronization port on the driver display terminal, a synchronization signal is generated and sent, distinguishing between the synchronization of level data and pulse data. A passive notification method is used to handle data synchronization, avoiding infinite loops.
It effectively solves the problem of data synchronization dead loop, improves the efficiency of data synchronization, and ensures accurate differentiation and synchronization of level signals and pulse signals.
Smart Images

Figure CN117676220B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of locomotive control technology, and more specifically, to a data synchronization method and apparatus for a driver display terminal. Background Technology
[0002] The current locomotive driver display unit adopts a combined screen design, meaning that the network display unit and the braking display unit use the same hardware and software. During operation, the network display unit defaults to traction display, showing traction status data on its main interface, while the braking display unit defaults to braking display, showing braking status data on its main interface. Since the software applications for both display units are completely identical, the only difference being the default main interface, both display units have the same status within the network control system. The driver can perform data settings or view data on either display unit.
[0003] Since the two driver display units have the same status in the locomotive network, after the two display units send their data settings to the network control module, the network control module cannot distinguish the validity of the data. Therefore, it needs to ensure that the data sent by the two display units to the network control module remains consistent at all times. Thus, after the driver sets and sends data on one display unit, the other display unit needs to obtain the data from the other and send its own data. However, if the two display units continuously read the data sent by the other, they will enter a dead loop, causing them to be unable to send data normally and unable to distinguish between pulse signals and level signals. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a data synchronization method and apparatus for a driver display terminal, which can improve the efficiency of data synchronization.
[0005] In a first aspect, the present invention provides a data synchronization method for a driver display terminal, the method comprising:
[0006] Determine the source port and signal synchronization port for the first driver's display terminal to send the first synchronization data;
[0007] A first synchronization signal is generated based on the first encoding number corresponding to the source port;
[0008] The first synchronization signal is sent to the second driver display terminal through the signal synchronization port, so that the second driver display terminal can obtain the first synchronization data sent by the first driver display terminal.
[0009] The first synchronization data includes: level data transmitted as a level signal and pulse data transmitted as a pulse signal;
[0010] The first synchronization signal includes two byte regions: a first byte region for level data synchronization and a second byte region for pulse data synchronization.
[0011] Specifically, the first synchronization data is determined to be level data, and the first encoding number corresponding to the source port is stored in the first byte area;
[0012] The first synchronization data is determined to be pulse data, and the first encoding number corresponding to the source port is stored in the second byte area.
[0013] The first byte region includes at least one byte of storage unit, and the second byte region includes at least thirty bytes of storage unit.
[0014] In one embodiment, it further includes:
[0015] Receive the second synchronization signal sent by the second driver display terminal and parse the second synchronization signal to obtain the second code number carried in the second synchronization signal;
[0016] The second source port for the second driver display terminal to send the second synchronization data is determined according to the second code number;
[0017] The second synchronization data is obtained from the second driver display terminal based on the second source port.
[0018] In one embodiment, it further includes:
[0019] The second synchronization data is determined to be level data based on the byte region where the second encoding number carried in the second synchronization signal is located.
[0020] Clear the pulse data in the second synchronization data received from the second source port.
[0021] In one embodiment, it further includes:
[0022] The second synchronization data is determined to be pulse data based on the byte region containing the second encoding number carried in the second synchronization signal.
[0023] If the type of the pulse data is determined to be a bit pulse, then the bit pulse is inserted into the pulse transmission queue;
[0024] If the type of the pulse data is determined to be a word pulse or a byte pulse, then the value sent from the second source port of the second driver display terminal is obtained, the value sent from the second source port is inserted into the local pulse information, and the pulse information is inserted into the pulse transmission queue.
[0025] In a second aspect, the present invention provides a data synchronization device for a driver display terminal, the device comprising:
[0026] The source port unit is used to determine the source port and signal synchronization port for the first driver display terminal to send the first synchronization data.
[0027] A synchronization signal unit is used to generate a first synchronization signal based on the first encoding number corresponding to the source port;
[0028] The signal transmitting unit is used to transmit the first synchronization signal to the second driver display terminal through the signal synchronization port, so that the second driver display terminal can obtain the first synchronization data sent by the first driver display terminal.
[0029] Thirdly, the present invention provides an electronic device, comprising: a processor, a memory, a communication interface, and a communication bus; wherein,
[0030] The processor, communication interface, and memory communicate with each other via a communication bus;
[0031] The processor is used to invoke computer instructions in memory to execute the steps of the above-described data synchronization method for the driver display terminal.
[0032] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions that, when executed, cause the computer to perform the steps of the above-described data synchronization method for a driver display terminal.
[0033] The present invention proposes a data synchronization method and apparatus for a driver display terminal. This method involves determining the source port and signal synchronization port for a first driver display terminal to send first synchronization data; generating a first synchronization signal based on a first encoding number corresponding to the source port; and sending the first synchronization signal to a second driver display terminal through the signal synchronization port, enabling the second driver display terminal to receive the first synchronization data sent by the first driver display terminal. When local data needs to be synchronized, the method can send a pulse signal through the signal synchronization port to notify the other party to read its own data. This effectively handles data transmission information synchronization and improves data synchronization efficiency.
[0034] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the embodiments or the prior art will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is a schematic diagram of the first process of a data synchronization method for a driver display terminal provided by the present invention.
[0037] Figure 2 This is a schematic diagram of the structure of the synchronization signal in a data synchronization method for a driver display terminal provided by the present invention.
[0038] Figure 3 This is a schematic diagram of the second process of a data synchronization method for a driver display terminal provided by the present invention.
[0039] Figure 4 This is a schematic diagram of the structure of a data synchronization device for a driver display terminal provided by the present invention.
[0040] Figure 5 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0042] The driver configures any driver display terminal (also called a driver display unit) on the locomotive. The configured driver display terminal can then send data to the network control terminal (also called a network control unit). However, if the driver hasn't configured another driver display terminal, the data sent by the unconfigured terminal must be consistent with the data sent by the configured driver display terminal. Therefore, the unconfigured driver display terminal must transmit data based on the data sent by the currently configured driver display terminal. The transmitted data includes pulse signals and level signals, where pulse signals include bit pulses, byte pulses, word pulses, and variable-period pulses. If two driver display terminals continuously read each other's transmitted data, they will enter a dead loop, preventing them from transmitting data normally and distinguishing between pulse and level signals.
[0043] Therefore, to effectively handle data transmission synchronization, a signal synchronization port is configured on each of the two driver display terminals. When local data transmission requires synchronization, a pulse signal is sent through this signal synchronization port to notify the other terminal to read its own data. Upon receiving the signal, the other terminal reads the data from the other terminal, completing the data transmission. The synchronization method is changed to a passive notification method, and pulse and level signal synchronization are handled differently, effectively solving the synchronization dead loop problem.
[0044] This invention provides a data synchronization method for a driver display terminal, see [link to relevant documentation]. Figure 1 As shown, it specifically includes the following content:
[0045] In this embodiment, the example is taken as follows: the first driver display terminal sends the synchronization signal, and the second driver display terminal receives the synchronization signal and reads the data sent by the first driver display terminal.
[0046] S101: Determine the source port and signal synchronization port for the first driver display terminal to send the first synchronization data.
[0047] Determine the source port for the synchronization data sent by the first driver's display terminal. For example, if the source ports for the synchronization data sent by the first driver's display terminal are 0x30, 0x31, and 0x32, then configure another source port on the first driver's display terminal as the sending port for the synchronization signal. For example, determine source port 0x33 as the sending port for the synchronization signal. Additionally, each bit of the sending port for the synchronization signal (source port 0x33) can be configured to correspond to a pulse transmission identifier, and there can be a one-to-one correspondence between the pulse transmission identifier and the pulse index.
[0048] In this step, the source port for sending the first synchronization data and the signal synchronization port of the first driver display terminal are determined. The source port for sending the first synchronization data can be any one of 0x30, 0x31 and 0x32, and the signal synchronization port is the source port 0x33 for sending the synchronization signal.
[0049] The first driver display terminal sends a synchronization signal to the second driver display terminal through source port 0x33, and sends the first synchronization data to the network control terminal through any one of source ports 0x30, 0x31 and 0x32.
[0050] It should be noted that the first synchronization data includes: level data transmitted as a level signal and pulse data transmitted as a pulse signal. Based on the division of synchronization data into level data and pulse data, the first synchronization signal needs to be divided into at least two byte regions: a first byte region for level data synchronization and a second byte region for pulse data synchronization.
[0051] S102: Generate a first synchronization signal based on the first encoding number corresponding to the source port.
[0052] In this step, if the first synchronization data is determined to be level data, the first encoding number corresponding to the source port is stored in the first byte area; and if the first synchronization data is determined to be pulse data, the first encoding number corresponding to the source port is stored in the second byte area. See also Figure 2 The first byte area includes at least one byte of storage, and the second byte area includes at least thirty bytes of storage. In other words, the first word of the transmitting port (source port 0x33) for transmitting the synchronization signal is used for level information synchronization, and the following 30 bytes are used for pulse signal synchronization.
[0053] In this step, the first encoding number is any one of 0x30, 0x31, and 0x32. Each bit corresponds to a pulse transmission identifier, and there is a one-to-one correspondence between the pulse transmission identifier and the pulse index.
[0054] S103: The first synchronization signal is sent to the second driver display terminal through the signal synchronization port, so that the second driver display terminal can obtain the first synchronization data sent by the first driver display terminal.
[0055] In this step, the first synchronization signal is sent to the second driver display terminal through signal synchronization port 0x33. The second driver display terminal then parses the first synchronization signal to determine if the source port sending the first synchronization data is a source port, and retrieves the synchronization data sent from the first driver display terminal to the network control terminal from the source port, thus completing data synchronization.
[0056] As described above, the data synchronization method for a driver display terminal provided in this embodiment of the invention determines the source port and signal synchronization port for the first driver display terminal to send first synchronization data; generates a first synchronization signal based on the first encoding number corresponding to the source port; and sends the first synchronization signal to a second driver display terminal through the signal synchronization port, so that the second driver display terminal can obtain the first synchronization data sent by the first driver display terminal. When there is local data to be transmitted and needs to be synchronized, a pulse signal is sent through the signal synchronization port to notify the other party to read its own data at this time. This effectively handles data transmission information synchronization and improves the efficiency of data synchronization.
[0057] In one embodiment of the present invention, see Figure 3 The data synchronization method for the driver display terminal specifically includes the following:
[0058] S104: Receive the second synchronization signal sent by the second driver display terminal and parse the second synchronization signal to obtain the second code number carried in the second synchronization signal.
[0059] In this step, the first driver display terminal can also receive the second synchronization signal sent by the second driver display terminal, thus achieving data synchronization. Specifically, after receiving the second synchronization signal sent by the second driver display terminal, the first driver display terminal needs to parse and process the second synchronization signal to obtain the second encoding number carried in the second synchronization signal.
[0060] The second code number is the source port number for the synchronization data sent by the second driver display terminal, for example: 0x30, 0x31 or 0x32.
[0061] S105: Determine the second source port for the second driver display terminal to send the second synchronization data based on the second code number.
[0062] In this step, after obtaining the second source port for the synchronization data sent by the second driver display terminal, the synchronization data sent from the second driver display terminal to the network control terminal can be obtained from the second source port.
[0063] S106: Obtain second synchronization data from the second driver display terminal based on the second source port.
[0064] In this step, after obtaining the second synchronization data sent by the second driver to the network control terminal from the second source port, the second synchronization data can be determined to be level data based on the byte area where the second encoding number carried in the second synchronization signal is located; it is necessary to clear the pulse data in the second synchronization data received from the second source port.
[0065] For example: The second driver's display terminal sends constant data through source port 0x30, while the first byte of source port 0x33 stores pulse signal 1. When sending data through source port 0x31, the first byte of source port 0x33 stores pulse signal 2. When sending data through source port 0x32, the first byte of source port 0x33 stores pulse signal 3.
[0066] Upon receiving pulse signal 1, the first driver's display terminal reads all data from source port 0x30 of the second driver's display terminal. Based on the pulse configuration information, it clears all pulse signals from source port 0x30, i.e., the corresponding pulse position is reset to zero. Furthermore, if both the first and second driver's display terminals are sending pulse signals from their respective source ports 0x30 (i.e., their pulse information exists in the pulse queue), the pulse queue value is used to fill that port in the first driver's display terminal, completing the synchronized data transmission.
[0067] Furthermore, based on the byte region of the second encoding number carried in the second synchronization signal, the second synchronization data is determined to be pulse data; if the type of the pulse data is determined to be a bit pulse, then the bit pulse is inserted into the pulse transmission queue; if the type of the pulse data is determined to be a word pulse or a byte pulse, then the value sent from the second source port of the second driver display terminal is obtained, the value sent from the second source port is inserted into the local pulse information, and the pulse information is inserted into the pulse transmission queue.
[0068] For example: If the second driver's display terminal is determined to be sending a pulse signal, and the pulse index of the second driver's display terminal is 1, then pulse information is sent to the first bit of the second byte region on source port 0x33 to notify the first driver's display terminal that the second driver's display terminal has sent a pulse with pulse index 1. At this time, the first driver's display terminal reads the pulse transmission flag on source port 0x33 and checks if a pulse signal is being sent. If a pulse transmission signal is detected, the pulse information is retrieved from the pulse configuration array according to the correspondence between the pulse identifier and the pulse index, and processed according to the pulse type (bit pulse, byte pulse, word pulse). If it is a bit pulse, the pulse information is sent directly according to the pulse information. If it is a byte or word pulse, the value sent in the corresponding pulse information transmission source port on the second source port is retrieved according to the pulse configuration information, and then filled into the pulse configuration information of the first source port to complete the data synchronization transmission.
[0069] As described above, the data synchronization method for the driver display terminal provided in this embodiment of the invention can distinguish between level signals and pulse signals. It obtains the current data port or the transmitted pulse identifier based on the level signal and pulse identifier, eliminating the need to read all information from the other party's display terminal and improving program execution efficiency. For pulse signal synchronization, after obtaining the pulse transmission identifier of the other party's display unit, it uses local pulse configuration information to transmit pulses, enabling unified management of pulse information. This increases the flexibility of pulse information, allowing the transmission of various types of pulses, including those with variable period lengths, for synchronization.
[0070] This invention provides a specific implementation of a data synchronization device for a driver display terminal capable of realizing all the contents of the data synchronization method for the driver display terminal. See [link to specific implementation details]. Figure 4 The data synchronization device for the driver display terminal specifically includes the following components:
[0071] Source port unit 10 is used to determine the source port and signal synchronization port for the first driver display terminal to send the first synchronization data;
[0072] Synchronization signal unit 20 is used to generate a first synchronization signal based on the first encoding number corresponding to the source port;
[0073] The signal transmitting unit 30 is used to transmit the first synchronization signal to the second driver display terminal through the signal synchronization port, so that the second driver display terminal can obtain the first synchronization data sent by the first driver display terminal.
[0074] The first synchronization data includes: level data transmitted as a level signal and pulse data transmitted as a pulse signal;
[0075] The first synchronization signal includes two byte regions: a first byte region for level data synchronization and a second byte region for pulse data synchronization.
[0076] Specifically, the first synchronization data is determined to be level data, and the first encoding number corresponding to the source port is stored in the first byte area;
[0077] The first synchronization data is determined to be pulse data, and the first encoding number corresponding to the source port is stored in the second byte area.
[0078] The first byte region includes at least one byte of storage unit, and the second byte region includes at least thirty bytes of storage unit.
[0079] In one embodiment, the data synchronization device for the driver display terminal further includes:
[0080] The receiving unit is used to receive the second synchronization signal sent by the second driver display terminal and to parse the second synchronization signal to obtain the second encoding number carried in the second synchronization signal.
[0081] The parsing unit is used to determine the second source port for the second driver display terminal to send the second synchronization data based on the second encoding number;
[0082] The synchronization unit is used to obtain second synchronization data from the second driver display terminal based on the second source port.
[0083] In one embodiment, the data synchronization device for the driver display terminal further includes:
[0084] The first judgment unit is used to determine that the second synchronization data is level data based on the byte region where the second encoding number carried in the second synchronization signal is located.
[0085] The first processing unit is used to clear pulse data from the second synchronization data received from the second source port.
[0086] In one embodiment, the data synchronization device for the driver display terminal further includes:
[0087] The second judgment unit is used to determine that the second synchronization data is pulse data based on the byte region where the second encoding number carried in the second synchronization signal is located.
[0088] An insertion unit is used to determine that the type of the pulse data is a bit pulse, and then insert the bit pulse into the pulse transmission queue;
[0089] The second processing unit is used to determine whether the pulse data is a word pulse or a byte pulse, then obtain the value sent from the second source port of the second driver display terminal, insert the value sent from the second source port into the local pulse information, and insert the pulse information into the pulse transmission queue.
[0090] The embodiments of the data synchronization device for the driver display terminal provided by the present invention can be used to execute the processing flow of the data synchronization method for the driver display terminal in the above embodiments. Its functions will not be repeated here, but can be referred to the detailed description of the above method embodiments.
[0091] As described above, the data synchronization device for a driver display terminal provided in this embodiment of the invention determines the source port and signal synchronization port for the first driver display terminal to send the first synchronization data; generates a first synchronization signal based on the first encoding number corresponding to the source port; and sends the first synchronization signal to the second driver display terminal through the signal synchronization port, so that the second driver display terminal can obtain the first synchronization data sent by the first driver display terminal. When there is local data to be transmitted and needs to be synchronized, it can send a pulse signal through the signal synchronization port to notify the other party to read its own data at this time. This effectively handles data transmission information synchronization and improves the efficiency of data synchronization.
[0092] This invention provides an embodiment of an electronic device for implementing all or part of the data synchronization method embodiment for the driver display terminal, see [link to embodiment]. Figure 5 The electronic device specifically includes the following:
[0093] The system includes a processor 810, a communications interface 820, a memory 830, and a communication bus 840. The processor 810, communications interface 820, and memory 830 communicate with each other via the communication bus 840. The processor 810 can call computer instructions stored in the memory 830 to execute the following methods:
[0094] Determine the source port and signal synchronization port for the first driver's display terminal to send the first synchronization data;
[0095] A first synchronization signal is generated based on the first encoding number corresponding to the source port;
[0096] The first synchronization signal is sent to the second driver display terminal through the signal synchronization port, so that the second driver display terminal can obtain the first synchronization data sent by the first driver display terminal.
[0097] This invention provides a computer-readable storage medium for implementing all or part of the data synchronization method embodiments of the driver display terminal. The computer-readable storage medium stores computer instructions, which, when executed, cause the computer to perform all the steps of the data synchronization method for the driver display terminal in the above embodiments. For example, when the processor executes the computer instructions, it implements the following steps:
[0098] Determine the source port and signal synchronization port for the first driver's display terminal to send the first synchronization data;
[0099] A first synchronization signal is generated based on the first encoding number corresponding to the source port;
[0100] The first synchronization signal is sent to the second driver display terminal through the signal synchronization port, so that the second driver display terminal can obtain the first synchronization data sent by the first driver display terminal.
[0101] While this invention provides the method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-inventive labor. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual device or client product execution, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment).
[0102] In the embodiments provided by this invention, it should be understood that the disclosed methods and apparatus can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0103] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0104] In addition, the functional units in the embodiments provided by the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0105] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0106] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device (system) embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0107] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Those skilled in the art will understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0108] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or substitution of these aspects and / or embodiments. Furthermore, each aspect and / or embodiment of the present invention can be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0109] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. All should be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A data synchronization method for a driver display terminal, characterized in that, Applications to the first driver display terminal include: Determine the source port and signal synchronization port for the first driver's display terminal to send the first synchronization data; A first synchronization signal is generated based on the first encoding number corresponding to the source port; The first synchronization signal is sent to the second driver display terminal through the signal synchronization port, so that the second driver display terminal determines the source port for the first driver display terminal to send the first synchronization data based on the first encoding number carried in the first synchronization signal, and obtains the first synchronization data from the first driver display terminal based on the source port. The first synchronization data includes: level data transmitted as a level signal and pulse data transmitted as a pulse signal; the first synchronization signal includes two byte regions: a first byte region for level data synchronization and a second byte region for pulse data synchronization.
2. The data synchronization method for the driver display terminal according to claim 1, characterized in that, The first synchronization data is determined to be level data, and the first encoding number corresponding to the source port is stored in the first byte area; The first synchronization data is determined to be pulse data, and the first encoding number corresponding to the source port is stored in the second byte area.
3. The data synchronization method for the driver display terminal according to claim 2, characterized in that, The first byte region includes at least one byte of storage unit, and the second byte region includes at least thirty bytes of storage unit.
4. The data synchronization method for the driver display terminal according to claim 1, characterized in that, Also includes: Receive the second synchronization signal sent by the second driver display terminal and parse the second synchronization signal to obtain the second code number carried in the second synchronization signal; The second source port for the second driver display terminal to send the second synchronization data is determined according to the second code number; The second synchronization data is obtained from the second driver display terminal based on the second source port.
5. The data synchronization method for the driver display terminal according to claim 4, characterized in that, Also includes: The second synchronization data is determined to be level data based on the byte region where the second encoding number carried in the second synchronization signal is located. Clear the pulse data in the second synchronization data received from the second source port.
6. The data synchronization method for the driver display terminal according to claim 4, characterized in that, Also includes: The second synchronization data is determined to be pulse data based on the byte region containing the second encoding number carried in the second synchronization signal. If the type of the pulse data is determined to be a bit pulse, then the bit pulse is inserted into the pulse transmission queue; If the type of the pulse data is determined to be a word pulse or a byte pulse, then the value sent from the second source port of the second driver display terminal is obtained, the value sent from the second source port is inserted into the local pulse information, and the pulse information is inserted into the pulse transmission queue.
7. A data synchronization device for a driver display terminal, characterized in that, Applications to the first driver display terminal include: The source port unit is used to determine the source port and signal synchronization port for the first driver display terminal to send the first synchronization data. A synchronization signal unit is used to generate a first synchronization signal based on the first encoding number corresponding to the source port; A signal transmitting unit is configured to transmit the first synchronization signal to a second driver display terminal through the signal synchronization port, so that the second driver display terminal determines the source port from which the first driver display terminal transmits the first synchronization data based on the first encoding number carried in the first synchronization signal, and obtains the first synchronization data from the first driver display terminal based on the source port; the first synchronization data includes: level data transmitted as a level signal and pulse data transmitted as a pulse signal; the first synchronization signal includes two byte regions: a first byte region for level data synchronization and a second byte region for pulse data synchronization.
8. An electronic device, characterized in that, include: Processor, memory, communication interface, and communication bus; among which, The processor, communication interface, and memory communicate with each other via a communication bus; The processor is used to invoke computer instructions in memory to perform the steps of the data synchronization method for the driver display terminal according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, which, when executed, cause the computer to perform the steps of the data synchronization method for the driver display terminal according to any one of claims 1-6.
Citation Information
Patent Citations
Display data synchronization system and method
CN104133859A
