Welcome to %s forums

BrainModular Users Forum

Login Register

TCP network module

I need help on a Patch
Post Reply
stefkpl06
New member
Posts: 4
Contact:

TCP network module

Unread post by stefkpl06 » 20 Mar 2021, 12:40

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

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 21 Mar 2021, 10:29

What protocol do you use ?
Actually there is no TCP in Usine, but planed in future versions.

stefkpl06
New member
Posts: 4
Contact:

Unread post by stefkpl06 » 21 Mar 2021, 17:24

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.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 22 Mar 2021, 18:52

On a good local network UDP is very efficient and the probability of losing a packet is less than 1 by billions ?

stefkpl06
New member
Posts: 4
Contact:

Unread post by stefkpl06 » 22 Mar 2021, 21:59

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?

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 24 May 2021, 23:13

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.
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests