Re: Problem to use newtmgr through ble

2017-03-17 Thread Szymon Janc
Hi, On 17 March 2017 at 16:53, Christopher Collins wrote: > > On Fri, Mar 17, 2017 at 08:36:01AM -0300, Fabio Utzig wrote: > > On Fri, Mar 17, 2017, at 08:24 AM, then yon wrote: > > > Dear Chris, > > > > > > When i put sudo newtmgr -c BT01 stat list, it gave me sudo: newtmgr:

Re: Problem to use newtmgr through ble

2017-03-17 Thread Christopher Collins
On Fri, Mar 17, 2017 at 08:36:01AM -0300, Fabio Utzig wrote: > On Fri, Mar 17, 2017, at 08:24 AM, then yon wrote: > > Dear Chris, > > > > When i put sudo newtmgr -c BT01 stat list, it gave me sudo: newtmgr: > > command not found. > > It looks like sudo is not preserving your user path, you

Re: Problem to use newtmgr through ble

2017-03-17 Thread Fabio Utzig
On Fri, Mar 17, 2017, at 08:24 AM, then yon wrote: > Dear Chris, > > When i put sudo newtmgr -c BT01 stat list, it gave me sudo: newtmgr: > command not found. It looks like sudo is not preserving your user path, you could try: sudo "PATH=$PATH" newtmgr -c BT01 stat list

Re: Problem to use newtmgr through ble

2017-03-17 Thread then yon
Dear Chris, When i put sudo newtmgr -c BT01 stat list, it gave me sudo: newtmgr: command not found. Dear Andrzej, I get the following error with you suggestion. $ sudo setcap cap_net_admin=+ep 'which newtmgr' [sudo] password for dev: Failed to set capabilities on file `which newtmgr'

Re: Problem to use newtmgr through ble

2017-03-16 Thread Andrzej Kaczmarek
Hi Chris, newtmgr probably requires just CAP_NET_ADMIN to open either raw or user channel socket so you could do sth like: sudo setcap cap_net_admin=+ep `which newtmgr` And no need for sudo anymore. Best regards, Andrzej On Thu, Mar 16, 2017 at 4:35 PM, Christopher Collins

Re: Problem to use newtmgr through ble

2017-03-16 Thread Christopher Collins
Hi Then, I have found that I need to run newtmgr as root when using ble (e.g., sudo newtmgr ...) Chris On Thu, Mar 16, 2017 at 05:22:01PM +0800, then yon wrote: > Dear Support, > > Anyone have answer on this? > > Some updates on the newtmgr setting: > > Connection profiles: BT01: type=ble,

Re: Problem to use newtmgr through ble

2017-03-16 Thread then yon
Dear Support, Anyone have answer on this? Some updates on the newtmgr setting: Connection profiles: BT01: type=ble, connstring='nimble-bleprph' Whenever i sent newtmgr command i get the following: 2017/03/16 17:11:35 dev: hci0 up 2017/03/16 17:11:35 dev: hci1 up Error: no supported devices