Channel-associated information transmission method and apparatus, and device

By using the associated control information in the UFS protocol to transmit data and associated information in the same write IO, the problem of the lack of associated information transmission mechanism in the UFS protocol is solved, the efficiency and data security of UFS are improved, and the vehicle-mounted information is satisfied. data protection needs in the field.

WO2024174846A1PCT designated stage expired Publication Date: 2024-08-29HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/075556
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2024-02-02
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

The existing UFS protocol lacks an on-the-road information transmission mechanism, which limits the efficiency of UFS use. Especially in the automotive field, the need for end-to-end protection of data security has not been met.

Method used

By introducing associated control information into the UFS protocol, pre-transmission frames and data frames are used to transmit data and associated information in the same write IO, avoiding increased write operation delays and signaling interactions, and achieving efficient data transmission.

Benefits of technology

It realizes the efficient transmission of data and accompanying information in the UFS system, improves the usage efficiency and data security of UFS, and meets the end-to-end data protection needs in the automotive field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024075556_29082024_PF_FP_ABST
    Figure CN2024075556_29082024_PF_FP_ABST
Patent Text Reader

Abstract

A channel-associated information transmission method and apparatus, and a device, relating to the technical field of storage. Provided is a transmission mechanism for channel-associated information of data applied to UFS. The method comprises: a UFS device sends a first pre-transmission frame to a host, wherein the first pre-transmission frame is used for instructing to transmit first target data, the first pre-transmission frame comprises channel-associated control information, and the channel-associated control information is used for controlling transmission of first channel-associated information of the first target data; when the host receives the first pre-transmission frame, the host sends a first data frame to the UFS device, wherein the first data frame comprises the first target data and the first channel-associated information; and the UFS device receives the first data frame. In this way, the host and the UFS device can implement transmission of data and channel-associated information of the data in one write operation, thereby achieving efficient transmission of the channel-associated information of the data.
Need to check novelty before this filing date? Find Prior Art

Description

