{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3267","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3267/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3267/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3267/events","html_url":"https://github.com/ARMmbed/mbed-os/pull/3267","id":189373847,"number":3267,"title":"ONME-2857: Ethernet interface for Nanostack","user":{"login":"SeppoTakalo","id":3104794,"avatar_url":"https://avatars.githubusercontent.com/u/3104794?v=3","gravatar_id":"","url":"https://api.github.com/users/SeppoTakalo","html_url":"https://github.com/SeppoTakalo","followers_url":"https://api.github.com/users/SeppoTakalo/followers","following_url":"https://api.github.com/users/SeppoTakalo/following{/other_user}","gists_url":"https://api.github.com/users/SeppoTakalo/gists{/gist_id}","starred_url":"https://api.github.com/users/SeppoTakalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeppoTakalo/subscriptions","organizations_url":"https://api.github.com/users/SeppoTakalo/orgs","repos_url":"https://api.github.com/users/SeppoTakalo/repos","events_url":"https://api.github.com/users/SeppoTakalo/events{/privacy}","received_events_url":"https://api.github.com/users/SeppoTakalo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-15T12:02:48Z","updated_at":"2016-11-15T16:03:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3267","html_url":"https://github.com/ARMmbed/mbed-os/pull/3267","diff_url":"https://github.com/ARMmbed/mbed-os/pull/3267.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/3267.patch"},"body":"## Description\r\n* Refactored mesh-api classes so to get rid of duplicate classes that serve same purpose.\r\n* Moved code to LoWPANNDInterface and ThreadInterface classes, so that if 6LoWPAN is not enabled, linker will drop its internal tasklets.\r\n* Refactored NanostackRfPhy to NanostackPhy and provided NanostackEthernetPhy.\r\n* Provided NanostackEthernetInterface so applications can use Nanostack over Ethernet. (This was the main goal)\r\n\r\n## Status\r\n**READY**\r\n\r\n\r\n## Migrations\r\nNo changes to public APIs, except new NanostackEthernetInterface class provided.\r\n\r\n## Todos\r\n- [x] Tests\r\n- [x] Documentation\r\n\r\n## Tests\r\n\r\nTested with K64F using different radios and connectivity options. Application used for testing was `mbed-os-example-mesh-minimal`\r\nWhen using Ethernet, the app was modified to use the Ethernet instead of 6LoWPAN or Thread. Example Ethernet driver is here: https://github.com/ARMmbed/sal-nanostack-driver-k64f-eth/tree/nanostackphy\r\n\r\nModified basically like this:\r\n```\r\nNanostackEthernetInterface eth;\r\nNanostackEthernetPhyK64F phy;\r\n \r\nmain() {\r\n    ...\r\n    eth.initialize(&phy);\r\n    eth.connect();\r\n...\r\n```\r\n\r\nAfter joining the network, connectivity was verified by sending ping requests to its IPv6 address.\r\n\r\n|Interface/Driver  |  MCR20A  |Atmel AT86RF233 |K64F Ethernet|\r\n|------------------|----------|----------------|-------------|\r\n|LoWPANNDInterface |  OK | OK | -|\r\n|ThreadInterface   |  OK | OK | -|\r\n|NanostackEthernetInterface | - |  - |  OK|\r\n\r\n\r\n\r\n@kjbracey-arm @mikaleppanen @hasnainvirk Please review."},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/260682530","html_url":"https://github.com/ARMmbed/mbed-os/pull/3267#issuecomment-260682530","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3267","id":260682530,"user":{"login":"SeppoTakalo","id":3104794,"avatar_url":"https://avatars.githubusercontent.com/u/3104794?v=3","gravatar_id":"","url":"https://api.github.com/users/SeppoTakalo","html_url":"https://github.com/SeppoTakalo","followers_url":"https://api.github.com/users/SeppoTakalo/followers","following_url":"https://api.github.com/users/SeppoTakalo/following{/other_user}","gists_url":"https://api.github.com/users/SeppoTakalo/gists{/gist_id}","starred_url":"https://api.github.com/users/SeppoTakalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeppoTakalo/subscriptions","organizations_url":"https://api.github.com/users/SeppoTakalo/orgs","repos_url":"https://api.github.com/users/SeppoTakalo/repos","events_url":"https://api.github.com/users/SeppoTakalo/events{/privacy}","received_events_url":"https://api.github.com/users/SeppoTakalo/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T16:03:08Z","updated_at":"2016-11-15T16:03:08Z","body":"**How 6LoWPAN and Thread interfaces now look**\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3104794/20312832/9a3af6e8-ab5d-11e6-8e85-b144e94c08ab.png)\r\n"}}
{"actor":{"display_login":"SeppoTakalo"}}