I get the following response:
PS D:\> python -m zigpy_znp.tools.nvram_read -p COM3 -o backup.json
usage: nvram_read.py [-h] [-v] [--output OUTPUT] serial
nvram_read.py: error: unrecognized arguments: -p
When trying the docker route I also get an error (running Docker on Win10)
PS D:\> docker run --rm -v.:/opt/firmware/backup --device=/dev/ttyACM0:/dev/ttyACM0 -it walthowd/znp-firmware bash
docker: Error response from daemon: create .: volume name is too short, names should be at least two alphanumeric characters.
See 'docker run --help'.
Tried some combinations with -p COM3 but non of them seem to work.
*edit
While playing around with the settings I seem to be getting something
PS D:\> python -m zigpy_znp.tools.nvram_read -v COM3 -o backup.json
2021-02-23 21:21:54 pcmark zigpy_znp.uart[18320] DEBUG Connecting to COM3 at 115200 baud
2021-02-23 21:21:54 pcmark zigpy_znp.uart[18320] DEBUG Opened COM3 serial port
2021-02-23 21:21:54 pcmark zigpy_znp.uart[18320] DEBUG Toggling RTS/CTS to skip CC2652R bootloader
2021-02-23 21:21:55 pcmark zigpy_znp.uart[18320] DEBUG Connected to COM3 at 115200 baud
2021-02-23 21:21:55 pcmark zigpy_znp.api[18320] DEBUG Waiting 1s before sending anything
2021-02-23 21:21:56 pcmark zigpy_znp.api[18320] DEBUG Sending bootloader skip byte
2021-02-23 21:21:56 pcmark zigpy_znp.api[18320] DEBUG Waiting 1s or until a reset indication is received
2021-02-23 21:21:57 pcmark zigpy_znp.api[18320] DEBUG Testing connection to COM3
2021-02-23 21:21:57 pcmark zigpy_znp.api[18320] DEBUG Sending request: SYS.Version.Req()
2021-02-23 21:22:12 pcmark zigpy_znp.api[18320] DEBUG Connection to COM3 failed, cleaning up
Traceback (most recent call last):
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\site-packages\zigpy_znp\api.py", line 507, in request
response = await response_future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\site-packages\zigpy_znp\tools\nvram_read.py", line 95, in <module>
asyncio.run(main(sys.argv[1:])) # pragma: no cover
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\site-packages\zigpy_znp\tools\nvram_read.py", line 90, in main
obj = await backup(args.serial)
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\site-packages\zigpy_znp\tools\nvram_read.py", line 18, in backup
await znp.connect()
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\site-packages\zigpy_znp\api.py", line 234, in connect
self._version = await self.request(c.SYS.Version.Req())
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\site-packages\zigpy_znp\api.py", line 507, in request
response = await response_future
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\site-packages\async_timeout\__init__.py", line 55, in __aexit__
self._do_exit(exc_type)
File "C:\Users\mmevi\AppData\Local\Programs\Python\Python39\lib\site-packages\async_timeout\__init__.py", line 92, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
PS D:\>