Page 1 of 1

TCP network module

Posted: 20 Mar 2021, 12:40
by stefkpl06
Hi everybody,
I need for my project a simple TCP module who can send and receive some bytes, like the UDP module, but not in UDP because I can't have real acknowledgement.
How can I do this ? Have you got a solution?

Thanks

Best regards

Re: TCP network module

Posted: 21 Mar 2021, 10:29
by senso
What protocol do you use ?
Actually there is no TCP in Usine, but planed in future versions.

Re: TCP network module

Posted: 21 Mar 2021, 17:24
by stefkpl06
Im' not use a real protocol, only simple low level TCP protocol.

I just want to send byte(s) and receive byte(s).

For exemple, if I design a wireless object. I would like send and receive simple command with acknowledgement from TCP low level socket.
In UDP, I must implement ack and I can have some packets lost:( so I'm not sure if the command is ok.

The best thing for me will can be, target IP/Port and source IP/Port with is data like this : PARAM INT(64bits) / VALUE INT(64bits).

Am I clear?

Thank's

Note, I can't use OSC protocole for the same reason.

Re: TCP network module

Posted: 22 Mar 2021, 18:52
by senso
On a good local network UDP is very efficient and the probability of losing a packet is less than 1 by billions ?

Re: TCP network module

Posted: 22 Mar 2021, 21:59
by stefkpl06
Yes, in case of good network :roll: I'll use Wifi and Wifi is poor a network. I can't have cables everywhere :cry:
If I understand good, I'll must waiting for the next version of Usine?
Have you got an idea of the date for this new release?

Re: TCP network module

Posted: 24 May 2021, 23:13
by oli_lab
while waiting for TCP in a future HH version, you still can use UDP and send redundant messages.
WIFI can be tricky !
here's what I do with OSC when I need reliability :
switch send message once press and depress, AND send message every second when not pressed.