sparrow-wifi icon indicating copy to clipboard operation
sparrow-wifi copied to clipboard

only one pass scan works on the sparrow agent

Open OIFhax opened this issue 6 years ago • 5 comments

I am not sure if i am using the arguments improperly but i can not get the sparrow agent to continually scan; It only provides telemetry if i use the one click one scan method. The agent is on a RPI Zero Wireless using Raspbian Stretch. Any thoughts?

OIFhax avatar Aug 15 '18 17:08 OIFhax

Hmmm, no. I don't have a Pi Zero here but I do have a Pi3 I've run it on. I'll run some other tests and see if I can find anything.

ghostop14 avatar Aug 16 '18 16:08 ghostop14

I am trying to save weight using the Pi Zero W, but will try with the Pi3 as well. thanks for the help on this.

OIFhax avatar Aug 23 '18 13:08 OIFhax

Was this ever addressed? I was testing last night with the remote agent and if I click no on only doing one scan nothing ever comes back. If I click yes and do a one pass scan I get results and can click it over and over again for updated results.

This is running the agent on a x86 64 bit platform.

alphafox02 avatar Aug 24 '20 23:08 alphafox02

Hi bjesmer, the main app has a class called ScanThread that runs the scans. It basically runs and get results, then in a thread loop briefly sleeps to prevent a tight loop (like 0.2s) then scans again. If calling the agent, you'll probably need to do something similar. If using Python, I'd just import that class out of sparrow-wifi.py and re-use it or inherit and overload the run function.

ghostop14 avatar Aug 25 '20 13:08 ghostop14

When trying to run a continuous scan on a remote agent, Sparrow reaches out to a hard coded 127.0.0.1 rather than the user entered agent IP. Is this intentional?

ckoval7 avatar Apr 10 '21 23:04 ckoval7