JP2010033311A - Communication system - Google Patents

Communication system Download PDF

Info

Publication number
JP2010033311A
JP2010033311A JP2008194560A JP2008194560A JP2010033311A JP 2010033311 A JP2010033311 A JP 2010033311A JP 2008194560 A JP2008194560 A JP 2008194560A JP 2008194560 A JP2008194560 A JP 2008194560A JP 2010033311 A JP2010033311 A JP 2010033311A
Authority
JP
Japan
Prior art keywords
time
processing
low
predetermined time
completion time
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.)
Pending
Application number
JP2008194560A
Other languages
Japanese (ja)
Inventor
Nobuyuki Uchikawa
信幸 内川
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.)
Hitachi Kokusai Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
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 Hitachi Kokusai Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2008194560A priority Critical patent/JP2010033311A/en
Publication of JP2010033311A publication Critical patent/JP2010033311A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication system allowing an application to periodically carry out processing without being influenced by the case where another application causes a device driver to carry out processing that requires a processing time when the application periodically carries out a series of processing including an operating system and the device driver. <P>SOLUTION: The communication system for carrying out a first process 13a required to be periodically carried out at predetermined time intervals, and at least one of low-order processes 13b, 13c lower in priority than the first process, is provided with a process completion time measuring means for measuring the completion time of the low-order process when the low-order process is carried out for the first time, and storing the measured completion time, and a comparing means for comparing the completion time of the low-order process with a predetermined time set by the process completion time measuring means. If the completion time of the low-order process is longer than the predetermined time, the comparing means terminates the low-order process after the lapse of a fixed time equal to or shorter than the predetermined time from the state of executing the low-order process from the next time onward. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、入力端末から入力されたアナログ信号がデジタル信号に変換され、ネットワーク網を介して運ばれたデジタル信号が、出力端末でアナログ信号に変換されて出力される通信システムに関するものである。   The present invention relates to a communication system in which an analog signal input from an input terminal is converted into a digital signal, and a digital signal carried via a network is converted into an analog signal at an output terminal and output.

VoIP通信では、入力端末であるマイクにより拾われた音声波形や、発振器や、CD(Compact Disk)からの音声信号が連続的なアナログ信号として、DSP(Digital Signal Processor)に入力され、時間的に一定の間隔Tsで信号の大きさをサンプリングし、離散的な信号へと変換する。一定のサンプリング周期毎に離散化されたデジタル的な飛び飛びの数値に変換され、離散化されたデジタルデータは符号化される。尚、アナログ信号を一定のサンプリング周期毎に離散化された波の大きさをどれだけ細かいレベル幅で量子化できるかは、A/D変換の際に使用されるビット数により決められる。   In VoIP communication, a voice waveform picked up by a microphone as an input terminal, a voice signal from an oscillator or a CD (Compact Disk) is input as a continuous analog signal to a DSP (Digital Signal Processor), and is temporally changed. The signal magnitude is sampled at a constant interval Ts and converted into a discrete signal. The digitized digital data is encoded by being converted into a digital jumping numerical value that is discretized at a certain sampling period. It should be noted that how fine the level of a wave obtained by discretizing an analog signal at a certain sampling period can be quantized is determined by the number of bits used in A / D conversion.

又、符号化されたデータは、CPU(Central Processing Unit)を有するCPUボードへと処理を引渡される。該CPUボードには、より複雑な制御を行ったり、様々な対外的インタフェースを備えてより多彩な通信を行う為に予め定めたオペレーティングシステムが実装されており、該オペレーティングシステムの管理の下、アプリケーションがDSPからの符号化された音声情報データをIPパケット化し、ネットワーク上に送出する。   The encoded data is transferred to a CPU board having a CPU (Central Processing Unit). A predetermined operating system is mounted on the CPU board in order to perform more complex control or to perform various communication with various external interfaces. Under the management of the operating system, an application Converts the encoded voice information data from the DSP into an IP packet and sends it over the network.

DSPからCPUへ伝達される符号化されたデジタルデータは、例えばDPRAM等のインタフェース媒体を経由して伝達され、DPRAM経由で伝達される場合は、前記DSPから前記DPRAMに音声情報データが書込まれ、前記CPUが前記DPRAMに書込まれた音声情報データを読出し、音声情報データをIPパケット化する。   Encoded digital data transmitted from the DSP to the CPU is transmitted via an interface medium such as DPRAM, for example. When transmitted via DPRAM, audio information data is written from the DSP to the DPRAM. The CPU reads the voice information data written in the DPRAM and converts the voice information data into IP packets.

