Data transmission method and device, electronic equipment, system and storage medium
Connect to the display module through a high-speed serial interface, use a preset communication protocol to encode data packets, and configure a communication interface controller to solve the hardware cost and signal interference problems caused by parallel transmission, and realize the connection between the module control device and the display module. Efficient and stable data transmission between
Patent Information
- Application Number
- CN202310322949.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the parallel transmission method between the module control device and the display module leads to increased hardware interface costs and signal interference between signal transmission lines, which reduces the reliability of data transmission and cannot meet the requirements of high resolution and high color depth. and other high-performance display requirements.
A high-speed serial interface is used to connect to the display module, and the communication data is encoded through the preset communication protocol of the high-speed serial interface to generate a transmission data packet, including a configuration field segment and a data field segment, which are used to configure the communication in the display module. interface controller and access the target device through the selected communication interface to achieve more efficient and stable data transmission between the module control device and the display module.
On the basis of saving hardware connection costs, more efficient and stable data transmission between module control equipment and display modules is achieved through high-speed serial interfaces, which reduces signal interference and improves the reliability of data transmission.
Smart Images

Figure CN118732970A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of display screen data transmission, and in particular, relates to a data transmission method, device, electronic equipment, system and storage medium. Background Art
[0002] With the continuous innovation and progress of display technology, in order to meet the high-performance display requirements such as high resolution and high color depth, more and more information needs to be exchanged between the module control device and the display module, such as basic display data, display screen calibration data, display module temperature, display module voltage, etc. In the related technology, parallel transmission is usually used to transmit multiple data to the display module at the same time to increase the data transmission speed. However, with the increase of interactive information, the interactive interface and signal transmission lines between the module control device and the display module are gradually increasing, and the interface system is becoming more and more complex, which not only increases the hardware cost, but also reduces the reliability of data transmission due to signal interference between signal transmission lines.
[0003] Therefore, it is urgent to propose a data transmission method to achieve more efficient and stable data transmission between the module control device and the display module. Summary of the invention
[0004] The embodiments of the present application provide a data transmission method, apparatus, electronic device, system and storage medium, which can achieve more efficient and stable data transmission between a module control device and a display module.
[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a module control device, wherein the module control device is connected to a display module via a high-speed serial interface, and the data transmission method includes:
[0006] Obtain communication data of the display module;
[0007] According to a preset communication protocol of the high-speed serial interface, the communication data is encoded to generate a transmission data packet, the transmission data packet at least including a first configuration field and a first data field, the first configuration field is used to configure the communication interface controller in the display module so that the corresponding communication interface outputs the communication data in the first data field to the target device according to the corresponding interface timing;
[0008] The transmission data packet is sent to the display module through a high-speed serial interface.
[0009] Optionally, the first configuration field includes an interface selection code and at least one interface feature configuration code; encoding the communication data according to a preset communication protocol of the high-speed serial interface to generate a transmission data packet includes:
[0010] According to a preset communication protocol of the high-speed serial interface, an interface selection code and at least one interface feature configuration code are written into corresponding positions of the first configuration field segment, and communication data are written into corresponding positions of the first data field segment;
[0011] A transmission data packet is generated based on the written contents of the first configuration field and the first data field in the preset communication protocol.
[0012] Optionally, the communication interface is an SPI interface, an I2C interface or a Uart interface;
[0013] Each communication interface corresponds to a different interface selection code, and the interface selection code is used to enable the display module to determine the target communication interface controller according to the corresponding relationship between the interface selection code and the communication interface controller;
[0014] Each interface selection code corresponds to a different type of interface feature configuration code, and the interface feature configuration code is used to enable the display module to configure the target communication interface controller.
[0015] Optionally, the transmission data packet further includes a first packet header feature code, a first packet tail feature code and a first check code field segment; encoding the communication data according to a preset communication protocol of the high-speed serial interface to generate a transmission data packet further includes:
[0016] Acquire a target verification method, and generate a first target verification code according to the target verification method, wherein the first target verification code is used to assist the display module in verifying the transmission data packet;
[0017] The first target check code is written into the corresponding position of the first check code field, and a transmission data packet is generated based on the first packet header feature code, the second packet tail feature code, the first target check code, the written content of the first configuration field and the written content of the first data field.
[0018] Optionally, the communication data includes at least data and instructions, and the data transmission method further includes:
[0019] Receive a return data packet transmitted by the display module through the high-speed serial interface, the return data packet includes a second packet header feature code, a second packet tail feature code, a second target check code, the written content of the second configuration field segment and the written content of the second data field segment, and the second target check code is used to assist the module control device to check the return data packet;
[0020] Determine the transmission data packet corresponding to the return data packet and the type of the return data packet according to the written content of the second configuration field in the return data packet;
[0021] According to the written content of the second data field in the returned data packet, the returned data corresponding to the instruction in the transmission data packet is determined.
[0022] In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a display module, wherein the display module includes an interface chip, and the display module is connected to a module control device via a high-speed serial interface on the interface chip; the data transmission method includes:
[0023] receiving a transmission data packet sent by a module control device through an interface chip;
[0024] Parsing a transmission data packet, determining a target communication interface controller to be configured, and configuring the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output communication data in the transmission data packet to the target device according to the corresponding interface timing, wherein the communication data includes at least data and instructions;
[0025] The control target device responds to the communication data and generates a return data packet which is sent to the module control device via a high-speed serial interface.
[0026] Optionally, the interface chip integrates a main controller and a plurality of communication interface controllers, each of which controls a type of communication interface; parsing the transmission data packet to determine the target communication interface controller to be configured includes:
[0027] Parsing the transmission data packet through the main controller to obtain the interface selection code in the transmission data packet;
[0028] According to the correspondence between the interface selection code and the communication interface controller, a target communication interface controller is determined from a plurality of communication interface controllers.
[0029] Optionally, configuring the target communication interface controller includes:
[0030] Determine the interface parameters required to be configured by the target communication interface controller according to the interface characteristic configuration code obtained by parsing the transmission data packet;
[0031] Based on the interface feature configuration code and the corresponding interface parameters, the target communication interface controller is configured.
[0032] Optionally, controlling the target device to respond to the communication data and generating a return data packet to send to the module control device via a high-speed serial interface includes:
[0033] When the transmission data packet is verified to be correct, the target device is controlled to respond to the communication data, and a return data packet is generated and sent to the module control device through a high-speed serial interface;
[0034] In the case of a checksum error in a transmission data packet, a return data packet representing the checksum error is generated and sent to the module control device via a high-speed serial interface, so that the module control device resends the transmission data packet.
[0035] Optionally, the interface chip integrates multiple communication interface controllers, communication interfaces corresponding to the communication interface controllers, and peripheral devices connected to the communication interfaces into the interface chip through chip sealing.
[0036] In a third aspect, an embodiment of the present application provides a data transmission device, which is applied to a module control device, and the module control device is connected to a display module through a high-speed serial interface. The data transmission device includes:
[0037] An acquisition module, used to acquire communication data of the display module;
[0038] A generating module, configured to encode the communication data according to a preset communication protocol of the high-speed serial interface to generate a transmission data packet, wherein the transmission data packet at least includes a first configuration field and a first data field, wherein the first configuration field is used to configure the communication interface controller in the display module so that the corresponding communication interface outputs the communication data in the first data field to the target device according to the corresponding interface timing;
[0039] The sending module is used to send the transmission data packet to the display module through the high-speed serial interface.
[0040] In a fourth aspect, an embodiment of the present application provides a data transmission device, which is applied to a display module, wherein the display module includes an interface chip, and the display module is connected to a module control device via a high-speed serial interface on the interface chip; the data transmission device includes:
[0041] A receiving module, used for receiving a transmission data packet sent by a module control device through an interface chip;
[0042] A parsing module, used to parse the transmission data packet, determine the target communication interface controller to be configured, and configure the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing, wherein the communication data at least includes data and instructions;
[0043] The response feedback module is used to control the target device to respond to the communication data and generate a feedback data packet to send to the module control device through a high-speed serial interface.
[0044] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the data transmission method described in the first aspect above is implemented, or the data transmission method described in the second aspect above is implemented.
[0045] In a sixth aspect, an embodiment of the present application provides a data transmission system, the data transmission system comprising a module control device and a display module connected to the module control device via a high-speed serial interface;
[0046] The module control device is used to obtain communication data of the display module, encode the communication data according to a preset communication protocol of the high-speed serial interface, generate a transmission data packet, and send the transmission data packet to the display module through the high-speed serial interface, wherein the transmission data packet includes at least a first configuration field segment and a first data field segment, and the first configuration field segment is used to configure the communication interface controller in the display module;
[0047] The display module is used to receive the transmission data packet sent by the module control device through the interface chip, determine the target communication interface controller that needs to be configured by parsing the transmission data packet, and configure the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing, controls the target device to respond to the communication data, and generates a return data packet to send to the module control device through the high-speed serial interface.
[0048] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the data transmission method described in the first aspect above, or implements the data transmission method described in the second aspect above.
[0049] In an eighth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the data transmission method described in the first aspect above, or implements the data transmission method described in the second aspect above.
[0050] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0051] In the embodiment of the present application, the module control device is connected to the display module through a high-speed serial interface, which firstly saves the hardware connection cost. Secondly, when the module control device transmits data with the display module, the communication data of the display module is encoded through the preset communication protocol of the high-speed serial interface to generate a transmission data packet. According to the preset communication protocol, the transmission data packet includes at least a first configuration field segment and a first data field segment, which are respectively used to configure the communication interface controller in the display module and provide the communication data required for transmission. The transmission data packet is sent to the display module through the high-speed serial interface. On the basis of saving the hardware connection cost, the target device in the display module can be accessed through the selected communication interface, thereby realizing more efficient and stable data transmission between the module control device and the display module. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0053] Figure 1 It is a structural diagram of a data transmission system provided in an embodiment of the present application;
[0054] Figure 2 It is a flowchart of a data transmission method provided by an embodiment of the present application;
[0055] Figure 3 It is a schematic diagram of the protocol structure of the transmission data packet provided in the embodiment of the present application;
[0056] Figure 4 is a structural diagram of another data transmission method provided in an embodiment of the present application;
[0057] Figure 5 is a schematic diagram of the structure of another data transmission system provided in an embodiment of the present application;
[0058] Figure 6 It is a structural schematic diagram of a data transmission device provided in an embodiment of the present application;
[0059] Figure 7 is a structural schematic diagram of another data transmission device provided in an embodiment of the present application;
[0060] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0062] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0063] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0064] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0065] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0066] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0067] In related display technologies, the data transmission method between the module control device and the display module has been widely used. In the traditional data transmission method, parallel transmission is usually used to transmit multiple communication data to the target device at the same time to increase the data transmission speed. However, with the continuous innovation and development of display technology, in order to meet the high-performance display requirements such as high resolution and high color depth, more and more information needs to be interacted between the module control device and the display module. The use of traditional parallel transmission not only increases the hardware interface cost and the transmission line cost, but also the signal interference between the signal transmission lines will reduce the reliability of data transmission, making the traditional parallel transmission method unable to meet the high-performance display requirements such as high resolution and high color depth.
[0068] In order to solve the above problems, the present application provides a data transmission method, device, electronic device, system and storage medium. In order to save hardware costs, the module control device in the present application is connected to the display module through a high-speed serial interface, and when the module control device transmits data between the display module, the communication data of the acquired display module is encoded through the preset communication protocol of the high-speed serial interface to generate a transmission data packet. According to the preset communication protocol, the transmission data packet includes at least a first configuration field segment and a first data field segment, which are respectively used to configure the communication interface controller in the display module and provide the communication data required for transmission. The transmission data packet is sent to the display module through the high-speed serial interface. On the basis of saving hardware connection costs, the target device in the display module can be accessed through the selected communication interface, thereby achieving more efficient and stable data transmission between the module control device and the display module.
[0069] In order to illustrate the technical solution of the present application, specific embodiments are provided below.
[0070] It should be understood that the size of the serial numbers of the steps in this embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0071] Reference Figure 1 , shows a schematic diagram of the structure of a data transmission system provided by an embodiment of the present application. Figure 1 As shown, the data transmission system includes a module control device and a display module, and the module control device is connected to the display module via a high-speed serial interface.
[0072] When realizing data transmission between the module control device and the display module through a high-speed serial interface, the module control device can first obtain the communication data of the display module, and then encode the communication data according to the preset communication protocol of the high-speed serial interface to generate a transmission data packet, and then send the transmission data packet to the display module through the high-speed serial interface. The display module can receive the transmission data packet sent by the module control device through the interface chip, and determine the target communication interface controller to be configured by parsing the transmission data packet, and then configure the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing. After transmitting the communication data to the target device, the target device is controlled to respond to the communication data, and a return data packet is generated and sent to the module control device through the high-speed serial interface, thereby completing the data transmission between the module control device and the display module. Data transmission through a high-speed serial interface can solve the problems of complex hardware cost and reduced data transmission reliability in the related technology, and realize more efficient and stable data transmission between the module control device and the display module.
[0073] Among them, the high-speed serial interface transmits information by transmitting data bits serially one by one. Compared with the low-speed serial interface, the high-speed serial interface can transmit more data in the same time, and has a shorter delay and a higher data transmission rate. The transmission rate of the high-speed serial interface is generally in the range of several hundred megabits to several gigabits, such as the low-voltage differential signaling (LVDS) interface and some high-speed SerDes serial interfaces, and some of the maximum transmission rates can even reach tens of Gbits / second to hundreds of Gbits / second, such as the USB4.0 interface or the PCIe interface; while the maximum transmission rate of the low-speed serial interface is generally hundreds of Kbits / second to tens of Mbits / second, and some transmission rates are even lower, such as the SPI interface, the I2C interface, and the Uart interface.
[0074] It should be noted that the present application does not limit the specific model of the high-speed serial interface, and a suitable high-speed serial interface can be selected according to the actual application scenario.
[0075] Among them, Figure 1 As shown, the processor architecture of the module control device can be a hardware architecture that combines the technical advantages of a microcontroller unit (MCU) and a field programmable gate array (FPGA), wherein the MCU and the FPGA can be connected through the external memory interface of the MCU, and the FPGA is regarded as an external logic processing unit. The return data packet received by the module control device is returned from the FPGA to the MCU, and can act as a hardware interrupt line and status indication. For example, after the FPGA determines that the received return data packet indicates a transmission data packet verification error, it sends an instruction to the MCU to resend the transmission data packet; or if the FPGA determines that the received return data indicates that the transmission data packet verification is correct, it sends an instruction to the MCU to send the next transmission data packet; that is, the FPGA is allowed to indicate to the MCU the next execution action or the key status of the device corresponding to the return data packet. This application does not limit the specific content of the indication.
[0076] Among them, Figure 1As shown, the display module uses an interface chip to receive the transmission data packet sent by the module control device. The interface chip integrates a main controller and multiple communication interface controllers. The communication interface controller refers to a processor for controlling the communication interface, such as an SPI controller, an I2C controller, and a Uart controller. After parsing the transmission data packet, the main controller of the interface chip can determine the target communication interface controller to be configured from multiple communication interface controllers. The target communication interface controller is configured, and the corresponding communication interface is controlled to output communication data to access the target device connected to the corresponding communication interface, where the target device can refer to a device integrated in the display module, such as a data storage device Flash in the display module, or a data acquisition device, such as a temperature sensor, a voltage sensor, and a pressure sensor.
[0077] Exemplarily, communication data is data in a broad sense, which may include at least data and instructions. For example, controlling the corresponding communication interface to output communication data to access the target device connected to the corresponding communication interface may be controlling the SPI interface to output display data to the driving device, and the driving device drives the LED array to light up according to the received data; it may also be controlling the SPI interface to output signal instructions to the temperature sensor, and the instructions are used to instruct the temperature sensor to collect the temperature value of the display module, and the temperature sensor executes the action of collecting the temperature value of the display module.
[0078] It should be noted that the above examples are only exemplary and cannot be regarded as limitations of the present application. In actual use, the corresponding communication interface can be controlled to output communication data to a device connected to the communication interface to access the device connected to the communication interface, wherein the device connected to the communication interface may be one or more, and the present application embodiment does not limit this.
[0079] As a possible implementation method, in order to make the internal structure of the display module simpler, multiple devices originally integrated in the display module can be integrated on the interface chip, that is, through the chip sealing packaging method, Flash storage can be designed directly in the interface chip, and various sensors and the external peripheral interfaces of the interface chip and various sensors can be merged into the interior of the interface chip to make the internal hardware structure of the display module simpler.
[0080] The module control device of the embodiment of the present application sends a transmission data packet to the display module through a high-speed serial interface, and by encoding the communication data in the transmission data packet, the display module can determine the target communication interface controller that needs to be configured after parsing the transmission data packet. The display module can configure the target communication interface controller by writing the content of the first configuration field in the transmission data packet, so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing, thereby achieving the purpose of accessing the target device. This data transmission process saves hardware connection costs, accesses the target device in the display module through the selected communication interface, and realizes more efficient and stable data transmission between the module control device and the display module.
[0081] See also Figure 2 , shows a flow chart of a data transmission method provided by an embodiment of the present application, the data transmission method is applied to Figure 1 The module control device shown in FIG. Figure 2 As shown, the data transmission method may include the following steps:
[0082] Step 201, obtaining communication data of the display module.
[0083] In an embodiment of the present application, a module control device is used to control a display module. During the operation of the display module, the module control device needs to send transmission data required by the display module to the display module and send instructions to an external device integrated in the display module to obtain relevant data collected by the external device. Therefore, during the operation of the display module, communication and data transmission are required between the module control device and the display module.
[0084] It should be noted that the communication data transmission between the module control device and the display module, the "communication data" transmitted is defined as data in a broad sense, and may include instructions and data required by external devices integrated in the display module.
[0085] In the embodiment of the present application, the module control device may refer to a sending card, a video processor, a video controller, a video distributor and other devices for controlling the display module. The module control device may obtain the communication data of the display module through a video source or an image source connected to the module control device. Specifically, the module control device may first obtain a frame of image data from the video source or the image source, and according to the specification of the display module, intercept the data required by the display module, and use the data as the communication data, or the module control device may receive the user's instruction to obtain the temperature of the display module when the display module is working, and then obtain the instruction to instruct the temperature sensor in the display module to collect the temperature, and use the instruction as the communication data, and the instruction may include device information such as the device address of the temperature sensor.
[0086] It should be noted that the above examples are only examples and cannot be regarded as limitations of the present application. During actual transmission, the communication data may be commands, addresses, data and other information required by the external devices integrated in the display module, and the present application does not limit this.
[0087] Step 202: Encode the communication data according to the preset communication protocol of the high-speed serial interface to generate a transmission data packet.
[0088] The module control device is connected to the display module via a high-speed serial interface. It should be noted that the high-speed serial interface sends and receives data bit by bit in a serial manner, which can ensure a high data transmission rate while avoiding problems such as crosstalk between channels common in parallel interfaces.
[0089] In an embodiment of the present application, when a high-speed serial interface is used for data transmission, the transmitted data packet needs to comply with a preset communication protocol of the high-speed serial interface, wherein in order to improve the scalability of communication transmission data, the protocol type of the preset communication protocol can be written or modified by the user, and a default preset communication protocol is stored in the module control device. After acquiring the communication data, the module control device can encode the communication data according to the preset communication protocol, encode the communication data of the SPI, I2C, Uart and other interfaces, and generate a transmission data packet.
[0090] Among them, since the module control device is connected to the display module through a high-speed serial interface, and the communication interfaces such as SPI, I2C, and Uart are not directly connected to the module control device, the module control device cannot directly access external devices connected to the communication interfaces such as SPI, I2C, and Uart. Therefore, the module control device needs to access external devices connected to the communication interfaces such as SPI, I2C, and Uart in the display module through the transmitted transmission data packets.
[0091] Specifically, a first configuration field and a first data field can be set in a transmission data packet. The first configuration field is used to configure the communication interface controller in the display module. The communication interface controller is used to control whether the corresponding communication interface is working and the working mode. Therefore, the content written in the first configuration field can enable the selected communication interface to output the communication data in the first data field to the target device according to its own interface timing, so as to enable the module control device to indirectly access external devices connected to communication interfaces such as SPI, I2C, and Uart through transmission data packets.
[0092] In a possible implementation, the first configuration field includes an interface selection code and at least one interface feature configuration code, and the above step 202 may specifically include:
[0093] According to a preset communication protocol of the high-speed serial interface, an interface selection code and at least one interface feature configuration code are written into corresponding positions of the first configuration field segment, and communication data are written into corresponding positions of the first data field segment;
[0094] A transmission data packet is generated based on the written contents of the first configuration field and the first data field in the preset communication protocol.
[0095] The interface selection code is used to select the communication interface to which the currently accessed target device is connected, and different interface selection codes correspond to different communication interfaces. Figure 3 In the protocol structure diagram of the transmission data packet shown, the Mode-0 position in the first configuration field is used to fill in the interface selection code. For example, filling in the interface selection code F1 means selecting the SPI interface, filling in the interface selection code F2 means selecting the I2C interface, and filling in the interface selection code F3 means selecting the Uart interface. The remaining Mode bits (i.e., Mode-1 to Mode-N) are filled in with at least one interface feature configuration code, wherein the interface feature configuration code is used to configure the interface parameters of the selected interface, and different interfaces correspond to different types of interface feature configuration codes.
[0096] Specifically, each communication interface corresponds to a different interface selection code, and the interface selection code is used to enable the display module to determine the target communication interface controller according to the correspondence between the interface selection code and the communication interface controller; the type of interface feature configuration code corresponding to each interface selection code is different, and the interface feature configuration code is used to enable the display module to configure the target communication interface controller; therefore, the display module can control the communication interface selected by the module control device to work to indirectly access the external device of the communication interface only after receiving the transmission data packet.
[0097] For example, when the interface selection code indicates that the SPI interface is selected, the interface feature configuration code can represent the access mode of the SPI. If the SPI interface is connected to multiple external devices, the interface feature configuration code can also represent which external device is configured to access the SPI. It can also include other features that need to be defined, such as the transmission data packet serial number. The above configurations can be achieved by writing corresponding content in Mode-1 to Mode-N.
[0098] Exemplarily, when the interface selection code indicates that the I2C interface is selected, the interface feature configuration code may include the address of the device accessed by the I2C interface, the access speed of the I2C interface, and other characteristics of the external device connected to the I2C interface. It may also include other characteristics that need to be defined, such as the transmission data packet serial number. Similarly, the above configurations can be achieved by writing corresponding content in Mode-1 to Mode-N.
[0099] Exemplarily, when the interface selection code indicates that the Uart interface is selected, the interface feature configuration code may include the working baud rate of the Uart interface, the end bit width, and whether to include check bits and other information. It may also include other features that need to be defined, such as the transmission data packet serial number. Similarly, the above configurations can be achieved by writing corresponding content in Mode-1 to Mode-N.
[0100] In the embodiment of the present application, according to Figure 3 The protocol structure shown writes the interface selection code and the corresponding at least one interface feature configuration code into the corresponding position of the first configuration field segment, and then writes the communication data into the Data-0 to Data-N field segment, so that a transmission data packet can be generated. The transmission data packet is sent to the display module, so that the module control device can indirectly access the external device connected to the communication interface such as SPI, I2C, Uart, etc. through the transmission data packet.
[0101] It should be understood that the length of the first configuration field segment and the first data field segment can be customized according to user needs, and this application does not limit this.
[0102] In a possible implementation, since the interface selection code is used to select the communication interface to which the currently accessed target device is connected, if there is only one communication interface in the data transmission system, the interface selection code in the first configuration field can be omitted.
[0103] In a possible implementation, if the communication interface in the data transmission system has only one working mode, or the interface parameters of the communication interface are all default, the interface feature configuration code in the first configuration field can be omitted.
[0104] In a possible implementation, the transmission data packet further includes a first packet header feature code, a first packet tail feature code, and a first check code field segment, and the above step 202 may further specifically include:
[0105] Obtaining a target verification method, and generating a first target verification code according to the target verification method;
[0106] The first target check code is written into the corresponding position of the first check code field, and a transmission data packet is generated based on the first packet header feature code, the first packet tail feature code, the first target check code, the written content of the first configuration field and the written content of the first data field.
[0107] The target verification method may refer to a verification method preset in the module control device, or may be a target verification method determined in response to a user's selection. It should be noted that there are multiple selectable verification methods, such as a sum verification method, a CRC verification method, or other verification methods, which are not limited in this application.
[0108] Since the verification form of each verification method is different, the generated verification code is also different, so it is necessary to first obtain the target verification method, generate the first target verification code according to the target verification method, and write the first target verification code into Figure 3 At the corresponding position of the check code shown, the first target check code is used to assist the display module in checking the transmission data packet.
[0109] Exemplarily, the first packet header feature code, the content written in the first configuration field, the content written in the first data field, the first target check code, and the first packet tail feature code are all written as follows: Figure 3 The transmission data packet can be generated in the protocol structure of the transmission data packet shown.
[0110] Step 203: Send the transmission data packet to the display module via the high-speed serial interface.
[0111] In an embodiment of the present application, sending a transmission data packet to a display module via a high-speed serial interface means transmitting the transmission data packet to the display module via a cable or wireless channel using a preset communication protocol of a preset high-speed serial interface, and the display module decodes the received transmission data packet and transmits a return data packet to the module control device.
[0112] In a possible implementation, the communication data includes at least data and instructions, and the data transmission method further includes:
[0113] Receive the return data packet transmitted by the display module through the high-speed serial interface;
[0114] Determine the transmission data packet corresponding to the return data packet and the type of the return data packet according to the written content of the second configuration field in the return data packet;
[0115] According to the written content of the second data field in the returned data packet, the returned data corresponding to the instruction in the transmission data packet is determined.
[0116] Among them, the return data packet includes a second packet header feature code, a second packet tail feature code, a second target check code, the written content of the second configuration field segment and the written content of the second data field segment. The format of the return data packet of the display module is basically the same as that of the received transmission data packet. The written content of the second configuration field segment may include a return packet serial number corresponding to the serial number in the received transmission data packet, and a field for distinguishing the return packet type; the second data field segment may contain no data (such as a transmission data packet check error return packet) or may contain a lot of data return packets (such as a transmission data packet instruction to collect data return packets); the second target check code is used to assist the module control device to verify the return data packet.
[0117] In an embodiment of the present application, the module control device is connected to the display module through a high-speed serial interface, which firstly saves the hardware connection cost. Secondly, when the module control device transmits data with the display module, the communication data of the display module is encoded through the preset communication protocol of the high-speed serial interface to generate a transmission data packet. According to the preset communication protocol, the transmission data packet includes at least a first configuration field segment and a first data field segment, which are respectively used to configure the communication interface controller in the display module and provide the communication data required for transmission. The transmission data packet is sent to the display module through the high-speed serial interface. On the basis of saving the hardware connection cost, the target device in the display module can be accessed through the selected communication interface, thereby realizing more efficient and stable data transmission between the module control device and the display module.
[0118] See also Figure 4 , shows a flow chart of another data transmission method provided by an embodiment of the present application, the data transmission method is applied to Figure 1 In the display module shown. Figure 2 As shown, the data transmission method may include the following steps:
[0119] Step 401: receiving a transmission data packet sent by a module control device through an interface chip.
[0120] Among them, the interface chip may refer to a chip integrated in the display module for managing multiple communication interfaces. In an embodiment of the present application, the interface chip integrates a high-speed serial interface and multiple communication interfaces for connecting to external devices of the display module.
[0121] In the embodiment of the present application, the display module is connected to the module control device via a high-speed serial interface on the interface chip, so the transmission data packet sent by the module control device can be received through the interface chip.
[0122] Step 402, parse the transmission data packet, determine the target communication interface controller to be configured, and configure the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing.
[0123] In an embodiment of the present application, since the transmission data packet includes a first configuration field segment, and the first configuration field segment includes an interface selection code and at least one interface feature configuration code, after parsing the transmission data packet, the interface selection code and at least one interface feature configuration code can be obtained, and the communication interface selected by the module control device can be determined according to the interface selection code, that is, the target communication interface controller to be configured can be determined, and then the target communication interface controller is configured according to at least one interface feature configuration code, so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing.
[0124] It should be understood that the interface timing of each communication interface outputting data is different, so the target communication interface controller needs to control the communication interface to output communication data according to its own interface timing based on the configured interface parameters, that is, the timing of the communication data output by the communication interface is different from the communication data packet transmission timing.
[0125] It should also be understood that since the external device connected to the communication interface may be one or more, when there is only one external device connected to the communication interface, after the selected communication interface is determined, the external device connected to the communication interface can be directly determined as the target device. When there are multiple external devices connected to the communication interface, after the selected communication interface is determined, the target device needs to be determined based on the parsed interface feature configuration code.
[0126] In a possible implementation, a main controller and multiple communication interface controllers are integrated in the interface chip, and each communication interface controller controls a type of communication interface; the above step 402 may specifically include:
[0127] Parsing the transmission data packet through the main controller to obtain the interface selection code in the transmission data packet;
[0128] According to the correspondence between the interface selection code and the communication interface controller, a target communication interface controller is determined from a plurality of communication interface controllers.
[0129] In the embodiment of the present application, the interface chip stores the correspondence between the interface selection code and the communication interface controller. Therefore, after the main controller parses the transmission data packet to determine the interface selection code, the target communication interface controller can be directly determined from multiple communication interface controllers.
[0130] It should be understood that in the embodiment of the present application, the main controller of the interface chip can transmit instructions to multiple communication interface controllers to configure the multiple communication interface controllers.
[0131] In a possible implementation, configuring the target communication interface controller may include:
[0132] Determine the interface parameters required to be configured by the target communication interface controller according to the interface characteristic configuration code obtained by parsing the transmission data packet;
[0133] Based on the interface feature configuration code and the corresponding interface parameters, the target communication interface controller is configured.
[0134] In the embodiment of the present application, the types of interface parameters that need to be configured by each communication interface controller are different. For example, when configuring the SPI interface, the access mode of the SPI interface can be configured, or the access device (i.e., the target device) can be configured; when configuring the I2C interface, the address of the device accessed by the I2C interface, the access speed of the I2C interface, and other characteristics of the external device connected to the I2C interface can be configured; when configuring the Uart interface, the working baud rate of the Uart interface, the end bit width, and whether to include the check bit and other information can be configured. The above interface parameters that need to be configured can all be obtained through the interface feature configuration code in the transmission data packet.
[0135] Step 403, controlling the target device to respond to the communication data, and generating a return data packet to send to the module control device via a high-speed serial interface.
[0136] In an embodiment of the present application, after receiving the communication data, the target device can respond to the communication data. When the communication data is display data, the target device can drive the display module to display according to the display data. When the communication data is an instruction, the target device can respond to the instruction and execute the instructions in the instruction.
[0137] In an embodiment of the present application, the data packet format of the return data packet is basically the same as the format of the transmission data packet, and the only difference is the internal written content. For example, the return data packet includes a second header feature code, a second tail feature code, a second target check code, the written content of the second configuration field segment, and the written content of the second data field segment. Among them, the written content of the second configuration field segment may include a return packet serial number corresponding to the serial number in the received transmission data packet, and a field for distinguishing the return packet type; the second data field segment may contain no data (such as a transmission data packet check error return packet) or may contain a lot of data return packets (such as a return packet of the instruction in the transmission data packet indicating the acquisition of data); the second target check code is used to assist the module control device in verifying the return data packet.
[0138] Exemplarily, specific packet return types may include the following: when using the SPI interface, the packet return type may include a data packet check error packet return, and a packet return in which each SPI data packet samples the MISO signal; when using the I2C interface, the packet return type may include a data packet check error packet return, an I2C read data response packet return, a slave response timeout packet return, etc.; when using the Uart interface, the packet return type may include a data packet check error packet return, a packet return for data received by the Uart controller, etc.
[0139] Among them, the second configuration field segment can be flexibly defined according to the number of return data packet types and business requirements, and this application does not limit this.
[0140] In a possible implementation, the above step 403 may specifically include:
[0141] When the transmission data packet is verified to be correct, the target device is controlled to respond to the communication data, and a return data packet is generated and sent to the module control device through a high-speed serial interface;
[0142] In the case of a checksum error in a transmission data packet, a return data packet representing the checksum error is generated and sent to the module control device via a high-speed serial interface, so that the module control device resends the transmission data packet.
[0143] In an embodiment of the present application, if the main controller of the display module verifies the transmission data packet error according to the first target verification code, there is no need to transmit data anymore, and a return data packet representing the data packet verification error is directly generated, and the second data field of the return data packet with the data packet verification error does not contain communication data.
[0144] In a possible implementation, the interface chip integrates multiple communication interface controllers, communication interfaces corresponding to the communication interface controllers, and peripheral devices connected to the communication interfaces into the interface chip through chip sealing.
[0145] In the embodiment of the present application, in order to make the internal structure of the display module simpler, multiple devices originally integrated in the display module can be integrated on the interface chip, that is, through the chip sealing packaging method, Flash storage is directly designed in the interface chip, and the external peripheral interfaces of various sensors and the interface chip and various sensors are merged into the interior of the interface chip, so as to make the internal hardware structure of the display module simpler.
[0146] In an embodiment of the present application, the interface chip of the display module can parse the received transmission data packet, and then determine the communication interface selected by the module control device and the target device to be accessed, and can configure the target communication interface controller by parsing the transmission data packet, so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing, controls the target device to respond to the communication data, and generates a return data packet to send to the module control device through the high-speed serial interface. Transmitting data only through the high-speed serial interface reduces hardware costs, and improves the reliability of data transmission by reducing signal interference between transmission lines.
[0147] See also Figure 6 , shows a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0148] The data transmission device 6 may specifically include the following modules:
[0149] An acquisition module 601 is used to acquire communication data of a display module;
[0150] A generating module 602 is used to encode the communication data according to a preset communication protocol of the high-speed serial interface to generate a transmission data packet, wherein the transmission data packet includes at least a first configuration field and a first data field, wherein the first configuration field is used to configure the communication interface controller in the display module so that the corresponding communication interface outputs the communication data in the first data field to the target device according to the corresponding interface timing;
[0151] The sending module 603 is used to send the transmission data packet to the display module through the high-speed serial interface.
[0152] In the embodiment of the present application, the first configuration field includes an interface selection code and at least one interface feature configuration code, wherein the generation module 602 may specifically include the following submodules:
[0153] A data writing submodule, used to write the interface selection code and at least one interface feature configuration code into the corresponding position of the first configuration domain segment according to the preset communication protocol of the high-speed serial interface, and write the communication data into the corresponding position of the first data domain segment;
[0154] The data packet generation submodule is used to generate a transmission data packet based on the written content of the first configuration field and the first data field in the preset communication protocol.
[0155] In the embodiment of the present application, the communication interface is an SPI interface, an I2C interface or a Uart interface;
[0156] Each communication interface corresponds to a different interface selection code, and the interface selection code is used to enable the display module to determine the target communication interface controller according to the corresponding relationship between the interface selection code and the communication interface controller;
[0157] Each interface selection code corresponds to a different type of interface feature configuration code, and the interface feature configuration code is used to enable the display module to configure the target communication interface controller.
[0158] In the embodiment of the present application, the transmission data packet further includes a first packet header feature code, a first packet tail feature code and a first check code field segment, wherein the generation module 602 may further include the following submodules:
[0159] A check code generation submodule is used to obtain a target check mode and generate a first target check code according to the target check mode, wherein the first target check code is used to assist the display module in checking the transmission data packet;
[0160] The check code writing submodule is used to write the first target check code into the corresponding position of the first check code field segment, and generate a transmission data packet based on the first packet header feature code, the second packet tail feature code, the first target check code, the written content of the first configuration field segment and the written content of the first data field segment.
[0161] In the embodiment of the present application, the communication data includes at least data and instructions, and the data transmission device may further include the following modules:
[0162] A return receiving module, used for receiving a return data packet transmitted by the display module through the high-speed serial interface, the return data packet includes a second packet header feature code, a second packet tail feature code, a second target check code, the written content of the second configuration field segment and the written content of the second data field segment, and the second target check code is used for assisting the module control device to check the return data packet;
[0163] A type determination module, used to determine the transmission data packet corresponding to the return data packet and the type of the return data packet according to the written content of the second configuration field in the return data packet;
[0164] The return data determination module is used to determine the return data corresponding to the instruction in the transmission data packet according to the written content of the second data field segment in the return data packet.
[0165] The data transmission device provided in the embodiment of the present application can be applied in the aforementioned method embodiment. For details, please refer to the description of the aforementioned method embodiment, which will not be repeated here.
[0166] See also Figure 7 , shows a schematic diagram of the structure of another data transmission device provided in an embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0167] The data transmission device 7 may specifically include the following modules:
[0168] The receiving module 701 is used to receive the transmission data packet sent by the module control device through the interface chip;
[0169] The parsing module 702 is used to parse the transmission data packet, determine the target communication interface controller to be configured, and configure the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing, and the communication data at least includes data and instructions;
[0170] The response return module 703 is used to control the target device to respond to the communication data and generate a return data packet to send to the module control device through a high-speed serial interface.
[0171] In the embodiment of the present application, a main controller and multiple communication interface controllers are integrated in the interface chip, and each communication interface controller controls a type of communication interface; wherein the parsing module 702 may specifically include the following submodules:
[0172] A selection code acquisition submodule is used to parse the transmission data packet through the main controller and obtain the interface selection code in the transmission data packet;
[0173] The target controller determination submodule is used to determine a target communication interface controller from a plurality of communication interface controllers according to the corresponding relationship between the interface selection code and the communication interface controller.
[0174] In the embodiment of the present application, the parsing module 702 may further include the following submodules:
[0175] The interface parameter determination submodule is used to determine the interface parameters required to be configured by the target communication interface controller according to the interface characteristic configuration code obtained by parsing the transmission data packet;
[0176] The configuration submodule is used to configure the target communication interface controller based on the interface feature configuration code and the corresponding interface parameters. In the embodiment of the present application, the response return module 703 may specifically include the following submodules:
[0177] The first check submodule is used to control the target device to respond to the communication data when the transmission data packet is checked to be correct, and to generate a return data packet and send it to the module control device through the high-speed serial interface;
[0178] The second check submodule is used to generate a return data packet representing the data packet check error when a transmission data packet check error occurs, and send the return data packet to the module control device through a high-speed serial interface so that the module control device resends the transmission data packet.
[0179] In the embodiment of the present application, the interface chip is sealed by chip sealing, and the interface chip is used to integrate multiple communication interface controllers, communication interfaces corresponding to the communication interface controllers, and peripheral devices connected to the communication interfaces.
[0180] The data transmission device provided in the embodiment of the present application can be applied in the aforementioned method embodiment. For details, please refer to the description of the aforementioned method embodiment, which will not be repeated here.
[0181] Figure 8 Schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 8 As shown, the electronic device 800 of this embodiment includes: at least one processor 810 ( Figure 8 Only one is shown in the figure) a processor, a memory 820, and a computer program 821 stored in the memory 820 and executable on the at least one processor 810, and when the processor 810 executes the computer program 821, the steps in the above-mentioned data transmission method embodiment are implemented.
[0182] The electronic device 800 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will appreciate that Figure 8 This is merely an example of the electronic device 800 and does not constitute a limitation on the electronic device 800 . The electronic device 800 may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0183] The processor 810 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0184] In some embodiments, the memory 820 may be an internal storage unit of the electronic device 800, such as a hard disk or memory of the electronic device 800. In other embodiments, the memory 820 may also be an external storage device of the electronic device 800, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 800. Further, the memory 820 may also include both an internal storage unit of the electronic device 800 and an external storage device. The memory 820 is used to store an operating system, an application program, a boot loader (Boot Loader), data and other programs, such as the program code of the computer program, etc. The memory 820 may also be used to temporarily store data that has been output or is to be output.
[0185] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0187] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0188] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0189] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0190] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0191] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0192] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be completed through a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing.
[0193] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A data transmission method, characterized in that: Applied to a module control device, the module control device is connected to a display module via a high-speed serial interface, and the data transmission method includes: Acquiring communication data of the display module; According to the preset communication protocol of the high-speed serial interface, the communication data is encoded to generate a transmission data packet, wherein the transmission data packet at least includes a first configuration field and a first data field, wherein the first configuration field is used to configure the communication interface controller in the display module so that the corresponding communication interface outputs the communication data in the first data field to the target device according to the corresponding interface timing; The transmission data packet is sent to the display module through the high-speed serial interface.
2. The data transmission method according to claim 1, characterized in that: The first configuration field segment includes an interface selection code and at least one interface feature configuration code; The step of encoding the communication data according to the preset communication protocol of the high-speed serial interface to generate a transmission data packet comprises: According to a preset communication protocol of the high-speed serial interface, writing the interface selection code and the at least one interface feature configuration code into corresponding positions of the first configuration field segment, and writing communication data into corresponding positions of the first data field segment; A transmission data packet is generated based on the written content of the first configuration field and the first data field in the preset communication protocol.
3. The data transmission method according to claim 2, characterized in that: The communication interface is an SPI interface, an I2C interface or a Uart interface; The interface selection code corresponding to each communication interface is different, and the interface selection code is used to enable the display module to determine the target communication interface controller according to the corresponding relationship between the interface selection code and the communication interface controller; The type of the interface feature configuration code corresponding to each interface selection code is different, and the interface feature configuration code is used to enable the display module to configure the target communication interface controller.
4. The data transmission method according to claim 1, characterized in that: The transmission data packet also includes a first packet header feature code, a first packet tail feature code and a first check code field; the communication data is encoded according to the preset communication protocol of the high-speed serial interface to generate a transmission data packet, and further includes: Acquire a target verification method, and generate a first target verification code according to the target verification method, wherein the first target verification code is used to assist the display module in verifying the transmission data packet; The first target check code is written into the corresponding position of the first check code field, and the transmission data packet is generated based on the first packet header feature code, the first packet tail feature code, the first target check code, the written content of the first configuration field and the written content of the first data field.
5. The data transmission method according to any one of claims 1 to 4, characterized in that: The communication data at least includes data and instructions, and the data transmission method further includes: receiving a return data packet transmitted by the display module through the high-speed serial interface, the return data packet including a second packet header feature code, a second packet tail feature code, a second target check code, content written in a second configuration field segment, and content written in a second data field segment, wherein the second target check code is used to assist the module control device in checking the return data packet; Determine, according to the written content of the second configuration field in the return data packet, a transmission data packet corresponding to the return data packet and a type of the return data packet; The returned data corresponding to the instruction in the transmission data packet is determined according to the written content of the second data field in the returned data packet.
6. A data transmission method, characterized in that: Applied to a display module, the display module includes an interface chip, and the display module is connected to the module control device via a high-speed serial interface on the interface chip; the data transmission method includes: receiving a transmission data packet sent by the module control device through the interface chip; Parsing the transmission data packet, determining the target communication interface controller to be configured, and configuring the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing, wherein the communication data at least includes data and instructions; The target device is controlled to respond to the communication data, and a return data packet is generated and sent to the module control device via the high-speed serial interface.
7. The data transmission method according to claim 6, characterized in that: The interface chip integrates a main controller and a plurality of communication interface controllers, each communication interface controller controls a type of communication interface; The step of parsing the transmission data packet and determining the target communication interface controller to be configured includes: Parsing the transmission data packet by the main controller to obtain the interface selection code in the transmission data packet; The target communication interface controller is determined from the plurality of communication interface controllers according to the corresponding relationship between the interface selection code and the communication interface controller.
8. The data transmission method according to claim 7, characterized in that: The configuring the target communication interface controller comprises: Determining the interface parameters required to be configured by the target communication interface controller according to the interface feature configuration code obtained by parsing the transmission data packet; The target communication interface controller is configured based on the interface feature configuration code and corresponding interface parameters.
9. The data transmission method according to claim 6, characterized in that: The controlling the target device to respond to the communication data and generate a return data packet and send it to the module control device through the high-speed serial interface includes: When the transmission data packet is verified to be correct, controlling the target device to respond to the communication data, and generating the return data packet to send to the module control device through the high-speed serial interface; In the case of verifying the transmission data packet error, a return data packet representing the data packet verification error is generated and sent to the module control device through the high-speed serial interface, so that the module control device resends the transmission data packet.
10. The data transmission method according to any one of claims 6 to 9, characterized in that: The interface chip integrates a plurality of communication interface controllers, communication interfaces corresponding to the communication interface controllers, and peripheral devices connected to the communication interfaces into the interface chip through chip sealing.
11. A data transmission device, characterized in that: Applied to a module control device, the module control device is connected to a display module via a high-speed serial interface, and the data transmission device includes: An acquisition module, used for acquiring communication data of the display module; a generating module, configured to encode the communication data according to a preset communication protocol of the high-speed serial interface to generate a transmission data packet, wherein the transmission data packet at least includes a first configuration field and a first data field, wherein the first configuration field is used to configure the communication interface controller in the display module so that the corresponding communication interface outputs the communication data in the first data field to the target device according to the corresponding interface timing; The sending module is used to send the transmission data packet to the display module through the high-speed serial interface.
12. A data transmission device, characterized in that: Applied to a display module, the display module includes an interface chip, and the display module is connected to the module control device via a high-speed serial interface on the interface chip; the data transmission device includes: A receiving module, used for receiving a transmission data packet sent by the module control device through the interface chip; A parsing module, used to parse the transmission data packet, determine the target communication interface controller to be configured, and configure the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing, wherein the communication data at least includes data and instructions; The response feedback module is used to control the target device to respond to the communication data and generate a feedback data packet and send it to the module control device through the high-speed serial interface.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented, or the method according to any one of claims 6 to 10 is implemented.
14. A data transmission system, characterized in that: The data transmission system includes a module control device and a display module connected to the module control device via a high-speed serial interface; The module control device is used to obtain communication data of the display module, encode the communication data according to the preset communication protocol of the high-speed serial interface, generate a transmission data packet, and send the transmission data packet to the display module through the high-speed serial interface, wherein the transmission data packet includes at least a first configuration field segment and a first data field segment, and the first configuration field segment is used to configure the communication interface controller in the display module; The display module is used to receive the transmission data packet sent by the module control device through the interface chip, determine the target communication interface controller that needs to be configured by parsing the transmission data packet, and configure the target communication interface controller so that the target communication interface controller controls the corresponding communication interface to output the communication data in the transmission data packet to the target device according to the corresponding interface timing, controls the target device to respond to the communication data, and generates a return data packet to send to the module control device through the high-speed serial interface.
15. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented, or the method according to any one of claims 6 to 10 is implemented.
Citation Information
Cited By
Display correction method, device, control equipment and system of display panel
CN121214819A
