JP2008171168A - System and method for resetting buffer device - Google Patents
System and method for resetting buffer device Download PDFInfo
- Publication number
- JP2008171168A JP2008171168A JP2007003113A JP2007003113A JP2008171168A JP 2008171168 A JP2008171168 A JP 2008171168A JP 2007003113 A JP2007003113 A JP 2007003113A JP 2007003113 A JP2007003113 A JP 2007003113A JP 2008171168 A JP2008171168 A JP 2008171168A
- Authority
- JP
- Japan
- Prior art keywords
- buffer device
- processing unit
- data
- reset
- flag
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は一種のバッファ装置、特にバッファ装置のリセットシステムとその方法に関わるものである。 The present invention relates to a kind of buffer device, and more particularly to a buffer device reset system and method.
現在のストリーミングシステムはほとんどインターネットに使用している。ネットワーク上の放送、音楽又は映画を視聴する。一般的なストリーミングシステムは、複数の処理ユニットと複数のバッファ装置を有する。そのうち、隣り合う該処理ユニットの間にデータを一時格納するためのバッファ装置が設けられている。図1は公知技術のストリーミングシステムのブロック図である。このストリーミングシステムはインターネットに使用されている。図示のとおり、該ストリーミングシステムに第1処理ユニット20’、第2処理ユニット22’、第3処理ユニット24’、第4処理ユニット26’、第1バッファ装置30’と第2バッファ装置32’を含まれる。該第1処理ユニット20’はインターネットよりデータをダウンロードして、該第1バッファ装置30’に格納する。
Most current streaming systems are used for the Internet. Watch broadcasts, music or movies on the network. A typical streaming system has a plurality of processing units and a plurality of buffer devices. Among them, a buffer device for temporarily storing data is provided between the adjacent processing units. FIG. 1 is a block diagram of a known streaming system. This streaming system is used for the Internet. As shown, the streaming system includes a
第2バッファ装置22’と第3処理ユニット24’は、該第1バッファ装置30’データの形態に従い、該第1バッファ装置30’のデータを処理する。そのデータの内容はたとえば、MP3、WMA又はWMVなどがある。第2処理ユニット22’は第1バッファ装置30’よりデータを読み出した後処理を行い、処理したデータを第2バッファ装置32’に格納する。もし、第2処理ユニット22’は第1バッファ装置30’のデータ処理ができないとき、システムは第1バッファ装置30’をリセットした上、第3処理ユニット24’に切り換えて第1バッファ装置30’のデータを再度読み出して処理を行い、処理後のデータを第2バッファ装置32’に格納する。引き続き、第4処理ユニット26’は第2バッファ装置32’より処理後のデータを読み出して再生する。そのうち、バッファ装置30’、32’は先入れ先だし(first in first out)形態であり、リングバッファ(ring buffer)である。
The second buffer device 22 'and the third processing unit 24' process the data of the first buffer device 30 'according to the form of the first buffer device 30' data. The contents of the data include, for example, MP3, WMA or WMV. The second processing unit 22 'performs post-processing after reading the data from the first buffer device 30', and stores the processed data in the second buffer device 32 '. If the
図2は公知技術のリングバッファによるデータ格納状態の概略図である。図示のとおり、バッファ装置1’に開始指標5’と終了指標7’を有し、バッファ装置1’は開始指標5’と終了指標7’によりバッファ装置1’に格納されるデータ10’の開始アドレスと終点アドレスを指示する。データ10’は読み込まれたとき、開始指標5’は前に移動し、読み込まれたデータの最終アドレスを指す。
FIG. 2 is a schematic diagram of a data storage state by a known ring buffer. As illustrated, the buffer device 1 ′ has a start index 5 ′ and an end index 7 ′, and the buffer device 1 ′ starts the
引き続き、図3はデータを公知技術のリングバッファに書込み状態の概略図である。図示のとおりバッファ装置1のデータ10’は読み込まれた後、開始指標5’は前方へデータ10’の最後に読み取られたアドレスに移動する。すなわち、データ10’は全部読み取られた後、開始指標5’は終了指標7’と共に同じアドレスに指す。その後、もしデータ12’をバッファ装置1’に格納されるとき、このデータ12’は終了指標7’に指されたアドレスから書込み、データ12’をバッファ装置1’に書込み完了するまで、終了指標7’を前方に移動される。データ12’をバッファ装置1’に書込み、最終アドレスに来ても、データ12’はなお書き切れない場合、バッファ装置1’の開始アドレスより引き続きにデータ12’を書込んで行き、このとき、すでに読み取られたデータ10’は書き込まれる。このため、この種のバッファ装置1’はリングバッファと呼ばれる。
Continuing, FIG. 3 is a schematic diagram of the state in which data is written to a known ring buffer. As shown in the figure, after the data 10 'of the buffer device 1 is read, the start index 5' moves forward to the last read address of the data 10 '. That is, after all the data 10 'has been read, the start index 5' points to the same address along with the end index 7 '. After that, if the
引き続き図1を参照する。第2処理ユニット22’より第1バッファ装置30’のデータが処理できないとき、第3処理ユニット24’は第1バッファ装置30’のデータを読み込み及び処理の間に、第2処理ユニット22’によって一部のデータがすでに読み取られているため、開始指標5’は前方へ移動し、第2処理ユニット22’によってデータを読み取ったアドレスを指す。このとき、第3処理ユニット24’は第1バッファ装置30’元のデータを読み取ることができない。バッファ装置のリセットを行い、第1処理ユニット20’は第3処理ユニット24’に切り換えてデータ処理を引き継がせる。
Still referring to FIG. When the data of the
本発明者は前記の問題点に対し、一種の斬新なバッファ装置のリセットシステムとその方法により、処理ユニットを切り換えた後、切り換えられた後の処理ユニットがバッファ装置従来のデータを読み取れない欠点を改善するほか、バッファ装置に格納された従来のデータの書込みを防止し、前記の問題を解決することを思案した。 The present inventor has solved the problem that the processing unit after switching is not able to read the conventional data of the buffer device after switching the processing unit by a kind of novel reset system and method of the buffer device. In addition to the improvement, the present inventors have conceived to solve the above problem by preventing the writing of the conventional data stored in the buffer device.
バッファ装置にリセットフラグとリセット機能を設け、処理ユニットを切り換えた後、リセットフラグよりバッファ装置のリセットを行い、切り換えた後の処理ユニットによるバッファ装置に格納された従来のデータの読み取りを可能にする、一種のバッファリセット方法を提供することを本発明の主な目的とする。 The buffer device is provided with a reset flag and a reset function, and after the processing unit is switched, the buffer device is reset by the reset flag so that the conventional data stored in the buffer device can be read by the processing unit after the switching. It is a main object of the present invention to provide a kind of buffer reset method.
バッファ装置に書込みフラグを設け、次の処理ユニットはバッファ装置のデータ処理が可能か否かを確定できないとき、書込みフラグを設けて、その後のデータをバッファ装置への書込みを禁止し、バッファ装置に格納された従来のデータへの書込みを避けて、バッファ装置に格納された従来のデータの紛失を避ける、一種のバッファリセット方法を提供することを本発明のもう一つの目的とする。 A write flag is provided in the buffer device, and when the next processing unit cannot determine whether or not the data processing of the buffer device is possible, a write flag is provided to prohibit subsequent data from being written to the buffer device. It is another object of the present invention to provide a kind of buffer reset method that avoids writing to the stored conventional data and avoids losing the conventional data stored in the buffer device.
前記の目的を達成するため、本発明のバッファリセットシステムはリセット機能、リセットフラグ、書込みフラグ及び制御ユニットを有する。リセットフラグと書込みフラグはバッファ装置に設け、制御ユニットはリセット機能の呼び出し及び書込みフラグの設定を行う。リセット機能の呼び出しにより、バッファ装置をリセットし、処理ユニットを切り換えた後、バッファ装置に格納されたデータを再度読み込む。書込みフラグの設定により、バッファ装置に格納されたデータを保護し、データロスを避ける。 In order to achieve the above object, the buffer reset system of the present invention includes a reset function, a reset flag, a write flag, and a control unit. The reset flag and the write flag are provided in the buffer device, and the control unit calls the reset function and sets the write flag. By calling the reset function, the buffer device is reset, the processing unit is switched, and then the data stored in the buffer device is read again. Setting the write flag protects the data stored in the buffer device and avoids data loss.
本発明のリセット方法は、処理ユニットによるバッファ装置に格納されたデータの処理状況に従い、リセット機能を呼び出して、フラグを確認する。第1処理ユニットよりバッファ装置のデータより読み込んだデータが処理できないとき、制御ユニットによりフラグをリセットした上、リセット機能を呼び出して、第2処理ユニットと第1処理ユニットを切り換えて、第2処理ユニットを第1処理ユニットに置き換えて、バッファ装置に格納されたデータを再度読み出して、処理を行う。データがバッファ装置書き込まれたとき、リセットフラグは偽(False)に設定する。このほか、処理ユニットはバッファ装置に格納されたデータを処理できるか否かを特定できないとき、制御ユニットより書込みフラグを非書込みパラメータ値に設定し、後のデータをバッファ装置への書込みを禁止する。すなわち、データを古いデータに書込みすることができない。処理ユニットによるバッファ装置のデータ処理が可能と確認できたとき、書込みフラグを書込みパラメータ値に設定し、後のデータをバッファ装置への書込みを可能にする。 According to the reset method of the present invention, the reset function is called to check the flag according to the processing status of the data stored in the buffer device by the processing unit. When the data read from the buffer device data from the first processing unit cannot be processed, the control unit resets the flag and calls the reset function to switch between the second processing unit and the first processing unit. Is replaced with the first processing unit, and the data stored in the buffer device is read again to perform processing. When data is written to the buffer device, the reset flag is set to false. In addition, when the processing unit cannot determine whether or not the data stored in the buffer device can be processed, the control unit sets the write flag to the non-write parameter value and prohibits the subsequent data from being written to the buffer device. . That is, data cannot be written to old data. When it is confirmed that the data processing of the buffer device by the processing unit is possible, the write flag is set to the write parameter value, and the subsequent data can be written to the buffer device.
請求項1の発明は、リセットフラグを該バッファ装置に設け、該リセットフラグがリセットパラメータ値に設定されたとき、該バッファ装置をリセットする、
制御ユニットを設け、リセット機能を呼び出す、第1処理ユニットより該バッファ装置のデータを読み込み、該バッファ装置のデータは処理不能のとき、該制御ユニットより、該リセット機能を呼び出して、該バッファ装置をリセットした上、第2処理ユニットを該第1処理ユニットに置き換えて、該第2処理ユニットを該第1処理ユニットに取り変わり、該バッファ装置に格納されたデータを読みこむ、及び書込みフラグを設け、該制御ユニットにより非書込みパラメータ値に設定されたとき、データを該バッファ装置に書き込むことができない、該書込みフラグは制御ユニットにより、書込みパラメータ値に設定したとき、該バッファ装置にデータを書き込むことができることを特徴とするバッファリセットシステムとしている。
請求項2の発明は、該制御ユニットは該第2処理ユニットと該第1処理ユニットの切り換え完了後、該リセットフラグは該バッファ装置をリセットすることなく、非リセットパラメータ値に自動設定されることを特徴とする請求項1記載のバッファリセットシステムとしている。
請求項3の発明は、該制御ユニットは該第2処理ユニットを切り換える前に、該第2処理ユニットの存在を先に検出することを特徴とする請求項1記載のバッファリセットシステムとしている。
請求項4の発明は、該第1処理ユニットと該第2処理ユニットは該バッファ装置に格納されたデータを読み込み及び処理を行った後、データ処理可能か否かに従い、対応した応答メッセージを該制御ユニットに送信し、該制御ユニットは該応答メッセージに基づき、該書込みフラグの設定を行う、もし、該制御ユニットにより該書込みフラグを非書込みパラメータに設定した後、該第1処理ユニット又は該第2処理ユニットは、該バッファ装置に格納されたデータ処理ができるとき、該制御ユニットより該書込みフラグを該書込みパラメータ値に設定し、その後のデータをバッファ装置への書込みを可能にする、もし、該書込みフラグを書込みパラメータ値に設定し、該第1処理ユニット又は該第2処理ユニットより該制御ユニットに応答メッセージの送信がないとき、該制御ユニットは該書込みフラグを設定するため、引き続きその応答メッセージを待機することを特徴とする請求項1記載のバッファリセットシステムとしている。
請求項5の発明は、該バッファ装置はリングバッファ、並びに先入れ先だしリングバッファであることを特徴とする請求項1記載のバッファリセットシステムとしている。
請求項6の発明は、該バッファ装置のリセットとは、該バッファ装置に備える一つの開始指標を該バッファ装置の開始アドレスに戻すことを特徴とする請求項1記載のバッファリセットシステムとしている。
請求項7の発明は、該バッファ装置はリセットフラグ及び書込みフラグを設け、該書込みフラグが非書込みパラメータ値に設定されたとき、バッファ装置にデータを書き込むことができない、該書込みフラグを書込みパラメータ値に設定されたとき、該バッファ装置にデータを書き込むことができる、該リセットフラグをリセットパラメータ値に設定されたとき、該バッファ装置はリセットされる、該方法はさらに以下の手順を含まれる、
処理ユニットによるバッファ装置の読み込み及び処理データ状況に基づき、該リセットデータの設定を行う、そのうち、
第1処理ユニットにより、該バッファ装置より読み込まれたデータの処理ができないとき、該リセットフラグを該リセットパラメータ値に設定し、該バッファ装置をリセットする、並びに該第2処理ユニットの存在を検出することにより、第2処理ユニットと該第1処理ユニットを切り換え完了後、該リセットフラグは非リセットパラメータ値に自動設定され、該第2処理ユニットを該第1処理ユニットに代わって、該バッファ装置に格納されたデータの読み込み及び処理を行うことを特徴とするバッファ装置のリセット方法としている。
請求項8の発明は、該第1処理ユニットと該第2処理ユニットは該バッファ装置に格納されたデータを読み込み及び処理を行った後、データ処理可能か否かに従い、対応した応答メッセージを送信し、該応答メッセージに基づき、該書込みフラグの設定を行う、該書込みフラグを非書込みパラメータ値に設定した後、該第1処理ユニット又は該第2処理ユニットは、該バッファ装置に格納されたデータ処理ができるとき、該書込みフラグを該書込みパラメータ値に設定し、その後のデータをバッファ装置への書込みを可能にする、該第1処理ユニット又は該第2処理ユニットより応答メッセージの送信がないとき、該書込みフラグを設定するため、引き続きその応答メッセージを待機することを特徴とする請求項7記載のバッファ装置のリセット方法としている。
請求項9の発明は、該バッファ装置のリセットとは、該バッファ装置に備える一つの開始指標を該バッファ装置の開始アドレスに戻すことを特徴とする請求項7記載のバッファ装置のリセット方法としている。
請求項10の発明は、該バッファ装置はストリーミングシステムに応用することができることを特徴とする請求項7記載のバッファ装置のリセット方法としている。
The invention of claim 1 provides a reset flag in the buffer device, and resets the buffer device when the reset flag is set to a reset parameter value.
A control unit is provided, and the reset function is called. The data in the buffer device is read from the first processing unit. When the data in the buffer device cannot be processed, the reset function is called from the control unit to After resetting, the second processing unit is replaced with the first processing unit, the second processing unit is replaced with the first processing unit, the data stored in the buffer device is read, and a write flag is provided. Data cannot be written to the buffer device when set to a non-write parameter value by the control unit, and data is written to the buffer device when the write flag is set to a write parameter value by the control unit The buffer reset system is characterized in that
According to a second aspect of the present invention, the reset flag is automatically set to a non-reset parameter value without resetting the buffer device after the control unit completes switching between the second processing unit and the first processing unit. The buffer reset system according to claim 1.
The invention according to claim 3 is the buffer reset system according to claim 1, wherein the control unit detects the presence of the second processing unit before switching the second processing unit.
According to the invention of
A fifth aspect of the present invention is the buffer reset system according to the first aspect, wherein the buffer device is a ring buffer and a first-in first-out ring buffer.
A sixth aspect of the present invention is the buffer reset system according to the first aspect, wherein the reset of the buffer device returns one start index provided in the buffer device to the start address of the buffer device.
In the invention of claim 7, the buffer device is provided with a reset flag and a write flag, and when the write flag is set to a non-write parameter value, data cannot be written to the buffer device. Data can be written to the buffer device when set to, the buffer device is reset when the reset flag is set to a reset parameter value, the method further includes the following steps:
Based on the reading of the buffer device by the processing unit and the processing data status, the reset data is set,
When the data read from the buffer device cannot be processed by the first processing unit, the reset flag is set to the reset parameter value, the buffer device is reset, and the presence of the second processing unit is detected. Thus, after the completion of switching between the second processing unit and the first processing unit, the reset flag is automatically set to a non-reset parameter value, and the second processing unit is replaced with the first processing unit in the buffer device. The buffer device reset method is characterized by reading and processing stored data.
In the invention of claim 8, the first processing unit and the second processing unit read and process the data stored in the buffer device, and then send a corresponding response message according to whether or not the data can be processed. And setting the write flag based on the response message. After setting the write flag to a non-write parameter value, the first processing unit or the second processing unit stores the data stored in the buffer device. When processing is possible, when the response message is not transmitted from the first processing unit or the second processing unit, the write flag is set to the write parameter value, and the subsequent data can be written to the buffer device. 8. The buffer device reset according to claim 7, further comprising waiting for a response message to set the write flag. It is a door way.
The invention of claim 9 is the buffer device reset method according to claim 7, characterized in that the reset of the buffer device returns one start index provided in the buffer device to the start address of the buffer device. .
The invention of
本発明のバッファ装置のリセットシステムとその方法は、リセットフラグを該バッファ装置に設けることにより、二つの処理ユニットを切り換えるとき、バッファ装置のリセットを行う。このように、切り換えた後の処理ユニットは、その前の処理ユニットにより読み込まれ、処理しきれないデータを再度に読み込むことができる。その上、リセットフラグの自動設定により、制御ユニットにシステムリセットの必要性を知ることができる。本発明はさらに、書込みフラグをバッファ装置に書込み、システムはバッファ装置に格納されたデータ処理が可能か否かを確定できないとき、バッファ装置の既存データに後のデータにより上書きされることにより、データロスを避けるため、書込みフラグを非書込みパラメータに設定し、バッファ装置へのデータ書込みを禁止しておく、その後、処理可能な処理ユニットが現れたとき、書込みフラグを書込みパラメータ値に設定し、バッファ装置を通常のリングバッファのように機能させる。これにより、バッファ装置に格納されたデータのデータロスを解消し、バッファ装置の利用効率を向上できる。書込みフラグの初期設定は書込みパラメータ値に設定しておけば、バッファ装置はリングバッファに機能し、データをバッファ装置に書き込まれるとき、処理ユニットの切り替えを可能にする。 The buffer device reset system and method according to the present invention resets the buffer device when the two processing units are switched by providing a reset flag in the buffer device. In this way, the processing unit after switching can be read again by the processing unit that was read before and data that could not be processed. In addition, the control unit can know the necessity of system reset by automatically setting the reset flag. The present invention further writes a write flag to the buffer device, and when the system cannot determine whether the data stored in the buffer device can be processed, the existing data in the buffer device is overwritten by later data, thereby To avoid loss, set the write flag to a non-write parameter and prohibit data writing to the buffer device. Then, when a processing unit that can be processed appears, set the write flag to the write parameter value and Make the device function like a normal ring buffer. Thereby, the data loss of the data stored in the buffer device can be eliminated, and the utilization efficiency of the buffer device can be improved. If the initial setting of the write flag is set to the write parameter value, the buffer device functions as a ring buffer, and the processing unit can be switched when data is written to the buffer device.
図4は、本発明の一好ましい実施例のブロック図である図示のとおり、本発明のバッファ装置システムは、制御ユニット30、リセットフラグ13及び書込みフラグ16を含まれる。リセットフラグ13と書込みフラグ16ともバッファ装置10内部に設ける。制御ユニット30はリセットフラグ(resettable flag)13の状態を確認し、書込みフラグ(overwriteble flag)16の確認及び改変を行い、バッファ装置10のデータの読み取りと書込みを制御する。制御ユニット30により、リセットフラグ13の設定を確認した後、制御30はリセット機能の読み出しを許可し、バッファ装置10のリセットを行う。すなわち、バッファ装置10のリセット開始指標をバッファ装置10の開始アドレスに戻す。このため、第3処理ユニット24は第2処理ユニット22がバッファ装置10より読み込んだデータが処理できないときバッファ装置10従来のデータを再度に読み込み、処理を行う。リセットフラグ13は非リセットパラメータに設定された後、制御ユニット30はバッファ装置10をリセットすることができなくなる。まず、リセットフラグ13を制御ユニット30に設定し、バッファ装置10データが書き込まれることにより、リセットフラグ13は自動的非リセットフラグに設定する。
FIG. 4 is a block diagram of a preferred embodiment of the present invention. As shown, the buffer device system of the present invention includes a
制御ユニット30により、書込みフラグ16を非書込みパラメータ値に設定されたとき、ロジックの”偽”(False)となり、データをバッファ装置10の既存データに書き込むことができない。図5を併せて参照する。書込みフラグ16を非書込みパラメータ値に設定し、データをバッファ装置10に書込み、終了指標がバッファ装置10末端のアドレスに来て、さらにデータをバッファ装置10に書込みすることができない。すなわち、バッファ装置10はすでに古いデータ6を格納されている。書込みフラグ16は非書込みパラメータ値に設定されたとき、新しいデータ8は開始フラグ2についでバッファ装置10容量が満杯に世アルマでバッファ装置10に書込む。すなわち、終了フラグ4をバッファ装置10の後尾部に移動させる。これは第1処理ユニット20が引き続きにデータをバッファ装置10に書き込むことにより、バッファ装置10に格納された従来のデータを上書きされて、第2処理ユニット22又は第3処理ユニット24よりバッファ装置10のデータを読み込むときに、バッファ装置10従来のデータが維持される。制御ユニット30より書込みフラグ16を書込みパラメータ値に設定したとき、ロジックの”真”(True)となり、バッファ装置10にデータ書込みができる。
When the
以下一つの実施例をもって、本発明を説明する。第1処理ユニット20が第1データをバッファ装置10に格納した後、第2処理ユニット22はバッファ装置10の第1データ読み込んで処理を行う。第2処理ユニット22は第1データを処理するときに、応答メッセージを制御ユニット30に送信し、第1データは処理可能なことを制御ユニット30に通知する。第2処理ユニット22は第1データの処理ができるとき、制御ユニット30はデータ処理可能の応答メッセージに従い、書込みフラグを書込みパラメータ値に設定し、第1処理ユニット20によるバッファ装置10へのデータ書込みを許可する。第2処理ユニット22は第1データを処理できないとき、制御ユニット30はバッファ装置10の書込みフラグ16を確認する。もしリセットフラグがロジックの”真”に設定されたとき、バッファ装置10をリセットし、データ処理不能の内容により切り換え応答メッセージを第3処理ユニット24に送信する。すなわち、第2処理ユニット22が第1データを処理できないとき、制御ユニット30は第2処理ユニット22と第3処理ユニット24に切り換えて、第3処理ユニット24を第2処理ユニット22に取り変わる。
The present invention will be described below with one example. After the
このほか、制御ユニット30は駆動メッセージを送信するときもバッファ装置10のリセットを行い、リセットフラグ13をリセットパラメータ値に設定し、バッファ装置10をリセットした上、開始指標をバッファ装置10の第1データの開始アドレスに指す。第3処理ユニット24をバッファ装置10に格納された第1データの開始位置より第1データを読み込み、第3処理ユニット24は第2処理ユニット22がバッファ装置10に格納されたデータを処理できないとき、バッファ装置10の従来のデータが読み込めない問題点を解消し、バッファ装置10の利用効率を向上する。前記したとおり、第2処理ユニット24は第1データを処理するときも、応答メッセージを制御ユニット30に送信し、制御ユニット30により書込みフラグ13を書込みパラメータ値に設定して、第1処理ユニット20に切り換えて、引き続きバッファ装置10への書込みを可能にする。書込みフラグは書込みパラメータ値に設定し、第1処理ユニット20により、バッファ装置10への書込みデータを一杯に書き込んだ後、リセットフラグ13を非リセットパラメータ値に設定する。
In addition, the
その後、第1処理ユニット20もバッファ装置10のデータを処理しきれない、第3処理ユニット24もバッファ装置10のデータを処理しきれないとき、データ処理不能の応答メッセージを制御ユニット30に送信する。その後、他の処理ユニットが空いたとき、制御ユニット30は切り換えメッセージを他の処理ユニットに発信し、第3処理ユニット24を他の処理ユニットに切り換えて、第3処理ユニット24に取り変わる。制御ユニット30はバッファ装置10をリセットした上、リセットフラグ13をリセットパラメータ値に設定する。
Thereafter, when the
図6は、本発明もう一つの一好ましい実施例のブロック図である。図示のとおり、本発明のバッファ装置のリセットシステムはネットワーク上のストリーミングシステムに応用でき、このストリーミングシステムはダウンロードユニット40、第1バッファ装置50、復号モジュール60、第2バッファ装置70、及び再生ユニット80を含まれる。ダウンロードユニット40はインターネットよりネットワークデータをダウンロードして、第1バッファ装置50に書き込む。ネットワークデータはWMA、WMV又はMP3のデータフォーマットもしくはその他任意のフォーマットであっても良い。最初は、復号モジュール60の第1復号ユニット62、第2復号ユニット64と第3復号ユニット66は第1バッファ装置50のネットワークデータが復号可能か否かを知ることができない。第1バッファ装置50の書込みフラグ56を非書込みパラメータに設定することにより、復号ユニットの切り換えが確保される。
FIG. 6 is a block diagram of another preferred embodiment of the present invention. As shown in the figure, the buffer device reset system of the present invention can be applied to a streaming system on a network. The streaming system includes a
復号モジュール60は第1バッファ装置50のネットワークデータの復号に使用する。復号モジュール60の第1復号ユニット62、第2復号ユニット64及び第3復号ユニット66は、WMA、WMV及びMP3のデータフォーマットの復号を行う。第1バッファ装置50にネットワークデータが保存されたとき、第1復号ユニット62は第1バッファ装置50のネットワークデータを読み取る。第1バッファ装置50のネットワークデータはWMAフォーマットのとき、第1復号ユニット62は復号を開始し、処理可能の応答メッセージを制御ユニット30に送信し、制御ユニット30に対して第1復号ユニット62はネットワークデータの復号ができることを知らせる。このとき、制御ユニット30は第1バッファ装置の第1バッファ装置50の書込みフラグ56を書込みパラメータ値に設定し、ダウンロードユニット40は引き続きにネットワークデータを第1バッファ装置50に格納できる。
The decoding module 60 is used for decoding the network data of the
ダウンロードユニット40よりダウンロードしたデータがMP3フォーマットのとき、第1復号ユニット62による復号ができない。このとき、第1復号ユニット62は処理不能の応答メッセージを制御ユニット30に送信し、制御ユニット30に第1復号ユニット62は第1バッファ装置50のインターネットデータの復号ができないことを通知する。制御ユニット30は切り換えメッセージを第2復号ユニット64に送信し、第1復号ユニット62を第2復号ユニット64に切り換えて、第2復号ユニット64を第1復号ユニット62に取り変わる。その上、第1バッファ装置50をリセットし、第2復号ユニット64により第1バッファ装置50従来のネットワークデータを読み込む。すなわち、第1復号ユニット62より読み込み復号不能のネットワークデータ。
When the data downloaded from the
第2復号ユニット64はWMVフォーマットのネットワークデータ復号専用のため、第2復号ユニット64はMP3フォーマットのネットワークデータを復号することができない。このとき、第2復号ユニット64は処理不能の応答メッセージを制御ユニット30に送信し、制御ユニット30より駆動メッセージを第3復号ユニット66に送信することにより、第2復号ユニット64と第3復号ユニット66を切り換えて、第3復号ユニット66を第2復号ユニット64に取り変わる同時に、第1バッファ装置50をリセットし、第3復号ユニット66は第1バッファ装置50に格納されたネットワークデータを読み込む。
Since the second decoding unit 64 is dedicated to decoding WMV format network data, the second decoding unit 64 cannot decode MP3 format network data. At this time, the second decoding unit 64 transmits an unprocessable response message to the
第1バッファ装置50に格納されたネットワークデータのフォーマットは第3復号ユニット66が復号可能なデータフォーマットに一致するため、第3復号ユニット66より、処理可能の応答メッセージを制御ユニット30に送信し、制御ユニット30は応答メッセージに基づき、書込みフラグ56を書込みパラメータ値に設定し、ダウンロードユニット40によるネットワークデータを第1バッファ装置50への格納を許可し、元のネットワークデータに上書きして、第3復号ユニット66は第1バッファ装置50に格納されたネットワークデータを引き続きダウンロードして復号できる。
Since the format of the network data stored in the
ダウンロードユニット40よりダウンロードしたネットワークデータのフォーマットはWMA、WMV及びMP3以外のとき、復号モジュール60に備える復号ユニット62、64、66も第1バッファ装置50に格納されたネットワークデータを復号できない。また、制御ユニット30はこのネットワーク上のストリーミングシステムに他の復号ユニットの存在を検出できないとき、該ネットワークのストリーミングシステムにエラーがあるため、第1バッファ装置50に格納されたネットワークを復号できないことを意味する。
When the format of the network data downloaded from the
前記の第1復号ユニット62、第2復号ユニット64又は第3復号ユニット60はネットワークデータの復号による復号データは第2バッファ装置70に格納される。その後、再生ユニット80より第2バッファ装置70に格納された復号データを読み取り、再生を開始する。この実施例において、復号モジュール60より生成する復号データのフォーマットは、再生ユニット80が再生可能なデータフォーマットに合致するため、第2バッファ装置70によるリセットフラグと書込みフラグのリセットは不要である。この実施例において、書込みフラグの初期設定は、”真”、第2バッファ装置70は従来のリングバッファに相当する。ただし、第2バッファ装置70は他のデータフォーマットにも応用かのうである。
In the
図7は、本発明の一好ましい実施例のフロー図である。説明の便宜上、本実施例は図3に合わせて説明する。システムの処理ユニット22、24はバッファ装置10に格納されたデータを処理可能か否か不明なとき、まずバッファ装置10の書込みフラグ16を非書込みパラメータに設定し、第1処理ユニット20からバッファ装置10への格納を禁止して置き、システムの処理ユニット22、24ともバッファ装置10に格納されたデータを処理できないにも拘らず、第1処理ユニット20が引き続きデータをバッファ装置10に格納し、バッファ装置10の既存データに上書きして、データロスを避ける。手順S10に示すとおり、第1処理ユニット20よりデータをバッファ装置10に書き込むとき、制御ユニット30はバッファ装置10の書込みフラグを非書込みパラメータに設定し、バッファ装置10への書込みを禁止する。
FIG. 7 is a flow diagram of one preferred embodiment of the present invention. For convenience of explanation, this embodiment will be described with reference to FIG. When it is unclear whether or not the data stored in the
第2処理ユニット22はバッファ装置10のデータを読み込んで処理を行うほか、処理データの形態に従い、応答メッセージを制御ユニット30に送信する。制御ユニット30は手順S12に示すとおり、応答メッセージを受信した後、手順S14を実行し、応答メッセージに基づき、第2処理ユニット22はバッファ装置10に格納されたデータの処理可能か否かを確認する。もし、第2処理ユニット22はバッファ装置10に格納されたデータを処理可能な場合、制御ユニット30より手順S16を実行し、書込みフラグ16を書込みパラメータ値に設定し、バッファ装置10によるデータ書込みを可能にして、第2処理ユニット22は引き続きバッファ装置10のデータ読み込み及び処理を許可する。
The
もし、第2処理ユニット22よりデータ処理不能の応答メッセージを発信した場合、制御ユニット30は手順S14を実行するときに、応答メッセージよりその胸を検出し、手順Sl8を実行し、他の処理ユニットの存在を検出する。図3の例として、制御ユニット30は第3処理ユニット24の存在を検出できる。このとき、制御ユニット30は手順S19を実行し、バッファ装置10をリセットし、切り換えメッセージを第3処理ユニット24に送信し、第3処理ユニット24と第2処理ユニット22を切り換えて、第3処理ユニット24よりバッファ装置10の既存データを読み込み及び処理を行う。引き続き、手順S12と手順S14を繰り返して実行する。もし、第3処理ユニット24はバッファ装置10のデータを処理できるとき、手順S16を実行した後、手順S17を実行する。もし第3処理ユニット24も当該データを処理できないとき、手順S18を実行する。このとき、制御ユニット30は他の処理ユニットの存在を検出できないため、手順S20に示すとおり、システムエラーを意味する。バッファ装置10に格納されたデータを処理できない。
If a response message indicating that data processing is not possible is transmitted from the
制御ユニット30は前記の手順S12において、応答メッセージの受信がないとき、制御ユニット30は手順S22を実行し、バッファ装置10は満杯に書き込まれたか否かを確認する。書込みフラグは”偽”と設定されているため、バッファ装置10は一杯まで書き込まれる。一方、バッファ装置10に格納されたデータは処理ユニットによる読み取り情報を含まれていない。バッファ装置10に満杯までデータを書き込まないと、データはさらに書き込まれる(手順S10)ため、再度に確認及び応答メッセージを送信する(手順S12)。もし、バッファ装置10はデータによって一杯に格納されたとき、制御ユニット30は手順S24を実行し、応答メッセージの受信を引き続き待つ。その後、制御ユニット30は応答メッセージを受信した後、手順S26を実行する。この手順は前記の手順S14に同様である。もし、応答メッセージはバッファ装置10に格納されたデータの処理を許可していたとき、手順S16を実行する。もし、応答メッセージはバッファ装置10に格納されたデータ処理不能と回答したとき、手順S18の手順S28を実行する。もし、制御ユニット30は他の処理ユニットの存在を検出できないとき、手順S20に示すとおり、システムエラーを意味する。処理ユニットが存在するとき、手順S29を実行する。この手順は、手順S19に同様である。その後、手順S24を繰り返して実行する。
When the
図8は、本発明もう一つの好ましい実施例のフロー図である。この実施例において、制御ユニット30により、バッファ装置の書込みフラグを書込みパラメータ値に設定した後の処理フローを示す。この実施例も同じく図3と合わせて説明する。バッファ装置10の書込みフラグ16を書込みパラメータ値に設定したため、手順S30に示すとおり、第1処理ユニット20によるバッファ装置10へのデータ書込みを許可する。その後、第2処理ユニット22はバッファ装置10のデータを読み込んで処理を行うほか、処理データの形態に従い、応答メッセージを送信する。手順S32に示すとおり、制御ユニット30は応答メッセージを受信した後、手順S34を実行する。もし、応答メッセージは第2処理ユニット22のバッファ装置10に格納されたデータ処理が可能な場合、手順S36に示すとおり、システム正常を意味する。第2処理ユニット22はバッファ装置10に格納されたデータの読み込み及び処理を引き継ぐ。
FIG. 8 is a flow diagram of another preferred embodiment of the present invention. In this embodiment, the processing flow after the
もし、応答メッセージは第2処理ユニット22によるデータ処理不能と通知したとき、制御ユニット30は手順S38を実行し、他の処理ユニットの存在を検出する。この実施例において、ほかに第3処理ユニット24の存在を検出したため、手順S39を実行し、バッファ装置10を実行し、第3処理ユニット24と第2処理ユニット22を切り換えて、第3処理ユニット24を第2処理ユニット22に取り変わる。切り換えた後、手順S32を繰り返して実行する。もし、第3処理ユニット24もバッファ装置10のデータ処理ができないとき、システムに切り替え可能な処理ユニットが存在していないため、手順S40に示すとおり、システムエラーを表示する。
If the response message notifies that the data processing by the
前記の手順S32において、制御ユニット30は引き続き応答メッセージの受信がないとき、制御ユニット30は手順S42に示すとおり、バッファ装置10は一杯に書き込まれたか否かを確認する。バッファ装置10は満杯でないとき、データをさらに書き込ませて(手順S10)、再度に応答メッセージの確認及び送信を実行する(手順S12)。もし、バッファ装置10は一杯に書き込まれたとき、このシステムは正常であることを判定する。その理由は、初期設定において、書込みフラグ16を書込みパラメータ値に設定することは、このシステムいずれ一つの処理ユニットは、バッファ装置10に格納されたデータを処理できるため、このシステムは正常であることを判定する。本発明における書込みフラグを書込みパラメータ値に設定するとき、必ずしも図5のフローでなくても良い。システムの処理ユニットはバッファ装置に格納されたデータの処理能力が確認されば、書込みフラグを書込みパラメータ値に設定することもできる。
In step S32, when the
1’ バッファ装置
1 終了指標
2 開始フラグ
4 終了フラグ
5’ 開始指標
6 古いデータ
7’ 終了指標
8 新しいデータ
10’ データ
10 バッファ装置
12’ データ
13 リセットフラグ
20’ 第1処理ユニット
16 書込みフラグ
22’ 第2処理ユニット
20 第1処理ユニット
24’ 第3処理ユニット
22 第2処理ユニット
26’ 第4処理ユニット
24 第3処理ユニット
30’ 第1バッファ装置
30 制御ユニット
32’ 第2バッファ装置
40 ダウンロードユニット
2 開始指標
50 第1バッファ装置
53 リセットフラグ
56 書込みフラグ
60 復号モジュール
62 第1復号ユニット
64 第2復号ユニット
66 第3復号ユニット
70 第2バッファ装置
80 再生ユニット
1 'buffer device 1 end index 2
Claims (10)
制御ユニットを設け、リセット機能を呼び出す、第1処理ユニットより該バッファ装置のデータを読み込み、該バッファ装置のデータは処理不能のとき、該制御ユニットより、該リセット機能を呼び出して、該バッファ装置をリセットした上、第2処理ユニットを該第1処理ユニットに置き換えて、該第2処理ユニットを該第1処理ユニットに取り変わり、該バッファ装置に格納されたデータを読みこむ、及び書込みフラグを設け、該制御ユニットにより非書込みパラメータ値に設定されたとき、データを該バッファ装置に書き込むことができない、該書込みフラグは制御ユニットにより、書込みパラメータ値に設定したとき、該バッファ装置にデータを書き込むことができることを特徴とするバッファリセットシステム。 Providing a reset flag in the buffer device, and resetting the buffer device when the reset flag is set to a reset parameter value;
A control unit is provided, and the reset function is called. The data in the buffer device is read from the first processing unit. When the data in the buffer device cannot be processed, the reset function is called from the control unit to After resetting, the second processing unit is replaced with the first processing unit, the second processing unit is replaced with the first processing unit, the data stored in the buffer device is read, and a write flag is provided. Data cannot be written to the buffer device when set to a non-write parameter value by the control unit, and data is written to the buffer device when the write flag is set to a write parameter value by the control unit A buffer reset system characterized by that.
処理ユニットによるバッファ装置の読み込み及び処理データ状況に基づき、該リセットデータの設定を行う、そのうち、
第1処理ユニットにより、該バッファ装置より読み込まれたデータの処理ができないとき、該リセットフラグを該リセットパラメータ値に設定し、該バッファ装置をリセットする、並びに該第2処理ユニットの存在を検出することにより、第2処理ユニットと該第1処理ユニットを切り換え完了後、該リセットフラグは非リセットパラメータ値に自動設定され、該第2処理ユニットを該第1処理ユニットに代わって、該バッファ装置に格納されたデータの読み込み及び処理を行うことを特徴とするバッファ装置のリセット方法。 The buffer device is provided with a reset flag and a write flag, and when the write flag is set to a non-write parameter value, data cannot be written to the buffer device. When the write flag is set to a write parameter value, Data can be written to the buffer device.When the reset flag is set to a reset parameter value, the buffer device is reset. The method further includes the following steps:
Based on the reading of the buffer device by the processing unit and the processing data status, the reset data is set,
When the data read from the buffer device cannot be processed by the first processing unit, the reset flag is set to the reset parameter value, the buffer device is reset, and the presence of the second processing unit is detected. Thus, after the completion of switching between the second processing unit and the first processing unit, the reset flag is automatically set to a non-reset parameter value, and the second processing unit is replaced with the first processing unit in the buffer device. A method for resetting a buffer device, comprising: reading and processing stored data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007003113A JP5118855B2 (en) | 2007-01-11 | 2007-01-11 | Buffer device reset system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007003113A JP5118855B2 (en) | 2007-01-11 | 2007-01-11 | Buffer device reset system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008171168A true JP2008171168A (en) | 2008-07-24 |
JP5118855B2 JP5118855B2 (en) | 2013-01-16 |
Family
ID=39699206
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007003113A Expired - Fee Related JP5118855B2 (en) | 2007-01-11 | 2007-01-11 | Buffer device reset system and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5118855B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08107360A (en) * | 1994-10-07 | 1996-04-23 | Matsushita Electric Ind Co Ltd | Data storage device and data reader |
JP2006120145A (en) * | 1995-07-07 | 2006-05-11 | Oki Data Corp | Method and apparatus for compressing mixed text and image data |
JP2006209687A (en) * | 2005-01-31 | 2006-08-10 | Sony Corp | Data processing circuit |
US20080077760A1 (en) * | 2006-09-26 | 2008-03-27 | David Caldecott Yule | Reset system for buffer and method thereof |
-
2007
- 2007-01-11 JP JP2007003113A patent/JP5118855B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08107360A (en) * | 1994-10-07 | 1996-04-23 | Matsushita Electric Ind Co Ltd | Data storage device and data reader |
JP2006120145A (en) * | 1995-07-07 | 2006-05-11 | Oki Data Corp | Method and apparatus for compressing mixed text and image data |
JP2006209687A (en) * | 2005-01-31 | 2006-08-10 | Sony Corp | Data processing circuit |
US20080077760A1 (en) * | 2006-09-26 | 2008-03-27 | David Caldecott Yule | Reset system for buffer and method thereof |
Also Published As
Publication number | Publication date |
---|---|
JP5118855B2 (en) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7849259B1 (en) | Disk controller response handler for write commands | |
JP2001069440A (en) | Driver | |
JP2006259898A (en) | I/o controller, signal processing system and data transferring method | |
US7568066B2 (en) | Reset system for buffer and method thereof | |
JP5314915B2 (en) | In-vehicle video playback device | |
JP5118855B2 (en) | Buffer device reset system and method | |
US7613867B2 (en) | Information recording apparatus, information recording method and recording medium recording program | |
US20040073649A1 (en) | Stream data processing apparatus | |
US8385725B2 (en) | Method of the apparatus for recording digital multimedia based on buffering states of the multimedia service | |
EP2469858B1 (en) | Apparatus and method for sequentially parsing bitstreams based on removal of emulation prevention byte | |
JP2003209823A (en) | Stream transmission/reception system, and stream transmission/reception method | |
JP2009118354A (en) | Still picture processing apparatus, still picture processing system and still picture processing method | |
US20180052786A1 (en) | Improvement in sending of multimedia streams | |
JP4534940B2 (en) | Information recording apparatus, imaging apparatus, information recording control method, and computer program | |
US8037201B2 (en) | Content holder unit, information processing method, and program | |
JP2019029801A (en) | Reproduction device, control method therefor, and program | |
JP4442153B2 (en) | Storage device, storage system, and communication method | |
JP2012208755A (en) | Audio reproduction device and audio reproduction method | |
US10063941B2 (en) | Method and apparatus for writing images into memory | |
US20080313367A1 (en) | Reproducing device of information storage medium reproducing method thereof | |
JP2001216096A (en) | Storage, storage system using the storage and error occurrence notification method used for the storage and the system | |
US20050174914A1 (en) | Recording/reproducing apparatus | |
US8364838B2 (en) | Method for playing streaming data, electronic device for performing the same and information storage media for storing the same | |
US7839736B2 (en) | CD-audio system having electronic shock protection | |
JP5721790B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM, AND SYSTEM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091222 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111107 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111122 |
|
A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20120221 |
|
A602 | Written permission of extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A602 Effective date: 20120224 |
|
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: 20120925 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121022 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151026 Year of fee payment: 3 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |