Communication control method for communication system, and communication system
By analyzing the historical communication data of the LED display screen and the data to be sent, determining the abnormal type of communication encoding ratio and performing encoding conversion, the communication stability problem caused by imbalance in the encoding ratio in the prior art is solved, and more stable communication is achieved system.
Patent Information
- Application Number
- CN202510019186.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2045-01-07
AI Technical Summary
In the existing LED display communication system, the imbalance in the ratio of encoding 0 and encoding 1 of the data signal will lead to poor communication stability, and the prior art has failed to effectively solve this problem.
By obtaining the historical communication data of the LED display screen and the display control data to be sent, the communication encoding ratio is analyzed. If the preset ratio is not met, the proportion abnormal type is determined, and the data to be sent is encoded and converted to obtain the target encoding to ensure communication The balance of coding ratio.
By analyzing the communication encoding ratio of historical communication data in real time, and coding and converting the transmitted data in a timely manner, the balance of the communication encoding ratio is improved, the communication stability problems caused by imbalance in the encoding ratio are effectively avoided, and the stability of the communication system is improved.
Smart Images

Figure CN119446052A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display communication technology, and in particular to a communication control method of a communication system and a communication system. Background Art
[0002] In the existing LED display communication system, the architecture is usually a combination of a master control end and one or more drive circuits. The master control end is responsible for generating and sending data signals and control signals to each drive circuit to accurately control the state of each LED light, thereby achieving the desired visual effect. However, in actual applications, since the data signals sent by the master control end change in real time, if the ratio of code 0 and code 1 in these data signals is too unbalanced, it will have an adverse effect on the communication stability of the system.
[0003] With respect to the problem of poor communication stability of display communication systems in the prior art, no effective solution has been proposed yet. Summary of the invention
[0004] Based on this, it is necessary to provide a communication control method and a communication system for the above technical problems.
[0005] In a first aspect, the present application provides a communication control method of a communication system, the method comprising: Obtain the historical communication data of the LED display and the display control data to be sent; In the case where the communication coding ratio of the historical communication data does not meet the preset coding ratio, determining a ratio abnormality type corresponding to the communication coding ratio; Performing encoding conversion on the display control data to be sent according to the abnormal ratio type to obtain a target encoding; The drive circuit corresponding to the LED display screen is controlled for communication according to the target code.
[0006] In one embodiment, the method for determining the communication coding ratio of historical communication data includes: Determining the total amount of accumulated coding based on the historical communication data; According to the accumulated coding amount, determining a first accumulated total amount corresponding to the first coding and a second accumulated total amount corresponding to the second coding; the first coding and the second coding are inverse codes of each other; A communication coding ratio is determined according to a ratio of the first cumulative total to the second cumulative total.
[0007] In one of the embodiments, when the communication coding ratio of the historical communication data does not meet the preset coding ratio, determining the ratio abnormality type corresponding to the communication coding ratio includes: If the communication coding ratio is greater than the first coding ratio, determining that the ratio abnormality type corresponding to the communication coding ratio is the first abnormality type; If the communication coding ratio is smaller than the second coding ratio, it is determined that the ratio exception type corresponding to the communication coding ratio is the second exception type; wherein the second coding ratio is equal to the first coding ratio, or the second coding ratio is smaller than the first coding ratio.
[0008] In one embodiment, the ratio abnormality type includes a first abnormality type; and the encoding conversion of the display control data to be sent according to the ratio abnormality type to obtain a target encoding includes: If the ratio abnormality type is the first abnormality type, and the first code quantity in the display control data to be sent is greater than the second code quantity, performing inverse code conversion on the display control data to be sent to obtain a target inverse code corresponding to the display control data to be sent; Using the target inverse code as the target code; If the ratio abnormality type is the first abnormality type, and the first code quantity in the display control data to be sent is less than or equal to the second code quantity, the display control data to be sent is used as the target code.
[0009] In one embodiment, the ratio abnormality type includes a second abnormality type; and the encoding conversion of the display control data to be sent according to the ratio abnormality type to obtain a target encoding includes: If the ratio abnormality type is the second abnormality type, and the first code quantity in the display control data to be sent is less than the second code quantity, performing inverse code conversion on the display control data to be sent to obtain a target inverse code corresponding to the display control data to be sent; Using the target inverse code as the target code; If the ratio abnormality type is the second abnormality type, and the first code quantity in the display control data to be sent is greater than or equal to the second code quantity, the display control data to be sent is used as the target code.
[0010] In one embodiment, the communication control of the drive circuit corresponding to the LED display screen according to the target code includes: Comparing the display control data to be sent with the target code to determine the target flag bit; According to the target code and the target flag, communication control is performed on the drive circuit corresponding to the LED display screen.
[0011] In one embodiment, comparing the display control data to be sent with the target code to determine the target flag bit includes: If the target code is the same as the display control data to be sent, generating a first flag bit; If the target code is different from the display control data to be sent, a second flag is generated; the second flag is the inverse of the first flag; A target flag bit is obtained according to the first flag bit or the second flag bit.
[0012] In one embodiment, the communication control of the drive circuit corresponding to the LED display screen according to the target code and the target flag bit includes: Generate a target data packet according to the target code and the target flag bit according to a preset rule; According to the target data packet, communication control is performed on the drive circuit corresponding to the LED display screen.
[0013] In a second aspect, the present application further provides a communication system, the system comprising a main control terminal and an LED display screen; the main control terminal is in communication connection with the LED display screen; The master control end is used to execute the communication control method of the communication system described in any one of the embodiments of the first aspect above.
[0014] In a third aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in any one of the embodiments of the first aspect above are implemented.
[0015] In a fourth aspect, the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method described in any one of the embodiments of the first aspect above.
[0016] The communication control method and the communication system of the above-mentioned communication system obtain the historical communication data of the LED display screen and the display control data to be sent; based on the historical communication data, the changing trend of the communication coding ratio during the communication process can be accurately identified; and then when the communication coding ratio of the historical communication data does not meet the preset coding ratio, the ratio abnormality type corresponding to the communication coding ratio can be accurately determined; based on the ratio abnormality type, the display control data to be sent is coded and converted to obtain the target coding to ensure the balance of the communication coding ratio during the communication control process; the drive circuit corresponding to the LED display screen is communication controlled according to the target coding; based on this, by real-time analysis of the communication coding ratio of the historical communication data, the display control data to be sent can be timely coded and converted to obtain the target coding, thereby improving the balance of the communication coding ratio, effectively avoiding the problem of poor communication stability of the communication system caused by the imbalance of the coding ratio in the prior art, and improving the stability of the communication process of the communication system. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic flow chart of a communication control method of a communication system in one embodiment; Figure 2 A flow chart of the steps of a method for determining a communication coding ratio in one embodiment; Figure 3 A flow chart of the steps of a communication control method according to a target code in one embodiment; Figure 4 is a structural diagram of a communication system in one embodiment; Figure 5 FIG. 4 is an internal structure diagram of a communication system in one embodiment. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0020] In one embodiment, Figure 1 As shown, Figure 1The present invention is a flow chart of a communication control method of a communication system in an embodiment; the communication system includes a master control terminal and an LED display screen; the master control terminal is connected to the LED display screen for communication; the communication control method of the communication system, applied to the master control terminal of the communication system, includes the following steps: Step S101, acquiring historical communication data of the LED display screen and display control data to be sent.
[0021] Among them, the LED display screen includes at least one LED display module; the LED display module includes multiple driving circuits connected in series, cascade or parallel; each driving circuit is connected to and drives one or more LED lights; the driving circuit is used to control the display of the LED connected thereto according to display control data.
[0022] The historical communication data includes historical display control data and historical flag data; the historical display control data refers to the display control data that has been sent; the historical display control data includes one or more sent display control data; the display control data can be composed of binary coding groups; for example, the display control data is 00000001. It can be understood that the display control data is used to control the display of the LED connected to the drive circuit corresponding to the LED display screen. The display control data needs to be set according to the actual display control requirements and is not specifically limited here.
[0023] Among them, the historical flag data includes historical flags corresponding to one or more sent display control data; the historical flag is a binary code, which is used to characterize the type of historical code obtained after the sent display control data is converted; wherein the type of historical code includes an original data type and an inverse data type. Among them, the original data type means that the historical code is completely consistent with the sent display control data; the inverse data type means that the historical code and the sent display control data are inverses of each other. For example, assuming that the historical flag is "1", it is used to indicate that the type of historical code obtained after the sent display control data is converted is the inverse data type; assuming that the historical flag is "0", it is used to indicate that the type of historical code obtained after the sent display control data is converted is the original data type.
[0024] The display control data to be sent refers to the next set of display control data to be sent to the corresponding drive circuit of the LED display screen.
[0025] Step S102: when the communication coding ratio of the historical communication data does not satisfy the preset coding ratio, determine the ratio abnormality type corresponding to the communication coding ratio.
[0026] The communication coding ratio refers to the ratio of the first cumulative total corresponding to the first coding in the historical communication data to the second cumulative total corresponding to the second coding; the first coding and the second coding are inverse codes of each other; for example, if the first coding is "0", the second coding is "1"; if the first coding is "1", the second coding is "0". The first coding cumulative total refers to the sum of the first coding cumulative quantities in the historical communication data; the second coding cumulative total refers to the sum of the second coding cumulative quantities in the historical communication data.
[0027] It can be understood that since the historical communication data will be dynamically updated according to the actual communication control process, the first cumulative total corresponding to the first code and the second cumulative total corresponding to the second code will be updated accordingly with the update of the historical communication data, and then the communication coding ratio of the historical communication data will also change accordingly with the progress of time; based on this, by comparing the communication coding ratio with the preset coding ratio, it can be determined in real time whether there is an imbalance between the first coding and the second coding during the communication process, so as to make timely coding adjustments to ensure the balance of the communication coding ratio, that is, the ratio of the first coding and the second coding.
[0028] The preset coding ratio needs to be set according to actual communication requirements and is not specifically limited here. In an exemplary embodiment, the preset coding ratio may be a preset ratio threshold; the preset ratio threshold is a specific value; for example, the preset ratio threshold may be set to 1; in another embodiment, the preset coding ratio may be a preset ratio range; the preset ratio range is a numerical interval; for example, the preset ratio range may be set to 0.9~1.1.
[0029] Among them, the proportion abnormal type includes a first abnormal type and a second abnormal type; among them, the first abnormal type refers to the situation that the first cumulative total amount of the first code is excessive; the second abnormal type refers to the situation that the second cumulative total amount of the second code is excessive.
[0030] It is understandable that for different types of ratio anomalies, it is necessary to select a suitable coding conversion strategy to ensure that the communication coding ratio during the communication process is as balanced as possible, thereby ensuring the stability and reliability of the communication system during the communication process.
[0031] Step S103, performing code conversion on the display control data to be sent according to the type of the abnormal ratio to obtain a target code.
[0032] Among them, the target code can be the original binary code group corresponding to the display control data to be sent, or it can be the inverse code of the original binary code group corresponding to the display control data to be sent; it can be understood that the specific type of the target code needs to be determined according to the type of proportional abnormality, and no specific limitation is made here.
[0033] Step S104, performing communication control on the driving circuit corresponding to the LED display screen according to the target code.
[0034] Exemplarily, historical communication data corresponding to the LED display screen and the next set of display control data to be sent are obtained; based on the historical communication data, the communication coding ratio corresponding to the historical communication data is determined, and it is judged whether the communication coding ratio meets the preset coding ratio; specifically, when the communication coding ratio of the historical communication data does not meet the preset coding ratio, the proportion abnormality type corresponding to the communication coding ratio is determined; then, according to the proportion abnormality type, a coding conversion strategy corresponding to the proportion abnormality type is determined, and the display control data to be sent is subjected to corresponding coding conversion according to the coding conversion strategy to obtain the corresponding target coding; finally, based on the target coding, the drive circuit corresponding to the LED display screen is communication controlled.
[0035] In the present embodiment, based on the historical communication data, the changing trend of the communication coding ratio during the communication process can be accurately identified; and then, when the communication coding ratio of the historical communication data does not meet the preset coding ratio, the ratio abnormality type corresponding to the communication coding ratio can be accurately determined; based on the ratio abnormality type, the display control data to be sent is encoded and converted to obtain the target coding to ensure the balance of the communication coding ratio during the communication control process; the drive circuit corresponding to the LED display screen is communication controlled according to the target coding; based on this, by real-time analysis of the communication coding ratio of the historical communication data, the display control data to be sent can be timely encoded and converted to obtain the target coding, thereby improving the balance of the communication coding ratio, effectively avoiding the problem of poor communication stability of the communication system caused by the imbalance of the coding ratio in the prior art, and improving the stability of the communication process of the communication system.
[0036] In one embodiment, Figure 2 As shown, Figure 2 The figure is a flow chart of the steps of a method for determining a communication coding ratio in one embodiment; the method for determining a communication coding ratio of historical communication data comprises the following steps: Step S201, determining the total amount of accumulated coding based on historical communication data.
[0037] Among them, the historical communication data includes historical display control data and historical flag data; among them, the historical display control data includes one or more sent display control data; the display control data is composed of a binary coding group; the historical flag data includes historical flags corresponding one to one with one or more sent display control data; the historical flags are binary coded.
[0038] The total accumulated coding amount refers to the sum of all binary coding quantities contained in the historical communication data; that is, the total accumulated coding amount is equal to the sum of the total binary coding amount corresponding to the historical display control data and the total binary coding amount corresponding to the historical flag data.
[0039] Step S202: Determine a first cumulative total corresponding to the first code and a second cumulative total corresponding to the second code according to the cumulative total code.
[0040] The first code and the second code are inverse codes of each other. The first code cumulative total refers to the sum of the first code cumulative quantities in the historical communication data; the second code cumulative total refers to the sum of the second code cumulative quantities in the historical communication data.
[0041] Step S203, determining the communication coding ratio according to the ratio of the first cumulative total to the second cumulative total.
[0042] The communication coding ratio refers to the ratio of the first cumulative total to the second cumulative total; that is, the communication coding ratio = the first cumulative total / the second cumulative total.
[0043] Exemplarily, based on historical communication data, the sum of the total amount of binary codes corresponding to historical display control data and the total amount of binary codes corresponding to historical flag data in the historical communication data is calculated to obtain the cumulative total amount of codes; based on the cumulative total amount of codes, the first cumulative total amount corresponding to the first code and the second cumulative total amount corresponding to the second code are calculated; and then based on the ratio of the first cumulative total amount to the second cumulative total amount, the communication coding ratio is calculated.
[0044] In this embodiment, based on the first cumulative total corresponding to the first code and the second cumulative total corresponding to the second code, the current communication coding ratio can be accurately determined, and the changing trend of the communication coding ratio can be timely grasped, which lays the foundation for timely adjustment of the coding conversion strategy, and further lays the foundation for improving the stability of the communication system during the communication process.
[0045] In one embodiment, when the communication coding ratio of the historical communication data does not meet the preset coding ratio, determining the ratio abnormality type corresponding to the communication coding ratio includes the following steps: Step 1: If the communication coding ratio is greater than the first coding ratio, determine that the ratio abnormality type corresponding to the communication coding ratio is the first abnormality type.
[0046] Step 2: If the communication coding ratio is less than the second coding ratio, determine that the ratio abnormality type corresponding to the communication coding ratio is the second abnormality type.
[0047] The second coding ratio is equal to the first coding ratio, or the second coding ratio is smaller than the first coding ratio.
[0048] It should be noted that the first coding ratio and the second coding ratio are determined according to the preset coding ratio. When the preset coding ratio is a preset ratio threshold, that is, a specific numerical value, the first coding ratio is equal to the second coding ratio is equal to the preset ratio threshold; when the preset coding ratio is a preset ratio range, that is, a numerical range, the first coding ratio is equal to the upper limit of the preset ratio range, and the second coding ratio is equal to the lower limit of the preset ratio range; for example, when the preset ratio range is 0.9~1.1, the first coding ratio is equal to 1.1, and the second coding ratio is equal to 0.9; the second coding ratio is less than the first coding ratio.
[0049] The first abnormal type refers to a situation where the first accumulated total amount of the first code is excessive; the second abnormal type refers to a situation where the second accumulated total amount of the second code is excessive.
[0050] In an exemplary embodiment, taking the second coding ratio being equal to the first coding ratio as an example, if the communication coding ratio is equal to the first coding ratio, it is determined that the communication coding ratio is normal, and at this time, any coding conversion strategy can be selected for the display control data to be sent; if the communication coding ratio is greater than the first coding ratio, the ratio exception type corresponding to the communication coding ratio is determined to be the first exception type, and at this time, the coding conversion strategy corresponding to the first exception type needs to be selected for the display control data to be sent; if the communication coding ratio is less than the second coding ratio, it is determined that the ratio exception type corresponding to the communication coding ratio is the second exception type, and at this time, the coding conversion strategy corresponding to the second exception type needs to be selected for the display control data to be sent.
[0051] In another exemplary embodiment, taking the case where the second coding ratio is smaller than the first coding ratio as an example, if the communication coding ratio is between the second coding ratio and the first coding ratio, it is determined that the communication coding ratio is normal, and at this time, any coding conversion strategy can be selected for the display control data to be sent; if the communication coding ratio is greater than the first coding ratio, it is determined that the ratio exception type corresponding to the communication coding ratio is the first exception type, and at this time, a coding conversion strategy corresponding to the first exception type needs to be selected for the display control data to be sent; if the communication coding ratio is less than the second coding ratio, it is determined that the ratio exception type corresponding to the communication coding ratio is the second exception type, and at this time, a coding conversion strategy corresponding to the second exception type needs to be selected for the display control data to be sent.
[0052] It should be noted that the encoding conversion strategy corresponding to the first exception type is different from the encoding conversion strategy corresponding to the second exception type. The specific implementation method will be described in detail below and will not be repeated here.
[0053] In this embodiment, based on the communication coding ratio, the first coding ratio and the second coding ratio, the ratio anomaly type corresponding to the communication coding ratio can be accurately determined, and then the corresponding coding conversion strategy can be flexibly determined according to the ratio anomaly type, thereby improving the flexibility and stability of the communication process of the communication system.
[0054] In one embodiment, the ratio abnormality type includes a first abnormality type; performing encoding conversion on the display control data to be sent according to the ratio abnormality type to obtain a target encoding includes the following steps: Step 1: If the ratio abnormality type is the first abnormality type and the first code quantity in the display control data to be sent is greater than the second code quantity, the display control data to be sent is inversely converted to obtain the target inverse code corresponding to the display control data to be sent.
[0055] Step 2: Use the target inverse code as the target code.
[0056] Step 3: If the ratio abnormality type is the first abnormality type, and the first code quantity in the display control data to be sent is less than or equal to the second code quantity, the display control data to be sent is used as the target code.
[0057] It can be understood that this embodiment is a coding conversion strategy corresponding to the first exception type. When determining the coding conversion strategy corresponding to the first exception type, it is necessary not only to consider the ratio exception type, but also to combine the quantitative relationship between the first code and the second code in the display control data to be sent, so as to ensure that the communication coding ratio can be adjusted timely and accurately based on the target code, and ensure the balance of the communication coding ratio.
[0058] Exemplarily, when the proportion abnormality type is the first abnormality type, that is, when the first cumulative total amount of the first code is excessive, if the number of first codes in the display control data to be sent is greater than the number of second codes, the display control data to be sent is inversely converted to obtain the target inverse code corresponding to the display control data to be sent, and the target inverse code is used as the target code; if the number of first codes in the display control data to be sent is less than or equal to the number of second codes, the display control data to be sent is used as the target code. For example, assuming that the first code is "1" and the second code is "0", when the proportional abnormality type is the first abnormality type, that is, when the first cumulative total amount of the first code "1" is excessive, if the display control data to be sent is "11111000", the display control data "11111000" to be sent is inversely converted to obtain the target inverse code of "00000111", and the target inverse code "00000111" is used as the target code, that is, the target code is "00000111"; if the display control data to be sent is "00000011", the display control data to be sent is used as the target code, that is, the target code is "00000011".
[0059] In this embodiment, a coding conversion strategy corresponding to a first exception type is provided. The coding conversion strategy corresponding to the first exception type not only takes into account the proportional exception type, but also combines the quantitative relationship between the first code and the second code in the display control data to be sent, thereby ensuring that the communication coding ratio can be adjusted in a timely and accurate manner based on the target coding, thereby ensuring the balance of the communication coding ratio.
[0060] In one embodiment, the ratio abnormality type includes a second abnormality type; performing encoding conversion on the display control data to be sent according to the ratio abnormality type to obtain a target encoding includes the following steps: Step 1: If the ratio abnormality type is the second abnormality type and the first code quantity in the display control data to be sent is less than the second code quantity, the display control data to be sent is inversely converted to obtain a target inverse code corresponding to the display control data to be sent.
[0061] Step 2: Use the target inverse code as the target code.
[0062] Step 3: If the ratio abnormality type is the second abnormality type, and the first code quantity in the display control data to be sent is greater than or equal to the second code quantity, the display control data to be sent is used as the target code.
[0063] It can be understood that this embodiment is a coding conversion strategy corresponding to the second abnormal type. When determining the coding conversion strategy corresponding to the second abnormal type, it is necessary not only to consider the proportional abnormal type, but also to combine the quantitative relationship between the first code and the second code in the display control data to be sent, so as to ensure that the communication coding ratio can be adjusted timely and accurately based on the target coding, and ensure the balance of the communication coding ratio.
[0064] Exemplarily, when the proportion abnormality type is the second abnormality type, that is, when the second cumulative total amount of the second code is excessive, if the first code quantity in the display control data to be sent is less than the second code quantity, the display control data to be sent is inversely converted to obtain the target inverse code corresponding to the display control data to be sent, and the target inverse code is used as the target code; if the first code quantity in the display control data to be sent is greater than or equal to the second code quantity, the display control data to be sent is used as the target code. For example, assuming that the first code is "1" and the second code is "0", when the proportional abnormality type is the second abnormality type, that is, when the second cumulative total amount of the second code "0" is excessive, if the display control data to be sent is "00000001", the display control data to be sent "00000001" is inversely converted to obtain the target inverse code of "11111110", and the target inverse code "11111110" is used as the target code, that is, the target code is "11111110"; if the display control data to be sent is "111111100", the display control data to be sent is used as the target code, that is, the target code is "11111100".
[0065] In this embodiment, a coding conversion strategy corresponding to a second exception type is provided. The coding conversion strategy corresponding to the second exception type not only takes into account the proportional exception type, but also combines the quantitative relationship between the first code and the second code in the display control data to be sent, thereby ensuring that the communication coding ratio can be adjusted in a timely and accurate manner based on the target coding, thereby ensuring the balance of the communication coding ratio.
[0066] In one embodiment, Figure 3 As shown, Figure 3 The flowchart of the method steps of performing communication control according to the target code in one embodiment is as follows; performing communication control on the drive circuit corresponding to the LED display screen according to the target code includes the following steps: Step S301, comparing the display control data to be sent with the target code to determine the target flag.
[0067] Step S302, performing communication control on the drive circuit corresponding to the LED display screen according to the target code and the target flag.
[0068] The target flag bit includes a first flag bit or a second flag bit; wherein the first flag bit and the second flag bit are inverse codes of each other. For example, if the first flag bit is "1", the second flag bit is "0"; if the first flag bit is "0", the second flag bit is "1".
[0069] It should be noted that the target flag is used to mark the type of target coding so that the corresponding driving circuit can obtain accurate display control data according to the target flag. The type of target coding includes the original data type and the inverse data type. Among them, the original data type means that the target coding is completely consistent with the display control data to be sent; the inverse data type means that the target coding and the display control data to be sent are the inverse of each other. Specifically, the first flag is used to mark the type of target coding as the original data type; the second flag is used to mark the type of target coding as the inverse data type.
[0070] Exemplarily, after obtaining the target code, the display control data to be sent is compared with the target code to determine the corresponding target flag bit, and then the drive circuit corresponding to the LED display screen is communicated and controlled based on the target code and the target flag bit to ensure that the drive circuit can accurately obtain the corresponding display control data.
[0071] In this embodiment, based on the target flag bit, it can ensure that the drive circuit corresponding to the LED display screen accurately obtains the corresponding display control data, thereby improving the accuracy and reliability of communication control.
[0072] In one embodiment, comparing the display control data to be sent with the target code to determine the target flag bit includes the following steps: Step 1: If the target code is the same as the display control data to be sent, a first flag is generated.
[0073] Step 2: If the target code is different from the display control data to be sent, a second flag is generated.
[0074] The second flag bit and the first flag bit are inverse codes of each other. The first flag bit is used to mark the type of the target code as the original data type; the second flag bit is used to mark the type of the target code as the inverse data type.
[0075] Step 3, obtaining the target flag bit according to the first flag bit or the second flag bit.
[0076] Exemplarily, the display control data to be sent is compared with the target code. If the target code is the same as the display control data to be sent, a first flag is generated and the first flag is used as the target flag. If the target code is different from the display control data to be sent, a second flag is generated and the second flag is used as the target flag. For example, assume that "1" indicates that the target code is the same as the display control data to be sent, and "0" indicates that the target code is different from the display control data to be sent; taking the display control data to be sent as "00000001" as an example, if the target code is "00000001", at this time the target code is the same as the display control data to be sent, then a first flag is generated, and the first flag is "1"; then the first flag "1" is used as the target flag to mark the type of the target code as the original data type; if the target code is "11111110", at this time the target code is different from the display control data to be sent, then a second flag is generated, and the second flag is "0", and then the second flag "0" is used as the target flag to mark the type of the target code as the inverted data type.
[0077] In this embodiment, by comparing the display control data to be sent with the target code, the target flag bit can be accurately determined, which lays a foundation for improving the reliability and accuracy of the communication process of the communication system.
[0078] In one embodiment, communication control is performed on a drive circuit corresponding to an LED display screen according to a target code and a target flag, including the following steps: Step 1: Generate a target data packet according to the preset rules, target encoding and target flag.
[0079] Step 2: According to the target data packet, the drive circuit corresponding to the LED display screen is controlled for communication.
[0080] The preset rules need to be set according to the actual communication control requirements and are not specifically limited here. It should be noted that the preset rules determine the data structure corresponding to the target data packet; for example, the preset rules can be used to determine the target data packet in the form of "target code + target flag bit"; the preset rules can also be used to determine the target data packet in the form of "target flag bit + target code".
[0081] For example, assuming that the target code is "00000011" and the target flag is "1", if the preset rule "target code + target flag" is followed, the target data packet generated according to the target code and the target flag is "00000011-1"; if the preset rule "target flag + target code" is followed, the target data packet generated according to the target code and the target flag is "1-00000011". The target data packet is then sent to the drive circuit corresponding to the LED display screen to achieve communication control of the corresponding drive circuit. It is understandable that the drive circuit can parse the correct display control data according to the target flag in the target data packet.
[0082] In this embodiment, based on preset rules, the data structure corresponding to the target data packet can be accurately determined, and then based on the target data packet, the driving circuit can accurately parse the corresponding display control data according to the target flag bit in the target data packet, thereby improving the reliability and accuracy of communication control.
[0083] In a specific embodiment, it is assumed that the LED display screen corresponds to 4 groups of display control data, namely "00000001", "00000010", "00000011", and "00000100"; the first code is "0"; the second code is "1"; it is assumed that the preset coding ratio is 1; and it is assumed that the target flag is "0", indicating that the type of the target coding is the original data type; the target flag is "1", indicating that the type of the target coding is the inverted data type; the preset rule is "target flag + target coding"; the main control end of the communication system can obtain 4 groups of target data packets, namely "0-00000001", "1-11111101", "0-00000011", and "1-11111011" according to the 4 groups of display control data and the communication control method recorded in the above embodiment. Based on this, the balance of the communication coding ratio during the communication process can be ensured, thereby improving the reliability and stability of the communication process.
[0084] Specifically, before sending the first group of display control data "00000001" to be sent, it is determined that the total amount of accumulated coding is 0 according to the historical communication data, that is, the total amount of binary coding corresponding to the historical display control data and the total amount of binary coding corresponding to the historical flag data are both 0. At this time, the first group of display control data "00000001" to be sent can be converted according to any coding conversion strategy. This embodiment takes the target coding "00000001" corresponding to the first group of display control data "00000001" to be sent as an example. According to the target coding "00000001" and the first group of display control data "00000001" to be sent, it can be determined that the target flag is "0"; and then according to the preset rule "target flag + target coding", it can be determined that the target data packet is "0-00000001". According to the target data packet "0-00000001", the drive circuit corresponding to the first group of display control data to be sent in the LED display screen is controlled for communication. At this point, the sending of the first group of display control data to be sent is completed.
[0085] Similarly, before sending the second set of display control data "00000010" to be sent, according to the historical communication data "0-00000001", it is determined that the total accumulated coding amount is 9, that is, the total binary coding amount corresponding to the historical display control data is 8, and the total binary coding amount corresponding to the historical flag data is 1, wherein the first accumulated total amount of the first coding "0" is 8, and the second accumulated total amount of the second coding "1" is 1, and then the communication coding ratio is determined to be 8 / 1=8; the communication coding ratio 8 is greater than the preset coding ratio 1, and the ratio abnormality type is determined to be the first abnormality type, that is, the first coding "0" is excessive; and then according to the second set of display control data "00000010" to be sent, the first coding "0" number is determined. The amount is greater than the amount of the second code "1". At this time, the second group of display control data to be sent "00000010" needs to be reversed to obtain the target reverse code "11111101", and the target reverse code "11111101" is used as the target code; further, according to the target code "11111101" and the second group of display control data to be sent "00000010", the target flag bit can be determined to be "1"; the preset rule "target flag bit + target code" can determine that the target data packet is "1-11111101", and according to the target data packet "1-11111101", the drive circuit corresponding to the second group of display control data to be sent in the LED display screen is controlled for communication. At this point, the sending of the second group of display control data to be sent is completed, and so on. According to the above implementation process, the sending of the third and fourth groups of display control data to be sent is completed in sequence, which will not be repeated here.
[0086] The communication control method of the above-mentioned communication system obtains historical communication data of the LED display screen and display control data to be sent; based on the historical communication data, it can accurately identify the changing trend of the communication coding ratio during the communication process; and then when the communication coding ratio of the historical communication data does not meet the preset coding ratio, it can accurately determine the ratio abnormality type corresponding to the communication coding ratio; based on the ratio abnormality type, the display control data to be sent is encoded and converted to obtain the target coding to ensure the balance of the communication coding ratio during the communication control process; the drive circuit corresponding to the LED display screen is communication controlled according to the target coding; based on this, by real-time analysis of the communication coding ratio of the historical communication data, the display control data to be sent can be timely encoded and converted to obtain the target coding, which improves the balance of the communication coding ratio, effectively avoids the problem of poor communication stability of the communication system caused by the imbalance of the coding ratio in the prior art, and improves the stability of the communication process of the communication system.
[0087] In one embodiment, Figure 4 As shown, a communication system is provided, the system includes a main control terminal 100 and an LED display screen 200; the main control terminal 100 is connected to the LED display screen 200 for communication; The main control terminal 100 is used to execute the communication control method of the communication system recorded in any one of the above embodiments.
[0088] It should be noted that the main control end 100 at least includes a main control chip; the main control chip may be, but is not limited to, a microcontroller unit (MCU).
[0089] Among them, the LED display screen 200 includes at least one LED display module; the LED display module includes multiple driving circuits connected in series, cascade or parallel; each driving circuit is connected to and drives one or more LED lights; the driving circuit is used to control the display of the LED connected thereto according to the display control data.
[0090] In this embodiment, the communication system can timely perform corresponding coding conversion on the display control data to be sent to obtain the target coding by real-time analyzing the communication coding ratio of historical communication data, thereby improving the balance of the communication coding ratio, effectively avoiding the problem of poor communication stability of the communication system caused by the imbalance of coding ratio in the prior art, and improving the stability of the communication process of the communication system.
[0091] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0092] In an exemplary embodiment, a communication system is provided. The internal structure diagram of the communication system can be as follows: Figure 5 As shown. The communication system includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the communication system is used to provide computing and control capabilities. The memory of the communication system includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the communication system is used to store communication control related data of the communication system. The input / output interface of the communication system is used to exchange information between the processor and an external device. The communication interface of the communication system is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a communication control method of a communication system is implemented.
[0093] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the communication system to which the scheme of the present application is applied. The specific communication system may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0094] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0095] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0096] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0097] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0098] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A communication control method of a communication system, characterized in that: The method comprises: Obtain the historical communication data of the LED display and the display control data to be sent; In the case where the communication coding ratio of the historical communication data does not meet the preset coding ratio, determining a ratio abnormality type corresponding to the communication coding ratio; Performing encoding conversion on the display control data to be sent according to the abnormal ratio type to obtain a target encoding; The drive circuit corresponding to the LED display screen is controlled for communication according to the target code.
2. The method according to claim 1, characterized in that The method for determining the communication coding ratio of historical communication data includes: Determining the total amount of accumulated coding based on the historical communication data; According to the accumulated coding amount, determining a first accumulated total amount corresponding to the first coding and a second accumulated total amount corresponding to the second coding; the first coding and the second coding are inverse codes of each other; A communication coding ratio is determined according to a ratio of the first accumulated total amount to the second accumulated total amount.
3. The method according to claim 1, characterized in that When the communication coding ratio of the historical communication data does not meet the preset coding ratio, determining the ratio abnormality type corresponding to the communication coding ratio includes: If the communication coding ratio is greater than the first coding ratio, determining that the ratio abnormality type corresponding to the communication coding ratio is the first abnormality type; If the communication coding ratio is smaller than the second coding ratio, it is determined that the ratio exception type corresponding to the communication coding ratio is the second exception type; wherein the second coding ratio is equal to the first coding ratio, or the second coding ratio is smaller than the first coding ratio.
4. The method according to claim 1, characterized in that The ratio abnormality type includes a first abnormality type; and the encoding conversion of the display control data to be sent according to the ratio abnormality type to obtain a target encoding includes: If the ratio abnormality type is the first abnormality type, and the first code quantity in the display control data to be sent is greater than the second code quantity, performing inverse code conversion on the display control data to be sent to obtain a target inverse code corresponding to the display control data to be sent; Using the target inverse code as the target code; If the ratio abnormality type is the first abnormality type, and the first code quantity in the display control data to be sent is less than or equal to the second code quantity, the display control data to be sent is used as the target code.
5. The method according to claim 1, characterized in that The ratio abnormality type includes a second abnormality type; and the encoding conversion of the display control data to be sent according to the ratio abnormality type to obtain a target encoding includes: If the ratio abnormality type is the second abnormality type, and the first code quantity in the display control data to be sent is less than the second code quantity, performing inverse code conversion on the display control data to be sent to obtain a target inverse code corresponding to the display control data to be sent; Using the target inverse code as the target code; If the ratio abnormality type is the second abnormality type, and the first code quantity in the display control data to be sent is greater than or equal to the second code quantity, the display control data to be sent is used as the target code.
6. The method according to claim 1, characterized in that The communication control of the drive circuit corresponding to the LED display screen according to the target code includes: Comparing the display control data to be sent with the target code to determine the target flag bit; According to the target code and the target flag, communication control is performed on the drive circuit corresponding to the LED display screen.
7. The method according to claim 6, characterized in that The step of comparing the display control data to be sent with the target code to determine the target flag bit includes: If the target code is the same as the display control data to be sent, generating a first flag bit; If the target code is different from the display control data to be sent, a second flag is generated; the second flag is the inverse of the first flag; A target flag bit is obtained according to the first flag bit or the second flag bit.
8. The method according to claim 6, characterized in that The communication control of the drive circuit corresponding to the LED display screen according to the target code and the target flag bit includes: Generate a target data packet according to the target code and the target flag bit according to a preset rule; According to the target data packet, communication control is performed on the drive circuit corresponding to the LED display screen.
9. A communication system, characterized in that: The system includes a main control terminal and an LED display screen; the main control terminal is in communication connection with the LED display screen; The master control end is used to execute the communication control method of the communication system according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Transition controlled balanced encoding scheme
CA2411384A1
Signal transmission processing method and device and video data transmission method and system
CN104052577A
Data transmission method, device and system and display device
CN110224786A
Quantum random number post-processing method and device and quantum random number generator
CN110471644A
Signal transmission method, display driving circuit, electronic equipment and storage medium
CN115620656A