KR19980083753A - Master-Slave Multiplexing Protocol - Google Patents

Master-Slave Multiplexing Protocol Download PDF

Info

Publication number
KR19980083753A
KR19980083753A KR1019970019179A KR19970019179A KR19980083753A KR 19980083753 A KR19980083753 A KR 19980083753A KR 1019970019179 A KR1019970019179 A KR 1019970019179A KR 19970019179 A KR19970019179 A KR 19970019179A KR 19980083753 A KR19980083753 A KR 19980083753A
Authority
KR
South Korea
Prior art keywords
slave
master
data
address
slaves
Prior art date
Application number
KR1019970019179A
Other languages
Korean (ko)
Inventor
김석원
Original Assignee
홍종만
삼성자동차 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 홍종만, 삼성자동차 주식회사 filed Critical 홍종만
Priority to KR1019970019179A priority Critical patent/KR19980083753A/en
Publication of KR19980083753A publication Critical patent/KR19980083753A/en

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

데이타 통신 제어 방법에 관한 것으로, 특히 마스터로부터 한번의 명령 송출에 의해 다수의 슬레이브들을 독립적으로 제어하고 그들로부터의 요구정보를 독립적으로 억세스할 수 있도록한 마스터-슬레이브간의 멀티플렉싱 프로토콜 방법에 관한 것이다. 상기의 멀티플렉싱 프로토콜 방법은 하나의 마스터장치와 이에 접속된 다수의 슬레이브 장치들을 가지는 마스터-슬레이브간의 데이타 통신장치에서 효율적으로 이용되며, 이는 다수의 슬레이브들 각각의 상태와 처리 요구에 관한 정보를 마스터가 전송 받는 단게와, 상기 슬레이브들 각각 상태와 처리요구정보에 대응하는 다수의 명령 데이타를 멀티플렉싱하여 이를 공통 어드레스를 가지는 데이타 프레임으로 전송하는 마스터 데이타 프레임 전송단계와, 슬레이브들에게 공통 어드레스가 설정되며, 상기 공통 어드레스를 가지는 데이타 프레임을 수신하여 미리 설정된 위치에 대응하는 자기 데이타를 수신하여 명령을 수행하는 슬레이브 수신단계와, 상기 자기 데이타의 수신에 의한 명령을 수행한 후 자신의 공통 어드레스를 고유 어드레스로 변경하여 자신의 상태 및 요구사항의 정보를 설정하고, 공통 어드레스로 천이하는 슬레이브 어드레스 변경단계를 포함하여 이루어진다.The present invention relates to a data communication control method, and more particularly, to a master-slave multiplexing protocol method that independently controls a plurality of slaves by one command transmission from a master and independently accesses request information from them. The multiplexing protocol method is efficiently used in a data communication device between a master device and a master-slave having a plurality of slave devices connected to the master device. A master data frame transmission step of multiplexing a plurality of command data corresponding to a step of receiving and the state and processing request information of each of the slaves and transmitting the same to a data frame having a common address, and a common address is set to the slaves, A slave receiving step of receiving a data frame having the common address, receiving magnetic data corresponding to a preset position, and executing a command; and performing a command by receiving the magnetic data, and then replacing its common address with a unique address change Set with the information on the locations of their condition and request, the slave address comprises the step of changing changes to the common address.

Description

마스터-슬레이브간의 멀티 플렉싱 프로토콜Master-Slave Multiplexing Protocol

본 발명은 마스터-슬레이브간의 프로토콜 송수신 제어 방법에 관한 것으로, 특히 한번의 명령 송출에 의해 다수의 슬레이브들을 독립적으로 제어하고 그들로부터의 요구정보를 독립적으로 억세스할 수 있도록한 마스터-슬레이브간의 멀티플렉싱 프로토콜에 관한 것이다.The present invention relates to a method for controlling transmission and reception of a protocol between master and slaves, and more particularly, to a multiplexing protocol between master and slaves capable of independently controlling a plurality of slaves by a single command transmission and independently accessing request information from them. It is about.

통상적으로, 디지탈 통신장치에서는 하나의 마스터가 여러 개의 슬레이브를 독립적(개별적)으로 제어하는 관계를 마스터-슬레이브 제어 체계로 일커러 칭한다. 이와 같은 마스터-슬레이브 제어 체계에서는 마스터 장치와 여러 개의 슬레이브들간의 프로토콜 데이타를 송수신하는 구성을 가지며, 이러한 구성은 직렬통신 방식을 구현 할 수 있도록 되어 있다.Typically, in a digital communication device, a relationship in which one master controls several slaves independently (individually) is referred to as a master-slave control scheme. In such a master-slave control system, a protocol for transmitting and receiving protocol data between a master device and a plurality of slaves is provided, and such a configuration can implement a serial communication method.

도 1은 종래의 기술에 의한 마스터-슬레이브간의 프로토콜을 위한 블럭도이다. 도면에서 참조부호 S1, S2, S3 및 S4들은 독립적인 고유의 어드레스가 할당되어 있으며, 고유의 어드레스가 포함된 실행명령의 수신에 응답하여 특정기능을 수생하는 다수의 슬레이브 장치들이다. 이때, 상기 다수의 슬레이브 장치들 Si(여기서 i는 정수 1. 2, 3, 4임)는 상기 실행명령의 수행상태와 요구사항의 정보를 고유 어드레스와 함께 내부 레지스터에 저장하는 기능을 갖는다. 그리고, MA는 상기 다수의 슬레이브들 Si의 상태와 요구사항의 정보를 억세스하고, 다수의 슬레이브 장치들 Si의 고유의 어드레스와 함께 실행명령을 전송하는 마스터 장치이다.1 is a block diagram for a master-slave protocol according to the prior art. In the drawings, reference numerals S1, S2, S3, and S4 are assigned independent independent addresses, and are a plurality of slave devices that receive a specific function in response to receiving an execution command including the unique address. At this time, the plurality of slave devices Si (where i is an integer of 1. 2, 3, 4) has a function of storing the execution state of the execution command and information of the requirements together with a unique address in an internal register. The MA is a master device that accesses information on the status and requirements of the plurality of slaves Si and transmits an execution command with a unique address of the plurality of slave devices Si.

도 2는 종래의 기술에 의한 마스터-슬레이브간의 프로토콜 송수신 데이타 포맷의 구성도를 도시한 도면으로서, 마스터장치와 슬레이브 장치간에 송수신되는 데이타가 직렬 통신임을 알 수 있다.FIG. 2 is a diagram illustrating a configuration of a protocol transmission / reception data format between a master and a slave according to the related art, and it can be seen that data transmitted and received between a master device and a slave device is serial communication.

도 2에서, STA는 시작비트(start bit), Si어드레스는 i번째 슬레이브를 지정하는 어드레스, P는 패리티 비트나 CRC(cycle redundancy check)와 같은 데이타의 무결정을 보장하기 위한 비트들이며, Si데이타는 i번재 슬레이브를 제어하기 위한 제어명령 데이타이며, STO는 종료비트(stop bit)이다.In FIG. 2, the STA is a start bit, the Si address is an address designating the i-th slave, P is bits for ensuring indetermination of data such as parity bits or a cycle redundancy check (CRC), and Si data is Control command data for controlling the i slave, and STO is a stop bit.

우선, 도 1과 도2를 참조하여 하나의 마스터 장치 MA가 다수의 슬레이브 장치들 Si의 정보를 읽어 개별적으로 제어하는 동작과정을 간략히 설명한다.First, an operation process in which one master device MA reads and individually controls information of a plurality of slave devices Si will be briefly described with reference to FIGS. 1 and 2.

