[PD] physical computing: Lanbox

cyrille henry cyrille.henry at la-kitchen.fr
Tue Sep 26 10:10:30 CEST 2006



Martin Peach a écrit :
> tim wrote:
>> Hi,
>>
>> LanBox + switchpack + pd works !
>>
>> One thing I still haven't figured out though:
>> When the tcpclient connection dies after a while I can only restore it 
>> by sending |disconnect( first and then connecting again.
>> I can do this every 12 messages or so (see patch below), but this 
>> can't be the good way, because in the real situation, the messages 
>> will have variable timings.
>> Disconnecting and reconnecting before every message seems to get messy 
>> and some messages get lost.
>> Why doesn't the 'keep connection alive' section of the lanbox patch 
>> take care of this ?
>> I'm under the impression that tcpclient doesn't actively send a 0 on 
>> its outlet when the connection dies on its own, but only when you send 
>> it a disconnect message.
>> What's the best way make sure there is a connection before sending a 
>> message ?
>>
> 
> [tcpclient] outputs the connection state on its third outlet. Does this 
> work for you? I would [select 0] on that outlet and use the bang to 
> reconnect. Any idea why the connection dies?
the lanbox does have a timeout on the connection.
usually, sending a command every 30s solve the problem.

some test on the "keep connection alive" part of the patch sould be
made, but i don't have a lanbox anymore.

cyrille

> 
> 
> Martin
> 
> 
> 





More information about the Pd-list mailing list