Forum Discussion
covfefe
Occasional Contributor
4 years agosystem-console, close_service not working?
Hello,
I am trying to close_service & claim_service (to handle disconnected devices).
Unfortunately I am unable to make it work.
How can I close_service pathA, then claim_service pathA ?
...
sstrell
Super Contributor
4 years agoSo you've done claim_service previously but you don't know what the claim path was?
What if you just write the whole thing out:
close_service master [claim_service master {/devices/5AGT(FD3H3|MD3G3)|5AGXBB3D4|..@1#USB-1/(link)/JTAG/(110:132 v1 #0)/phy_0/master} m]
covfefe
Occasional Contributor
4 years agoThis does not work.
As the previous message says, this command crashes
close_service master [claim_service master {/devices/5AGT(FD3H3|MD3G3)|5AGXBB3D4|..@1#USB-1/(link)/JTAG/(110:132 v1 #0)/phy_0/master} m] CLIENT (sock2472): claim_service master {/devices/5AGT(FD3H3|MD3G3)|5AGXBB3D4|..@1#USB-1/(link)/JTAG/(110:132 v1 #0)/phy_0/master} m SERVER (sock2472): Invalid command from the client ErrorMsg : Could not claim service at /devices/5AGT(FD3H3|MD3G3)|5AGXBB3D4|..@1#USB-1/(link)/JTAG/(110:132 v1 #0)/phy_0/master: Channel is opened
so the following command as well
CLIENT (sock2472): close_service master [claim_service master {/devices/5AGT(FD3H3|MD3G3)|5AGXBB3D4|..@1#USB-1/(link)/JTAG/(110:132 v1 #0)/phy_0/master} m] SERVER (sock2472): Invalid command from the client ErrorMsg : Could not claim service at /devices/5AGT(FD3H3|MD3G3)|5AGXBB3D4|..@1#USB-1/(link)/JTAG/(110:132 v1 #0)/phy_0/master: Channel is opened
Yes, claim_path is unknown (application reboot)