Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5343573B2 - How to send image data - Google Patents
[go: Go Back, main page]

JP5343573B2 - How to send image data - Google Patents

How to send image data Download PDF

Info

Publication number
JP5343573B2
JP5343573B2 JP2009009428A JP2009009428A JP5343573B2 JP 5343573 B2 JP5343573 B2 JP 5343573B2 JP 2009009428 A JP2009009428 A JP 2009009428A JP 2009009428 A JP2009009428 A JP 2009009428A JP 5343573 B2 JP5343573 B2 JP 5343573B2
Authority
JP
Japan
Prior art keywords
transmission
data
image data
amount
buffer
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
JP2009009428A
Other languages
Japanese (ja)
Other versions
JP2010171470A (en
Inventor
達也 大黒
靖 立石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Corp
Original Assignee
Meidensha Corp
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 Meidensha Corp filed Critical Meidensha Corp
Priority to JP2009009428A priority Critical patent/JP5343573B2/en
Publication of JP2010171470A publication Critical patent/JP2010171470A/en
Application granted granted Critical
Publication of JP5343573B2 publication Critical patent/JP5343573B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Storing Facsimile Image Data (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Description

本発明は、通信端末間または通信端末とホストコンピュータ間で種々の回線を経由して画像データを送信する通信システムに係り、特に回線の通信速度に合わせて画像データを送信する方法に関する。   The present invention relates to a communication system for transmitting image data between communication terminals or between a communication terminal and a host computer via various lines, and more particularly to a method for transmitting image data in accordance with the communication speed of the line.

通信端末とホストステーションの間の画像データ送信などには、種々の回線(例えば、PHS,FOMA、衛星携帯電話、MCA無線、シリアル、イーサネット(登録商標))を経由して伝送できる通信システムを構築し、伝送ルートの変更も可能としている。   For communication of image data between the communication terminal and the host station, a communication system that can be transmitted via various lines (eg PHS, FOMA, satellite mobile phone, MCA wireless, serial, Ethernet (registered trademark)) The transmission route can be changed.

基本的な送信処理は、その概念図を図3に示すように、送信側のCPUが送信しようとする画像データ(n−1〜n−6)を順次作成し(S1)、これらを通信プロトコルの持つ送信バッファに順次転送し(S2)、通信プロトコルでは通信デバイスの持つバッファにデータを転送し(S3)、通信デバイスが回線上にデータを送り出し、このデータを相手装置側で受信する(S4)。   As shown in FIG. 3, the basic transmission process sequentially creates image data (n-1 to n-6) to be transmitted by the CPU on the transmission side (S1), and generates these as communication protocols. Are sequentially transferred to the transmission buffer of the communication device (S2). In the communication protocol, the data is transferred to the buffer of the communication device (S3), the communication device sends the data on the line, and this data is received by the partner device (S4). ).

このような送受信処理で、例えば、静止画を連続的に送信する場合、画像データは一定の容量(バイト数)ではないものの、その画像サイズ(縦×横画素数)に依存して、ある範囲のデータ量となる。これを定期的に送ることにより、擬似的な動画とすることができる。この用途は、監視カメラのような使い方がされることが多く、リアルタイム性が求められる。   In such a transmission / reception process, for example, when still images are continuously transmitted, the image data is not a fixed capacity (number of bytes), but depends on the image size (vertical × horizontal number of pixels). The amount of data. By sending this periodically, a pseudo moving image can be obtained. This application is often used like a surveillance camera and requires real-time performance.

図3に示す送受信処理で画像データを連続的に送信する場合、送信する画像(n−1〜n−6)のうち、最初の画像(n−6)から順番に送信バッファに送られ、送信バッファから通信機バッファに転送されて回線に送出される。この時、多く場合、回線の種類による通信速度の限界が画像更新のボトルネックとなる。 When image data is continuously transmitted in the transmission / reception processing shown in FIG. 3, among the images to be transmitted (n-1 to n-6), the first image (n-6) is sequentially transmitted to the transmission buffer and transmitted. The data is transferred from the buffer to the communication device buffer and sent to the line. At this time, in many cases, the limit of the communication speed of the line type is a bottleneck in the image update.

例えば、遠隔画像監視では、伝送される画像を見てカメラ制御を行う場合、画像監視者は伝送された画像によりカメラ制御を開始し終了する。しかし、実際の制御開始、終了は画像の遅延量分だけ遅れていることになり、遅延量が多くなればレスポンスが悪い感じとなり、短い時間のカメラ制御などは困難となる。データ欠損に関しても、画像データの一部が欠損すれば画像再生に乱れが生じ、長期に渡りデータ欠損が起きれば、オンラインの監視システムでは重大な問題となる。   For example, in remote image monitoring, when camera control is performed by looking at a transmitted image, the image monitor starts and ends camera control based on the transmitted image. However, the actual start and end of control are delayed by the amount of delay of the image. If the amount of delay increases, the response feels bad, and camera control in a short time becomes difficult. Regarding data loss, if part of image data is lost, image reproduction is disturbed, and if data loss occurs for a long time, it becomes a serious problem in an online monitoring system.

回線の種類による通信速度の制限に対し、リアルタイム性を確保しようとする通信方式として、ループ状に構成した伝送路に複数のノード装置を設置し、この伝送路には予め設定したタイムスロットで区切られたデータフレーム構造を有し、単位タイムスロットにはノード装置の情報を割り当て、データフレームを順次ノード装置が受信及び送信するデータ通信伝送システムとし、単位タイムスロットを必要に応じて一つの端末に対し複数割り当てるシステムが提案されている(例えば、特許文献1参照)。   As a communication method to ensure real-time performance against the limitation of communication speed depending on the type of line, a plurality of node devices are installed in a transmission line configured in a loop, and this transmission line is separated by a preset time slot. A data communication structure in which node device information is allocated to unit time slots, and node devices sequentially receive and transmit data frames, and unit time slots are assigned to one terminal as necessary. A system in which a plurality of systems are assigned has been proposed (see, for example, Patent Document 1).

特開2001−186518号公報Japanese Patent Laid-Open No. 2001-186518

特許文献1の通信方式では送信データを分割して別のデータフレームで伝送するもので、個々のデータフレームの伝送については図3と同じ処理になり、回線の種類による通信速度の限界が画像更新のボトルネックとなる。   In the communication method of Patent Document 1, transmission data is divided and transmitted in separate data frames. The transmission of individual data frames is the same as in FIG. 3, and the limit of communication speed depending on the line type is image update. Bottleneck.

回線効率の最も良くなる状態は常にデータを送り続ける状態であるから、通信速度より多くのデータを常に送り続けることにより、最大の更新速度が得られるようになる。   Since the state in which the line efficiency is the best is the state in which data is constantly sent, the maximum update speed can be obtained by constantly sending more data than the communication speed.

しかしながら、この状態は、常に「送信バッファへの送信量>回線への送信量」となるため、送信バッファや通信バッファが一杯の状態となるために、受信側ではこのバッファ量分の遅延がいつでも生じてしまうことになる。つまり、図3では画像n−4〜n−6の分が遅延してしまうことになる。   However, since this state is always “transmission amount to the transmission buffer> transmission amount to the line”, the transmission buffer and the communication buffer are full. Will occur. That is, in FIG. 3, the images n-4 to n-6 are delayed.

よって、回線の違いにより、遅延が大きくなったり小さくなったりし、リアルタイム性の失われた画像が受信されることになるといった問題がある。   Therefore, there is a problem that the delay increases or decreases depending on the line, and an image with lost real-time property is received.

本発明の目的は、通信回線の帯域を最大限活かした画像データの送信をしながら送信バッファに滞留する画像データ量を最小限に抑えることができる画像データの送信方法を提供することにある。   An object of the present invention is to provide an image data transmission method capable of minimizing the amount of image data staying in a transmission buffer while transmitting image data making the most of the bandwidth of a communication line.

本発明は、前記の課題を解決するため、画像データの送信元装置では画像データを分割して送信バッファに転送し、この送信バッファに転送された画像データが該送信バッファから通信回線で接続された送信先装置に向けて送信処理されるまでの時間から該通信回線での送信速度を計測し、送信バッファへの転送データ量を増加させながら送信速度の計測を繰り返し、送信バッファへの転送データ量に対する送信速度が変化しなくなるまで転送データ量を増やすようにしたもので、以下の方法を特徴とする。   In order to solve the above problems, the present invention divides image data in an image data transmission source device and transfers it to a transmission buffer, and the image data transferred to the transmission buffer is connected from the transmission buffer via a communication line. Measures the transmission speed on the communication line from the time until transmission processing is performed toward the destination device, repeats measurement of the transmission speed while increasing the amount of data transferred to the transmission buffer, and transfers the data to the transmission buffer. The amount of transfer data is increased until the transmission speed with respect to the amount does not change, and is characterized by the following method.

(1)画像データの送信元装置と送信先装置の間を通信回線で接続し、送信元装置は画像データを送信バッファに転送し、この送信バッファに転送された画像データを送信先装置に送信する画像データの送信方法において、
前記送信元装置は、
画像データから分割した部分画像データを前記送信バッファに転送する処理と、
前記送信バッファに転送された部分画像データが該送信バッファから通信回線で接続された前記送信先装置に向けて送信処理されるまでの時間から該通信回線での送信速度を計測する処理と、
前記送信バッファに転送する部分画像データの転送データ量を増加させながら前記送信速度の計測を繰り返し、該送信バッファへの転送データ量に対する送信速度が変化しなくなるまで該転送データ量を増やす処理と、
によって画像データを送信することを特徴とする。
(1) The image data transmission source device and the transmission destination device are connected by a communication line. The transmission source device transfers the image data to the transmission buffer, and the image data transferred to the transmission buffer is transmitted to the transmission destination device. In the image data transmission method to
The transmission source device is:
A process of transferring the partial image data divided from the image data to the transmission buffer;
Processing for measuring the transmission speed on the communication line from the time until the partial image data transferred to the transmission buffer is transmitted from the transmission buffer to the transmission destination device connected on the communication line;
The process of repeating the measurement of the transmission speed while increasing the transfer data amount of the partial image data transferred to the transmission buffer, and increasing the transfer data amount until the transmission speed for the transfer data amount to the transmission buffer does not change;
The method is characterized in that the image data is transmitted.

(2)前記送信元装置は、同じ転送データ量で前記送信速度の計測を複数回行い、その平均値を送信速度とすることを特徴とする。   (2) The transmission source apparatus performs the measurement of the transmission speed a plurality of times with the same transfer data amount, and sets the average value as the transmission speed.

(3)前記送信元装置は、前記転送データ量を最初は大まかに増加させ、通信速度が変化しなくなってから細かく増加させることを特徴とする。   (3) The transmission source apparatus is characterized in that the transfer data amount is increased roughly at first, and then increased finely after the communication speed does not change.

(4)前記送信元装置は、前記転送データ量を増加させ、増加前の計測値と増加後の計測値の差が一定の値以上の場合にのみ転送データ量を増やすことを特徴とする。   (4) The transmission source device increases the transfer data amount, and increases the transfer data amount only when the difference between the measurement value before the increase and the measurement value after the increase is a certain value or more.

(5)前記送信元装置は、前記送信バッファの現在のデータ量を監視し、このデータ量が一定量以下となったときに次の画像データを予め定めた量だけ送信バッファに転送することを特徴とする。   (5) The transmission source apparatus monitors the current data amount of the transmission buffer, and transfers the next image data to the transmission buffer by a predetermined amount when the data amount becomes a predetermined amount or less. Features.

以上のとおり、本発明によれば、画像データの送信元装置では画像データを分割して送信バッファに転送し、この送信バッファに転送された画像データが該送信バッファから通信回線で接続された送信先装置に向けて送信処理されるまでの時間から該通信回線での送信速度を計測し、送信バッファへの転送データ量を増加させながら送信速度の計測を繰り返し、送信バッファへの転送データ量に対する送信速度が変化しなくなるまで転送データ量を増やすようにしたため、通信回線の帯域を最大限活かした画像データの送信をしながら送信バッファに滞留する画像データ量を最小限に抑えることができる。   As described above, according to the present invention, the image data transmission source device divides the image data and transfers it to the transmission buffer, and the image data transferred to the transmission buffer is connected to the transmission buffer via the communication line. Measure the transmission speed on the communication line from the time until the transmission processing to the destination device, repeat the measurement of the transmission speed while increasing the amount of data transferred to the transmission buffer, and the amount of data transferred to the transmission buffer Since the amount of transfer data is increased until the transmission speed does not change, the amount of image data staying in the transmission buffer can be minimized while transmitting image data making the most of the bandwidth of the communication line.

具体的には、
(1)通信帯域を最大限活かしながら、バッファに滞留することによる遅延を最小限に抑えることができるため、最大の画像更新速度と、最小の遅延量を両立することができる。
In particular,
(1) Since the delay caused by staying in the buffer can be minimized while making the best use of the communication band, both the maximum image update speed and the minimum delay amount can be achieved.

(2)通信回線の種類が変化して通信帯域が変化しても最適な通信状態を得ることができる。   (2) Even when the type of communication line changes and the communication band changes, an optimal communication state can be obtained.

(3)閾値の設定により簡易な方法で送信データ量の増減ができ、より最適なデータ転送レートを得ることができる。   (3) The transmission data amount can be increased or decreased by a simple method by setting the threshold value, and a more optimal data transfer rate can be obtained.

(4)回線の状態に応じてリアルタイムに通信効率と遅延を調整することができる。   (4) Communication efficiency and delay can be adjusted in real time according to the line status.

本発明の実施形態を示す通信端末の構成図。The block diagram of the communication terminal which shows embodiment of this invention. 画像データの連続的な送信処理の例。An example of continuous transmission processing of image data. 画像データの基本的な送信処理手順。Basic transmission processing procedure for image data.

(実施形態1)
図1は、本発明の実施形態を示す通信端末の構成図である。コンピュータ構成にされる通信端末の演算装置(CPU)1は、主にプログラムを格納するROM2と、プログラムの実行領域およびプログラムがデータ処理用バッファとして使用するRAM3と、VIDEO入力回路4と、I/Oインタフェース5と、通信カードとのI/FとなるPCMCIAインタフェース6がバス接続される。VIDEO入力装置4にはビデオカメラ7が接続される。また、PCMCIAインタフェース6には通信カード8が接続され、通信カード8によって公衆回線網などを経由して相手側との間で画像データを送信または受信する。
(Embodiment 1)
FIG. 1 is a configuration diagram of a communication terminal showing an embodiment of the present invention. An arithmetic unit (CPU) 1 of a communication terminal having a computer configuration includes a ROM 2 that mainly stores a program, a RAM 3 that is used as a data processing buffer, an execution area of the program, a VIDEO input circuit 4, an I / O The OMC interface 5 and the PCMCIA interface 6 serving as an I / F for the communication card are connected by bus. A video camera 7 is connected to the VIDEO input device 4. Further, a communication card 8 is connected to the PCMCIA interface 6, and image data is transmitted or received by the communication card 8 to or from the other party via a public line network or the like.

例えば、ビデオカメラ7で撮影した画像情報は、VIDEO入力回路4を経由してRAM3に取り込まれ、PCMCIAインタフェース6を経由してFOMA、PHS、またはシリアル通信カード8によって、公衆回線網または各種通信装置に送られる構成を取る。   For example, image information photographed by the video camera 7 is taken into the RAM 3 via the VIDEO input circuit 4, and is connected to the public line network or various communication devices via the PCMCIA interface 6 by the FOMA, PHS, or serial communication card 8. Take the configuration sent to.

各通信処理において使用される画像データのバッファは、CPU1がROM2に内蔵されたプログラムによってRAM上3に領域を割り当て、図中に示すように、送信バッファ3A、受信バッファ3B、画像バッファ3C等として使用される。また、通信カード8には伝送路を介して送受信する画像データの送信バッファ8Aと受信バッファ8Bを内蔵する。   As the buffer of image data used in each communication process, the CPU 1 allocates an area on the RAM 3 by a program built in the ROM 2, and as shown in the figure, as a transmission buffer 3A, a reception buffer 3B, an image buffer 3C, etc. used. The communication card 8 includes a transmission buffer 8A and a reception buffer 8B for image data transmitted and received via the transmission path.

CPU1は、画像データを連続的に送信するとき、図2に示す以下の処理を実行する。   When the image data is continuously transmitted, the CPU 1 executes the following process shown in FIG.

(S11)ビデオカメラ7で撮影した画像データをVIDEO入力回路4を経由して取り込む。   (S 11) Image data captured by the video camera 7 is taken in via the VIDEO input circuit 4.

(S12)取り込んだ画像データをRAM3上の画像バッファ3Cに保存する。   (S12) The captured image data is stored in the image buffer 3C on the RAM 3.

(S13)画像バッファ3Cから一定量のデータ(部分画像データ)を取り出し、TCP/IP等の通信プロトコルが管理する送信バッファ3Aに転送する。   (S13) A fixed amount of data (partial image data) is extracted from the image buffer 3C and transferred to the transmission buffer 3A managed by a communication protocol such as TCP / IP.

(S14)通信プロトコルは、送信バッファ3Aの部分画像データを送信バッファ8Aに転送する。この送信バッファ8Aの部分画像データは、公衆回線網等を通して送信先の通信機内の受信バッファへ伝送される。   (S14) The communication protocol transfers the partial image data in the transmission buffer 3A to the transmission buffer 8A. The partial image data in the transmission buffer 8A is transmitted to a reception buffer in a communication apparatus as a transmission destination through a public line network or the like.

以上までの画像データの送信処理(S11〜S14)は、画像データを一定のサイズに分割して送信バッファに送信する。すなわち、CPU1により取り込まれた画像データはRAM3内の画像バッファ3Cに一旦格納される。この格納された画像データは、例えば送信ブロックサイズ毎に分割され、時系列的に古いものから順番に送信バッファ3Aに転送される。この時、送信処理は、例えばTCP/IP等のプログラムで構成された通信プロトコルをCPUが実行することで実現する。その際、通信プロトコルは、プロトコル用の送信バッファ3AをRAM3上に確保し、その中に送られてきたデータを順番に通信カード8(送信装置)の送信バッファ8Aに転送する処理を行ってデータを送信する。   In the image data transmission processing (S11 to S14) described above, the image data is divided into a predetermined size and transmitted to the transmission buffer. That is, the image data captured by the CPU 1 is temporarily stored in the image buffer 3C in the RAM 3. The stored image data is divided, for example, for each transmission block size, and transferred to the transmission buffer 3A in order from the oldest in time series. At this time, the transmission process is realized by the CPU executing a communication protocol configured by a program such as TCP / IP. At that time, the communication protocol secures the protocol transmission buffer 3A on the RAM 3, and performs processing for sequentially transferring the data sent therein to the transmission buffer 8A of the communication card 8 (transmission device). Send.

ここで、画像データを一定のサイズに分割して送信バッファに転送する際のサイズについて説明する。   Here, the size when the image data is divided into a certain size and transferred to the transmission buffer will be described.

例えば、送信装置には、FOMA,PHS、衛星電話等の通信機を用いて送信する場合、図2中に示すように、送信ブロックサイズが大きければ、送信バッファ3Aに大きなデータが格納されるため、通信処理や伝送帯域の変動やゆらぎがあっても、その変動時間に対し送信時間が長いため通信速度が平均化され、変動の影響を受けにくく効率の良い送信(通信帯域を最大限に使って送信)することができる。   For example, when transmitting using a communication device such as FOMA, PHS, satellite telephone, etc., as shown in FIG. 2, if the transmission block size is large, large data is stored in the transmission buffer 3A. Even if there are fluctuations or fluctuations in communication processing or transmission band, the transmission speed is averaged because the transmission time is long compared to the fluctuation time. Send).

このため、送信バッファを画像データのサイズに対して十分大きくとれば、送信処理はデータを送信する処理に専念することができ、送信帯域を有効に活かすことができるため、通信効率が増加し、画像更新速度を高めることができる。しかし、送信バッファサイズに依存する大きなデータ量を常時持つことになるため、過去の画像をより多くバッファに保有することになり、最終的にはバッファサイズ分の遅延が生じ、リアルタイム性が失われていく。   For this reason, if the transmission buffer is sufficiently large with respect to the size of the image data, the transmission process can be dedicated to the process of transmitting data, and the transmission bandwidth can be utilized effectively, thereby increasing the communication efficiency, The image update speed can be increased. However, since it always has a large amount of data that depends on the transmission buffer size, more past images are held in the buffer, eventually resulting in a delay of the buffer size and loss of real-time characteristics. To go.

逆に、送信バッファサイズを画像データのサイズに対して十分小さくすれば遅延は小さくなっていくので、リアルタイム性は確保されるが、送信処理回数が増えることによるオーバヘッド処理量が増え、帯域を有効に使うことができず、結果として画像更新速度が低下することになる。   Conversely, if the transmission buffer size is made sufficiently small relative to the size of the image data, the delay will decrease, so real-time performance will be ensured, but the overhead processing amount due to the increase in the number of transmission processes will increase, and the bandwidth will be effective. As a result, the image update speed decreases.

