UDPsend and UDPreceive - communicating with a make controller via ethernet

Abe's icon

I am a very frustrated beginner - please help! I'm sure my mistake is very obvious, but after hours of trying to get this thing to work no luck.

I am using Vista 64 to communicate with a make controller via ethernet. I have set up the MC with a piezo sensor and followed all of the tutorial / how-to instruction on how to set up the MC and write the patch in MAX. I am using Max 5. MCHelper (program that communicates with the MC) is returning values, but I can't get MAX to read those values. Below is the pasted code. Please advise!

Thanks,

Abe

{
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "print /analogin/o/value",
"fontname" : "Arial",
"id" : "obj-1",
"fontsize" : 12.0,
"patching_rect" : [ 228.0, 511.0, 128.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "print receivedmess",
"fontname" : "Arial",
"id" : "obj-8",
"fontsize" : 11.595187,
"patching_rect" : [ 197.0, 345.0, 108.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "number",
"fontname" : "Arial",
"outlettype" : [ "int", "bang" ],
"id" : "obj-19",
"fontsize" : 12.0,
"patching_rect" : [ 93.918549, 511.364166, 50.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "osc-route /analogin/0/value",
"fontname" : "Arial",
"outlettype" : [ "list", "list" ],
"id" : "obj-15",
"fontsize" : 12.0,
"patching_rect" : [ 94.956596, 405.630463, 155.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "OpenSoundControl",
"fontname" : "Arial",
"outlettype" : [ "", "", "OSCTimeTag" ],
"id" : "obj-14",
"fontsize" : 12.0,
"patching_rect" : [ 46.99464, 349.478302, 113.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 3
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "udpreceive 7001 MakeCtrl",
"fontname" : "Arial",
"outlettype" : [ "" ],
"id" : "obj-13",
"fontsize" : 12.0,
"patching_rect" : [ 46.99464, 268.478302, 151.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "udpsend 192.168.5.143 7001",
"fontname" : "Arial",
"id" : "obj-12",
"fontsize" : 12.0,
"patching_rect" : [ 33.804428, 199.663162, 167.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "/analogin/0/value",
"fontname" : "Arial",
"outlettype" : [ "" ],
"id" : "obj-11",
"fontsize" : 12.0,
"patching_rect" : [ 33.880512, 111.570808, 101.0, 18.0 ],
"numinlets" : 2,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 100",
"fontname" : "Arial",
"outlettype" : [ "bang" ],
"id" : "obj-10",
"fontsize" : 12.0,
"patching_rect" : [ 35.880512, 72.570808, 65.0, 20.0 ],
"numinlets" : 2,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"id" : "obj-9",
"patching_rect" : [ 28.880512, 34.570808, 20.0, 20.0 ],
"numinlets" : 1,
"numoutlets" : 1
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-14", 1 ],
"destination" : [ "obj-15", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-15", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-11", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

pdelges's icon

On 15 oct. 08, at 18:24, Abraham wrote:

>
> I am a very frustrated beginner - please help! I'm sure my mistake
> is very obvious, but after hours of trying to get this thing to work
> no luck.
>
> I am using Vista 64 to communicate with a make controller via
> ethernet. I have set up the MC with a piezo sensor and followed all
> of the tutorial / how-to instruction on how to set up the MC and
> write the patch in MAX. I am using Max 5. MCHelper (program that
> communicates with the MC) is returning values, but I can't get MAX
> to read those values. Below is the pasted code. Please advise!

First, you should send compressed patches to this list (see "Copy
compressed" in Max' Edit menu).
I suppose your IP and port are correct.
You should try to remove the "MakeCtrl" symbol in [udpreceive], and
directly connect the output to [route /analogin/0/value]. It works for
me.

Note that the MakeController can send its analog inputs values
automatically (see the /analogin/0/autosend message), which can be
very convenient.

p

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl
http://www.crfmw.be/max

Abe's icon

Thanks for responding. Late last night I finally figured out my 'glitch' - simple as suspected. I hadn't realized that the port the MC is listening and sending to is actually set by MCHelper... When those matched, the whole thing worked.