I have an application where I need to stream 128k packets per second of 18bytes over 100Mbit ethernet.
I am able to succeed at 64ksps using QNEthernet and the function:
Udp.send(clientIP,loggerConfiguration.udpStreamPort, fileBuffer, bytecount);
I do check the success of this function and at the higher rate it fails very often indeed, often with only 1 to 2 bytes of the packet making it out.
Should I be reverting to the previous 'higher overhead' method using
Udp.beginpacket()
Udp.write()
Udp.endpacket()
So that I can see how many bytes have been written and then keep trying until they are all written?
Is there another approach to obtain a more robust method of getting all the bytes out?
I do not think that the 128k x 18 is a high byte rate, hence maybe there is a setting change I need to make for this QNEthernet library?
Craig
I am able to succeed at 64ksps using QNEthernet and the function:
Udp.send(clientIP,loggerConfiguration.udpStreamPort, fileBuffer, bytecount);
I do check the success of this function and at the higher rate it fails very often indeed, often with only 1 to 2 bytes of the packet making it out.
Should I be reverting to the previous 'higher overhead' method using
Udp.beginpacket()
Udp.write()
Udp.endpacket()
So that I can see how many bytes have been written and then keep trying until they are all written?
Is there another approach to obtain a more robust method of getting all the bytes out?
I do not think that the 128k x 18 is a high byte rate, hence maybe there is a setting change I need to make for this QNEthernet library?
Craig