このように、使用する通信媒体によって変化する通信速度(帯域)によってバッファに送り込むデータ量を適切に調整することができないと、画像更新速度または遅延によるリアルタイム性の喪失の問題が生じる。   As described above, when the amount of data sent to the buffer cannot be appropriately adjusted according to the communication speed (bandwidth) that varies depending on the communication medium to be used, there arises a problem of loss of real time due to the image update speed or delay.

そこで、本実施形態では、部分画像データが送信バッファ3Aから送信バッファ8Aに転送されてから相手側装置に送信されるまでの時間を計測する機能を設け、送信バッファ8Aへの送信データ量を1倍、2倍、3倍と変化させることにより、そのデータ量に対する通信時間から送信速度を求め、その送信速度が変化しなくなるまで送信データ量を増やしていくことにより、通信回線の帯域を最大限活かしながら送信バッファ8Aに滞留するデータ量を最小限に抑える送信方法とする。   Therefore, in this embodiment, a function for measuring the time from when the partial image data is transferred from the transmission buffer 3A to the transmission buffer 8A until it is transmitted to the counterpart device is provided, and the amount of transmission data to the transmission buffer 8A is set to 1. By doubling, doubling, and doubling, the transmission speed is obtained from the communication time for the data volume, and the transmission data volume is increased until the transmission speed does not change, thereby maximizing the bandwidth of the communication line. A transmission method that minimizes the amount of data that stays in the transmission buffer 8A while making full use of it.

