WO2019207695A1 - Transfer device, transfer system, transfer method, and program - Google Patents

Transfer device, transfer system, transfer method, and program Download PDF

Info

Publication number
WO2019207695A1
WO2019207695A1 PCT/JP2018/016859 JP2018016859W WO2019207695A1 WO 2019207695 A1 WO2019207695 A1 WO 2019207695A1 JP 2018016859 W JP2018016859 W JP 2018016859W WO 2019207695 A1 WO2019207695 A1 WO 2019207695A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
unit
transmission
transfer
stream
Prior art date
Application number
PCT/JP2018/016859
Other languages
French (fr)
Japanese (ja)
Inventor
輝 柏崎
裕高 梶田
Original Assignee
株式会社アプトポッド
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社アプトポッド filed Critical 株式会社アプトポッド
Priority to PCT/JP2018/016859 priority Critical patent/WO2019207695A1/en
Publication of WO2019207695A1 publication Critical patent/WO2019207695A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Definitions

  • the present invention relates to a technique for transferring data.
  • Patent Document 1 describes a technique for transmitting and recording a stream received from a network to an external device in real time.
  • An object of the present invention is to provide data to a receiving apparatus in response to the request even when the data received from the transmitting apparatus is transferred to the receiving apparatus, even if the received data does not meet the request of the receiving apparatus. .
  • the present invention includes a receiving unit that receives data in time series from a transmitting device, a determining unit that determines a transmission condition of the data by exchanging information with the receiving device, and the transmission determined by the determining unit.
  • a processing unit that processes the data according to conditions, a transmission unit that transmits the data processed by the processing unit to the receiving device when the data is transferred in real time, and the data in the real time
  • a transfer device including a storage unit that stores the data along the time series is provided.
  • the storage unit may store a copy of the data after the data is transmitted to the receiving device.
  • real-time information indicating whether or not to transfer the data in real time is added to the head of the data, and when the head of the data is received by the receiving unit, based on the real-time information
  • a determination unit that determines whether to transfer the data in real time, and the processing unit receives the data when the determination unit determines to transfer the data in real time.
  • start processing the received data sequentially process the received data, and when the transmission unit determines to transfer the data in real time by the determination unit, Before the reception of the data is completed, transmission of the processed data may be started and the processed data may be transmitted sequentially.
  • the storage unit stores the real-time information and the identifier of the data in association with each other, the identifier is added to the head of the data instead of the real-time information, and the determination unit Whether or not to transfer the data in real time may be determined based on the real-time information stored in the storage unit in association with the identifier added to the head.
  • the data is moving image data indicating a moving image
  • the receiving device includes a display device that displays the moving image indicated by the moving image data
  • the information includes a resolution or a frame rate corresponding to the display device.
  • the processing unit may change the resolution or frame rate of the moving image data according to the resolution or the frame rate.
  • the receiving device includes a display device that displays the data on a designated time scale, the information includes the time scale, and the processing unit may thin the data according to the time scale. Good.
  • the information may include a status of communication with the receiving device, and the processing unit may thin out the data according to the status of the communication.
  • Last information indicating the end is added to the end of the data transmitted from the transmission device, and when the last information is received, the transfer device determines that reception of the data is completed.
  • the transmission unit may further transmit the data stored in the storage unit to a predetermined processing unit when the determination unit determines that the reception of the data is completed.
  • the data transmitted by the transmission device includes a plurality of data blocks each including at least one of a plurality of detection amounts detected by a sensor, and each of the plurality of data blocks includes a data block.
  • Number information indicating the number of the at least one detection amount included is added, and the transfer device uses the number information of the at least one detection amount included in the data block and the number information added to the data block.
  • a determination unit that determines whether or not the data block is missing according to a difference from the number shown; and when the determination unit determines that the data block is missing, the transmission
  • a retransmission request unit requesting retransmission of the lost data block to the apparatus; and retransmitting from the transmission apparatus in response to a request from the retransmission request unit.
  • Using said data blocks may further include a completion unit which complements the missing data blocks.
  • the present invention includes a transfer device, a transmission device, and a reception device, and the transfer device exchanges information with the reception device and a first reception unit that receives data in time series from the transmission device. And a processing unit that processes the data according to the transmission condition determined by the determination unit, and the processing unit when transferring the data in real time.
  • the transmission device includes an acquisition unit that acquires the data, and a second transmission unit that transmits the data acquired by the acquisition unit to the transfer device, and the reception device receives the information
  • a third transmission unit that transmits to the transfer device, a second reception unit that receives the data transmitted from the transfer device, and a processing unit that performs processing using the data received by the second reception unit;
  • a transfer system is provided.
  • the data includes moving image data indicating a moving image taken by the imaging device and measurement data output from the measuring device, and the processing unit sets the moving image data and the measured data along the same time axis. May be output.
  • the present invention includes a step of receiving data in time series from a transmission device, a step of determining a transmission condition of the data by exchanging information with the reception device, and a response to the determined transmission condition.
  • a step of processing the data a step of transmitting the data in real time; a step of transmitting the processed data to the receiving device; and a case of not transferring the data in real time.
  • a step of storing along the time series a step of receiving data in time series from a transmission device, a step of determining a transmission condition of the data by exchanging information with the reception device, and a response to the determined transmission condition.
  • a step of processing the data a step of transmitting the data in real time; a step of transmitting the processed data to the receiving device; and a case of not transferring the data in real time.
  • a step of storing along the time series a step of storing along the time series.
  • the present invention includes a step of receiving data in time series from a transmission device to a computer, a step of determining a transmission condition of the data by exchanging information with the reception device, and the determined transmission condition And processing the data, and transferring the data in real time, transmitting the processed data to the receiving device, and not transferring the data in real time,
  • a program for executing the step of storing the data along the time series is provided.
  • the data corresponding to the request can be provided to the reception device.
  • FIG. 1 is a diagram illustrating an example of a transfer system 100 according to an embodiment. It is a figure which shows an example of the hardware constitutions of the terminal device. It is a figure which shows an example of a function structure of the terminal device.
  • 6 is a diagram illustrating an example of a format of a creation request message 220.
  • FIG. 6 is a diagram illustrating an example of a format of a creation request message 230.
  • FIG. It is a figure which shows an example of the format of a section.
  • 3 is a diagram illustrating an example of a hardware configuration of a transfer device 130.
  • FIG. 3 is a diagram illustrating an example of a functional configuration of a transfer device 130.
  • FIG. It is a figure which shows an example of the format of the response message.
  • FIG. 6 is a diagram illustrating an example of a stream table 320.
  • FIG. It is a figure which shows an example of the database. It is a sequence chart which shows an example of a transmission process. It is a sequence chart which shows an example of a transfer process. It is a sequence chart which shows an example of a resending process. It is a figure which shows the example of an output of moving image data and measurement data.
  • FIG. 1 is a diagram illustrating an example of a transfer system 100 according to an embodiment.
  • the transfer system 100 is a system that transfers data received from the terminal device 120 to another terminal device 120.
  • the transfer system 100 includes an imaging device 110, a plurality of terminal devices 120, and a transfer device 130.
  • the plurality of terminal devices 120 include a terminal device 120A and a terminal device 120B.
  • the numbers of the imaging device 110, the terminal device 120, and the transfer device 130 illustrated in FIG. 1 are examples, and are not limited thereto.
  • the imaging device 110 is connected to the terminal device 120A via the communication line 150.
  • the terminal devices 120A and 120B are connected to the transfer device 130 via the communication line 160.
  • the communication line 160 may include a wireless network such as a mobile line and the Internet, for example.
  • a wireless network such as a mobile line and the Internet
  • 3G, LTE (Long Term Evolution), Wi-Fi (registered trademark), WiMAX (registered trademark), or Bluetooth (registered trademark) may be used as a communication standard of the wireless network.
  • the imaging device 110 is a device that captures an image.
  • the imaging device 110 is, for example, a digital video camera, and captures a moving image by converting an image onto an imaging element using an optical system, and converts the moving image data to output.
  • This moving image data is composed of a plurality of frames arranged in time series.
  • the imaging device 110 may include a microphone.
  • the moving image data may include audio data indicating audio.
  • FIG. 2 is a diagram illustrating an example of a hardware configuration of the terminal device 120.
  • the terminal device 120 is also called an edge, and is a device that transmits and receives data.
  • the terminal device 120 is a computer that includes a processor 121, a memory 122, a storage 123, a communication device 124, and a display device 125. These devices are connected via a bus 126.
  • the processor 121 executes various processes by reading the program into the memory 122 and executing it.
  • the processor 121 may be configured by a CPU (Central Processing Unit).
  • the memory 122 stores a program executed by the processor 121.
  • the memory 122 may be configured by a ROM (Read Only Memory) or a RAM (Random Access Memory).
  • the storage 123 stores various data and programs.
  • the storage 123 may be configured by a hard disk drive or a flash memory.
  • the communication device 124 is a communication interface connected to the communication lines 150 and 160.
  • the communication device 124 transmits and receives data via the communication line 150 or 160.
  • the display device 125 displays various information.
  • the display device 125 may be configured by a liquid crystal display.
  • FIG. 3 is a diagram illustrating an example of a functional configuration of the terminal device 120.
  • the terminal device 120 has both a function as a transmission device that transmits data to the transfer device 130 and a function as a reception device that receives data from the transfer device 130.
  • the terminal device 120 includes a connection control unit 201, a message transmission unit 202 (an example of a third transmission unit), a message reception unit 203, an acquisition unit 204, a generation unit 205, an addition unit 206, and a data transmission unit 207. (An example of a second transmission unit), a data retransmission unit 208, a data reception unit 209 (an example of a second reception unit), and a processing unit 210.
  • These functions are realized when the processor 121 performs an operation or controls communication by the communication device 124 in cooperation with the program stored in the memory 122 and the processor 121 that executes the program.
  • the connection control unit 201 controls the connection between the terminal device 120 and the transfer device 130.
  • This connection refers to a virtual dedicated communication path established in connection-type communication.
  • a message requesting establishment of a connection is transmitted from the connection control unit 201 to the transfer apparatus 130.
  • a response message is transmitted from the transfer device 130 to the terminal device 120 in response to this message, a connection is established between the terminal device 120 and the transfer device 130.
  • a message requesting disconnection of the connection is transmitted from the connection control unit 201 to the transfer apparatus 130.
  • the connection is disconnected between the terminal device 120 and the transfer device 130.
  • the message transmission unit 202 transmits various messages used for negotiation performed between the terminal device 120 and the transfer device 130.
  • various messages include an information transmission message and a creation request message 220 or 230.
  • the information transmission message includes information for determining data transmission conditions.
  • This information may include performance information indicating the resource performance of the terminal device 120, for example.
  • This resource may be hardware or software.
  • the software may include a browser. Further, this information may be the transmission condition itself.
  • the creation request message 220 or 230 includes information for determining data processing conditions.
  • FIG. 4 is a diagram illustrating an example of a format of the creation request message 220 transmitted from the terminal device 120 on the transmission side.
  • the creation request message 220 includes a request ID, the number of streams, a stream ID, a flag, a measurement ID, a transmission source ID, and a transfer destination ID.
  • the request ID is information that uniquely identifies the creation request message 220.
  • the number of streams indicates the number of stream attribute information included in the creation request message 220.
  • This attribute information is composed of a set of a stream ID, a flag, a measurement ID, a transmission source ID, and a transfer destination ID. This attribute information generally has a larger data amount than the stream ID.
  • the creation request message 220 includes stream attribute information as many as indicated by the number of streams. That is, the creation request message 220 may include attribute information of a plurality of streams.
  • Stream ID is information that uniquely identifies a stream.
  • the stream ID is associated with the connection being connected. That is, the stream ID may be used as an identifier for uniquely identifying the stream in the connection being connected.
  • the stream ID may be determined by the terminal device 120 or the transfer device 130.
  • the flag includes a retransmission flag and a storage flag.
  • the retransmission flag is information indicating whether data has been retransmitted. When the retransmission flag is “0”, it indicates that the data is not retransmitted, that is, transmitted first. If the data is not retransmitted, the data is transferred in real time. On the other hand, when the retransmission flag is “1”, this indicates that the data has been retransmitted. If the data is retransmitted, it is not transferred in real time. As described above, the retransmission flag may be used as real-time information indicating whether to transmit data in real time.
  • the save flag is information indicating whether to save data. When the save flag is “0”, it indicates that data is not saved. On the other hand, when the save flag is “1”, it indicates that the data is to be saved.
  • Measurement ID is information that uniquely identifies the measurement that generated the data. For example, when the data is moving image data output from the imaging device 110, one unit of measurement is from when the imaging device 110 starts shooting a moving image to when it ends. Therefore, the same measurement ID is assigned to the moving image data generated during this time.
  • the transmission source ID is information that uniquely identifies the terminal device 120 that is the transmission source of the stream.
  • the transfer destination ID is information that uniquely identifies the terminal device 120 that is a data transfer destination. When the transfer destination ID is “ ⁇ ”, it indicates that data is not transferred from the transfer device 130.
  • FIG. 5 is a diagram showing an example of the format of the creation request message 230 transmitted from the terminal device 120 on the receiving side.
  • the creation request message 230 includes a request ID, the number of streams, a stream ID, and a transmission source ID, similar to the creation request message 220 described above.
  • the creation request message 230 includes a transfer source ID.
  • the transfer source ID is information for identifying the terminal device 120 that is the transfer source of the stream.
  • the creation request message 230 may not include the flag, measurement ID, and transfer destination ID included in the creation request message 220.
  • the acquisition unit 204 acquires data from an external device.
  • This data may be moving image data output from the imaging device 110, for example.
  • the generation unit 205 generates a stream based on the data acquired by the acquisition unit 204.
  • This stream refers to a data string handled by streaming.
  • Streaming refers to a system in which output is started before input of the entire data is completed, and the input data is sequentially output while the data is being input.
  • a stream is composed of a plurality of sections. This section may be used as a data block constituting data.
  • FIG. 6 is a diagram showing an example of a section format.
  • the section includes SOS (Start of Section), a plurality of units, and EOS (End of Section).
  • SOS is included at the beginning of the section.
  • EOS is included at the end of the section.
  • SOS is information indicating the start of a section.
  • Each of the plurality of units includes one frame included in the moving image data.
  • a sensor ID and a time stamp are added to each frame. This sensor ID is information for uniquely identifying the sensor from which data is acquired.
  • the time stamp is information indicating the time when the data is acquired.
  • This time may be, for example, an elapsed time from the time when the measurement is started to the time when the data is acquired, that is, a relative time based on the time when the measurement is started.
  • EOS is information indicating the end of a section.
  • the EOS includes a unit count and a serial number.
  • the unit count is number information indicating the number of units included in the section.
  • the serial number is information for uniquely identifying sections related to the same measurement unit.
  • SOS, unit, and EOS are also collectively referred to as “element”.
  • the adding unit 206 adds a stream ID for uniquely identifying the stream generated by the generating unit 205 to the SOS, the plurality of units, and the EOS included in each section of the stream.
  • the data transmission unit 207 transmits the stream to which the stream ID is added to the transfer device 130.
  • This stream is transmitted by streaming. Transmission of this stream may be performed in section units or in element units.
  • the data retransmission unit 208 retransmits the section to the transfer device 130 in response to a request from the transfer device 130.
  • the data receiving unit 209 receives a stream from the transfer device 130.
  • the processing unit 210 performs processing using data included in the stream received by the data receiving unit 209.
  • FIG. 7 is a diagram illustrating an example of a hardware configuration of the transfer device 130.
  • the transfer device 130 is also called a hub, and is a device that relays data exchange between the plurality of terminal devices 120.
  • the transfer device 130 performs non-real time processing and real time processing.
  • the non-real time processing is processing for accumulating data received from the terminal device 120, for example. Thereby, the data received from the terminal device 120 are managed collectively. This data is used, for example, for various types of analysis on the status of the sensing target. Therefore, data accuracy is required in non-real time processing.
  • the real-time processing is processing for transmitting data received from the terminal device 120 to another terminal device 120 in real time, for example. Note that this real time does not have to be completely simultaneous, and there may be a slight delay. This data is used, for example, for the user to grasp the current status of the sensing target. Therefore, immediacy is required in real-time processing.
  • the transfer device 130 is a computer that includes a processor 131, a memory 132, a storage 133 (an example of a storage unit), and a communication device 134. These devices are connected via a bus 135. Since the processor 131, the memory 132, the storage 133, the communication device 134, and the bus 135 are the same as the processor 121, the memory 122, the storage 123, the communication device 124, and the bus 126 described above, description thereof is omitted.
  • FIG. 8 is a diagram illustrating an example of a functional configuration of the transfer device 130.
  • the transfer device 130 includes a message reception unit 301, a message transmission unit 302, a determination unit 303, a data reception unit 304 (an example of a reception unit or a first reception unit), a determination unit 305, a processing unit 306, data
  • a transmission unit 307 (an example of a transmission unit or a first transmission unit), a retransmission request unit 308, and a complement unit 309 are provided.
  • These functions are realized when the processor 131 performs an operation or controls communication by the communication device 134 in cooperation with the program stored in the memory 132 and the processor 131 that executes the program.
  • the message receiving unit 301 receives various messages from the terminal device 120.
  • the various messages include the information transmission message and the creation request message 220 described above.
  • the message transmission unit 302 transmits various messages to the terminal device 120.
  • various messages include a response message 310 to the creation request message 220 received from the terminal device 120.
  • FIG. 9 is a diagram illustrating an example of the format of the response message 310.
  • the response message 310 includes a request ID included in the creation request message 220 or 230 and result information.
  • the result information is information indicating whether or not the creation of the stream attribute information is successful. For example, when the result information is “0”, it indicates that the creation of the attribute information of the stream is successful. On the other hand, when the result information is “1”, it indicates that the creation of the stream attribute information has failed. For example, when a necessary item is not included in the creation request message 220 or 230, or when an item included in the creation request message 220 or 230 does not have a valid value, creation of stream attribute information is performed. May fail. When a plurality of stream IDs are included in the creation request message 220 or 230, result information may be included for each stream ID.
  • the determination unit 303 determines the data transmission condition by exchanging information with the terminal device 120.
  • the transmission condition includes a condition regarding the data format.
  • the data format may include at least one of the compression method, resolution, and frame rate of the moving image data.
  • the attribute information included in the creation request message 220 and the transmission conditions determined by the determination unit 303 are managed by the stream table 320, for example.
  • FIG. 10 is a diagram illustrating an example of the stream table 320.
  • the stream table 320 is stored in the storage 133, for example.
  • the stream table 320 is determined by the determination unit 303 with the stream ID, retransmission flag, storage flag, measurement ID, transmission source ID, transfer destination ID, or transfer source ID included in the creation request message 220 or 230.
  • the transmission conditions are stored in association with each other.
  • the data receiving unit 304 receives a stream from the terminal device 120 on the transmission side.
  • the determination unit 305 determines whether or not to transfer the stream received by the data reception unit 304 in real time.
  • the processing unit 306 processes the data included in the stream according to the transmission conditions stored in the stream table 320 when the determination unit 305 determines to transfer in real time. This processing means, for example, changing the data format, although the data contents are not changed. For example, when the data format is included in the transmission condition, the data format may be changed according to the format included in the transmission condition.
  • the data transmission unit 207 transmits a stream including the processed data to the terminal device 120 on the reception side. This stream is transmitted by streaming.
  • the determination unit 305 determines not to transfer in real time, the data included in the stream is stored in the storage 133 in time series. If the determination unit 305 determines to transfer in real time, the data transmission unit 207 transmits a stream, and then a copy of the data included in the stream is stored in the storage 133 in time series. This data is managed by the database 330, for example.
  • FIG. 11 is a diagram illustrating an example of the database 330.
  • the database 330 is stored in the storage 133, for example.
  • the database 330 includes information indicating the time when each frame included in the moving image data is acquired, a frame included in the moving image data, and a completion flag. Stored in association. The time is obtained based on, for example, a time stamp added to the frame.
  • the completion flag is information indicating whether or not reception of the stream is completed. For example, when the completion flag is “0”, it indicates that the reception of the stream has not been completed. When the completion flag is “1”, it indicates that the reception of the stream has been completed.
  • the retransmission request unit 308 requests the terminal device 120 on the transmission side to retransmit the missing section.
  • the complementing unit 309 supplements the missing section using the section retransmitted from the terminal device 120 on the transmission side in response to the request from the retransmission requesting unit 308.
  • FIG. 12 is a sequence chart showing an example of transmission processing.
  • the terminal device 120A negotiates with the transfer device 130 before transmitting the moving image data.
  • step 401 in the terminal device 120A, the connection control unit 201A establishes a connection with the transfer device 130.
  • negotiation is performed between the terminal device 120A and the transfer device 130.
  • the message transmission unit 202A transmits a creation request message 220 as illustrated in FIG. 4 to the transfer apparatus 130 via the connection being connected.
  • the creation request message 220 includes a request ID “1” and the number of streams “2”. This indicates that the creation request message 220 having the request ID “1” includes attribute information of two streams.
  • the creation request message 220 includes a stream ID “1”, a retransmission flag “0”, a storage flag “1”, a measurement ID “M001”, and a transmission source ID “EAAA” that identifies the terminal device 120A.
  • a pair with a transfer destination ID “EBBB” for identifying the terminal device 120B is included. This is because the stream with the stream ID “1” includes the moving image data generated by the measurement with the measurement ID “M001”, and this moving image data is not retransmitted and needs to be stored in the transfer device 130.
  • the creation request message 220 includes a stream ID “2”, a retransmission flag “1”, a storage flag “1”, a measurement ID “M001”, a transmission source ID “EAAA”, and a transfer destination ID “ ⁇ ”. Is included. This is because the stream with the stream ID “2” includes the moving image data generated by the measurement with the measurement ID “M001”, and this moving image data has been retransmitted and needs to be stored in the transfer device 130. Furthermore, it indicates that there is no need to transfer from the transfer device 130.
  • the message transmission unit 202A transmits an information transmission message including the transmission condition of the stream with the stream ID “1” to the transfer apparatus 130 via the connection being connected.
  • the transmission condition includes the resolution of the imaging device 110.
  • step 403 when the message receiving unit 301 receives the creation request message 220 and the information transmission message in the transfer device 130, the attribute information included in the creation request message 220 and the transmission conditions included in the information transmission message are streamed.
  • table 320 For example, in the first record of the stream table 320, as shown in FIG. 10, the stream ID “1”, the retransmission flag “0”, the storage flag “1”, the measurement ID “M001”, and the transmission source ID “ “EAAA”, the transfer destination ID “EBBB”, and the transmission condition included in the information transmission message are stored.
  • the second record of the stream table 320 includes a stream ID “2”, a retransmission flag “1”, a storage flag “1”, a measurement ID “M001”, a transmission source ID “EAAA”, and a transfer.
  • the destination ID “ ⁇ ” and the transmission condition included in the information transmission message are stored.
  • step 404 when the storage of the attribute information and the transmission conditions is completed, the message transmission unit 302 transmits a response message as shown in FIG. 9 to the terminal device 120A via the connection being connected.
  • the response message 310 includes a request ID “1” and result information “0”.
  • the terminal device 120A receives this response message, the negotiation between the terminal device 120A and the transfer device 130 ends.
  • the process of the terminal device 120A proceeds to step 405.
  • step 405 when the moving image data output from the imaging device 110 is received by the acquisition unit 204A in the terminal device 120A, the generation unit 205 generates a stream using the moving image data.
  • the generation of the stream is started before the reception of the entire moving image data is completed, and is sequentially performed while the moving image data is being received.
  • the stream is composed of a plurality of sections shown in FIG. A stream ID “1” corresponding to this stream is added to the SOS, the plurality of units, and the EOS included in each section of the stream by the adding unit 109A.
  • an end flag indicating the end of the stream is added to the last section constituting the stream by the adding unit 109A. This end flag may be used as last information indicating the end of data.
  • step 406 the data transmission unit 207A sequentially transmits the stream to which the streaming ID is added to the transfer apparatus 130 via the connected connection. Transmission of this stream is started before the reception of the entire moving image data is completed, and is sequentially performed while the moving image data is being received.
  • the data reception unit 304 sequentially receives the streams transmitted from the terminal device 120A. When the transmission of this stream ends, the terminal device 120A proceeds to step 407.
  • step 407 the connection control unit 201A disconnects the connection with the transfer apparatus 130.
  • step 408 the transfer device 130 deletes all the attribute information and transmission conditions stored in association with the stream IDs “1” and “2” from the stream table 320 in response to the disconnection of the connection.
  • the association between the stream IDs “1” and “2” stored in the stream table 320 and the connection is released, and the stream IDs “1” and “2” stored in the stream table 320 are released.
  • these stream IDs can be used as identifiers of other streams. Note that the same processing as in step 408 may be performed even when the connection is disconnected without depending on the terminal device 120.
  • the attribute information stored in the stream table 320 may be changed during connection.
  • the message transmission unit 202A transmits a change request message including the change target stream ID and the changed attribute information to the transfer device 130.
  • the stream table 320 is updated according to the change request message. For example, when a change request message including a combination of the stream ID “1” and the changed attribute information is transmitted, the attribute information associated with the stream ID “1” in the stream table 320 includes the attribute included in the change request. Rewritten with information.
  • the stream ID stored in the stream table 320 may be released during connection.
  • the message transmitting unit 202A transmits this stream ID release request message to the transfer device 130.
  • the release request message may use the same format as the creation request message 220 shown in FIG. For example, when requesting the release of the stream ID “1”, a release request message including the stream ID “1” and the transmission source ID “0” is transmitted.
  • the release request message is received from the terminal device 120, the record including the stream ID “1” is deleted from the stream table 320.
  • the association between the stream ID “1”, the retransmission flag “0”, the storage flag “1”, the measurement ID “M001”, the transmission source ID “EAAA”, and the transfer destination ID “EBBB” is released.
  • the stream ID “1” is released and can be used as an identifier of another stream. Thereby, even when a large number of streams are transmitted, it is possible to prevent the available stream IDs from being exhausted.
  • FIG. 13 is a sequence chart showing an example of the transfer process.
  • the terminal device 120B negotiates with the transfer device 130 before receiving the moving image data.
  • step 501 in the terminal device 120B, the connection control unit 201B establishes a connection with the transfer device 130.
  • negotiation is performed between the terminal device 120 ⁇ / b> B and the transfer device 130.
  • the message transmission unit 202B transmits a creation request message 230 as illustrated in FIG. 5 to the transfer apparatus 130 via the connection being connected.
  • the creation request message 230 includes a request ID “2”, the number of streams “1”, a stream ID “3”, a transmission source ID “EBBB”, and a transfer source ID “EAAA”. This is because the creation request message 230 with the request ID “2” includes the attribute information of one stream with the stream ID “3”, and the transfer source of the moving image data included in this stream is the terminal device 120A. It shows that there is.
  • the message transmission unit 202B transmits an information transmission message regarding the stream with the stream ID “3” to the transfer apparatus 130 via the connected connection.
  • the information transmission message may include information indicating MPEG-4.
  • the resolution of the display device 125B is R1
  • the information transmission message may include the resolution R1.
  • the maximum frame rate that can be displayed by the display device 125B is F1
  • the frame rate F1 may be included in the information transmission message.
  • the determination unit 303 determines the transmission condition of the stream based on the information included in the information transmission message. For example, when information indicating MPEG-4 is included in the information transmission message, a compression method called MPEG-4 may be determined. For example, when the information transmission message includes the resolution R1, the resolution R1 may be determined. For example, when the frame rate F1 is included in the information transmission message, the frame rate F1 may be determined.
  • the transfer apparatus 130 stores the attribute information included in the creation request message 230 and the transmission condition determined by the determination unit 303 in the stream table 320.
  • the stream table 320 corresponds to the stream ID “3”, the transmission source ID “EBBB”, the transfer source ID “EAAA”, and the transmission conditions determined by the determination unit 303, as shown in FIG. Stored with. Note that the retransmission flag, the storage flag, and the measurement ID are not stored because they are not included in the creation request message 230.
  • step 504 the message transmission unit 302 transmits the response message 310 shown in FIG. 9 to the terminal device 120B via the connection being connected.
  • the response message 310 includes a request ID “2” and result information “0”.
  • the terminal device 120B receives the response message, the negotiation between the terminal device 120B and the transfer device 130 ends.
  • the processing of the transfer device 130 proceeds to step 505 shown in FIG.
  • step 505 in the transfer device 130, when the data reception unit 304 starts receiving the stream from the terminal device 120A, the determination unit 305 determines whether or not to transfer the stream in real time. Specifically, when the SOS placed at the head of the section is received, the stream ID “1” is extracted from the SOS. As shown in FIG. 10, the stream table 320 stores a stream ID “1” and a retransmission flag “0” in association with each other. This indicates that the stream with the stream ID “1” is transferred in real time. Therefore, in this case, it is determined that the stream is transferred in real time. If it is determined that the stream is transferred in real time (YES in step 505), the processing of the transfer device 130 proceeds to step 506 shown in FIG.
  • the processing unit 306 processes the moving image data included in the received stream based on the transmission condition stored in the stream table 320 in association with the stream ID “3”.
  • the processing of the moving image data is started before the section EOS is received, and sequentially performed while the section is received.
  • the moving image data may be compressed according to MPEG-4.
  • the resolution R1 is included in the transmission condition
  • the resolution of the moving image data is higher than R1
  • the resolution of the moving image data may be changed to R1.
  • the frame rate F1 is included in the transmission condition and the frame rate of the moving image data is higher than F1
  • the frame rate of the moving image data may be changed to F1, for example, by thinning out the moving image data.
  • step 507 the data transmission unit 307 sequentially transmits the stream including the processed moving image data to the terminal device 120B. Transmission of this stream is started before the section's EOS is received, and is performed sequentially while the section is being received.
  • step 508 when the data receiving unit 304 receives the EOS of the section in the transfer device 130, the frame included in the section is duplicated and stored in the database 330 shown in FIG.
  • the database 330 stores the first to nth frames (n is a natural number) included in a section and the times T1 to Tn (n is a natural number) at which these frames are acquired in association with each other.
  • the These times T1 to Tn may be absolute times obtained from the relative time indicated by the time stamp added to each frame. For example, in the case where the video recording start time is 12:00, when the time stamp added to the first frame indicates an elapsed time of 12 minutes, the time T1 is 12:12 Good.
  • the processing in step 508 is performed every time reception of the section is completed.
  • the determination unit 305 determines that reception of the stream is completed. In this case, “1” is stored in the database 330 as a completion flag as shown in FIG.
  • step 509 when the terminal 120B receives the stream at the data receiving unit 209B, the processing unit 210B displays the moving image according to the moving image data included in the stream on the display device 125B.
  • the This moving image display is started before reception of the entire stream is completed, and is sequentially performed while the stream is being received.
  • the moving image data is compressed according to MPEG-4, the moving image data is used after being decoded according to MPEG-4. Thereby, the user of the terminal device 120B can browse the moving image.
  • the terminal device 120B may perform the same processing as in steps 407 and 408 described above.
  • the determination unit 305 causes the stream to be transmitted in real time. It is determined not to transfer (NO in step 505). In this case, the processing of the transfer device 130 proceeds to step 508 without performing the processing of steps 506 and 507 described above. That is, in this case, the moving image data is not transferred in real time.
  • the terminal device 120B requests transmission of moving image data after the moving image data is stored in the database 330, the above-described processing in steps 506 and 507 may be performed in response to this request. In this case, the moving image data is transferred to the terminal device 120B in non-real time.
  • FIG. 14 is a sequence chart showing an example of retransmission processing. This retransmission processing may be performed every time reception of the section transmitted from the terminal device 120A is completed in the transfer device 130, for example.
  • step 601 in the transfer apparatus 130, the number of units included in the section received by the data reception unit 304 is counted by the retransmission request unit 308.
  • step 602 based on the difference between the number of units counted by the retransmission request unit 308 and the number of units indicated by the unit count included in the EOS of the received section, whether or not there is a missing section. Is determined. If the numbers of these units match, it is determined that there is no missing section (NO in step 602). In this case, for example, an ACK (acknowledgement) message is transmitted from the transfer apparatus 130 to the terminal apparatus 120A, and then this process ends. This ACK message may include SOS and EOS included in the received section. On the other hand, if the number of these units is different, it is determined that there is a section defect (YES in step 602). In this case, the processing of the transfer device 130 proceeds to step 603.
  • the message transmission unit 302 transmits a message requesting retransmission of the missing section (hereinafter referred to as “retransmission request message”) to the terminal device 120A.
  • the retransmission request message may include information for identifying a missing section, for example.
  • the data retransmission unit 208A transmits a stream including the requested section to the transfer apparatus 130. Since this section is retransmitted, for example, a stream ID “2” is added to the SOS, the plurality of units, and the EOS included in this section, respectively.
  • the processing of the transfer device 130 proceeds to step 505 shown in FIG.
  • the stream ID “2” is included in the SOS of the retransmitted section included in the stream.
  • the stream table 320 stores a stream ID “2” and a retransmission flag “1” in association with each other. This indicates that the stream with the stream ID “2” is not transferred in real time. Therefore, in this case, the determination unit 305 determines not to transfer the stream in real time (NO in step 505).
  • the processing of the transfer device 130 proceeds to step 508 described above.
  • the frame included in the retransmitted section is stored in the database 330 by the complementing unit 309. For example, when the first frame is included in the retransmitted section, the first frame stored in the database 330 may be overwritten by the newly received first frame. This complements the missing section.
  • the moving image data transmitted from the terminal device 120A to the transfer device 130 is processed according to the transmission condition determined by the negotiation between the transfer device 130 and the terminal device 120B, and then the terminal device. 120B. Therefore, even when the moving image data received by the transfer device 130 does not meet the request of the terminal device 120B, the moving image data according to the request can be provided to the terminal device 120B.
  • the transfer device 130 starts to transfer the moving image data in response to receiving the SOS of the section from the terminal device 120A, compared to the case where the transfer of the moving image data is started after reception of the entire section is completed. Thus, the transfer delay of moving image data is reduced.
  • a plurality of imaging devices 110 may be connected to the terminal device 120A.
  • the transmission condition may include information for identifying the moving image data requested by the terminal device 120B.
  • the transmission condition includes the first Information for identifying the moving image data and the third moving image data may be included.
  • the data transmission unit 307 may transmit only the first moving image data and the third moving image data among the first moving image data to the tenth moving image data to the terminal device 120B.
  • a plurality of data may be transferred in parallel.
  • the imaging device 110 and the measurement device are connected to the terminal device 120A
  • the moving image data output from the imaging device 110 and the measurement data output from the measurement device may be transferred in parallel.
  • the measurement data includes a plurality of measurement values measured along the time series.
  • the terminal device 120B may output these data along the same time axis.
  • FIG. 15 is a diagram showing an output example of moving image data and measurement data.
  • a moving image corresponding to moving image data and a measured value corresponding to measurement data are displayed side by side along the same time axis on the display device 125B of the terminal device 120B.
  • a moving image and a measured value corresponding to the same time are displayed simultaneously.
  • a moving image shot at time T10 and a measured value measured at time T10 are displayed simultaneously.
  • the user of the terminal device 120 ⁇ / b> B can browse the moving image shot at a certain time and the measured value measured at the time.
  • the display device 125 may display data on a time scale specified by a user operation, for example.
  • the data includes a plurality of measurement values measured along the time series.
  • the measurement values may be displayed on the display device 125 at 1 second intervals.
  • the transmission condition may include a designated time scale.
  • the processing unit 306 may thin out data according to a designated time scale. For example, when the time scale is 1 second, data may be thinned out so that only one measurement value is included in one second. Thereby, it is possible to prevent unnecessary data from being transmitted in the terminal device 120 on the receiving side.
  • the processing unit 210 performs processing for displaying data, but the processing performed by the processing unit 210 is not limited to data display.
  • the processing unit 210 may perform processing for controlling or operating another device using data.
  • the processing unit 306 may process the data before the data is stored in the database 330.
  • the database 330 stores processed data.
  • the information included in the transmission condition is not limited to the compression method supported by the terminal device 120, the resolution supported by the display device 125, and the frame rate supported by the display device 125.
  • the transmission condition may include a bit rate supported by the terminal device 120 and an image size supported by the display device 125.
  • the information transmission message may include information indicating the status of communication between the transfer device 130 and the terminal device 120B.
  • the communication status may include a communication type, a communication method, a communication band, or a communication speed.
  • the processing unit 306 may thin out the data according to the communication status. For example, when the current communication band is smaller than a predetermined band, data may be thinned out according to the current communication band. Thereby, even when the communication band is small, the data transfer delay is reduced.
  • the transfer device 130 may transmit an error message to the terminal device 120B when the transmission condition received from the terminal device 120A does not match the transmission condition determined by the determination unit 303.
  • the transmission condition determined by the determination unit 303 cannot be satisfied, and therefore an error message is transmitted to the terminal device 120B. Good.
  • data used in the transfer system 100 is not limited to moving image data.
  • sensor data output from the sensor may be used.
  • This sensor detects a detection amount from the sensing target, and outputs sensor data indicating the detected detection amount.
  • the sensor in addition to the imaging device 110 described above, for example, when the sensing target is a car, the sensor includes a tachometer that measures the number of revolutions of the engine, a speedometer that measures the speed of the car, and a steering angle.
  • Various measuring devices provided in the vehicle such as an angle meter, a fuel injection amount meter, a thermometer, and a GPS (Global Positioning System) that measures the position of the vehicle may be used.
  • the data transmission unit 307 transmits all the data stored in the database 330 to a predetermined processing unit.
  • the predetermined processing unit may perform predetermined later-stage processing such as analysis processing and batch processing using data, for example.
  • this number when serial numbers are assigned to each section in chronological order, this number may be stored in the database 330 instead of the information indicating the time.
  • the stream ID is included in the SOS, but the retransmission flag itself may be included in the SOS.
  • each section may be an arbitrary length. Furthermore, the number of units included in each section need not necessarily be the same. The number of units included in one section may vary from section to section.
  • the stream ID may be added to only a part of the SOS, the plurality of units, and the EOS included in each section of the stream.
  • the stream ID may be added only to the SOS, or may be added only to the EOS.
  • the stream does not necessarily have to be composed of a plurality of sections.
  • a stream may include only a plurality of units.
  • the stream does not need to include SOS and EOS.
  • the data transmitted from the terminal device 120 to the transfer device 130 is not necessarily limited to data output from an external device.
  • this data may be data generated by the terminal device 120.
  • the steps of processing performed in the transfer system 100 are not limited to the example described in the above-described embodiment.
  • the steps of this process may be interchanged as long as there is no contradiction.
  • the present invention may be provided as a transfer method including steps of processing performed in the transfer system 100 or the transfer apparatus 130.
  • the present invention may be provided as a program executed in the terminal device 120 or the transfer device 130.
  • This program may be downloaded via a communication line such as the Internet.
  • These programs are provided in a state where they are recorded on a computer-readable recording medium such as a magnetic recording medium (magnetic tape, magnetic disk, etc.), an optical recording medium (optical disk, etc.), a magneto-optical recording medium, or a semiconductor memory. May be.
  • first and second are used only to distinguish one element from another, and do not limit the amount or order of the elements. . Therefore, these terms may be used, for example, by exchanging numbers.
  • transfer system 110 imaging device 120: terminal device 130: transfer device 201: connection control unit 202: message transmission unit 203: message reception unit 204: acquisition unit 205: generation unit 206: Addition unit, 207: Data transmission unit, 208: Data retransmission unit, 209: Data reception unit, 210: Processing unit, 301: Message reception unit, 302: Message transmission unit, 303: Determination unit, 304: Data reception unit, 305 : Determination unit, 306: processing unit, 307: data transmission unit, 308: retransmission request unit, 309: complementing unit

Abstract

According to the present invention, when data received from a transmission device is to be transferred to a reception device, if the received data does not meet the requirements of the reception device, data meeting these requirements is instead provided to the reception device. A reception unit (304) of a transfer device (130) receives time-series data from a transmission device. A determination unit (303) determines data transmission conditions by exchanging information with a reception device. A processing unit (306) processes the data in accordance with the determined transmission conditions. A transmission unit (307) transmits the processed data to the reception device if real-time data transfer is performed. If real-time data transfer is not performed, then a storage unit stores the data as time-series data.

Description

転送装置、転送システム、転送方法、及びプログラムTransfer device, transfer system, transfer method, and program
 本発明は、データを転送する技術に関する。 The present invention relates to a technique for transferring data.
 データを転送する技術が知られている。例えば、特許文献1には、ネットワークから受信したストリームを外部機器にリアルタイムに伝送して記録する技術が記載されている。 A technology for transferring data is known. For example, Patent Document 1 describes a technique for transmitting and recording a stream received from a network to an external device in real time.

特開2006-246245号公報JP 2006-246245 A
 送信装置から受信したデータを受信装置に転送する場合、受信したデータをそのまま受信装置に送信すると、受信装置がそのデータ形式に対応していないときはデータを処理できない場合がある。また、送信装置から受信したデータのデータ量が、受信装置が所望するデータ量より大きい場合、受信したデータをそのまま受信装置に送信すると、受信装置との間の通信量が無駄に増加し、データの伝送が遅延してしまう。
 本発明は、送信装置から受信したデータを受信装置に転送する場合において、受信したデータが受信装置の要求に合わない場合でも、この要求に応じたデータを受信装置に提供することを目的とする。
When transferring data received from a transmitting apparatus to the receiving apparatus, if the received data is transmitted to the receiving apparatus as it is, the data may not be processed when the receiving apparatus does not support the data format. In addition, when the amount of data received from the transmission device is larger than the amount of data desired by the reception device, if the received data is transmitted as it is to the reception device, the amount of communication with the reception device increases unnecessarily, and the data Will be delayed.
An object of the present invention is to provide data to a receiving apparatus in response to the request even when the data received from the transmitting apparatus is transferred to the receiving apparatus, even if the received data does not meet the request of the receiving apparatus. .
 本発明は、送信装置から時系列に沿ったデータを受信する受信部と、受信装置と情報をやり取りすることにより前記データの送信条件を決定する決定部と、前記決定部により決定された前記送信条件に応じて、前記データを加工する加工部と、前記データをリアルタイムで転送する場合には、前記加工部により加工された前記データを前記受信装置に送信する送信部と、前記データを前記リアルタイムで転送しない場合には、前記データを前記時系列に沿って記憶する記憶部とを備える転送装置を提供する。 The present invention includes a receiving unit that receives data in time series from a transmitting device, a determining unit that determines a transmission condition of the data by exchanging information with the receiving device, and the transmission determined by the determining unit. A processing unit that processes the data according to conditions, a transmission unit that transmits the data processed by the processing unit to the receiving device when the data is transferred in real time, and the data in the real time In the case where the data is not transferred, a transfer device including a storage unit that stores the data along the time series is provided.
 前記記憶部は、前記データを前記リアルタイムで転送する場合には、前記データが前記受信装置に送信された後、前記データの複製を記憶してもよい。 In the case where the data is transferred in real time, the storage unit may store a copy of the data after the data is transmitted to the receiving device.
 前記転送装置は、前記データの先頭には、前記データをリアルタイムで転送するか否かを示すリアルタイム情報が付加され、前記受信部により前記データの前記先頭が受信されると、前記リアルタイム情報に基づいて前記データを前記リアルタイムで転送するか否かを判定する判定部をさらに備え、前記加工部は、前記判定部により前記データを前記リアルタイムで転送すると判定された場合には、前記データの受信が完了する前に、前記受信されたデータの加工を開始し、前記受信されたデータを順次加工し、前記送信部は、前記判定部により前記データを前記リアルタイムで転送すると判定された場合には、前記データの受信が完了する前に、前記加工されたデータの送信を開始し、前記加工されたデータを順次送信してもよい。 In the transfer device, real-time information indicating whether or not to transfer the data in real time is added to the head of the data, and when the head of the data is received by the receiving unit, based on the real-time information A determination unit that determines whether to transfer the data in real time, and the processing unit receives the data when the determination unit determines to transfer the data in real time. Before completion, start processing the received data, sequentially process the received data, and when the transmission unit determines to transfer the data in real time by the determination unit, Before the reception of the data is completed, transmission of the processed data may be started and the processed data may be transmitted sequentially.
 前記記憶部は、前記リアルタイム情報と、前記データの識別子とを対応付けて記憶し、前記データの前記先頭には、前記リアルタイム情報に代えて前記識別子が付加され、前記判定部は、前記データの前記先頭に付加された前記識別子と対応付けて前記記憶部に記憶された前記リアルタイム情報に基づいて、前記データを前記リアルタイムで転送するか否かを判定してもよい。 The storage unit stores the real-time information and the identifier of the data in association with each other, the identifier is added to the head of the data instead of the real-time information, and the determination unit Whether or not to transfer the data in real time may be determined based on the real-time information stored in the storage unit in association with the identifier added to the head.
 前記データは、動画を示す動画データであり、前記受信装置は、前記動画データにより示される前記動画を表示する表示装置を有し、前記情報は、前記表示装置が対応する解像度又はフレームレートを含み、前記加工部は、前記解像度又は前記フレームレートに応じて、前記動画データの解像度又はフレームレートを変更してもよい。 The data is moving image data indicating a moving image, and the receiving device includes a display device that displays the moving image indicated by the moving image data, and the information includes a resolution or a frame rate corresponding to the display device. The processing unit may change the resolution or frame rate of the moving image data according to the resolution or the frame rate.
 前記受信装置は、前記データを指定された時間スケールで表示する表示装置を有し、前記情報は、前記時間スケールを含み、前記加工部は、前記時間スケールに応じて、前記データを間引いてもよい。 The receiving device includes a display device that displays the data on a designated time scale, the information includes the time scale, and the processing unit may thin the data according to the time scale. Good.
 前記情報は、前記受信装置との間の通信の状況を含み、前記加工部は、前記通信の状況に応じて、前記データを間引いてもよい。 The information may include a status of communication with the receiving device, and the processing unit may thin out the data according to the status of the communication.
 前記送信装置から送信された前記データの最後には、前記最後であることを示す最後情報が付加され、前記転送装置は、前記最後情報が受信されると、前記データの受信が完了したと判定する判定部をさらに備え、前記送信部は、前記判定部により前記データの受信が完了したと判定されると、前記記憶部に記憶された前記データを所定の処理部に送信してもよい。 Last information indicating the end is added to the end of the data transmitted from the transmission device, and when the last information is received, the transfer device determines that reception of the data is completed. The transmission unit may further transmit the data stored in the storage unit to a predetermined processing unit when the determination unit determines that the reception of the data is completed.
 前記送信装置により送信された前記データは、センサにより検出された複数の検出量のうち少なくとも1つをそれぞれ含む複数のデータブロックにより構成され、前記複数のデータブロックの各々には、当該データブロックに含まれる前記少なくとも1つの検出量の数を示す数情報が付加され、前記転送装置は、前記データブロックに含まれる前記少なくとも1つの検出量の数と、前記データブロックに付加された前記数情報により示される前記数との差に応じて、前記データブロックが欠損しているか否かを判定する判定部と、前記判定部により前記データブロックが欠損していると判定された場合には、前記送信装置に、前記欠損したデータブロックの再送を要求する再送要求部と、前記再送要求部の要求に応じて前記送信装置から再送された前記データブロックを用いて、前記欠損したデータブロックを補完する補完部とをさらに備えてもよい。 The data transmitted by the transmission device includes a plurality of data blocks each including at least one of a plurality of detection amounts detected by a sensor, and each of the plurality of data blocks includes a data block. Number information indicating the number of the at least one detection amount included is added, and the transfer device uses the number information of the at least one detection amount included in the data block and the number information added to the data block. A determination unit that determines whether or not the data block is missing according to a difference from the number shown; and when the determination unit determines that the data block is missing, the transmission A retransmission request unit requesting retransmission of the lost data block to the apparatus; and retransmitting from the transmission apparatus in response to a request from the retransmission request unit. Using said data blocks may further include a completion unit which complements the missing data blocks.
 また、本発明は、転送装置と送信装置と受信装置とを備え、前記転送装置は、前記送信装置から時系列に沿ったデータを受信する第1受信部と、前記受信装置と情報をやり取りすることにより前記データの送信条件を決定する決定部と、前記決定部により決定された前記送信条件に応じて、前記データを加工する加工部と、前記データをリアルタイムで転送する場合には、前記加工部により加工された前記データを前記受信装置に送信する第1送信部と、前記データを前記リアルタイムで転送しない場合には、前記データを前記時系列に沿って記憶する記憶部とを有し、前記送信装置は、前記データを取得する取得部と、前記取得部により取得された前記データを前記転送装置に送信する第2送信部とを有し、前記受信装置は、前記情報を前記転送装置に送信する第3送信部と、前記転送装置から送信された前記データを受信する第2受信部と、前記第2受信部により受信された前記データを用いて処理を行う処理部とを有する転送システムを提供する。 In addition, the present invention includes a transfer device, a transmission device, and a reception device, and the transfer device exchanges information with the reception device and a first reception unit that receives data in time series from the transmission device. And a processing unit that processes the data according to the transmission condition determined by the determination unit, and the processing unit when transferring the data in real time. A first transmission unit that transmits the data processed by the unit to the reception device, and a storage unit that stores the data along the time series when the data is not transferred in real time, The transmission device includes an acquisition unit that acquires the data, and a second transmission unit that transmits the data acquired by the acquisition unit to the transfer device, and the reception device receives the information A third transmission unit that transmits to the transfer device, a second reception unit that receives the data transmitted from the transfer device, and a processing unit that performs processing using the data received by the second reception unit; A transfer system is provided.
 前記データは、撮像装置により撮影された動画を示す動画データと、計測装置から出力された計測データとを含み、前記処理部は、前記動画データと前記計測データとを、同一の時間軸に沿って出力してもよい。 The data includes moving image data indicating a moving image taken by the imaging device and measurement data output from the measuring device, and the processing unit sets the moving image data and the measured data along the same time axis. May be output.
 さらに、本発明は、送信装置から時系列に沿ったデータを受信するステップと、受信装置と情報をやり取りすることにより前記データの送信条件を決定するステップと、前記決定された送信条件に応じて、前記データを加工するステップと、前記データをリアルタイムで転送する場合には、前記加工されたデータを前記受信装置に送信するステップと、前記データを前記リアルタイムで転送しない場合には、前記データを前記時系列に沿って記憶するステップとを備える転送方法を提供する。 Furthermore, the present invention includes a step of receiving data in time series from a transmission device, a step of determining a transmission condition of the data by exchanging information with the reception device, and a response to the determined transmission condition. A step of processing the data; a step of transmitting the data in real time; a step of transmitting the processed data to the receiving device; and a case of not transferring the data in real time. And a step of storing along the time series.
 さらに、本発明は、コンピュータに、送信装置から時系列に沿ったデータを受信するステップと、受信装置と情報をやり取りすることにより前記データの送信条件を決定するステップと、前記決定された送信条件に応じて、前記データを加工するステップと、前記データをリアルタイムで転送する場合には、前記加工されたデータを前記受信装置に送信するステップと、前記データを前記リアルタイムで転送しない場合には、前記データを前記時系列に沿って記憶するステップとを実行させるためのプログラムを提供する。 Furthermore, the present invention includes a step of receiving data in time series from a transmission device to a computer, a step of determining a transmission condition of the data by exchanging information with the reception device, and the determined transmission condition And processing the data, and transferring the data in real time, transmitting the processed data to the receiving device, and not transferring the data in real time, A program for executing the step of storing the data along the time series is provided.
 本発明によれば、送信装置から受信したデータを受信装置に転送する場合において、受信したデータが受信装置の要求に合わない場合でも、この要求に応じたデータを受信装置に提供することができる。 According to the present invention, when data received from a transmission device is transferred to the reception device, even if the received data does not meet the request of the reception device, the data corresponding to the request can be provided to the reception device. .
実施形態に係る転送システム100の一例を示す図である。1 is a diagram illustrating an example of a transfer system 100 according to an embodiment. 端末装置120のハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of the terminal device. 端末装置120の機能構成の一例を示す図である。It is a figure which shows an example of a function structure of the terminal device. 作成要求メッセージ220のフォーマットの一例を示す図である。6 is a diagram illustrating an example of a format of a creation request message 220. FIG. 作成要求メッセージ230のフォーマットの一例を示す図である。6 is a diagram illustrating an example of a format of a creation request message 230. FIG. セクションのフォーマットの一例を示す図である。It is a figure which shows an example of the format of a section. 転送装置130のハードウェア構成の一例を示す図である。3 is a diagram illustrating an example of a hardware configuration of a transfer device 130. FIG. 転送装置130の機能構成の一例を示す図である。3 is a diagram illustrating an example of a functional configuration of a transfer device 130. FIG. 応答メッセージ310のフォーマットの一例を示す図である。It is a figure which shows an example of the format of the response message. ストリームテーブル320の一例を示す図である。6 is a diagram illustrating an example of a stream table 320. FIG. データベース330の一例を示す図である。It is a figure which shows an example of the database. 送信処理の一例を示すシーケンスチャートである。It is a sequence chart which shows an example of a transmission process. 転送処理の一例を示すシーケンスチャートである。It is a sequence chart which shows an example of a transfer process. 再送処理の一例を示すシーケンスチャートである。It is a sequence chart which shows an example of a resending process. 動画データと計測データの出力例を示す図である。It is a figure which shows the example of an output of moving image data and measurement data.
1.構成
 図1は、実施形態に係る転送システム100の一例を示す図である。転送システム100は、端末装置120から受信したデータを他の端末装置120に転送するシステムである。転送システム100は、撮像装置110と、複数の端末装置120と、転送装置130とを備える。図1に示す例では、複数の端末装置120には、端末装置120Aと端末装置120Bとが含まれる。なお、図1に示す撮像装置110、端末装置120、及び転送装置130の数は例示であり、これに限定されない。撮像装置110は、通信回線150を介して端末装置120Aに接続される。端末装置120A及び120Bは、通信回線160を介して転送装置130に接続される。通信回線160には、例えばモバイル回線等の無線ネットワークとインターネットとが含まれてもよい。無線ネットワークの通信規格としては、例えば3G、LTE(Long Term Evolution)、Wi-Fi(登録商標)、WiMAX(登録商標)、又はBluetooth(登録商標)が用いられてもよい。
1. Configuration FIG. 1 is a diagram illustrating an example of a transfer system 100 according to an embodiment. The transfer system 100 is a system that transfers data received from the terminal device 120 to another terminal device 120. The transfer system 100 includes an imaging device 110, a plurality of terminal devices 120, and a transfer device 130. In the example illustrated in FIG. 1, the plurality of terminal devices 120 include a terminal device 120A and a terminal device 120B. Note that the numbers of the imaging device 110, the terminal device 120, and the transfer device 130 illustrated in FIG. 1 are examples, and are not limited thereto. The imaging device 110 is connected to the terminal device 120A via the communication line 150. The terminal devices 120A and 120B are connected to the transfer device 130 via the communication line 160. The communication line 160 may include a wireless network such as a mobile line and the Internet, for example. For example, 3G, LTE (Long Term Evolution), Wi-Fi (registered trademark), WiMAX (registered trademark), or Bluetooth (registered trademark) may be used as a communication standard of the wireless network.
 撮像装置110は、画像を撮影する装置である。撮像装置110は、例えばデジタルビデオカメラであり、光学系を用いて撮像素子上に像を結ばせることにより、動画を撮影して動画データに変換して出力する。この動画データは、時系列に沿って並べられた複数のフレームにより構成される。また、撮像装置110は、マイクロフォンを有していてもよい。この場合、動画データには、音声を示す音声データが含まれてもよい。 The imaging device 110 is a device that captures an image. The imaging device 110 is, for example, a digital video camera, and captures a moving image by converting an image onto an imaging element using an optical system, and converts the moving image data to output. This moving image data is composed of a plurality of frames arranged in time series. In addition, the imaging device 110 may include a microphone. In this case, the moving image data may include audio data indicating audio.
 図2は、端末装置120のハードウェア構成の一例を示す図である。端末装置120は、エッジとも呼ばれ、データの送受信を行う装置である。端末装置120は、プロセッサ121と、メモリ122と、ストレージ123と、通信装置124と、表示装置125とを備えるコンピュータである。これらの装置は、バス126を介して接続されている。 FIG. 2 is a diagram illustrating an example of a hardware configuration of the terminal device 120. The terminal device 120 is also called an edge, and is a device that transmits and receives data. The terminal device 120 is a computer that includes a processor 121, a memory 122, a storage 123, a communication device 124, and a display device 125. These devices are connected via a bus 126.
 プロセッサ121は、プログラムをメモリ122に読み出して実行することにより、各種の処理を実行する。例えばプロセッサ121は、CPU(Central Processing Unit)により構成されてもよい。メモリ122は、プロセッサ121により実行されるプログラムを記憶する。例えばメモリ122は、ROM(Read Only Memory)又はRAM(Random Access Memory)により構成されてもよい。ストレージ123は、各種のデータ及びプログラムを記憶する。例えばストレージ123は、ハードディスクドライブ又はフラッシュメモリにより構成されてもよい。通信装置124は、通信回線150及び160に接続された通信インタフェースである。通信装置124は、通信回線150又は160を介してデータを送受信する。表示装置125は、各種の情報を表示する。例えば表示装置125は、液晶ディスプレイにより構成されてもよい。 The processor 121 executes various processes by reading the program into the memory 122 and executing it. For example, the processor 121 may be configured by a CPU (Central Processing Unit). The memory 122 stores a program executed by the processor 121. For example, the memory 122 may be configured by a ROM (Read Only Memory) or a RAM (Random Access Memory). The storage 123 stores various data and programs. For example, the storage 123 may be configured by a hard disk drive or a flash memory. The communication device 124 is a communication interface connected to the communication lines 150 and 160. The communication device 124 transmits and receives data via the communication line 150 or 160. The display device 125 displays various information. For example, the display device 125 may be configured by a liquid crystal display.
 図3は、端末装置120の機能構成の一例を示す図である。この例では、端末装置120は、転送装置130にデータを送信する送信装置としての機能と、転送装置130からデータを受信する受信装置としての機能とを両方とも備える。端末装置120は、コネクション制御部201と、メッセージ送信部202(第3送信部の一例)と、メッセージ受信部203と、取得部204と、生成部205と、付加部206と、データ送信部207(第2送信部の一例)と、データ再送部208と、データ受信部209(第2受信部の一例)と、処理部210とを備える。これらの機能は、メモリ122に記憶されたプログラムと、このプログラムを実行するプロセッサ121との協働により、プロセッサ121が演算を行い又は通信装置124による通信を制御することにより実現される。 FIG. 3 is a diagram illustrating an example of a functional configuration of the terminal device 120. In this example, the terminal device 120 has both a function as a transmission device that transmits data to the transfer device 130 and a function as a reception device that receives data from the transfer device 130. The terminal device 120 includes a connection control unit 201, a message transmission unit 202 (an example of a third transmission unit), a message reception unit 203, an acquisition unit 204, a generation unit 205, an addition unit 206, and a data transmission unit 207. (An example of a second transmission unit), a data retransmission unit 208, a data reception unit 209 (an example of a second reception unit), and a processing unit 210. These functions are realized when the processor 121 performs an operation or controls communication by the communication device 124 in cooperation with the program stored in the memory 122 and the processor 121 that executes the program.
 コネクション制御部201は、端末装置120と転送装置130との間のコネクションを制御する。このコネクションとは、コネクション型の通信において確立される仮想的な専用通信路をいう。例えばコネクションを確立する場合には、コネクション制御部201から転送装置130にコネクションの確立を要求するメッセージが送信される。このメッセージに応じて転送装置130から端末装置120に応答メッセージが送信されると、端末装置120と転送装置130との間でコネクションが確立される。コネクションを切断する場合には、コネクション制御部201から転送装置130にコネクションの切断を要求するメッセージが送信される。このメッセージに応じて転送装置130から端末装置120に応答メッセージが送信されると、端末装置120と転送装置130との間でコネクションが切断される。 The connection control unit 201 controls the connection between the terminal device 120 and the transfer device 130. This connection refers to a virtual dedicated communication path established in connection-type communication. For example, when establishing a connection, a message requesting establishment of a connection is transmitted from the connection control unit 201 to the transfer apparatus 130. When a response message is transmitted from the transfer device 130 to the terminal device 120 in response to this message, a connection is established between the terminal device 120 and the transfer device 130. When disconnecting the connection, a message requesting disconnection of the connection is transmitted from the connection control unit 201 to the transfer apparatus 130. When a response message is transmitted from the transfer device 130 to the terminal device 120 in response to this message, the connection is disconnected between the terminal device 120 and the transfer device 130.
 メッセージ送信部202は、端末装置120と転送装置130との間で行われるネゴシエーションに用いられる各種のメッセージを送信する。例えば各種のメッセージには、情報送信メッセージと、作成要求メッセージ220又は230とが含まれる。情報送信メッセージには、データの送信条件を決定するための情報が含まれる。この情報には、例えば端末装置120のリソースの性能を示す性能情報が含まれてもよい。このリソースは、ハードウェアであってもよいし、ソフトウェアであってもよい。例えばブラウザによりデータが表示される場合、ソフトウェアにはブラウザが含まれてもよい。また、この情報は、送信条件そのものであってもよい。作成要求メッセージ220又は230は、データの処理条件を決定するための情報が含まれる。 The message transmission unit 202 transmits various messages used for negotiation performed between the terminal device 120 and the transfer device 130. For example, various messages include an information transmission message and a creation request message 220 or 230. The information transmission message includes information for determining data transmission conditions. This information may include performance information indicating the resource performance of the terminal device 120, for example. This resource may be hardware or software. For example, when data is displayed by a browser, the software may include a browser. Further, this information may be the transmission condition itself. The creation request message 220 or 230 includes information for determining data processing conditions.
 図4は、送信側の端末装置120から送信される作成要求メッセージ220のフォーマットの一例を示す図である。この例では、作成要求メッセージ220には、要求IDと、ストリーム数と、ストリームIDと、フラグと、計測IDと、送信元IDと、転送先IDとが含まれる。 FIG. 4 is a diagram illustrating an example of a format of the creation request message 220 transmitted from the terminal device 120 on the transmission side. In this example, the creation request message 220 includes a request ID, the number of streams, a stream ID, a flag, a measurement ID, a transmission source ID, and a transfer destination ID.
 要求IDは、作成要求メッセージ220を一意に識別する情報である。ストリーム数は、この作成要求メッセージ220に含まれるストリームの属性情報の数を示す。この属性情報は、ストリームID、フラグ、計測ID、送信元ID、及び転送先IDの組により構成される。この属性情報は、一般に、ストリームIDよりもデータ量が多い。作成要求メッセージ220には、ストリーム数により示される数だけストリームの属性情報が含まれる。すなわち、作成要求メッセージ220には、複数のストリームの属性情報が含まれてもよい。 The request ID is information that uniquely identifies the creation request message 220. The number of streams indicates the number of stream attribute information included in the creation request message 220. This attribute information is composed of a set of a stream ID, a flag, a measurement ID, a transmission source ID, and a transfer destination ID. This attribute information generally has a larger data amount than the stream ID. The creation request message 220 includes stream attribute information as many as indicated by the number of streams. That is, the creation request message 220 may include attribute information of a plurality of streams.
 ストリームIDは、ストリームを一意に識別する情報である。ストリームIDは、接続中のコネクションに対応付けられている。すなわち、ストリームIDは、接続中のコネクションにおいてストリームを一意に識別する識別子として用いられてもよい。ストリームIDは、端末装置120において決定されてもよいし、転送装置130において決定されてもよい。 Stream ID is information that uniquely identifies a stream. The stream ID is associated with the connection being connected. That is, the stream ID may be used as an identifier for uniquely identifying the stream in the connection being connected. The stream ID may be determined by the terminal device 120 or the transfer device 130.
 フラグには、再送フラグと、保存フラグとが含まれる。再送フラグは、データが再送されたものか否かを示す情報である。再送フラグが「0」である場合、データが再送されたものではない、すなわち最初に送信されたものであることを示す。データが再送されたものではない場合、そのデータはリアルタイムで転送される。一方、再送フラグが「1」である場合、データが再送されたものであることを示す。データが再送されたものである場合、そのデータはリアルタイムで転送されない。このように、再送フラグは、データをリアルタイムで送信するか否かを示すリアルタイム情報として用いられてもよい。保存フラグは、データを保存するか否かを示す情報である。保存フラグが「0」である場合、データを保存しないことを示す。一方、保存フラグが「1」である場合、データを保存することを示す。 The flag includes a retransmission flag and a storage flag. The retransmission flag is information indicating whether data has been retransmitted. When the retransmission flag is “0”, it indicates that the data is not retransmitted, that is, transmitted first. If the data is not retransmitted, the data is transferred in real time. On the other hand, when the retransmission flag is “1”, this indicates that the data has been retransmitted. If the data is retransmitted, it is not transferred in real time. As described above, the retransmission flag may be used as real-time information indicating whether to transmit data in real time. The save flag is information indicating whether to save data. When the save flag is “0”, it indicates that data is not saved. On the other hand, when the save flag is “1”, it indicates that the data is to be saved.
 計測IDは、データを生成した計測を一意に識別する情報である。例えばデータが撮像装置110から出力された動画データである場合、撮像装置110が動画の撮影を開始してから終了するまでが一つの計測単位になる。したがって、この間に生成された動画データには、同一の計測IDが付与される。送信元IDは、ストリームの送信元となる端末装置120を一意に識別する情報である。転送先IDは、データの転送先となる端末装置120を一意に識別する情報である。なお、転送先IDが「-」である場合、転送装置130からデータが転送されないことを示す。 Measurement ID is information that uniquely identifies the measurement that generated the data. For example, when the data is moving image data output from the imaging device 110, one unit of measurement is from when the imaging device 110 starts shooting a moving image to when it ends. Therefore, the same measurement ID is assigned to the moving image data generated during this time. The transmission source ID is information that uniquely identifies the terminal device 120 that is the transmission source of the stream. The transfer destination ID is information that uniquely identifies the terminal device 120 that is a data transfer destination. When the transfer destination ID is “−”, it indicates that data is not transferred from the transfer device 130.
 図5は、受信側の端末装置120から送信される作成要求メッセージ230のフォーマットの一例を示す図である。この例では、作成要求メッセージ230には、上述した作成要求メッセージ220と同様に、要求ID、ストリーム数と、ストリームIDと、送信元IDとが含まれる。また、作成要求メッセージ230には、転送元IDが含まれる。転送元IDは、ストリームの転送元の端末装置120を識別する情報である。なお、作成要求メッセージ230には、作成要求メッセージ220に含まれるフラグ、計測ID、及び転送先IDは含まれなくてもよい。 FIG. 5 is a diagram showing an example of the format of the creation request message 230 transmitted from the terminal device 120 on the receiving side. In this example, the creation request message 230 includes a request ID, the number of streams, a stream ID, and a transmission source ID, similar to the creation request message 220 described above. The creation request message 230 includes a transfer source ID. The transfer source ID is information for identifying the terminal device 120 that is the transfer source of the stream. The creation request message 230 may not include the flag, measurement ID, and transfer destination ID included in the creation request message 220.
 取得部204は、外部装置からデータを取得する。このデータは、例えば撮像装置110から出力された動画データであってもよい。生成部205は、取得部204により取得されたデータに基づいてストリームを生成する。このストリームとは、ストリーミングで扱われるデータ列をいう。ストリーミングとは、データ全体の入力が完了する前に出力を開始し、データが入力されている間に入力されたデータを順次出力する方式をいう。例えばストリームは、複数のセクションにより構成される。このセクションは、データを構成するデータブロックとして用いられてもよい。 The acquisition unit 204 acquires data from an external device. This data may be moving image data output from the imaging device 110, for example. The generation unit 205 generates a stream based on the data acquired by the acquisition unit 204. This stream refers to a data string handled by streaming. Streaming refers to a system in which output is started before input of the entire data is completed, and the input data is sequentially output while the data is being input. For example, a stream is composed of a plurality of sections. This section may be used as a data block constituting data.
 図6は、セクションのフォーマットの一例を示す図である。この例では、セクションには、SOS(Start of Section)と、複数のユニットと、EOS(End of Section)とが含まれる。SOSは、セクションの先頭に含まれる。EOSは、セクションの後尾に含まれる。SOSは、セクションの開始を示す情報である。複数のユニットには、動画データに含まれるフレームが1つずつ含まれる。各フレームには、センサID及びタイムスタンプが付加される。このセンサIDは、データを取得したセンサを一意に識別する情報である。タイムスタンプは、データが取得された時間を示す情報である。この時間は、例えば計測を開始した時刻を起点とした、データが取得された時刻までの経過時間、すなわち計測が開始された時刻を基準とした相対的な時間であってもよい。EOSは、セクションの終了を示す情報である。EOSには、ユニットカウントと、シリアルナンバーとが含まれる。ユニットカウントは、セクションに含まれるユニットの数を示す数情報である。シリアルナンバーは、同一の計測単位に係るセクションを一意に識別する情報である。なお、以下の説明では、SOS、ユニット、EOSを総称して「エレメント」とも言う。 FIG. 6 is a diagram showing an example of a section format. In this example, the section includes SOS (Start of Section), a plurality of units, and EOS (End of Section). The SOS is included at the beginning of the section. EOS is included at the end of the section. SOS is information indicating the start of a section. Each of the plurality of units includes one frame included in the moving image data. A sensor ID and a time stamp are added to each frame. This sensor ID is information for uniquely identifying the sensor from which data is acquired. The time stamp is information indicating the time when the data is acquired. This time may be, for example, an elapsed time from the time when the measurement is started to the time when the data is acquired, that is, a relative time based on the time when the measurement is started. EOS is information indicating the end of a section. The EOS includes a unit count and a serial number. The unit count is number information indicating the number of units included in the section. The serial number is information for uniquely identifying sections related to the same measurement unit. In the following description, SOS, unit, and EOS are also collectively referred to as “element”.
 付加部206は、生成部205により生成されたストリームを一意に識別するストリームIDを、そのストリームの各セクションに含まれるSOS、複数のユニット、及びEOSにそれぞれ付加する。 The adding unit 206 adds a stream ID for uniquely identifying the stream generated by the generating unit 205 to the SOS, the plurality of units, and the EOS included in each section of the stream.
 データ送信部207は、ストリームIDが付加されたストリームを転送装置130に送信する。このストリームは、ストリーミングにより送信される。このストリームの送信は、セクション単位で行われてもよいし、エレメント単位で行われてもよい。 The data transmission unit 207 transmits the stream to which the stream ID is added to the transfer device 130. This stream is transmitted by streaming. Transmission of this stream may be performed in section units or in element units.
 データ再送部208は、転送装置130に送信されたセクションに欠損があった場合、転送装置130からの要求に応じて、そのセクションを転送装置130に再送する。 If the section transmitted to the transfer device 130 is missing, the data retransmission unit 208 retransmits the section to the transfer device 130 in response to a request from the transfer device 130.
 データ受信部209は、転送装置130からストリームを受信する。処理部210は、データ受信部209により受信されたストリームに含まれるデータを用いて処理を行う。 The data receiving unit 209 receives a stream from the transfer device 130. The processing unit 210 performs processing using data included in the stream received by the data receiving unit 209.
 図7は、転送装置130のハードウェア構成の一例を示す図である。転送装置130は、ハブとも呼ばれ、複数の端末装置120の間のデータのやり取りを中継する装置である。転送装置130は、非リアルタイムの処理とリアルタイムの処理とを行う。非リアルタイムの処理は、例えば端末装置120から受信したデータを蓄積する処理である。これにより、端末装置120から受信したデータがまとめて管理される。このデータは、例えばセンシング対象の状況についての各種の分析に用いられる。そのため、非リアルタイムの処理では、データの正確性が要求される。一方、リアルタイムの処理は、例えば端末装置120から受信したデータをリアルタイムで他の端末装置120に送信する処理である。なお、このリアルタイムとは、完全に同時である必要はなく、多少の時間の遅延があってもよい。このデータは、例えばセンシング対象の現在の状況をユーザが把握するのに用いられる。そのため、リアルタイムの処理では、即時性が要求される。 FIG. 7 is a diagram illustrating an example of a hardware configuration of the transfer device 130. The transfer device 130 is also called a hub, and is a device that relays data exchange between the plurality of terminal devices 120. The transfer device 130 performs non-real time processing and real time processing. The non-real time processing is processing for accumulating data received from the terminal device 120, for example. Thereby, the data received from the terminal device 120 are managed collectively. This data is used, for example, for various types of analysis on the status of the sensing target. Therefore, data accuracy is required in non-real time processing. On the other hand, the real-time processing is processing for transmitting data received from the terminal device 120 to another terminal device 120 in real time, for example. Note that this real time does not have to be completely simultaneous, and there may be a slight delay. This data is used, for example, for the user to grasp the current status of the sensing target. Therefore, immediacy is required in real-time processing.
 転送装置130は、プロセッサ131と、メモリ132と、ストレージ133(記憶部の一例)と、通信装置134とを備えるコンピュータである。これらの装置は、バス135を介して接続されている。プロセッサ131、メモリ132、ストレージ133、通信装置134、及びバス135は、上述したプロセッサ121、メモリ122、ストレージ123、通信装置124、及びバス126と同様であるため、その説明を省略する。 The transfer device 130 is a computer that includes a processor 131, a memory 132, a storage 133 (an example of a storage unit), and a communication device 134. These devices are connected via a bus 135. Since the processor 131, the memory 132, the storage 133, the communication device 134, and the bus 135 are the same as the processor 121, the memory 122, the storage 123, the communication device 124, and the bus 126 described above, description thereof is omitted.
 図8は、転送装置130の機能構成の一例を示す図である。転送装置130は、メッセージ受信部301と、メッセージ送信部302と、決定部303と、データ受信部304(受信部又は第1受信部の一例)と、判定部305と、加工部306と、データ送信部307(送信部又は第1送信部の一例)と、再送要求部308と、補完部309とを備える。これらの機能は、メモリ132に記憶されたプログラムと、このプログラムを実行するプロセッサ131との協働により、プロセッサ131が演算を行い又は通信装置134による通信を制御することにより実現される。 FIG. 8 is a diagram illustrating an example of a functional configuration of the transfer device 130. The transfer device 130 includes a message reception unit 301, a message transmission unit 302, a determination unit 303, a data reception unit 304 (an example of a reception unit or a first reception unit), a determination unit 305, a processing unit 306, data A transmission unit 307 (an example of a transmission unit or a first transmission unit), a retransmission request unit 308, and a complement unit 309 are provided. These functions are realized when the processor 131 performs an operation or controls communication by the communication device 134 in cooperation with the program stored in the memory 132 and the processor 131 that executes the program.
 メッセージ受信部301は、端末装置120から各種のメッセージを受信する。例えば各種のメッセージには、上述した情報送信メッセージ及び作成要求メッセージ220が含まれる。メッセージ送信部302は、端末装置120に各種のメッセージを送信する。例えば各種のメッセージには、端末装置120から受信した作成要求メッセージ220に対する応答メッセージ310が含まれる。 The message receiving unit 301 receives various messages from the terminal device 120. For example, the various messages include the information transmission message and the creation request message 220 described above. The message transmission unit 302 transmits various messages to the terminal device 120. For example, various messages include a response message 310 to the creation request message 220 received from the terminal device 120.
 図9は、応答メッセージ310のフォーマットの一例を示す図である。この例では、応答メッセージ310には、作成要求メッセージ220又は230に含まれる要求IDと、結果情報とが含まれる。結果情報は、ストリームの属性情報の作成が成功したか否かを示す情報である。例えば、結果情報が「0」である場合、ストリームの属性情報の作成が成功したことを示す。一方、結果情報が「1」である場合、ストリームの属性情報の作成が失敗したことを示す。例えば、作成要求メッセージ220又は230に必要な項目が含まれていない場合や、作成要求メッセージ220又は230に含まれる項目が有効な値を有していない場合には、ストリームの属性情報の作成が失敗する場合がある。なお、作成要求メッセージ220又は230に複数のストリームIDが含まれる場合には、ストリームID毎に結果情報が含まれてもよい。 FIG. 9 is a diagram illustrating an example of the format of the response message 310. In this example, the response message 310 includes a request ID included in the creation request message 220 or 230 and result information. The result information is information indicating whether or not the creation of the stream attribute information is successful. For example, when the result information is “0”, it indicates that the creation of the attribute information of the stream is successful. On the other hand, when the result information is “1”, it indicates that the creation of the stream attribute information has failed. For example, when a necessary item is not included in the creation request message 220 or 230, or when an item included in the creation request message 220 or 230 does not have a valid value, creation of stream attribute information is performed. May fail. When a plurality of stream IDs are included in the creation request message 220 or 230, result information may be included for each stream ID.
 決定部303は、端末装置120と情報をやり取りすることにより、データの送信条件を決定する。例えば送信条件には、データの形式に関する条件が含まれる。例えばデータが撮像装置110から出力された動画データである場合、データの形式には、動画データの圧縮方法、解像度、及びフレームレートのうち少なくとも1つが含まれてもよい。作成要求メッセージ220に含まれる属性情報と決定部303により決定された送信条件とは、例えばストリームテーブル320により管理される。 The determination unit 303 determines the data transmission condition by exchanging information with the terminal device 120. For example, the transmission condition includes a condition regarding the data format. For example, when the data is moving image data output from the imaging device 110, the data format may include at least one of the compression method, resolution, and frame rate of the moving image data. The attribute information included in the creation request message 220 and the transmission conditions determined by the determination unit 303 are managed by the stream table 320, for example.
 図10は、ストリームテーブル320の一例を示す図である。ストリームテーブル320は、例えばストレージ133に記憶される。この例では、ストリームテーブル320には、作成要求メッセージ220又は230に含まれるストリームID、再送フラグ、保存フラグ、計測ID、送信元ID、転送先ID又は転送元IDと、決定部303により決定された送信条件とが対応付けて格納される。 FIG. 10 is a diagram illustrating an example of the stream table 320. The stream table 320 is stored in the storage 133, for example. In this example, the stream table 320 is determined by the determination unit 303 with the stream ID, retransmission flag, storage flag, measurement ID, transmission source ID, transfer destination ID, or transfer source ID included in the creation request message 220 or 230. The transmission conditions are stored in association with each other.
 データ受信部304は、送信側の端末装置120からストリームを受信する。判定部305は、データ受信部304により受信されたストリームを、リアルタイムで転送するか否かを判定する。加工部306は、判定部305によりリアルタイムで転送すると判定された場合、ストリームテーブル320に格納された送信条件に応じて、ストリームに含まれるデータを加工する。この加工とは、例えばデータの中身は変更しないものの、データの形式を変更することをいう。例えば送信条件にデータの形式が含まれる場合、送信条件に含まれる形式に沿ってデータの形式が変更されてもよい。データ送信部207は、加工されたデータを含むストリームを受信側の端末装置120に送信する。このストリームは、ストリーミングにより送信される。 The data receiving unit 304 receives a stream from the terminal device 120 on the transmission side. The determination unit 305 determines whether or not to transfer the stream received by the data reception unit 304 in real time. The processing unit 306 processes the data included in the stream according to the transmission conditions stored in the stream table 320 when the determination unit 305 determines to transfer in real time. This processing means, for example, changing the data format, although the data contents are not changed. For example, when the data format is included in the transmission condition, the data format may be changed according to the format included in the transmission condition. The data transmission unit 207 transmits a stream including the processed data to the terminal device 120 on the reception side. This stream is transmitted by streaming.
 判定部305によりリアルタイムで転送しないと判定された場合、ストリームに含まれるデータは時系列に沿ってストレージ133に記憶される。また、判定部305によりリアルタイムで転送すると判定された場合、データ送信部207によりストリームが送信された後、そのストリームに含まれるデータの複製が時系列に沿ってストレージ133に記憶される。このデータは、例えばデータベース330により管理される。 If the determination unit 305 determines not to transfer in real time, the data included in the stream is stored in the storage 133 in time series. If the determination unit 305 determines to transfer in real time, the data transmission unit 207 transmits a stream, and then a copy of the data included in the stream is stored in the storage 133 in time series. This data is managed by the database 330, for example.
 図11は、データベース330の一例を示す図である。データベース330は、例えばストレージ133に記憶される。例えばデータが撮像装置110から出力された動画データである場合、データベース330には、動画データに含まれる各フレームが取得された時刻を示す情報と、動画データに含まれるフレームと、完了フラグとが対応付けて格納される。時刻は、例えばフレームに付加されたタイムスタンプに基づいて求められる。完了フラグは、ストリームの受信が完了したか否かを示す情報である。例えば完了フラグが「0」である場合には、ストリームの受信が完了していないことを示す。完了フラグが「1」である場合には、ストリームの受信が完了したことを示す。 FIG. 11 is a diagram illustrating an example of the database 330. The database 330 is stored in the storage 133, for example. For example, when the data is moving image data output from the imaging device 110, the database 330 includes information indicating the time when each frame included in the moving image data is acquired, a frame included in the moving image data, and a completion flag. Stored in association. The time is obtained based on, for example, a time stamp added to the frame. The completion flag is information indicating whether or not reception of the stream is completed. For example, when the completion flag is “0”, it indicates that the reception of the stream has not been completed. When the completion flag is “1”, it indicates that the reception of the stream has been completed.
 再送要求部308は、データ受信部304により受信されたセクションが欠損していると判定された場合には、送信側の端末装置120に、欠損したセクションの再送を要求する。補完部309は、再送要求部308の要求に応じて、送信側の端末装置120から再送されたセクションを用いて、欠損したセクションを補完する。 When it is determined that the section received by the data receiving unit 304 is missing, the retransmission request unit 308 requests the terminal device 120 on the transmission side to retransmit the missing section. The complementing unit 309 supplements the missing section using the section retransmitted from the terminal device 120 on the transmission side in response to the request from the retransmission requesting unit 308.
2.動作
2‐1.送信処理
 まず、端末装置120が転送装置130に動画データを送信する処理について説明する。ここでは、撮像装置110で撮影された動画を示す動画データが端末装置120Aから転送装置130に送信される例を想定する。なお、以下の説明では、端末装置120Aの構成には符号の末尾に「A」を付して説明する。
2. Operation 2-1. Transmission Process First, a process in which the terminal apparatus 120 transmits moving image data to the transfer apparatus 130 will be described. Here, it is assumed that moving image data indicating a moving image shot by the imaging device 110 is transmitted from the terminal device 120 </ b> A to the transfer device 130. In the following description, the configuration of the terminal device 120A will be described with “A” added to the end of the reference numeral.
 図12は、送信処理の一例を示すシーケンスチャートである。端末装置120Aは、動画データを送信する前に、転送装置130とネゴシエーションを行う。 FIG. 12 is a sequence chart showing an example of transmission processing. The terminal device 120A negotiates with the transfer device 130 before transmitting the moving image data.
 ステップ401において、端末装置120Aでは、コネクション制御部201Aにより、転送装置130とコネクションが確立される。ステップ402において、端末装置120Aと転送装置130との間でネゴシエーションが行われる。具体的には、メッセージ送信部202Aにより、接続中のコネクションを介して、図4に示すような作成要求メッセージ220が転送装置130に送信される。 In step 401, in the terminal device 120A, the connection control unit 201A establishes a connection with the transfer device 130. In step 402, negotiation is performed between the terminal device 120A and the transfer device 130. Specifically, the message transmission unit 202A transmits a creation request message 220 as illustrated in FIG. 4 to the transfer apparatus 130 via the connection being connected.
 例えば、作成要求メッセージ220には、要求ID「1」と、ストリーム数「2」とが含まれる。これは、要求IDが「1」の作成要求メッセージ220には、2つのストリームの属性情報が含まれることを示す。また、作成要求メッセージ220には、ストリームID「1」と、再送フラグ「0」と、保存フラグ「1」と、計測ID「M001」と、端末装置120Aを識別する送信元ID「EAAA」と、端末装置120Bを識別する転送先ID「EBBB」との組が含まれる。これは、ストリームIDが「1」のストリームは、計測IDが「M001」の計測により生成された動画データを含み、この動画データは、再送されたものではなく、転送装置130に保存する必要があり、さらに、転送装置130から端末装置120Bに転送する必要があることを示す。さらに、作成要求メッセージ220には、ストリームID「2」と、再送フラグ「1」と、保存フラグ「1」と、計測ID「M001」と、送信元ID「EAAA」と、転送先ID「-」との組が含まれる。これは、ストリームIDが「2」のストリームは、計測IDが「M001」の計測により生成された動画データを含み、この動画データは、再送されたものであり、転送装置130に保存する必要があり、さらに、転送装置130からは転送する必要がないことを示す。 For example, the creation request message 220 includes a request ID “1” and the number of streams “2”. This indicates that the creation request message 220 having the request ID “1” includes attribute information of two streams. The creation request message 220 includes a stream ID “1”, a retransmission flag “0”, a storage flag “1”, a measurement ID “M001”, and a transmission source ID “EAAA” that identifies the terminal device 120A. , A pair with a transfer destination ID “EBBB” for identifying the terminal device 120B is included. This is because the stream with the stream ID “1” includes the moving image data generated by the measurement with the measurement ID “M001”, and this moving image data is not retransmitted and needs to be stored in the transfer device 130. Furthermore, it indicates that it is necessary to transfer from the transfer device 130 to the terminal device 120B. Further, the creation request message 220 includes a stream ID “2”, a retransmission flag “1”, a storage flag “1”, a measurement ID “M001”, a transmission source ID “EAAA”, and a transfer destination ID “−”. Is included. This is because the stream with the stream ID “2” includes the moving image data generated by the measurement with the measurement ID “M001”, and this moving image data has been retransmitted and needs to be stored in the transfer device 130. Furthermore, it indicates that there is no need to transfer from the transfer device 130.
 また、作成要求メッセージ220が送信された後、メッセージ送信部202Aにより、接続中のコネクションを介して、ストリームIDが「1」のストリームの送信条件を含む情報送信メッセージが転送装置130に送信される。例えば、送信条件には、撮像装置110の解像度が含まれる。 After the creation request message 220 is transmitted, the message transmission unit 202A transmits an information transmission message including the transmission condition of the stream with the stream ID “1” to the transfer apparatus 130 via the connection being connected. . For example, the transmission condition includes the resolution of the imaging device 110.
 ステップ403において、転送装置130では、メッセージ受信部301にて作成要求メッセージ220及び情報送信メッセージが受信されると、作成要求メッセージ220に含まれる属性情報と情報送信メッセージに含まれる送信条件とがストリームテーブル320に格納される。例えばストリームテーブル320の最初のレコードには、図10に示すように、ストリームID「1」と、再送フラグ「0」と、保存フラグ「1」と、計測ID「M001」と、送信元ID「EAAA」と、転送先ID「EBBB」と、情報送信メッセージに含まれる送信条件とが格納される。また、ストリームテーブル320の2番目のレコードには、ストリームID「2」と、再送フラグ「1」と、保存フラグ「1」と、計測ID「M001」と、送信元ID「EAAA」と、転送先ID「-」と、情報送信メッセージに含まれる送信条件とが格納される。 In step 403, when the message receiving unit 301 receives the creation request message 220 and the information transmission message in the transfer device 130, the attribute information included in the creation request message 220 and the transmission conditions included in the information transmission message are streamed. Stored in table 320. For example, in the first record of the stream table 320, as shown in FIG. 10, the stream ID “1”, the retransmission flag “0”, the storage flag “1”, the measurement ID “M001”, and the transmission source ID “ “EAAA”, the transfer destination ID “EBBB”, and the transmission condition included in the information transmission message are stored. The second record of the stream table 320 includes a stream ID “2”, a retransmission flag “1”, a storage flag “1”, a measurement ID “M001”, a transmission source ID “EAAA”, and a transfer. The destination ID “−” and the transmission condition included in the information transmission message are stored.
 ステップ404において、属性情報と送信条件の格納が完了すると、メッセージ送信部302により、接続中のコネクションを介して端末装置120Aに図9に示すような応答メッセージが送信される。例えば、応答メッセージ310には、要求ID「1」と、結果情報「0」とが含まれる。端末装置120Aがこの応答メッセージを受信すると、端末装置120Aと転送装置130との間のネゴシエーションが終了する。ネゴシエーションが終了すると、端末装置120Aの処理は、ステップ405に進む。 In step 404, when the storage of the attribute information and the transmission conditions is completed, the message transmission unit 302 transmits a response message as shown in FIG. 9 to the terminal device 120A via the connection being connected. For example, the response message 310 includes a request ID “1” and result information “0”. When the terminal device 120A receives this response message, the negotiation between the terminal device 120A and the transfer device 130 ends. When the negotiation is completed, the process of the terminal device 120A proceeds to step 405.
 ステップ405において、端末装置120Aでは、取得部204Aにより撮像装置110から出力された動画データが受信されると、生成部205により、この動画データを用いてストリームが生成される。このストリームの生成は、動画データ全体の受信が完了する前に開始され、動画データが受信されている間に順次行われる。ストリームは、図6に示す複数のセクションにより構成される。そのストリームの各セクションに含まれるSOS、複数のユニット、及びEOSには、付加部109Aにより、このストリームに対応するストリームID「1」がそれぞれ付加される。さらに、ストリームを構成する最後のセクションには、付加部109Aにより、ストリームの最後であることを示すエンドフラグが付加される。このエンドフラグは、データの最後であることを示す最後情報として用いられてもよい。 In step 405, when the moving image data output from the imaging device 110 is received by the acquisition unit 204A in the terminal device 120A, the generation unit 205 generates a stream using the moving image data. The generation of the stream is started before the reception of the entire moving image data is completed, and is sequentially performed while the moving image data is being received. The stream is composed of a plurality of sections shown in FIG. A stream ID “1” corresponding to this stream is added to the SOS, the plurality of units, and the EOS included in each section of the stream by the adding unit 109A. Furthermore, an end flag indicating the end of the stream is added to the last section constituting the stream by the adding unit 109A. This end flag may be used as last information indicating the end of data.
 ステップ406において、データ送信部207Aにより、ストリーミングIDが付加されたストリームが接続中のコネクションを介して転送装置130に順次送信される。このストリームの送信は、動画データ全体の受信が完了する前に開始され、動画データが受信されている間に順次行われる。転送装置130では、データ受信部304にて、端末装置120Aから送信されたストリームが順次受信される。このストリームの送信が終了すると、端末装置120Aはステップ407に進む。 In step 406, the data transmission unit 207A sequentially transmits the stream to which the streaming ID is added to the transfer apparatus 130 via the connected connection. Transmission of this stream is started before the reception of the entire moving image data is completed, and is sequentially performed while the moving image data is being received. In the transfer device 130, the data reception unit 304 sequentially receives the streams transmitted from the terminal device 120A. When the transmission of this stream ends, the terminal device 120A proceeds to step 407.
 ステップ407において、コネクション制御部201Aにより、転送装置130とのコネクションが切断される。ステップ408において、転送装置130では、コネクションの切断に応じて、ストリームテーブル320から、ストリームID「1」及び「2」に対応付けて格納された属性情報及び送信条件が全て削除される。これにより、ストリームテーブル320に格納されたストリームID「1」及び「2」とコネクションとの対応付けが解除され、ストリームテーブル320に格納されたストリームID「1」及び「2」が解放される。この場合、他のコネクションが確立されると、これらのストリームIDは、他のストリームの識別子として使用可能となる。なお、端末装置120によらずにコネクションが切断された場合にも、ステップ408と同様の処理が行われてもよい。 In step 407, the connection control unit 201A disconnects the connection with the transfer apparatus 130. In step 408, the transfer device 130 deletes all the attribute information and transmission conditions stored in association with the stream IDs “1” and “2” from the stream table 320 in response to the disconnection of the connection. As a result, the association between the stream IDs “1” and “2” stored in the stream table 320 and the connection is released, and the stream IDs “1” and “2” stored in the stream table 320 are released. In this case, when other connections are established, these stream IDs can be used as identifiers of other streams. Note that the same processing as in step 408 may be performed even when the connection is disconnected without depending on the terminal device 120.
 なお、ストリームテーブル320に格納された属性情報は、コネクションの接続中に変更されてもよい。この場合、端末装置120Aでは、メッセージ送信部202Aにより、変更対象のストリームIDと変更後の属性情報を含む変更要求メッセージが転送装置130に送信される。ストリームテーブル320は、この変更要求メッセージに応じて更新される。例えばストリームID「1」と変更後の属性情報との組を含む変更要求メッセージが送信された場合、ストリームテーブル320においてストリームID「1」に対応付けられた属性情報が、変更要求に含まれる属性情報に書き換えられる。 Note that the attribute information stored in the stream table 320 may be changed during connection. In this case, in the terminal device 120A, the message transmission unit 202A transmits a change request message including the change target stream ID and the changed attribute information to the transfer device 130. The stream table 320 is updated according to the change request message. For example, when a change request message including a combination of the stream ID “1” and the changed attribute information is transmitted, the attribute information associated with the stream ID “1” in the stream table 320 includes the attribute included in the change request. Rewritten with information.
 また、ストリームテーブル320に格納されたストリームIDは、コネクションの接続中に解放されてもよい。この場合、端末装置120Aでは、メッセージ送信部202Aにより、このストリームIDの解放要求メッセージが転送装置130に送信される。この解放要求メッセージには、図4に示す作成要求メッセージ220と同じフォーマットが用いられてもよい。例えば、ストリームID「1」の解放を要求する場合、このストリームID「1」と送信元ID「0」とを含む解放要求メッセージが送信される。端末装置120から解放要求メッセージが受信されると、ストリームテーブル320からストリームID「1」を含むレコードが削除される。これにより、ストリームID「1」と、再送フラグ「0」、保存フラグ「1」、計測ID「M001」、送信元ID「EAAA」、及び転送先ID「EBBB」との対応付けが解除される。この場合、ストリームID「1」が解放され、他のストリームの識別子として使用可能となる。これにより、多数のストリームが送信される場合であっても、使用可能なストリームIDが尽きるのが防止される。 Further, the stream ID stored in the stream table 320 may be released during connection. In this case, in the terminal device 120A, the message transmitting unit 202A transmits this stream ID release request message to the transfer device 130. The release request message may use the same format as the creation request message 220 shown in FIG. For example, when requesting the release of the stream ID “1”, a release request message including the stream ID “1” and the transmission source ID “0” is transmitted. When the release request message is received from the terminal device 120, the record including the stream ID “1” is deleted from the stream table 320. As a result, the association between the stream ID “1”, the retransmission flag “0”, the storage flag “1”, the measurement ID “M001”, the transmission source ID “EAAA”, and the transfer destination ID “EBBB” is released. . In this case, the stream ID “1” is released and can be used as an identifier of another stream. Thereby, even when a large number of streams are transmitted, it is possible to prevent the available stream IDs from being exhausted.
2‐2.転送処理
 次に、転送装置130が他の端末装置120に動画データを転送する処理について説明する。ここでは、端末装置120Aから送信された動画データが転送装置130から端末装置120Bに転送される例を想定する。なお、以下の説明では、端末装置120Bの構成には符号の末尾に「B」を付して説明する。
2-2. Transfer Process Next, a process in which the transfer device 130 transfers moving image data to another terminal device 120 will be described. Here, it is assumed that the moving image data transmitted from the terminal device 120A is transferred from the transfer device 130 to the terminal device 120B. In the following description, the configuration of the terminal device 120B will be described with “B” appended to the end of the reference numeral.
 図13は、転送処理の一例を示すシーケンスチャートである。端末装置120Bは、動画データを受信する前に、転送装置130とネゴシエーションを行う。 FIG. 13 is a sequence chart showing an example of the transfer process. The terminal device 120B negotiates with the transfer device 130 before receiving the moving image data.
 ステップ501において、端末装置120Bでは、コネクション制御部201Bにより、転送装置130とコネクションが確立される。ステップ502において、端末装置120Bと転送装置130との間でネゴシエーションが行われる。具体的には、メッセージ送信部202Bにより、接続中のコネクションを介して、図5に示すような作成要求メッセージ230が転送装置130に送信される。 In step 501, in the terminal device 120B, the connection control unit 201B establishes a connection with the transfer device 130. In step 502, negotiation is performed between the terminal device 120 </ b> B and the transfer device 130. Specifically, the message transmission unit 202B transmits a creation request message 230 as illustrated in FIG. 5 to the transfer apparatus 130 via the connection being connected.
 例えば、作成要求メッセージ230には、要求ID「2」と、ストリーム数「1」と、ストリームID「3」と、送信元ID「EBBB」と、転送元ID「EAAA」とが含まれる。これは、要求IDが「2」の作成要求メッセージ230には、ストリームIDが「3」の1つのストリームの属性情報が含まれ、このストリームに含まれる動画データの転送元は、端末装置120Aであることを示す。 For example, the creation request message 230 includes a request ID “2”, the number of streams “1”, a stream ID “3”, a transmission source ID “EBBB”, and a transfer source ID “EAAA”. This is because the creation request message 230 with the request ID “2” includes the attribute information of one stream with the stream ID “3”, and the transfer source of the moving image data included in this stream is the terminal device 120A. It shows that there is.
 また、作成要求メッセージ230が送信された後、メッセージ送信部202Bにより、接続中のコネクションを介して、ストリームIDが「3」のストリームに関する情報送信メッセージが転送装置130に送信される。例えば端末装置120BがMPEG-4に対応する場合、情報送信メッセージには、MPEG-4を示す情報が含まれてもよい。例えば表示装置125Bの解像度がR1である場合、情報送信メッセージには解像度R1が含まれてもよい。例えば表示装置125Bが表示可能な最大のフレームレートがF1である場合、情報送信メッセージにはフレームレートF1が含まれてもよい。 In addition, after the creation request message 230 is transmitted, the message transmission unit 202B transmits an information transmission message regarding the stream with the stream ID “3” to the transfer apparatus 130 via the connected connection. For example, when the terminal device 120B supports MPEG-4, the information transmission message may include information indicating MPEG-4. For example, when the resolution of the display device 125B is R1, the information transmission message may include the resolution R1. For example, when the maximum frame rate that can be displayed by the display device 125B is F1, the frame rate F1 may be included in the information transmission message.
 メッセージ受信部301にて情報送信メッセージが受信されると、転送装置130では、決定部303により、情報送信メッセージに含まれる情報に基づいて、ストリームの送信条件が決定される。例えば情報送信メッセージにMPEG-4を示す情報が含まれる場合、MPEG-4という圧縮方式が決定されてもよい。例えば情報送信メッセージに解像度R1が含まれる場合、解像度R1が決定されてもよい。例えば情報送信メッセージにフレームレートF1が含まれる場合、フレームレートF1が決定されてもよい。 When the information transmission message is received by the message reception unit 301, in the transfer device 130, the determination unit 303 determines the transmission condition of the stream based on the information included in the information transmission message. For example, when information indicating MPEG-4 is included in the information transmission message, a compression method called MPEG-4 may be determined. For example, when the information transmission message includes the resolution R1, the resolution R1 may be determined. For example, when the frame rate F1 is included in the information transmission message, the frame rate F1 may be determined.
 ステップ503において、転送装置130では、作成要求メッセージ230に含まれる属性情報及び決定部303により決定された送信条件が、ストリームテーブル320に格納される。例えば、ストリームテーブル320には、図10に示すように、ストリームID「3」と、送信元ID「EBBB」と、転送元ID「EAAA」と、決定部303により決定された送信条件とが対応付けて格納される。なお、再送フラグ、保存フラグ、及び計測IDは、作成要求メッセージ230には含まれないため、格納されない。 In step 503, the transfer apparatus 130 stores the attribute information included in the creation request message 230 and the transmission condition determined by the determination unit 303 in the stream table 320. For example, the stream table 320 corresponds to the stream ID “3”, the transmission source ID “EBBB”, the transfer source ID “EAAA”, and the transmission conditions determined by the determination unit 303, as shown in FIG. Stored with. Note that the retransmission flag, the storage flag, and the measurement ID are not stored because they are not included in the creation request message 230.
 ステップ504において、メッセージ送信部302により、接続中のコネクションを介して端末装置120Bに図9に示す応答メッセージ310が送信される。の例では、応答メッセージ310には、要求ID「2」と、結果情報「0」とが含まれる。端末装置120Bが応答メッセージを受信すると、端末装置120Bと転送装置130との間のネゴシエーションが終了する。ネゴシエーションが終了すると、転送装置130の処理は、図13に示すステップ505に進む。 In step 504, the message transmission unit 302 transmits the response message 310 shown in FIG. 9 to the terminal device 120B via the connection being connected. In the example, the response message 310 includes a request ID “2” and result information “0”. When the terminal device 120B receives the response message, the negotiation between the terminal device 120B and the transfer device 130 ends. When the negotiation is completed, the processing of the transfer device 130 proceeds to step 505 shown in FIG.
 ステップ505において、転送装置130では、データ受信部304にて端末装置120Aからストリームの受信が開始されると、判定部305により、このストリームをリアルタイムで転送するか否かが判定される。具体的には、セクションの先頭に配置されたSOSを受信すると、SOSからストリームID「1」が抽出される。図10に示すように、ストリームテーブル320には、ストリームID「1」と再送フラグ「0」とが対応付けて格納されている。これは、ストリームIDが「1」のストリームをリアルタイムで転送することを示す。したがって、この場合には、ストリームをリアルタイムで転送すると判定される。ストリームをリアルタイムで転送すると判定された場合(ステップ505の判定がYES)、転送装置130の処理は、図13に示すステップ506に進む。 In step 505, in the transfer device 130, when the data reception unit 304 starts receiving the stream from the terminal device 120A, the determination unit 305 determines whether or not to transfer the stream in real time. Specifically, when the SOS placed at the head of the section is received, the stream ID “1” is extracted from the SOS. As shown in FIG. 10, the stream table 320 stores a stream ID “1” and a retransmission flag “0” in association with each other. This indicates that the stream with the stream ID “1” is transferred in real time. Therefore, in this case, it is determined that the stream is transferred in real time. If it is determined that the stream is transferred in real time (YES in step 505), the processing of the transfer device 130 proceeds to step 506 shown in FIG.
 ステップ506において、加工部306により、ストリームテーブル320においてストリームID「3」と対応付けて格納された送信条件に基づいて、受信されたストリームに含まれる動画データが加工される。この動画データの加工は、セクションのEOSが受信される前に開始され、セクションが受信されている間に順次行われる。例えば送信条件にMPEG-4が含まれる場合、動画データはMPEG-4に従って圧縮されてもよい。例えば送信条件に解像度R1が含まれる場合において、動画データの解像度がR1より高いときは、動画データの解像度がR1に変更されてもよい。例えば送信条件にフレームレートF1が含まれる場合において、動画データのフレームレートがF1より高いときは、例えば動画データを間引くことにより、動画データのフレームレートがF1に変更されてもよい。 In step 506, the processing unit 306 processes the moving image data included in the received stream based on the transmission condition stored in the stream table 320 in association with the stream ID “3”. The processing of the moving image data is started before the section EOS is received, and sequentially performed while the section is received. For example, when MPEG-4 is included in the transmission condition, the moving image data may be compressed according to MPEG-4. For example, when the resolution R1 is included in the transmission condition, when the resolution of the moving image data is higher than R1, the resolution of the moving image data may be changed to R1. For example, when the frame rate F1 is included in the transmission condition and the frame rate of the moving image data is higher than F1, the frame rate of the moving image data may be changed to F1, for example, by thinning out the moving image data.
 ステップ507において、データ送信部307により、加工した動画データを含むストリームが端末装置120Bに順次送信される。このストリームの送信は、セクションのEOSが受信される前に開始され、セクションが受信されている間に順次行われる。 In step 507, the data transmission unit 307 sequentially transmits the stream including the processed moving image data to the terminal device 120B. Transmission of this stream is started before the section's EOS is received, and is performed sequentially while the section is being received.
 ステップ508において、転送装置130では、データ受信部304にてセクションのEOSが受信されると、そのセクションに含まれるフレームが複製され、図11に示すデータベース330に格納される。この例では、データベース330には、セクションに含まれる第1フレームから第nフレーム(nは自然数)と、それらのフレームが取得された時刻T1~Tn(nは自然数)とが対応付けて格納される。この時刻T1~Tnは、各フレームに付加されたタイムスタンプにより示される相対的な時間から求められる絶対的な時刻であってもよい。例えば動画の撮影が開始された時刻が12時00分である場合において、第1フレームに付加されたタイムスタンプが12分という経過時間を示すときは、時刻T1は12時12分であってもよい。ステップ508の処理は、セクションの受信が完了する度に行われる。そして、ストリームに含まれる最後のセクションに付加されたエンドフラグが受信されると、判定部305により、ストリームの受信が完了したと判定される。この場合、データベース330には、図11に示すように、完了フラグとして「1」が格納される。 In step 508, when the data receiving unit 304 receives the EOS of the section in the transfer device 130, the frame included in the section is duplicated and stored in the database 330 shown in FIG. In this example, the database 330 stores the first to nth frames (n is a natural number) included in a section and the times T1 to Tn (n is a natural number) at which these frames are acquired in association with each other. The These times T1 to Tn may be absolute times obtained from the relative time indicated by the time stamp added to each frame. For example, in the case where the video recording start time is 12:00, when the time stamp added to the first frame indicates an elapsed time of 12 minutes, the time T1 is 12:12 Good. The processing in step 508 is performed every time reception of the section is completed. When the end flag added to the last section included in the stream is received, the determination unit 305 determines that reception of the stream is completed. In this case, “1” is stored in the database 330 as a completion flag as shown in FIG.
 図13に戻り、ステップ509において、端末装置120Bでは、データ受信部209Bにてストリームが受信されると、処理部210Bにより、このストリームに含まれる動画データに応じた動画が表示装置125Bに表示される。この動画の表示は、ストリーム全体の受信が完了する前に開始され、ストリームが受信されている間に順次行われる。なお、動画データがMPEG-4に従って圧縮されている場合、動画データはMPEG-4に従って復号された後に用いられる。これにより、端末装置120Bのユーザは、動画を閲覧することができる。なお、ストリームの受信が完了すると、端末装置120Bにおいても、上述したステップ407及び408と同様の処理が行われてもよい。 Returning to FIG. 13, in step 509, when the terminal 120B receives the stream at the data receiving unit 209B, the processing unit 210B displays the moving image according to the moving image data included in the stream on the display device 125B. The This moving image display is started before reception of the entire stream is completed, and is sequentially performed while the stream is being received. When the moving image data is compressed according to MPEG-4, the moving image data is used after being decoded according to MPEG-4. Thereby, the user of the terminal device 120B can browse the moving image. When the reception of the stream is completed, the terminal device 120B may perform the same processing as in steps 407 and 408 described above.
 一方、上述したステップ505において、例えばセクションの先頭に配置されたSOSに含まれるストリームIDが、ストリームテーブル320において再送フラグ「1」と対応付けられている場合、判定部305により、ストリームをリアルタイムで転送しないと判定される(ステップ505の判定がNO)。この場合、転送装置130の処理は、上述したステップ506及び507の処理を行わずに、ステップ508に進む。すなわち、この場合には、動画データはリアルタイムで転送されない。ただし、動画データがデータベース330に格納された後、端末装置120Bから動画データの送信が要求された場合には、この要求に応じて、上述したステップ506及び507の処理が行われてもよい。この場合、動画データは非リアルタイムで端末装置120Bに転送される。 On the other hand, when the stream ID included in the SOS placed at the head of the section is associated with the retransmission flag “1” in the stream table 320 in step 505 described above, for example, the determination unit 305 causes the stream to be transmitted in real time. It is determined not to transfer (NO in step 505). In this case, the processing of the transfer device 130 proceeds to step 508 without performing the processing of steps 506 and 507 described above. That is, in this case, the moving image data is not transferred in real time. However, when the terminal device 120B requests transmission of moving image data after the moving image data is stored in the database 330, the above-described processing in steps 506 and 507 may be performed in response to this request. In this case, the moving image data is transferred to the terminal device 120B in non-real time.
2‐3.再送処理
 上述した送信処理において、セクションに欠損がある場合、再送処理が行われてもよい。
2-3. Retransmission process In the transmission process described above, if there is a missing section, a retransmission process may be performed.
 図14は、再送処理の一例を示すシーケンスチャートである。この再送処理は、例えば転送装置130において端末装置120Aから送信されたセクションの受信が完了する度に行われてもよい。 FIG. 14 is a sequence chart showing an example of retransmission processing. This retransmission processing may be performed every time reception of the section transmitted from the terminal device 120A is completed in the transfer device 130, for example.
 ステップ601において、転送装置130では、再送要求部308により、データ受信部304にて受信されたセクションに含まれるユニットの数が計数される。ステップ602において、再送要求部308により、計数されたユニットの数と、受信されたセクションのEOSに含まれるユニットカウントにより示されるユニットの数との差に基づいて、セクションに欠損があるか否かが判定される。これらのユニットの数が一致する場合、セクションに欠損がないと判定される(ステップ602の判定がNO)。この場合、転送装置130から端末装置120Aに例えばACK(acknowledgement)メッセージが送信された後、この処理が終了する。このACKメッセージには、受信したセクションに含まれるSOSとEOSとが含まれてもよい。一方、これらのユニットの数が異なる場合、セクションに欠損があると判定される(ステップ602の判定がYES)。この場合、転送装置130の処理はステップ603に進む。
In step 601, in the transfer apparatus 130, the number of units included in the section received by the data reception unit 304 is counted by the retransmission request unit 308. In step 602, based on the difference between the number of units counted by the retransmission request unit 308 and the number of units indicated by the unit count included in the EOS of the received section, whether or not there is a missing section. Is determined. If the numbers of these units match, it is determined that there is no missing section (NO in step 602). In this case, for example, an ACK (acknowledgement) message is transmitted from the transfer apparatus 130 to the terminal apparatus 120A, and then this process ends. This ACK message may include SOS and EOS included in the received section. On the other hand, if the number of these units is different, it is determined that there is a section defect (YES in step 602). In this case, the processing of the transfer device 130 proceeds to step 603.
 ステップ603において、メッセージ送信部302により、欠損したセクションの再送を要求するメッセージ(以下、「再送要求メッセージ」という。)が端末装置120Aに送信される。この再送要求メッセージには、例えば欠損したセクションを識別する情報が含まれてもよい。ステップ604において、端末装置120Aでは、再送要求メッセージが受信されると、データ再送部208Aにより、要求されたセクションを含むストリームが転送装置130に送信される。このセクションは、再送されたものであるため、このセクションに含まれるSOS、複数のユニット、EOSには、例えばストリームID「2」がそれぞれ付加される。 In step 603, the message transmission unit 302 transmits a message requesting retransmission of the missing section (hereinafter referred to as “retransmission request message”) to the terminal device 120A. The retransmission request message may include information for identifying a missing section, for example. In step 604, when the terminal apparatus 120A receives the retransmission request message, the data retransmission unit 208A transmits a stream including the requested section to the transfer apparatus 130. Since this section is retransmitted, for example, a stream ID “2” is added to the SOS, the plurality of units, and the EOS included in this section, respectively.
 端末装置120Aからストリームを受信すると、転送装置130の処理は、図13に示すステップ505に進む。この場合、ストリームに含まれる再送されたセクションのSOSには、例えばストリームID「2」が含まれる。図10に示すように、ストリームテーブル320には、ストリームID「2」と再送フラグ「1」とが対応付けて格納されている。これは、ストリームIDが「2」のストリームは、リアルタイムで転送されないことを示す。したがって、この場合には、判定部305により、ストリームをリアルタイムで転送しないと判定される(ステップ505の判定がNO)。この場合、転送装置130の処理は、上述したステップ508に進む。ステップ508において、補完部309により、再送されたセクションに含まれるフレームがデータベース330に格納される。例えば再送されたセクションに第1フレームが含まれる場合、データベース330に格納された第1フレームが新たに受信された第1フレームにより上書き保存されてもよい。これにより、欠損したセクションが補完される。 When the stream is received from the terminal device 120A, the processing of the transfer device 130 proceeds to step 505 shown in FIG. In this case, for example, the stream ID “2” is included in the SOS of the retransmitted section included in the stream. As illustrated in FIG. 10, the stream table 320 stores a stream ID “2” and a retransmission flag “1” in association with each other. This indicates that the stream with the stream ID “2” is not transferred in real time. Therefore, in this case, the determination unit 305 determines not to transfer the stream in real time (NO in step 505). In this case, the processing of the transfer device 130 proceeds to step 508 described above. In step 508, the frame included in the retransmitted section is stored in the database 330 by the complementing unit 309. For example, when the first frame is included in the retransmitted section, the first frame stored in the database 330 may be overwritten by the newly received first frame. This complements the missing section.
 以上説明した実施形態によれば、端末装置120Aから転送装置130に送信された動画データが、転送装置130と端末装置120Bとのネゴシエーションにより決定された送信条件に応じて加工されてから、端末装置120Bに送信される。そのため、転送装置130が受信した動画データが端末装置120Bの要求に合わない場合でも、この要求に応じた動画データを端末装置120Bに提供することができる。また、転送装置130では、端末装置120AからセクションのSOSを受信したことに応じて動画データの転送が開始されるため、セクション全体の受信が完了した後に動画データの転送が開始される場合に比べて、動画データの転送の遅延が少なくなる。 According to the embodiment described above, the moving image data transmitted from the terminal device 120A to the transfer device 130 is processed according to the transmission condition determined by the negotiation between the transfer device 130 and the terminal device 120B, and then the terminal device. 120B. Therefore, even when the moving image data received by the transfer device 130 does not meet the request of the terminal device 120B, the moving image data according to the request can be provided to the terminal device 120B. In addition, since the transfer device 130 starts to transfer the moving image data in response to receiving the SOS of the section from the terminal device 120A, compared to the case where the transfer of the moving image data is started after reception of the entire section is completed. Thus, the transfer delay of moving image data is reduced.
3.変形例
 本発明は、上述した実施形態に限定されない。上述した実施形態を以下のように変形してもよい。また、以下の2つ以上の変形例を組み合わせて実施してもよい。
3. The present invention is not limited to the above-described embodiment. The embodiment described above may be modified as follows. Moreover, you may implement combining the following two or more modifications.
 上述した実施形態において、端末装置120Aには複数の撮像装置110が接続されていてもよい。この場合において、端末装置120Bを転送先とする複数の動画データがあるときは、送信条件には、端末装置120Bが要求する動画データを識別する情報が含まれてもよい。例えば端末装置120Bを転送先とする第1動画データから第10動画データがある場合において、端末装置120Bが第1動画データ及び第3動画データだけを使用するときは、送信条件には、第1動画データ及び第3動画データを識別する情報が含まれてもよい。この場合、データ送信部307は、第1動画データから第10動画データのうち、第1動画データ及び第3動画データだけを端末装置120Bに送信してもよい。 In the embodiment described above, a plurality of imaging devices 110 may be connected to the terminal device 120A. In this case, when there are a plurality of moving image data having the terminal device 120B as a transfer destination, the transmission condition may include information for identifying the moving image data requested by the terminal device 120B. For example, when there is first to tenth moving image data from the first moving image data with the terminal device 120B as the transfer destination, when the terminal device 120B uses only the first moving image data and the third moving image data, the transmission condition includes the first Information for identifying the moving image data and the third moving image data may be included. In this case, the data transmission unit 307 may transmit only the first moving image data and the third moving image data among the first moving image data to the tenth moving image data to the terminal device 120B.
 上述した実施形態において、複数のデータが並行して転送されてもよい。例えば端末装置120Aに撮像装置110と計測装置とが接続されている場合、撮像装置110から出力された動画データと計測装置から出力された計測データとが並行して転送されてもよい。この計測データには、時系列に沿って計測された複数の計測値が含まれる。この場合、端末装置120Bは動画データ及び計測データを受信すると、これらのデータを同一の時間軸に沿って出力してもよい。 In the embodiment described above, a plurality of data may be transferred in parallel. For example, when the imaging device 110 and the measurement device are connected to the terminal device 120A, the moving image data output from the imaging device 110 and the measurement data output from the measurement device may be transferred in parallel. The measurement data includes a plurality of measurement values measured along the time series. In this case, when receiving the moving image data and the measurement data, the terminal device 120B may output these data along the same time axis.
 図15は、動画データと計測データの出力例を示す図である。この例では、端末装置120Bの表示装置125B上に、動画データに応じた動画と、計測データに応じた計測値とが、同一の時間軸に沿って並べて表示される。このとき、同一の時刻に対応する動画と計測値とが同時に表示される。例えば時刻T10に撮影された動画と、時刻T10に計測された計測値とが同時に表示される。これにより、端末装置120Bのユーザは、或る時刻に撮影された動画とその時刻に計測された計測値とを合わせて閲覧することができる。 FIG. 15 is a diagram showing an output example of moving image data and measurement data. In this example, a moving image corresponding to moving image data and a measured value corresponding to measurement data are displayed side by side along the same time axis on the display device 125B of the terminal device 120B. At this time, a moving image and a measured value corresponding to the same time are displayed simultaneously. For example, a moving image shot at time T10 and a measured value measured at time T10 are displayed simultaneously. Thereby, the user of the terminal device 120 </ b> B can browse the moving image shot at a certain time and the measured value measured at the time.
 上述した実施形態において、表示装置125は、例えばユーザの操作により指定された時間スケールでデータを表示してもよい。ここでは、データには、時系列に沿って計測された複数の計測値が含まれるものとする。例えば1秒間隔の時間スケールが指定された場合、表示装置125には、1秒間隔で計測値が表示されてもよい。また、この場合、送信条件には、指定された時間スケールが含まれてもよい。この場合、加工部306は、指定された時間スケールに応じてデータを間引いてもよい。例えば時間スケールが1秒間隔である場合には、1秒間に1つの計測値だけが含まれるように、データが間引かれてもよい。これにより、受信側の端末装置120において不要なデータが送信されるのを防ぐことができる。 In the above-described embodiment, the display device 125 may display data on a time scale specified by a user operation, for example. Here, it is assumed that the data includes a plurality of measurement values measured along the time series. For example, when a time scale of 1 second intervals is designated, the measurement values may be displayed on the display device 125 at 1 second intervals. In this case, the transmission condition may include a designated time scale. In this case, the processing unit 306 may thin out data according to a designated time scale. For example, when the time scale is 1 second, data may be thinned out so that only one measurement value is included in one second. Thereby, it is possible to prevent unnecessary data from being transmitted in the terminal device 120 on the receiving side.
 上述した実施形態では、処理部210はデータを表示する処理を行っていたが、処理部210が行う処理はデータの表示に限定されない。例えば処理部210は、データを用いて他の装置を制御又は操作する処理を行ってもよい。 In the above-described embodiment, the processing unit 210 performs processing for displaying data, but the processing performed by the processing unit 210 is not limited to data display. For example, the processing unit 210 may perform processing for controlling or operating another device using data.
 上述した実施形態において、加工部306は、データがデータベース330に格納される前に、データを加工してもよい。この場合、データベース330には、加工されたデータが格納される。 In the embodiment described above, the processing unit 306 may process the data before the data is stored in the database 330. In this case, the database 330 stores processed data.
 上述した実施形態において、送信条件に含まれる情報は、端末装置120が対応する圧縮方式、表示装置125が対応する解像度、表示装置125が対応するフレームレートに限定されない。例えば送信条件には、端末装置120が対応するビットレートや表示装置125が対応する画像サイズが含まれてもよい。 In the above-described embodiment, the information included in the transmission condition is not limited to the compression method supported by the terminal device 120, the resolution supported by the display device 125, and the frame rate supported by the display device 125. For example, the transmission condition may include a bit rate supported by the terminal device 120 and an image size supported by the display device 125.
 上述した実施形態において、情報送信メッセージには、転送装置130と端末装置120Bとの間の通信の状況を示す情報が含まれてもよい。この通信の状況には、通信の種別、通信方式、通信帯域、又は通信速度が含まれてもよい。この場合、加工部306は、この通信の状況に応じて、データを間引いてもよい。例えば現状の通信帯域が所定の帯域よりも小さい場合には、現状の通信帯域に応じてデータが間引かれてもよい。これにより、通信帯域が小さい場合でも、データの転送の遅延が少なくなる。 In the above-described embodiment, the information transmission message may include information indicating the status of communication between the transfer device 130 and the terminal device 120B. The communication status may include a communication type, a communication method, a communication band, or a communication speed. In this case, the processing unit 306 may thin out the data according to the communication status. For example, when the current communication band is smaller than a predetermined band, data may be thinned out according to the current communication band. Thereby, even when the communication band is small, the data transfer delay is reduced.
 上述した実施形態において、転送装置130は、端末装置120Aから受信した送信条件が、決定部303により決定された送信条件と合わない場合には、端末装置120Bにエラーメッセージを送信してもよい。例えば撮像装置110の解像度が、端末装置120Bの表示装置125Bの解像度より低い場合には、決定部303により決定された送信条件を満たすことができないため、端末装置120Bにエラーメッセージが送信されてもよい。 In the above-described embodiment, the transfer device 130 may transmit an error message to the terminal device 120B when the transmission condition received from the terminal device 120A does not match the transmission condition determined by the determination unit 303. For example, when the resolution of the imaging device 110 is lower than the resolution of the display device 125B of the terminal device 120B, the transmission condition determined by the determination unit 303 cannot be satisfied, and therefore an error message is transmitted to the terminal device 120B. Good.
 上述した実施形態において、転送システム100において用いられるデータは、動画データに限定されない。例えばセンサから出力されたセンサデータが用いられてもよい。このセンサは、センシング対象から検出量を検出し、検出した検出量を示すセンサデータを出力する。このセンサには、上述した撮像装置110の他、例えばセンシング対象が車である場合、センサには、エンジンの回転数を計測する回転計、車の速度を計測する速度計、ステアリングの角度を計測する角度計、燃料噴射量計、温度計、及び車の位置を測定するGPS(Global Positioning System)等の車に設けられた各種の計測機器が用いられてもよい。 In the above-described embodiment, data used in the transfer system 100 is not limited to moving image data. For example, sensor data output from the sensor may be used. This sensor detects a detection amount from the sensing target, and outputs sensor data indicating the detected detection amount. In this sensor, in addition to the imaging device 110 described above, for example, when the sensing target is a car, the sensor includes a tachometer that measures the number of revolutions of the engine, a speedometer that measures the speed of the car, and a steering angle. Various measuring devices provided in the vehicle such as an angle meter, a fuel injection amount meter, a thermometer, and a GPS (Global Positioning System) that measures the position of the vehicle may be used.
 上述した実施形態において、図11に示すように、データベース330の完了フラグが「1」になった場合、データ送信部307は、データベース330に格納されている全てのデータを所定の処理部に送信してもよい。この所定の処理部は、例えばデータを用いて解析処理やバッチ処理等の予め定められた後段階の処理を行ってもよい。 In the above-described embodiment, as illustrated in FIG. 11, when the completion flag of the database 330 is “1”, the data transmission unit 307 transmits all the data stored in the database 330 to a predetermined processing unit. May be. The predetermined processing unit may perform predetermined later-stage processing such as analysis processing and batch processing using data, for example.
 上述した実施形態において、各セクションに時系列に沿った通し番号が付されている場合、データベース330には、時刻を示す情報に代えて、この番号が格納されてもよい。 In the above-described embodiment, when serial numbers are assigned to each section in chronological order, this number may be stored in the database 330 instead of the information indicating the time.
 上述した実施形態では、SOSにストリームIDが含まれていたが、SOSに再送フラグそのものが含まれてもよい。 In the above-described embodiment, the stream ID is included in the SOS, but the retransmission flag itself may be included in the SOS.
 上述した実施形態において、各セクションの長さは、任意の長さであってもよい。さらに、各セクションに含まれるユニットの数は必ずしも同じである必要はない。一つのセクションに含まれるユニットの数は、セクション毎に変化してもよい。 In the embodiment described above, the length of each section may be an arbitrary length. Furthermore, the number of units included in each section need not necessarily be the same. The number of units included in one section may vary from section to section.
 上述した実施形態において、ストリームIDは、ストリームの各セクションに含まれるSOS、複数のユニット、及びEOSの一部だけに付加されてもよい。例えばストリームIDは、SOSだけに付加されてもよいし、EOSだけに付加されてもよい。これにより、データの属性に関するデータ量をさらに削減することができる。 In the embodiment described above, the stream ID may be added to only a part of the SOS, the plurality of units, and the EOS included in each section of the stream. For example, the stream ID may be added only to the SOS, or may be added only to the EOS. Thereby, the data amount regarding the attribute of data can further be reduced.
 上述した実施形態において、ストリームは必ずしも複数のセクションにより構成される必要はない。例えばストリームには、複数のユニットだけが含まれてもよい。また、この場合、ストリームには、SOS及びEOSが含まれる必要はない。 In the embodiment described above, the stream does not necessarily have to be composed of a plurality of sections. For example, a stream may include only a plurality of units. In this case, the stream does not need to include SOS and EOS.
 上述した実施形態において、端末装置120が転送装置130に送信するデータは、必ずしも外部装置から出力されたデータに限定されない。例えば、このデータは、端末装置120により生成されたデータであってもよい。 In the embodiment described above, the data transmitted from the terminal device 120 to the transfer device 130 is not necessarily limited to data output from an external device. For example, this data may be data generated by the terminal device 120.
 転送システム100において行われる処理のステップは、上述した実施形態で説明した例に限定されない。この処理のステップは、矛盾のない限り、入れ替えられてもよい。本発明は、転送システム100又は転送装置130において行われる処理のステップを備える転送方法として提供されてもよい。 The steps of processing performed in the transfer system 100 are not limited to the example described in the above-described embodiment. The steps of this process may be interchanged as long as there is no contradiction. The present invention may be provided as a transfer method including steps of processing performed in the transfer system 100 or the transfer apparatus 130.
 本発明は、端末装置120又は転送装置130において実行されるプログラムとして提供されてもよい。このプログラムは、インターネットなどの通信回線を介してダウンロードされてもよい。また、これらのプログラムは、磁気記録媒体(磁気テープ、磁気ディスクなど)、光記録媒体(光ディスクなど)、光磁気記録媒体、半導体メモリなどの、コンピュータが読取可能な記録媒体に記録した状態で提供されてもよい。 The present invention may be provided as a program executed in the terminal device 120 or the transfer device 130. This program may be downloaded via a communication line such as the Internet. These programs are provided in a state where they are recorded on a computer-readable recording medium such as a magnetic recording medium (magnetic tape, magnetic disk, etc.), an optical recording medium (optical disk, etc.), a magneto-optical recording medium, or a semiconductor memory. May be.
 本明細書において使用される「第1」、「第2」という用語は、ある要素を別の要素と区別するためにのみ使用されるものであり、要素の量または順序を限定するものではない。したがって、これらの用語は、例えば数字を入れ替えて用いられてもよい。 As used herein, the terms “first” and “second” are used only to distinguish one element from another, and do not limit the amount or order of the elements. . Therefore, these terms may be used, for example, by exchanging numbers.
100:転送システム、110:撮像装置、120:端末装置、130:転送装置、201:コネクション制御部、202:メッセージ送信部、203:メッセージ受信部、204:取得部、205:生成部、206:付加部、207:データ送信部、208:データ再送部、209:データ受信部、210:処理部、301:メッセージ受信部、302:メッセージ送信部、303:決定部、304:データ受信部、305:判定部、306:加工部、307:データ送信部、308:再送要求部、309:補完部 100: transfer system 110: imaging device 120: terminal device 130: transfer device 201: connection control unit 202: message transmission unit 203: message reception unit 204: acquisition unit 205: generation unit 206: Addition unit, 207: Data transmission unit, 208: Data retransmission unit, 209: Data reception unit, 210: Processing unit, 301: Message reception unit, 302: Message transmission unit, 303: Determination unit, 304: Data reception unit, 305 : Determination unit, 306: processing unit, 307: data transmission unit, 308: retransmission request unit, 309: complementing unit

Claims (13)

  1.  送信装置から時系列に沿ったデータを受信する受信部と、
     受信装置と情報をやり取りすることにより前記データの送信条件を決定する決定部と、
     前記決定部により決定された前記送信条件に応じて、前記データを加工する加工部と、
     前記データをリアルタイムで転送する場合には、前記加工部により加工された前記データを前記受信装置に送信する送信部と、
     前記データを前記リアルタイムで転送しない場合には、前記データを前記時系列に沿って記憶する記憶部と
     を備える転送装置。
    A receiving unit for receiving data in time series from the transmitting device;
    A determination unit that determines a transmission condition of the data by exchanging information with a receiving device;
    A processing unit that processes the data according to the transmission condition determined by the determination unit;
    When transferring the data in real time, a transmission unit that transmits the data processed by the processing unit to the receiving device;
    And a storage unit that stores the data along the time series when the data is not transferred in real time.
  2.  前記記憶部は、前記データを前記リアルタイムで転送する場合には、前記データが前記受信装置に送信された後、前記データの複製を記憶する
     請求項1に記載の転送装置。
    The transfer device according to claim 1, wherein when the data is transferred in real time, the storage unit stores a copy of the data after the data is transmitted to the receiving device.
  3.  前記データの先頭には、前記データをリアルタイムで転送するか否かを示すリアルタイム情報が付加され、
     前記受信部により前記データの前記先頭が受信されると、前記リアルタイム情報に基づいて前記データを前記リアルタイムで転送するか否かを判定する判定部をさらに備え、
     前記加工部は、前記判定部により前記データを前記リアルタイムで転送すると判定された場合には、前記データの受信が完了する前に、前記受信されたデータの加工を開始し、前記受信されたデータを順次加工し、
     前記送信部は、前記判定部により前記データを前記リアルタイムで転送すると判定された場合には、前記データの受信が完了する前に、前記加工されたデータの送信を開始し、前記加工されたデータを順次送信する
     請求項1又は2に記載の転送装置。
    Real time information indicating whether or not to transfer the data in real time is added to the top of the data,
    When the head of the data is received by the receiving unit, further comprising a determination unit for determining whether to transfer the data in real time based on the real time information,
    When the determination unit determines that the data is to be transferred in real time, the processing unit starts processing the received data before the reception of the data is completed, and the received data Are processed sequentially,
    The transmission unit starts transmission of the processed data before the reception of the data is completed when the determination unit determines to transfer the data in real time, and the processed data The transfer device according to claim 1 or 2, wherein
  4.  前記記憶部は、前記リアルタイム情報と、前記データの識別子とを対応付けて記憶し、
     前記データの前記先頭には、前記リアルタイム情報に代えて前記識別子が付加され、
     前記判定部は、前記データの前記先頭に付加された前記識別子と対応付けて前記記憶部に記憶された前記リアルタイム情報に基づいて、前記データを前記リアルタイムで転送するか否かを判定する
     請求項3に記載の転送装置。
    The storage unit stores the real-time information and the data identifier in association with each other,
    The identifier is added to the head of the data instead of the real-time information,
    The determination unit determines whether or not to transfer the data in real time based on the real-time information stored in the storage unit in association with the identifier added to the head of the data. 4. The transfer device according to 3.
  5.  前記データは、動画を示す動画データであり、
     前記受信装置は、前記動画データにより示される前記動画を表示する表示装置を有し、
     前記情報は、前記表示装置が対応する解像度又はフレームレートを含み、
     前記加工部は、前記解像度又は前記フレームレートに応じて、前記動画データの解像度又はフレームレートを変更する
     請求項1から4のいずれか1項に記載の転送装置。
    The data is video data indicating a video,
    The receiving device has a display device that displays the moving image indicated by the moving image data,
    The information includes a resolution or a frame rate corresponding to the display device,
    The transfer device according to claim 1, wherein the processing unit changes a resolution or a frame rate of the moving image data according to the resolution or the frame rate.
  6.  前記受信装置は、前記データを指定された時間スケールで表示する表示装置を有し、
     前記情報は、前記時間スケールを含み、
     前記加工部は、前記時間スケールに応じて、前記データを間引く
     請求項1から5のいずれか1項に記載の転送装置。
    The receiving device has a display device that displays the data on a specified time scale,
    The information includes the time scale;
    The transfer device according to claim 1, wherein the processing unit thins out the data according to the time scale.
  7.  前記情報は、前記受信装置との間の通信の状況を含み、
     前記加工部は、前記通信の状況に応じて、前記データを間引く
     請求項1から6のいずれか1項に記載の転送装置。
    The information includes a status of communication with the receiving device,
    The transfer device according to claim 1, wherein the processing unit thins out the data in accordance with the communication status.
  8.  前記送信装置から送信された前記データの最後には、前記最後であることを示す最後情報が付加され、
     前記最後情報が受信されると、前記データの受信が完了したと判定する判定部をさらに備え、
     前記送信部は、前記判定部により前記データの受信が完了したと判定されると、前記記憶部に記憶された前記データを所定の処理部に送信する
     請求項1から7のいずれか1項に記載の転送装置。
    At the end of the data transmitted from the transmission device, last information indicating the end is added,
    When the last information is received, further comprising a determination unit that determines that the reception of the data is completed,
    The transmission unit transmits the data stored in the storage unit to a predetermined processing unit when the determination unit determines that the reception of the data is completed. The transfer device described.
  9.  前記送信装置により送信された前記データは、センサにより検出された複数の検出量のうち少なくとも1つをそれぞれ含む複数のデータブロックにより構成され、前記複数のデータブロックの各々には、当該データブロックに含まれる前記少なくとも1つの検出量の数を示す数情報が付加され、
     前記データブロックに含まれる前記少なくとも1つの検出量の数と、前記データブロックに付加された前記数情報により示される前記数との差に応じて、前記データブロックが欠損しているか否かを判定する判定部と、
     前記判定部により前記データブロックが欠損していると判定された場合には、前記送信装置に、前記欠損したデータブロックの再送を要求する再送要求部と、
     前記再送要求部の要求に応じて前記送信装置から再送された前記データブロックを用いて、前記欠損したデータブロックを補完する補完部とをさらに備える
     請求項1から8のいずれか1項に記載の転送装置。
    The data transmitted by the transmission device includes a plurality of data blocks each including at least one of a plurality of detection amounts detected by a sensor, and each of the plurality of data blocks includes a data block. Number information indicating the number of the at least one detection amount included is added,
    It is determined whether or not the data block is missing according to a difference between the number of the at least one detection amount included in the data block and the number indicated by the number information added to the data block. A determination unit to perform,
    When the determination unit determines that the data block is missing, a retransmission request unit that requests the transmission device to retransmit the missing data block;
    The supplementary part which complements the said missing data block using the said data block retransmitted from the said transmission apparatus according to the request | requirement of the said resending request part is further provided. Transfer device.
  10.  転送装置と送信装置と受信装置とを備え、
     前記転送装置は、
     前記送信装置から時系列に沿ったデータを受信する第1受信部と、
     前記受信装置と情報をやり取りすることにより前記データの送信条件を決定する決定部と、
     前記決定部により決定された前記送信条件に応じて、前記データを加工する加工部と、
     前記データをリアルタイムで転送する場合には、前記加工部により加工された前記データを前記受信装置に送信する第1送信部と、
     前記データを前記リアルタイムで転送しない場合には、前記データを前記時系列に沿って記憶する記憶部とを有し、
     前記送信装置は、
     前記データを取得する取得部と、
     前記取得部により取得された前記データを前記転送装置に送信する第2送信部とを有し、
     前記受信装置は、
     前記情報を前記転送装置に送信する第3送信部と、
     前記転送装置から送信された前記データを受信する第2受信部と、
     前記第2受信部により受信された前記データを用いて処理を行う処理部とを有する
     転送システム。
    A transfer device, a transmission device, and a reception device;
    The transfer device is
    A first receiver for receiving data in time series from the transmitter;
    A determining unit that determines a transmission condition of the data by exchanging information with the receiving device;
    A processing unit that processes the data according to the transmission condition determined by the determination unit;
    When transferring the data in real time, a first transmission unit that transmits the data processed by the processing unit to the receiving device;
    In the case where the data is not transferred in real time, the storage unit stores the data along the time series,
    The transmitter is
    An acquisition unit for acquiring the data;
    A second transmission unit that transmits the data acquired by the acquisition unit to the transfer device;
    The receiving device is:
    A third transmitter for transmitting the information to the transfer device;
    A second receiver for receiving the data transmitted from the transfer device;
    And a processing unit that performs processing using the data received by the second receiving unit.
  11.  前記データは、撮像装置により撮影された動画を示す動画データと、計測装置から出力された計測データとを含み、
     前記処理部は、前記動画データと前記計測データとを、同一の時間軸に沿って出力する
     請求項10に記載の転送システム。
    The data includes moving image data indicating a moving image taken by the imaging device, and measurement data output from the measurement device,
    The transfer system according to claim 10, wherein the processing unit outputs the moving image data and the measurement data along the same time axis.
  12.  送信装置から時系列に沿ったデータを受信するステップと、
     受信装置と情報をやり取りすることにより前記データの送信条件を決定するステップと、
     前記決定された送信条件に応じて、前記データを加工するステップと、
     前記データをリアルタイムで転送する場合には、前記加工されたデータを前記受信装置に送信するステップと、
     前記データを前記リアルタイムで転送しない場合には、前記データを前記時系列に沿って記憶するステップと
     を備える転送方法。
    Receiving data in time series from the transmitting device;
    Determining transmission conditions for the data by exchanging information with a receiving device;
    Processing the data according to the determined transmission conditions;
    When transferring the data in real time, transmitting the processed data to the receiving device;
    And a step of storing the data along the time series when the data is not transferred in real time.
  13.  コンピュータに、
     送信装置から時系列に沿ったデータを受信するステップと、
     受信装置と情報をやり取りすることにより前記データの送信条件を決定するステップと、
     前記決定された送信条件に応じて、前記データを加工するステップと、
     前記データをリアルタイムで転送する場合には、前記加工されたデータを前記受信装置に送信するステップと、
     前記データを前記リアルタイムで転送しない場合には、前記データを前記時系列に沿って記憶するステップと
     を実行させるためのプログラム。
    On the computer,
    Receiving data in time series from the transmitting device;
    Determining transmission conditions for the data by exchanging information with a receiving device;
    Processing the data according to the determined transmission conditions;
    When transferring the data in real time, transmitting the processed data to the receiving device;
    A program for executing the step of storing the data along the time series when the data is not transferred in real time.
PCT/JP2018/016859 2018-04-25 2018-04-25 Transfer device, transfer system, transfer method, and program WO2019207695A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/016859 WO2019207695A1 (en) 2018-04-25 2018-04-25 Transfer device, transfer system, transfer method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/016859 WO2019207695A1 (en) 2018-04-25 2018-04-25 Transfer device, transfer system, transfer method, and program

Publications (1)

Publication Number Publication Date
WO2019207695A1 true WO2019207695A1 (en) 2019-10-31

Family

ID=68293864

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/016859 WO2019207695A1 (en) 2018-04-25 2018-04-25 Transfer device, transfer system, transfer method, and program

Country Status (1)

Country Link
WO (1) WO2019207695A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1055374A (en) * 1996-08-12 1998-02-24 Mitsubishi Heavy Ind Ltd Data repeating device
JP2004336105A (en) * 2003-04-30 2004-11-25 I-O Data Device Inc Picture photographing device, picture recording device and picture recording method
JP2005057632A (en) * 2003-08-07 2005-03-03 Nippon Telegr & Teleph Corp <Ntt> Stream generating method and apparatus
JP2011176490A (en) * 2010-02-23 2011-09-08 Fujitsu Ltd Image distribution system, relay unit, and image distribution program
JP2014233062A (en) * 2013-05-29 2014-12-11 株式会社Y・S・Y・エンタープライズ Live/recorded video conversion/distribution system for multi devices
JP2017046270A (en) * 2015-08-28 2017-03-02 株式会社Ihi Relay server, relay method and relay program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1055374A (en) * 1996-08-12 1998-02-24 Mitsubishi Heavy Ind Ltd Data repeating device
JP2004336105A (en) * 2003-04-30 2004-11-25 I-O Data Device Inc Picture photographing device, picture recording device and picture recording method
JP2005057632A (en) * 2003-08-07 2005-03-03 Nippon Telegr & Teleph Corp <Ntt> Stream generating method and apparatus
JP2011176490A (en) * 2010-02-23 2011-09-08 Fujitsu Ltd Image distribution system, relay unit, and image distribution program
JP2014233062A (en) * 2013-05-29 2014-12-11 株式会社Y・S・Y・エンタープライズ Live/recorded video conversion/distribution system for multi devices
JP2017046270A (en) * 2015-08-28 2017-03-02 株式会社Ihi Relay server, relay method and relay program

Similar Documents

Publication Publication Date Title
US7783700B2 (en) Server apparatus, screen sharing method and computer readable medium
TWI430095B (en) A video supply system, an image supply device, a video display device, and a computer-readable recording medium
CN105450785B (en) File transmission method and device
US20030007785A1 (en) Network storage type video camera system
US7957269B2 (en) Method and system for synchronization of packet
US11032584B2 (en) Picture storage method, apparatus and video monitoring system
CN110830460B (en) Connection establishing method and device, electronic equipment and storage medium
US8811180B2 (en) Communication apparatus and communication method
US9219795B2 (en) Moving picture file transmitting server and method of controlling operation of same
WO2019207695A1 (en) Transfer device, transfer system, transfer method, and program
JP5573167B2 (en) Content sharing system, content sharing method and program
US20040236785A1 (en) Method and system for transmitting a digital image over a communication network
JP2010258894A (en) Video receiving apparatus, method of receiving video, and program
JP2013254479A (en) Interface conversion device and interface conversion method
US11483362B2 (en) Client apparatus, data collection system, data transmission method, and program
JP2004289748A (en) Quality monitoring system and its quality monitoring method for multimedia communications
US9743037B2 (en) Method for transmitting device indicator data in network-based AV system
JP2022509406A (en) Data transmission protocol
KR20200143881A (en) Controller commnication device and method thereof
US11283898B2 (en) Data collection system and method for transmitting multiple data sequences with different attributes
JP5398364B2 (en) File transmission system, file transmission management server, and file inspection method
US10356792B2 (en) Communication terminal device, communication system, communication method compatible with at least two communication schemes
JP2006109016A (en) Transmitter/receiver, transmission/reception control method, program and memory
JP6939220B2 (en) Data analysis program, data analysis method, and data analysis device
TW201142611A (en) Method and system for a universal serial bus (USB) camera with two isochronous transfers

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18916113

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18916113

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP