User Tools

Site Tools


lbaops:mark5evlbi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lbaops:mark5evlbi [2010/12/21 12:03]
chris.phillips
lbaops:mark5evlbi [2015/12/18 16:39] (current)
Line 40: Line 40:
 Data is sent to the **m5data** port. Data is sent to the **m5data** port.
  
-The following commands from the Mark5A command need to be sent to the Mark5 at the station:+=====  ​Mark5 commands =====
  
-  *  play_rate +====  play_rate=data:<​rate>​ ====
-  *  play +
-  *  play? +
-  *  net_protocol +
-  *  in2net +
-  *  mode +
-  *  status? +
-  *  mtu +
- +
-A typical session would involve the following commands being sent: +
- +
-->''​mtu=9000'' ​ (if UDP)\\ +
-''​net_protocol=udp:​8388608:​131072:​8''​\\ +
-''​mode=mark4:​32''​\\ +
-''​play_rate=data:​16''​\\ +
-''​ipd=10''​ +
-''​in2net=connect:​145.146.96.21''​\\ +
-''​in2net=on''​ +
- +
-Time passed +
- +
-->''​in2net=disconnect''​ +
- +
- +
-A more detailed description for the commands issued: +
- +
- +
-=====  play_rate=data:<​rate> ​=====+
  
  
Line 80: Line 53:
  
  
-=====  play=off ​=====+====  play=off ====
  
  
Line 87: Line 60:
  
  
-=====  net_protocol=<​protocol>:<​sockbuf size>:<​workbuf size> ​=====+====  net_protocol=<​protocol>:<​sockbuf size>:<​workbuf size> ====
  
  
-Used to set the network data-transport protocol. ​  The <sockbuf +Used to set the network data-transport protocol. ​  The <sockbuf size> argument is  
-size> argument is the socket send buffer size.  You should probably use this value+the socket send buffer size.  You should probably use this value
 in a setsockopt(...,​ SOL_SOCKET, SO_SBDBUF, ...) call on the socket in a setsockopt(...,​ SOL_SOCKET, SO_SBDBUF, ...) call on the socket
 used to send the data.  used to send the data. 
Line 99: Line 72:
 [=!=]net_protocol = 0 ; [=!=]net_protocol = 0 ;
  
-=====  mtu=<mtu size> ​=====+====  mtu=<mtu size> ====
  
 Set the mtu for UDP transfers Set the mtu for UDP transfers
Line 108: Line 81:
  
  
-=====  in2net=connect:<​ip> ​=====+====  in2net=connect:<​ip>​ ====
  
  
Line 123: Line 96:
  
  
-=====  in2net=on ​=====+====  in2net=on ====
  
  
Line 134: Line 107:
  
  
-=====  in2net=disconnect ​=====+====  in2net=disconnect ====
  
  
 Used to make the Mark5 at the station stop sending data and terminate Used to make the Mark5 at the station stop sending data and terminate
-the (tcp) connection.+the  connection.
  
 Expected response: Expected response:
Line 144: Line 117:
 [=!=]in2net = 0 ; [=!=]in2net = 0 ;
  
-=====  in2net=off ​=====+====  in2net=off ====
  
 ?? ??
Line 153: Line 126:
  
  
-=====  mode=<​data mode>:<​data submode> ​=====+====  mode=<​data mode>:<​data submode> ====
  
 Used to set the playback mode of the Mark5 at the station.  ​ Used to set the playback mode of the Mark5 at the station.  ​
Line 161: Line 134:
 [=!=]mode = 0 ; [=!=]mode = 0 ;
  
-=====  status? ​=====+====  status? ====
  
 Used to query the status of the (remote) Mark5.  ​ Used to query the status of the (remote) Mark5.  ​
Line 170: Line 143:
 [=!=]status?​ 0 : 0x00010001 ; (when sending data) [=!=]status?​ 0 : 0x00010001 ; (when sending data)
  
-=====  play? =====+====  play? ====
  
 Request play state (disk only??) Request play state (disk only??)
Line 178: Line 151:
 [=!=]status?​ 0 : 0x00000001 ; (when not sending data)\\ [=!=]status?​ 0 : 0x00000001 ; (when not sending data)\\
 [=!=]status?​ 0 : 0x00010001 ; (when sending data) [=!=]status?​ 0 : 0x00010001 ; (when sending data)
-=====  Setting TVG test ===== 
  
-To setup the Mark5 to sent thr TVG test vector, run:+=====  clock_set=<​rate>​:int:<​rate>​ =====
  
- ​mode=tvg:​8 +To set the Mark5b clock rate to "​rate"​
- ​play_rate=data:​4+
  
-This will send 8 tracks at 4 Mbps, ie a total of 32 Mbps.+[=!=]clock_set = 0 ;
  
-=====  Mark5 Control commands ===== 
  
-The Mark5A protocol uses two TCP ports: 
- 
-  *  m5data ​         2630/​tcp ​                       # Mark5 data 
-  *  m5drive ​        ​2620/​tcp ​                       # Mark5 control 
- 
- 
-Commands are sent to the **m5drive** port as newline terminated strings. 
-The replies are newline terminated also. 
- 
-Data is sent to the **m5data** port. 
- 
-The following commands from the Mark5A command need to be sent to the Mark5 at the station: 
- 
-  *  play_rate 
-  *  play 
-  *  play? 
-  *  net_protocol 
-  *  in2net 
-  *  mode 
-  *  status? 
-  *  mtu 
- 
-A typical session would involve the following commands being sent: 
- 
-->''​mtu=9000'' ​ (if UDP)\\ 
-''​net_protocol=udp:​8388608:​131072:​8''​\\ 
-''​mode=mark4:​32''​\\ 
-''​play_rate=data:​16''​\\ 
-''​ipd=10''​ 
-''​in2net=connect:​145.146.96.21''​\\ 
-''​in2net=on''​ 
- 
-Time passed 
- 
-->''​in2net=disconnect''​ 
- 
- 
-A more detailed description for the commands issued: 
- 
- 
-=====  play_rate=data:<​rate>​ ===== 
- 
- 
-Used to set the output data rate of the Mark5 at the station.  ​ 
- 
-Expected response: 
- 
-[=!=]play_rate = 0 ; 
- 
- 
- 
-=====  play=off ===== 
- 
- 
-Used to make the Mark5 stop playing if it was playing back data from 
-disk.  
- 
- 
-=====  net_protocol=<​protocol>:<​sockbuf size>:<​workbuf size> ===== 
- 
- 
-Used to set the network data-transport protocol. ​  The <sockbuf 
-size> argument is the socket send buffer size.  You should probably use this value 
-in a setsockopt(...,​ SOL_SOCKET, SO_SBDBUF, ...) call on the socket 
-used to send the data.  
- 
-Expected response: 
- 
-[=!=]net_protocol = 0 ; 
- 
-=====  mtu=<mtu size> ===== 
- 
-Set the mtu for UDP transfers 
- 
-Expected response: 
- 
-[=!=] !mtu = 0 : $mtu bytes; 
- 
- 
-=====  in2net=connect:<​ip>​ ===== 
- 
- 
-Used to make the Mark5 at the station connect to the Mark5 at JIVE. 
-The <ip> argument will be the IP address of the Mark5 at JIVE, which 
-should at that point be ready to accept a connection from the Mark5 at 
-the station. ​ The connection should be made to the m5data port. 
-No data will be sent yet. 
- 
-Expected response: 
- 
-[=!=]in2net = 0 ; 
- 
- 
- 
-=====  in2net=on ===== 
- 
- 
-Used to make the Mark5 at the station start sending data. 
- 
-Expected response: 
- 
-[=!=]in2net = 1 ; 
- 
- 
- 
-=====  in2net=disconnect ===== 
- 
- 
-Used to make the Mark5 at the station stop sending data and terminate 
-the (tcp) connection. 
- 
-Expected response: 
- 
-[=!=]in2net = 0 ; 
- 
-=====  in2net=off ===== 
- 
-?? 
- 
-Expected response: 
- 
-[=!=]in2net = 0 ; 
- 
- 
-=====  mode=<​data mode>:<​data submode> ===== 
- 
-Used to set the playback mode of the Mark5 at the station.  ​ 
- 
-Expected response: 
- 
-[=!=]mode = 0 ; 
- 
-=====  status? ===== 
- 
-Used to query the status of the (remote) Mark5.  ​ 
- 
-Expected response: 
- 
-[=!=]status?​ 0 : 0x00000001 ; (when not sending data)\\ 
-[=!=]status?​ 0 : 0x00010001 ; (when sending data) 
- 
-=====  play? ===== 
- 
-Request play state (disk only??) 
- 
-Expected response: 
- 
-[=!=]status?​ 0 : 0x00000001 ; (when not sending data)\\ 
-[=!=]status?​ 0 : 0x00010001 ; (when sending data) 
 =====  Setting TVG test ===== =====  Setting TVG test =====
  
-To setup the Mark5 to sent thr TVG test vector, run:+To setup the Mark5 to send the TVG test vector, run:
  
  ​mode=tvg:​8  ​mode=tvg:​8
Line 346: Line 167:
  
 This will send 8 tracks at 4 Mbps, ie a total of 32 Mbps. This will send 8 tracks at 4 Mbps, ie a total of 32 Mbps.
 +
  
  
lbaops/mark5evlbi.txt · Last modified: 2015/12/18 16:39 (external edit)