Home › Forums › Support › very slow comm if sending large data frame › Reply To: very slow comm if sending large data frame
Guess what the problem was?? I was running the Windows C# in the Visual Studio 2010 development environment. When I ran the C# .exe, I get 44Mbps throughput from Windows-7 through USB2.0 to iPad (ipad hardware is only USB2.0).
And here’s the peperoni… (ancient Cheech & Chong allusion):
// VISUAL STUDIO 2010 C# STREAMING TRANSMIT TO IPAD:
for (; ; ) // thread’s exec loop
{
NetworkComms.SendObject(“Ultrasound Stream”, ultrasound_stream_sourceId, false, frame_to_iPad);
}
// IPAD STREAMING RECEIVER FROM WINDOWS:
NetworkCommsDotNet.NetworkComms.AppendIncomingPacketHandler<byte[]>(“Ultrasound Stream”,
(packetHeader, connection, incoming_bytes) =>
{
// your code that processes incoming_bytes goes here.
}, false);