-->
Page 2 of 3

Re: Trying to make a real time system

PostPosted: Sun Jun 25, 2017 5:24 pm
by Oliver Buchmann
Hi community !
Thx for the answers gbafamily. :D

Okay now i can send 8 Pakets within a second. Great but the problem is i ned more, exactly i need 100. :shock:

now my questons are:

1. Is this posible to send 100 or more packets with 5 Byte within a second.
2. Is there any documentation who can I read what the maximal package rate is. (in real workspace)
3. Is it better to use a RTOS to send more packets in one second.

The for your attention !

Oliver

Re: Trying to make a real time system

PostPosted: Sun Jun 25, 2017 7:24 pm
by rudy
Use UDP.

Worth reading http://gafferongames.com/networking-for ... dp-vs-tcp/

Another option is to bundle packets together. Lower overhead.

Re: Trying to make a real time system

PostPosted: Sun Jun 25, 2017 9:05 pm
by gbafamily1
I do not know about non OS or RTOS but it is possible to send more than 100 small packets/sec using ESP8266 Arduino. Capture packets using WireShark or tcpdump and look to make sure Nagle's algorithm is really disabled. In Arduino, setNoDelay(true) disables Nagle's algo. You should see 5 data bytes per packet. The function to disable Nagle's algo may have a different name with other SDKs. Search the SDK source code for "nodelay" or "nagle".

Re: Trying to make a real time system

PostPosted: Sun Jun 25, 2017 9:32 pm
by rudy
I don't know how you are constructing your system but websockets might be an option.