#64767 - sgeos - Mon Dec 26, 2005 2:52 pm
How many bytes can be sent a frame during a 16 unit wifi session? Point me in the right direction if this is answered somewhere simple.
-Brendan
#64838 - josath - Tue Dec 27, 2005 10:15 am
what do you mean by "sent"?
sent from one DS to the other 15? (15 transmissions)
sent from each DS to each of the others? (240 transmissions)
or something else?
the DS can do 2mbit/sec I think, but let's say 1mbit/sec just to be safe.
that's 128KB / sec
at 30 FPS, that is 4370 bytes per frame. then divide that by the number of transmissions you are making.
also you might need to take into account the size of the packet headers. this is all done off the top of my head, so i might have made mistakes.
#65119 - sgeos - Fri Dec 30, 2005 10:40 am
Assume the following scenario...
Code: |
u8 *outBuffer[OUT_BUFFER_SIZE];
u8 *inBuffer [IN_BUFFER_SIZE];
void send(u8 *pBuffer)
{
// deal with hardware
}
void receive(u8 *pBuffer)
{
// deal with hardware
}
int main(void)
{
init();
while (1)
{
// Every frame...
vsync();
// do stuff
send(outBuffer);
receive(outBuffer);
// do more stuff
}
return 0;
} |
How big can OUT_BUFFER_SIZE and IN_BUFFER_SIZE be assuming they don't contain headers? (Header can be dealt with in send() and receive()). Can I do more than one transmission every frame?
-Brendan
#65156 - ecurtz - Fri Dec 30, 2005 6:46 pm
I believe there is a natural size for 802.11 packets of up to 2304 bytes including headers. This is presumably the same in the "nifi" packets, but you'd have to check Stephen's stuff to make sure.
You probably can send multiple packets per frame, but I can't think of a reason you'd need to, other than missing ACKs. Networking is definitely not my speciality though, so caveat emptor...