ネットワーク上に送出されたIPパケットは、VoIP出力端末で受信され、前記DSPにて符号化された方式と同じ方式で複合化され、複合化されたデータは電圧値等の連続したアナログ信号に復元される。又、復元されたアナログ信号が音声信号としてVoIP出力端末より出力されるものである。   The IP packet sent over the network is received by the VoIP output terminal and is compounded by the same method as the method encoded by the DSP, and the compounded data is restored to a continuous analog signal such as a voltage value. Is done. The restored analog signal is output from the VoIP output terminal as an audio signal.

デジタル化され、符号化された音声データをIPパケット化するに当たり、符号化方式G.711(PCM方式:PCM=パルス符号変調、サンプリング周波数:8kHz、情報量:64kbps/チャネル、原理遅延:0.125msec、品質:MOS値で4.10)、G.729(CS−ACELP方式:Conjugate Structure Algebraic Code Excited Linear Prediction、サンプリング周波数:8kHz、情報量:8kbps/チャネル、フレーム長:10msec、原理遅延:15msec、品質:MOS値で3.9)等を使用するが、符号化方式G.711、G.729ではそれぞれ20ms周期で音声をパケット化してネットワーク上に送出すことを前提としている。これはDSPから符号化されたデータをCPUにてIPパケット化してネットワーク上に送出する周期が20msであることを意味している。尚、20msという周期を一時的に変えることも可能である。   In converting the digitized and encoded voice data into IP packets, the encoding scheme G. 711 (PCM method: PCM = pulse code modulation, sampling frequency: 8 kHz, information amount: 64 kbps / channel, principle delay: 0.125 msec, quality: MOS value 4.10), G.711. 729 (CS-ACELP system: Conjugate Structure Algebraic Code Excited Linear Prediction, sampling frequency: 8 kHz, information amount: 8 kbps / channel, frame length: 10 msec, principle delay: 15 msec, quality: 3.9 in MOS value), etc. Encoding scheme G. 711, G.G. 729 is based on the premise that voice is packetized and transmitted over the network at a cycle of 20 ms. This means that the period in which the data encoded from the DSP is IP packetized by the CPU and sent over the network is 20 ms. It is possible to temporarily change the period of 20 ms.

前記DSPから送られた符号化されたデータを、前記CPUにてIPパケット化してネットワークに送出す一連の処理を、予め定めたオペレーティングシステムが実装されたCPUボードで処理する場合、アプリケーション、オペレーティングシステム、デバイスドライバでこれら一連の処理を担う必要がある。   In a case where a series of processes in which encoded data sent from the DSP is converted into IP packets by the CPU and sent to the network are processed by a CPU board on which a predetermined operating system is mounted, an application, an operating system The device driver needs to perform a series of these processes.

前記アプリケーションからの指示の下、前記オペレーティングシステム経由で前記デバイスドライバが前記DSPとのインタフェースデバイスから符号化されたデータを読出して前記アプリケーションへとデータを引渡し、該アプリケーションでIPパケット化の加工を行い、再び前記オペレーティングシステム経由でデバイスドライバがパケットをネットワークに送出す。   Under the instruction from the application, the device driver reads the encoded data from the interface device with the DSP via the operating system, delivers the data to the application, and processes the IP packetization by the application. The device driver sends a packet to the network again via the operating system.

この時、通常のオペレーティングシステムでは、デバイスドライバの処理時間が長時間に渡っても処理が完全に終了するまでアプリケーションに制御が戻ってこない為、該アプリケーションが音声パケットを20ms間隔で周期的にネットワーク上に送出す様にプログラムされていても、前記オペレーティングシステムを含めた前記デバイスドライバの処理時間が前記アプリケーションとして許容できる範囲内で作動しなければ、設定した20msという時間が守れなくなるという問題がある。   At this time, in a normal operating system, even if the processing time of the device driver is long, the control does not return to the application until the processing is completely completed. Therefore, the application periodically sends voice packets to the network at intervals of 20 ms. Even if it is programmed to be sent out, if the processing time of the device driver including the operating system does not operate within the allowable range for the application, the set time of 20 ms cannot be maintained. .

前記デバイスドライバの処理に時間が掛かりすぎると、符号化されたデータからIPパケット化までの流れに揺らぎが発生する可能性があり、又他のアプリケーションの動作に影響を及ぼす虞があった。   If the processing of the device driver takes too much time, there is a possibility that the flow from the encoded data to the IP packetization may occur, and the operation of other applications may be affected.

尚、VoIP通信を使用した通信システムとしては、特許文献1に示されるものがある。   A communication system using VoIP communication is disclosed in Patent Document 1.

特開2007−228461号公報JP 2007-228461 A

本発明は斯かる実情に鑑み、アプリケーションがオペレーティングシステム、デバイスドライバを含む一連の処理で周期的に実行する際、他のアプリケーションからデバイスドライバに対して処理時間を要する処理を実行させた場合でも、先のアプリケーションがその影響を受けることなく周期的に処理を実行できる通信システムを提供するものである。   In view of such circumstances, the present invention periodically executes a series of processes including an operating system and a device driver, even when a process that requires processing time is executed from another application to the device driver. It is an object of the present invention to provide a communication system that can execute processing periodically without being affected by the previous application.

本発明は、所定時間間隔で周期的に実行する必要のある第1のプロセスと、該第1のプロセスよりも優先度の低い少なくとも1つの下位プロセスを実行する通信システムであって、該下位プロセスの初回実行時に該下位プロセスの完了時間を計測し、計測した完了時間を保存するプロセス完了時間測定手段と、該プロセス完了時間測定手段によって設定された所定時間と比較する比較手段とを具備し、該比較手段は前記下位プロセスの完了時間が所定時間よりも長ければ、次回以降は前記下位プロセスの実行開始から所定時間と同じか、或は所定時間よりも短い一定時間経過後に前記下位プロセスを終了する通信システムに係るものである。   The present invention is a communication system that executes a first process that needs to be periodically executed at predetermined time intervals and at least one lower process having a lower priority than the first process, the lower process A process completion time measuring means for measuring the completion time of the lower-level process at the first execution of the process, and storing the measured completion time, and a comparison means for comparing with a predetermined time set by the process completion time measurement means, If the completion time of the lower process is longer than a predetermined time, the comparison means ends the lower process after a predetermined time that is the same as the predetermined time from the start of the execution of the lower process, or shorter than the predetermined time. The present invention relates to a communication system.

本発明によれば、所定時間間隔で周期的に実行する必要のある第1のプロセスと、該第1のプロセスよりも優先度の低い少なくとも1つの下位プロセスを実行する通信システムであって、該下位プロセスの初回実行時に該下位プロセスの完了時間を計測し、計測した完了時間を保存するプロセス完了時間測定手段と、該プロセス完了時間測定手段によって設定された所定時間と比較する比較手段とを具備し、該比較手段は前記下位プロセスの完了時間が所定時間よりも長ければ、次回以降は前記下位プロセスの実行開始から所定時間と同じか、或は所定時間よりも短い一定時間経過後に前記下位プロセスを終了するので、該下位プロセスの処理時間が所定時間より長かったとしても、前記第1のプロセスが前記下位プロセスの影響を受けることなく、又簡単な修正で周期的な処理の実行を実現できる。   According to the present invention, there is provided a communication system that executes a first process that needs to be periodically executed at predetermined time intervals and at least one lower process having a lower priority than the first process, A process completion time measuring means for measuring a completion time of the lower process at the first execution time of the lower process and storing the measured completion time; and a comparing means for comparing with a predetermined time set by the process completion time measurement means If the completion time of the lower process is longer than a predetermined time, the comparing means will perform the lower process after the elapse of a fixed time that is the same as the predetermined time from the start of the execution of the lower process or shorter than the predetermined time. Therefore, even if the processing time of the lower process is longer than a predetermined time, the first process may be affected by the lower process. Without also possible to realize the execution of periodic treatment with simple modification.

以下、図面を参照しつつ本発明を実施する為の最良の形態を説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

図1は、本発明に於ける通信システムの構成を示す図である。   FIG. 1 is a diagram showing a configuration of a communication system according to the present invention.

