Hi all,
Yet another example of xbee lost packets here. I’ve looked at all the suggestions made over the past year, and still am a bit at a loss.
So here’s my situation. First hardware: xbee pro series 1 attached to mac via sparkfuns usb explorer. 2 end devices, series 1, non-pro versions. arduinos attached to each end device. All in API mode #1. Baud of end devices = 57.6k to arduinos, baud between xbee and mac is 115.2k, 2 stop bits.
My problem is the controller is getting “overwhelmed” and will suddenly stop passing along packets to the mac for 250-500ms. The pattern repeats 10 seconds, then 20 seconds, then 10 seconds, then 20 seconds, etc. For the tests I am doing now I am sending a 12 byte “payload” from each end device, ideally at 20Hz, but I’m still getting issues even at 10Hz. If I run each of the end devices by themselves, no issues except maybe a dropped packet every couple minutes. In other tests I’ve sent close to the max packet size of ~80 bytes at 20Hz and no issues (i.e. throughput doesn’t seem to be a problem). The problem is when I send data from 2 devices. I’ve been doing math on the payloads and throughput and think I’m well within limits: let’s say each end device is sending at 20Hz, so if we add say ~12 bytes of extra info for the API mode, that’s 25(bytes)*8(bits/byte)*20(Hz) = 4kbps per end device, or 8kbps total (I think the math is right, yes?). If so, that seems well under the maximum of 80kbps. Changing the baud on the controller doesn’t have any impact…I’ve tried 115.2k, 57.6k and 38.4, on down… 1 stop bit, 2 stop bits… without much luck.
Again, the problem seems that the controller just gets “overwhelmed” and stops passing data to my mac. But I’m not sending that much data (am I?). This certainly seems to go against others experiences, so for the moment I am assuming it is still my fault Could I be missing a setting on the modem? I’ve played a bit with the RN value (random delay slots), but haven’t had any success there either.
Any advice, even if it is to say “you can’t do that” (although that we be very very sad), would be greatly appreciated.
Thanks,
David