上記の通信速度の計測手順を具体的に説明する。   The procedure for measuring the communication speed will be specifically described.

(1)送信バッファに転送するデータ量を一定量αに調整する、最初はこの値αは任意に定めた値とする。   (1) The amount of data transferred to the transmission buffer is adjusted to a fixed amount α. Initially, this value α is set to an arbitrarily determined value.

(2)まず、タイマAをスタートして、通信プロトコルが持っている送信バッファにαを送信する。タイマAはクリアしたカウンターを一定時間毎にカウントアップすることで容易に実現できる。   (2) First, the timer A is started and α is transmitted to the transmission buffer possessed by the communication protocol. The timer A can be easily realized by counting up the cleared counter at regular intervals.

(3)通信プロトコルは送信バッファからデータを取り出し、通信機バッファに送信する。   (3) The communication protocol extracts data from the transmission buffer and transmits it to the communication device buffer.

(4)送信データは通信機の通信帯域に応じて順次送信され、送信バッファのデータ量はその分減少していく。この時、送信バッファのデータ量はレジスタにて管理される。   (4) The transmission data is sequentially transmitted according to the communication band of the communication device, and the amount of data in the transmission buffer decreases accordingly. At this time, the data amount of the transmission buffer is managed by a register.

(5)プログラムは、送信バッファのデータ量をレジスタを読み出すことにより監視し、全て送信し終わったら、タイマAの値を読み込む。この値をt1とする。   (5) The program monitors the data amount of the transmission buffer by reading the register, and reads the value of timer A when all transmission is completed. This value is assumed to be t1.

(6)これを繰り返すことにより次の式により、送信速度kを算出することができる。k(1)=α/t1
(7)次に例えば送信バッファヘの送信データ量を2倍の2αだけ送った時のタイマAの値がt2と計測されたときの送信速度は、k(2)=2×α/t2で計算される。
(6) By repeating this, the transmission rate k can be calculated by the following equation. k (1) = α / t1
(7) Next, for example, the transmission speed when the value of timer A is measured as t2 when the transmission data amount to the transmission buffer is doubled by 2α is calculated by k (2) = 2 × α / t2. Is done.

(8)ここで、k(2)<k(1)であればデータ通信帯域に余裕があることを示す。   (8) Here, k (2) <k (1) indicates that there is a margin in the data communication band.

(9)これを繰り返し、データ量を増やしても送信速度が増加しなくなったところが回線の送信速度の上限になる。   (9) This is repeated, and the point at which the transmission speed does not increase even when the data amount is increased becomes the upper limit of the transmission speed of the line.

こうすることによって、常に通信バッファにはデータが入っており通信回線の帯域を最大限活かした画像データの送信ができ、しかも送信バッファに滞留する画像データ量を最小限に抑えて遅延を最小に抑えることができる。   In this way, data is always stored in the communication buffer, and image data can be transmitted taking full advantage of the bandwidth of the communication line, and the amount of image data remaining in the transmission buffer is minimized to minimize delay. Can be suppressed.