同図のシステムは、入力端末としての発振器1がアナログ信号2をDSPボード3に出力し、該DSPボード3は内部バス4を介してCPUが搭載されたCPUボード5と接続され、該CPUボード5はEthernet(登録商標)6によってネットワーク網7に接続され、該ネットワーク網7を介して出力端末8に接続されて構成されている。   In the system shown in FIG. 1, an oscillator 1 as an input terminal outputs an analog signal 2 to a DSP board 3, and the DSP board 3 is connected to a CPU board 5 on which a CPU is mounted via an internal bus 4. 5 is connected to the network 7 by the Ethernet (registered trademark) 6 and connected to the output terminal 8 through the network 7.

前記発振器1は、マイクより拾われた音声波形、発振器やCDからの音声信号を、全て電圧の変化、前記アナログ信号2として、前記DSPボード3へ出力し、該DSPボード3は、入力された前記アナログ信号2をデジタル信号に変換し、変換したデジタル信号を符号化する。前記内部バス4は、前記DSPボード3から符号化されたデジタルデータを前記CPUボード5へ伝送し、又該CPUボード5から前記DSPボード3に対してパラメータ設定情報を伝送するインタフェースであり、前記CPUボード5は、符号化されたデータをRTP(real−time transport protocol RFC 1889/RFC 3350)を使用してIPパケット化し、音声パケットデータとして出力する。   The oscillator 1 outputs the audio waveform picked up from the microphone and the audio signal from the oscillator and the CD to the DSP board 3 as the voltage change, the analog signal 2, and the DSP board 3 is inputted. The analog signal 2 is converted into a digital signal, and the converted digital signal is encoded. The internal bus 4 is an interface for transmitting digital data encoded from the DSP board 3 to the CPU board 5 and transmitting parameter setting information from the CPU board 5 to the DSP board 3. The CPU board 5 converts the encoded data into an IP packet using RTP (real-time transport protocol RFC 1889 / RFC 3350), and outputs the packet as voice packet data.

前記音声パケットデータは、前記Ethernet6を介して前記ネットワーク網7へと伝送され、該ネットワーク網7を介して、前記音声パケットデータを前記出力端末8へと伝送している。又、前記音声パケットデータを受取った前記出力端末8は、前記DSPボード3で符号化された方式と同じ方式を以て複合化し、複合化されたデータは電圧値等の連続した前記アナログ信号2に復元される。最後に、復元された該アナログ信号2は、音声信号として前記出力端末8より出力され、通信が成立する。   The voice packet data is transmitted to the network 7 via the Ethernet 6, and the voice packet data is transmitted to the output terminal 8 via the network 7. The output terminal 8 that has received the voice packet data is compounded by the same method as that encoded by the DSP board 3, and the combined data is restored to the continuous analog signal 2 such as a voltage value. Is done. Finally, the restored analog signal 2 is output as an audio signal from the output terminal 8, and communication is established.

次に、図2に於いて、前記DSPボード3と前記CPUボード5間のデータ通信について説明する。   Next, referring to FIG. 2, data communication between the DSP board 3 and the CPU board 5 will be described.

前記DSPボード3は、主に前記アナログ信号2を受取るA/D変換部9と、該A/D変換部9と接続された信号処理部11と、該信号処理部11で処理されたデータを格納し、該データを前記CPUボード5に送出する機能を持つDPRAM12で構成されている。   The DSP board 3 mainly includes an A / D conversion unit 9 that receives the analog signal 2, a signal processing unit 11 connected to the A / D conversion unit 9, and data processed by the signal processing unit 11. The DPRAM 12 has a function of storing and sending the data to the CPU board 5.

前記CPUボード5はCPU及び記憶部等を具備し、該記憶部にはアプリケーション13、オペレーティングシステム14、デバイスドライバ15、プロセス完了時間測定プログラム、所定時間比較プログラムが格納されている。又、前記CPUと前記記憶部と前記プロセス完了時間測定プログラムによって完了時間測定手段が構成され、前記CPUと前記記憶部と前記所定時間比較プログラムによって比較手段が構成されている。前記DPRAM12からの信号は、前記内部バス4より前記デバイスドライバ15を介して入力され、又該デバイスドライバ15は前記Ethernet6にデジタル信号を出力している。   The CPU board 5 includes a CPU and a storage unit, and the storage unit stores an application 13, an operating system 14, a device driver 15, a process completion time measurement program, and a predetermined time comparison program. The CPU, the storage unit, and the process completion time measurement program constitute completion time measuring means, and the CPU, the storage unit, and the predetermined time comparison program constitute comparison means. A signal from the DPRAM 12 is input from the internal bus 4 via the device driver 15, and the device driver 15 outputs a digital signal to the Ethernet 6.

前記発振器1より発振されたアナログ信号2は、前記A/D変換部9にて前記アナログ信号2をデジタル化する為に、先ず時間的に一定の間隔Tsで信号の大きさをサンプリングし、離散的なデジタル信号に変換する。サンプリングするに当たっては、通常は前記アナログ信号2に含まれる最大周波数の2倍以上のサンプリング周波数でサンプリングする。   The analog signal 2 oscillated from the oscillator 1 is first sampled at a certain time interval Ts in order to digitize the analog signal 2 by the A / D conversion unit 9 and discrete. To a typical digital signal. In sampling, sampling is usually performed at a sampling frequency that is twice or more the maximum frequency included in the analog signal 2.

前記A/D変換部9にてデジタル信号に変換された後、一定のサンプリング周期毎に離散化されたそれぞれの波形の大きさは、次にデジタル的な飛び飛びの数値に量子化される。又、波の大きさをどれだけ細かいレベル幅で量子化できるかは、前記A/D変換の際に使用されるビット数で決まる。   After being converted into a digital signal by the A / D converter 9, the magnitudes of the respective waveforms discretized at fixed sampling periods are then quantized into digital jump values. Also, how fine the level of the wave can be quantized is determined by the number of bits used in the A / D conversion.

前記A/D変換部9で量子化されたデータは、前記信号処理部11で符号化される。符号化方式としては、G.711、G.729等がある。   The data quantized by the A / D conversion unit 9 is encoded by the signal processing unit 11. As an encoding method, G.I. 711, G.G. 729 etc.

前記信号処理部11で符号化されたデジタルデータは、前記CPUボード5での処理によりIPパケット化される為、一度前記DPRAM12へと格納される。該DPRAM12に格納されたデジタルデータは、IPパケット化する為に前記内部バス4を経由して前記CPUボード5へと伝送される。   The digital data encoded by the signal processing unit 11 is stored in the DPRAM 12 once because it is IP packetized by the processing by the CPU board 5. The digital data stored in the DPRAM 12 is transmitted to the CPU board 5 via the internal bus 4 for IP packetization.

前記アプリケーション13は、前記オペレーティングシステム14を経由して前記デバイスドライバ15にアクセスし、該デバイスドライバ15が前記内部バス4を通じて読出したデジタルデータを受取る。前記アプリケーション13では、符号化されたデジタルデータをIPパケット化するに当たり、ストリームをリアルタイムで運ぶ為のプロトコルとして、IETFで標準化されているRTPを用いる。尚、RTPパケットはRTPヘッダを含み、RTPヘッダの中にはペイロード種別、音声化された順番を示すシーケンス番号、音声パケットの送信間隔であるタイムスタンプ等の情報が含まれている。   The application 13 accesses the device driver 15 via the operating system 14 and receives digital data read by the device driver 15 through the internal bus 4. The application 13 uses RTP standardized by IETF as a protocol for carrying the stream in real time when the encoded digital data is converted into IP packets. The RTP packet includes an RTP header, and the RTP header includes information such as a payload type, a sequence number indicating the order of voice conversion, and a time stamp that is a transmission interval of the voice packet.

RTPヘッダに符号化されたデジタルデータを、タイムスタンプに応じた情報量でペイロードとして付与し、音声パケットとして前記アプリケーション13から前記オペレーティングシステム14、前記デバイスドライバ15を経由して、前記Ethernet6へと送出される。   The digital data encoded in the RTP header is added as a payload with an information amount corresponding to the time stamp, and is sent as an audio packet from the application 13 to the Ethernet 6 via the operating system 14 and the device driver 15. Is done.

次に、図3、図4に於いて、前記CPUボード5内部の動作、及び周期的処理を実現する為の前記デバイスドライバ15の処理フローを説明する。   Next, referring to FIG. 3 and FIG. 4, the operation of the CPU board 5 and the processing flow of the device driver 15 for realizing periodic processing will be described.

前記CPUボード5内部では、符号化されたデジタルデータを音声パケットデータに加工、或は前記DSPボード3に対してパラメータの設定変更等を行う為、プロセス13a〜プロセス13cが、前記オペレーティングシステム14の管理の下、順次動作している。尚、同時に複数の音声パケットデータを扱う際には、扱う数に応じてプロセスの数も増加する。   In the CPU board 5, in order to process the encoded digital data into voice packet data, or to change parameter settings for the DSP board 3, the processes 13a to 13c are executed by the operating system 14. It operates sequentially under management. When a plurality of voice packet data are handled at the same time, the number of processes increases according to the number handled.

又、前記プロセス13aが符号化方式G.711の下、音声パケット化の作業を実行するとした場合、該プロセス13aは、前記プロセス13b、前記プロセス13cがアクセスしている前記デバイスドライバ15に対して処理負荷が掛かる処理を実施する、しないに拘わらず、20ms周期で動作しなければならない。   In addition, the process 13a includes the encoding method G. If the voice packetization work is to be executed under H.711, the process 13a performs a process that places a processing load on the device driver 15 accessed by the process 13b and the process 13c. Regardless, it must operate with a 20 ms period.

然し乍ら、前記プロセス13a〜前記プロセス13cは、前記オペレーティングシステム14を経由せずに前記デバイスドライバ15にアクセスすることはできない為、前記プロセス13b、前記プロセス13cが、前記デバイスドライバ15に対して処理負荷が掛かる処理を実施し、処理時間が長くなった場合には、前記プロセス13aが20ms周期で動作できなくなる虞がある。   However, since the process 13a to the process 13c cannot access the device driver 15 without going through the operating system 14, the process 13b and the process 13c have a processing load on the device driver 15. When the processing takes time and the processing time becomes long, the process 13a may not be able to operate at a cycle of 20 ms.

尚、本発明では、処理負荷の掛かる処理を実行した場合にも、全体の処理周期が所定時間周期、例えば20ms周期で1動作する様にする為、前記プロセス完了時間測定手段によって前記処理がどの程度の時間が掛かるのかを測定し、測定した時間が20msよりも長いのか、或は短いのかを前記比較手段によって比較し、第1のプロセスである前記プロセス13aが前記処理に掛かる時間を許容できるか否かを決定する。   In the present invention, even when a process with a heavy processing load is executed, the process completion time measurement means determines which process is performed so that the entire process period is one operation at a predetermined time period, for example, a 20 ms period. It is possible to measure whether it takes a certain amount of time, and to compare whether the measured time is longer or shorter than 20 ms by the comparison means, and allow the time that the process 13a as the first process takes for the processing. Determine whether or not.

先ず、前記プロセス13b、前記プロセス13cが前記デバイスドライバ15に対して処理負荷の掛かる処理を実施する場合の初回の動作について説明する。   First, the first operation when the process 13b and the process 13c implement processing that places a processing load on the device driver 15 will be described.

前記プロセス13bと前記プロセス13cが前記デバイスドライバ15にアクセスする際に、引数として前記アプリケーション13が許容すべき時間(20ms)を引渡す。前記デバイスドライバ15は処理を実行する前に現在の時間を記録する(STEP:1)。次に、一連のプロセスが初回であるかどうかを判断する(STEP:2)。初回に関しては実処理時間が不明な為、書込みや読出し等デバイスへアクセスし、処理が完了するまで実行する(STEP:3)。STEP:3完了後、処理終了後の時間を取得し(STEP:4)、STEP:1で記録した処理開始前の時間との差分から処理時間を算出する(STEP:5)。STEP:5で算出した処理時間と、前記デバイスドライバ15にアクセスした際に引数として引渡された許容時間とを比較し、前記プロセス13bと前記プロセス13cの処理時間を前記アプリケーション13が許容できるかをチェックし(STEP:6)、許容時間よりも時間が経過していた場合には、前記デバイスドライバ15の内部で管理している、次回から一定時間処理をしたらCPUを開放するルーチンを通る為のフラグをONに設定し(STEP:7)、処理を完了する。   When the process 13b and the process 13c access the device driver 15, the time to be allowed by the application 13 (20 ms) is delivered as an argument. The device driver 15 records the current time before executing the process (STEP: 1). Next, it is determined whether a series of processes is the first time (STEP: 2). Since the actual processing time is unknown for the first time, access is made to the device such as writing or reading, and the processing is executed until the processing is completed (STEP: 3). After completion of STEP: 3, the time after the end of the process is acquired (STEP: 4), and the processing time is calculated from the difference from the time before the start of processing recorded in STEP: 1 (STEP: 5). STEP: The processing time calculated in 5 is compared with the allowable time delivered as an argument when accessing the device driver 15, and it is determined whether the processing time of the process 13b and the process 13c can be permitted by the application 13. Check (STEP: 6), and if the time has passed after the permissible time, it is managed in the device driver 15 for passing through a routine for releasing the CPU after processing for a certain time from the next time. The flag is set to ON (STEP: 7), and the process is completed.

次に、STEP:7で2回目以降の動作について説明する。   Next, the second and subsequent operations will be described in STEP: 7.

2回目以降の動作に関しては、初回であるかどうかをチェックするSTEP:2を通過し、次に前記プロセス13bと前記プロセス13cの処理時間は、前記アプリケーション13の許容時間を考慮する必要があるかをチェックし(STEP:8)、考慮する必要がなければそのまま処理を続け、アプリケーションの許容時間を考慮する必要がある、即ちSTEP:7のフラグをONに設定したのであれば、一定時間処理をしたらCPUを開放するルーチンを通る為のフラグをOFFにする引数を引渡さない限り、STEP:8にて分岐をし、書込みや読出し等デバイスへのアクセスを行い、一定時間処理をしたらCPUを開放する(STEP:9)処理を、全工程が終了するまで実行し続ける。   Regarding the second and subsequent operations, whether or not it is the first time passes through STEP: 2, and next, whether the processing time of the process 13b and the process 13c needs to consider the allowable time of the application 13 (STEP: 8), and if it is not necessary to consider, the processing is continued as it is, and it is necessary to consider the allowable time of the application. That is, if the flag of STEP: 7 is set to ON, the processing is performed for a certain period of time. Then, unless the argument for turning off the flag for passing through the routine for releasing the CPU is handed over, branch at STEP: 8, access to the device such as writing or reading, and release the CPU after processing for a certain period of time. (STEP: 9) The processing is continued until all the steps are completed.

又、前記プロセス13b、前記プロセス13cの何れか、或は双方が一時的にCPUを開放した後に前記プロセス13aが処理を実行する為、前記オペレーティングシステム14は各プロセスの優先度を変更できる機能を有している。   Since the process 13a executes processing after either or both of the process 13b and the process 13c temporarily release the CPU, the operating system 14 has a function of changing the priority of each process. Have.

上記の処理を実行することで、処理時間の掛かる前記プロセス13b、前記プロセス13cが一時的にCPUを開放し、前記プロセス13aが処理を実行することができるので、該プロセス13aが20msという周期を守ることができる。   By executing the above processing, the process 13b and the process 13c, which take processing time, temporarily release the CPU, and the process 13a can execute the processing. Therefore, the process 13a has a cycle of 20 ms. I can protect it.

以上の様に、本発明に於ける前記デバイスドライバ15の処理を実行することで、符号化されたデジタルデータをIPパケット化する際の流れに揺らぎを生じさせることなく、又前記デバイスドライバ15の処理に時間を掛けすぎることで他のプロセスの動作に影響を与えることなく通信を行うことが可能となる。   As described above, by executing the process of the device driver 15 in the present invention, the flow of the encoded digital data into the IP packet is not fluctuated, and the device driver 15 By taking too much time for processing, it becomes possible to perform communication without affecting the operation of other processes.

尚、本発明はVoIP通信だけではなく、他の周期的な処理を要求されるシステムに関しても適用可能であることは言う迄もない。   Needless to say, the present invention is applicable not only to VoIP communication but also to a system that requires other periodic processing.

本発明の実施の形態を示す通信システムの構成図である。It is a block diagram of the communication system which shows embodiment of this invention. 本発明のDSPボードとCPUボード間の通信構成を示す説明図である。It is explanatory drawing which shows the communication structure between the DSP board and CPU board of this invention. 本発明のCPUボード内の動作を示す説明図である。It is explanatory drawing which shows operation | movement within the CPU board of this invention. 本発明の実施の形態に於ける周期的処理を実現する為の動作処理を示すフローチャートである。It is a flowchart which shows the operation | movement process for implement | achieving the periodic process in embodiment of this invention.

符号の説明Explanation of symbols

