Generate TCPdump from CLI
As mentioned in an earlier issue by me, I think the ability to view the data frames that are sent and received by Bellows in Wireshark. @rcloran mentioned he was open to the idea. This is something that would come in useful e.g. in #43, where an unknown type is in the data frame that is received, which results in a crash.
Having only one antenna device, I can't debug with another device while using the first one as the controller. Thus, I would like to debug the packets that the CLI application is already dumping in hex format when in verbose mode, in Wireshark.
I want to try implementing this, but I would like opinions first. My current idea is a flag for the CLI commands like permit, with which you specify a filename for the dump. This file is written as long as the CLI command is running, either until timeout (e.g. by the time mentioned in permit), or when the command is interrupted.
Does this sound like a useful feature, and the correct way to use it?
Could this issue now perhaps be better if requested as a feature for zigpy-cli instead? -> https://github.com/zigpy/zigpy-cli
Or move to the main zigpy library? -> https://github.com/zigpy/zigpy
Anyway, the bellows CLI is not maintained any longer, it has been replaced by the combination of the main zigpy libary (for ZCL + ZDO) and zigpy-cli:
https://github.com/zigpy/zigpy
https://github.com/zigpy/zigpy-cli
So at least be aware that many tools from zigpy radio libraries are deprecated as have instead been moved to zigpy-cli instead:
https://github.com/zigpy/zigpy-cli