D300 this post says " IP address of the board will end with 2. " so thats not uptodate?
it is. Each USB port creates a small virtual network with 2 devices on it: your computer and Bela. Bela is assigned a .2 address and you computer is assigned a .1 address. So your computer shows the .1 address but to connect to Bela you have to use the .2 address (or you can use bela.local
to avoid having to worry about it). Conversely, to connect form Bela to the host computer you should use the .1
address.
D300 BELA console prints:
In the setup()
function, that example sends /osc-setup
to the server
oscSender.newMessage("/osc-setup").send();
and in on_receive()
, it waits for a reply /osc-setup-reply
if(msg->match("/osc-setup-reply"))
handshakeReceived = true;
If you didn't implement this in your Max patch, you should remove all of:
// the following code sends an OSC message to address /osc-setup
// then waits 1 second for a reply on /osc-setup-reply
oscSender.newMessage("/osc-setup").send();
int count = 0;
int timeoutCount = 10;
printf("Waiting for handshake ....\n");
while(!handshakeReceived && ++count != timeoutCount)
{
usleep(100000);
}
if (handshakeReceived) {
printf("handshake received!\n");
} else {
printf("timeout! : did you start the node server? `node /root/Bela/resources/osc/osc.js\n");
return false;
}
Is your max patch receiving the /osc-setup
message at all? Make sure you have modified remoteIp
to be
const char* remoteIp = "192.168.7.1"; // or .6.1