Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.
Erkan edited this page Jul 17, 2013 · 17 revisions

Protocole documentation

Commands

get(1, info)

<REPLY get(1, info)>
1 ECoS
1 ProtocolVersion[0.1]
1 ApplicationVersion[1.1.3]
1 HardwareVersion[1.4]
<END 0 (OK)>
get(1, status)

<REPLY get(1, status)>
1 ["GO"]
<END 0 (OK)>
queryObjects(10, name, addr)

<REPLY queryObjects(10, name, addr)>
1000 name["TSO BR215"] addr[3]
1001 name["TSO BR215-"] addr[4]
<END 0 (OK)>
get(1000,name,speed,dir)

<REPLY get(1000,name,speed,dir)>
1000 name["TSO BR215"]
1000 speed[0]
1000 dir[0]
<END 0 (OK)>
get(1000,func[0],func[1],func[2],func[3],func[4],func[5],func[6],func[7])

<REPLY get(1000,func[0],func[1],func[2],func[3],func[4],func[5],func[6],func[7])>
1000 func[0, 0]
1000 func[1, 0]
1000 func[2, 0]
1000 func[3, 0]
1000 func[4, 0]
1000 func[5, 0]
1000 func[6, 0]
1000 func[7, 0]
<END 0 (OK)>

Objects

request(11, name1,)

<REPLY queryObjects(11, name1)>
20000 name1["01"]
20001 name1["02"]
20002 name1["03"]
20003 name1["04"]
<END 0 (OK)>

Control and View

request(1000, control, force)

<REPLY request(1000, control, force)>
<END 0 (OK)>
release(1001, control)

<REPLY release(1001, control)>
<END 0 (OK)>
request(1000, view)

<REPLY request(1000, view)>
<END 0 (OK)>

Events

From station

<EVENT 1>
1 status[STOP]
<END 0 (OK)>
<EVENT 1>
1 status[GO]
<END 0 (OK)>

From train

<EVENT 1000>
1000 func[0, 1]
<END 0 (OK)>
<EVENT 1000>
1000 speed[64]
1000 speedstep[14]
<END 0 (OK)>
<EVENT 1000>
1000 dir[1]
<END 0 (OK)>
<EVENT 1001>
1001 msg[CONTROL_LOST]
<END 0 (OK)>

From objects

<EVENT 20028>
20028 state[0]
<END 0 (OK)>
Clone this wiki locally