Data Transmission Method, Electronic Device, and Storage Medium
By dividing data lines into different preset ranges and calculating the sequence of sequence numbers according to the count value, the problem of inconsistent data lines arrangement order and data pin arrangement order in the display panel is solved, and data transmission without a large amount of storage space is realized.
Patent Information
- Application Number
- CN202310099898.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-06
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2043-02-06
AI Technical Summary
Due to edge R angle or other reasons, the arrangement order of data lines is inconsistent with the arrangement order of data pins on the driver chip, and a large storage space is needed to store the correspondence between the data lines and the data pins.
By dividing the data lines into different preset ranges, for the channel data corresponding to the data lines within different preset ranges, the sequence number step size is calculated based on the count value, and the mapping result of the current channel data is calculated based on the sequence number step size and the mapping result of the previous channel data, thereby determining the sequence number of the data pin corresponding to the channel data.
There is no need to use a larger storage space to store the correspondence between the data line and the data pin, reducing the need for storage space in the processor.
Smart Images

Figure CN116072040B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technologies, and particularly to a data transmission method, an electronic device, and a storage medium. Background Art
[0002] As Figure 1 shown, there are multiple data lines provided in the current display panel. The multiple data lines include data lines a1, a2, …, a8 arranged in sequence from left to right. Below the display panel, the data lines are electrically connected to a driving chip. During the display process, the driving chip transmits corresponding channel data to each data line to drive the display panel to display a corresponding picture. In theory, the data lines on the display panel should be electrically connected to the data pins on the driving chip in the same arrangement order. For example, the data lines a1~a8 arranged in sequence from left to right should be connected to the data pins b1~b8 arranged in sequence from left to right. However, due to the presence of an R corner (radian corner) or other reasons at the edge of the current display panel, some data lines need to be led from the peripheral area to the middle area and then connected to the data pins. In this way, the arrangement order of the data lines is inconsistent with the arrangement order of the data pins on the driving chip, which will cause the driving chip to require a large storage space to store the correspondence between the data lines and the data pins. Summary of the Invention
[0003] The technical solution of this application provides a data transmission method, an electronic device, and a storage medium, which do not require a large storage space to store the correspondence between the data lines and the data pins, and can determine the data pins corresponding to the data.
[0004] In a first aspect, an embodiment of the present application provides a data transmission method, including: sequentially determining the serial numbers of data pins corresponding to multiple channel data; wherein, determining the serial number of a data pin corresponding to a channel data includes: determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of a first preset serial number range, if so, mapping one of the starting serial number and the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data, and resetting the count value; determining whether the serial number of the data line corresponding to the current channel data belongs to a non-starting serial number of the first preset serial number range, if so, incrementing the current count value within the first counting range, determining the current serial number step according to the current count value, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data; determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of a second preset serial number range, if so, mapping the starting serial number of the second mapping range to the serial number of the data pin corresponding to the current channel data, and resetting the count value; determining whether the serial number of the data line corresponding to the current channel data belongs to a non-starting serial number of the second preset serial number range, if so, incrementing the current count value within the second counting range, determining the current serial number step according to the current count value, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data; transmitting the corresponding channel data based on the serial numbers of the data pins corresponding to the channel data.
[0005] In a possible implementation, resetting the count value means setting the current count value to 0; incrementing the current count value by 1 within the first counting range and determining the current sequence number step based on the current count value includes: determining whether the current count value is equal to the maximum value of the first counting range. If so, set the current count value to 1. If not, increment the current count value by 1. The maximum value of the first counting range is equal to RC0 + RC1 + RC2 + … + RCM, where M is a non - negative integer, RCi is a positive integer, and the value range of i is 0, 1, …, M; determining whether the current count value is equal to one of RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM. If so, use the interval value corresponding to the last addend among RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM that is equal to the current count value as the current sequence number step. If not, set the current sequence number step to 1. The interval value corresponding to RCi is Rseqi; incrementing the current count value by 1 within the second counting range and determining the current sequence number step based on the current count value includes: determining whether the current count value is equal to the maximum value of the second counting range. If so, set the current count value to 1. If not, increment the current count value by 1. The maximum value of the second counting range is equal to AC0 + AC1 + AC2 + … + ACM, where ACi is a positive integer; determining whether the current count value is equal to one of AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM. If so, use the interval value corresponding to the last addend among AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM that is equal to the current count value as the current sequence number step. If not, set the current sequence number step to 1. The interval value corresponding to ACi is Aseqi, and Aseqi = RCi + 1, Rseqi = ACi + 1.
[0006] In a possible implementation, determining the sequence number of the data pin corresponding to a channel data further includes: if the sequence number of the data line corresponding to the current channel data belongs to the third preset sequence number range, set the current sequence number step to 1, and map the sum of the sequence number of the data pin corresponding to the previous channel data and the current sequence number step to the sequence number of the data pin corresponding to the current channel data.
[0007] In a possible implementation, determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range. If so, the process of mapping one of the starting serial number and the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data includes: If the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range and the arrangement direction flag is positive, then map the starting serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data; If the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range and the arrangement direction flag is negative, then map the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data; If the serial number of the data line corresponding to the current channel data belongs to the non-starting serial number of the first preset serial number range and the arrangement direction flag is negative, then after determining the current serial number step according to the current count value, before mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data, it further includes: changing the current serial number step to a negative number.
[0008] In a possible implementation, M = 3.
[0009] In a possible implementation, determining the serial number of the data pin corresponding to a channel data further includes: If the serial number of the data line corresponding to the current channel data belongs to the fourth preset serial number range, then obtain the mapping value L corresponding to the current channel data, and map Q - L + 1 to the serial number of the data pin corresponding to the current channel data, where L is the serial number of the data pin corresponding to the channel data when Q - P + 1 is the serial number of the data line corresponding to the channel data, Q is the ending serial number of the fourth preset serial number range, and P is the serial number of the data line corresponding to the current channel data.
[0010] In a second aspect, a data transmission device is provided, including: a mapping module configured to sequentially determine the serial numbers of data pins corresponding to a plurality of channel data; wherein, determining the serial number of a data pin corresponding to a channel data includes: determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of a first preset serial number range, if so, mapping the starting serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data, and resetting the count value; determining whether the serial number of the data line corresponding to the current channel data belongs to a non-starting serial number of the first preset serial number range, if so, incrementing the current count value within the first counting range, determining the current serial number step according to the current count value, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data; determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of a second preset serial number range, if so, mapping the starting serial number of the second mapping range to the serial number of the data pin corresponding to the current channel data, and resetting the count value; determining whether the serial number of the data line corresponding to the current channel data belongs to a non-starting serial number of the second preset serial number range, if so, incrementing the current count value within the second counting range, determining the current serial number step according to the current count value, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data; a transmission module configured to transmit corresponding data based on the serial numbers of the data pins corresponding to the channel data.
[0011] In a third aspect, an electronic device is provided, including: a processor and a memory, the memory is configured to store at least one instruction, and when the instruction is loaded and executed by the processor, the above-mentioned data transmission method is implemented, and the processor includes a plurality of data pins arranged in sequence; a display panel, the display panel includes a plurality of first data lines arranged in sequence in a first area and a plurality of second data lines arranged in sequence in a second area, the plurality of first data lines are respectively connected to a plurality of first data pins among the plurality of data pins, the plurality of second data lines are respectively connected to a plurality of second data pins among the plurality of data pins, and the plurality of first data pins and the plurality of second data pins are arranged in an interleaved manner; the starting serial number and the ending serial number of the plurality of first data lines are respectively the starting serial number and the ending serial number of a first preset serial number range, the starting serial number and the ending serial number of the plurality of second data lines are respectively the starting serial number and the ending serial number of a second preset serial number range; the starting serial number and the ending serial number of the plurality of first data pins are respectively the starting serial number and the ending serial number of a first mapping range, and the starting serial number and the ending serial number of the plurality of second data pins are respectively the starting serial number and the ending serial number of a second mapping range.
[0012] In a possible implementation, a plurality of first data pins and a plurality of second data pins are arranged in sequence in the form of a plurality of repeating units. Each repeating unit sequentially includes RC0 first data pins, AC0 second data pins, RC1 first data pins, AC1 second data pins, RC2 first data pins, AC2 second data pins, …, RCM first data pins, ACM second data pins, where M is a non-negative integer; the reset count value is to set the current count value to 0; incrementing the current count value within the first count range and determining the current sequence number step size according to the current count value includes: determining whether the current count value is equal to the maximum value of the first count range. If so, set the current count value to 1. If not, increment the current count value. The maximum value of the first count range is equal to RC0 + RC1 + RC2 + … + RCM, where RCi is a positive integer and the value of i is 0, 1, …, M; determining whether the current count value is equal to one of RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM. If so, use the interval value corresponding to the last addend among RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM that is equal to the current count value as the current sequence number step size. If not, set the current sequence number step size to 1. The interval value corresponding to RCi is Rseqi; incrementing the current count value within the second count range and determining the current sequence number step size according to the current count value includes: determining whether the current count value is equal to the maximum value of the second count range. If so, set the current count value to 1. If not, increment the current count value. The maximum value of the second count range is equal to AC0 + AC1 + AC2 + … + ACM, where ACi is a positive integer; determining whether the current count value is equal to one of AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM. If so, use the interval value corresponding to the last addend among AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM that is equal to the current count value as the current sequence number step size. If not, set the current sequence number step size to 1. The interval value corresponding to ACi is Aseqi, and Aseqi = RCi + 1, Rseqi = ACi + 1.
[0013] In a possible implementation, the display panel includes a plurality of third data lines arranged in sequence in a third region, and the plurality of third data lines are sequentially connected to a plurality of third data pins among a plurality of data pins; the starting serial number and the ending serial number of the plurality of third data lines are respectively the starting serial number and the ending serial number of a third preset serial number range; the first region, the second region, and the third region are arranged in sequence on the display panel; determining the serial number of the data pin corresponding to a channel data further includes: if the serial number of the data line corresponding to the current channel data belongs to the third preset serial number range, setting the current serial number step to 1, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data.
[0014] In a possible implementation, if the plurality of first data lines are electrically connected to the plurality of first data pins in an ascending serial number arrangement, the arrangement direction identifier is positive; if the plurality of first data lines are electrically connected to the plurality of first data pins in a descending serial number arrangement, the arrangement direction identifier is negative; the process of determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of a first preset serial number range, and if so, mapping one of the starting serial number and the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data includes: if the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range, and the arrangement direction identifier is positive, mapping the starting serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data; if the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range, and the arrangement direction identifier is negative, mapping the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data; if the serial number of the data line corresponding to the current channel data belongs to the non-starting serial number of the first preset serial number range, and the arrangement direction identifier is negative, after determining the current serial number step according to the current count value, before mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data, further includes: changing the current serial number step to a negative number.
[0015] In a possible implementation, M = 3; each repeating unit sequentially includes RC0 first data pins, AC0 second data pins, RC1 first data pins, AC1 second data pins, RC2 first data pins, AC2 second data pins, RC3 first data pins, and AC3 second data pins.
[0016] In a possible implementation, determining the serial number of the data pin corresponding to a channel data further includes: if the serial number of the data line corresponding to the current channel data belongs to the fourth preset serial number range, obtaining the mapping value L corresponding to the current channel data, and mapping Q - L + 1 to the serial number of the data pin corresponding to the current channel data, where L is the serial number of the data pin corresponding to the channel data when Q - P + 1 is the serial number of the data line corresponding to the channel data, Q is the end serial number of the fourth preset serial number range, and P is the serial number of the data line corresponding to the current channel data; the display panel includes a plurality of fourth data lines arranged in sequence in the fourth region, and the plurality of fourth data lines are respectively connected to a plurality of fourth data pins among the plurality of data pins; there is a first connection order between the first data line and the second data line and the data pins, and there is a second connection order between the fourth data line and the data pins, and the first connection order and the second connection order are symmetrically arranged, and the fourth preset serial number range includes the serial number range of the plurality of fourth data lines.
[0017] In a fourth aspect, a computer storage medium is provided, including computer instructions, which, when running on an electronic device, cause the electronic device to execute the above data transmission method.
[0018] In the data transmission method, electronic device, and storage medium according to the embodiments of the present application, the data lines are divided into different preset ranges. For the channel data corresponding to the data lines within different preset ranges, according to their respective corresponding logics, the sequence number step size is calculated based on the count value, and the mapping result of the current channel data is calculated based on the sequence number step size and the mapping result of the previous channel data, so as to sequentially obtain the serial number of the data pin corresponding to the channel data, thereby determining through which data pin to transmit the channel data. In this way, it is not necessary to use a large storage space to store the correspondence between the data lines and the data pins, thus reducing the storage space requirement in the processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a schematic structural diagram of an electronic device in the related art;
[0020] Figure 2 is a schematic structural diagram of an electronic device in an embodiment of the present application;
[0021] Figure 3 is Figure 2 a schematic diagram of an arrangement manner of a data line at a partial position in
[0022] Figure 4 is Figure 2 a schematic diagram of a connection relationship between a data line and a data pin at a partial position in
[0023] Figure 5 is a schematic flowchart of a data transmission method in an embodiment of the present application;
[0024] Figure 6 Schematic diagram of a process for determining the serial number of a data pin corresponding to the data of one channel in an embodiment of the present application;
[0025] Figure 7 Pseudo-code flowchart for determining the serial number of a data pin corresponding to the data of one channel in an embodiment of the application;
[0026] Figure 8 For Figure 2 Schematic diagram of an arrangement mode of a data line at another part position in;
[0027] Figure 9 For Figure 2 Schematic diagram of the connection relationship between a data line and a data pin at another part position in;
[0028] Figure 10 For Figure 2 Another schematic diagram of the connection relationship between a data line and a data pin at a partial position in;
[0029] Figure 11 Pseudo-code flowchart for determining the serial number of a data pin corresponding to the data of one channel in another embodiment of the application;
[0030] Figure 12 For Figure 2 Another schematic diagram of the connection relationship between a data line and a data pin at a partial position in;
[0031] Figure 13 For Figure 2 Another schematic diagram of the connection relationship between a data line and a data pin at a partial position in;
[0032] Figure 14 Pseudo-code flowchart for determining the serial number of a data pin corresponding to the data of one channel in another embodiment of the application;
[0033] Figure 15 For Figure 2 Another schematic diagram of the arrangement relationship between a data line and a data pin in; Specific embodiments
[0034] The terms used in the embodiments part of the present application are only for explaining the specific embodiments of the present application, rather than aiming to limit the present application.
[0035] As Figure 2 、 Figure 3 And Figure 4 shown, an embodiment of the present application provides an electronic device, including: a processor 1 and a memory ( Figure 2(not shown in the figure), the memory is used to store at least one instruction. When the instruction is loaded and executed by the processor 1, a data transmission method is implemented. The specific process and principle of this data transmission method will be described in detail in the subsequent content. The processor 1 includes a plurality of data pins 10 arranged in sequence. For example, the sequence numbers of the plurality of data pins 10 of the processor 1 are arranged in ascending order from left to right; a display panel 2, the display panel 2 includes a plurality of first data lines 31 arranged in sequence in the first area 21 and a plurality of second data lines 32 arranged in sequence in the second area 22. For example, a1 - a216 are the first data lines 31, and a217 - a755 are the second data lines 32. The plurality of first data lines 31 are respectively connected to a plurality of first data pins 11 among the plurality of data pins 10, and the plurality of second data lines 32 are respectively connected to a plurality of second data pins 12 among the plurality of data pins 10. The plurality of first data pins 11 and the plurality of second data pins 12 are arranged in an interleaved manner; the starting sequence number RDs and the ending sequence number RDe of the plurality of first data lines 31 are respectively the starting sequence number and the ending sequence number of the first preset sequence range W1. For example, the starting sequence number RDs of the plurality of first data lines 31 and the starting sequence number of the first preset sequence range W1 are both 1, and the ending sequence number RDe of the plurality of first data lines 31 and the ending sequence number of the first preset sequence range W1 are both 216, that is, the first preset sequence range W1 is [RDs, RDe] = [1, 216]. The starting sequence number ADs and the ending sequence number ADe of the plurality of second data lines 32 are respectively the starting sequence number and the ending sequence number of the second preset sequence range W2. For example, the starting sequence number ADs of the plurality of second data lines 32 and the starting sequence number of the second preset sequence range W2 are both 217, and the ending sequence number Ade of the plurality of second data lines 32 and the ending sequence number of the second preset sequence range W2 are both 755, that is, the second preset sequence range W2 is [ADs, ADe] = [217, 755]; the starting sequence number RSs and the ending sequence number RSe of the plurality of first data pins 11 are respectively the starting sequence number and the ending sequence number of the first mapping range T1. For example, RSs = 1, RSe = 968, that is, T1 = [RSs, RSe] = [1, 968]. The starting sequence number ASs and the ending sequence number ASe of the plurality of second data pins 12 are respectively the starting sequence number and the ending sequence number of the second mapping range T2. For example, ASs = 2, ASe = 755, that is, T2 = [ASs, ASe] = [2, 755].
[0036] The display panel 2 further includes a plurality of pixels arranged in an array. Each column of pixels corresponds to a data line, and each data line is used to transmit data from the processor 1 to the pixels in the corresponding column, so that the pixels display corresponding gray levels according to the received data, thereby enabling the plurality of pixels arranged in an array to display an image. In the embodiments of the present application, the data lines and the data pins on the processor 1 are not electrically connected in sequence. For the processor 1, the data for displaying the image obtained by it is divided into multiple channel data, that is, each data line corresponds to one channel data. When the processor 1 obtains the channel data, it needs to determine the data pin to which the channel data belongs, and then transmit the channel data through the corresponding data pin. That is, the processor 1 determines the data pin corresponding to the channel data and transmits the data by executing the data transmission method. The data transmission method will be described below. It should be noted that the processor 1 in the embodiments of the present application refers to a processor used to drive the display panel 2 to implement image display. For example, when the electronic device is a mobile phone, in addition to including the display panel 2 and the processor 1 for driving the display panel, it may also include other processors such as an application processor (AP).
[0037] The processor may include one or more processing units. Different processing units may be independent devices or integrated in one or more processors.
[0038] The memory may be used to store computer-executable program code, and the executable program code includes instructions. The memory may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and applications required for at least one function (such as a sound playback function, an image playback function, etc.). The data storage area may store data created during the use of the electronic device (such as audio data, phone book, etc.). In addition, the memory may include a high-speed random access memory and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor executes various functional applications and data processing of the electronic device by running the instructions stored in the memory.
[0039] The electronic device may be a chip, a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a vehicle-mounted device, a smart car, a smart speaker, smart glasses, a smart TV, a server, etc.
[0040] As Figures 2 to 6 shown, an embodiment of the present application further provides a data transmission method, which can be applied to the electronic device in the above embodiment. The execution subject of this method is the processor 1, and this method includes:
[0041] Step 101: Determine the sequence numbers of the data pins 10 corresponding to multiple channel data in sequence;
[0042] Step 102: Transmit the corresponding channel data based on the sequence numbers of the data pins 10 corresponding to the channel data.
[0043] For example, during the display process of each frame of the display panel 2, each row of pixels needs to be scanned. During the process of scanning each row of pixels, the corresponding channel data is transmitted to the pixels in the corresponding column through each data line. During the transmission process, first, step 101 is executed. For the channel data to be transmitted, the sequence number of its corresponding data line is known. Therefore, the sequence numbers of the data pins corresponding to the channel data can be determined in sequence according to the sequence numbers of the data lines. For example, data lines a1 to a755 respectively correspond to channel data data1 to data755 in sequence. The first obtained channel data is data1. Therefore, the sequence number of the data pin 10 corresponding to the channel data data1 is first determined to be 1, that is, the channel data data1 can be transmitted through the data pin 10 of b1; the channel data obtained after data1 is data2, that is, the sequence number of the data pin 10 corresponding to the channel data data2 can be determined to be 5, and the channel data data2 is transmitted through the data pin 10 of b5; then the sequence number of the data pin 10 corresponding to the next channel data is determined, and so on, all the channel data can be determined and transmitted. The method for determining the data pin 10 corresponding to each channel data will be described below.
[0044] Among them, determining the sequence number of the data pin corresponding to a channel data includes:
[0045] Step 1011: Determine whether the sequence number of the data line corresponding to the current channel data is the starting sequence number RDs of the first preset sequence number range [RDs, RDe]. If so, execute step 1012: Map one of the starting sequence number RSs and the ending sequence number RSe of the first mapping range [RSs, RSe] to the sequence number of the data pin corresponding to the current channel data, and reset the count value cnt. If not, execute step 1013;
[0046] Step 1013: Determine whether the serial number of the data line corresponding to the current channel data belongs to the non-start serial numbers (RDs, RDe] within the first preset serial number range [RDs, RDe]. If so, execute Step 1014: Increment the current count value cnt by 1 within the first counting range, determine the current serial number step step according to the current count value cnt, and map the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data. If not, execute Step 1015;
[0047] Step 1015: Determine whether the serial number of the data line corresponding to the current channel data is the start serial number ADs within the second preset serial number range [ADs, ADe]. If so, execute Step 1016: Map the start serial number ASs within the second mapping range [ASs, ASe] to the serial number of the data pin corresponding to the current channel data, and reset the count value cnt; If not, execute Step 1017;
[0048] Step 1017: Determine whether the serial number of the data line corresponding to the current channel data belongs to the non-start serial numbers (ADs, ADe] within the second preset serial number range [ADs, ADe]. If so, execute Step 1018: Increment the current count value cnt by 1 within the second counting range, determine the current serial number step step according to the current count value cnt, and map the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data.
[0049] Specifically, the count value cnt and the serial number step step are dynamic data required in the process of determining the serial number of the data pin corresponding to the channel data, and their default values are, for example, 0, that is, the reset count value cnt = 0, and the serial number step step can be calculated according to the current cnt.
[0050] In the above Steps 1012, 1014, 1016, and 1018, after the mapping determination of the serial number of the data pin corresponding to the current channel data is completed, enter the determination process of the next channel data, that is, use the next channel data to be determined as the current channel data and execute Step 1011 again.
[0051] For example, the initial channel data is data1, and its corresponding data line is a1 with a sequence number of 1. First, take data1 as the current channel data. In step 1011, it is determined that the sequence number 1 of the data line corresponding to data1 is the starting sequence number 1 of the first preset sequence number range [1, 216]. Therefore, step 1012 is executed to map 1 to the sequence number of the data pin corresponding to data1, that is, the data pin corresponding to data1 is 1, and cnt = 0 is reset. In this way, data1 can be transmitted to the corresponding data line a1 through the data pin b1; after the data pin corresponding to data1 is determined, the next channel data data2 is taken as the current channel data, its corresponding data line is a2, and the sequence number is 2. In step 1011, it is judged to be no, and in step 1013, it is determined that it belongs to (1, 216]. Therefore, step 1014 is executed to increment the current count value 0 by 1 to make cnt = 1, and according to cnt = 1, the current step = 4 is determined. The sum of the sequence number 1 of the data pin corresponding to data1 and the current sequence number step 4 is 5, and 5 is mapped to the sequence number of the data pin corresponding to data2, that is, the data pin corresponding to data2 is b5. In this way, data2 can be transmitted to the corresponding data line a2 through the data pin b5; then the next channel data data3 is taken as the current channel data, its corresponding data line is a3, and the sequence number is 3. In step 1013, it is determined that it belongs to (1, 216]. Therefore, step 1014 is executed to increment the current count value 1 by 1 to make cnt = 2, and according to cnt = 2, the current step = 3 is determined. The sum of the sequence number 5 of the data pin corresponding to data2 and the current sequence number step 3 is 8, and 8 is mapped to the sequence number of the data pin corresponding to data3, that is, the data pin corresponding to data3 is b8; the data line corresponding to data4 is a4, and the sequence number is 4. In step 1013, it is determined that it belongs to (1, 216]. Therefore, step 1014 is executed to increment the current count value 2 by 1 to make cnt = 3, and according to cnt = 3, the current step = 4 is determined. The sum of the sequence number 8 of the data pin corresponding to data3 and the current sequence number step 4 is 12, and 12 is mapped to the sequence number of the data pin corresponding to data4, that is, the data pin corresponding to data4 is b12; and so on. That is, the sequence numbers of the data pins corresponding to data1 to 216 can be determined. After the sequence number of the data pin corresponding to data216 is determined, the determination of the sequence number of the data pin corresponding to data217 is started. Its corresponding data line is a217, and the sequence number is 217, which is the starting sequence number of the second preset sequence number range [217, 755]. Therefore, the starting sequence number 2 of the second mapping range [2, 755] is mapped to the sequence number of the data pin corresponding to data217, that is, dota217 can be transmitted to the data line a217 through the data pin b2, and cnt is reset to 0;For data218, the serial number of its corresponding data line belongs to (217, 755]. Set cnt = 1, and determine step = 1 based on cnt = 1, 2 + 1 = 3, that is, the data pin corresponding to data218 is b3; and so on, the serial numbers of the data pins corresponding to data217~755 can be determined respectively.
[0052] In the electronic device and data transmission method of the embodiments of the present application, the data lines are divided into different preset ranges. For the channel data corresponding to the data lines within different preset ranges, each calculates the serial number step based on the count value according to the corresponding logic, and calculates the mapping result of the current channel data based on the serial number step and the mapping result of the previous channel data, so as to successively obtain the serial number of the data pin corresponding to the channel data, so as to determine through which data pin to transmit the channel data. In this way, it is not necessary to use a large storage space to store the correspondence between the data lines and the data pins, thereby reducing the storage space requirement in the processor.
[0053] In a possible implementation manner, as Figure 4 shown, multiple first data pins 11 and multiple second data pins 12 are arranged in sequence in the form of multiple repeating units 30. Figure 4 Only one repeating unit 30 is schematically shown in. Each repeating unit 30 successively includes RC0 first data pins 11, AC0 second data pins 12, RC1 first data pins 11, AC1 second data pins 12, RC2 first data pins 11, AC2 second data pins 12,..., RCM first data pins 11, ACM second data pins 12, where M is a non-negative integer. For example, in the Figure 4 shown structure, M = 1, RC0 = RC1 = 1, AC0 = 3, AC1 = 2, that is, each repeating unit 30 is composed of 1 first data pin 11, 3 second data pins 12, 1 first data pin 11, and 2 second data pins 12 arranged in sequence; resetting the count value means setting the current count value to 0. Adding 1 to the current count value within the first counting range, and determining the current serial number step according to the current count value includes: determining whether the current count value cnt is equal to the maximum value M1 of the first counting range. If so, set the current count value nct to 1. If not, add 1 to the current count value cnt. The maximum value M1 of the first counting range is equal to RC0 + RC1 + RC2 +... + RCM, where RCi is a positive integer and the value of i is 0, 1,..., M. For example, in the Figure 4In the example shown, M1 = 1 + 1 = 2; determine whether the current count value cnt is equal to one of RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM. If so, use the interval value corresponding to the last addend among RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM that is equal to the current count value cnt as the current sequence number step. If not, set the current sequence number step to 1. The interval value corresponding to RCi is Rseqi; increment the current count value by 1 within the second counting range, and determining the current sequence number step based on the current count value includes: determining whether the current count value cnt is equal to the maximum value M2 of the second counting range. If so, set the current count value cnt to 1. If not, increment the current count value by 1. The maximum value M2 of the second counting range is equal to AC0 + AC1 + AC2 + … + ACM, and ACi is a positive integer. For example, in Figure 4 the example shown, M2 = 3 + 2 = 5; determine whether the current count value cnt is equal to one of AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM. If so, use the interval value corresponding to the last addend among AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM that is equal to the current count value cnt as the current sequence number step. If not, set the current sequence number step step to 1. The interval value corresponding to ACi is Aseqi, and Aseqi = RCi + 1, Rseqi = ACi + 1. For example, in Figure 4 the example shown, the interval value Rseq0 corresponding to RC0 = 3 + 1 = 4, the interval value Rseq1 corresponding to RC1 = 2 + 1 = 3, the interval value Aseq0 corresponding to AC0 = 1 + 1 = 2, and the interval value Aseq1 corresponding to AC1 = 1 + 1 = 2.
[0054] Specifically, the embodiments of the present application will be described below in conjunction with Table 1, Figure 4 and Figure 7 using a specific scenario as an example.
[0055] Table 1
[0056]
[0057] Table 1 shows the data characteristics corresponding to the Figure 4 shown structure, Figure 7 and is Figure 6 a corresponding pseudo-code flowchart, which is only for Figure 4Taking the structure shown as an example, for instance, datai is the serial number of the data line corresponding to the current channel data. First, set i = 1. In step 1011, it is judged that data1 = 1 = RDs, so step 1012 is executed, and Sout = RSs = 1 is output. The output is the serial number of the data line corresponding to the current channel data, that is, it is determined that the current channel data is transmitted to the data line a1 through the data pin b1, and cnt = 0, last = Sout = 1. Then, make i = i + 1 = 2 to calculate the serial number of the data line corresponding to the next channel data. last is the data in the calculation process, representing the output result of the previous channel data, that is, the serial number of the data line corresponding to the previous channel data;
[0058] data2 = 2 ∈ (RDs, RDe], so step 10141 is executed. Since RC0 + RC1 = 1 + 1 = 2 ≠ cnt = 0, cnt = 0 + 1 = 1 is made. Then step 10142 is executed. Since cnt = 1 = RC0, step = Rseq0 = 4. Then step 10143 is executed. Sout = 1 + 4 = 5, that is, it is determined that the current channel data value is transmitted to the data line a2 through the data pin b5, last = Sout = 5, and then make i = 3;
[0059] data3 = 3 ∈ (RDs, RDe], so step 10141 is executed. Since RC0 + RC1 = 1 + 1 = 2 ≠ cnt = 1, cnt = 1 + 1 = 2 is made. Then step 10142 is executed. Since cnt = 2 = RC0 + RC1, step = Rseq1 = 3. Then step 10143 is executed. Sout = 5 + 3 = 8, that is, it is determined that the current channel data value is transmitted to the data line a3 through the data pin b8, last = Sout = 8, and then make i = 4;
[0060] data4 = 4 ∈ (RDs, RDe], so step 10141 is executed. Since RC0 + RC1 = 1 + 1 = 2 = cnt, cnt = 1 is made. Then step 10142 is executed. Since cnt = 1 = RC0, step = Rseq0 = 4. Then step 10143 is executed. Sout = 8 + 4 = 12, that is, it is determined that the current channel data value is transmitted to the data line a4 through the data pin b12, last = Sout = 12, and then make i = 5;
[0061] data5 = 5 ∈ (RDs, RDe], so step 10141 is executed. Since RC0 + RC1 = 1 + 1 = 2 ≠ cnt = 1, cnt is set to 1 + 1 = 2. Then step 10142 is executed. Since cnt = 2 = RC0 + RC1, step = Rseq1 = 3. Then step 10143 is executed. Sout = 12 + 3 = 15, which determines that the current channel data value data line a3 is transmitted through data pin b8. last = Sout = 8. Then i is set to 6, and so on. The count value cnt loops between 1 and 2, and the sequence number step size step is calculated based on different count values. Then the current output result is calculated through the current sequence number step size step and the previous output result, so that the first data pin 11 corresponding to the channel data can be determined, that is, the sequence numbers of the data pins corresponding to data1~216 can be determined. Then i = 217;
[0062] data217 = 217 = ADs, so step 1016 is executed. The output Sout = ASs = 2, and the output is the sequence number of the data line corresponding to the current channel data, that is, it is determined that the current channel data is transmitted to data line a217 through data pin b2. And cnt = 0, last = Sout = 2. Then i = 218;
[0063] data218 = 218 ∈ (ADs, ADe], so step 10181 is executed. Since AC0 + AC1 = 3 + 2 = 5 ≠ cnt = 0, cnt is set to 0 + 1 = 1. Then step 10182 is executed. Since cnt = 1 ≠ AC0 ≠ AC0 + AC1, step = 1. Then step 10183 is executed. Sout = 2 + 1 = 3, which determines that the current channel data value data line a218 is transmitted through data pin b3. last = Sout = 3. Then i = 219;
[0064] data219 = 219 ∈ (ADs, ADe], so step 10181 is executed. Since AC0 + AC1 = 3 + 2 = 5 ≠ cnt = 1, cnt is set to 1 + 1 = 2. Then step 10182 is executed. Since cnt = 2 ≠ AC0 ≠ AC0 + AC1, step = 1. Then step 10183 is executed. Sout = 3 + 1 = 4, which determines that the current channel data value data line a219 is transmitted through data pin b4. last = Sout = 4. Then i = 220;
[0065] data220 = 220 ∈ (ADs, ADe], so step 10181 is executed. Since AC0 + AC1 = 3 + 2 = 5 ≠ cnt = 2, cnt is made equal to 2 + 1 = 3. Then step 10182 is executed. Since cnt = 3 = AC0, step = Aseq0 = 2. Then step 10183 is executed. Sout = 4 + 2 = 6, that is, it is determined that the current channel data value data line a220 is transmitted through data pin b6. last = Sout = 6, and then i = 221 is made;
[0066] data221 = 221 ∈ (ADs, ADe], so step 10181 is executed. Since AC0 + AC1 = 3 + 2 = 5 ≠ cnt = 3, cnt is made equal to 3 + 1 = 4. Then step 10182 is executed. Since cnt = 4 ≠ AC0 ≠ AC0 + AC1, step = 1. Then step 10183 is executed. Sout = 6 + 1 = 7, that is, it is determined that the current channel data value data line a221 is transmitted through data pin b7. last = Sout = 7, and then i = 222 is made;
[0067] data222 = 222 ∈ (ADs, ADe], so step 10181 is executed. Since AC0 + AC1 = 3 + 2 = 5 ≠ cnt = 4, cnt is made equal to 4 + 1 = 5. Then step 10182 is executed. Since cnt = 5 = AC0 + AC1, step = Aseq1 = 2. Then step 10183 is executed. Sout = 7 + 2 = 9, that is, it is determined that the current channel data value data line a222 is transmitted through data pin b9. last = Sout = 9, and then i = 223 is made;
[0068] data223 = 223 ∈ (ADs, ADe], so step 10181 is executed. Since AC0 + AC1 = 3 + 2 = 5 = cnt = 5, cnt is made equal to 1. Then step 10182 is executed. Since cnt = 1 ≠ AC0 ≠ AC0 + AC1, step = 1. Then step 10183 is executed. Sout = 9 + 1 = 10, that is, it is determined that the current channel data value data line a223 is transmitted through data pin b10. last = Sout = 10, and then i = 224 is made. And so on, the count value cnt loops between 1 and 5, and the sequence number step size step is calculated based on different count values. Then the current output result is calculated through the current sequence number step size step and the previous output result, so that the second data pin 12 corresponding to the channel data can be determined, that is, the sequence numbers of the data pins corresponding to data217~755 can be determined.
[0069] In a possible implementation, such as Figure 8 and Figure 9As shown, the display panel includes a plurality of third data lines 33 arranged in sequence in the third region 23, and the plurality of third data lines 33 are sequentially connected to a plurality of third data pins 13 among a plurality of data pins; the starting serial number and the ending serial number of the plurality of third data lines 13 are respectively the starting serial number and the ending serial number of the third preset serial number range; the first region 21, the second region 22, and the third region 23 are arranged in sequence on the display panel; as Figure 6 and Figure 7 As shown, determining the serial number of the data pin corresponding to a channel data further includes: if the serial number of the data line corresponding to the current channel data belongs to the third preset serial number range, that is, if the judgment result in step 1017 is no, then execute step 1019, set the current serial number step to 1, and map the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data.
[0070] Specifically, for example, on the right side of data line a755, there are also data lines a756 to 1080 arranged in sequence from left to right. The data lines a756 to a1080 are the third data lines 33 in the third region 23. On the right side of data pin b755, there are also data pins b756 to 1080 arranged in sequence from left to right. For the data lines a756 to 1080 and the data pins b756 to 1080, they are not connected alternately, but are electrically connected in sequence. That is, a756 is electrically connected to b756, a757 is electrically connected to b757, and so on. Therefore, for the channel data data756 to 1080 corresponding to the data lines a756 to 1080, the serial number of the data pin corresponding to the current channel data can be directly determined by adding the serial number of the data pin corresponding to the previous channel data according to the serial number step step of 1. That is to say, starting from data756, the serial number of the data pin corresponding to each channel data is the serial number of the previous channel data pin plus 1.
[0071] In a possible implementation manner, as Figure 4 shown, if the plurality of first data lines 31 are electrically connected to the plurality of first data pins 11 in the order of increasing serial numbers, the arrangement direction identifier is positive. For example, D = 1 indicates that the arrangement direction identifier is positive; as Figure 10 shown, if the plurality of first data lines 31 are electrically connected to the plurality of first data pins 11 in the order of decreasing serial numbers, the arrangement direction identifier is negative. For example, D = 0 indicates that the arrangement direction identifier is negative.
[0072] As Figure 11 shown, the process of mapping one of the starting serial number and the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data when determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range includes:
[0073] If in step 1011, it is determined that the serial number of the data line corresponding to the current channel data is the starting serial number RDs of the first preset serial number range, and in step 10121, it is determined that the arrangement direction flag is positive, that is, D is not equal to 0, that is, D = 1, then execute step 10122, and map the starting serial number RSs of the first mapping range to the serial number of the data pin corresponding to the current channel data;
[0074] If in step 1011, it is determined that the serial number of the data line corresponding to the current channel data is the starting serial number RDs of the first preset serial number range, and in step 10121, it is determined that the arrangement direction flag is negative, that is, D = 0, that is, D is not equal to 1, then map the ending serial number RSe of the first mapping range to the serial number of the data pin corresponding to the current channel data;
[0075] If in step 1013, it is determined that the serial number of the data line corresponding to the current channel data belongs to the non - starting serial number (RDs, RDe] of the first preset serial number range, and in step 10144, it is determined that the arrangement direction flag is negative, that is, D = 0, then after determining the current serial number step size according to the current count value in step 10142, before executing step 1043, which maps the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step size to the serial number of the data pin corresponding to the current channel data, it further includes: step 10145, change the current serial number step size to a negative number, that is, make step=-step, and then execute step 10143;
[0076] If in step 1013, it is determined that the serial number of the data line corresponding to the current channel data belongs to the non - starting serial number (RDs, RDe] of the first preset serial number range, and in step 10144, it is determined that the arrangement direction flag is positive, that is, D is not equal to 0, then execute step 10143.
[0077] In Figure 4In the structure shown, M = 1, and each repeating unit 30 sequentially includes RC0 first data pins, AC0 second data pins, RC1 first data pins, AC1 second data pins, RC2 first data pins, AC2 second data pins, RC3 first data pins, and AC3 second data pins. For example, the repeating unit 30 is composed of 1 first data pin 11 (the first data pins of the 0th group), 3 second data pins 12 (the second data pins of the 0th group), 1 first data pin 11 (the first data pins of the 1st group), and 2 second data pins 12 (the second data pins of the 1st group) arranged in sequence. In other possible embodiments, M can be other values, that is, the repeating unit 30 can be composed of fewer groups of data pins or more groups of data pins. In a possible embodiment, M = 3, and the repeating unit 30 is composed of more groups of data pins, which can be compatible with more forms of data line connection logics. For various types of data line connection logics, the serial numbers of the data pins corresponding to the channel data can be determined through the technical solution of the embodiments of the present application.
[0078] For example, as Figure 12 shown, the repeating unit 30 is composed of 1 first data pin 11, 3 second data pins 12, 1 first data pin 11, 2 second data pins 12, 1 first data pin 11, 3 second data pins 12, 1 first data pin 11, and 2 second data pins 12 arranged in sequence. Figure 12 The data characteristics corresponding to the structure shown are shown in Table 2.
[0079] Table 2
[0080]
[0081] As Figure 13 shown, the repeating unit 30 is composed of 8 data pins arranged in sequence, with a second data pin 12 provided between any two adjacent first data pins 11, and a first data pin 11 provided between any two adjacent second data pins 12. Figure 13 The data characteristics corresponding to the structure shown are shown in Table 3.
[0082] Table 3
[0083]
[0084] Figure 14 It is a schematic diagram of the pseudocode flow of the data transmission method when M = 3.
[0085] In a possible embodiment, as Figure 15As shown, the display panel includes a plurality of fourth data lines arranged in sequence in the fourth region 24. The plurality of fourth data lines are respectively connected to a plurality of fourth data pins among the plurality of data pins. For example, the fourth data lines are a1081 to 2160, and the fourth data pins are b1081 to 2160. There is a first connection order between the first data line and the second data line and the data pins, and there is a second connection order between the fourth data line and the data pins. The first connection order and the second connection order are symmetrically arranged. The fourth preset serial number range includes the serial number range of the plurality of fourth data lines. Determining the serial number of the data pin corresponding to a channel data further includes: if the serial number of the data line corresponding to the current channel data belongs to the fourth preset serial number range, obtaining the mapping value L corresponding to the current channel data, and mapping Q - L + 1 to the serial number of the data pin corresponding to the current channel data. L is the serial number of the data pin corresponding to the channel data when Q - P + 1 is the serial number of the data line corresponding to the channel data, Q is the end serial number of the fourth preset serial number range, and P is the serial number of the data line corresponding to the current channel data.
[0086] Specifically, for example, in Figure 15 the structure shown, the connection order between a1 to 960 and b1 to 960 is the first connection order, and the connection order between a1081 to 2160 and b1081 to 2160 is the second connection order. The first connection order and the second connection order are symmetrically arranged. Therefore, when calculating the serial number of the data pin corresponding to the channel data data1081 of a1081, P = 1081, Q = 2160, 2160 - 1081 + 1 = 1080. Calculate the serial number of the data pin corresponding to a1080 as L according to the previous method, and map 2160 - L + 1 to the serial number of the data pin corresponding to data1081; for data1082, P = 1082, Q = 2160, 2160 - 1082 + 1 = 1079. Calculate the serial number of the data pin corresponding to a1079 as L according to the previous method, and map 2160 - L + 1 to the serial number of the data pin corresponding to data1080; and so on, the serial numbers of the data pins corresponding to data1081 to 2160 can be determined respectively.
[0087] The embodiment of the present application further provides a data transmission device, including: a mapping module, configured to sequentially determine the serial numbers of data pins corresponding to a plurality of channel data; wherein, determining the serial number of a data pin corresponding to a channel data includes: determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range, if so, mapping the starting serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data, and resetting the count value; determining whether the serial number of the data line corresponding to the current channel data belongs to the non-starting serial number of the first preset serial number range, if so, incrementing the current count value within the first count range, and determining the current serial number step according to the current count value, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data; determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of the second preset serial number range, if so, mapping the starting serial number of the second mapping range to the serial number of the data pin corresponding to the current channel data, and resetting the count value; determining whether the serial number of the data line corresponding to the current channel data belongs to the non-starting serial number of the second preset serial number range, if so, incrementing the current count value within the second count range, and determining the current serial number step according to the current count value, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data; a transmission module, configured to transmit the corresponding data based on the serial number of the data pin corresponding to the channel data.
[0088] This data transmission device can apply the data transmission method in any of the above embodiments. The specific process and principle are the same as those in the above embodiments and will not be elaborated here.
[0089] It should be understood that the above division of the data transmission device is only a division of logical functions. In actual implementation, it can be fully or partially integrated into a physical entity, or physically separated. And these modules can all be implemented in the form of software called by a processing element; they can also all be implemented in the form of hardware; or some modules can be implemented in the form of software called by a processing element, and some modules can be implemented in the form of hardware. For example, any one of the mapping module and the transmission module can be a separately established processing element, or can be integrated in the data transmission device, such as implemented in a certain chip of the data transmission device. In addition, it can also be stored in the memory of the data transmission device in the form of a program, and called and executed by a certain processing element of the data transmission device to perform the functions of the above respective modules. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together or independently implemented. The processing element mentioned here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by the hardware integrated logic circuit or software-form instructions in the processor element.
[0090] For example, these modules such as the mapping module and the transmission module can be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASICs), or, one or more digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call programs. Again, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0091] In a possible implementation, resetting the count value means setting the current count value to 0; incrementing the current count value by 1 within the first counting range and determining the current sequence number step based on the current count value includes: determining whether the current count value is equal to the maximum value of the first counting range. If so, set the current count value to 1. If not, increment the current count value by 1. The maximum value of the first counting range is equal to RC0 + RC1 + RC2 + … + RCM, where M is a non-negative integer and RCi is a positive integer, and the value range of i is 0, 1, …, M; determining whether the current count value is equal to one of RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM. If so, use the interval value corresponding to the last addend among RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM that is equal to the current count value as the current sequence number step. If not, set the current sequence number step to 1. The interval value corresponding to RCi is Rseqi; incrementing the current count value by 1 within the second counting range and determining the current sequence number step based on the current count value includes: determining whether the current count value is equal to the maximum value of the second counting range. If so, set the current count value to 1. If not, increment the current count value by 1. The maximum value of the second counting range is equal to AC0 + AC1 + AC2 + … + ACM, where ACi is a positive integer; determining whether the current count value is equal to one of AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM. If so, use the interval value corresponding to the last addend among AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM that is equal to the current count value as the current sequence number step. If not, set the current sequence number step to 1. The interval value corresponding to ACi is Aseqi, and Aseqi = RCi + 1, Rseqi = ACi + 1.
[0092] In a possible implementation, determining the sequence number of the data pin corresponding to a channel data further includes: if the sequence number of the data line corresponding to the current channel data belongs to the third preset sequence number range, set the current sequence number step to 1, and map the sum of the sequence number of the data pin corresponding to the previous channel data and the current sequence number step to the sequence number of the data pin corresponding to the current channel data.
[0093] In a possible implementation, determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range. If so, the process of mapping one of the starting serial number and the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data includes: If the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range and the layout direction flag is positive, then map the starting serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data; If the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range and the layout direction flag is negative, then map the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data; If the serial number of the data line corresponding to the current channel data belongs to the non-starting serial number of the first preset serial number range and the layout direction flag is negative, then after determining the current serial number step according to the current count value, before mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data, it further includes: changing the current serial number step to a negative number.
[0094] In a possible implementation, M = 3.
[0095] In a possible implementation, determining the serial number of the data pin corresponding to a channel data further includes: If the serial number of the data line corresponding to the current channel data belongs to the fourth preset serial number range, then obtain the mapping value L corresponding to the current channel data, and map Q - L + 1 to the serial number of the data pin corresponding to the current channel data, where L is the serial number of the data pin corresponding to the channel data when Q - P + 1 is the serial number of the data line corresponding to the channel data, Q is the ending serial number of the fourth preset serial number range, and P is the serial number of the data line corresponding to the current channel data.
[0096] The embodiments of the present application further provide a computer storage medium, including computer instructions. When the computer instructions run on an electronic device, the electronic device is enabled to execute the data transmission method in any of the above embodiments.
[0097] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in this application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, fiber optic, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state disk, SolidState Disk), etc.
[0098] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent the cases of A existing alone, A and B existing simultaneously, and B existing alone. Where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one of the following" and its similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or multiple.
[0099] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A data transmission method, characterized in that, comprising: successively determining the serial numbers of the data pins corresponding to multiple channel data; the data pins include a plurality of first data pins and a plurality of second data pins, and the plurality of first data pins and the plurality of second data pins are successively arranged in the form of a plurality of repeating units, and each repeating unit successively includes RC0 of the first data pins, AC0 of the second data pins, RC1 of the first data pins, AC1 of the second data pins, RC2 of the first data pins, AC2 of the second data pins,..., RCM of the first data pins, ACM of the second data pins, where M is a non-negative integer; wherein, determining the serial number of the data pin corresponding to a channel data includes: determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range, if so, mapping one of the starting serial number and the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data, and resetting the count value; determining whether the serial number of the data line corresponding to the current channel data belongs to the non-starting serial number of the first preset serial number range, if so, increasing the current count value by 1 within the first counting range, and determining the current serial number step according to the current count value, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data; determining whether the serial number of the data line corresponding to the current channel data is the starting serial number of the second preset serial number range, if so, mapping the starting serial number of the second mapping range to the serial number of the data pin corresponding to the current channel data, and resetting the count value; determining whether the serial number of the data line corresponding to the current channel data belongs to the non-starting serial number of the second preset serial number range, if so, increasing the current count value by 1 within the second counting range, and determining the current serial number step according to the current count value, and mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data; transmitting the corresponding channel data based on the serial numbers of the data pins corresponding to the channel data; the resetting the count value is to set the current count value to 0; the increasing the current count value by 1 within the first counting range and determining the current serial number step according to the current count value includes: determining whether the current count value is equal to the maximum value of the first counting range, if so, setting the current count value to 1, if not, increasing the current count value by 1, the maximum value of the first counting range is equal to RC0 + RC1 + RC2 +... + RCM, M is a non-negative integer, RCi is a positive integer, and the value of i is 0, 1,..., M; Determine whether the current count value is equal to one of RC0, RC0+RC1, …, RC0+RC1+RC2+…+RCM. If so, use the interval value corresponding to the last addend in RC0, RC0+RC1, …, RC0+RC1+RC2+…+RCM that is equal to the current count value as the current sequence number step size. If not, set the current sequence number step size to 1. The interval value corresponding to RCi is Rseqi; The step of incrementing the current count value within the second count range and determining the current sequence number step size according to the current count value includes: Determine whether the current count value is equal to the maximum value of the second count range. If so, set the current count value to 1. If not, increment the current count value by 1. The maximum value of the second count range is equal to AC0+AC1+AC2+…+ACM, where ACi is a positive integer; Determine whether the current count value is equal to one of AC0, AC0+AC1, …, AC0+AC1+AC2+…+ACM. If so, use the interval value corresponding to the last addend in AC0, AC0+AC1, …, AC0+AC1+AC2+…+ACM that is equal to the current count value as the current sequence number step size. If not, set the current sequence number step size to 1. The interval value corresponding to ACi is Aseqi, and Aseqi = RCi+1, Rseqi = ACi+1.
2. The method according to claim 1, wherein, the step of determining the sequence number of the data pin corresponding to a channel data further includes: If the sequence number of the data line corresponding to the current channel data belongs to the third preset sequence number range, set the current sequence number step size to 1, and map the sum of the sequence number of the data pin corresponding to the previous channel data and the current sequence number step size to the sequence number of the data pin corresponding to the current channel data.
3. The method according to any one of claims 1 to 2, wherein, the process of mapping one of the starting sequence number and the ending sequence number of the first mapping range to the sequence number of the data pin corresponding to the current channel data when determining whether the sequence number of the data line corresponding to the current channel data is the starting sequence number of the first preset sequence number range includes: If the sequence number of the data line corresponding to the current channel data is the starting sequence number of the first preset sequence number range and the arrangement direction flag is positive, map the starting sequence number of the first mapping range to the sequence number of the data pin corresponding to the current channel data; If the sequence number of the data line corresponding to the current channel data is the starting sequence number of the first preset sequence number range and the arrangement direction flag is negative, map the ending sequence number of the first mapping range to the sequence number of the data pin corresponding to the current channel data; If the sequence number of the data line corresponding to the current channel data belongs to the non-starting sequence number of the first preset sequence number range and the arrangement direction flag is negative, before mapping the sum of the sequence number of the data pin corresponding to the previous channel data and the current sequence number step size to the sequence number of the data pin corresponding to the current channel data after determining the current sequence number step size according to the current count value, further includes: Changing the current sequence number step size to a negative number.
4. The method according to claim 1, It is characterized in that M=3。 5. The method according to any one of claims 1 to 2, It is characterized in that The determination of the serial number of the data pin corresponding to a channel data further includes: If the serial number of the data line corresponding to the current channel data belongs to the fourth preset serial number range, obtain the mapping value L corresponding to the current channel data, and map Q - L + 1 to the serial number of the data pin corresponding to the current channel data. When Q - P + 1 is the serial number of the data line corresponding to the channel data, L is the serial number of the data pin corresponding to the channel data, Q is the end serial number of the fourth preset serial number range, and P is the serial number of the data line corresponding to the current channel data.
6. An electronic device, It is characterized in that Comprising: A processor and a memory, the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, it implements the data transmission method according to any one of claims 1 to 5. The processor includes a plurality of data pins arranged in sequence; A display panel, the display panel includes a plurality of first data lines arranged in sequence in a first area and a plurality of second data lines arranged in sequence in a second area. The plurality of first data lines are respectively connected to a plurality of first data pins among the plurality of data pins, and the plurality of second data lines are respectively connected to a plurality of second data pins among the plurality of data pins. The plurality of first data pins and the plurality of second data pins are arranged alternately; The start serial number and the end serial number of the plurality of first data lines are respectively the start serial number and the end serial number of the first preset serial number range, and the start serial number and the end serial number of the plurality of second data lines are respectively the start serial number and the end serial number of the second preset serial number range; The start serial number and the end serial number of the plurality of first data pins are respectively the start serial number and the end serial number of the first mapping range, and the start serial number and the end serial number of the plurality of second data pins are respectively the start serial number and the end serial number of the second mapping range.
7. The electronic device according to claim 6, It is characterized in that The plurality of first data pins and the plurality of second data pins are arranged in sequence in a plurality of repeating units. Each repeating unit sequentially includes RC0 first data pins, AC0 second data pins, RC1 first data pins, AC1 second data pins, RC2 first data pins, AC2 second data pins,..., RCM first data pins, ACM second data pins, and M is a non-negative integer; The reset count value is to set the current count value to 0; The adding 1 to the current count value within the first counting range and determining the current serial number step according to the current count value includes: Determine whether the current count value is equal to the maximum value of the first counting range. If so, set the current count value to 1. If not, add 1 to the current count value. The maximum value of the first counting range is equal to RC0 + RC1 + RC2 +... + RCM, and RCi is a positive integer, and the value range of i is 0, 1,..., M. Determine whether the current count value is equal to one of RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM. If so, use the interval value corresponding to the last addend among RC0, RC0 + RC1, …, RC0 + RC1 + RC2 + … + RCM that is equal to the current count value as the current sequence number step size. If not, set the current sequence number step size to 1. The interval value corresponding to RCi is Rseqi; The step of incrementing the current count value within the second counting range and determining the current sequence number step size according to the current count value includes: Determine whether the current count value is equal to the maximum value of the second counting range. If so, set the current count value to 1. If not, increment the current count value by 1. The maximum value of the second counting range is equal to AC0 + AC1 + AC2 + … + ACM, where ACi is a positive integer; Determine whether the current count value is equal to one of AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM. If so, use the interval value corresponding to the last addend among AC0, AC0 + AC1, …, AC0 + AC1 + AC2 + … + ACM that is equal to the current count value as the current sequence number step size. If not, set the current sequence number step size to 1. The interval value corresponding to ACi is Aseqi, and Aseqi = RCi + 1, Rseqi = ACi + 1.
8. The electronic device according to claim 6, wherein, the step of determining the sequence number of the data pin corresponding to one channel data further includes: If the sequence number of the data line corresponding to the current channel data belongs to the third preset sequence number range, set the current sequence number step size to 1, and map the sum of the sequence number of the data pin corresponding to the previous channel data and the current sequence number step size to the sequence number of the data pin corresponding to the current channel data; The display panel includes a plurality of third data lines arranged in sequence in the third area, and the plurality of third data lines are sequentially connected to a plurality of third data pins among the plurality of data pins; The starting sequence number and the ending sequence number of the plurality of third data lines are respectively the starting sequence number and the ending sequence number of the third preset sequence number range; The first area, the second area, and the third area are arranged in sequence on the display panel.
9. The electronic device according to any one of claims 6 to 8, wherein, If the plurality of first data lines are electrically connected to the plurality of first data pins in an ascending sequence number arrangement, the arrangement direction identifier is positive; If the plurality of first data lines are electrically connected to the plurality of first data pins in a descending sequence number arrangement, the arrangement direction identifier is negative; The process of determining whether the sequence number of the data line corresponding to the current channel data is the starting sequence number of the first preset sequence number range. If so, mapping one of the starting sequence number and the ending sequence number of the first mapping range to the sequence number of the data pin corresponding to the current channel data includes: If the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range and the layout direction flag is positive, then map the starting serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data; If the serial number of the data line corresponding to the current channel data is the starting serial number of the first preset serial number range and the layout direction flag is negative, then map the ending serial number of the first mapping range to the serial number of the data pin corresponding to the current channel data; If the serial number of the data line corresponding to the current channel data belongs to the non-starting serial numbers of the first preset serial number range and the layout direction flag is negative, then after determining the current serial number step according to the current count value, before mapping the sum of the serial number of the data pin corresponding to the previous channel data and the current serial number step to the serial number of the data pin corresponding to the current channel data, further include: Changing the current serial number step to a negative number.
10. The electronic device according to claim 7, wherein, M=3; Each of the repeating units sequentially includes RC0 of the first data pins, AC0 of the second data pins, RC1 of the first data pins, AC1 of the second data pins, RC2 of the first data pins, AC2 of the second data pins, RC3 of the first data pins, and AC3 of the second data pins.
11. The electronic device according to any one of claims 6 to 8, wherein, Determining the serial number of the data pin corresponding to a channel data further includes: If the serial number of the data line corresponding to the current channel data belongs to the fourth preset serial number range, obtain the mapping value L corresponding to the current channel data, and map Q - L + 1 to the serial number of the data pin corresponding to the current channel data, where L is the serial number of the data pin corresponding to the channel data when Q - P + 1 is used as the serial number of the data line corresponding to the channel data, Q is the ending serial number of the fourth preset serial number range, and P is the serial number of the data line corresponding to the current channel data; The display panel includes a plurality of fourth data lines sequentially arranged in a fourth area, and the plurality of fourth data lines are respectively connected to a plurality of fourth data pins among the plurality of data pins; The first data line and the second data line have a first connection order with the data pins, the fourth data line and the data pins have a second connection order, the first connection order and the second connection order are symmetrically arranged, and the fourth preset serial number range includes the serial number range of the plurality of fourth data lines.
12. A computer storage medium, wherein, It includes computer instructions that, when the computer instructions run on an electronic device, cause the electronic device to execute the data transmission method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Display panel and terminal equipment
CN114093275A
Driving chip and terminal equipment
CN115019712A