Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

.Net Core library is designed to work with the Thread network. To develop 6LoWPAN applications, you will need a radio module running as an OpenThread Network Co-Processor (NCP).

NotificationsYou must be signed in to change notification settings

vgolovanov/OpenThreadDotNet

Repository files navigation

OpenThreadDotNet is a .Net library designed to work with the Thread network. To develop 6LoWPAN applications, you will need a radio module running as an OpenThread Network Co-Processor (NCP). More information is available on the webpagehttps://openthread.io/platforms/co-processor

​Currently library works on Net Core platform and reduced versions of the .NET CLR, nanoFramework (https://nanoframework.net/) and TinyCLR (https://www.ghielectronics.com/tinyclr/features/) platforms.

The end device can be used on any module from supported platformshttps://openthread.io/platforms with NCP firmware. The library tested on TI CC2652 based boardhttp://www.ti.com/tool/LAUNCHXL-CC26X2R1 and nrf52840 based moduleshttp://www.skylabmodule.com/skylab-125k-ram-industry-grade-low-energy-multiprotocol-5-0-ant-bluetooth-module/

OpenThreadDotNet project is .Net implementation of Spinel protocol and high level API to manage Thread network.

LowpanCmd project is a console application to manage Thread networks. Similar topyspinel application.

SamplesNetCore,SamplesNanoFramework andSamplesTinyCLR are basic examples on how to use theOpenThreadDotNet library.

With OpenThreadDotNet library is possible to scan for nearby wireless networks, join to the wireless networks and form a new wireless mesh network.

Form a new Thread wireless network and UDP server we need just 6 lines of code.

StreamUARTuartStream=newStreamUART("COMxx");ncpInterface=newNcpInterface();ncpInterface.Open(uartStream);ncpInterface.Form("Networkname",11,"00112233445566778899AABBCCDDEEFF",1234);UdpSocketreceiver=newUdpSocket();receiver.Bind(IPv6Address.IPv6Any,1000);IPv6EndPointremoteIp=null;while(true){if(receiver.Poll(-1,SelectMode.SelectRead)){byte[]data=receiver.Receive(refremoteIp);stringmessage=Encoding.ASCII.GetString(data);Console.WriteLine("\n");Console.WriteLine("{0} bytes from {1} {2} {3}",message.Length,remoteIp.Address,remoteIp.Port,message);}}

About

.Net Core library is designed to work with the Thread network. To develop 6LoWPAN applications, you will need a radio module running as an OpenThread Network Co-Processor (NCP).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp