Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python dev ctrl to support Run-time dynamic discovery of operational CHIP Nodes #4236

Closed
cjandhyala opened this issue Dec 17, 2020 · 6 comments
Assignees
Milestone

Comments

@cjandhyala
Copy link
Contributor

cjandhyala commented Dec 17, 2020

python dev ctrl controller should discover the current IPv6 address and port for a known commissioned CHIP Node.

@cjandhyala cjandhyala changed the title Chip tool to support Run-time dynamic discovery of operational CHIP Nodes python dev ctrl to support Run-time dynamic discovery of operational CHIP Nodes Jan 15, 2021
@woody-apple woody-apple added this to the V1.0 milestone Feb 2, 2021
@woody-apple woody-apple modified the milestones: V1.0, Next Feb 4, 2021
@franck-apple franck-apple modified the milestones: Next, Test Event 2 Feb 26, 2021
@Damian-Nordic
Copy link
Contributor

@cjandhyala Note that Python CHIP controller built with --args='chip_mdns="platform"' supports "resolve" command which does more less what the description contains. Is there anything more needed for this task?

@cjandhyala
Copy link
Contributor Author

@Damian-Nordic , building with the above args ,crashes the python controller

$ chip-device-ctrl
CHIP:IN: TransportMgr initialized
CHIP:IN: local node id is 0x000000000001b669
CHIP:ZCL: Using ZAP configuration...
CHIP:ZCL: deactivate report event
CHIP:DL: CHIP task running
Traceback (most recent call last):
File "/home/ubuntu/.local/bin/chip-device-ctrl", line 642, in
main()
File "/home/ubuntu/.local/bin/chip-device-ctrl", line 623, in main
devMgrCmd = DeviceMgrCmd(rendezvousAddr=options.rendezvousAddr, controllerNodeId=options.controllerNodeId, bluetoothAdapter=adapterId)
File "/home/ubuntu/.local/bin/chip-device-ctrl", line 146, in init
self.devCtrl = ChipDeviceCtrl.ChipDeviceController(controllerNodeId=controllerNodeId, bluetoothAdapter=bluetoothAdapter)
File "/home/ubuntu/.local/lib/python3.8/site-packages/chip/ChipDeviceCtrl.py", line 51, in wrapper
instance[0] = cls(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.8/site-packages/chip/ChipDeviceCtrl.py", line 84, in init
raise self._ChipStack.ErrorToException(res)
chip.exceptions.ChipStackError: CHIP Error 4003 (0x00000FA3): Incorrect state

@Damian-Nordic
Copy link
Contributor

@cjandhyala It should be fixed by #6041.

@cjandhyala
Copy link
Contributor Author

cjandhyala commented Apr 17, 2021

@Damian-Nordic , looks like the resolve command is looking for mdns _chip_tcp only. Could we expand this to cover _chipd._udp. so that we can verify '4.2.3. Commissionable Discovery' as well . More precisely to cover 6.4.3.7 test case from cert test plan https://github.com/project-chip/chip-test-plans/blob/master/src/securechannel.adoc#6437-test-procedure

@Damian-Nordic
Copy link
Contributor

@cjandhyala That is a separate functionality and I believe @cecille is working on adding another command for that purpose: #5716. This task is only about operational discovery which uses _chip._tcp service type.

@franck-apple
Copy link

@Damian-Nordic, was this solved with #6459 (that replaced #5716)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants