Z-app / zmote

BSD 2-Clause "Simplified" License
0 stars 1 forks source link

Discovery mechanism only returns the first box to the list, the other boxes are only printet out in the log. #6

Closed linba708 closed 11 years ago

tehvicke commented 11 years ago

Might have been cus isScanning() only checked the first 8 threads. Might work better now.

marwi509 commented 11 years ago

It still just finds one.

tehvicke commented 11 years ago

Oddly enough I find both boxes (only 227 and 228 are visible to the Internet) every time, even here from Stockholm. I've added some comments that prints the names of the boxes found before updating the list. Since I find what I'm looking for here it shouldn't find less over there... If it doesn't print 3 boxes and the names of these in the logcat somethings really buggy. If the 3 show up it's the list update that's weird.

marwi509 commented 11 years ago

Are the boxes visible in the list? The box names are printed in logcat, but the STB-list returned from discovery has length 1.

tehvicke commented 11 years ago

I'll fix this this week... too hard to try n fix it from here. Somewhere the boxes are getting lost :P

crholm commented 11 years ago

Is this fixed? I am demoing this for Zenterio tomorrow.

tehvicke commented 11 years ago

I changed it to super slow but now it finds all of em I think. At least from my tests at home.

tehvicke commented 11 years ago

Takes 3 sec for a search but I dont have time to find the exact source for the problem right now, ill address it saturday.

crholm commented 11 years ago

It is critical for a reason. It's not really ok that it has gone this long without a fix. About 5 lines needed change.

tehvicke commented 11 years ago

I know you work alot in this project but if tis bug is that important either you should tell me explicitly or wait for it. The deadline is monday and i planned this fix to be ready by then. If a meeting with the client is planned before the deadline then ofcourse ill address the error when asked. But for a course like this it shouldnt be expected to fix bug as soon as they appear but do it when theres time. For example here I had no testing opportunities since I only have access to 1 box at home and have lots of other courses thus not much time for fixing it Hope you get what I mean... Good luck tomorrow nonetheless! //Viktor