[PD] tcpip binary into pd
info at christofressi.com
Wed Feb 26 17:25:21 CET 2020
I assume you're running Windows. You can ignore the SO_BROADCAST error
(it will be gone in Pd 0.51).
Pd 0.51 will also show better error messages on Windows, but for now you
can just google the WSA error code:
Here's the crucial bit:
"Another possible reason for the WSAEACCES error is that when the *bind*
function is called (on Windows NT 4.0 with SP4 and later), another
application, service, or kernel mode driver is bound to the same address
with exclusive access."
Probably some other application is already listening to this port.
Either stop this application or configure the imotions software to send
to another port (if possible).
On 26.02.2020 16:35, Markus Brandt wrote:
> hi christof
> so i started to test right now and ran into following error
> netreceive: failed to sett SO_BROADCAST
> bind: Unknown error (10013)
> data is sent over port 8088. putty and Wireshark have no problems to
> get the data.
> Am Fr., 21. Feb. 2020 um 18:48 Uhr schrieb Markus Brandt
> <2brandt63 at gmail.com <mailto:2brandt63 at gmail.com>>:
> It means a bit of testing. Monday I'll be back in office and in
> charge of the devices. I will come back to you then, if I am allowed.
> Christof Ressi <info at christofressi.com
> <mailto:info at christofressi.com>> schrieb am Fr., 21. Feb. 2020, 18:31:
> Ok, I see. I don't know the [netclient] object, but TCP
> networking objects like [netreceive -b] or [iemnet/tcpreceive]
> all output a stream of bytes. In your case, just collect the
> bytes into a list until you hit byte 13 (CR), then you can
> split the resulting list by byte 59 (";"). Now you need to
> convert each sublist to a proper Pd message:
> Ideally, you know in advance which type you expect for each
> item. If you need an item as a Pd symbol, you can send the
> (sub)list to [list tosymbol], which will output a single Pd
> symbol - even if the string contains whitespace! If the item
> is numeric, you can pass it to [fudiparse], which wil output a
> Pd float.
> Otherwise, you can just pass the (sub)list to [fudiparse]
> unconditionally, but a string like "Affectiva AFFDEX
> Landmarks" will yield a Pd message with 3 symbols, because
> whitespace is the delimiter for Pd message atoms. You can
> catch this with [list length]: if the resulting Pd list has
> more than 1 item, this means that a string originally
> contained whitespace and you can concatenate the symbols (if
> In your case, you can actually just pass the *whole* message
> to [fudiparse] and it will automatically split it into
> invididual Pd messages (because ";" happens to be the FUDI
> message delimiter), but watch out for the problem with
> whitespace in strings as described above.
> Hope this helps!
> On 21.02.2020 17:35, Markus Brandt wrote:
>> I would like to use data of biosensers in pd. They are coming
>> via tcpip from a data collecting software called iMotions (
>> Every item of the list is separated with ; which makes it
>> unusable for me in pd. Putty shows symbols, integers and
>> floats. Wireshark shows hex, as I assume. Only [netclient] in
>> pd did show numbers, but only one after the other and was
>> heavily busy. The trial to print it to the console freezed pd.
>> Maybe there is way to do the conversation outside pd, but not
>> for me, caused by being only a patcher.
>> Any help apriciated and thank you in advance
>> Christof Ressi <info at christofressi.com
>> <mailto:info at christofressi.com>> schrieb am Fr., 21. Feb.
>> 2020, 16:59:
>> You can represent *any* string in Pd as a list of bytes
>> and convert from to Pd symbols with [list fromsymbol] /
>> [list tosymbol]. What do you need to do exactly?
>> On 18.02.2020 13:01, Markus Brandt wrote:
>>> dear list!
>>> Has anyone of you an idea, how i can get a string like
>>> the the one mentioned below into pd? google was not very
>>> 00143526;Affectiva AFFDEX/Affectiva AFFDEX;Affectiva
>>> it is terminated with cr
>>> thanks in advance
>>> Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at> mailing list
>>> UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list
>> Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at>
>> mailing list
>> UNSUBSCRIBE and account-management ->
> Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at> mailing list
> UNSUBSCRIBE and account-management ->
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-list