zsmartsystems / com.zsmartsystems.zigbee.sniffer

ZigBee sniffer using Ember NCP and routing packets to Wireshark for display
Eclipse Public License 1.0
33 stars 18 forks source link

Scanning option #15

Closed sraillard closed 4 years ago

sraillard commented 4 years ago

When working with mutiple PAN and coordinators, it could be interessing to have a global view of what is happening on the 16 channels. As beacons are sent by each coordinators at regular intervals, having a scanning option will help to see what is happening on all the channels.

I was thinking of a command line option like "ScanningInterval" (in seconds) that will change the channel of the module every x seconds.

Can we call the function "emberMfg.doMfglibSetChannel(ZigBeeChannel.create(channelId))" more than one time to change dynamically the listening channel?

cdjackson commented 4 years ago

I think it should be fine to change the channel. IMHO this is not a useful option - at least for most people - since you will obviously loose traffic. Most people will be trying to look at what's happening on a network rather than a more global scan, but if you have a use case for this then I'm happy to add it to the sniffer.

sraillard commented 4 years ago

For me, this was for surveying (and not to get everything from all the channels, this is impossible). The idea is when at the office or when going onsite to check some installation, it could be nice to have an overview of what could happen on the different channels. With a scanning interval of 5 seconds, there is enough time to get a beacon from a coordinator and then we can easily and quickly see all the active PAN's and on which channels there are.

cdjackson commented 4 years ago

That's fine - I'm happy to accept a PR for this if you like...

sraillard commented 4 years ago

Ok, I'll see with @mikomarrache if he can prepare a PR for that.

mikomarrache commented 4 years ago

I just created a PR for that, #17

cdjackson commented 4 years ago

Closed by #17