A method, device and equipment for transmitting information along the way This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on February 21, 2023, with application number 202310180147.2 and application name “A method, device and equipment for transmitting on-path information”, all contents of which are incorporated by reference in this application. Technical Field The present application relates to the field of storage technology, and in particular to a method, device and equipment for transmitting in-path information. Background Art Universal flash storage (UFS) is a high-performance serial interface that can be used to design applications that require minimal power consumption, such as mobile systems such as smartphones and tablets, and automotive applications. UFS's high-speed serial interface and optimized protocol can significantly improve throughput and system performance. In recent years, multiple UFS protocols such as UFS1.0, UFS2.0, UFS3.0, and UFS3.1 have been launched, and UFS-based storage devices have been widely used in mobile phones, tablets, surveillance, and other fields. With the rapid development of UFS technology, people have put forward higher requirements for data security, especially in the field of vehicle-mounted, which requires end-to-end data security to be built through on-the-road information to protect data end-to-end. However, the current UFS protocol does not provide a mechanism for transmitting on-the-road information of data, which limits the use and efficiency of UFS. Summary of the invention The present application provides a method, device and equipment for transmitting on-path information, which are used to provide a transmission mechanism of on-path information based on the UFS protocol, solving the problem of limited use and efficiency of UFS in the prior art. In order to achieve the above purpose, this application adopts the following technical solutions: In a first aspect, a method for transmitting associated information is provided, the method comprising: a host receives a first pre-transmission frame from a UFS device, the first pre-transmission frame is used to indicate the transmission of first target data, the first pre-transmission frame includes associated control information, for example, the first pre-transmission frame can be an RTT UPIU, the associated control information is used to control the transmission of first associated information of the first target data, for example, used to control the transmission mode of the first associated information; the host sends a first data frame to the UFS device, the first data frame includes the first target data and the first associated information, and the first associated information can be transmitted according to the transmission mode indicated by the associated control information. In the above technical solution, when the host receives the first pre-transmission frame from the UFS device, it can send the first data frame carrying the first target data and the first accompanying information to the UFS device according to the accompanying control information carried by the first pre-transmission frame, so that the UFS device can receive the first data frame. In this way, the host and the UFS device can complete the transmission of data and accompanying information in the same write IO, and will not increase the delay of the write operation, and there is no need to add additional signaling, thereby solving the problem of limited use and efficiency of UFS in the prior art and realizing efficient transmission of data accompanying information. In a possible implementation of the first aspect, the method further includes: the host sends a write command frame to the UFS device, the write command frame is used to request writing of the first target data, and the write command frame includes the on-path control information; the host receives a response frame from the UFS device, and the response frame is used to respond to the write command frame. In the above possible implementation, the host can send a write command frame carrying on-path control information to the UFS device, so that the UFS device performs corresponding cache calculations when receiving the write command frame, and sends a pre-transmission frame to schedule the corresponding target data and on-path information. After the data and on-path information are transmitted, a response frame can be returned to the host to achieve the transmission of the data and on-path information in the same write IO. In a possible implementation of the first aspect, the write command frame is also used to request writing of second target data, and the method further includes: the host receives a second pre-transmission frame from the UFS device, the second pre-transmission frame is used to indicate the transmission of the second target data, the second pre-transmission frame includes the on-link control information, and the on-link control information is also used to control the transmission of the second on-link information of the second target data; the host sends a second data frame to the UFS device, and the second data information frame includes the second target data and the second on-link information. In the above possible implementation, when the total amount of target data to be transmitted indicated in the write command frame sent by the host to the UFS device is large, the UFS device may send multiple pre-transmission frames to the host after receiving the write command frame, each pre-transmission frame may be used to indicate the transmission of a part of the target data, and the host may also send the target data to the UFS device through a corresponding number of data frames to transmit all the target data to be transmitted to the UFS device. During the above-mentioned write operation, the host and the UFS device can complete the transmission of the accompanying information of all data in the same write IO without increasing the delay of the write operation, thereby solving the problem of limited use and efficiency of UFS in the prior art and realizing efficient transmission of the accompanying information of data. In a possible implementation manner of the first aspect, the frame (eg, a pre-transmission frame, a write command frame, and a data frame) includes a frame The data frame also includes a frame tail, in which the target data and the accompanying information are carried. Optionally, the length of the reserved field is two bytes. In the above possible implementations, by carrying the accompanying control information in the reserved field of the frame header of the pre-transmission frame, the write command frame, and the data frame, the utilization rate of the above different frames can be improved and the signaling interaction between the host and the UFS device can be reduced. In a possible implementation of the first aspect, the target data includes at least one data block, the accompanying information includes at least one accompanying information block, and the at least one data block corresponds to the at least one accompanying information block one by one; wherein the accompanying control information is used to indicate at least one of the following information: the granularity of the data block, the granularity of the accompanying information block, and the arrangement of the data block and the accompanying information block. In the above possible implementation, the accompanying control information can control the transmission mode of the accompanying information by indicating different information, thereby realizing the transmission of data and accompanying information in the same write IO. In a possible implementation of the first aspect, the data block and the associated information block are arranged in one of the following ways: multiple data blocks plus multiple associated information blocks, multiple associated information blocks plus multiple data blocks, a single data block plus a single associated information block, and a single associated information block plus a single data block. The above possible implementations can improve the flexibility and diversity of data and associated information transmission. In a second aspect, a method for transmitting associated information is provided, the method comprising: a UFS device sends a first pre-transmission frame to a host, the first pre-transmission frame is used to indicate the transmission of first target data, the first pre-transmission frame includes associated control information, for example, the first pre-transmission frame can be RTT UPIU, the associated control information is used to control the transmission of first associated information of the first target data, for example, used to control the transmission mode of the first associated information; the UFS device receives a first data frame from the host, the first data frame includes the first target data and the first associated information. In the above technical solution, when the host receives the first pre-transmission frame from the UFS device, it can send the first data frame carrying the first target data and the first accompanying information to the UFS device according to the accompanying control information carried by the first pre-transmission frame, so that the UFS device can receive the first data frame. In this way, the host and the UFS device can complete the transmission of data and accompanying information in the same write IO, and will not increase the delay of the write operation, and there is no need to add additional signaling, thereby solving the problem of limited use and efficiency of UFS in the prior art and realizing efficient transmission of data accompanying information. In a possible implementation of the second aspect, the method further includes: the UFS device receives a write command frame from the host, the write command frame is used to request writing of the first target data, and the write command frame includes the on-path control information; the UFS device sends a response frame to the host, and the response frame is used to respond to the write command frame. In the above possible implementation, the host can send a write command frame carrying on-path control information to the UFS device, so that the UFS device performs corresponding cache calculations when receiving the write command frame, and sends a pre-transmission frame to schedule the corresponding target data and on-path information. After the data and on-path information are transmitted, a response frame can be returned to the host to realize the transmission of the data and on-path information in the same write IO. In a possible implementation of the second aspect, the write command frame is also used to request writing of second target data, and the method further includes: the UFS device sends a second pre-transmission frame to the host, the second pre-transmission frame is used to indicate the transmission of the second target data, the second pre-transmission frame includes the on-link control information, and the on-link control information is also used to control the transmission of the second on-link information of the second target data; the UFS device receives a second data frame from the host, and the second data information frame includes the second target data and the second on-link information. In the above possible implementation, when the total amount of target data to be transmitted indicated in the write command frame sent by the host to the UFS device is large, the UFS device may send multiple pre-transmission frames to the host after receiving the write command frame, each pre-transmission frame may be used to indicate the transmission of a part of the target data, and the host may also send the target data to the UFS device through a corresponding number of data frames to transmit all the target data to be transmitted to the UFS device. During the above-mentioned write operation, the host and the UFS device can complete the transmission of the accompanying information of all data in the same write IO without increasing the delay of the write operation, thereby solving the problem of limited use and efficiency of UFS in the prior art and realizing efficient transmission of the accompanying information of data. In a possible implementation of the second aspect, the frame (for example, a pre-transmission frame, a write command frame, and a data frame) includes a frame header, and the accompanying control information is carried in a reserved field of the frame header; the data frame also includes a frame tail, and the target data and the accompanying information are carried in the frame tail. Optionally, the length of the reserved field is two bytes. In the above possible implementation, by carrying the accompanying control information in the reserved field of the frame header of the pre-transmission frame, the write command frame, and the data frame, the utilization rate of the above different frames can be improved and the signaling interaction between the host and the UFS device can be reduced. In a possible implementation manner of the second aspect, the target data includes at least one data block, the associated information includes at least one associated information block, and the at least one data block corresponds to the at least one associated information block in a one-to-one manner; wherein the associated control information is used to indicate at least one of the following information: the granularity of the data block, the granularity of the associated information block, the data block and the associated information block. Arrangement of information blocks. In the above possible implementations, the associated control information can control the transmission mode of the associated information by indicating different information, so as to realize the transmission of data and associated information in the same write IO. In a possible implementation of the second aspect, the data block and the associated information block are arranged in one of the following ways: multiple data blocks plus multiple associated information blocks, multiple associated information blocks plus multiple data blocks, a single data block plus a single associated information block, and a single associated information block plus a single data block. The above possible implementations can improve the flexibility and diversity of data and associated information transmission. According to a third aspect, a device for transmitting on-path information is provided, the device comprising: a receiving unit, used to receive a first pre-transmission frame from a universal flash storage (UFS) device, the first pre-transmission frame being used to indicate the transmission of first target data, the first pre-transmission frame comprising on-path control information, the on-path control information being used to control the transmission of first on-path information of the first target data; a sending unit, used to send a first data frame to the UFS device, the first data frame comprising the first target data and the first on-path information. In a possible implementation of the third aspect, the sending unit is further used to: send a write command frame to the UFS device, the write command frame is used to request to write the first target data, and the write command frame includes the associated control information; the receiving unit is further used to: receive a response frame from the UFS device, the response frame is used to respond to the write command frame. In a possible implementation manner of the third aspect, the write command frame is also used to request writing of second target data; the receiving unit is also used to: receive a second pre-transmission frame from the UFS device, the second pre-transmission frame is used to indicate the transmission of the second target data, the second pre-transmission frame includes the associated control information, and the associated control information is also used to control the transmission of second associated information of the second target data; the sending unit is also used to: send a second data frame to the UFS device, the second data information frame includes the second target data and the second associated information. In a possible implementation of the third aspect, the frame includes a frame header, and the associated control information is carried in a reserved field of the frame header; the data frame also includes a frame tail, and the target data and the associated control information are carried in the frame tail. Optionally, the length of the reserved field is two bytes. In a possible implementation of the third aspect, the target data includes at least one data block, the accompanying information includes at least one accompanying information block, and the at least one data block corresponds one-to-one to the at least one accompanying information block; wherein the accompanying control information is used to indicate at least one of the following information: the granularity of the data block, the granularity of the accompanying information block, and the arrangement of the data block and the accompanying information block. In a possible implementation manner of the third aspect, the data block and the associated information block are arranged in one of the following ways: multiple data blocks plus multiple associated information blocks, multiple associated information blocks plus multiple data blocks, a single data block plus a single associated information block, and a single associated information block plus a single data block. In a fourth aspect, a device for transmitting on-path information is provided, the device comprising: a sending unit, used to send a first pre-transmission frame to a host, the first pre-transmission frame is used to indicate the transmission of first target data, the first pre-transmission frame includes on-path control information, the on-path control information is used to control the transmission of first on-path information of the first target data; a receiving unit, used to receive a first data frame from the host, the first data frame includes first target data and first on-path information. In a possible implementation of the fourth aspect, the receiving unit is also used to: receive a write command frame from the host, the write command frame is used to request to write the first target data, and the write command frame includes the associated control information; the sending unit is also used to: send a first pre-transmission frame to the host, the first pre-transmission frame is used to indicate the transmission of the first target data, and the first pre-transmission frame includes the associated control information. In a possible implementation of the fourth aspect, the write command frame is also used to request writing of second target data; the sending unit is also used to: send a second pre-transmission frame to the host, the second pre-transmission frame is used to indicate the transmission of second target data, the second pre-transmission frame includes the on-link control information, and the on-link control information is also used to control the transmission of second on-link information of the second target data; the receiving unit is also used to: receive a second data frame from the host, the second data information frame includes the second target data and the second on-link information. In a possible implementation of the fourth aspect, the frame includes a frame header, and the associated control information is carried in a reserved field of the frame header; the data frame also includes a frame tail, and the target data and the associated control information are carried in the frame tail. Optionally, the length of the reserved field is two bytes. In a possible implementation manner of the fourth aspect, the target data includes at least one data block, the associated information includes at least one associated information block, and the at least one data block corresponds to the at least one associated information block in a one-to-one manner; wherein the associated control information is used to indicate at least one of the following information: the granularity of the data block, the granularity of the associated information block, the data block and the associated information block. The arrangement of blocks of information. In a possible implementation manner of the fourth aspect, the data block and the associated information block are arranged in one of the following ways: multiple data blocks plus multiple associated information blocks, multiple associated information blocks plus multiple data blocks, a single data block plus a single associated information block, and a single associated information block plus a single data block. In a fifth aspect, a device for transmitting in-path information is provided, which includes a processor and a memory, wherein instructions are stored in the memory. When the processor executes the instructions, the device executes the method provided by the first aspect or any possible implementation of the first aspect. In a sixth aspect, a device for transmitting in-path information is provided, the device comprising a processor and a memory, the memory storing instructions, and when the processor runs the instructions, the device executes the method provided by the second aspect or any possible implementation of the second aspect. In another aspect of the present application, an electronic device is provided, comprising a coupled host and a UFS device, the host comprising the third aspect, any possible implementation of the third aspect, or the apparatus provided by the fifth aspect, and the UFS device comprising the fourth aspect, any possible implementation of the fourth aspect, or the apparatus provided by the sixth aspect. In another aspect of the present application, a computer-readable storage medium is provided, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method provided by the first aspect or any possible implementation manner of the first aspect is implemented. In another aspect of the present application, a computer-readable storage medium is provided, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method provided by the second aspect or any possible implementation manner of the second aspect is implemented. In another aspect of the present application, a computer program product is provided, which includes a computer program (also referred to as code, or instructions). When the computer program is executed, the computer executes the method provided in the first aspect or any possible implementation of the first aspect. In another aspect of the present application, a computer program product is provided, which includes a computer program (also referred to as code, or instructions). When the computer program is executed, the computer executes the method provided in the second aspect or any possible implementation of the second aspect. It can be understood that the device, electronic device, computer-readable storage medium and computer program product of any of the above-mentioned on-path information transmission methods all include the content of the on-path information transmission method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the on-path information transmission method provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS FIG1 is a schematic diagram of the structure of a UFS system provided in an embodiment of the present application; FIG2 is a schematic diagram of a SCSI write operation performed between a host and a UFS device provided by an embodiment of the present application; FIG3 is a schematic diagram of a CMD UPIU provided in an embodiment of the present application; FIG4 is a schematic diagram of an RTT UPIU provided in an embodiment of the present application; FIG5 is a schematic diagram of a data writing UPIU provided in an embodiment of the present application; FIG6 is a schematic diagram of a method of transmitting on-road information using EHS provided in an embodiment of the present application; FIG7 is a schematic diagram of a flow chart of a method for transmitting information along a path provided in an embodiment of the present application; FIG8 is a schematic diagram of an RTT UPIU carrying associated control information provided by an embodiment of the present application; FIG9 is a schematic diagram of a write data UPIU transmission accompanying information provided by an embodiment of the present application; FIG10 is a schematic diagram of another embodiment of the present application to provide a data writing UPIU transmission path information; FIG11 is a schematic diagram of another method of transmitting accompanying information for writing data UPIU provided in an embodiment of the present application; FIG12 is a schematic diagram of another embodiment of the present application to provide a data writing UPIU transmission path information; FIG13 is a schematic diagram of a CMD UPIU carrying associated control information provided by an embodiment of the present application; FIG14 is a schematic diagram of a flow chart of another method for transmitting information along a path provided in an embodiment of the present application; FIG15 is a schematic diagram of transmitting associated information provided by an embodiment of the present application; FIG16 is a schematic diagram of the structure of a UFS system provided in an embodiment of the present application; FIG17 is a schematic diagram of the structure of a host provided in an embodiment of the present application; FIG18 is a schematic diagram of the structure of another host provided in an embodiment of the present application; FIG19 is a schematic diagram of the structure of a UFS device provided in an embodiment of the present application; FIG. 20 is a schematic diagram of the structure of another UFS device provided in an embodiment of the present application. DETAILED DESCRIPTION The following will discuss the making and use of various embodiments in detail. However, it should be understood that many applicable inventive concepts provided by this application can be implemented in a variety of specific environments. The specific embodiments discussed are only illustrative of specific ways to implement and use this description and this technology, and do not limit the scope of this application. Unless defined otherwise, all technical and scientific terms used herein have the same meanings as commonly understood by one of ordinary skill in the art. Various circuits or other components may be described or referred to as being "configured to" perform one or more tasks. In this case, "configured to" is used to imply structure by indicating that the circuit / component includes structure (e.g., circuitry) that performs the one or more tasks during operation. Thus, even when the specified circuit / component is not currently operational (e.g., not turned on), the circuit / component may be referred to as being configured to perform the task. Circuits / components used with the phrase "configured to" include hardware, such as circuits that perform an operation, etc. The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the present application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c; where a, b and c can be single or multiple. The embodiments of the present application use words such as "first" and "second" to distinguish objects with similar names, functions or effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order. The term "coupled" is used to indicate electrical connection, including direct connection through wires or connection terminals or indirect connection through other devices. Therefore, "coupled" should be regarded as a broad electronic communication connection. It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. Universal flash storage (UFS) is a high-performance serial interface that can be used to design applications that require minimal power consumption, such as applications in mobile systems such as smartphones and tablets, and automotive applications. UFS's high-speed serial interface and optimized protocol can significantly improve throughput and system performance. In recent years, multiple UFS protocols such as UFS1.0, UFS2.0, UFS3.0 and UFS3.1 have been launched, and UFS-based storage devices have been widely used in mobile phones, tablets, surveillance and other fields. The huge market demand has led to the rapid development of storage devices. People need more storage space and faster storage speeds, so UFS devices can use multiple NAND channels to match the bandwidth requirements of the UFS protocol. The technical solution of the present application can be applied to electronic devices based on UFS, which can also be called UFS systems, which can include a coupled host and a UFS device, and the host can also be called a UFS host. Optionally, the electronic device can include but is not limited to: mobile phones, tablet computers, laptops, computers, ultra-mobile personal computers (UMPCs), netbooks, cameras, cameras, vehicle-mounted devices (e.g., cars, bicycles, electric vehicles, airplanes, ships, trains, high-speed trains, etc.), virtual reality (VR) devices, or augmented reality (AR) devices, etc. Exemplarily, as shown in FIG1 , the UFS system may include a coupled host and a UFS device, the UFS device including a controller and a plurality of storage dies coupled to the controller, the controller being used to control the reading and writing of the plurality of storage dies. The controller may also be referred to as a UFS device controller; the storage dies may be flash memory (nand flash) dies, which may also be referred to as flash memory chips or flash memory particles. In a possible example, the controller and the plurality of flash memory dies may be coupled using a parallel NAND (or nand) interface. Optionally, the NAND interface may be an open nand flash interface (ONFI), or a toggle (or TOGGLE) interface, etc. FIG1 is illustrated by taking the NAND interface as ONFI as an example. In the UFS system, the host and the UFS device can use the UFS protocol information unit (UFS protocol The UPIU may include a command UPIU (CMD UPIU), a ready-to-transfer UPIU (RTT UPIU), a data write UPIU (dataout UPIU), a response UPIU (response UPIU) and a data read UPIU (datain UPIU). In the embodiment of the present application, the UPIU may also be referred to as a frame, so that the above-mentioned UPIUs may also be referred to as command frames, pre-transmission frames, data frames and response frames, respectively. Taking the UFS SCSI system as an example, as shown in FIG2 , when the host and the UFS device perform a SCSI write operation, it is implemented through CMD UPIU, RTT UPIU, write data UPIU and response UPIU, and when performing a SCSI read operation, it is implemented through CMD UPIU, read data UPIU and response UPIU. Among them, a SCSI write operation may include multiple RTT UPIUs and multiple write data UPIUs, and a SCSI read operation may include multiple RTT UPIUs and multiple read data UPIUs. During the execution of an operation, the offsets of multiple RTT UPIUs or multiple write data UPIUs (or multiple read data UPIUs) corresponding to a CMD UPIU are sequentially increased. Exemplarily, taking the CMD UPIU of a SCSI write operation as an example, if the total length of the requested transmission is 48Kbyte (which can be expressed as expected data length = 48K), it is divided into two write data UPIU transmissions, and the size of each write data UPIU must be an integer multiple of 4Kbyte according to the requirements of the UFS protocol. For example, the offset of the first write data UPIU is 0 and the size is 16Kbyte (which can be expressed as data buffer offset = 0 data transfer count = 16K), and the offset of the second write data UPIU is 16K and the size is 32Kbyte (which can be expressed as data buffer offset = 16K data transfer count = 32K). The specific structures of the above-mentioned CMD UPIU, RTT UPIU and write data UPIU are introduced and explained below through Figures 3 to 5. As shown in FIG. 3 , the CMD UPIU includes a frame header, and the frame header includes bytes 0 to 31. Among them, the 0th byte is xx00 0001b, the 1st byte is flags, the 2nd byte is the logical number LUN, the 3rd byte is the task tag, the high bit of the 4th byte is the initiator identity (IID), and the low bit is the command set type, the 5th and 6th bytes are reserved (RSV), the high bit of the 7th byte is the extended (EXD) initiator identity EXD_IID, and the low bit is reserved RSV, the 8th byte is the total extra header segment (EHS) length (total EHS length), the 9th byte is reserved RSV, the 10th and 11th bytes are the data segment length (0000h), the 12th to 15th bytes are the expected data transfer length, and the 16th to 31st bytes are the command descriptor block (CDB) and are represented as CDB[0] to CDB respectively.

[0015] The expected data transfer length in CMD UPIU indicates the total data length expected to be transferred by the current input output (IO) command. Taking the CMD UPIU of a write operation as an example, the expected data transfer length indicates the total amount of data that needs to be written to the UFS device side this time. As shown in FIG4 , the RTT UPIU includes a frame header, which includes bytes 0 to 31. Among them, the 0th byte is xx110001b, the 1st byte is a flag, the 2nd byte is a LUN, the 3rd byte is a task tag, the high bit of the 4th byte is IID, and the low bit is reserved for RSV, the high bit of the 5th byte is EXD_IID, and the low bit is reserved for RSV, the 6th and 7th bytes are reserved for RSV, the 8th byte is the total EHS length, the 9th byte is reserved for RSV, the 10th and 11th bytes are the data segment length (0000h), the 12th to 15th bytes are the data buffer offset, the 16th to 19th bytes are the data transfer count, the low bit of the 20th byte is reserved, and the high bit is the prefetch control (hint control), the low bit of the 21st byte is the initiator identifier of the prefetch extension (hintEXT_IID), the high bit is the prefetch initiator identifier (hintIID), the 22nd byte is the prefetch logical number (hintLUN), the 23rd byte is the prefetch task tag (hint task tag), the 24th to 27th bytes are the prefetch data cache offset (hint data buffer offset), and the 28th to 31st bytes are the size of the prefetch data (hint data count). As shown in FIG5 , the write data UPIU includes a frame header and a frame trailer, wherein the frame header includes bytes 0 to 31, and the frame trailer includes bytes k to k+L-1, where L represents the length of the valid data carried. Among them, the 0th byte is xx00 0010b, the 1st byte is a flag, the 2nd byte is a LUN, the 3rd byte is a task tag, the high bit of the 4th byte is IID, and the low bit is reserved for RSV, the 5th and 6th bytes are reserved for RSV, the high bit of the 7th byte is EXD_IID, and the low bit is reserved for RSV, the 8th byte is total EHS length, the 9th byte is reserved for RSV, the 10th and 11th bytes are data segment length, the 12th to 15th bytes are data buffer offset, the 16th to 19th bytes are data transfer count, and the 20th to 31st bytes are reserved for RSV. The kth to k+L-1th bytes are data D[0] to D[L-1]. Among them, the write data UPIU is the host's response to the RTT UPIU of the UFS device during this write IO, and the data transmitted The size of the amount is the same as the amount of data required by the RTT UPIU. The data buffer offset indicates the data offset of the current write data; the data transfer count indicates the size of the write data carried this time; the data segment length indicates the length of the actual valid data carried this time (excluding padding data). For the commonly used write6 / 10 / 16 write IO commands, the data transmission must be an integer multiple of the logical block size (4Kbyte), so there is no padding data, and the data segment length is equal to the data transfer count value. With the rapid development of UFS technology, people have put forward higher requirements for data security, especially in the field of vehicle-mounted, which requires end-to-end data security to be built through on-the-road information to protect data end-to-end. However, the current UFS protocol does not provide a mechanism for transmitting on-the-road information of data, which limits the use and efficiency of UFS. In the related art, the accompanying information of data is usually transmitted in the following two ways. The first way is that for the accompanying information of a small amount of data, the host can implement it through a separate write operation (for example, similar to the above-mentioned SCSI write operation), but this method will cause the delay of the write operation to increase several degrees, thereby reducing the competitiveness of the product. The second way is to use the EHS defined in the UFS protocol for transmission. As shown in Figure 6, this solution can add an EHS field of a specified length after the CMD UPIU, and the accompanying information can be carried in the EHS field. This method will limit the host's use of the maximum IO, and requires additional storage space, resulting in a large resource overhead. Based on this, the embodiment of the present application provides a transmission mechanism of on-path information based on the UFS protocol, which can be used to complete data and on-path information in the same write IO without increasing the delay of the write operation, thereby solving the problem of limited use and efficiency of the above-mentioned UFS. The solution of the embodiment of the present application is introduced and explained below. FIG. 7 is a flow chart of a method for transmitting information along a path provided in an embodiment of the present application. The method can be applied to the UFS system provided above. The method includes the following steps. S201: The UFS device sends a first pre-transmission frame to the host, where the first pre-transmission frame is used to indicate transmission of first target data, and the first pre-transmission frame includes associated control information, where the associated control information is used to control transmission of first associated information of the first target data. The first accompanying information may be the accompanying information of the first target data (may also be referred to as accompanying data), and the accompanying information may refer to data that has a certain association relationship with the target data, and may be used to perform end-to-end protection on the first target data, thereby improving the security of the first target data. Optionally, the first accompanying information may include protection information and / or out-of-band information of the first target data, for example, the out-of-band information may include attribute information of the first target data, etc. In addition, the first pre-transmission frame may include a frame header, and the associated control information may be carried in the frame header, for example, the associated control information may be carried in a reserved field of the frame header. That is, the reserved field in the frame header is used to carry the associated control information, and the reserved field may include one or more reserved bytes in the first pre-transmission frame, or a high or low bit reserved in one or more bytes. In one example, the length of the reserved field is two bytes, and the two bytes may be two consecutive bytes. Optionally, as shown in FIG8 , the first pre-transmission frame may be the RTT UPIU mentioned above, and the reserved field may be the 6th and 7th bytes in the RTT UPIU, that is, the 6th and 7th bytes are used to carry the associated control information. Furthermore, the on-link control information used to control the transmission of the first on-link information may include: being used to control whether to transmit the first on-link information; and in the case of transmitting the first on-link information, being used to control the transmission mode of the first on-link information. Optionally, the on-link control information may also be used to control the transmission of the first target data. That is, the on-link control information may be used to control the transmission of the first on-link information, or may be used to simultaneously control the transmission of the first target data and the first on-link information. In a possible embodiment, the first target data may include at least one data block, the first accompanying information may include at least one accompanying information block, and the at least one data block corresponds to the at least one accompanying information block. The accompanying control information may be used to indicate at least one of the following information: the granularity of the data block, the granularity of the accompanying information block, and the arrangement of the data block and the accompanying information block. Exemplarily, the arrangement may include: multiple data blocks plus multiple accompanying information blocks, multiple accompanying information blocks plus multiple data blocks, a single data block plus a single accompanying information block, and a single accompanying information block plus a single data block. It can be understood that when the arrangement is multiple data blocks plus multiple accompanying information blocks, or multiple accompanying information blocks plus multiple data blocks, the granularity of the data block can also be replaced by the data volume of the first target data (that is, the first target data is considered to be one data block), and the granularity of the accompanying information block can also be replaced by the data volume of the first accompanying information (that is, the first accompanying information is considered to be one accompanying information block). Optionally, the associated control information may include three fields, the first field may be used to indicate the granularity ED_size of the associated information block, the second field may be used to indicate the granularity Data_size of the data block, and the third field may be used to indicate the transmission mode ED_mode of the associated control information. As shown in FIG8 , taking the associated control information occupying the 6th and 7th bytes of the RTT UPIU as an example, the 0th bit The 9th bit (i.e., bit0 to bit9) can be used to indicate the granularity of the associated information block, the 10th bit to the 12th bit (i.e., bit10 to bit12) can be used to indicate the granularity of the data block, and the 13th bit to the 15th bit (i.e., bit13 to bit15) can be used to indicate the transmission mode of the first associated information. It can be understood that the above positions and numbers of bits occupied by different fields are only exemplary and do not limit the embodiments of the present application. In one example, bit0 to bit9 can be used to indicate the size of the corresponding accompanying information block at the granularity of the corresponding data block (the unit can be byte), and the specific size of the accompanying information block can be set according to actual needs, and the embodiment of the present application does not impose specific restrictions on this. In addition, bit10 to bit12 can have multiple different values, and different values ​​can be used to indicate data blocks of different granularities. Exemplarily, as shown in Table 1 below, if the value of bit0 to bit9 is 000, the granularity of the data block can be 32 bytes; if the value of bit0 to bit9 is 001, the granularity of the data block can be 64 bytes; if the value of bit0 to bit9 is 010, the granularity of the data block can be 128 bytes; if the value of bit0 to bit9 is 011, the granularity of the data block can be 256 bytes; if the value of bit0 to bit9 is 100, the granularity of the data block can be 512 bytes; if the value of bit0 to bit9 is 101, the granularity of the data block can be 1024 bytes; if the value of bit0 to bit9 is 110, the granularity of the data block can be 2048 bytes; if the value of bit0 to bit9 is 111, the granularity of the data block can be 4096 bytes. Table 1 It can be understood that the correspondence between the different values ​​of bit0 to bit9 and the granularities of different data blocks shown in Table 1 is only exemplary. In actual applications, there may be other correspondences between the different values ​​of bit0 to bit9 and the granularities of different data blocks, or there may be other granularities of data blocks. The above Table 1 does not constitute a limitation to the embodiments of the present application. In another example, as shown in Table 2 below, if the values ​​of bit13 to bit15 are 000, the transmission mode may be a normal mode, that is, the first associated information is not transmitted in this mode; if the values ​​of bit13 to bit15 are 001, the transmission mode may be the first mode mode1, and the first mode mode1 may be a single associated information block plus a single data block; if the values ​​of bit13 to bit15 are 010, the transmission mode may be the second mode mode2, and the second mode mode2 may be a single data block plus a single associated information block; if the values ​​of bit13 to bit15 are 011, the transmission mode may be the third mode mode3, and the third mode mode3 may be multiple associated information blocks plus multiple data blocks; if the values ​​of bit13 to bit15 are 100, the transmission mode may be the fourth mode mode4, and the fourth mode mode4 may be multiple data blocks plus multiple associated information blocks; if the values ​​of bit13 to bit15 are 101, 110 or 111, the transmission mode may be reserved. Table 2 It can be understood that the correspondence between the different values ​​of bit13 to bit15 and different transmission modes shown in Table 2 is only exemplary. In actual applications, there may be other correspondences between the different values ​​of bit13 to bit15 and different transmission modes. The above Table 2 does not constitute a limitation to the embodiments of the present application. In a possible example, the associated control information may be used to indicate that the transmission mode of the first associated information is the first mode mode1, the granularity of the associated information block is 16 bytes, and the granularity of the data block is 4 Kbyte. In this case, the values ​​of the three fields corresponding to the associated control information may be expressed as ED_mode=1, data_size=7, and ED_size=16. Alternatively, the associated control information may be used to indicate that the transmission mode of the first associated information is the second mode mode2, the granularity of the associated information block is 8 bytes, and the granularity of the data block is 2 Kbyte. In this case, the values ​​of the three fields corresponding to the associated control information may be expressed as ED_mode=2, data_size=6, and ED_size=8. Alternatively, the associated control information may be used to indicate that the transmission mode of the first associated information is the third mode mode3, the granularity of the associated information block is 64 bytes, and the granularity of the data block is 16 Kbyte. In this case, the values ​​of the three fields corresponding to the associated control information may be expressed as ED_mode=3, data_size is reserved (can be ignored in this mode), and ED_size=64. Alternatively, the associated control information can be used to indicate that the transmission mode of the first associated information is the fourth mode mode4, the granularity of the associated information block is 256 bytes, and the granularity of the data block is 32Kbyte. At this time, the values ​​of the three fields corresponding to the associated control information can be expressed as ED_mode=4, data_size is reserved (not required in this mode), and ED_size=256. S202: When the host receives the first pre-transmission frame, the host sends a first data frame to the UFS device, where the first data frame includes first target data and first associated information. Among them, the first data frame may include a frame header and a frame tail, and the first target data and the first associated information may be located at the frame tail of the first data frame. Optionally, the first data frame may also include the above-mentioned associated control information, for example, the associated control information may be carried in the frame header of the first data frame, for example, the associated control information may be carried in the reserved field of the frame header. That is, the reserved field in the frame header is used to carry the associated control information, and the reserved field may include one or more reserved bytes in the frame header of the first data frame, or a high or low bit reserved in one or more bytes. In one example, the length of the reserved field is two bytes, and the two bytes may be two consecutive bytes. Optionally, the first data frame may be the write data UPIU mentioned above, and the reserved field may be the 5th and 6th bytes in the write data UPIU. In addition, when the first data frame is a write data UPIU, and the write data UPIU also carries the above-mentioned associated control information, the specific description of the write data UPIU carrying the above-mentioned associated control information can refer to the relevant description of the RTT UPIU carrying the associated control information in the above S201, and the embodiment of the present application will not be repeated here. In a possible example, if the first data frame is a write data UPIU, the write data UPIU carries the above-mentioned on-path control information, and the ED_mode corresponding to the on-path control information is 1, as shown in Figure 9, the write data UPIU may include a frame header and a frame trailer, the 5th and 6th bytes in the frame header may carry the above-mentioned on-path control information, the frame trailer includes the first target data and the first on-path information, and the first target data and the first on-path information are arranged in the form of a single on-path information block plus a single data block. In another possible example, if the first data frame is a write data UPIU, the write data UPIU carries the above-mentioned associated control information, and the ED_mode corresponding to the associated control information is 2, as shown in Figure 10, the write data UPIU may include a frame header and a frame trailer, the 5th and 6th bytes in the frame header may carry the above-mentioned associated control information, the frame trailer includes the first target data and the first associated information, and the first target data and the first associated information are in the form of a single data block plus a single associated information block. In another possible example, if the first data frame is a write data UPIU, the write data UPIU carries the above-mentioned on-link control information, and the ED_mode corresponding to the on-link control information is 3, as shown in FIG11, the write data UPIU may include a frame header and a frame footer, the 5th and 6th bytes in the frame header may carry the above-mentioned on-link control information, the frame footer includes the first target data and the first on-link information, and the first target data and the first on-link information are arranged in the form of multiple on-link information blocks (i.e., the first on-link information) plus multiple data blocks (i.e., the first target data). At this time, the granularity of the on-link information block may be equal to the size of the first on-link information. In another possible example, if ED_mode corresponding to the associated control information is 4, as shown in FIG12, the write data UPIU may include a frame header and a frame tail, the 5th and 6th bytes in the frame header may carry the above-mentioned associated control information, the frame tail includes the first target data and the first associated information, and the first target data and the first associated information are arranged in the form of multiple data blocks (i.e., the first target data) plus multiple associated information blocks (i.e., the first associated information). At this time, the granularity of the associated information block may be equal to the size of the first associated information. S203: The UFS device receives a first data frame. When the host sends the first data frame to the UFS device, the UFS device can receive the first data frame, so that the UFS device can store the first target data and the first associated information in the first data frame. For example, the UFS device can store the first target data and the first associated information in the first data frame. A target data and a first associated information are stored in the own storage grain. It can be understood that the specific description of the first data frame in S203 is consistent with the description of the first data frame in the above S202. Please refer to the relevant description in the above S202 for details, and the embodiment of the present application will not be repeated here. In the associated information transmission method provided in the embodiment of the present application, when the host receives the first pre-transmission frame from the UFS device, it can send the first data frame carrying the first target data and the first associated information to the UFS device according to the associated control information carried by the first pre-transmission frame, so that the UFS device can receive the first data frame. In this way, the host and the UFS device can complete the transmission of data and associated information in the same write IO, and will not increase the delay of the write operation, and there is no need to add additional signaling, thereby solving the problem of limited use and efficiency of UFS in the prior art, and realizing efficient transmission of data associated information. Furthermore, as shown in Fig. 7, the method further includes: S204-S207. Among them, S204-S205 may be located before S201, and S206-S207 may be located after S203. S204: The host sends a write command frame to the UFS device, where the write command frame is used to request writing of first target data, and the write command frame includes the associated control information. Among them, the write command frame may include a frame header, and the associated control information may be carried in the frame header, for example, the associated control information may be carried in a reserved field of the frame header. That is, the reserved field in the frame header is used to carry the associated control information, and the reserved field may include one or more reserved bytes in the write command frame, or a high or low bit reserved in one or more bytes. In one example, the length of the reserved field is two bytes, and the two bytes may be two consecutive bytes. Optionally, as shown in FIG13 , the write command frame may be the CMD UPIU mentioned above, and the reserved field may be the 5th and 6th bytes in the CMD UPIU, that is, the 5th and 6th bytes are used to carry the associated control information. In addition, when the write command frame is CMD UPIU and the CMD UPIU carries the above-mentioned associated control information, the specific description of the CMD UPIU carrying the above-mentioned associated control information is similar to the description of the RTT UPIU carrying the associated control information in the above S201. For details, please refer to the relevant description in the above S201, and the embodiments of the present application will not be repeated here. In a possible embodiment, when the host needs to write data to the UFS device, the host can send a write command frame carrying the above-mentioned on-path control information to the UFS device, and the write command frame can be used to request to write the first target data. For example, the write command frame is the CMD UPIU mentioned above, and the 5th and 6th bytes in the CMD UPIU can be used to carry the on-path control information. S205: The UFS device receives the write command frame. When the host sends the write command frame to the UFS device, the UFS device can receive the write command frame, so that the UFS device can determine the associated control information according to the write command frame, and carry the associated control information in the first pre-transmission frame when sending the first pre-transmission frame to the host through S201. It can be understood that the detailed description of the write command frame in S205 is consistent with the detailed description of the write command frame in the above S204. For details, please refer to the relevant description in the above S204, and the embodiment of the present application will not be repeated here. S206: The UFS device sends a response frame to the host, where the response frame is used to respond to the write command frame. S207: The host receives the response frame. The response frame in the above two steps may be the response UPIU mentioned above. For a detailed description of the response UPIU, please refer to the relevant description in the UFS protocol, and the embodiments of the present application will not be repeated here. In a possible embodiment, when the write command frame is used to request writing of the first target data, when the UFS device receives the first data frame sent by the host, the UFS device may send a response frame to the host, and the response frame may be used to respond to the write command frame. In this way, when the host receives the response frame sent by the UFS device, it may determine that the write operation corresponding to the write command frame is completed according to the response frame, or is called a write IO completion. Further, in combination with FIG. 7 , as shown in FIG. 14 , if the write command frame is also used to request writing of the second target data, the method further includes: S208-S210. Among them, S208 may be located after S201, S209-S210 may be located after S203, and S208-S210 may be located before S206-S207. In addition, S202-S203 and S208 may not be in any order, and FIG. 14 takes S208 being located before S202 as an example for explanation. S208: The UFS device sends a second pre-transmission frame to the host, where the second pre-transmission frame is used to indicate transmission of second target data, and the second pre-transmission frame includes the associated control information, where the associated control information is also used to control transmission of second associated information of the second target data. The second accompanying information may be the accompanying information of the second target data, and the accompanying information may be used to perform end-to-end protection on the second target data, thereby improving the security of the second target data. Protection information and / or out-of-band information, etc. For example, the out-of-band information may include attribute information of the second target data, etc. In addition, the second pre-transmission frame may include a frame header, and the associated control information may be carried in the frame header, for example, the associated control information may be carried in a reserved field of the frame header. That is, the reserved field in the frame header is used to carry the associated control information. In one example, the length of the reserved field is two bytes, and the two bytes may be two consecutive bytes. Optionally, as shown in FIG8 , the second pre-transmission frame may be the RTT UPIU mentioned above, and the reserved field may be the 6th and 7th bytes in the RTT UPIU. In addition, when the second pre-transmission frame is RTT UPIU and the RTT UPIU carries the above-mentioned associated control information, the specific description of the RTT UPIU carrying the above-mentioned associated control information is similar to the description of the RTT UPIU carrying the associated control information in the above S201. For details, please refer to the relevant description in the above S201, and the embodiment of the present application will not be repeated here. Optionally, when the write command frame is used to request writing of first target data and second target data, the write command frame may be used to indicate a total amount of data expected to be transmitted, which may be equal to the sum of the amount of data of the first target data and the amount of data of the second target data. S209: When the host receives the second pre-transmission frame, the host sends a second data frame to the UFS device, where the second data frame includes second target data and second associated information. Among them, the second data frame may include a frame header and a frame tail, and the second target data and the second accompanying information may be located at the frame tail of the second data frame. Optionally, the second data frame may also include the above-mentioned accompanying control information, for example, the accompanying control information may be carried in the frame header of the second data frame, for example, the accompanying control information may be carried in the reserved field of the frame header. That is, the reserved field in the frame header is used to carry the accompanying control information. In one example, the length of the reserved field is two bytes, and the two bytes may be two consecutive bytes. Optionally, the second data frame may be the write data UPIU mentioned above, and the reserved field may be the 5th and 6th bytes in the write data UPIU. In addition, when the second data frame is a write data UPIU, and the write data UPIU also carries the above-mentioned associated control information, the specific description of the write data UPIU carrying the above-mentioned associated control information can refer to the relevant description of the RTT UPIU carrying the associated control information in the above S201, and the embodiment of the present application will not be repeated here. It can be understood that when the second data frame is a write data UPIU, the write data UPIU carries the above-mentioned on-path control information, and the on-path control information corresponds to ED_mode=1, or ED_mode=2, or ED_mode=3, or ED_mode=4, the specific description of the second data frame carrying the on-path control information, the second target data and the second on-path information is similar to the description of the first data frame carrying the on-path control information, the first target data and the first on-path information in the above S202. For details, please refer to the relevant description in the above S202, and the embodiments of the present application will not be repeated here. S210: The UFS device receives a second data frame. When the host sends the second data frame to the UFS device, the UFS device can receive the second data frame, so that the UFS device can store the second target data and the second associated information in the second data frame. For example, the UFS device can store the second target data and the second associated information in its own storage grain. It can be understood that the specific description of the second data frame in S210 is consistent with the description of the second data frame in the above S209. Please refer to the relevant description in the above S209 for details, and the embodiment of the present application will not be repeated here. Exemplarily, if the write command frame is CMD UPIU, the first pre-transmission frame is RTT UPIU 1, the second pre-transmission frame is RTT UPIU 2, the first data frame is write data UPIU 1, the second data frame is write data UPIU 2, and the above different frames all carry accompanying control information, then the method flow provided in Figure 14 above can be simplified as shown in Figure 15. Furthermore, when the total amount of target data to be transmitted in the write command frame sent by the host is large, the UFS device may send a larger number of pre-transmission frames to the host, and each pre-transmission frame may be used to indicate the transmission of a portion of the target data, so that the host sends the target data to the UFS device through a corresponding larger number of data frames, so as to transmit all the target data to be transmitted to the UFS device. In the above, in a write operation, the transmission of the first pre-transmission frame, the second pre-transmission frame, the first data frame, and the second data frame is used as an example for explanation, and does not constitute a limitation on the embodiments of the present application. That is, when the total amount of target data to be transmitted indicated in the write command frame sent by the host to the UFS device is large, the UFS device can send multiple pre-transmission frames to the host after receiving the write command frame, each pre-transmission frame can be used to indicate the transmission of a part of the target data, and the host can also send the target data to the UFS device through a corresponding number of data frames to transmit all the target data to the UFS device. In the above-mentioned write operation process, the host and the UFS device can complete the transmission of the accompanying information of all data in the same write IO, and will not increase the delay of the write operation, thereby solving the problem of the prior art. The use and efficiency of UFS during surgery are limited, and efficient transmission of data along the way is achieved. For ease of understanding, the following uses the structure of the host and the UFS device shown in FIG. 16 as an example to illustrate the solution provided in the embodiment of the present application. As shown in FIG16 , the host may include a host controller and a host memory, and the host controller may include a receiving detection calculation unit, a data framing and sending unit, and a buffer area. Among them, the receiving detection and calculation unit can be used to: parse the on-link control information carried in the received pre-transmission frame (for example, the arrangement of data and on-link information, the granularity of on-link information blocks, etc.), and perform a legality check on the parsed information, which can be stored after passing the check for subsequent use in sending data frames. The data framing and sending unit can be used to: after receiving the correct RTT UPIU, read the data and on-link information from the host memory to the buffer area according to the required arrangement according to the on-link control information in the RTT UPIU, and frame it into a write data UPIU and send it to the UFS device. The cache area can be used to: temporarily store the data and on-link information read from the host memory, and the space is released after the write data UPIU is sent. As shown in FIG16 , the UFS device may include a storage controller and a storage crystal grain, and the storage controller may include a command preprocessing unit, a cache calculation and framing unit, a data generation control unit, and a cache area. Among them, the command preprocessing unit may be used to: after the UFS device receives the CMD UPIU, it is required whether the CMD UPIU carries the accompanying control information, and is parsed according to the field used to carry the accompanying control information, and when it is carried, the arrangement mode, size, and granularity of the accompanying information in this IO are recorded. The cache calculation and framing unit may be used to: after the UFS device receives the CMD UPIU, calculate the cache space and data arrangement mode according to the size of the data, the size of the accompanying information, and the arrangement mode, and send the RTT UPIU according to the applied cache space. The data generation control may be used to: when the write data UPIU is received, identify whether the current write data UPIU carries the accompanying information, and if it carries, write the data and the accompanying information to the designated cache area according to the arrangement according to the accompanying control information. The cache area may be used to: temporarily cache data and accompanying information, and interact with the storage crystal grain for data. In a possible embodiment, the on-link information transmission method may include: S1. The host may send a CMD UPIU carrying on-link control information to the UFS device; S2. When the UFS device receives the CMD UPIU, the command preprocessing unit in the UFS device may parse the CMD UPIU, and when recognizing that the CMD UPIU is a write IO carrying on-link control information, execute the command and prepare the data space; S3. The cache calculation and framing unit in the UFS device determines the length of the target data to be transmitted in the CMD UPIU and the space status of the local cache, and generates an RTT UPIU according to the on-link control information and sends it to the host, wherein the RTT UPIU carries the on-link control information; S4. When the host receives the RTT UPIU, the receiving detection calculation unit in the host parses the RTT UPIU and the carried on-link control information, and performs a legitimacy check; S5. After the verification is passed, the receiving detection calculation unit performs a legitimacy check according to the RTT UPIU reads data from the host memory to the internal cache area, and arranges the data and the accompanying information according to the arrangement indicated by the accompanying control information; S6. The data framing and sending unit in the host performs the write data UPIU framing to package the frame header, data and accompanying information of the write data UPIU and send them to the UFS device; S7. After the UFS device receives the write data UPIU, the data generation control unit in the UFS device writes the data and the accompanying information into the internal cache area, and then writes them into the storage grain; S8. After the command is completed, the UFS device sends a response UPIU to the host. In Figure 16, the accompanying control information is represented as ED CTRL, and the accompanying information is represented as ED. In the technical solution provided in the embodiment of the present application, the host and the UFS device can complete the transmission of the in-path information of all data in the same write IO without increasing the delay of the write operation, thereby solving the problem of limited use and efficiency of UFS in the prior art and realizing efficient transmission of the in-path information of data. The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the host and the UFS device. It is understandable that in order to realize the above functions, the host and the UFS device include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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. The embodiment of the present application can divide the functional modules of the host and the UFS device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above functional modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module according to the corresponding function: In the case of adopting an integrated unit, FIG17 shows a possible structural diagram of the accompanying information transmission device involved in the above embodiment. The device can be a host, or a chip built into the host, and the device includes: a receiving unit 301, a sending unit 302, and a processing unit 303. In a possible embodiment, the receiving unit 301 can be used to support the device to perform the step of receiving the first pre-transmission frame in S202 of the above method embodiment; the sending unit 302 can be used to support the device to perform the step of sending the first data frame in S202 of the above method embodiment; the processing unit 303 can be used to support the device to perform the steps of parsing the first pre-transmission frame and generating the first data frame in the above method embodiment. Further, the sending unit 302 can also be used to support the device to perform S204 in the above method embodiment; the receiving unit 301 can also be used to support the device to perform S207 in the above method embodiment. In another possible embodiment, the receiving unit 301 can also be used to support the device to execute the step of receiving the second pre-transmission frame in S209 of the above-mentioned method embodiment; the sending unit 302 can be used to support the device to execute the step of sending the second data frame in S209 of the above-mentioned method embodiment; the processing unit 303 can be used to support the device to execute the steps of parsing the second pre-transmission frame and generating the second data frame in the above-mentioned method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. Based on the hardware implementation, the processing unit 303 may be a processor, the receiving unit 301 may be a receiver, the sending unit 302 may be a transmitter, the receiver and the transmitter may be integrated into a transceiver, and the transceiver may also be called a communication interface. Figure 18 is a possible structural diagram of the in-path information transmission device involved in the embodiment of the present application. The in-path information transmission device can be a host, or a chip built into the host. The device includes: a memory 311 and a processor 312. Among them, the memory 311 is used to store the program code and data of the device, and the processor 312 is used to control the actions of the host in the above-mentioned method embodiment. For example, the processor 312 is used in the steps of parsing the first pre-transmission frame and generating the first data frame in the above-mentioned method embodiment, parsing the second pre-transmission frame and generating the second data frame, and / or other processes for the technology described herein. Optionally, the device may also include a communication interface 313, and the communication interface 313 is used to support the device to execute the steps of communicating with the UFS device in the above-mentioned method embodiment. Among them, the processor 312 can be a central processing unit, a general processor, a digital signal processor, an application-specific integrated circuit, a processing chip, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various logic boxes, modules and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor 312 can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like. The communication interface 313 can be a transceiver, a transceiver circuit or a transceiver interface, and the like. The memory 311 can be a volatile memory or a non-volatile memory, and the like. For example, the communication interface 313, the processor 312, and the memory 311 are interconnected via a bus 314; the bus 314 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 314 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Optionally, the memory 311 may be included in the processor 312 . In the case of adopting an integrated unit, FIG19 shows a possible structural schematic diagram of the accompanying information transmission device involved in the above embodiment. The device may be a UFS device, and the device includes: a sending unit 401, a receiving unit 402, and a processing unit 403. In a possible embodiment, the sending unit 401 may be used to support the device to perform S201 in the above method embodiment; the receiving unit 402 may be used to support the device to perform S203 in the above method embodiment; the processing unit 403 may be used to support the device to perform the steps of generating a first pre-transmission frame and parsing a first data frame in the above method embodiment. Further, the receiving unit 402 may also be used to support the device to perform S205 in the above method embodiment; the sending unit 401 may also be used to support the device to perform S206 in the above method embodiment. In another possible embodiment, the sending unit 401 may also be used to support the device to perform S208 in the above method embodiment; the receiving unit 402 may also be used to support the device to perform S210 in the above method embodiment; the processing unit 403 may be used to support the device to perform the steps of generating a second pre-transmission frame and parsing a second data frame in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. Based on the hardware implementation, the processing unit 403 may be a processor, the receiving unit 402 may be a receiver, the sending unit 401 may be a transmitter, the receiver and the transmitter may be integrated into a transceiver, and the transceiver may also be called a communication interface. FIG. 20 is a schematic diagram of a possible structure of a device for transmitting information along a path involved in an embodiment of the present application, which may be UFS device. The device includes: a memory 411 and a processor 412. Among them, the memory 411 is used to store the program code and data of the device, and the processor 412 is used to control the actions of the host in the above-mentioned method embodiment. For example, the processor 412 is used to execute the steps of generating a first pre-transmission frame and parsing a first data frame in the above-mentioned method embodiment, the steps of generating a second pre-transmission frame and parsing a second data frame, and / or other processes for the technology described herein. Optionally, the device may also include a communication interface 413, which is used to support the device to execute the steps of communicating with the host in the above-mentioned method embodiment. Among them, the processor 412 can be a central processing unit, a general processor, a digital signal processor, an application-specific integrated circuit, a processing chip, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various logic boxes, modules and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor 412 can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like. The communication interface 413 can be a transceiver, a transceiver circuit or a transceiver interface, and the like. The memory 411 can be a volatile memory or a non-volatile memory, and the like. For example, the communication interface 413, the processor 412 and the memory 411 are connected to each other via a bus 414; the bus 414 may be a PCI bus or an EISA bus, etc. The bus 414 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Optionally, the memory 411 may be included in the processor 412 . In another aspect of the present application, an electronic device is provided, the electronic device comprising any of the hosts provided above, and any of the UFS devices provided above. The host is used to execute the host steps in the on-path information transmission method provided in the above method embodiment; the UFS device is used to execute the UFS device steps in the on-path information transmission method provided in the above method embodiment. In the method provided in the embodiment of the present application, it can be implemented in whole or in part by software, hardware or a combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, twisted pair) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any medium that a computer can access or a data storage device such as a server or a data center that includes one or more media integrations. The medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., an optical disk), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc. In another aspect of the present application, a computer-readable storage medium is provided, which includes computer instructions. When the computer instructions are executed by a device, the device executes the steps of the host in the in-path information transmission method provided in the above method embodiment. In another aspect of the present application, a computer-readable storage medium is provided, which includes computer instructions. When the computer instructions are executed by a device, the device executes the steps of the UFS device in the in-path information transmission method provided by the above method embodiment. In another aspect of the present application, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the steps of the host in the associated information transmission method provided in the above method embodiment. In another aspect of the present application, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute the steps of the UFS device in the associated information transmission provided in the above method embodiment. Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for transmitting information along a path, characterized in that: The method comprises: The host receives a first pre-transmission frame from a universal flash storage UFS device, where the first pre-transmission frame is used to indicate the transmission of first target data, and the first pre-transmission frame includes associated path control information, where the associated path control information is used to control the transmission of first associated path information of the first target data; The host sends a first data frame to the UFS device, where the first data frame includes the first target data and the first associated path information.

2. The method according to claim 1, characterized in that The method further comprises: The host sends a write command frame to the UFS device, where the write command frame is used to request writing of the first target data, and the write command frame includes the associated control information; The host receives a response frame from the UFS device, where the response frame is used to respond to the write command frame.

3. The method according to claim 2, characterized in that The write command frame is also used to request writing of second target data, and the method further includes: The host receives a second pre-transmission frame from the UFS device, where the second pre-transmission frame is used to indicate transmission of the second target data, and the second pre-transmission frame includes the associated path control information, where the associated path control information is further used to control transmission of second associated path information of the second target data; The host sends a second data frame to the UFS device, where the second data information frame includes the second target data and the second associated path information.

4. The method according to any one of claims 1 to 3, characterized in that: The frame includes a frame header, and the associated control information is carried in a reserved field of the frame header; the data frame also includes a frame tail, and the target data and the associated control information are carried in the frame tail.

5. The method according to claim 4, characterized in that The length of the reserved field is two bytes.

6. The method according to any one of claims 1 to 5, characterized in that: The target data includes at least one data block, the associated road information includes at least one associated road information block, and the at least one data block corresponds to the at least one associated road information block in a one-to-one manner; The associated control information is used to indicate at least one of the following information: the granularity of the data block, the granularity of the associated information block, and the arrangement of the data block and the associated information block.

7. The method according to claim 6, characterized in that The data blocks and the associated information blocks are arranged in one of the following ways: multiple data blocks plus multiple associated information blocks, multiple associated information blocks plus multiple data blocks, a single data block plus a single associated information block, and a single associated information block plus a single data block.

8. A method for transmitting information along a path, characterized in that: The method comprises: The universal flash storage UFS device sends a first pre-transmission frame to the host, where the first pre-transmission frame is used to indicate the transmission of first target data, and the first pre-transmission frame includes associated control information, where the associated control information is used to control the transmission of first associated information of the first target data; The UFS device receives a first data frame from the host, where the first data frame includes the first target data and the first associated path information.

9. The method according to claim 8, characterized in that The method further comprises: The UFS device receives a write command frame from the host, where the write command frame is used to request writing of the first target data, and the write command frame includes the associated control information; The UFS device sends a response frame to the host, where the response frame is used to respond to the write command frame.

10. The method according to claim 9, characterized in that The write command frame is also used to request writing of second target data, and the method further includes: The UFS device sends a second pre-transmission frame to the host, where the second pre-transmission frame is used to indicate transmission of the second target data, and the second pre-transmission frame includes the associated path control information, where the associated path control information is further used to control transmission of second associated path information of the second target data; The UFS device receives a second data frame from the host, where the second data information frame includes the second target data and the second associated path information.

11. The method according to any one of claims 8 to 10, characterized in that: The frame includes a frame header, and the associated control information is carried in a reserved field of the frame header; the data frame also includes a frame tail, and the target data and the associated control information are carried in the frame tail.

12. The method according to claim 11, characterized in that The length of the reserved field is two bytes.

13. The method according to any one of claims 8 to 12, characterized in that: The target data includes at least one data block, the associated road information includes at least one associated road information block, and the at least one data block corresponds to the at least one associated road information block in a one-to-one manner; The associated control information is used to indicate at least one of the following information: the granularity of the data block, the granularity of the associated information block, and the arrangement of the data block and the associated information block.

14. The method according to claim 13, characterized in that The data blocks and the associated information blocks are arranged in one of the following ways: multiple data blocks plus multiple associated information blocks, multiple associated information blocks plus multiple data blocks, a single data block plus a single associated information block, and a single associated information block plus a single data block.

15. A device for transmitting information along a path, characterized in that: The device comprises: A receiving unit, configured to receive a first pre-transmission frame from a universal flash storage (UFS) device, wherein the first pre-transmission frame is used to indicate transmission of first target data, and the first pre-transmission frame includes associated path control information, and the associated path control information is used to control transmission of first associated path information of the first target data; A sending unit is used to send a first data frame to the UFS device, where the first data frame includes the first target data and the first associated path information.

16. The device according to claim 15, characterized in that The sending unit is further used to send a write command frame to the UFS device, where the write command frame is used to request to write the first target data, and the write command frame includes the associated control information; The receiving unit is further configured to receive a response frame from the UFS device, wherein the response frame is configured to respond to the write command frame.

17. The device according to claim 16, characterized in that The write command frame is also used to request writing of second target data; The receiving unit is further used to receive a second pre-transmission frame from the UFS device, the second pre-transmission frame is used to indicate the transmission of the second target data, the second pre-transmission frame includes the associated control information, and the associated control information is further used to control the transmission of second associated information of the second target data; The sending unit is further configured to send a second data frame to the UFS device, where the second data information frame includes the second target data and the second associated path information.

18. The device according to any one of claims 15 to 17, characterized in that: The frame includes a frame header, and the associated control information is carried in a reserved field of the frame header; the data frame also includes a frame tail, and the target data and the associated control information are carried in the frame tail.

19. The device according to claim 18, characterized in that The length of the reserved field is two bytes.

20. The device according to any one of claims 15 to 19, characterized in that The target data includes at least one data block, the associated road information includes at least one associated road information block, and the at least one data block corresponds to the at least one associated road information block in a one-to-one manner; The associated control information is used to indicate at least one of the following information: the granularity of the data block, the granularity of the associated information block, and the arrangement of the data block and the associated information block.

21. The device according to claim 20, characterized in that The data blocks and the associated information blocks are arranged in one of the following ways: multiple data blocks plus multiple associated information blocks, multiple associated information blocks plus multiple data blocks, a single data block plus a single associated information block, and a single associated information block plus a single data block.

22. A device for transmitting information along a path, characterized in that: The device comprises: A sending unit, configured to send a first pre-transmission frame to a host, wherein the first pre-transmission frame is used to indicate transmission of first target data, and the first pre-transmission frame includes associated path control information, and the associated path control information is used to control transmission of first associated path information of the first target data; A receiving unit is used to receive a first data frame from the host, where the first data frame includes the first target data and the first associated information.

23. The device according to claim 22, characterized in that The receiving unit is further used to receive a write command frame from the host, the write command frame is used to request to write the first target data, and the write command frame includes the associated control information; The sending unit is further used to send a first pre-transmission frame to the host, where the first pre-transmission frame is used to indicate the transmission of the first target data, and the first pre-transmission frame includes the associated control information.

24. The device according to claim 23, characterized in that The write command frame is also used to request writing of second target data; The sending unit is further used to send a second pre-transmission frame to the host, the second pre-transmission frame is used to indicate the transmission of the second target data, the second pre-transmission frame includes the associated control information, and the associated control information is further used to control the transmission of second associated information of the second target data; The receiving unit is further used to receive a second data frame from the host, where the second data information frame includes second target data and the second associated information.