1 発振器
2 アナログ信号
3 DSPボード
5 CPUボード
8 出力端末
9 A/D変換部
11 信号処理部
12 DPRAM
13 アプリケーション
14 オペレーティングシステム
15 デバイスドライバ
DESCRIPTION OF SYMBOLS 1 Oscillator 2 Analog signal 3 DSP board 5 CPU board 8 Output terminal 9 A / D conversion part 11 Signal processing part 12 DPRAM
13 Application 14 Operating System 15 Device Driver

Claims (1)

所定時間間隔で周期的に実行する必要のある第1のプロセスと、該第1のプロセスよりも優先度の低い少なくとも1つの下位プロセスを実行する通信システムであって、該下位プロセスの初回実行時に該下位プロセスの完了時間を計測し、計測した完了時間を保存するプロセス完了時間測定手段と、該プロセス完了時間測定手段によって設定された所定時間と比較する比較手段とを具備し、該比較手段は前記下位プロセスの完了時間が所定時間よりも長ければ、次回以降は前記下位プロセスの実行開始から所定時間と同じか、或は所定時間よりも短い一定時間経過後に前記下位プロセスを終了することを特徴とする通信システム。   A communication system that executes a first process that needs to be periodically executed at a predetermined time interval and at least one lower process having a lower priority than the first process, the first process being executed for the first time A process completion time measuring means for measuring the completion time of the subordinate process and storing the measured completion time; and a comparison means for comparing with a predetermined time set by the process completion time measuring means. If the completion time of the lower process is longer than a predetermined time, the lower process is terminated after the elapse of a fixed time that is the same as the predetermined time from the start of execution of the lower process or shorter than the predetermined time. A communication system.
JP2008194560A 2008-07-29 2008-07-29 Communication system Pending JP2010033311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008194560A JP2010033311A (en) 2008-07-29 2008-07-29 Communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008194560A JP2010033311A (en) 2008-07-29 2008-07-29 Communication system

Publications (1)

Publication Number Publication Date
JP2010033311A true JP2010033311A (en) 2010-02-12

Family

ID=41737710

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008194560A Pending JP2010033311A (en) 2008-07-29 2008-07-29 Communication system

Country Status (1)

Country Link
JP (1) JP2010033311A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018088038A (en) * 2016-11-28 2018-06-07 Necネットワーク・センサ株式会社 Processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018088038A (en) * 2016-11-28 2018-06-07 Necネットワーク・センサ株式会社 Processing device

Similar Documents

Publication Publication Date Title
JP6127476B2 (en) Method and apparatus for measuring delay in network music session
US7532580B2 (en) Gateway apparatus, communication system, and delay measurement method
JP2003173301A5 (en)
CN113992472B (en) Working method and system of FlexRay bus IP core
US7605736B2 (en) A/D converter and duty control method of sampling clock
US20070189400A1 (en) Digital signal processing apparatus
CN107453936A (en) A kind of method and gateway device for diagnosing voice delay time
JP5012009B2 (en) Transmission quality measuring device, transmission quality measuring method, and transmission quality measuring system
JP2010033311A (en) Communication system
JP4826575B2 (en) DELAY TIME MEASUREMENT METHOD, PACKET RELAY DEVICE, DELAY TIME MEASUREMENT DEVICE, AND PROGRAM
JPWO2008114450A1 (en) Measuring method, measuring apparatus and computer program
JP2009060249A (en) Field apparatus, and field bus controller
JP2011004200A (en) Packet analysis method, program and device
Yen et al. Qos-reconfigurable web services and compositions for high-assurance systems
US20090190575A1 (en) Packet capturing apparatus, packet capturing method and packet capturing program
JP2002290436A (en) Voice communication device, its method and recording medium with its program recorded
JP4606338B2 (en) Detection method and detection apparatus
JP4678440B2 (en) Audio data decoding device
KR20020070860A (en) Analog/digital converter
US20040027235A1 (en) Communication method
JP4536415B2 (en) Basic data device, program, voice quality calculation method, and voice quality calculation system
Pang et al. Analysis of the latency of SIP phone based on the embedded system
CN114500679B (en) can protocol conversion method, can protocol conversion device, electronic equipment and storage medium
WO2011096182A1 (en) Audio processing system
JP2009010759A (en) Serial signal conversion apparatus and serial signal conversion method