(実施形態2)
本実施形態では、同じ転送データ量で上記の送信速度kを求める回数を複数回行い、その平均値を送信速度とすることにより、通信速度の変化によるバラツキに対応する。
(Embodiment 2)
In this embodiment, the number of times of obtaining the transmission speed k with the same transfer data amount is performed a plurality of times, and the average value thereof is used as the transmission speed, thereby dealing with variations due to changes in the communication speed.

例えば同じ送信データ量での計算を3回繰り返すことにより、通信速度の経時的変化による影響の小さい送信速度を得ることができるようになる。   For example, by repeating the calculation with the same transmission data amount three times, it becomes possible to obtain a transmission speed that is less affected by the change in communication speed over time.

(実施形態3)
本実施形態では、上記の送信速度kを求める際の送信データ量の変化を整数倍(2倍など)とするのではなく、1.2倍等の少数部分を持つ変化量にすることにより調整範囲を細かくすることができ、より精度の高い通信速度を求めることができる。これにより、最短の遅延と更新時間を得ることのできる送信データ量を設定することができる。
(Embodiment 3)
In the present embodiment, the transmission data amount when determining the transmission speed k is not changed by an integral multiple (such as 2), but is adjusted by a variation having a fractional part such as 1.2 times. The range can be made finer, and a more accurate communication speed can be obtained. Thus, it is possible to set a transmission data amount that can obtain the shortest delay and update time.

(実施形態4)
実施形態3ではきめ細かい調整が可能となるが、調整完了までにデータ量の変更回数が多くなるため調整時間が長くなる。
(Embodiment 4)
In the third embodiment, fine adjustment is possible, but the adjustment time becomes longer because the number of changes in the data amount increases until the adjustment is completed.