25. The device according to any one of claims 22 to 24, characterized in that The frame includes a frame header, and the associated control information is carried in a reserved field of the frame header; the data frame also includes a frame tail, and the target data and the associated control information are carried in the frame tail.

26. The device according to claim 25, characterized in that The length of the reserved field is two bytes.

27. The device according to any one of claims 22 to 26, characterized in that The target data includes at least one data block, the associated road information includes at least one associated road information block, and the at least one data block corresponds to the at least one associated road information block in a one-to-one manner; The associated control information is used to indicate at least one of the following information: the granularity of the data block, the granularity of the associated information block, and the arrangement of the data block and the associated information block.

28. The device according to claim 27, characterized in that The data blocks and the associated information blocks are arranged in one of the following ways: multiple data blocks plus multiple associated information blocks, multiple associated information blocks plus multiple data blocks, a single data block plus a single associated information block, and a single associated information block plus a single data block.

29. A device for transmitting information along a path, characterized in that: The information transmission device includes a processor and a memory, wherein instructions are stored in the memory. When the processor executes the instructions, the device executes the accompanying information transmission method according to any one of claims 1 to 7.

30. A device for transmitting information along a path, characterized in that: The information transmission device includes a processor and a memory, wherein instructions are stored in the memory. When the processor executes the instructions, the device executes the in-path information transmission method as described in any one of claims 8 to 14.

31. An electronic device, characterized in that: The electronic device comprises a coupled host and a UFS device, the host comprises the associated information transmission device as described in any one of claims 15-21 or claim 29, and the UFS device comprises the associated information transmission device as described in any one of claims 22-28 or claim 30.

32. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed by a device, the device executes the method for transmitting in-path information as described in any one of claims 1 to 14.

Citation Information

Patent Citations

  • Channel associated information transmission method, device and equipment

    CN118535507A

  • Method, system and device for transmitting downlink associated control channel frames

    CN101645751A

  • Method for performing business frame transmission and device thereof

    CN107105435A

  • Methods and systems for managing communication between a UFS device and a host

    US20200341825A1

  • Image data transmission apparatus and method, electronic device, medium, and display system

    WO2023010275A1