Information configuration method and device
By determining the configuration information of different types of data according to needs in data transmission and writing this information in different storage spaces, the problem that the prior art is difficult to efficiently transmit multiple types of data is solved, and flexible and compatible multiple types of data transmission is achieved.
Patent Information
- Application Number
- CN202411719574.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-02-28
AI Technical Summary
The prior art is difficult to transmit multiple types of data simultaneously compatible and efficiently, especially when the head and tail fields of the data frame are limited.
By determining the first configuration information and the second configuration information corresponding to different types of data according to the current data transmission needs, including the number of time slots, the time slot bit width and the arrangement order of time slots in the frame data field, and writing these configuration information in different storage spaces to flexibly define the transmission parameters of different data types.
It realizes efficient transmission of multiple types of data, improves the payload ratio of time slots, and is compatible with the transmission requirements of different types of data.
Smart Images

Figure CN119544650A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an information configuration method and device. Background Art
[0002] In data transmission, the data link layer at the sending end usually encapsulates the data passed down by the network layer into data frames and then sends them to the link for transmission. After receiving the data frame, the data link layer at the receiving end parses the data from the data frame and passes it to the network layer.
[0003] The data frame consists of a frame header, a data part, and a frame trailer, where the frame header and frame trailer are used to delimit the frame and transmit control information; the data part contains the data passed down by the network layer, corresponding to multiple time slots, each of which is used to transmit data. Generally, the above time slots transmit audio data. However, data transmission circuits often need to transmit data from multiple types of data interfaces at the same time.
[0004] At present, fields for transmitting data other than audio data are mainly defined in the frame header or frame tail. However, due to the short length of the frame header and frame tail, the number of fields that can be added is small and cannot be flexibly set, resulting in the inability to meet the performance requirements of transmitting multiple types of data at the same time. Therefore, how to transmit multiple types of data simultaneously in a compatible and efficient manner is a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of this, an embodiment of the present application provides an information configuration method and device to achieve efficient transmission of various types of data.
[0006] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:
[0007] In a first aspect of the present application, an information configuration method is provided, the method comprising:
[0008] Determine, according to the current data transmission demand, first configuration information and second configuration information corresponding to different types of data to be transmitted, wherein the first configuration information includes the number of time slots and the time slot width corresponding to different types of data to be transmitted, and the second configuration information includes the arrangement order of the time slots corresponding to different types of data to be transmitted in the data field of the frame;
[0009] For any type of data to be transmitted, the first configuration information corresponding to the data to be transmitted is written into a storage space associated with the data to be transmitted, and different types of data to be transmitted are associated with different storage spaces.
[0010] In some implementations, the storage spaces associated with different types of data to be transmitted are different registers, or the storage spaces associated with different types of data to be transmitted are different address segments in the same register.
[0011] In some implementations, the number of time slots is related to the number of interfaces that transmit the type of data to be transmitted, and the bit width of the time slot is related to the bit width of the data to be transmitted.
[0012] In some implementations, if the bandwidth for transmitting the data to be transmitted is greater than or equal to the required bandwidth, the number of time slots is equal to the number of interfaces;
[0013] If the bandwidth for transmitting the data to be transmitted is less than the required bandwidth, the number of time slots is less than the number of interfaces.
[0014] In some implementations, multiple time slots corresponding to the same type of data to be transmitted are arranged adjacently in the data field of the frame.
[0015] In some embodiments, the method further comprises:
[0016] In response to the first configuration information being written to the storage space associated with the data to be transmitted, the indication information corresponding to the storage space is updated from first information to second information, wherein the first information indicates that the storage space does not store the first configuration information, and the second information indicates that the storage space stores the first configuration information.
[0017] In some implementations, the storage space associated with the data to be transmitted includes a storage space on a sending end side and a storage space on a receiving end side, and the sending end is used to send data to the receiving end according to current data transmission requirements.
[0018] In a second aspect of the present application, an information configuration device is provided, the device comprising:
[0019] A determination unit, configured to determine, according to current data transmission requirements, first configuration information and second configuration information corresponding to different types of data to be transmitted, wherein the first configuration information includes the number of time slots and the time slot width corresponding to different types of data to be transmitted, and the second configuration information includes an arrangement order of time slots corresponding to different types of data to be transmitted in a data field of a frame;
[0020] The processing unit is used to write, for any type of data to be transmitted, first configuration information corresponding to the data to be transmitted into a storage space associated with the data to be transmitted, and different types of data to be transmitted are associated with different storage spaces.
[0021] In some implementations, the storage spaces associated with different types of data to be transmitted are different registers, or the storage spaces associated with different types of data to be transmitted are different address segments in the same register.
[0022] In some implementations, the number of time slots is related to the number of interfaces that transmit the type of data to be transmitted, and the bit width of the time slot is related to the bit width of the data to be transmitted.
[0023] In some implementations, if the bandwidth for transmitting the data to be transmitted is greater than or equal to the required bandwidth, the number of time slots is equal to the number of interfaces;
[0024] If the bandwidth for transmitting the data to be transmitted is less than the required bandwidth, the number of time slots is less than the number of interfaces.
[0025] In some implementations, multiple time slots corresponding to the same type of data to be transmitted are arranged adjacently in the data field of the frame.
[0026] In some embodiments, the processing unit is also used to update the indication information corresponding to the storage space from first information to second information in response to the first configuration information being written into the storage space associated with the data to be transmitted, wherein the first information indicates that the storage space does not store the first configuration information, and the second information indicates that the storage space stores the first configuration information.
[0027] In some implementations, the storage space associated with the data to be transmitted includes a storage space on a sending end side and a storage space on a receiving end side, and the sending end is used to send data to the receiving end according to current data transmission requirements.
[0028] It can be seen that the embodiments of the present application have the following beneficial effects:
[0029] In the present application, according to the current data transmission demand, the first configuration information and the second configuration information corresponding to the different types of data to be transmitted are determined. Among them, the first configuration information includes the number of time slots and the time slot width corresponding to different types of data to be transmitted, and the second configuration information includes the arrangement order of the time slots corresponding to different types of data to be transmitted in the data domain of the frame. For any type of data to be transmitted, the first configuration information corresponding to the data to be transmitted is written into the storage space associated with the data to be transmitted. Among them, the storage spaces associated with different types of data to be transmitted are different. That is, the number of time slots and the time slot width corresponding to different types of data to be transmitted are configured through different storage spaces. It can be seen that the present application can flexibly define the number of time slots and the time slot width used for transmitting data of different data types through different storage spaces, thereby improving the effective load ratio of the time slot. Moreover, the second configuration information enables the transmitting end to send each time slot in a determined arrangement order or enables the receiving end to parse each time slot in the frame according to the above-mentioned sorting order, so as to achieve compatible and efficient simultaneous transmission of multiple types of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1A flow chart of an information configuration method provided in an embodiment of the present application;
[0031] Figure 2a and Figure 2b A schematic diagram of carrying configuration information of different data types provided in an embodiment of the present application;
[0032] Figure 3 A time slot structure diagram provided for an embodiment of the present application;
[0033] Figure 4 A schematic diagram of a data sending process provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of a data receiving process provided in an embodiment of the present application;
[0035] Figure 6 A structural diagram of an information configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0037] See also Figure 1 , which is a diagram of an information configuration method provided in an embodiment of the present application, the method comprising:
[0038] S101: Determine first configuration information and second configuration information corresponding to different types of data to be transmitted according to current data transmission requirements.
[0039] In this embodiment, the device that performs information configuration can determine the data type to be transmitted and the time slot information corresponding to different types of data to be transmitted according to the current data transmission requirements. The time slot information includes the number of time slots corresponding to the data to be transmitted, the time slot bit width, and the distribution position of the time slot in the data domain of the frame. The number of time slots determines the number of signals that the transmission system can transmit simultaneously, and the bit width affects the transmission rate and capacity of the signal.
[0040] The first configuration information includes the number of time slots and the time slot width corresponding to different types of data to be transmitted. For example, if the data types to be transmitted include GPIO data, custom data, and audio data, the first configuration information includes the number of time slots and the time slot width corresponding to the transmission of GPIO data, the number of time slots and the time slot width corresponding to the transmission of custom data, and the number of time slots and the time slot width corresponding to the transmission of audio data.
[0041] The number of time slots is related to the number of interfaces that transmit the data of this type, and the time slot width is related to the bit width of the data to be transmitted. That is, the number of time slots is determined according to the number of interfaces that transmit the data of this type, and the time slot width is determined according to the bit width of the data of this type.
[0042] Specifically, if the bandwidth for transmitting the data to be transmitted is greater than or equal to the required bandwidth, the number of time slots corresponding to the data to be transmitted is equal to the number of interfaces.
[0043] If the bandwidth for transmitting the data to be transmitted is less than the required bandwidth, the number of time slots corresponding to the data to be transmitted is less than the number of interfaces. In this scenario, the data to be transmitted can be transmitted by time division multiplexing.
[0044] It should be noted that if a certain type of data does not need to be transmitted, the number of time slots and the time slot width corresponding to the type of data are configured to be 0.
[0045] In this embodiment, in order to distinguish the time slots corresponding to different types of data, the time slots can also be divided into different types of time slots according to the data type. For example, the time slot corresponding to GPIO data is called GPIO time slot, the time slot corresponding to custom data is called custom time slot, and the time slot corresponding to audio data is called audio time slot.
[0046] In this embodiment, the second configuration information includes the arrangement order of time slots corresponding to different types of data to be transmitted in the data field of the frame. For example, the GPIO time slot is arranged in front of the data field of the frame, the custom time slot is arranged in the middle of the data field of the frame, and the audio time slot is arranged at the back of the data field of the frame.
[0047] In this embodiment, to ensure the continuity of data reception, when multiple time slots are required to transmit a certain type of data, multiple time slots of the type of data are arranged adjacently in the data field of the frame. That is, time slots of the same type are arranged together. For example, GPIO time slot 1-GPIO time slot i are arranged together, custom time slot 1-custom time slot j are arranged together, and audio time slot 1-audio time slot k are arranged together. The specific values of i, j, and k are determined according to actual transmission requirements.
[0048] S102: For any type of data to be transmitted, write first configuration information corresponding to the data to be transmitted into a storage space associated with the data to be transmitted.
[0049] Different types of data to be transmitted are associated with different storage spaces, that is, the number of time slots and time slot widths corresponding to different types of data are configured through different storage spaces.
[0050] In this embodiment, different data types correspond to different storage spaces, and the different storage spaces may be different registers. Figure 2aAs shown, the number and bit width of GPIO time slots are stored in register 1, the number and bit width of custom time slots are stored in register 2, and the number and bit width of audio time slots are stored in register 3.
[0051] Alternatively, different storage spaces correspond to different address segments in the same register, and there are no duplicate addresses in the different address segments. Figure 2b As shown, the number and bit width of GPIO time slots are stored in address segment 1 of register 1, the number and bit width of custom time slots are stored in address segment 2 of register 1, and the number and bit width of audio time slots are stored in address segment 3 of register 1.
[0052] In order to enable both the data transmitter and the receiver to obtain the first configuration information, the storage space associated with the data to be transmitted includes the storage space on the transmitter side and the storage space on the receiver side. The transmitter is used to send data to the receiver according to the current data transmission demand.
[0053] In order to facilitate the sending end or the receiving end to quickly determine whether the first configuration information is stored in the storage space, this embodiment provides a solution. Specifically, in response to the first configuration information being written into the storage space associated with the data to be transmitted, the indication information corresponding to the storage space is updated from the first information to the second information. The first information indicates that the storage space does not store the first configuration information, and the second information indicates that the storage space stores the first configuration information. The representation of the first information and the second information can be set according to actual needs, for example, the first information is 0 and the second information is 1.
[0054] In addition, the second configuration information may be sent to the transmitting end and the receiving end so that the transmitting end can send each time slot in sequence according to the arrangement order included in the second configuration information, and the receiving end can parse each time slot in sequence according to the arrangement order.
[0055] The present application can flexibly define the number of time slots and time slot widths used to transmit data of different data types through different storage spaces, thereby improving the effective load ratio of the time slots. Moreover, the second configuration information enables the transmitting end to send each time slot in a determined arrangement order or enables the receiving end to parse each time slot in the frame in the above-mentioned arrangement order, thereby achieving compatible and efficient simultaneous transmission of multiple types of data.
[0056] For example, Figure 3 A communication topology structure diagram is shown, in which a master node and N slave nodes are included. The master node and the N slave nodes are configured with the same time slot structure, for example, including GPIO time slots, custom time slots and audio time slots, so that data can be efficiently transmitted between the master node and the N slave nodes.
[0057] To understand the specific implementation of this application, see Figure 4 The sending end sends data flow chart, such as Figure 4 As shown, three data types are used as an example for explanation:
[0058] First, determine whether the value of register 1 (indication information) is 0 (first information). If it is 0, it indicates that the number and bit width of the GPIO time slots are 0, that is, there is no GPIO data in the sent data, and the GPIO time slot is not sent; if it is not 0 (second information), it indicates that the number and bit width of the GPIO time slots are not 0, that is, there is GPIO data in the sent data, and the GPIO time slot is sent.
[0059] Then, determine whether the value of register 2 is 0. If it is 0, it indicates that the number and bit width of the custom time slots are 0, that is, there is no custom data in the sent data, and the custom time slot is not sent; if it is not 0, it indicates that the number and bit width of the custom time slots are not 0, that is, there is custom data in the sent data, and the custom time slot is sent.
[0060] Finally, determine whether the value of register 3 is 0. If it is 0, it indicates that the number and bit width of the audio time slots are 0, that is, there is no audio data in the sent data, and the audio time slot is not sent; if it is not 0, it indicates that the number and bit width of the audio time slots are not 0, that is, there is audio data in the sent data, and the audio time slot is sent.
[0061] See also Figure 5 , Figure 5 A schematic diagram of a process flow of receiving data at a receiving end provided in an embodiment of the present invention, taking three data types as an example, specifically includes:
[0062] First, determine whether the value of register 1 is 0. If it is 0, it indicates that the number and bit width of GPIO time slots are 0, that is, there is no GPIO data in the received data, and the GPIO time slots are not parsed; if it is not 0, it indicates that the number and bit width of GPIO time slots are not 0, that is, there is GPIO data in the received data, and the GPIO time slots are parsed.
[0063] Then, determine whether the value of register 2 is 0. If it is 0, it indicates that the number and bit width of the custom time slots are 0, that is, the received data contains custom data, and the custom time slots are not parsed; if it is not 0, it indicates that the number and bit width of the custom time slots are not 0, that is, the received data contains custom data, and the custom time slots are parsed.
[0064] Finally, determine whether the value of register 3 is 0. If it is 0, it indicates that the number and bit width of audio time slots are 0, that is, there is no audio data in the received data, and the audio time slot is not parsed; if it is not 0, it indicates that the number and bit width of audio time slots are not 0, that is, there is audio data in the received data, and the audio time slot is parsed.
[0065] Based on the above method embodiment, the present application provides an information configuration device, which will be described below in conjunction with the accompanying drawings.
[0066] See also Figure 6 , which is a structural diagram of an information configuration device provided in an embodiment of the present application, such as Figure 6 As shown, the device 600 includes: a determination unit 601 and a processing unit 602.
[0067] Among them, the determination unit 601 is used to determine the first configuration information and the second configuration information corresponding to different types of data to be transmitted according to the current data transmission demand, the first configuration information includes the number of time slots and the time slot width corresponding to different types of data to be transmitted, and the second configuration information includes the arrangement order of the time slots corresponding to different types of data to be transmitted in the data field of the frame;
[0068] The processing unit 602 is used to write, for any type of data to be transmitted, first configuration information corresponding to the data to be transmitted into a storage space associated with the data to be transmitted, and different types of data to be transmitted are associated with different storage spaces.
[0069] In some implementations, the storage spaces associated with different types of data to be transmitted are different registers, or the storage spaces associated with different types of data to be transmitted are different address segments in the same register.
[0070] In some implementations, the number of time slots is related to the number of interfaces that transmit the type of data to be transmitted, and the bit width of the time slot is related to the bit width of the data to be transmitted.
[0071] In some implementations, if the bandwidth for transmitting the data to be transmitted is greater than or equal to the required bandwidth, the number of time slots is equal to the number of interfaces; if the bandwidth for transmitting the data to be transmitted is less than the required bandwidth, the number of time slots is less than the number of interfaces.
[0072] In some implementations, multiple time slots corresponding to the same type of data to be transmitted are arranged adjacently in the data field.
[0073] In some embodiments, the processing unit 602 is also used to update the indication information corresponding to the storage space from first information to second information in response to the first configuration information being written into the storage space associated with the data to be transmitted, wherein the first information indicates that the storage space does not store the first configuration information, and the second information indicates that the storage space stores the first configuration information.
[0074] In some implementations, the storage space associated with the data to be transmitted includes a storage space on a sending end side and a storage space on a receiving end side, and the sending end is used to send data to the receiving end according to current data transmission requirements.
[0075] It should be noted that the information execution process and other contents of each unit in the above-mentioned device embodiment can be specifically referred to the description in the method embodiment shown in the above-mentioned application, and will not be repeated here.
[0076] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0077] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated 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 or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0078] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0079] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0080] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An information configuration method, characterized in that: The method comprises: Determine, according to the current data transmission demand, first configuration information and second configuration information corresponding to different types of data to be transmitted, wherein the first configuration information includes the number of time slots and the time slot width corresponding to different types of data to be transmitted, and the second configuration information includes the arrangement order of the time slots corresponding to different types of data to be transmitted in the data field of the frame; For any type of data to be transmitted, the first configuration information corresponding to the data to be transmitted is written into a storage space associated with the data to be transmitted, and different types of data to be transmitted are associated with different storage spaces.
2. The method according to claim 1, characterized in that: The storage spaces associated with different types of data to be transmitted are different registers, or the storage spaces associated with different types of data to be transmitted are different address segments in the same register.
3. The method according to claim 1, characterized in that The number of time slots is related to the number of interfaces that transmit the type of data to be transmitted, and the bit width of the time slot is related to the bit width of the data to be transmitted.
4. The method according to claim 3, characterized in that If the bandwidth for transmitting the data to be transmitted is greater than or equal to the required bandwidth, the number of time slots is equal to the number of interfaces; If the bandwidth for transmitting the data to be transmitted is less than the required bandwidth, the number of time slots is less than the number of interfaces.
5. The method according to claim 1, characterized in that Multiple time slots corresponding to the same type of data to be transmitted are arranged adjacently in the data field of the frame.
6. The method according to claim 1, characterized in that The method further comprises: In response to the first configuration information being written to the storage space associated with the data to be transmitted, the indication information corresponding to the storage space is updated from first information to second information, wherein the first information indicates that the storage space does not store the first configuration information, and the second information indicates that the storage space stores the first configuration information.
7. The method according to any one of claims 1 to 6, characterized in that: The storage space associated with the data to be transmitted includes a storage space on the sending end side and a storage space on the receiving end side, and the sending end is used to send data to the receiving end according to current data transmission requirements.
8. An information configuration device, characterized in that: The device includes: A determination unit, configured to determine, according to current data transmission requirements, first configuration information and second configuration information corresponding to different types of data to be transmitted, wherein the first configuration information includes the number of time slots and the time slot width corresponding to different types of data to be transmitted, and the second configuration information includes an arrangement order of time slots corresponding to different types of data to be transmitted in a data field of a frame; The processing unit is used to write, for any type of data to be transmitted, first configuration information corresponding to the data to be transmitted into a storage space associated with the data to be transmitted, and different types of data to be transmitted are associated with different storage spaces.
9. The device according to claim 8, characterized in that The storage spaces associated with different types of data to be transmitted are different registers, or the storage spaces associated with different types of data to be transmitted are different address segments in the same register.
10. The device according to claim 8, characterized in that The number of time slots is related to the number of interfaces that transmit the type of data to be transmitted, and the bit width of the time slot is related to the bit width of the data to be transmitted.
Citation Information
Patent Citations
Time slot configuration method and time slot configuration device
CN101145876A
Bandwidth reuse in multiplexed data stream
CN101548505A
Data time division transmission method and system
CN102932086A
Business data processing method and device
CN117221768A
Time slot allocation method and communication device
CN117221849A