Posts: 2
Joined: Sat Apr 13, 2019 11:20 am

NetCat question about TCP

Wed May 08, 2019 5:55 pm

I'm using netcat program in raspbian to forward data from USB to ttl converter that is seen by system on /dev/ttyUSB1
Because data from arduino is send each 100ms in system netcat ? or linux it self make buffer so first connection to port on rbpi send gather data that are not important from my point of view - i'm interested only in "fresh data" - fresh eg last 1kbit=1min

How can i change / decrease / value of this buffer to eg 512byte - or 1Kbit ?

I can't switch to UDP.
Is there option to flush buffer or just to change it size to smaller value ?
In help of netcat i see -O option but from my observation making change in this parameter don't do anything.

Code that i use in bash .:

Code: Select all

nc -k -l 3303 > /dev/ttyUSB1 < /dev/ttyUSB1&

Return to “Raspbian”