parallaxinc / PropLoader

Parallax Propeller loader supporting both serial and wifi downloads
MIT License
27 stars 13 forks source link

Speed up Discovery #6

Closed PropGit closed 8 years ago

PropGit commented 8 years ago

Related to Issue #5, the current discovery process (-W switch) takes way too long to complete; 8 seconds in my tests. All modules should be discovered within 1 to 1.5 seconds max.

PropGit commented 8 years ago

UPDATE: This appears to be due to how multiple network interfaces on the computer are being accessed (in a loop, sequentially broadcasting and waiting for responses).

The attempt to resolve this will broadcast on each network interface at nearly the same time, then will process responses from each all within the same 1 to 1.5 second timeout.

PropGit commented 8 years ago

Latest Windows executable tested today. Now discovery is very fast ( < 2 seconds ).