지금, 도 1과 같은 마스터-슬레이브장치가 동작되면 마스터 장치 MA는 다수의 슬레이브 장치 Si의 상태를 파악하기 위하여 슬레이브 장치 S1, S2, S3 및 S4들의 정보를 폴링방식으로 읽어온다. 이때, 상기 슬레이브 장치 S1, S2, S3 및 S4들의 정보는 슬레이브 자신의 고유 어드레스와 슬레이브 자신의 동작상태를 나타내는 정보 및 요구사항(마스터에게 요구하는 정보)의 정보가 저장되어 있다.Now, when the master-slave device as shown in FIG. 1 is operated, the master device MA reads information of the slave devices S1, S2, S3, and S4 in a polling manner in order to determine the state of the plurality of slave devices Si. At this time, the information of the slave devices S1, S2, S3, and S4 stores the unique address of the slave itself, information indicating the operation state of the slave itself, and information of requirements (information required by the master).

상기와 같은 과정에 의해 다수의 슬레이브들 Si의 각각의 요구사항을 파악한 마스터 장치 MA는 요구정보가 있는 특정 슬레이브들을 실행 시키기 위한 제어명령을 송출한다. 이때, 상기 마스터 MA로부터 상기 특정 슬레이브로 송출되는 제어명령의 데이타 프레임의 포맷은 도 2에 도시된 바와 같다. 즉, 특정한 슬레이브를 지정하기 위한 슬레이브의 어드레스와 해당 슬레이브의 동작을 제어하기 위한 데이타 프레임을 순차적으로 송출한다.The master device MA grasping the requirements of each of the plurality of slaves Si by the above process sends a control command for executing specific slaves having the request information. At this time, the format of the data frame of the control command sent from the master MA to the specific slave is as shown in FIG. That is, the address of the slave for designating the specific slave and the data frame for controlling the operation of the slave are sequentially transmitted.

상기 마스터 장치 MA로부터 도 2와 같은 형태로 송출되는 데이타 프레임을 각각 수신하는 다수의 슬레이브들 Si는 수신된 데이타 프레임에 포함된 어드레스와 자신 고유의 어드레스를 비교하여 동일한 경우에만 후속하는 데이타를 수신하여 해당 제어명령에 대한 기능을 수행한다. 따라서, 마스터 장치 MA로부터 송출된 데이타 프레임의 어드레스가 S1인 경우에는 다수의 슬레이브들 Si중 슬레이브 S1만이 이를 수신하여 해당 기능을 실행하게 된다.A plurality of slaves Si each receiving a data frame transmitted in the form as shown in FIG. 2 from the master device MA compares an address included in the received data frame with its own address and receives subsequent data only when the same is identical. Perform the function for the corresponding control command. Therefore, when the address of the data frame sent from the master device MA is S1, only the slave S1 among the plurality of slaves Si receives this and executes the corresponding function.

그러나, 상기 도 2와 같은 데이타 포맷에 의한 종래의 프로토콜 송수신 방법은 마스터 장치 MA가 특정 슬레이브 장치로 데이타를 전송할 때 슬레이브 고유의 어드레스를 함께 송출하는 방법이어서 다수의 슬레이브들에 제어명령을 송신하여야 하는 경우에는 모든 슬레이블들의 어드레스를 데이타 앞에 다 보내주어야 하는 통신상의 오버헤드(over head)가 발생하여 통신장애를 가져온다.However, the conventional protocol transmission / reception method using the data format as shown in FIG. 2 is a method of transmitting a slave-specific address together when the master device MA transmits data to a specific slave device, thereby transmitting control commands to a plurality of slaves. In this case, there is a communication overhead in that all addresses of the slaves must be sent before data, resulting in communication failure.

따라서, 본 발명의 목적은 하나의 마스터 장치와 다수의 슬레이브 장치들로 구성된 마스터-슬레이브의 프로토콜 송수신을 다중화하여 고속으로 전송하는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for multiplexing and transmitting a protocol of a master-slave composed of one master device and a plurality of slave devices at high speed.

본 발명의 다른 목적은 다수의 슬레이브 장치들이 자신의 수신 어드레스를 선택적으로 변경하여 마스터와의 데이타 송수신을 효율적으로 실행하는 방법을 제공하는 프로토콜을 제안함에 있다.Another object of the present invention is to propose a protocol that provides a method for efficiently executing data transmission and reception with a master by a plurality of slave devices selectively changing their reception addresses.

상기한 목적을 달성하기 위한 본 발명은, 하나의 마스터장치와 이에 접속된 다수의 슬레이브 장치들을 가지는 마스터-슬레이브간의 프로토콜 멀티플렉싱에 있어서, 상기 마스터가 다수의 슬레이브들 각각에 설정된 고유 어드레스를 통해 그들의 상태와 처리요구정보를 폴링방식을 통해 수신받고 상기 슬레이브들 각각의 설정정보에 대응하는 다수의 명령 데이타 프레임을 멀티플렉싱하여 이를 공통 어드레스를 가지는 데이타 블럭으로 전송하는 마스터 데이타 블럭 전송단계와, 상기 공통 어드레스를 가지는 데이타 블럭을 수신하여 미리 설정된 위치에 대응하는 자기 데이타를 수신하여 명령을 수행하는 슬레이브 실행단계와, 상기 자기 데이타의 수신에 의한 명령을 수행한 후 자신의 공통 어드레스를 고유 어드레스로 변경하여 마스터가 폴링을 통해 슬레이블들에게 권한을 주면 자신의 상태와 요구사항을 마스터에게 전송해주고 공통 어드레스로 천이하는 슬레이브 공통 어드레스 변경단계로 이루어짐을 특징으로 한다.The present invention for achieving the above object, in the protocol multiplexing between a master and a slave having a master device and a plurality of slave devices connected to the master, the state of the master through a unique address set to each of the plurality of slaves And a master data block transmission step of receiving processing request information through a polling method, multiplexing a plurality of command data frames corresponding to the configuration information of each of the slaves, and transmitting the multiple command data frames to a data block having a common address; A slave execution step of receiving a data block having a data block and receiving a magnetic data corresponding to a preset position, and performing a command by receiving the magnetic data; Polling Give the authority to the dew label features a slave made of an common address changing step of shifting the locations of their condition and request sent to the master haejugo a common address.

도 1은 종래의 기술에 의한 마스터-슬레이브간의 프로토콜을 위한 블럭도.1 is a block diagram for a master-slave protocol according to the prior art.

도 2는 종래의 기술에 의한 마스터-슬레이브간의 프로토콜 송수신 데이타 포맷의 구성도를 도시한 도면.2 is a block diagram of a protocol transmission and reception data format between a master and a slave according to the prior art.

도 3은 본 발명의 실시예에 따른 마스터-슬레이브간의 프로토콜의 송수신 과정을 설명하기 위한 도면이다.3 is a diagram for describing a process of transmitting and receiving a protocol between a master and a slave according to an embodiment of the present invention.

도 4는 본 발명의 실시예에 따른 마스터가 슬레이브에게 실행을 요구하는 데이타 프레임의 구성을 도시한 도면.4 is a diagram illustrating a configuration of a data frame in which a master requests execution from a slave according to an embodiment of the present invention.

이하 본 발명에 따른 바람직한 실시예를 첨부한 도면을 참조하여 상세히 설명한다. 본 발명의 실시예에 관한 도면에서 전술한 도면상의 구성 요소와 실질적으로 동일한 구성과 기능을 가진 것들에는 그것들과 동일한 참조 부호를 사용할 것이다. 하기의 설명에서는 본 발명에 따른 동작을 이해하는데 필요한 부분만이 설명되며 그 이외 부분의 설명은 본 발명의 요지를 흐트리지 않도록 생략될 것이라는 것을 유의하여야 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings of the embodiments of the present invention, those having substantially the same configuration and function as those in the above-described drawings will use the same reference numerals. It should be noted that in the following description, only parts necessary for understanding the operation according to the present invention will be described, and descriptions of other parts will be omitted so as not to obscure the subject matter of the present invention.

