[go: up one dir, main page]

JPH09259054A - Method, device, and system for communication - Google Patents

Method, device, and system for communication

Info

Publication number
JPH09259054A
JPH09259054A JP8089991A JP8999196A JPH09259054A JP H09259054 A JPH09259054 A JP H09259054A JP 8089991 A JP8089991 A JP 8089991A JP 8999196 A JP8999196 A JP 8999196A JP H09259054 A JPH09259054 A JP H09259054A
Authority
JP
Japan
Prior art keywords
data
application software
identification information
application
communication
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
JP8089991A
Other languages
Japanese (ja)
Inventor
Kazuyasu Imahashi
一泰 今橋
Toshiaki Setogawa
俊明 瀬戸川
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP8089991A priority Critical patent/JPH09259054A/en
Publication of JPH09259054A publication Critical patent/JPH09259054A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable one application to use plural kinds of physical interfaces without discriminating a data format viewed from the application according to the kinds of the physical interfaces in use and to enable plural applications to use one physical interface irrelevantly to the kind of the physical interface. SOLUTION: Data transmission equipments 10A and 10B compose data, generated by adding the application ID of an application on a data reception side to a data text body, in the data format corresponding to the communication protocol of physical interfaces to be used and send the data. Data reception equipments 20A-20E decide the application ID in the received data and pass the data text body in the received data to applications corresponding to the application ID.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、複数の機器間で複
数種類の物理インタフェースを使用する場合あるいは複
数のアプリケーションソフトウェアが一つの物理インタ
フェースを使用する場合に適した通信方法、通信装置お
よび通信システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication method, a communication device and a communication system which are suitable when a plurality of types of physical interfaces are used between a plurality of devices or when a plurality of application software use a single physical interface. Regarding

【0002】[0002]

【従来の技術】従来より、複数の機器間で通信を行う場
合の物理的な通信路を形成する物理インタフェースとし
ては、一対一の通信に利用されるシリアルインタフェー
スのRS−232Cや、バスに接続された多数の機器間
での通信を可能にするバス型LAN(ローカル・エリア
・ネットワーク)に利用されるEthernet(イー
サネット)等、多数の種類が存在している。これらの物
理インタフェースにはそれぞれ利点,欠点がある。例え
ば、RS−232Cは一対一の通信しかできないという
欠点があるが、一般に広く使用されているという利点が
あり、Ethernetはバス形式によって一つのネッ
トワークに多数の機器をつなぐことができ、これらの多
数の機器間での通信が可能であるという利点があるが、
通信のための回路が複雑になったり回路規模が大きくな
ったりするという欠点がある。従って、一般的には、通
信システムにおいて何に重点を置くか等によっていずれ
かの種類の物理インタフェースが選択される。従って、
従来は一つの機器が他の機器との通信のための通信路と
して複数種類の物理インタフェースを使用することはほ
とんどなかった。また、例え、一つの機器が複数の物理
インタフェースに接続されていたとしても、その機器の
アプリケーションソフトウェア(以下、単にアプリケー
ションとも言う。)によって使い分けられるか排他的に
使用されるかされており、一つのアプリケーションが同
一のデータフォーマットで複数の物理インタフェースを
使用することはなかった。
2. Description of the Related Art Conventionally, as a physical interface that forms a physical communication path when communication is performed between a plurality of devices, a serial interface RS-232C used for one-to-one communication or a bus is used. There are many types such as Ethernet (Ethernet) used for a bus type LAN (Local Area Network) that enables communication between a large number of connected devices. Each of these physical interfaces has advantages and disadvantages. For example, RS-232C has a drawback that it can perform only one-to-one communication, but has an advantage that it is widely used, and Ethernet can connect a large number of devices to one network by a bus format. Although there is an advantage that communication between devices of
There is a drawback that the circuit for communication becomes complicated and the circuit scale becomes large. Therefore, generally, any type of physical interface is selected depending on what is emphasized in the communication system. Therefore,
Conventionally, one device rarely uses a plurality of types of physical interfaces as a communication path for communication with another device. In addition, even if one device is connected to a plurality of physical interfaces, it may be selectively used or exclusively used depending on the application software of the device (hereinafter, also simply referred to as an application). No single application used multiple physical interfaces with the same data format.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、例えば
一つの機器が他の複数の機器と通信を行うような場合、
前述のように各種類の物理インタフェースにはそれぞれ
利点,欠点があるため、一種類の物理インタフェースに
統一することが困難で、通信相手の機器あるいはアプリ
ケーションに応じて、複数種類の物理インタフェースを
選択的に使用したい場合がある。一方、少なくとも受信
側の機器が複数のアプリケーションを有している場合に
は、送信側では受信側のアプリケーションを特定する必
要が生じる。
However, for example, when one device communicates with a plurality of other devices,
As described above, each type of physical interface has its advantages and disadvantages, so it is difficult to unify them into one type of physical interface, and multiple types of physical interfaces can be selectively selected according to the device or application of the communication partner. You may want to use it. On the other hand, when at least the device on the receiving side has a plurality of applications, it is necessary for the transmitting side to specify the application on the receiving side.

【0004】ところで、一般に、各種類の物理インタフ
ェースはそれぞれ標準的な通信プロトコルを持ってお
り、各通信プロトコルによってデータフォーマットも異
なっている。そのため、一つのアプリケーションが複数
種類の物理インタフェースを使用することを考えた場
合、物理インタフェース毎にそれぞれ標準的な通信プロ
トコルを使用し、各通信プロトコルにおける機構を利用
して受信側のアプリケーションを特定しようとすると、
送信側のアプリケーション自身が、どの種類の物理イン
タフェースを使用するかを意識して送信データを組み立
てなければならず、アプリケーションの処理が煩雑にな
るという問題点がある。この問題点を、以下で詳しく説
明する。
Generally, each type of physical interface has a standard communication protocol, and the data format differs depending on each communication protocol. Therefore, when considering that one application uses multiple types of physical interfaces, use a standard communication protocol for each physical interface, and use the mechanism of each communication protocol to identify the receiving application. Then,
The application on the transmission side itself has to assemble the transmission data in consideration of what kind of physical interface is used, which causes a problem that the processing of the application becomes complicated. This problem will be described in detail below.

【0005】例えば、物理インタフェースとしてEth
ernetとRS−232Cとを使用したい場合を考え
る。Ethernetでは、TCP(Transmission Con
trolProtocol )/IP(Internet Protocol )やUD
P(User Datagram Protocol)/IPというプロトコル
を使用するのが一般的になっている。ここでは、Eth
ernetを使用するときにはTCP/IPというプロ
トコルを使用するものとする。TCP/IPでは、ポー
ト番号というものを使用することによって複数のアプリ
ケーションで一つの物理インタフェースを使用すること
ができるようになっている。ポート番号は、TCP/I
Pのデータフォーマット中のTCPヘッダ内に入れられ
る。このように、Ethernetを使用するときには
TCP/IPにおける機構(ポート番号)を利用して受
信側のアプリケーションを特定することが可能である。
しかし、RS−232CではTCP/IPというプロト
コルは一般的に使用されず、RS−232Cを使用する
場合にはデータフォーマット中にポート番号を入れる場
所がない。そのため、送信側のアプリケーションが、受
信側のアプリケーションを特定するためにTCP/IP
における機構(ポート番号)を利用すると、送信側のア
プリケーション自身が、物理インタフェースとしてEt
hernetを使用するかRS−232Cを使用するか
を意識してデータパケットを組み立てなければならなく
なってしまう。
For example, as a physical interface, Eth
Consider the case where it is desired to use the Internet and RS-232C. In Ethernet, TCP (Transmission Con
trolProtocol) / IP (Internet Protocol) and UD
It has become common to use a protocol called P (User Datagram Protocol) / IP. Here, Eth
A protocol called TCP / IP is used when using the Internet. In TCP / IP, a single physical interface can be used by a plurality of applications by using a port number. The port number is TCP / I
It is put in the TCP header in P's data format. In this way, when using Ethernet, it is possible to specify the application on the receiving side by utilizing the mechanism (port number) in TCP / IP.
However, a protocol called TCP / IP is not generally used in RS-232C, and when RS-232C is used, there is no place to put a port number in the data format. Therefore, the application on the sending side uses TCP / IP to identify the application on the receiving side.
When the mechanism (port number) in (2) is used, the sending application itself uses Et as a physical interface.
Therefore, it becomes necessary to assemble a data packet while considering whether to use the Hernet or the RS-232C.

【0006】また、前述のように、Ethernetを
使用するときには、TCP/IPにおけるポート番号を
使用することによって受信側のアプリケーションを特定
することができるので、複数のアプリケーションで一つ
の物理インタフェースを使用することができるが、RS
−232Cを使用するときにはそれができない。このよ
うに、TCP/IPにおけるポート番号のように、物理
インタフェース毎に異なる通信プロトコルにおける機構
を利用して受信側のアプリケーションを特定しようとす
ると、物理インタフェースの種類によっては、複数のア
プリケーションで一つの物理インタフェースを使用する
ことができない場合があるという問題点がある。
Further, as described above, when Ethernet is used, the application on the receiving side can be specified by using the port number in TCP / IP, so that one physical interface is used by a plurality of applications. Can, but RS
That is not possible when using the -232C. In this way, if an application on the receiving side is specified by using a mechanism in a communication protocol that differs for each physical interface, such as a port number in TCP / IP, depending on the type of physical interface, one application may be used by multiple applications. There is a problem that it may not be possible to use the physical interface.

【0007】本発明はかかる問題点に鑑みてなされたも
ので、その課題は、使用する物理インタフェースの種類
によって、アプリケーションソフトウェアから見たデー
タ形式を区別することなく、一つのアプリケーションソ
フトウェアが複数種類の物理インタフェースを使用する
ことができるようにすると共に、物理インタフェースの
種類にかかわらず、複数のアプリケーションソフトウェ
アが一つの物理インタフェースを使用することができる
ようにした通信方法、通信装置および通信システムを提
供することにある。
The present invention has been made in view of the above problems, and its problem is that one application software can be used in a plurality of types without distinguishing the data format viewed from the application software depending on the type of physical interface used. Provided are a communication method, a communication device, and a communication system that enable a plurality of application software to use a single physical interface regardless of the type of the physical interface. Especially.

【0008】[0008]

【課題を解決するための手段】本発明の通信方法、通信
装置および通信システムは、データ送信側では、データ
送信側のアプリケーションソフトウェアからデータ受信
側のアプリケーションソフトウェアへの通信内容を表す
データ本文にデータ受信側のアプリケーションソフトウ
ェアの識別情報を付加したデータを、使用する物理イン
タフェースにおける通信プロトコルに応じたデータフォ
ーマットに組み入れて送信し、データ受信側では、受信
データ中の識別情報を判別し、判別した識別情報に対応
するアプリケーションソフトウェアに受信データ中のデ
ータ本文を引き渡すようにしたものである。
In a communication method, a communication device and a communication system according to the present invention, a data transmitting side includes data in a data body representing a communication content from an application software of a data transmitting side to an application software of a data receiving side. Data to which the identification information of the application software on the receiving side is added is sent in a data format that complies with the communication protocol of the physical interface used, and the data receiving side identifies the identification information in the received data and identifies it. The data body in the received data is passed to the application software corresponding to the information.

【0009】本発明の通信方法、通信装置および通信シ
ステムでは、アプリケーションソフトウェアから見たデ
ータ形式は、データ本文にデータ受信側のアプリケーシ
ョンソフトウェアの識別情報を付加したものとなるの
で、使用する物理インタフェースの種類によって、アプ
リケーションソフトウェアから見たデータ形式を区別す
ることなく、一つのアプリケーションソフトウェアが複
数種類の物理インタフェースを使用することが可能とな
る。また、物理インタフェース毎に異なる通信プロトコ
ルにおける機構を利用して受信側のアプリケーションを
特定するのではなく、データ本文に付加する識別情報に
よって受信側のアプリケーションを特定するので、物理
インタフェースの種類にかかわらず、複数のアプリケー
ションソフトウェアが一つの物理インタフェースを使用
することが可能となる。
In the communication method, communication device and communication system of the present invention, the data format viewed from the application software is the data body with the identification information of the application software on the data receiving side added. Depending on the type, one application software can use a plurality of types of physical interfaces without distinguishing the data format viewed from the application software. Further, since the receiving side application is not specified by using the mechanism in the communication protocol which is different for each physical interface, but the receiving side application is specified by the identification information added to the data body, regardless of the type of the physical interface. , Multiple application software can use one physical interface.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0011】図1は本発明の一実施の形態に係る通信装
置を含む通信システムの構成例を示すブロック図であ
る。本発明を実施するには、通信したいデータを送信す
る通信装置と受信する通信装置が必要となる。通信装置
は送信機能と受信機能の両方を有しているのが普通であ
るが、ここでは、簡略化のために、通信装置を、データ
を送信するデータ送信機器と、データを受信するデータ
受信機器とに分けて説明する。図1に示した通信システ
ムでは、本実施の形態に係る通信装置として2台のデー
タ送信機器10A,10Bと5台のデータ受信機器20
A,20B,20C,20D,20Eを備え、各通信装
置間の物理的な通信路を形成する物理インタフェースと
して2種類の物理インタフェース1A,1B,2を備え
ている。この例では、物理インタフェース1A,1Bは
RS−232C、物理インタフェース2はEthern
et(イーサネット)とする。物理インタフェース2に
は、データ送信機器10Aと5台のデータ受信機器20
A〜20Eが接続されている。物理インタフェース1A
はデータ送信機器10Aとデータ受信機器20Aとを接
続している。物理インタフェース1Bはデータ送信機器
10Bとデータ受信機器20Bとを接続している。
FIG. 1 is a block diagram showing a configuration example of a communication system including a communication device according to an embodiment of the present invention. In order to carry out the present invention, a communication device for transmitting data to be communicated and a communication device for receiving data are required. Generally, a communication device has both a transmission function and a reception function, but here, for simplification, a communication device is defined as a data transmission device that transmits data and a data reception device that receives data. It will be explained separately for the equipment. In the communication system shown in FIG. 1, two data transmitting devices 10A and 10B and five data receiving devices 20 are used as the communication device according to the present embodiment.
A, 20B, 20C, 20D, 20E, and two types of physical interfaces 1A, 1B, 2 as physical interfaces forming a physical communication path between the communication devices. In this example, the physical interfaces 1A and 1B are RS-232C, and the physical interface 2 is Ethernet.
et (Ethernet). The physical interface 2 includes a data transmitting device 10A and five data receiving devices 20.
A to 20E are connected. Physical interface 1A
Connects the data transmitting device 10A and the data receiving device 20A. The physical interface 1B connects the data transmitting device 10B and the data receiving device 20B.

【0012】データ送信機器10(データ送信機器10
A,10B等の個々のデータ送信機器を代表して表
す。)にRS−232Cが接続されている場合にはそれ
を通してただ1台のデータ受信機器20(データ受信機
器20A〜20E等の個々のデータ受信機器を代表して
表す。)に対してデータを送信することができ、Eth
ernetが接続されている場合にはそれに接続されて
いる全てのデータ受信機器20に対してデータを送信す
ることができる。逆に、データ受信機器20にRS−2
32Cが接続されている場合にはそれを通してただ1台
のデータ送信機器10からデータを受信することがで
き、Ethernetが接続されている場合にはそれに
接続されている全てのデータ送信機器10からデータを
受信することができる。
Data transmitting device 10 (data transmitting device 10
The individual data transmission devices such as A and 10B are represented as a representative. ) Is connected to RS-232C, data is transmitted through it to only one data receiving device 20 (representing individual data receiving devices such as data receiving devices 20A to 20E). Can, Eth
When the Internet is connected, the data can be transmitted to all the data receiving devices 20 connected to it. On the contrary, RS-2 is set in the data receiving device 20.
When 32C is connected, data can be received from only one data transmitting device 10 through it, and when Ethernet is connected, data can be received from all the data transmitting devices 10 connected to it. Can be received.

【0013】なお、以下の説明では、データ送信機器1
0およびデータ受信機器20の一例として、データ受信
機器20は、例えばMPEG(Moving Picture Experts
Group)規格に基づいてビデオデータ,オーディオデー
タおよび字幕等の付随的情報であるサブストリームデー
タを符号化し多重化する符号化装置とし、データ送信機
器10は、データ受信機器20となる符号化装置の動作
を制御する制御装置(以下、ホストと言う。)とする。
In the following description, the data transmission device 1
0 and the data receiving device 20, the data receiving device 20 may be, for example, an MPEG (Moving Picture Experts).
Group) A coding device that codes and multiplexes substream data that is incidental information such as video data, audio data, and subtitles based on the standard, and the data transmission device 10 is a coding device that functions as the data reception device 20. A control device (hereinafter referred to as a host) that controls the operation.

【0014】図2はデータ送信機器10の構成を示すブ
ロック図である。データ送信機器10は、CPU(中央
処理装置)11と、ROM(リード・オンリ・メモリ)
12と、RAM(ランダム・アクセス・メモリ)13
と、オペレータからの指示等を入力するための入力装置
14と、RS−232C用の入出力部としてのインタフ
ェース(以下、I/Fと記す。)15と、Ethern
et用のI/F16と、他の種類のI/F17とを備
え、これらは互いに、アドレスバス,データバス,制御
バスを含むバス18によって接続されている。このデー
タ送信機器10では、RAM13をワーキングエリアと
して、ROM12またはRAM13に格納されたプログ
ラムを実行することにより、種々のアプリケーションを
実行すると共に、後述する機能を実現するようになって
いる。
FIG. 2 is a block diagram showing the configuration of the data transmission device 10. The data transmission device 10 includes a CPU (central processing unit) 11 and a ROM (read only memory).
12 and RAM (random access memory) 13
An input device 14 for inputting an instruction or the like from an operator, an interface (hereinafter referred to as I / F) 15 as an input / output unit for RS-232C, and Ethernet.
An I / F 16 for et and an I / F 17 of another type are provided, and these are connected to each other by a bus 18 including an address bus, a data bus, and a control bus. In the data transmission device 10, the RAM 13 is used as a working area and the programs stored in the ROM 12 or the RAM 13 are executed to execute various applications and realize the functions described later.

【0015】図3は図2に示したデータ送信機器10の
機能を示す機能ブロック図である。データ送信機器10
は、データ送信側のアプリケーションからデータ受信側
のアプリケーションへの通信内容を表すデータ本文41
を作成すると共に作成したデータ本文41のデータ長の
情報46を出力するデータ本文作成部31と、データ受
信側のアプリケーションの識別情報であるアプリケーシ
ョンID(識別番号)42を作成するアプリケーション
ID作成部32と、RS−232Cにおける通信プロト
コル(以下、単にプロトコルとも言う。)でのデータフ
ォーマットとしてのパケットフォーマットに組み入れる
RS−232C用ヘッダ情報43を作成するRS−23
2C用ヘッダ作成部33と、Ethernetにおける
プロトコルでのパケットフォーマットに組み入れるEt
hernet用ヘッダ情報44を作成するEthern
et用ヘッダ作成部34と、データ本文作成部31によ
って作成されるデータ本文41とアプリケーションID
作成部32によって作成されるアプリケーションID4
2とRS−232C用ヘッダ作成部33によって作成さ
れるヘッダ情報43またはEthernet用ヘッダ作
成部34によって作成されるヘッダ情報44とを、物理
的な通信路として使用する物理インタフェースにおける
プロトコルに応じたパケットフォーマットに組み入れて
送信データを組み立てる送信データ組み立て部35と、
データ本文作成部31より出力されるデータ長の情報4
6を入力し、送信データ組み立て部35を制御すると共
に、送信データ組み立て部35によって組み立てられた
送信データ45を送信する制御部36の各機能を備えて
いる。
FIG. 3 is a functional block diagram showing the functions of the data transmitting device 10 shown in FIG. Data transmission device 10
Is a data body 41 that represents the contents of communication from the data transmission side application to the data reception side application.
And the application ID creation unit 32 that creates the application ID (identification number) 42 that is the identification information of the application on the data receiving side. And RS-23 for creating RS-232C header information 43 to be incorporated into a packet format as a data format in a communication protocol in RS-232C (hereinafter, also simply referred to as protocol).
2C header creation unit 33 and Et incorporated in the packet format of the protocol in Ethernet
Ethernet that creates the header information 44 for the Ethernet
The header producing unit 34 for et, the data body 41 produced by the data body producing unit 31, and the application ID
Application ID 4 created by the creation unit 32
2 and the header information 43 created by the RS-232C header creation unit 33 or the header information 44 created by the Ethernet header creation unit 34 according to the protocol in the physical interface used as a physical communication path. A transmission data assembling unit 35 for assembling transmission data by incorporating it into a format,
Data length information 4 output from the data body creation unit 31
6 is input to control the transmission data assembling unit 35, and each function of the control unit 36 for transmitting the transmission data 45 assembled by the transmission data assembling unit 35 is provided.

【0016】送信データ組み立て部35は、RS−23
2C用ヘッダ作成部33によって作成されるヘッダ情報
43とEthernet用ヘッダ作成部34によって作
成されるヘッダ情報44とをそれぞれ固定接点A,Bよ
り入力し、切り換えて可動接点より出力するスイッチS
W1と、アプリケーションID作成部32によって作成
されるアプリケーションID42とデータ本文作成部3
1によって作成されるデータ本文41とそれぞれ固定接
点C,Dより入力し、切り換えて可動接点より出力する
スイッチSW2と、スイッチSW1の出力とスイッチS
W2の出力とをそれぞれ固定接点E,Fより入力し、切
り換えて可動接点より出力するスイッチSW3の各機能
を有している。各スイッチSW1〜SW3は制御部36
によって制御されるようになっている。
The transmission data assembling unit 35 is an RS-23.
A switch S that inputs the header information 43 created by the 2C header creation unit 33 and the header information 44 created by the Ethernet header creation unit 34 from the fixed contacts A and B, respectively, and switches and outputs the movable contacts.
W1, application ID 42 created by application ID creation unit 32, and data body creation unit 3
1. The data body 41 created by 1 and the fixed contacts C and D, respectively, are input, and the switch SW2 for switching and outputting from the movable contact, the output of the switch SW1 and the switch S.
The output of W2 and the fixed contacts E and F are respectively input, and the switch SW3 for switching and outputting from the movable contact is provided. The switches SW1 to SW3 are the control unit 36.
Is controlled by the

【0017】図4はデータ受信機器20の構成を示すブ
ロック図である。データ受信機器20は、CPU51
と、ROM52と、RAM53と、オペレータからの指
示等を入力するための入力装置54と、RS−232C
用のI/F55と、Ethernet用のI/F56
と、他の種類のI/F57と、ビデオデータDv 入力用
のI/F58と、オーディオデータDa 入力用のI/F
59と、多重化データDm出力用のI/F60とを備
え、これらは互いに、アドレスバス,データバス,制御
バスを含むバス61によって接続されている。このデー
タ受信機器20では、RAM53をワーキングエリアと
して、ROM52またはRAM53に格納されたプログ
ラムを実行することにより、種々のアプリケーションを
実行すると共に、後述する機能を実現するようになって
いる。
FIG. 4 is a block diagram showing the configuration of the data receiving device 20. The data receiving device 20 has a CPU 51.
A ROM 52, a RAM 53, an input device 54 for inputting an instruction or the like from an operator, and an RS-232C.
I / F55 for Ethernet and I / F56 for Ethernet
, Another type of I / F 57, an I / F 58 for inputting the video data D v, and an I / F for inputting the audio data D a
59 and an I / F 60 for outputting the multiplexed data D m, which are connected to each other by a bus 61 including an address bus, a data bus, and a control bus. The data receiving device 20 uses the RAM 53 as a working area and executes programs stored in the ROM 52 or the RAM 53 to execute various applications and realize the functions described later.

【0018】図5は図4に示したデータ受信機器20の
機能を示す機能ブロック図である。データ受信機器20
は、データ送信機器10から送られてきた受信データ7
1を入力すると共に、この受信データ71からヘッダ,
アプリケーションID,データ本文を互いに分離し、デ
ータ本文をアプリケーションに引き渡すデータ分離部6
1と、ビデオデータDv を入力しMPEG規格に基づい
て符号化するビデオ符号化部62と、オーディオデータ
a をMPEG規格に基づいて符号化するオーディオ符
号化部63と、サブストリームデータDs を符号化する
サブストリーム符号化部64と、これらの各符号化部6
2,63,64による符号化データを多重化して多重化
データDm として出力するマルチプレクサ部65と、受
信データ71を入力すると共に、データ分離部61によ
って分離されるアプリケーションID72とデータ分離
部61より出力されるデータ本文73を入力し、データ
分離部61,各符号化部62〜64およびマルチプレク
サ部65を制御する制御部66の各機能を備えている。
なお、サブストリームデータDs は制御部66よりサブ
ストリーム符号化部64に与えられるようになってい
る。また、多重化データDm は、人工衛星や電話回線等
を通って一般家庭へ配信されたり、蓄積メディアへ記録
されたりする。図5におけるデータ分離部61および制
御部66が本発明における受信手段に対応し、制御部6
6が本発明における判別手段に対応し、データ分離部6
1が本発明におけるデータ引き渡し手段に対応する。
FIG. 5 is a functional block diagram showing functions of the data receiving device 20 shown in FIG. Data receiving device 20
Is the received data 7 sent from the data transmission device 10.
1 is input, the header from this received data 71,
A data separation unit 6 that separates the application ID and the data body from each other and passes the data body to the application.
1, a video encoding unit 62 that inputs video data D v and encodes it according to the MPEG standard, an audio encoding unit 63 that encodes audio data D a based on the MPEG standard, and substream data D s. And a substream encoding unit 64 for encoding
The multiplexer unit 65 that multiplexes the encoded data of 2, 63, and 64 and outputs the multiplexed data D m , the received data 71, and the application ID 72 and the data separation unit 61 that are separated by the data separation unit 61. The data main body 73 to be output is input, and each function of the data separation unit 61, the encoding units 62 to 64, and the control unit 66 that controls the multiplexer unit 65 is provided.
The substream data D s is supplied from the control unit 66 to the substream encoding unit 64. Further, the multiplexed data D m is delivered to a general household through an artificial satellite or a telephone line or recorded in a storage medium. The data separation unit 61 and the control unit 66 in FIG. 5 correspond to the receiving means in the present invention, and the control unit 6
6 corresponds to the discriminating means in the present invention, and corresponds to the data separating unit 6
1 corresponds to the data delivery means in the present invention.

【0019】データ分離部61は、受信データ71を可
動接点より入力し、固定接点G,Hのいずれかへ出力す
るスイッチSW4と、スイッチSW4の固定接点Gの出
力を可動接点より入力し、固定接点I,Jのいずれかへ
出力するスイッチSW5と、スイッチSW5の固定接点
Iの出力を可動接点より入力し、固定接点K,L,Mの
いずれかへ出力するスイッチSW6の各機能を有してい
る。各スイッチSW4〜SW6は制御部66によって制
御されるようになっている。スイッチSW4は、受信デ
ータ71中のヘッダを固定接点Hより出力して破棄し、
他の部分を固定接点Gより出力するようになっている。
スイッチSW5は、スイッチSW4の固定接点Gの出力
データ中のアプリケーションID72を固定接点Jより
制御部66へ出力し、他の部分、すなわちデータ本文7
3を固定接点Iより出力するようになっている。スイッ
チSW6は、スイッチSW5の固定接点Iの出力である
データ本文73を、アプリケーションIDに応じて異な
る固定接点K,L,Mより制御部66へ出力して、アプ
リケーションIDに対応するアプリケーションに引き渡
すようになっている。なお、図5では、スイッチSW6
によって、データ本文73を3つのアプリケーションに
振り分けるようにしているが、アプリケーションの数は
3つに限るものではない。
The data separating unit 61 inputs the received data 71 from the movable contact and outputs it to either the fixed contact G or H and the fixed contact G of the switch SW4 from the movable contact to fix it. It has the functions of a switch SW5 that outputs to either the contact I or J and a switch SW6 that inputs the output of the fixed contact I of the switch SW5 from the movable contact and outputs to the fixed contact K, L, or M. ing. The switches SW4 to SW6 are controlled by the controller 66. The switch SW4 outputs the header in the received data 71 from the fixed contact H and discards it.
The other part is output from the fixed contact G.
The switch SW5 outputs the application ID 72 in the output data of the fixed contact G of the switch SW4 from the fixed contact J to the control unit 66, and the other portion, that is, the data body 7
3 is output from the fixed contact I. The switch SW6 outputs the data body 73, which is the output of the fixed contact I of the switch SW5, to the control unit 66 from the fixed contacts K, L, and M, which differ depending on the application ID, and passes it to the application corresponding to the application ID. It has become. In FIG. 5, the switch SW6
According to the above, the data body 73 is divided into three applications, but the number of applications is not limited to three.

【0020】なお、前述のようにデータ送信機器10を
ホスト、データ受信機器20を符号化装置とした場合、
実際には、データ送信機器10はデータ受信機能すなわ
ち図5におけるデータ分離部61および制御部66の機
能も有しており、データ受信機器20はデータ送信機能
すなわち図3に示した機能も有している。
As described above, when the data transmitting device 10 is the host and the data receiving device 20 is the encoding device,
Actually, the data transmission device 10 also has a data reception function, that is, the functions of the data separation unit 61 and the control unit 66 in FIG. 5, and the data reception device 20 also has a data transmission function, that is, the function shown in FIG. ing.

【0021】図6はRS−232Cにおけるプロトコル
でのパケットフォーマットを示したものである。このパ
ケットフォーマットは、先頭のRS−232C用ヘッダ
75とそれに続くデータ部分76とで構成されている。
RS−232C用ヘッダ75は、同期確立のための特定
のビットパターンである。データ部分76は、アプリケ
ーションID78と、それに続くデータ本文79とから
成っている。RS−232C用ヘッダ75とアプリケー
ションID78のデータ長は固定長である。データ本文
79内には、データ本文のデータ長を示す情報が含まれ
ている。
FIG. 6 shows the packet format of the RS-232C protocol. This packet format is composed of a header 75 for RS-232C at the beginning and a data portion 76 following it.
The RS-232C header 75 is a specific bit pattern for establishing synchronization. The data portion 76 is composed of an application ID 78 and a data body 79 that follows it. The data length of the RS-232C header 75 and the application ID 78 is a fixed length. The data body 79 contains information indicating the data length of the data body.

【0022】図7はEthernetにおけるプロトコ
ルでのパケットフォーマットを示したものである。この
パケットフォーマットは、先頭のEthernet用ヘ
ッダ81と、それに続くデータ部分82と、それに続く
誤り検出用のフレーム・チェック・シーケンス(FC
S)83とで構成されている。Ethernet用ヘッ
ダ81は、先頭側から順に設けられた、同期確立のため
のプリアンブル83、データの切れ目を示すスタートコ
ード84、一つのネットワーク内のゲートウェイを特定
するEthernetヘッダ85、通信相手の機器を特
定するIPヘッダ86、ポート番号を示すTCP/UD
Pヘッダ87とから成っている。このパケットフォーマ
ットは、Ethernetにおける標準的なプロトコル
であるTCP/IPまたはUDP/IPと同じである。
データ部分82は、アプリケーションID88と、それ
に続くデータ本文89とから成っている。プリアンブル
83,スタートコード84,Ethernetヘッダ8
5およびフレーム・チェック・シーケンス83のデータ
長は固定長である。IPヘッダ86とTCP/UDPヘ
ッダ87とデータ本文89内には、それぞれのデータ長
を示す情報が含まれている。
FIG. 7 shows a packet format of the protocol in Ethernet. This packet format has a header 81 for Ethernet at the beginning, a data portion 82 following the header 81, and a frame check sequence (FC) for error detection that follows.
S) 83. The Ethernet header 81 includes a preamble 83 for establishing synchronization, a start code 84 indicating a break in data, an Ethernet header 85 for identifying a gateway in one network, and a communication partner device, which are provided in order from the head side. IP header 86, TCP / UD indicating the port number
It consists of a P header 87. This packet format is the same as TCP / IP or UDP / IP which is a standard protocol in Ethernet.
The data portion 82 includes an application ID 88 and a data body 89 that follows it. Preamble 83, start code 84, Ethernet header 8
5 and the frame check sequence 83 have a fixed data length. The IP header 86, the TCP / UDP header 87, and the data body 89 include information indicating the respective data lengths.

【0023】図6および図7に示したパケットフォーマ
ットは、いずれも、データ部分76,82内において、
データ本文79,89の前に、アプリケーションID7
8,88を付加した点が特徴である。すなわち、本実施
の形態では、物理インタフェース毎に異なるプロトコル
における機構を利用して受信側のアプリケーションを特
定するのではなく、データ部分76,82内において、
データ本文79,89に付加するアプリケーションID
78,88によって受信側のアプリケーションを特定す
る点が特徴になっている。
The packet formats shown in FIG. 6 and FIG.
Application ID 7 before data text 79, 89
It is characterized by the addition of 8,88. That is, in the present embodiment, the application on the receiving side is not specified by using the mechanism in the protocol different for each physical interface, but in the data parts 76 and 82,
Application ID added to the data text 79, 89
The feature is that the application on the receiving side is specified by 78 and 88.

【0024】次に、本実施の形態に係る通信装置および
通信システムの動作、および本実施の形態に係る通信方
法について説明する。
Next, the operations of the communication apparatus and communication system according to this embodiment and the communication method according to this embodiment will be described.

【0025】図8はデータ送信機器10の動作を示すフ
ローチャートである。この動作では、まず、制御部36
が、オペレータからの送信指示を待ち(ステップS10
1)、送信指示があったら、使用する物理インタフェー
スとしてRS−232Cが選択されているか否かを判断
する(ステップS102)。なお、物理インタフェース
の選択は、データ送信機器10のアプリケーションが行
う。制御部36は、RS−232Cが選択されている場
合(Y)はスイッチSW1の可動接点を固定接点A側に
倒し(ステップS103)、RS−232Cが選択され
ていない場合(N)はスイッチSW1の可動接点を固定
接点B側に倒す(ステップS104)。次に、制御部3
6は、スイッチSW3の可動接点を固定接点E側に倒し
(ステップS105)、使用する物理インタフェースに
対応するRS−232C用ヘッダ作成部33またはEt
hernet用ヘッダ作成部34によって作成したヘッ
ダ情報43またはヘッダ情報44を、スイッチSW1,
SW3を通して入力し、送信データ45中のヘッダとし
て物理インタフェースに送出する。制御部36は、ヘッ
ダが終了したか否かを判断し(ステップS106)、ヘ
ッダが終了していなければ(N)この判断を繰り返し、
ヘッダが終了したら(Y)、スイッチSW3の可動接点
を固定接点F側に倒す(ステップS107)。
FIG. 8 is a flowchart showing the operation of the data transmitting device 10. In this operation, first, the control unit 36
Waits for a transmission instruction from the operator (step S10
1) If there is a transmission instruction, it is determined whether RS-232C is selected as the physical interface to be used (step S102). The physical interface is selected by the application of the data transmission device 10. The controller 36 tilts the movable contact of the switch SW1 to the fixed contact A side when RS-232C is selected (Y) (step S103), and switches SW1 when RS-232C is not selected (N). The movable contact of is moved to the fixed contact B side (step S104). Next, the control unit 3
6, the movable contact of the switch SW3 is tilted to the fixed contact E side (step S105), and the RS-232C header creation unit 33 or Et corresponding to the physical interface to be used.
The header information 43 or the header information 44 created by the header creating unit 34 for the Ethernet is set to the switch SW1,
It is input through SW3 and sent to the physical interface as a header in the transmission data 45. The control unit 36 determines whether the header has ended (step S106), and if the header has not ended (N), this determination is repeated,
When the header is completed (Y), the movable contact of the switch SW3 is tilted to the fixed contact F side (step S107).

【0026】次に、制御部36は、スイッチSW2の可
動接点を固定接点C側に倒し、アプリケーションID作
成部32によって作成した受信側のアプリケーションI
D42を、スイッチSW2,SW3を通して入力し、ヘ
ッダに付加して、送信データ45として送出する(ステ
ップS108)。制御部36は、アプリケーションID
の入力が終了したら、スイッチSW2の可動接点を固定
接点D側に倒し、データ本文作成部31によって作成し
たデータ本文41を、スイッチSW2,SW3を通して
入力し、ヘッダおよびアプリケーションIDに付加し
て、送信データ45として送出する(ステップS10
9)。次に、制御部36は、データ本文作成部31から
出力されたデータ長の情報46に従って、データ長だけ
データ本文を送出したか否かを判断し(ステップS11
0)、データ長だけデータ本文を送出していなければ
(N)この判断を繰り返し、データ長だけデータ本文を
送出したら(Y)、RS−232C使用時は動作を終了
し、Ethernet使用時はフレーム・チェック・シ
ーケンスを付加して送信データ45として送出してから
動作を終了する。
Next, the control unit 36 tilts the movable contact of the switch SW2 to the fixed contact C side and the application I on the reception side created by the application ID creation unit 32.
D42 is input through the switches SW2 and SW3, added to the header, and transmitted as the transmission data 45 (step S108). The control unit 36 has an application ID
When the input of is completed, the movable contact of the switch SW2 is tilted to the fixed contact D side, the data text 41 created by the data text creation unit 31 is input through the switches SW2 and SW3, added to the header and the application ID, and transmitted. The data 45 is transmitted (step S10).
9). Next, the control unit 36 determines whether or not the data body has been transmitted by the data length according to the data length information 46 output from the data body creation unit 31 (step S11).
0), if the data body is not sent for the data length (N), this judgment is repeated. If the data body is sent for the data length (Y), the operation ends when RS-232C is used, and the frame is used when Ethernet is used. The operation is ended after the check sequence is added and transmitted as the transmission data 45.

【0027】図9はデータ受信機器20の動作を示すフ
ローチャートである。この動作では、まず、制御部66
はI/F55およびI/F56の入力を監視している。
制御部66は、I/F55またはI/F56からのデー
タ入力を待ち(ステップS111)、データ入力があっ
たらスイッチSW4の可動接点を固定接点H側に倒し
(ステップS112)、入力データ中のヘッダを固定接
点Hより出力して破棄する。なお、制御部66は、入力
データ中のヘッダに含まれる情報に従って受信処理を行
う。次に、制御部66は、物理インタフェースとしてR
S−232Cが選択されたか否かを判断する(ステップ
S113)。これは、I/F55とI/F56のいずれ
からデータ入力があったかを判断することで行う。RS
−232Cが選択されている場合(Y)は、RS−23
2C用ヘッダの分だけデータが通ったらスイッチSW4
の可動接点を固定接点G側に切り換え(ステップS11
4)、RS−232Cが選択されていない場合(N)
は、Ethernet用ヘッダの分だけデータが通った
らスイッチSW4の可動接点を固定接点G側に切り換え
る(ステップS115)。次に、制御部66は、スイッ
チSW5の可動接点を固定接点J側に切り換え、アプリ
ケーションID72を取得する(ステップS116)。
次に、制御部66は、スイッチSW5の可動接点を固定
接点I側に切り換える(ステップS117)。次に、制
御部66は、取得したアプリケーションIDに応じてス
イッチSW6の状態を変更し、アプリケーションIDに
対応するアプリケーションにデータ本文73を引き渡す
(ステップS118)。次に、制御部66は、データが
終了したか否かを判断し(ステップS119)、終了し
ていなければ(N)この判断を繰り返し、終了したら
(Y)、動作を終了する。
FIG. 9 is a flowchart showing the operation of the data receiving device 20. In this operation, first, the control unit 66
Is monitoring the inputs of I / F 55 and I / F 56.
The control unit 66 waits for data input from the I / F 55 or I / F 56 (step S111), and if there is data input, tilts the movable contact of the switch SW4 to the fixed contact H side (step S112), and outputs the header in the input data. Is output from the fixed contact H and discarded. The control unit 66 performs the receiving process according to the information included in the header of the input data. Next, the control unit 66 uses R as a physical interface.
It is determined whether S-232C is selected (step S113). This is performed by determining which of the I / F 55 and the I / F 56 has input data. RS
If 232C is selected (Y), RS-23
Switch SW4 when data passes by the amount of 2C header
Of the movable contact of the fixed contact G side (step S11
4), if RS-232C is not selected (N)
Switches the movable contact of the switch SW4 to the fixed contact G side when data passes by the amount corresponding to the Ethernet header (step S115). Next, the control unit 66 switches the movable contact of the switch SW5 to the fixed contact J side and acquires the application ID 72 (step S116).
Next, the control unit 66 switches the movable contact of the switch SW5 to the fixed contact I side (step S117). Next, the control unit 66 changes the state of the switch SW6 according to the acquired application ID, and hands over the data body 73 to the application corresponding to the application ID (step S118). Next, the control unit 66 judges whether or not the data has ended (step S119), and if not ended (N), this judgment is repeated, and when ended (Y), the operation is ended.

【0028】ここで、データ送信機器10とデータ受信
機器20の動作の具体例について説明する。この例で
は、図10に示すように、データ送信機器10Cとデー
タ受信機器20FとがRS−232Cからなる物理イン
タフェース1によって接続され、Ethernetから
なる物理インタフェース2にデータ送信機器10Dとデ
ータ受信機器20Fが接続されている通信システムを考
える。
Here, a specific example of the operation of the data transmitting device 10 and the data receiving device 20 will be described. In this example, as shown in FIG. 10, the data transmitting device 10C and the data receiving device 20F are connected by the physical interface 1 made of RS-232C, and the physical interface 2 made of Ethernet is connected to the data transmitting device 10D and the data receiving device 20F. Consider a communication system to which are connected.

【0029】図11に示すように、データ送信機器10
Cは2つの送信側アプリケーションH1,H2を有し、
データ送信機器10Dは2つの送信側アプリケーション
H3,H4を有し、データ受信機器20Fは3つの受信
側アプリケーションR1,R2,R3を有している。送
信側アプリケーションH1,H2,H3,H4はそれぞ
れ受信側アプリケーションR1,R2,R1,R3と通
信を望んでいるものとする。
As shown in FIG. 11, the data transmission device 10
C has two sender applications H1, H2,
The data transmitting device 10D has two transmitting side applications H3 and H4, and the data receiving device 20F has three receiving side applications R1, R2 and R3. It is assumed that the transmitting side applications H1, H2, H3, H4 desire to communicate with the receiving side applications R1, R2, R1, R3, respectively.

【0030】いま、送信側アプリケーションH1が受信
側アプリケーションR1に対してデータを送るときの動
作を説明する。データ送信機器10Cは図8に示したフ
ローチャートに従って送信データを組み立てる。すなわ
ち、使用する物理インタフェースはRS−232C(物
理インタフェース1)であるので、スイッチSW1は固
定接点A側に設定する。スイッチSW3を固定接点E側
に切り換えてヘッダを送信した後、スイッチSW3を固
定接点F側に戻す。そして、スイッチSW2を固定接点
C側に倒して受信側アプリケーションH1のアプリケー
ションIDを付加し、スイッチSW2を固定接点D側に
戻し、データ本文を送出する。このようにして作成され
た送信データは、制御部36によってI/F15よりR
S−232C上に送出される。
Now, the operation when the sending application H1 sends data to the receiving application R1 will be described. The data transmission device 10C assembles the transmission data according to the flowchart shown in FIG. That is, since the physical interface used is RS-232C (physical interface 1), the switch SW1 is set to the fixed contact A side. After the switch SW3 is switched to the fixed contact E side and the header is transmitted, the switch SW3 is returned to the fixed contact F side. Then, the switch SW2 is tilted to the fixed contact C side to add the application ID of the reception side application H1, the switch SW2 is returned to the fixed contact D side, and the data text is sent. The transmission data created in this way is transmitted from the I / F 15 to the R unit by the control unit 36.
Sent out on S-232C.

【0031】このデータを受け取るデータ受信機器20
Fは、図9に示したフローチャートに従ってデータを受
信する。すなわち、受信データの先頭は常にヘッダであ
るので、まず、スイッチSW4を固定接点H側に倒す。
受信データの入力元はRS−232Cであるので、デー
タ分離部61ではRS−232C用ヘッダの分だけ受信
データを読み飛ばす。次に、スイッチSW4を固定接点
G側に戻してスイッチSW5を固定接点J側に倒し、制
御部66が、受信データ中のアプリケーションID(こ
の場合はアプケーションR1のアプリケーションID)
を取得する。その後、スイッチSW5を固定接点I側に
戻し、取得したアプリケーションIDに応じてスイッチ
SW6の状態を変更して、データ本文をアプケーション
R1に引き渡す。
Data receiving device 20 for receiving this data
F receives the data according to the flowchart shown in FIG. That is, since the head of the received data is always the header, the switch SW4 is first tilted to the fixed contact H side.
Since the input source of the received data is RS-232C, the data separation unit 61 skips the received data by the amount corresponding to the RS-232C header. Next, the switch SW4 is returned to the fixed contact G side and the switch SW5 is tilted to the fixed contact J side, and the control unit 66 causes the application ID in the received data (in this case, the application ID of the application R1).
To get. Then, the switch SW5 is returned to the fixed contact I side, the state of the switch SW6 is changed according to the acquired application ID, and the data body is delivered to the application R1.

【0032】同様に、データ送信機器10Dのアプケー
ションH3は、Ethernet(物理インタフェース
2)を使用してデータ受信機器20Fのアプリケーショ
ンR1にデータを送信することができるが、アプリケー
ションR1は、受信データがRS−232Cを通ってき
たのかEthernetを通ってきたのかを認識するこ
となしに、同等のデータとして扱うことができる。
Similarly, the application H3 of the data transmitting device 10D can send data to the application R1 of the data receiving device 20F by using Ethernet (physical interface 2). The data can be treated as equivalent data without recognizing whether the data has passed through the RS-232C or the Ethernet.

【0033】次に、データ受信機器20が有する複数の
アプリケーションの一例について説明する。この例で
は、前述のように、データ受信機器20は符号化装置で
あり、データ受信機能の他にデータ送信機能も有し、デ
ータ送信機器10は符号化装置を制御するホストであ
り、データ送信機能の他にデータ受信機能も有するもの
とする。また、データ受信機器20は、コマンド送受信
アプリケーション、ステータス報告アプリケーション、
サブストリーム入力アプリケーションの3つのアプリケ
ーションを有しているものとする。コマンド送受信アプ
リケーションは、受信データ中のデータ本文を、符号化
装置へのコマンドと解釈して、符号化および多重化の動
作の制御(例えば符号化のオン,オフ)を行うものであ
る。ステータス報告アプリケーションは、主に符号化装
置からホストに対して送信を行うものであり、符号化装
置が符号化中か否か、出力は正しく出ているか否か等の
符号化装置の状態、すなわちステータスを定期的にホス
トに報告するものである。サブストリーム入力アプリケ
ーションは、ビデオデータやオーディオデータと同時に
符号化および多重化したいデータ列であるサブストリー
ムデータをホストより入力するものである。このサブス
トリーム入力アプリケーションによって入力されたサブ
ストリームデータは、符号化装置ではビデオデータやオ
ーディオデータと同じようにただのビット列として扱わ
れる。
Next, an example of a plurality of applications that the data receiving device 20 has will be described. In this example, as described above, the data receiving device 20 is an encoding device and has a data transmitting function in addition to the data receiving function, and the data transmitting device 10 is a host that controls the encoding device. In addition to the function, it also has a data receiving function. The data receiving device 20 also includes a command transmitting / receiving application, a status reporting application,
It is assumed that it has three applications, a substream input application. The command transmission / reception application interprets the data text in the received data as a command to the encoding device and controls the operation of encoding and multiplexing (for example, on / off of encoding). The status report application mainly transmits from the encoding device to the host, and the state of the encoding device such as whether the encoding device is in the process of encoding, whether the output is output correctly, that is, The status is regularly reported to the host. The substream input application inputs substream data, which is a data string desired to be encoded and multiplexed simultaneously with video data and audio data, from a host. The sub-stream data input by the sub-stream input application is treated as a simple bit string by the encoding device like the video data and the audio data.

【0034】図12はコマンド送受信アプリケーション
の動作を示すフローチャートである。この動作では、ま
ず、コマンド、すなわちこのアプリケーションに対する
データ本文の入力が有るか否かを判断する(ステップS
121)。入力がない場合(N)にはこの判断を繰り返
し、入力があったら(Y)、入力コマンド、すなわちデ
ータ本文を解析し(ステップS122)、入力コマンド
が実行可能か、すなわち正しいコマンドか否かを判断す
る(ステップS123)。実行可能の場合(Y)は、入
力コマンドを実行し(ステップS124)、実行結果を
ホストに返して(ステップS125)、ステップS12
1に戻る。入力コマンドが実行可能ではない場合(ステ
ップS123;N)は、エラーである旨の情報をホスト
に返して(ステップS126)、ステップS121に戻
る。
FIG. 12 is a flowchart showing the operation of the command transmission / reception application. In this operation, first, it is determined whether or not there is an input of a command, that is, a data body for this application (step S).
121). If there is no input (N), this judgment is repeated. If there is input (Y), the input command, that is, the data body is analyzed (step S122), and it is determined whether the input command can be executed, that is, whether it is a correct command. It is determined (step S123). If it is executable (Y), the input command is executed (step S124), the execution result is returned to the host (step S125), and step S12 is executed.
Return to 1. If the input command is not executable (step S123; N), information indicating an error is returned to the host (step S126), and the process returns to step S121.

【0035】図13はステータス報告アプリケーション
の動作を示すフローチャートである。この動作では、ま
ず、予め定められたステータスの報告時間か否かを判断
する(ステップS131)。報告時間ではない場合
(N)はこの判断を繰り返す。報告時間である場合
(Y)は、ホストにステータスを報告し(ステップS1
32)、ホストからの応答を待ち(ステップS13
3)、ホストからの応答があったらステップS131に
戻る。
FIG. 13 is a flow chart showing the operation of the status reporting application. In this operation, first, it is determined whether or not it is a predetermined status reporting time (step S131). If it is not the report time (N), this judgment is repeated. If it is the reporting time (Y), the status is reported to the host (step S1).
32), waiting for a response from the host (step S13
3) If there is a response from the host, the process returns to step S131.

【0036】図14はサブストリーム入力アプリケーシ
ョンの動作を示すフローチャートである。この動作で
は、まず、このアプリケーションに対するデータ本文の
入力が有るか否かを判断する(ステップS141)。入
力がない場合(N)にはこの判断を繰り返し、入力があ
ったら(Y)、データ本文であるサブストリームデータ
を取得し(ステップS142)、ホストに受信報告を返
す(ステップS143)。次に、サブストリームデータ
を符号化および多重化する時間か否かを判断する(ステ
ップS144)。なお、サブストリームデータを符号化
および多重化する時間は、サブストリームデータ中に含
まれている時間情報(例えばビデオデータにおける開始
後1時間の時等を示す情報)に基づいて決定される。サ
ブストリームデータを符号化および多重化する時間では
ない場合(N)はこの判断を繰り返し、サブストリーム
データを符号化および多重化する時間の場合(Y)は、
図5に示した制御部66よりサブストリーム符号化部6
4にサブストリームデータD s を送出し、サブストリー
ムデータDs をサブストリーム符号化部64によって符
号化し、更にマルチプレクサ部65によってビデオ符号
化部62の出力データおよびオーディオ符号化部63の
出力データと多重化して、ステップS141に戻る。
FIG. 14 shows a substream input application.
6 is a flowchart showing the operation of the computer. With this action
First, of the data body for this application
It is determined whether or not there is an input (step S141). Entering
If there is no power (N), this judgment is repeated and the input
Tatara (Y), substream data that is the data body
Is received (step S142), and a reception report is returned to the host.
(Step S143). Then the substream data
To determine whether it is time to encode and multiplex
S144). Note that the substream data is encoded
And the multiplexing time is included in the substream data.
Rare time information (eg start in video data
It is determined based on the information indicating the time etc. of the next hour). Sa
In time to encode and multiplex the stream data
If not (N), this judgment is repeated and the substream
In the case of time to encode and multiplex data (Y),
From the control unit 66 shown in FIG. 5 to the substream encoding unit 6
Substream data D in 4 sSend the substream
Data DsIs encoded by the substream encoding unit 64.
Coded, and video coded by the multiplexer 65.
The output data of the encoding unit 62 and the output data of the audio encoding unit 63
After being multiplexed with the output data, the process returns to step S141.

