{"action":"created","issue":{"url":"https://api.github.com/repos/openthread/openthread/issues/364","repository_url":"https://api.github.com/repos/openthread/openthread","labels_url":"https://api.github.com/repos/openthread/openthread/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/openthread/openthread/issues/364/comments","events_url":"https://api.github.com/repos/openthread/openthread/issues/364/events","html_url":"https://github.com/openthread/openthread/pull/364","id":170766181,"number":364,"title":"spinel-cli: Add NCP build to TravisCI","user":{"login":"turon","id":77641,"avatar_url":"https://avatars.githubusercontent.com/u/77641?v=3","gravatar_id":"","url":"https://api.github.com/users/turon","html_url":"https://github.com/turon","followers_url":"https://api.github.com/users/turon/followers","following_url":"https://api.github.com/users/turon/following{/other_user}","gists_url":"https://api.github.com/users/turon/gists{/gist_id}","starred_url":"https://api.github.com/users/turon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turon/subscriptions","organizations_url":"https://api.github.com/users/turon/orgs","repos_url":"https://api.github.com/users/turon/repos","events_url":"https://api.github.com/users/turon/events{/privacy}","received_events_url":"https://api.github.com/users/turon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openthread/openthread/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/openthread/openthread/labels/work-in-progress","name":"work-in-progress","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"turon","id":77641,"avatar_url":"https://avatars.githubusercontent.com/u/77641?v=3","gravatar_id":"","url":"https://api.github.com/users/turon","html_url":"https://github.com/turon","followers_url":"https://api.github.com/users/turon/followers","following_url":"https://api.github.com/users/turon/following{/other_user}","gists_url":"https://api.github.com/users/turon/gists{/gist_id}","starred_url":"https://api.github.com/users/turon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turon/subscriptions","organizations_url":"https://api.github.com/users/turon/orgs","repos_url":"https://api.github.com/users/turon/repos","events_url":"https://api.github.com/users/turon/events{/privacy}","received_events_url":"https://api.github.com/users/turon/received_events","type":"User","site_admin":false},"assignees":[{"login":"turon","id":77641,"avatar_url":"https://avatars.githubusercontent.com/u/77641?v=3","gravatar_id":"","url":"https://api.github.com/users/turon","html_url":"https://github.com/turon","followers_url":"https://api.github.com/users/turon/followers","following_url":"https://api.github.com/users/turon/following{/other_user}","gists_url":"https://api.github.com/users/turon/gists{/gist_id}","starred_url":"https://api.github.com/users/turon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turon/subscriptions","organizations_url":"https://api.github.com/users/turon/orgs","repos_url":"https://api.github.com/users/turon/repos","events_url":"https://api.github.com/users/turon/events{/privacy}","received_events_url":"https://api.github.com/users/turon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-11T22:56:45Z","updated_at":"2016-08-27T21:58:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openthread/openthread/pulls/364","html_url":"https://github.com/openthread/openthread/pull/364","diff_url":"https://github.com/openthread/openthread/pull/364.diff","patch_url":"https://github.com/openthread/openthread/pull/364.patch"},"body":"This PR adds a command line tool, named spinel-cli, that converts ot-cli shell commands (as documented in https://github.com/openthread/openthread/blob/master/src/cli/README.md) to spinel NCP commands (as documented in https://github.com/openthread/openthread/blob/master/src/ncp/PROTOCOL.md).  \r\n\r\nAlso added is a patch to node.py that provides a way to run the existing continuous integration certification test suite against an NCP build rather than a CLI build (by prefacing the command to start the test with the environment variable setting `NODE_TYPE=ncp-sim`):\r\n\r\n```\r\ncd tests/scripts/thread-cert\r\nNODE_TYPE=ncp-sim top_builddir=../../.. python Cert_5_1_02_ChildAddressTimeout.py \r\n```\r\n\r\nThe power of this tool is three fold: \r\n1) As a path to add testing of the NCP in simulation to continuous integration\r\n2) As a path to automated testing of testbeds running NCP firmware on hardware\r\n3) As a simple debugging tool for NCP builds of OpenThread\r\n\r\n```\r\nopenthread$ cd tools/spinel-cli/\r\nspinel-cli$ ./spinel-cli.py\r\nOpening pipe to ../../examples/apps/ncp/ot-ncp 1\r\nspinel-cli > help\r\n\r\nAvailable commands (type help <name> for more information):\r\n============================================================\r\nchannel            extaddr       mode              route                 \r\nchild              extpanid      netdataregister   router                \r\nchildtimeout       h             networkidtimeout  routerupgradethreshold\r\nclear              help          networkname       scan                  \r\ncontextreusedelay  history       panid             state                 \r\ncounter            ifconfig      ping              thread                \r\ndebug              ipaddr        prefix            v                     \r\ndebug-term         keysequence   q                 version               \r\neidcache           leaderdata    quit              whitelist             \r\nenabled            leaderweight  releaserouterid \r\nexit               masterkey     rloc16          \r\n\r\nspinel-cli > version\r\nOPENTHREAD/gd4d4e9d-dirty; Aug 11 2016 14:40:44\r\nDone\r\nspinel-cli > thread start\r\nDone\r\nspinel-cli > state\r\nleader\r\nDone\r\nspinel-cli > \r\n```\r\n\r\nThe tool provides three ways to connect to an NCP image:\r\n   1) pipe to stdin/stdout of a command line tool (default): -p ./ot-ncp\r\n   2) serial connection to a hardware device: -u /dev/ttyUSB0\r\n   3) socket connection to the port of a helper tool such as ncp-spi-driver: -s 1234 \r\n\r\n```\r\nspinel-cli$ ./spinel-cli.py --help\r\nOptions:\r\n  -h, --help            show this help message and exit\r\n  -u UART, --uart=UART  \r\n  -p PIPE, --pipe=PIPE  \r\n  -s SOCKET, --socket=SOCKET\r\n  -n NODEID, --nodeid=NODEID\r\n  -q, --quiet           \r\n  -v, --verbose         \r\n```\r\n\r\nThis is currently a work-in-progress, but there is enough up and running to let folks take an early look."},"comment":{"url":"https://api.github.com/repos/openthread/openthread/issues/comments/242943123","html_url":"https://github.com/openthread/openthread/pull/364#issuecomment-242943123","issue_url":"https://api.github.com/repos/openthread/openthread/issues/364","id":242943123,"user":{"login":"turon","id":77641,"avatar_url":"https://avatars.githubusercontent.com/u/77641?v=3","gravatar_id":"","url":"https://api.github.com/users/turon","html_url":"https://github.com/turon","followers_url":"https://api.github.com/users/turon/followers","following_url":"https://api.github.com/users/turon/following{/other_user}","gists_url":"https://api.github.com/users/turon/gists{/gist_id}","starred_url":"https://api.github.com/users/turon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turon/subscriptions","organizations_url":"https://api.github.com/users/turon/orgs","repos_url":"https://api.github.com/users/turon/repos","events_url":"https://api.github.com/users/turon/events{/privacy}","received_events_url":"https://api.github.com/users/turon/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T21:58:20Z","updated_at":"2016-08-27T21:58:20Z","body":"This is ready to go!"}}
{"actor":{"display_login":"turon"}}