도 3은 본 발명의 실시예에 따른 마스터-슬레이브간의 프로토콜의 송수신 과정을 설명하기 위한 도면이다. 도 3에서, 참조번호 10은 마스터 장치 MA이 다수의 슬레이브 장치들 S1, S2, S3 및 S4에 전송할 명령 데이타를 공통 어드레스의 데이타 프레임에 멀티플렉싱하여 전송하는 경로이며, 참조번호 12, 14, 16 및 18들은 다수의 슬레이브 장치들 S1, S2, S3 및 S4 각각이 마스터가 폴링방식으로 자신에게 권한을 주었을 때 자신의 상태와 요구사항의 정보를 마스터 장치 MA에게 전송하는 경로를 나타내며, 이때의 데이타 프레임은 일반적인 직렬통신에서 볼수 있는 어드레스 + 데이타구조를 갖는다. 여기서, 상기 모든 경로들 10, 12, 14, 16 및 18들은 마스터 장치 MA와 다수의 슬레이브들 S1, S2, S3 및 S4간에 접속된 공통버스를 통해 형성된 로직칼 경로이며, 경로 11은 실제로 마스터와 슬레이브간에 연결된 물리적 데이타 버스이다.3 is a diagram for describing a process of transmitting and receiving a protocol between a master and a slave according to an embodiment of the present invention. In FIG. 3, reference numeral 10 denotes a path through which the master device MA multiplexes and transmits command data to be transmitted to a plurality of slave devices S1, S2, S3, and S4 in a data frame of a common address. 18 represents a path in which a plurality of slave devices S1, S2, S3, and S4 each transmit information of their status and requirements to the master device MA when the master is authorized by the polling method, and at this time, a data frame Has the address + data structure found in normal serial communication. Here, all the paths 10, 12, 14, 16, and 18 are logical paths formed through a common bus connected between the master device MA and the plurality of slaves S1, S2, S3, and S4, and path 11 is actually a master path. A physical data bus connected between slaves.

도 4는 본 발명의 실시예에 따른 마스터 장치의 데이타 프레임과 데이타 블럭 구성으로서, 다수의 슬레이브 장치들 S1, S2, S3 및 S4에 전송할 명령 S1데이타, S2데이타, S3데이타 및 S4데이타를 공통 어드레스의 데이타 프레임에 멀티플렉싱한 것을 도시한 것이다. 여기서, P는 패리티 비트이거나 CRC와 같은 데이타의 무결성을 보장하는 비트들이며 없어도 무관하다.4 is a configuration of a data frame and a data block of a master device according to an embodiment of the present invention, in which command S1 data, S2 data, S3 data, and S4 data to be transmitted to a plurality of slave devices S1, S2, S3, and S4 are common addresses; Shows multiplexing to a data frame. Here, P is a parity bit or bits that guarantee the integrity of data such as CRC, and may be absent.

우선, 도 3 및 도 4를 참조하여 본 발명에 따른 바람직한 실시예를 설명하기에 앞서 모든 슬레이브 장치들 Si는 마스터 장치 MA로부터의 전송된 명령을 수행한 후 자신만의 어드레스로 변경하고, 자신의 상태 및 요구사항의 정보를 마스터에게 전송할 준비가 되어 잇는 상태라 가정한다.First, prior to describing the preferred embodiment according to the present invention with reference to FIGS. 3 and 4, all slave devices Si change to their own addresses after performing a command sent from the master device MA, Assume that you are ready to send status and requirements information to the master.

지금, 도 3에 도시된 마스터-슬레이브간의 장치가 동작되면 마스터 장치 MA는 경로 12, 14, 16 및 18을 이용하여 다수의 슬레이브 장치 S1, S2, S3 및 S4의 레지스터에 설정된 슬레이브의 상태와 요구사항의 정보를 개별적으로 리이드한다. 예를 들면, 처음 마스터 장치 MA는 슬레이브 장치 S1에 설정된 고유 어드레스를 지정하여 상기 슬레이브 장치 S1의 상태 정보와 요구사항의 정보를 수신받는다. 이때, 마스터가 스레이브 S1의 상태정보아 요구사항을 수신 받기 위해서 내보내는 S1송신요구 프레임은 수신자의 어드레스가 슬레이브 장치 S1에 설정된 어드레스이어서 다른 슬레이브 장치 S2, S3 및 S4는 이 프레임에 대하서는 반응하지 않고 자기의 어드레스가 포함된 마스터의 프레임을 기다리고 있는 상태이다.Now, when the master-slave device shown in FIG. 3 is operated, the master device MA uses the paths 12, 14, 16, and 18 to request the status and request of the slaves set in the registers of the plurality of slave devices S1, S2, S3, and S4. Read the information separately. For example, the master device MA initially receives a status of the slave device S1 and information of requirements by designating a unique address set in the slave device S1. At this time, the S1 send request frame sent by the master to receive the status information child request of the slave S1 is the address set in the slave device S1 so that the other slave devices S2, S3, and S4 do not respond to the frame. It is waiting for the frame of the master including its address.

상기와 같이 슬레이브 장치 S1에 설정된 데이타를 마스터로 스레이브 S1이 전송한 후, 슬레이브 장치 S1은 어드레스를 공통 어드레스로 교체하여 다음 상태에서 마스터가 보내는 프레임대로 실행할 준비를 한다. 이와 같은 방법에 의해 마스터 장치 MA가 다수의 슬레이브 장치 Si들의 설정 정보를 전부 수신 받으면, 모든 슬레이브 장치 Si들의 어드레스는 공통 어드레스로 설정되어 마스터 장치 MA로부터의 실행명령을 대기하는 상태로 천이된다.After the slave S1 transmits the data set in the slave device S1 to the master as described above, the slave device S1 replaces the address with a common address and prepares to execute the frame sent by the master in the next state. When the master device MA receives all the configuration information of the plurality of slave device Sis in this manner, the addresses of all the slave device Sis are set to a common address, and the state transitions to a waiting state for an execution command from the master device MA.

모든 슬레이브 장치 Si들의 요구사항을 읽은 마스터 장치 MA는 슬레이브 장치들 Si의 요구사항대로 다수의 슬레이브들을 동작시키기 위한 명령 데이타를 생성하고, 상기 생성된 다수의 슬레이브들의 명령 데이타를 도 2에 도시된 바와 같이 여러개의 실행 데이타 프레임을 가진 하나의 데이타 프레임으로 멀티플렉싱하여 도 4의 경로 10과 같이 전송한다. 이때, 도 4과 같이 멀티플렉싱된 데이타 블럭을 살펴보면 모든 슬레이브들 Si들이 수신 가능하게 설정된 공통 어드레스가 먼저 전송된 후, 해당 슬레이브들의 데이타 프레임이가 순차적으로 전송된다.After reading the requirements of all slave device Sis, the master device MA generates command data for operating the plurality of slaves according to the requirements of the slave devices Si, and the generated command data of the plurality of slaves is shown in FIG. As shown in FIG. 4, path 10 is multiplexed into one data frame having several execution data frames. In this case, referring to the multiplexed data block as shown in FIG. 4, a common address in which all slaves Si are receivable is transmitted first, and then data frames of the slaves are sequentially transmitted.

이때, 다수의 슬레이브들 Si의 어드레스는 모두 같은 공통 어드레스로 변경되어 있음으로 도 4와 같이 공통 어드레스를 가지는 멀티플렉싱된 데이타 블럭을 슬레이브들은 동시에 수신하여 자기 데이타 프레임의 명령을 수행한다. 즉, 다수의 슬레이브들 Si는 공통 어드레스의 수신에 응답하여 연속적으로 입력되는 데이타 프렝임의 STA와 STO의 구별 비트를 이용해 카운팅하여 자기 위치 데이타만을 수신한다. 예를 들면, 두 번째 슬레이브 장치 S2인 경우에는 공통 어드레스가 입력된 후, 데이타 프레임을 STA와 STO등을 카운팅하여 두 번째 프레임으로 입력되는 S2 데이타 프레임만을 수신하여 이에 대응한 명령을 수행한다.At this time, since the addresses of the plurality of slaves Si are all changed to the same common address, the slaves simultaneously receive the multiplexed data blocks having the common address as shown in FIG. That is, the plurality of slaves Si receive only their position data by counting using the distinguishing bits of the STA and the STO of the data frame that are continuously input in response to the reception of the common address. For example, in the case of the second slave device S2, after the common address is input, the data frame is counted by the STA and the STO, and only the S2 data frame input as the second frame is received to perform a corresponding command.

상기와 같은 동작에 의해 마스터 장치 MA가 멀티플렉싱된 하나의 데이타 블럭을 전송하면 공통 어드레스를 가지는 다수의 슬레이브들 Si이 이를 모두 수신하여 멀티플렉싱된 데이타 프레임중 자기 프레임의 데이타를 수신하여 동작함으로서 데이타 전송 효율을 증대 시킬 수 있다. 예를 들어, 슬레이브 장치의 어드레스가 8비트로 구성되었다면, n개의 슬레이브들로 데이타를 전송시 (n-1)*8 만큼의 데이타 전송 손실을 방지할 수 있다.When the master device MA transmits a multiplexed data block by the above operation, a plurality of slaves Si having a common address receive all of them and operate by receiving data of a magnetic frame among the multiplexed data frames. Can be increased. For example, if the address of the slave device is configured with 8 bits, data transmission loss of (n-1) * 8 can be prevented when transmitting data to n slaves.

상술한 바와 같이 본 발명은 마스터-슬레이브간의 프로토콜 송수신시, 마스터가 다수의 슬레이브들의 명령을 한번에 전송할 수 있어 네트워크상의 데이타량을 감소시킬 수 있어 보다 고속으로 동작할 수 있다.As described above, in the present invention, when the master-slave protocol is transmitted and received, the master can transmit commands of a plurality of slaves at one time, thereby reducing the amount of data on the network and thus operating at a higher speed.

Claims (1)

하나의 마스터 장치와 이에 접속된 다수의 슬레이블장치들을 가지는 마스터-슬레이브간의 멀티플렉싱 프로토콜에 있어서,In a multiplexing protocol between a master and a slave having one master device and a plurality of slave devices connected thereto, 상기 마스터는, 고유의 어드레스를 가지는 각 슬레이브들에게 전송권한을 순차적으로 부여하여 각 슬레이블들로부터 슬레이브 자신의 실행상태와 요구를 순차적으로 전송받고, 정보를 전송한 각 슬레이브는 다음 단계에서의 실생 명령 수신을 위해서 슬레이브 공통 어드레스로 잔신의 어그레스를 변경하는 슬레이블 공통 어드레스 변경단계와,The master sequentially grants transmission authority to each slave having a unique address so as to receive the slave's own execution status and request from each slave in sequence, and each slave having transmitted the information is executed in the next step. A slave common address changing step of changing the address of the residual to the slave common address for receiving a command; 상기 마스터가 각 슬레이브들로부터 수신한 정보를 제어 데이타로 벼환하여, 상기 다수의 제어데이타를 슬레이브들에게 전송할 때 이전의 단계에서 각 슬레이브들이 변경한 공통 어드레스 하나와 각 슬레이브들을 제어하기 위핸 데이타 플레임들로 데이타 블럭을 구성하여 전송하는 마스터 데이타 블럭 전송단계와,Data frames for controlling each slave and one common address changed by each slave in a previous step when the master converts the information received from each slave into control data and transmits the plurality of control data to the slaves. A master data block transfer step of constructing and transmitting a data block with 상기 슬레이브들은 상기 공통 어드레스를 가지는 데이타 블럭을 동시에 수신하여 미리 설정된 위치에 대응하는 자기 데이타 프레임을 선택하여 명령을 수행하는 슬레이브 실행단계와,A slave execution step in which the slaves simultaneously receive a data block having the common address and select a magnetic data frame corresponding to a preset position to execute a command; 상기 자기 데이타 프레임의 수신에 의해 슬레이브들은 실행명을 수행한 후, 슬레이브 공통 어드레스를 자신만의 고유 어드레스로 다시 변경하여 상기 처음의 단계로 되돌아가는 슬레이브 독자 어드레스 변경단계로 이루어짐을 특징으로 하는 마스터-슬레이브간의 멀티플렉싱 프로토콜.After the slave performs the execution name by receiving the magnetic data frame, the slave master address change step of changing the slave common address back to its own unique address and returning to the first step. Multiplexing protocol between slaves.
KR1019970019179A 1997-05-17 1997-05-17 Master-Slave Multiplexing Protocol KR19980083753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970019179A KR19980083753A (en) 1997-05-17 1997-05-17 Master-Slave Multiplexing Protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970019179A KR19980083753A (en) 1997-05-17 1997-05-17 Master-Slave Multiplexing Protocol

Publications (1)

Publication Number Publication Date
KR19980083753A true KR19980083753A (en) 1998-12-05

Family

ID=65990469

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970019179A KR19980083753A (en) 1997-05-17 1997-05-17 Master-Slave Multiplexing Protocol

Country Status (1)

Country Link
KR (1) KR19980083753A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101433478B1 (en) * 2012-12-17 2014-09-18 넥스콘 테크놀러지 주식회사 A Method of Auto CAN ID Setting for Energy Storage System Slave Battery Management System
US9564204B2 (en) 2015-06-19 2017-02-07 SK Hynix Inc. Multi-chip package and operating method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101433478B1 (en) * 2012-12-17 2014-09-18 넥스콘 테크놀러지 주식회사 A Method of Auto CAN ID Setting for Energy Storage System Slave Battery Management System
US9564204B2 (en) 2015-06-19 2017-02-07 SK Hynix Inc. Multi-chip package and operating method thereof

Similar Documents

Publication Publication Date Title
JPH0748739B2 (en) Multiple access control method and multiple access control system implementing the method
JPS60500195A (en) Method and device for smoothly interrupting digital communication links
JPS63273960A (en) Communication network adaptor
KR20070039580A (en) Message administrator and method for controlling access to data of the message memory of a communications component
CA2485187A1 (en) Method and system for transmitting data via switchable data networks
EP0028438B1 (en) An apparatus for generating telex signaling sequences in a distributed processing telex exchange
JP2008310832A (en) Apparatus and method for distributing signal from high level data link controller to a plurality of digital signal processor cores
KR19980083753A (en) Master-Slave Multiplexing Protocol
JPS59114941A (en) Programmable controller
JP3169856B2 (en) Multi-node information processing system
US7443886B1 (en) Communication protocol system and method
US11296903B2 (en) Master of a bus system
US20040114582A1 (en) Electronic switching circuit and method for a communication interface with buffer storage
EP1476986B1 (en) Information communication controller interface apparatus and method
US7032061B2 (en) Multimaster bus system
JPH09319699A (en) Bus system
JP3178474B2 (en) Communication control device
JPS63293657A (en) Serial communication controller
JP2715737B2 (en) Data communication method
CN112148659B (en) Data transmission circuit
JPH0618373B2 (en) Data transmission method and device
CN113360432B (en) Data transmission system
KR100211059B1 (en) Polling address control apparatus and method thereof
JP2996089B2 (en) Logic simulation equipment
KR100584583B1 (en) Apparatus and method controlling a serial bus

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
NORF Unpaid initial registration fee