【0037】以上説明したように本実施の形態に係る通
信方法、通信装置および通信システムでは、データ送信
機器10においては、データ送信側のアプリケーション
からデータ受信側のアプリケーションへの通信内容を表
すデータ本文にデータ受信側のアプリケーションの識別
情報であるアプリケーションIDを付加したデータを、
使用する物理インタフェースにおける通信プロトコルに
応じたデータフォーマットに組み入れて送信し、データ
受信機器20においては、受信データ中のアプリケーシ
ョンIDを判別し、判別したアプリケーションIDに対
応するアプリケーションに受信データ中のデータ本文を
引き渡すようにしている。これにより、アプリケーショ
ンから見たデータ形式は、データ本文にデータ受信側の
アプリケーションIDを付加したものとなるので、各物
理インタフェースによって異なるプロトコルを使用しな
がら、使用する物理インタフェースの種類によって、ア
プリケーションから見たデータ形式を区別することな
く、一つのアプリケーションが複数種類の物理インタフ
ェースを使用することが可能となる。また、例えばTC
P/IPやUDP/IPにおけるポート番号のように物
理インタフェース毎に異なる通信プロトコルにおける機
構を利用して受信側のアプリケーションを特定するので
はなく、データ本文に付加するアプリケーションIDに
よって受信側のアプリケーションを特定するので、物理
インタフェースの種類にかかわらず、複数のアプリケー
ションが一つの物理インタフェースを使用することが可
能となる。このように、アプリケーションは、物理イン
タフェースが、原始的なRS−232Cであっても、T
CP/IPやUDP/IPを使用したEthernet
であっても、物理インタフェースの種類を意識せずに通
信を行うことができる。
As described above, in the communication method, the communication apparatus and the communication system according to the present embodiment, in the data transmitting device 10, the data body representing the communication content from the application on the data transmitting side to the application on the data receiving side. The data with the application ID, which is the identification information of the application on the data receiving side, added to
The data format is transmitted in a data format according to the communication protocol of the physical interface to be used. The data receiving device 20 determines the application ID in the received data, and the application corresponding to the determined application ID determines the data body in the received data. I am trying to hand over. As a result, the data format viewed from the application is the data body with the application ID of the data receiving side added. Therefore, while using different protocols for each physical interface, the data format viewed from the application depends on the type of physical interface used. It is possible for one application to use multiple types of physical interfaces without distinguishing the different data formats. Also, for example, TC
Rather than specifying the receiving side application by using the mechanism in the communication protocol that is different for each physical interface such as the port number in P / IP or UDP / IP, the receiving side application is identified by the application ID added to the data body. Since it is specified, a plurality of applications can use one physical interface regardless of the type of physical interface. In this way, the application can use T even if the physical interface is a primitive RS-232C.
Ethernet using CP / IP or UDP / IP
Even in this case, communication can be performed without being aware of the type of physical interface.

【0038】なお、本発明は上記実施の形態に限定され
ず、例えば、通信装置は、上記実施の形態で例示した符
号化装置とホストに限らない。また、上記実施の形態で
は、物理インタフェースとしてRS−232CとEth
ernetを使用する例を示したが、本発明は他の種類
の物理インタフェースを使用する場合にも適用すること
ができる。
The present invention is not limited to the above embodiment, and the communication device is not limited to the encoding device and the host exemplified in the above embodiment, for example. Also, in the above-described embodiment, RS-232C and Eth are used as physical interfaces.
Although the example using the Internet is shown, the present invention can be applied to the case of using other types of physical interfaces.

【0039】[0039]

【発明の効果】以上説明したように本発明の通信方法、
通信装置または通信システムによれば、データ送信側で
は、データ送信側のアプリケーションソフトウェアから
データ受信側のアプリケーションソフトウェアへの通信
内容を表すデータ本文にデータ受信側のアプリケーショ
ンソフトウェアの識別情報を付加したデータを、使用す
る物理インタフェースにおける通信プロトコルに応じた
データフォーマットに組み入れて送信し、データ受信側
では、受信データ中の識別情報を判別し、判別した識別
情報に対応するアプリケーションソフトウェアに受信デ
ータ中のデータ本文を引き渡すようにしたので、アプリ
ケーションソフトウェアから見たデータ形式は、データ
本文にデータ受信側のアプリケーションソフトウェアの
識別情報を付加したものとなり、使用する物理インタフ
ェースの種類によって、アプリケーションソフトウェア
から見たデータ形式を区別することなく、一つのアプリ
ケーションソフトウェアが複数種類の物理インタフェー
スを使用することができるという効果を奏する。また、
物理インタフェース毎に異なる通信プロトコルにおける
機構を利用して受信側のアプリケーションを特定するの
ではなく、データ本文に付加する識別情報によって受信
側のアプリケーションを特定するので、物理インタフェ
ースの種類にかかわらず、複数のアプリケーションソフ
トウェアが一つの物理インタフェースを使用することが
できるという効果を奏する。
As described above, the communication method of the present invention,
According to the communication device or the communication system, at the data transmission side, data obtained by adding identification information of the application software at the data reception side to the data body representing the communication content from the application software at the data transmission side to the application software at the data reception side is used. , The data format is transmitted according to the communication protocol of the physical interface used, and the data receiving side discriminates the identification information in the received data, and the application software corresponding to the discriminated identification information receives the text of the data in the received data. The data format seen from the application software is the data body with the identification information of the application software on the data receiving side added, depending on the type of physical interface used. Te, without distinguishing the data format as viewed from the application software, there is an effect that it is possible one application software uses a plurality of types of physical interfaces. Also,
Rather than specifying the application on the receiving side by using the mechanism of different communication protocol for each physical interface, the application on the receiving side is specified by the identification information added to the data body. This has the effect that the application software of can use one physical interface.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施の形態に係る通信装置を含む通
信システムの構成例を示すブロック図である。
FIG. 1 is a block diagram showing a configuration example of a communication system including a communication device according to an embodiment of the present invention.

【図2】図1におけるデータ送信機器の構成を示すブロ
ック図である。
FIG. 2 is a block diagram showing a configuration of a data transmission device in FIG.

【図3】図2に示したデータ送信機器の機能を示す機能
ブロック図である。
FIG. 3 is a functional block diagram showing functions of the data transmitting device shown in FIG.

【図4】図1におけるデータ受信機器の構成を示すブロ
ック図である。
FIG. 4 is a block diagram showing a configuration of a data receiving device in FIG.

【図5】図4に示したデータ受信機器の機能を示す機能
ブロック図である。
5 is a functional block diagram showing functions of the data receiving device shown in FIG. 4. FIG.

【図6】本発明の一実施の形態に係る通信システムで使
用するRS−232Cにおけるプロトコルでのパケット
フォーマットを示す説明図である。
FIG. 6 is an explanatory diagram showing a packet format in a protocol in RS-232C used in the communication system according to the embodiment of the present invention.

【図7】本発明の一実施の形態に係る通信システムで使
用するEthernetにおけるプロトコルでのパケッ
トフォーマットを示す説明図である。
FIG. 7 is an explanatory diagram showing a packet format of a protocol in Ethernet used in the communication system according to the embodiment of the present invention.

【図8】図2および図3に示したデータ送信機器の動作
を示すフローチャートである。
FIG. 8 is a flowchart showing an operation of the data transmission device shown in FIGS. 2 and 3.

【図9】図4および図5に示したデータ受信機器の動作
を示すフローチャートである。
9 is a flowchart showing an operation of the data receiving device shown in FIGS. 4 and 5. FIG.

【図10】本発明の一実施の形態におけるデータ送信機
器とデータ受信機器の動作の具体例について説明するた
めの通信システムの構成を示すブロック図である。
FIG. 10 is a block diagram showing a configuration of a communication system for explaining a specific example of operations of the data transmitting device and the data receiving device according to the embodiment of the present invention.

【図11】図10に示したデータ送信機器およびデータ
受信機器が有する複数のアプリケーションの関係を示す
説明図である。
11 is an explanatory diagram showing a relationship between a plurality of applications included in the data transmitting device and the data receiving device shown in FIG.

【図12】図4および図5に示したデータ受信機器にお
けるコマンド送受信アプリケーションの動作を示すフロ
ーチャートである。
FIG. 12 is a flowchart showing an operation of a command transmission / reception application in the data receiving device shown in FIGS. 4 and 5.

【図13】図4および図5に示したデータ受信機器にお
けるステータス報告アプリケーションの動作を示すフロ
ーチャートである。
13 is a flowchart showing an operation of a status reporting application in the data receiving device shown in FIGS. 4 and 5. FIG.

【図14】図4および図5に示したデータ受信機器にお
けるサブストリーム入力アプリケーションの動作を示す
フローチャートである。
FIG. 14 is a flowchart showing an operation of a substream input application in the data receiving device shown in FIGS. 4 and 5.

【符号の説明】[Explanation of symbols]