この不都合を解消するため、本実施形態では、最初は実施形態1のような大きな変化量で調整し、変化がなくなったところで、その1回前のデータ量を基準に、実施形態3のように小さい増加量とするように細かい調整を行う。これにより短い調整時間を得ることができる。   In order to eliminate this inconvenience, in the present embodiment, first, adjustment is performed with a large change amount as in the first embodiment, and when there is no change, the previous data amount is used as a reference as in the third embodiment. Make fine adjustments to achieve a small increase. Thereby, a short adjustment time can be obtained.

(実施形態5)
本実施形態では、上記の送信速度kの比k(n)/k(n−1)が一定の値以上の場合にのみ転送データ量を増やすようにし、調整のために費やす演算量を少なくする。
(Embodiment 5)
In this embodiment, the amount of transfer data is increased only when the ratio k (n) / k (n-1) of the transmission speed k is equal to or greater than a certain value, and the amount of calculation consumed for adjustment is reduced. .

例えば、{k(2)/k(1)}>1.2とし、閾値以下の変化は無視することによりバラツキによる調整回数を少なくすることができる。   For example, by setting {k (2) / k (1)}> 1.2 and ignoring changes below the threshold, the number of adjustments due to variation can be reduced.

(実施形態6)
本実施形態では、送信バッファの現在のデータ量を読み出すことにより監視し、一定量(例えばαの20%)以下となったら、次の画像データを予め定めた量(例えばα)だけ送信バッファに転送するようにする。これを繰り返すことにより、送信バッファは常にデータが存在するためデータの無い時間帯が存在せず、帯域を有効に使うことができる。
(Embodiment 6)
In the present embodiment, monitoring is performed by reading the current data amount in the transmission buffer, and when the amount falls below a certain amount (for example, 20% of α), the next image data is stored in the transmission buffer by a predetermined amount (for example, α). Make it forward. By repeating this, since there is always data in the transmission buffer, there is no time zone without data, and the bandwidth can be used effectively.

例えば、送信データ量αが20%を切る度にタイマAの値をtとし、タイマAをリスタートする。これを通信中常時繰り返し、タイマの前回値taと今回値tbを比較し、ta>tbの時は帯域が広くなったと判断しαの値を大きくし、ta<tbの時は帯域が狭くなったと判断しαの値を小さくすることにより、回線の帯域の変化に合わせて常に最適な送信データ量を選択することができる。   For example, whenever the transmission data amount α falls below 20%, the value of the timer A is set to t and the timer A is restarted. This is repeated at all times during communication, and the previous value ta and the current value tb of the timer are compared. When ta> tb, it is determined that the bandwidth is widened and the value of α is increased, and when ta <tb, the bandwidth is narrowed. By determining that the value of α is small, it is possible to always select the optimum amount of transmission data according to the change in the bandwidth of the line.

1 CPU
2 ROM
3 RAM
4 VIDEO入力回路
5 IOインタフェース
6 PCMCIAインタフェース
7 ビデオカメラ
8 通信カード
1 CPU
2 ROM
3 RAM
4 VIDEO input circuit 5 IO interface 6 PCMCIA interface 7 video camera 8 communication card

Claims (4)

画像データの送信元装置と送信先装置の間を通信回線で接続し、送信元装置は画像データを送信バッファに転送し、この送信バッファに転送された画像データを送信先装置に送信する画像データの送信方法において、
前記送信元装置は、
画像データから分割した部分画像データを前記送信バッファに転送する処理と、
前記送信バッファに転送された部分画像データが該送信バッファから通信回線で接続された前記送信先装置に全て送信処理されるまでの時間により、該通信回線での送信速度を計測する処理と、
前記送信バッファに転送する部分画像データの転送データ量を増加させながら該増加後の転送データ量について前記送信速度の計測を繰り返し、この繰り返しを該増加後の転送データ量に対する送信速度が変化しなくなるまで行うことにより、該転送データ量を増やす処理と、
前記送信バッファの現在のデータ量を監視し、このデータ量が一定量以下となったときに次の画像データを、前記の送信速度が変化しなくなるまで増やした増加後の転送データ量だけ送信バッファに転送する処理と、
によって画像データを送信することを特徴とする画像データの送信方法。
The image data transmission source device and the transmission destination device are connected by a communication line, the transmission source device transfers the image data to the transmission buffer, and the image data transferred to the transmission buffer is transmitted to the transmission destination device. In the sending method of
The transmission source device is:
A process of transferring the partial image data divided from the image data to the transmission buffer;
The time until said partial image data transferred to the transmission buffer are all transmission process to the destination device connected by a communication line from the transmission buffer, the process of measuring the transmission rate in the communication line,
The transmission while buffer increasing amount of transfer data of the partial image data to be transferred to repeatedly the measurement of the transmission velocity for transferring data amount after the increasing transmission rate does not change this repeat transmitted data amount after increasing the by performing up, a process of increasing the amount of data transferred,
The current amount of data in the transmission buffer is monitored, and when this amount of data becomes a certain amount or less , the next image data is transmitted by the increased amount of transferred data that is increased until the transmission speed does not change. Processing to transfer to the buffer;
A method of transmitting image data, characterized by transmitting image data.
前記送信元装置は、同じ転送データ量で前記送信速度の計測を複数回行い、その平均値を送信速度とすることを特徴とする請求項1に記載の画像データの送信方法。   2. The image data transmission method according to claim 1, wherein the transmission source device measures the transmission speed a plurality of times with the same transfer data amount, and sets the average value as the transmission speed. 前記送信元装置は、前記転送データ量を最初は大まかに増加させ、通信速度が変化しなくなってから、該増加後の転送データ量を細かく増やすことを特徴とする請求項1に記載の画像データの送信方法。 The transmission source device, the transfer data amount initially roughly increased, since the longer the communication speed is changed, an image according to claim 1, wherein the Yasu finely increasing the transfer data amount after the increasing How to send data. 前記送信元装置は、前記転送データ量を増加させ、増加前の計測値と増加後の計測値の差が一定の値以上の場合にのみ前記増加後の転送データ量を増やすことを特徴とする請求項1に記載の画像データの送信方法。 The transmission source device increases the transfer data amount, and increases the transfer data amount after the increase only when the difference between the measurement value before the increase and the measurement value after the increase is a certain value or more. The method of transmitting image data according to claim 1.
JP2009009428A 2009-01-20 2009-01-20 How to send image data Expired - Fee Related JP5343573B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009009428A JP5343573B2 (en) 2009-01-20 2009-01-20 How to send image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009009428A JP5343573B2 (en) 2009-01-20 2009-01-20 How to send image data

Publications (2)

Publication Number Publication Date
JP2010171470A JP2010171470A (en) 2010-08-05
JP5343573B2 true JP5343573B2 (en) 2013-11-13

Family

ID=42703214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009009428A Expired - Fee Related JP5343573B2 (en) 2009-01-20 2009-01-20 How to send image data

Country Status (1)

Country Link
JP (1) JP5343573B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5761959B2 (en) * 2010-10-29 2015-08-12 三菱電機株式会社 Remote monitoring system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10234033A (en) * 1997-02-21 1998-09-02 Matsushita Electric Ind Co Ltd Video signal decoding method and video signal decoding apparatus
JP2002314627A (en) * 2001-04-12 2002-10-25 Hitachi Ltd Data transmission method
JP3609391B2 (en) * 2002-08-13 2005-01-12 セス・ジャパン株式会社 Data communication terminal device
JP2008301309A (en) * 2007-06-01 2008-12-11 Panasonic Corp Coding rate control method, transmission apparatus for controlling coding rate, program storage medium, and integrated circuit

Also Published As

Publication number Publication date
JP2010171470A (en) 2010-08-05

Similar Documents

Publication Publication Date Title
EP2288086B1 (en) Network monitoring device, bus system monitoring device, method and program
EP3560152B1 (en) Determining the bandwidth of a communication link
CN103391253B (en) The control method of network congestion, apparatus and system
EP2752772A1 (en) Contents distribution system, cache server, and contents distribution method
CN110178401A (en) For providing the method and its equipment of streaming service
EP4037272A1 (en) Data processing method and device
JP5720794B2 (en) Distribution network, server and distribution method
JP2009130786A (en) Communication device, communication system, and method of monitoring quality of communication between communication device
JP5343573B2 (en) How to send image data
JP2017139521A (en) Stream distributing device, stream receiving device, stream distributing system, stream distributing method, and stream distributing program
CN114679570A (en) Video transmission method and device, storage medium and electronic device
JP2009141565A (en) Receiving terminal device
CN118972327A (en) Message transmission method, device, chip, network interface card, equipment, storage medium and program product
JP4766703B2 (en) Edge node and bandwidth control method
CN117412120A (en) Video transmission method, video transmission device, system, and storage medium
JP3866647B2 (en) Packet loss rate measuring method and system
JP6888689B2 (en) Transmitter, receiver and video distribution method
JP2003092755A (en) Communication system and program for transferring moving image data
CN116388854B (en) Method, device and storage medium for transmitting data information by adjusting virtual channel
JP2006033713A (en) Communication apparatus and communication band control method
JP2007201702A (en) Reception device, communication device, and communication method
CN120075149A (en) Data transmission method and communication device
JP6717209B2 (en) Packet train transmitter/receiver, network state estimation system and control method
JP3816833B2 (en) Network bandwidth controller
JPH1168880A (en) Data communication device and method and system and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121228

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20121228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130423

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130624

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130716

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130729

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5343573

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees