Data transmission apparatus, method for controlling data transmission apparatus, and storage medium
The data transmission device facilitates efficient multiplexing and transmission of multiple data types by controlling write and read operations of first and second data, enhancing transmission efficiency through dynamic packet configuration.
Patent Information
- Application Number
- JP2024112527
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2026-01-23
AI Technical Summary
Existing data transmission methods require knowledge of transmission data configuration at packet generation, making it difficult to set the configuration dynamically and efficiently multiplex multiple data types.
A data transmission device with a first and second data write control unit, read control unit, multiplexing unit, and header insertion unit that allows for the transmission of first and second data together with location information, enabling flexible packet configuration based on input timing.
Enables efficient transmission of first and second data with location information, allowing for dynamic packet configuration and improved transmission efficiency by adjusting payload length.
Smart Images

Figure 2026011703000001_ABST
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to a data transmission device, a control method for a data transmission device, and a program. [Background technology]
[0002] Conventional methods for multiplexing and transmitting multiple data in a transmission device include a method for distinguishing each data type by transmission period and transmitting it, and a method for distinguishing each data type by identification information included in the header section of the packet and transmitting it.The former method provides a transmission period for each type of data, so transmission efficiency decreases during periods when no data is being output.The latter method reduces transmission efficiency because additional data must be output by adding a header section.
[0003] Patent Document 1 discloses a method for improving transmission efficiency by packetizing multiple pieces of data to reduce the header section and then adjusting the distribution of multiple pieces of data contained in the packet, thereby reducing periods when no data is being transmitted. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 4177169 Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the method disclosed in the above-mentioned Patent Document 1, it is necessary to know the configuration of the transmission data at the time of generating packets in order to multiplex and transmit multiple data, which makes it difficult to set the configuration of the transmission data and generate packets in accordance with data input to the transmitting side at any timing.
[0006] An object of the present disclosure is to enable the first data and second data to be transmitted together with location information of the first data and second data. [Means for solving the problem]
[0007] The data transmission device is a data transmission device having a data sending device, and the data sending device has a first data write control unit that controls writing of first data to a first buffer unit in units of a predetermined period, a second data write control unit that controls writing of second data to a second buffer unit, a read control unit that controls reading of the first data from the first buffer unit in units of the predetermined period and reading of the second data from the second buffer unit in an amount corresponding to the write timing of the second data to the second buffer unit, a multiplexing unit that multiplexes the first data read from the first buffer unit and the second data read from the second buffer unit, a header insertion unit that inserts a header unit containing placement information of the first data and the second data into the data multiplexed by the multiplexing unit, and a data sending unit that transmits the data into which the header unit has been inserted. [Effects of the Invention]
[0008] According to the present disclosure, when first data and second data are transmitted, the first data and second data can be transmitted together with information about the location of the first data and the second data. [Brief explanation of the drawings]
[0009] [Figure 1] FIG. 2 is a block diagram illustrating a configuration example of a data transmission device. [Figure 2] FIG. 2 is a block diagram illustrating an example of the configuration of a data receiving device. [Figure 3] 10 is a time chart of the WE signal of the first and second data. [Figure 4] FIG. 2 is a diagram illustrating a transmission packet. [Figure 5]10 is a flowchart showing the operation of a transmission control unit. [Figure 6] 10 is a flowchart showing the operation of a transmission control unit. DETAILED DESCRIPTION OF THE INVENTION
[0010] 1 and 2 are block diagrams showing an example of the configuration of a data transmission device 150 according to this embodiment.
[0011] The data transmission device 150 has a CPU (not shown) and a memory (not shown), and each process of the data transmission device 150 can be performed by the CPU executing each program in the memory.
[0012] The data transmission device 150 comprises a data transmission device 100, a data reception device 200, a transmission timing designation section 101, a transmission mode designation section 102, and an oscillator 103. A method for controlling the data transmission device 150 will now be described.
[0013] The data transmitting device 100 multiplexes and packets multiple data in accordance with the transmission mode information received from the transmission mode specifying unit 102 and the transmission start signal received from the transmission timing specifying unit 101, and transmits the packets to the data receiving device 200.
[0014] The data receiving device 200 receives packet data from the data transmitting device 100, unpacks it, and demultiplexes the data carried in the payload portion.
[0015] The transmission timing specification unit 101 transmits a transmission start signal to the second data transmission unit 106. Upon receiving the transmission start signal, the second data transmission unit 106 starts transmitting the second data.
[0016] The transmission mode designation unit 102 transmits transmission mode information to the data transmission device 100. The transmission mode information is information that specifies the amount of first and second data transmitted from the first data transmission unit 105 and the second data transmission unit 106 and the timing of transmission of the first data. The transmission mode information indicates a mode in which the requirements for data to be transmitted are determined according to the operation of the device, such as LV (live view) mode or still image shooting mode in the shooting mode of a camera, for example.
[0017] The oscillator 103 generates a reference clock for the operation of the data transmitting device 100 and the data receiving device 200 and transmits it to the data transmitting device 100 and the data receiving device 200 .
[0018] 1 is a block diagram showing an example of the configuration of a data transmitting device 100 according to this embodiment. The data transmitting device 100 includes a timing generating unit 104, a first data transmitting unit 105, a second data transmitting unit 106, FIFO buffer units 107 and 108, and a transmission control unit 109. The data transmitting device 100 further includes a multiplexing unit 115, a header inserting unit 116, a PLL 117, and a data transmitting unit 118.
[0019] First, the processing of each component included in the data transmitting device 100 will be described.
[0020] A timing generating unit (hereinafter referred to as a TG: Timing Generator) 104 generates a horizontal synchronization signal (HD) and a vertical synchronization signal (VD) synchronized with the reference clock from the transmission mode information received from the transmission mode specifying unit 102 and the reference clock received from the oscillator 103. The HD and VD are transmitted to a first data transmitting unit 105, a second data transmitting unit 106, a transmission control unit 109, a multiplexing unit 115, and a header inserting unit 116.
[0021] The first data transmitting unit 105 transmits the first data to the FIFO buffer unit 107 at a predetermined timing based on the VD and HD received from the TG 104. The first data is transmitted once per transmission, and the amount of data per transmission is determined by the transmission mode information. The predetermined timing refers to the period from when the VD is received until the number of times the HD is received reaches a predetermined number. Therefore, the first data transmitting unit 105 includes an internal HD counter. The first data transmitting unit 105 also transmits a Write Enable (WE) signal to the FIFO buffer unit 107, indicating that the first data has been written to the FIFO buffer unit 107.
[0022] The second data transmitting unit 106 transmits the second data to the FIFO buffer unit 108 at a timing (hereinafter referred to as arbitrary timing) based on the VD and HD received from the TG 104 and the transmission start signal received from the transmission timing specifying unit 101. The number of times the second data is transmitted per transmission is arbitrary. The amount of data per transmission of the second data is specified by the transmission mode information. The second data transmitting unit 106 also transmits a Write Enable (WE) signal indicating that the second data has been written to the FIFO buffer unit 108 to the FIFO buffer unit 108 and the timing observing unit 110.
[0023] FIFO buffer unit 107 and FIFO buffer unit 108 receive the first data and second data and their WE signals transmitted from first data transmission unit 105 and second data transmission unit 106. FIFO buffer unit 107 and FIFO buffer unit 108 also buffer the first data and second data during the HD period.
[0024] The transmission control unit 109 includes a timing observation unit 110, a data amount setting unit 111, a read control unit 112, an arrangement information setting unit 113, and a write state determination unit 114. The transmission control unit 109 also includes an internal HD counter that counts the number of HDs, and a clock counter that counts the number of clocks.
[0025] The transmission control unit 109 also reads the transmission mode information received from the transmission mode designation unit 102. From this, the transmission control unit 109 reads the number of bytes of the first data and the second data transmitted per HD, which are preset according to the transmission mode, and the number of HDs to which the first data and the second data are transmitted per transmission. The transmission control unit 109 also reads the HD timing, in number of HDs, at which transmission of the first data starts, which is preset according to the transmission mode.
[0026] The timing observation unit 110 receives the WE signal of the second data from the second data transmission unit 106, generates timing information indicating the timing at which the WE signal was received, and transmits this information to the data amount setting unit 111 and the write state determination unit 114. The timing information indicates the number of clock cycles from when the HD is received until when reception of the WE signal begins. The timing observation unit 110 counts up using a clock counter built into the transmission control unit 109.
[0027] The data amount setting unit 111 sets data amount information indicating the amounts of the first data and the second data. The data amount information indicates the amounts of the first data and the second data written in the FIFO buffer units 107 and 108 per HD in bytes.
[0028] The data amount of the first data is set by reading the number of bytes of the first data transmitted per HD from the transmission control unit 109. The data amount setting unit 111 reads the number of HDs to which the first data is transmitted per transmission from the transmission control unit 109, and sets the data amount of the first data for that number of HDs. The HDs are counted using a HD counter built into the transmission control unit 109.
[0029] The amount of second data is set by reading the number of clocks per HD and the number of bytes of second data transmitted per HD from the transmission control unit 109, and by reading the timing information received from the timing observation unit 110. For example, assume that the number of clocks per HD of second data is 20, the number of bytes of second data transmitted per HD is 256, and the timing when the WE signal is received is the 10th clock cycle from the HD. In this case, the amount of second data is 256 × (20 - 10) / 20 = 128 bytes.
[0030] Then, the data amount setting unit 111 sets the data amount information in synchronization with the HD and transmits it to the read control unit 112. In other words, the data amount setting unit 111 transmits the data amount information to the read control unit 112 with a delay of one HD after the data is actually written to the FIFO buffer units 107 and 108.
[0031] The read control unit 112 generates a Read Request (RR) signal in accordance with the data amount information received from the data amount setting unit 111. Then, the read control unit 112 transmits the RR signal to the FIFO buffer units 107 and .
[0032] The allocation information setting unit 113 sets allocation information of the first data and second data to be loaded into the payload portion of the transmission data based on the data amount information received from the data amount setting unit 111. The allocation information indicates, in bytes, the positions where the loading of the first data and second data in the payload starts and ends.
[0033] The write state determination unit 114 determines the write state based on the timing information received from the timing observation unit 110 and the transmission mode information received from the transmission mode specification unit 102. The write state determination unit 114 reads an HD count value indicating the start and end positions of the transmission of the first data from the transmission mode information. The write state determination unit 114 also reads the number of HDs per transmission of the first data and the second data from the transmission mode information. The write state determination unit 114 also reads the write start timing of the first data from the transmission mode information. The write state determination unit 114 also determines the number of HDs in the current transmission relative to the VD using an HD counter built into the transmission control unit 109.
[0034] From these, the write status determination unit 114 determines how the first data and the second data are written to the FIFO buffer unit 107 and the FIFO buffer unit 108, respectively, and generates write status information indicating the status. The write status will be described later with reference to Fig. 3. The write status determination unit 114 transmits the write status information to the header insertion unit 116.
[0035] Based on the VD and HD received from TG 104, multiplexing unit 115 receives the first data and second data from FIFO buffer units 107 and 108 and stores them in an internal memory. Thereafter, multiplexing unit 115 reads the memory in accordance with the arrangement information received from arrangement information setting unit 113, generates multiplexed data, and transmits it to header insertion unit 116.
[0036] Based on the VD and HD received from the TG 104, the header insertion unit 116 receives multiplexed data from the multiplexing unit 115, allocation information from the allocation information setting unit 113, and write status information from the write status determination unit 114, and generates a header section. The header insertion unit 116 generates the header section in synchronization with the HD, but changes the timing of generation in accordance with the write status information. For example, if the write status information = 3, it is set to include one header for multiplexed data received over three HDs. The header insertion unit 116 includes the payload length and allocation information in the header section, packetizes the multiplexed data, and transmits it to the data transmission unit 118.
[0037] A phase locked loop (PLL) 117 generates a clock to be used in data transmission by a data transmitting unit 118 from the reference clock received from the oscillator 103 , and transmits the clock to the data transmitting unit 118 .
[0038] The data transmitting unit 118 converts the packet data input from the header inserting unit 116 into a serial code using the clock received from the PLL 117 , and transmits the code to the data receiving device 200 .
[0039] 2 is a block diagram showing an example configuration of data receiving device 200. Data receiving device 200 includes PLL 201, data receiving unit 202, header analyzing unit 203, data separating unit 204, first data receiving unit 205, and second data receiving unit 206.
[0040] First, the processing of each component included in the data receiving device 200 will be described.
[0041] A phase locked loop (PLL) 201 generates a clock used for receiving packet data in a data receiving unit 202 from a reference clock received from the oscillator 103 , and transmits the clock to the data receiving unit 202 .
[0042] The data receiving unit 202 converts the serial data received from the data transmitting unit 118 into a parallel code using the clock received from the PLL 201 , and transmits the parallel code to the header analyzing unit 203 .
[0043] Header analysis unit 203 receives packet data from data receiving unit 202 and analyzes the header portion of the packet data. After that, header analysis unit 203 separates the payload from the payload information included in the header portion and transmits it to data separation unit 204. Header analysis unit 203 also transmits the allocation information and payload length information included in the header portion to data separation unit 204.
[0044] The data separation unit 204 uses the placement information received from the header analysis unit 203 to identify the positions of the first data and second data placed in the payload, and transmits the first data to the first data receiving unit 205 and the second data to the second data receiving unit 206.
[0045] 3(a) and (b) are time charts illustrating the states of the WE signals of the first data and the second data transmitted from the first data transmitting unit 105 and the second data transmitting unit 106 to the FIFO buffer unit 107 and the FIFO buffer unit 108 in this embodiment.
[0046] Figures 3(a) and (b) show, from the top, VD, HD, the WE signal of the first data transmitted from the first data transmission unit 105, and the WE signal of the second data transmitted from the second data transmission unit 106.
[0047] 3(a) assumes a state in which the first data and the second data are transmitted in parallel in time from the first data transmitting unit 105 and the second data transmitting unit 106. Also, FIG. 3(b) assumes a state in which the first data and the second data are not transmitted in parallel in time from the first data transmitting unit 105 and the second data transmitting unit 106.
[0048] States A, B, C, D, E, F, and G in Figures 3(a) and (b) indicate states that are divided into those at the start and end of writing the second data between HDs and those at other times.
[0049] State A indicates a state in which only the first data is written for a predetermined period of time.
[0050] State B indicates a state in which writing of second data starts when first data has been written for a predetermined period of time.
[0051] State C indicates a state in which the first data and the second data are written for a predetermined period of time.
[0052] State D indicates a state in which the writing of the second data is completed when the first data has been written for a predetermined period of time.
[0053] State E indicates a state in which only the first data is written.
[0054] State F indicates a state in which only the second data is written.
[0055] State G indicates a state in which the first data and the second data are not written.
[0056] The data amount setting unit 111 determines the states A to G in Figures 3(a) and (b) based on the timing information obtained from the timing observation unit 110 and the transmission mode information obtained from the transmission mode designation unit 102, and sets the corresponding data amount information.
[0057] Here, in the case of state G, the data amount setting unit 111 sets the data amounts of the first data and the second data to 0. A method for setting the data amount information by the data amount setting unit 111 will be described later with reference to FIGS.
[0058] 3(a) and 3(b) illustrate an example in which the first data and the second data are written in parallel twice. However, if the number of data items is increased and the number of parallel data items changes, the state may be defined based on the write status of each item. Also, the WE signal for the second data is illustrated as asynchronous with the HD, but it may be synchronous with the HD. Also, although an example in which the second data is written three times is illustrated, the number of writes is not specified.
[0059] 4 is a diagram showing one packet of transmission data transmitted from the data transmitting device 100 according to this embodiment to the data receiving device 200. The packet data has a header section 400 and a payload section 403.
[0060] Header section 400 of the packet includes arrangement information 401 of first data and second data to be arranged in payload section 403, and payload length information 402 indicating the length of payload section 403. The configuration of payload section 403 is determined by arrangement information 401 set by arrangement information setting section 113 and payload length information 402 set by header insertion section 116. For example, the configuration can be set like packet configurations A to F in FIG.
[0061] The packet configuration (A) 404 corresponds to state A in FIGS. 3(a) and 3(b).
[0062] Moreover, packet configuration (B) 405 corresponds to state B in FIGS. 3(a) and 3(b).
[0063] Moreover, packet configuration (C) 406 corresponds to state C in FIGS. 3(a) and 3(b).
[0064] Moreover, packet configuration (D) 407 corresponds to state D in FIGS. 3(a) and 3(b).
[0065] Moreover, packet configuration (E) 408 corresponds to state E in FIGS. 3(a) and 3(b).
[0066] Moreover, packet configuration (F) 409 corresponds to state F in FIGS. 3(a) and 3(b).
[0067] Packet configuration (A) 404 contains n bytes of first data, where n is the maximum number of bytes that the first data can be transmitted in the HD period.
[0068] Packet configuration (B) 405 includes n bytes of first data and m bytes of second data, where m is changed according to timing information indicating the timing at which the second data is written to FIFO buffer unit 108 within a predetermined period.
[0069] Packet configuration (C) 406 contains n bytes of first data and p bytes of second data. Here, p is the maximum number of bytes of second data that can be sent during a HD period. Also, Figure 4 shows the case where write status information = 2, with two HD's worth of data combined into one payload.
[0070] Packet configuration (D) 407 includes n bytes of first data and k bytes of second data, where k is changed according to timing information indicating the timing at which the second data is written to FIFO buffer unit 108.
[0071] Packet configuration (E) 408 contains j bytes of first data, where j is the number of bytes of first data sent per transmission.
[0072] Packet configuration (F) 409 contains i bytes of second data, where i is the number of bytes of second data transmitted per transmission.
[0073] It is also assumed that each packet configuration corresponds to data amount information A, B, C, D, E, and F set by data amount setting unit 111. Specifically, packet configuration (A) 404 corresponds to data amount information A, packet configuration (B) 405 corresponds to data amount information B, packet configuration (C) 406 corresponds to data amount information C, and packet configuration (D) 407 corresponds to data amount information D. Packet configuration (E) 408 corresponds to data amount information E, and packet configuration (F) 409 corresponds to data amount information F. According to the data amount information transmitted by data amount setting unit 111, arrangement information setting unit 113 changes the arrangement information, and the packet configuration is set.
[0074] FIG. 5 is a flowchart showing the operation of the transmission control unit 109 when transmitting one frame of data in a transmission mode in which the first data and the second data are transmitted in parallel in time in this embodiment.
[0075] In step S501, the transmission control unit 109 reads the transmission mode information received from the transmission mode designation unit .
[0076] In step S502, the transmission control unit 109 determines, based on the transmission mode information, whether it is time to start writing the first data to the FIFO buffer unit 107. This determination is made in synchronization with the HD. If the transmission control unit 109 determines that it is time to start writing the first data, the process proceeds to step S503. If the transmission control unit 109 determines that it is not time to start writing the first data, the process returns to step S502 and waits until the start timing.
[0077] In step S503, the timing observation unit 110 determines whether it is the timing to start transmitting the WE signal of the second data, based on the WE signal of the second data received from the second data transmission unit 106. If the timing observation unit 110 determines that it is the timing to start transmitting the WE signal of the second data, the process proceeds to step S507. If the timing observation unit 110 determines that it is not the timing to start transmitting the WE signal of the second data, the process proceeds to step S504.
[0078] In step S504, the transmission control unit 109 determines, based on the transmission mode information, whether or not it is time to end writing of the first data to the FIFO buffer unit 107. This determination is made in synchronization with the HD. If the transmission control unit 109 determines that it is time to end, it ends the transmission process for one frame in FIG. 5. If the transmission control unit 109 determines that it is not time to end, the process proceeds to step S505.
[0079] In step S505, the data amount setting unit 111 reads the number of bytes of the first data to be written per HD from the transmission mode information, and sets this number of bytes as data amount information A. The data amount setting unit 111 transmits the data amount information A to the arrangement information setting unit 113 and the read control unit 112. Then, the process proceeds to step S506.
[0080] In step S506, the read control unit 112 transmits an RR signal to the FIFO buffer unit 107 in accordance with the received data amount information A. The arrangement information setting unit 113 sets arrangement information indicating the start and end positions of the first data and the second data in terms of the number of bytes in accordance with the received data amount information A, and transmits the arrangement information to the multiplexing unit 115 and the header insertion unit 116.
[0081] The write state determination unit 114 determines which of A to G in Fig. 3 the current write state is based on the number of HDs per transmission of the first data and the second data, the HD count value at which transmission of the first data started, and timing information received from the timing observation unit 110. Then, the write state determination unit 114 sets write state information indicating the determined state and transmits the write state information to the header insertion unit 116. After that, the process returns to step S503.
[0082] In step S506, since the second data does not exist, the data amount setting unit 111 sets the second data amount to 0 bytes and transmits this to the read control unit 112. Therefore, the RR signal is not transmitted to the FIFO buffer unit 108. Also, since the second data is not loaded with respect to the placement information, a value previously agreed upon between the transmitter and the receiver is stored to indicate that the second data does not exist.
[0083] In step S507, the data amount setting unit 111 reads the number of bytes of the first data and the second data to be written per HD from the transmission mode information. Then, the data amount setting unit 111 calculates the number of bytes of the second data transmitted from the number of bytes and the timing information received from the timing observation unit 110, and sets the number of bytes as data amount information B. The data amount setting unit 111 transmits the data amount information B to the arrangement information setting unit 113 and the read control unit 112. Then, the process proceeds to step S508.
[0084] In step S508, the transmission control unit 109 performs essentially the same processing as in step S506. However, in step S508, because first data and second data exist, the read control unit 112 transmits RR signals corresponding to the first data and second data to the FIFO buffer units 107 and 108. The allocation information setting unit 113 sets allocation information indicating the start and end positions of the first data and second data in terms of the number of bytes. After the processing is completed, the process proceeds to step S509.
[0085] In step S509, the timing observation unit 110 determines whether it is the timing to end transmission of the WE signal of the second data based on the WE signal of the second data received from the second data transmission unit 106. The determination is performed in synchronization with the HD. If the timing observation unit 110 determines that it is the timing to end transmission of the WE signal of the second data, the process proceeds to step S512. If the timing observation unit 110 determines that it is not the timing to end transmission of the WE signal of the second data, the process proceeds to step S510.
[0086] In step S510, the data amount setting unit 111 reads the number of bytes of the first data and second data to be written per HD from the transmission mode information, and sets this number of bytes as data amount information C. Then, the process proceeds to step S511.
[0087] In step S511, the transmission control unit 109 performs essentially the same processing as in step S506. However, because first data and second data exist in step S511, the read control unit 112 transmits RR signals corresponding to the first data and second data to the FIFO buffer units 107 and 108. The allocation information setting unit 113 sets allocation information indicating the start and end positions of the first data and second data in terms of the number of bytes. In addition, the write status determination unit 114 sets write status information indicating the C status. Here, the write status information indicates the number of HDs for the data period that constitutes one packet. As a result, the header insertion unit 116 packetizes the data for the HD period specified by the write status information into one data. After processing is completed, the process returns to step S509.
[0088] In step S512, the data amount setting unit 111 reads the number of bytes of the first data and the second data to be written per HD from the transmission mode information. Then, the data amount setting unit 111 calculates the number of bytes of the second data transmitted from the number of bytes and the timing information received from the timing observation unit 110, and sets the number of bytes as data amount information D. The data amount setting unit 111 transmits the data amount information D to the arrangement information setting unit 113 and the read control unit 112. Then, the process proceeds to step S513.
[0089] In step S513, the transmission control unit 109 performs essentially the same processing as in step S506. However, in step S513, because first data and second data exist, the read control unit 112 transmits RR signals corresponding to the first data and second data to the FIFO buffer units 107 and 108. The allocation information setting unit 113 sets allocation information indicating the start and end positions of the first data and second data in terms of the number of bytes. After the processing is completed, the process returns to step S503.
[0090] As described above, this embodiment enables packets to be generated by setting the configuration of transmission data in accordance with second data input to the transmitting side at any timing. However, the second data may be data input to the transmitting side at a predetermined timing. In this case, since the timing at which the first data and second data are input to the transmitting side is specified, the configuration of transmission data can be set to increase the packet length for transmission. For example, in a transmission mode in which the first data and second data are not transmitted in parallel, the first data and second data may each be transmitted in one packet. This allows the payload per packet to be set longer, thereby improving transmission efficiency.
[0091] FIG. 6 is a flowchart showing the operation of the transmission control unit 109 when transmitting one frame of data in a transmission mode in which the first data and the second data are not transmitted in parallel in time, as an example in which the second data is input to the transmitting side at a predetermined timing.
[0092] First, the transmission control unit 109 performs the same processes of steps S501 and S502 as in Fig. 5. However, if the transmission control unit 109 determines in step S502 that it is time to start writing the first data, the process proceeds to step S601.
[0093] In step S601, the data amount setting unit 111 reads the number of bytes of the first data written per HD and the number of HDs to which the first data is transmitted from the transmission mode information, and sets data amount information E of the first data based on the read mode information.Then, the data amount setting unit 111 transmits the data amount information E to the arrangement information setting unit 113 and the read control unit 112.
[0094] In step S602, the transmission control unit 109 performs essentially the same processing as in step S506 in Fig. 5. However, in step S602, since the second data does not exist, the data amount setting unit 111 sets the data amount of the second data to 0 bytes and transmits this to the read control unit 112. Therefore, the RR signal is not transmitted to the FIFO buffer unit 108. The read control unit 112 transmits the RR signal to the FIFO buffer unit 107 in accordance with the received data amount information E. Furthermore, since the second data is not included in the allocation information, a value previously agreed upon between the transmitter and the receiver is stored to indicate that the second data does not exist. Then, the process proceeds to step S603.
[0095] In step S603, the transmission control unit 109 determines, based on the transmission mode information, whether it is time to end writing of the first data to the FIFO buffer unit 107. This determination is made in synchronization with the HD. If the transmission control unit 109 determines that it is time to end, the process proceeds to step S604. If the transmission control unit 109 determines that it is not time to end, the process returns to step S601.
[0096] In step S604, the transmission control unit 109 determines, based on the transmission mode information, whether it is time to start writing the second data to the FIFO buffer unit 108. This determination is made in synchronization with the HD. If the transmission control unit 109 determines that it is time to start, the process proceeds to step S605. If the transmission control unit 109 determines that it is not time to start, the process returns to step S604 and waits until writing starts.
[0097] In step S605, the data amount setting unit 111 reads the number of bytes to be written per HD of the second data and the number of HDs to which the second data is transmitted from the transmission mode information, and sets data amount information F of the second data based on the read mode information.Then, the data amount setting unit 111 transmits the data amount information F to the arrangement information setting unit 113 and the read control unit 112.Then, the process proceeds to step S606.
[0098] In step S606, the transmission control unit 109 performs essentially the same processing as in step S506 in Fig. 5. However, in step S606, since the first data does not exist, the data amount setting unit 111 sets the data amount of the first data to 0 bytes and transmits this to the read control unit 112. Therefore, the RR signal is not transmitted to the FIFO buffer unit 107. The read control unit 112 transmits the RR signal to the FIFO buffer unit 108 in accordance with the received data amount information F. Furthermore, since the first data is not included in the allocation information, a value previously agreed upon between the transmitter and the receiver is stored to indicate that the first data does not exist. Then, the process proceeds to step S607.
[0099] In step S607, the transmission control unit 109 determines, based on the transmission mode information, whether or not it is time to finish writing the second data to the FIFO buffer unit 108. This determination is made in synchronization with the HD. If the transmission control unit 109 determines that it is time to finish, it ends the data transmission process for one frame in FIG. 6. If the transmission control unit 109 determines that it is not time to finish, the process returns to step S605.
[0100] As described above, the first data transmission unit 105 functions as a data writing control unit, and controls the writing of the first data into the FIFO buffer unit 107 in units of a predetermined period, as shown in Figures 3(a) and 3(b). For example, the predetermined period is the interval between horizontal synchronization signals (HD).
[0101] The second data transmission unit 106 functions as a data write control unit, and controls the second data to be written into the FIFO buffer unit 108 as shown in FIGS. 3(a) and 3(b).
[0102] The timing observation unit 110 functions as a timing information generation unit, and generates timing information indicating the write start timing or write end timing of the second data to the FIFO buffer unit .
[0103] The data amount setting unit 111 sets the amount of the second data in accordance with the timing of writing the second data to the FIFO buffer unit 108. Specifically, the data amount setting unit 111 sets the amount of the second data based on the timing information generated by the timing observation unit 110.
[0104] The read control unit 112 controls the FIFO buffer unit 107 to read the first data at predetermined intervals. Then, the read control unit 112 controls the FIFO buffer unit 108 to read the second data, the amount of which corresponds to the timing of writing the second data to the FIFO buffer unit 108. Specifically, the read control unit 112 controls the FIFO buffer unit 108 to read the second data, the amount of which is set by the data amount setting unit 111, from the FIFO buffer unit 108.
[0105] The allocation information setting unit 113 sets allocation information 401 for the first data and the second data in accordance with the data amount set by the data amount setting unit 111 .
[0106] The multiplexing unit 115 multiplexes the first data read from the FIFO buffer unit 107 and the second data read from the FIFO buffer unit 108 based on the placement information 401 set by the placement information setting unit 113.
[0107] Header insertion unit 116 generates packet data by inserting header section 400 into payload section 403 of the data multiplexed by multiplexing unit 115. Header section 400 includes arrangement information 401 of the first data and second data set by arrangement information setting unit 113, and payload length information 402 of the data multiplexed by multiplexing unit 115. Header insertion unit 116 generates packet data by inserting header section 400 into multiplexed data of one or more predetermined periods and packetizing the data.
[0108] The data transmitting unit 118 transmits the packet data into which the header portion 400 has been inserted.
[0109] In the case of FIG. 3(a), the control of the writing of the first data by the first data transmission unit 105 and the control of the writing of the second data by the second data transmission unit 106 can be executed in parallel in terms of time.
[0110] When the writing of the first data and the writing of the second data continues for multiple predetermined periods, as in state C, the header insertion unit 116 generates one packet data by inserting a header section 400 into the multiplexed data for multiple predetermined periods and packetizing it.
[0111] If the writing of the first data and the writing of the second data do not continue for multiple predetermined periods, the header insertion unit 116 generates one packet data by inserting a header section 400 into the multiplexed data for one predetermined period and packetizing it.
[0112] State A is a case where first data transmission unit 105 controls FIFO buffer unit 107 to continue writing first data for a predetermined period, and second data transmission unit 106 controls FIFO buffer unit 108 not to write second data for a predetermined period. In this case, header insertion unit 116 inserts header section 400 including first data placement information 401, as shown in FIG.
[0113] State B is a case where first data transmission unit 105 controls FIFO buffer unit 107 to continue writing first data for a predetermined period, and second data transmission unit 106 controls FIFO buffer unit 108 to start writing second data during the predetermined period. In this case, header insertion unit 116 inserts header section 400 including allocation information 401 of the first data and second data, as shown in FIG.
[0114] State C is a case where first data transmission unit 105 controls FIFO buffer unit 107 to continue writing first data for a plurality of predetermined periods, and second data transmission unit 106 controls FIFO buffer unit 108 to continue writing second data for a plurality of predetermined periods. In this case, header insertion unit 116 inserts header section 400 including arrangement information 401 of the first data and second data, as shown in FIG.
[0115] State D is a case where first data transmission unit 105 controls FIFO buffer unit 107 to continue writing the first data for a predetermined period, and second data transmission unit 106 controls FIFO buffer unit 108 to end writing the second data in the middle of the predetermined period. In this case, header insertion unit 116 inserts header section 400 including arrangement information 401 of the first data and second data, as shown in FIG.
[0116] In the case of FIG. 3(b), the control of the writing of the first data by the first data transmission unit 105 and the control of the writing of the second data by the second data transmission unit 106 cannot be executed in parallel in terms of time.
[0117] State E is a case where first data transmission unit 105 controls FIFO buffer unit 107 to continue writing first data for one or more predetermined periods, and second data transmission unit 106 controls FIFO buffer unit 108 not to write second data for one or more predetermined periods. In this case, header insertion unit 116 inserts header section 400 including first data placement information 401, as shown in FIG. 4 .
[0118] State F is a case where second data transmission unit 106 controls FIFO buffer unit 108 to continue writing the second data for one or more predetermined periods, and first data transmission unit 105 controls FIFO buffer unit 107 not to write the first data for one or more predetermined periods. In this case, header insertion unit 116 inserts header section 400 including second data placement information 401, as shown in FIG. 4 .
[0119] The data transmission device 150 includes a data receiving device 200. A data receiving unit 202 receives packet data including first data and second data. A data separating unit 204 separates the first data and the second data from the packet data based on arrangement information 401 of the first data and the second data included in a header portion 400 of the packet data received by the data receiving unit 202.
[0120] As described above, according to this embodiment, the packet configuration can be set in accordance with the input timing of the second data, and the payload length per packet can be changed, thereby improving transmission efficiency.
[0121] When packetizing and transmitting the first data and the second data, the data transmitting device 100 enables the packet configuration to be set in accordance with the second data input at any timing to generate the packets.
[0122] (Other embodiments) The present disclosure can also be realized by a process in which a program that realizes one or more functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in the computer of the system or device read and execute the program. The present disclosure can also be realized by a circuit (e.g., ASIC) that realizes one or more functions.
[0123] Although the preferred embodiments have been described above, the present invention is not limited to these embodiments and various modifications and changes are possible within the scope of the gist thereof.
[0124] The disclosure of this embodiment includes the following configuration, method, and program. (Configuration 1) A data transmission device having a data sending device, The data transmission device a first data write control unit that controls the first data to be written to the first buffer unit in units of a predetermined period; a second data write control unit that controls the second data to be written to the second buffer unit; a read control unit that controls the first data to be read from the first buffer unit in units of the predetermined period, and the second data to be read from the second buffer unit in an amount corresponding to a write timing of the second data to the second buffer unit; a multiplexing unit that multiplexes the first data read from the first buffer unit and the second data read from the second buffer unit; a header insertion unit that inserts a header unit including arrangement information of the first data and the second data into the data multiplexed by the multiplexing unit; a data transmission unit that transmits the data into which the header portion is inserted; A data transmission device comprising: (Configuration 2) the data transmission device further includes a data amount setting unit that sets a data amount of the second data in accordance with a write timing of the second data to the second buffer unit; 2. The data transmission device according to configuration 1, wherein the read control unit controls the second data to be read from the second buffer unit in the amount of data set by the data amount setting unit. (Configuration 3) the data transmission device further includes a placement information setting unit that sets placement information of the first data and the second data in accordance with the data amount set by the data amount setting unit; the multiplexing unit multiplexes the first data and the second data based on the placement information set by the placement information setting unit; 3. The data transmission device according to configuration 2, wherein the header insertion unit inserts a header portion including the arrangement information set by the arrangement information setting unit. (Configuration 4) the data transmission device further includes a timing information generation unit that generates timing information indicating a write start timing or a write end timing of the second data to the second buffer unit; 4. The data transmission device according to claim 2, wherein the data amount setting unit sets the data amount of the second data based on the timing information generated by the timing information generating unit. (Configuration 5) the header insertion unit generates packet data by inserting the header portion into the multiplexed data for one or more predetermined periods and packetizing the data; 5. The data transmission device according to any one of configurations 1 to 4, wherein the data transmission unit transmits the packet data. (Configuration 6) 6. The data transmission device according to any one of configurations 1 to 5, wherein the predetermined period is the period of an interval between horizontal synchronization signals. (Configuration 7) The data transmission device according to any one of configurations 1 to 6, characterized in that the control of the writing of the first data by the first data writing control unit and the control of the writing of the second data by the second data writing control unit can be executed in parallel in time. (Configuration 8) when the writing of the first data and the writing of the second data continue for a plurality of predetermined periods, the header insertion unit inserts the header portion into the multiplexed data for the plurality of predetermined periods and packetizes the data to generate one packet data; 8. The data transmission device according to configuration 7, wherein the data transmission unit transmits the packet data. (Configuration 9) when the writing of the first data and the writing of the second data do not continue for a plurality of predetermined periods, the header insertion unit generates one packet data by inserting the header portion into the multiplexed data for one predetermined period and packetizing the data; 9. The data transmission device according to configuration 7 or 8, wherein the data transmission unit transmits the packet data. (Configuration 10) the first data write control unit controls to continue writing the first data to the first buffer unit during the predetermined period; When the second data write control unit controls not to write the second data to the second buffer unit during the predetermined period, 10. The data transmission device according to any one of configurations 7 to 9, wherein the header insertion section inserts a header section including arrangement information of the first data. (Configuration 11) the first data write control unit controls to continue writing the first data to the first buffer unit during the predetermined period; When the second data write control unit controls the second buffer unit to start writing the second data during the predetermined period, 11. The data transmission device according to any one of configurations 7 to 10, wherein the header insertion section inserts a header section including information on the arrangement of the first data and the second data. (Configuration 12) the first data write control unit controls the first buffer unit to continue writing the first data for a plurality of predetermined periods; When the second data write control unit controls to continue writing the second data to the second buffer unit during one of the plurality of predetermined periods, 12. The data transmission device according to any one of configurations 7 to 11, wherein the header insertion section inserts a header section including information on the arrangement of the first data and the second data. (Configuration 13) the first data write control unit controls to continue writing the first data to the first buffer unit during the predetermined period; When the second data write control unit controls the second buffer unit to end writing of the second data during the predetermined period, 13. The data transmission device according to any one of configurations 7 to 12, wherein the header insertion section inserts a header section including information on the arrangement of the first data and the second data. (Configuration 14) The data transmission device according to any one of configurations 1 to 6, characterized in that the control of the writing of the first data by the first data writing control unit and the control of the writing of the second data by the second data writing control unit cannot be executed in parallel in time. (Configuration 15) the first data write control unit controls the first buffer unit to continue writing the first data for one or more predetermined periods; When the second data write control unit controls not to write the second data to the second buffer unit during the one or more predetermined periods, 15. The data transmission device according to configuration 14, wherein the header insertion unit inserts a header portion including arrangement information of the first data. (Configuration 16) the second data write control unit controls to continue writing the second data to the second buffer unit for one or more predetermined periods; When the first data write control unit controls not to write the first data to the first buffer unit during the one or more predetermined periods, 16. The data transmission device according to configuration 14 or 15, wherein the header insertion unit inserts a header portion including arrangement information of the second data. (Configuration 17) 17. The data transmission device according to any one of configurations 1 to 16, wherein the header insertion unit inserts a header portion including arrangement information of the first data and the second data and payload length information of the multiplexed data. (Configuration 18) the data transmission device further comprises a data receiving device; The data receiving device a data receiving unit that receives packet data including the first data and the second data; a data separation unit that separates the first data and the second data in the packet data based on arrangement information of the first data and the second data included in a header portion of the received packet data; 18. The data transmission device according to any one of configurations 1 to 17, comprising: (Method 1) a first data write control step of controlling the writing of first data into the first buffer unit in units of a predetermined period; a second data write control step of controlling the writing of second data into the second buffer section; a read control step of controlling the first data to be read from the first buffer unit in units of the predetermined period, and the second data to be read from the second buffer unit in an amount corresponding to a write timing of the second data to the second buffer unit; a multiplexing step of multiplexing the first data read from the first buffer unit and the second data read from the second buffer unit; a header insertion step of inserting a header portion including arrangement information of the first data and the second data into the data multiplexed by the multiplexing step; a data transmitting step of transmitting the data into which the header portion is inserted; 1. A method for controlling a data transmission device, comprising: (Program 1) A program for causing a computer to function as the data transmission device according to any one of the first to eighteenth aspects. [Explanation of symbols]
[0125] 100 data transmission device, 101 transmission timing designation unit, 102 transmission mode designation unit, 103 oscillator, 104 TG, 105 first data transmission unit, 106 second data transmission unit, 107 FIFO buffer unit, 108 FIFO buffer unit, 109 transmission control unit, 110 timing observation unit, 111 data amount setting unit, 112 read control unit, 113 write state determination unit, 114 arrangement information setting unit, 115 multiplexing unit, 116 header insertion unit, 117 PLL, 118 data transmission unit
Claims
1. A data transmission device having a data sending device, The data transmission device a first data write control unit that controls the writing of the first data into the first buffer unit in units of a predetermined period; a second data write control unit that controls the second data to be written to the second buffer unit; a read control unit that controls the first data to be read from the first buffer unit in units of the predetermined period, and the second data to be read from the second buffer unit in an amount corresponding to a write timing of the second data to the second buffer unit; a multiplexing unit that multiplexes the first data read from the first buffer unit and the second data read from the second buffer unit; a header insertion unit that inserts a header unit including arrangement information of the first data and the second data into the data multiplexed by the multiplexing unit; a data transmission unit that transmits the data into which the header portion is inserted; A data transmission device comprising:
2. the data transmission device further includes a data amount setting unit that sets a data amount of the second data in accordance with a write timing of the second data to the second buffer unit; 2. The data transmission device according to claim 1, wherein the read control unit controls the second data to be read from the second buffer unit in an amount set by the data amount setting unit.
3. the data transmission device further includes a placement information setting unit that sets placement information of the first data and the second data in accordance with the data amount set by the data amount setting unit; the multiplexing unit multiplexes the first data and the second data based on the placement information set by the placement information setting unit; 3. The data transmission device according to claim 2, wherein the header inserting unit inserts a header portion including the arrangement information set by the arrangement information setting unit.
4. the data transmission device further includes a timing information generation unit that generates timing information indicating a write start timing or a write end timing of the second data to the second buffer unit; 3. The data transmission device according to claim 2, wherein the data amount setting unit sets the data amount of the second data based on the timing information generated by the timing information generating unit.
5. the header insertion unit generates packet data by inserting the header portion into the multiplexed data for one or more predetermined periods and packetizing the data; 2. The data transmission device according to claim 1, wherein the data transmission unit transmits the packet data.
6. 2. The data transmission device according to claim 1, wherein the predetermined period is the interval between horizontal synchronization signals.
7. 2. The data transmission device according to claim 1, wherein the control of the writing of the first data by the first data write control unit and the control of the writing of the second data by the second data write control unit can be executed in parallel in time.
8. when the writing of the first data and the writing of the second data continue for a plurality of predetermined periods, the header insertion unit generates one packet data by inserting the header portion into the multiplexed data for the plurality of predetermined periods and packetizing the data; 8. The data transmission device according to claim 7, wherein the data transmission unit transmits the packet data.
9. when the writing of the first data and the writing of the second data do not continue for a plurality of predetermined periods, the header insertion unit generates one packet data by inserting the header portion into the multiplexed data for one predetermined period and packetizing the data; 8. The data transmission device according to claim 7, wherein the data transmission unit transmits the packet data.
10. the first data write control unit controls the first buffer unit to continue writing the first data during the predetermined period; When the second data write control unit controls not to write the second data to the second buffer unit during the predetermined period, 8. The data transmission device according to claim 7, wherein the header inserting section inserts a header section including information about the location of the first data.
11. the first data write control unit controls the first buffer unit to continue writing the first data during the predetermined period; When the second data write control unit controls to start writing the second data to the second buffer unit during the predetermined period, 8. The data transmission device according to claim 7, wherein the header inserting section inserts a header section including information on the arrangement of the first data and the second data.
12. the first data write control unit controls the first buffer unit to continue writing the first data for a plurality of predetermined periods; When the second data write control unit controls to continue writing the second data to the second buffer unit during one of the plurality of predetermined periods, 8. The data transmission device according to claim 7, wherein the header inserting section inserts a header section including information on the arrangement of the first data and the second data.
13. the first data write control unit controls the first buffer unit to continue writing the first data during the predetermined period; When the second data write control unit controls the second buffer unit to end writing of the second data during the predetermined period, 8. The data transmission device according to claim 7, wherein the header inserting section inserts a header section including information on the arrangement of the first data and the second data.
14. 2. The data transmission device according to claim 1, wherein the control of the writing of the first data by the first data write control unit and the control of the writing of the second data by the second data write control unit cannot be executed in parallel in time.
15. the first data write control unit controls the first buffer unit to continue writing the first data for one or more predetermined periods; When the second data write control unit controls not to write the second data to the second buffer unit during the one or more predetermined periods, 15. The data transmission device according to claim 14, wherein the header inserting section inserts a header section including location information of the first data.
16. the second data write control unit controls the second buffer unit to continue writing the second data for one or more predetermined periods; When the first data write control unit controls not to write the first data to the first buffer unit during the one or more predetermined periods, 15. The data transmission device according to claim 14, wherein the header inserting section inserts a header section including information about the location of the second data.
17. 2. The data transmission device according to claim 1, wherein the header insertion unit inserts a header portion including arrangement information of the first data and the second data and payload length information of the multiplexed data.
18. the data transmission device further comprises a data receiving device; The data receiving device a data receiving unit that receives packet data including the first data and the second data; a data separation unit that separates the first data and the second data in the packet data based on arrangement information of the first data and the second data included in a header portion of the received packet data; 2. The data transmission device according to claim 1, further comprising:
19. a first data write control step of controlling the writing of first data into the first buffer unit in units of a predetermined period; a second data write control step of controlling the writing of second data into the second buffer section; a read control step of controlling the first data to be read from the first buffer unit in units of the predetermined period, and the second data to be read from the second buffer unit in an amount corresponding to a write timing of the second data to the second buffer unit; a multiplexing step of multiplexing the first data read from the first buffer unit and the second data read from the second buffer unit; a header insertion step of inserting a header portion including arrangement information of the first data and the second data into the data multiplexed by the multiplexing step; a data transmitting step of transmitting the data into which the header portion is inserted; 1. A method for controlling a data transmission device, comprising:
20. A program for causing a computer to function as the data transmission device according to any one of claims 1 to 18.
Citation Information
Patent Citations
Data transmission method and device
JP4177169B2