1A,1B…物理インタフェース(RS−232C)、
2…物理インタフェース(Ethernet)、10
(10A〜10D)…データ送信機器、20(20A〜
20F)…データ受信機器、31…データ本文作成部、
32…アプリケーションID作成部、33…RS−23
2C用ヘッダ作成部、34…Ethernet用ヘッダ
作成部、35…送信データ組み立て部、36…制御部、
61…データ分離部、66…制御部
1A, 1B ... Physical interface (RS-232C),
2 ... Physical interface (Ethernet), 10
(10A to 10D) ... Data transmission device, 20 (20A to
20F) ... data receiving device, 31 ... data body creating unit,
32 ... Application ID creation unit, 33 ... RS-23
2C header creating unit, 34 ... Ethernet header creating unit, 35 ... Transmission data assembling unit, 36 ... Control unit,
61 ... Data separation unit, 66 ... Control unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データ送信側では、データ送信側のアプ
リケーションソフトウェアからデータ受信側のアプリケ
ーションソフトウェアへの通信内容を表すデータ本文に
データ受信側のアプリケーションソフトウェアの識別情
報を付加したデータを、物理的な通信路として使用する
物理インタフェースにおける通信プロトコルに応じたデ
ータフォーマットに組み入れて送信し、 データ受信側では、受信データ中の前記識別情報を判別
し、判別した識別情報に対応するアプリケーションソフ
トウェアに受信データ中のデータ本文を引き渡すことを
特徴とする通信方法。
1. At the data transmission side, data obtained by adding identification information of the application software at the data receiving side to a physical body of data representing communication contents from the application software at the data transmitting side to the application software at the data receiving side is physically recorded. The data is transmitted by incorporating it into a data format according to the communication protocol of the physical interface used as the communication path, and the data receiving side discriminates the identification information in the received data, and the received data is received by the application software corresponding to the discriminated identification information. A communication method characterized by delivering the data body of.
【請求項2】 データ送信側のアプリケーションソフト
ウェアからデータ受信側のアプリケーションソフトウェ
アへの通信内容を表すデータ本文を作成するデータ本文
作成手段と、 データ受信側のアプリケーションソフトウェアの識別情
報を作成する識別情報作成手段と、 前記データ本文作成手段によって作成されたデータ本文
に前記識別情報作成手段によって作成された識別情報を
付加したデータを、物理的な通信路として使用する物理
インタフェースにおける通信プロトコルに応じたデータ
フォーマットに組み入れて、送信データを組み立てる送
信データ組み立て手段と、 前記送信データ組み立て手段によって組み立てられた送
信データを送信する送信手段とを備えたことを特徴とす
る通信装置。
2. A data body creating means for creating a data body representing communication contents from the application software on the data transmitting side to the application software on the data receiving side, and identification information creating for producing identification information of the application software on the data receiving side. And a data format according to a communication protocol in a physical interface that uses the data body created by the data body creating means and the identification information created by the identification information creating means as a physical communication path. A communication device comprising: a transmission data assembling unit for assembling transmission data, and a transmission unit for transmitting the transmission data assembled by the transmission data assembling unit.
【請求項3】 データ送信側のアプリケーションソフト
ウェアからデータ受信側のアプリケーションソフトウェ
アへの通信内容を表すデータ本文にデータ受信側のアプ
リケーションソフトウェアの識別情報を付加したデータ
を受信する受信手段と、 前記受信手段によって受信した受信データ中の前記識別
情報を判別する判別手段と、 前記判別手段によって判別された識別情報に対応するア
プリケーションソフトウェアに受信データ中のデータ本
文を引き渡すデータ引き渡し手段とを備えたことを特徴
とする通信装置。
3. Receiving means for receiving data in which identification information of the application software of the data receiving side is added to a data body representing communication contents from the application software of the data transmitting side to the application software of the data receiving side, and the receiving means. And a data delivery unit for delivering the data body of the received data to the application software corresponding to the identification information identified by the identification unit. Communication device.
【請求項4】 データ送信側のアプリケーションソフト
ウェアからデータ受信側のアプリケーションソフトウェ
アへの通信内容を表すデータ本文を作成するデータ本文
作成手段と、データ受信側のアプリケーションソフトウ
ェアの識別情報を作成する識別情報作成手段と、前記デ
ータ本文作成手段によって作成されたデータ本文に前記
識別情報作成手段によって作成された識別情報を付加し
たデータを、物理的な通信路として使用する物理インタ
フェースにおける通信プロトコルに応じたデータフォー
マットに組み入れて、送信データを組み立てる送信デー
タ組み立て手段と、前記送信データ組み立て手段によっ
て組み立てられた送信データを送信する送信手段とを有
する1以上の送信部と、 データ送信側のアプリケーションソフトウェアからデー
タ受信側のアプリケーションソフトウェアへの通信内容
を表すデータ本文にデータ受信側のアプリケーションソ
フトウェアの識別情報を付加したデータを受信する受信
手段と、前記受信手段によって受信した受信データ中の
前記識別情報を判別する判別手段と、前記判別手段によ
って判別された識別情報に対応するアプリケーションソ
フトウェアに受信データ中のデータ本文を引き渡すデー
タ引き渡し手段とを有する1以上の受信部と、 前記送信部と前記受信部との間の物理的な通信路を形成
する1以上の物理インタフェースとを備えたことを特徴
とする通信システム。
4. A data body creating means for creating a data body representing communication contents from the application software on the data sending side to the application software on the data receiving side, and an identification information creation for creating identification information of the application software on the data receiving side. And a data format corresponding to a communication protocol in a physical interface that uses data obtained by adding identification information created by the identification information creating means to the data text created by the data text creating means as a physical communication path. A transmission data assembling unit for assembling transmission data, and one or more transmission units having a transmission unit for transmitting the transmission data assembled by the transmission data assembling unit; Receiving means for receiving data in which the identification information of the application software of the data receiving side is added to the data body representing the communication content to the application software of the data receiving side, and the identification information in the received data received by the receiving means is discriminated. And one or more receiving units having a data delivering unit for delivering the data body of the received data to the application software corresponding to the identification information discriminated by the discriminating unit, and the transmitting unit and the receiving unit. A communication system, comprising: one or more physical interfaces forming a physical communication path between them.
JP8089991A 1996-03-21 1996-03-21 Method, device, and system for communication Pending JPH09259054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8089991A JPH09259054A (en) 1996-03-21 1996-03-21 Method, device, and system for communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8089991A JPH09259054A (en) 1996-03-21 1996-03-21 Method, device, and system for communication

Publications (1)

Publication Number Publication Date
JPH09259054A true JPH09259054A (en) 1997-10-03

Family

ID=13986102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8089991A Pending JPH09259054A (en) 1996-03-21 1996-03-21 Method, device, and system for communication

Country Status (1)

Country Link
JP (1) JPH09259054A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000278294A (en) * 1999-03-23 2000-10-06 Toshiba Corp Communication apparatus and communication method
JP2001326636A (en) * 2000-05-18 2001-11-22 Matsushita Electric Ind Co Ltd Network connection device
US9348548B2 (en) 2013-11-01 2016-05-24 Seiko Epson Corporation Print control system
US9542133B2 (en) 2013-11-01 2017-01-10 Seiko Epson Corporation Print control system and print control method
US10728855B2 (en) 2005-06-30 2020-07-28 Nokia Technologies Oy System coordinated WLAN scanning

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000278294A (en) * 1999-03-23 2000-10-06 Toshiba Corp Communication apparatus and communication method
JP2001326636A (en) * 2000-05-18 2001-11-22 Matsushita Electric Ind Co Ltd Network connection device
US10728855B2 (en) 2005-06-30 2020-07-28 Nokia Technologies Oy System coordinated WLAN scanning
US11057835B2 (en) 2005-06-30 2021-07-06 Nokia Technologies Oy System coordinated WLAN scanning
US9348548B2 (en) 2013-11-01 2016-05-24 Seiko Epson Corporation Print control system
US9542133B2 (en) 2013-11-01 2017-01-10 Seiko Epson Corporation Print control system and print control method
US9804809B2 (en) 2013-11-01 2017-10-31 Seiko Epson Corporation Print control system
US10091388B2 (en) 2013-11-01 2018-10-02 Seiko Epson Corporation Print control system and print control method

Similar Documents

Publication Publication Date Title
JP3563995B2 (en) System for transmitting and receiving auditory information and modulated data
EP1113644B1 (en) Data transfer method and radio terminal for executing transport layer protocol on radio network
CA2230638C (en) Audio file distribution and production system
EP1173948B1 (en) Apparatus for transmitting/receiving bitstream in network and method thereof
KR101080237B1 (en) System and method for modifying a video stream based on a client or network environment, system and method for facilitating a video stream and a computer usable medium
US20060120460A1 (en) Digital video compression command priority
CN101517948B (en) Communicator, communication means and record medium
KR19990083394A (en) Digital multi-media device and method relating thereto
US8583269B2 (en) Isochronous audio network software interface
CA2448556A1 (en) Infrared crosspoint system
JPH09259054A (en) Method, device, and system for communication
JP2001211225A (en) Frame transmission method and frame transmitter
JP2000183883A (en) Multimedia traffic load generation device, load generation method, and program recording medium therefor
US20020146001A1 (en) Gateway system
US6778555B1 (en) Voice over packet system configured to connect different facsimile transmission protocols
JP2002152307A (en) Data receiving device, data transmitting device, data communication system, data receiving method, data transmitting method, data communication method, and program storage medium
JP4383935B2 (en) Address generation method, communication method
JP4406382B2 (en) Speech coding selection control method
JP4704651B2 (en) Method for transmitting stream, transmitter, and transmission system
WO2022044226A1 (en) Communication system, communication method, communication device, and program
KR100319080B1 (en) Apparatus for matching transmission lines in a variable speed communications network
JPH11225171A (en) Method and system for communicating between different communication procedures
JP3469123B2 (en) Audio transmission apparatus and method and audio band signal transmission system
JP2962065B2 (en) Facsimile mail device
JPH0423650A (en) Data transmission reception system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees