OSC namespace and error codes


Table 1: OSC namespace for the DataNetwork
/datanetwork/announce si host, port no. announce the network with its coordinates
/datanetwork/quit si host, port no. inform that the host has quit
/register is port no., name register to the network as a client, the name is used as an identifier for the client to remember settings
/registered i port no., name reply to register to the network as a client
/unregister is port no., name unregister to the network as a client
/unregistered is port no., name reply to unregister to the network as a client
/ping is port no., name message to check if client is still there
/pong is port no., name expected reply to the /ping message
/error ssi cause, error message, error ID error occurred upon request (indicated by cause)
/warn ssi cause, warn message, error ID non fatal error occurred upon request
/query/all is port no., name do all queries
/query/expected is port no., name query which nodes are expected in the network (reply /info/expected)
/query/nodes is port no., name query which nodes are in the network (reply /info/node)
/query/slots is port no., name query which slots are in the network (reply /info/slot)
/query/clients is port no., name query which clients are in the network (reply /info/client)
/query/setters is port no., name query which nodes the client is the setter of (reply /info/setter)
/query/subscriptions is port no., name query which subscriptions the client has (reply /subscribed/node, /subscribed/slot)
/info/expected i(s) node ID, node label info about an expected node
/info/node isii node ID, node label, number of slots, node type info about a node
/info/slot iisi node ID, slot ID, slot label, slot type info about a slot
/info/client sis ip, port no., name info about a client
/info/setter isii node ID, node label, number of slots, node type info about a node the client is setting
/subscribe/all is port no., name subscribe to receive data from all nodes
/unsubscribe/all is port no., name unsubscribe from all nodes
/subscribe/node isi port no., name, node ID subscribe to receive data from a node
/subscribed/node isi port no., name, node ID reply to subscribe to receive data from a node
/unsubscribe/node isi port no., name, node ID unsubscribe to receive data from a node
/unsubscribed/node isi port no., name, node ID reply to unsubscribe to receive data from a node
/subscribe/slot isii port no., name, node ID, slot ID subscribe to receive data from a slot
/subscribed/slot isii port no., name, node ID, slot ID reply to subscribe to receive data from a slot
/unsubscribe/slot isii port no., name, node ID, slot ID subscribe to receive data from a slot
/unsubscribed/slot isii port no., name, node ID, slot ID reply to unsubscribe to receive data from a slot
/data/node iff..f node ID, data values node data
/data/node iss..s node ID, string data values node data
/get/node isi port no., name, node ID get data from a node (reply /data/node)
/data/slot iif node ID, slot ID, data value slot data
/data/slot iis node ID, slot ID, string data value slot data
/get/slot isii port no., name, node ID, slot ID get data from a slot (reply /data/slot)
/set/data isif..f port no., name, node ID, data values set data to a node (reply /data/node)
/set/data isis..s port no., name, node ID, string data values set data to a node
/label/node isis port no., name, node ID, node label set label to a node
/label/slot isiis port no., name, node ID, slot ID, slot label set label to a slot
/remove/node isi port no., name, node ID remove a node (only possible if client is setter)
/removed/node i node ID reply to remove a node
/remove/all is port no., name remove all nodes the client is a setter of (generates /removed/node messages)
/add/expected isi(isi) port no., name, node ID, node size, node label, node type add an expected node to the network (reply /info/expected). If node size is given, the node is created as well (and generates a /info/node message). Node type is 0: float, 1: string (default is 0)

OSC namespace for interaction with MiniBees
/query/minibees is port no., name query which minibees are in the network (reply /info/minibee)
/info/minibee isii node ID, number of slots (inputs), number of outputs info about a minibee
/map/minibee/output isii port no., name, node ID, minibee ID map node output to MiniBee output (reply /mapped/minibee/output)
/map/minibee/custom isii port no., name, node ID, minibee ID map node output to MiniBee custom output (reply /mapped/minibee/custom)
/mapped/minibee/output ii node ID, minibee ID reply to /map/minibee/output messages
/mapped/minibee/custom ii node ID, minibee ID reply to /map/minibee/custom messages
/unmap/minibee/output isii port no., name, node ID, minibee ID map node output to MiniBee output (reply /unmapped/minibee/output)
/unmap/minibee/custom isii port no., name, node ID, minibee ID map node output to MiniBee custom output (reply /unmapped/minibee/custom)
/unmapped/minibee/output ii node ID, minibee ID reply to /unmap/minibee/output messages
/unmapped/minibee/custom ii node ID, minibee ID reply to /unmap/minibee/custom messages

Table 3: Error codes and strings
1 “Client with IP”+addr.ip+”and port”+addr.port+”is not registered. Please register first”
2 “Client with IP”+addr.ip+”and port”+addr.port+”is already registered. Please unregister first”
3 “Client with IP”+addr.ip+”and port”+addr.port+”was not registered”
4 “Client with IP”+addr.ip+”and port”+addr.port+”is not the setter of node with id”+..
5 “Node with id”+..+”is not part of the network”
6 “Node with id”+..+”is not expected to be part of the network”
7 “There are no expected nodes in the network”
8 “There are no nodes in the network”
9 “There are no clients in the network”
10 “Client with IP”+addr.ip+”and port”+addr.port+”has no setters”
11 “Client with IP”+addr.ip+”and port”+addr.port+”has no subscriptions”
12 “Node with id”+…+”does not have”+..+”slots”
12 “Node with id”+…+”does not have”+..+”slots”
13 “Node with id”+…+”has wrong type”+…
14 “Client with IP”+addr.ip+”and port”+addr.port+”was not registered under name”+name
15 “Client with IP”+addr.ip+”and port”+addr.port+”and name” + name + “is not registered. Please register first”

Comments/Questions

Comments are closed.