Jacdac .NET library
Перейти к файлу
pelikhan 06c465ba49 adding nano assemblies 2022-01-11 06:26:41 -08:00
.github/workflows removing building TinyCLR projects 2022-01-07 13:35:32 -08:00
Jacdac adding nano assemblies 2022-01-11 06:26:41 -08:00
Jacdac.Explorer Tinyclr (#3) 2021-12-09 15:34:43 -08:00
Jacdac.NET fix: attempt at reving version numbers 2022-01-06 21:03:41 -08:00
Jacdac.NET.Clients moving ledpixelclient upinto jacdac project 2022-01-10 22:05:44 -08:00
Jacdac.NET.DevTools fix: use proxy from jacdac-docs instead of local files 2022-01-08 19:29:45 -08:00
Jacdac.NET.Playground feature: USB transport 2022-01-07 17:45:32 -08:00
Jacdac.NET.Transports.Hf2 feature: USB transport 2022-01-07 17:45:32 -08:00
Jacdac.NET.Transports.Spi adding nano assemblies 2022-01-11 06:26:41 -08:00
Jacdac.NET.Transports.Usb support for specifying device id in usb transport 2022-01-10 13:02:42 -08:00
Jacdac.NET.Transports.WebSockets add devtools proxy in .net 2022-01-08 00:57:22 -08:00
Jacdac.Nano adding nano assemblies 2022-01-11 06:26:41 -08:00
Jacdac.Nano.Clients adding nano assemblies 2022-01-11 06:26:41 -08:00
Jacdac.Nano.Transports.Spi adding nano assemblies 2022-01-11 06:26:41 -08:00
Jacdac.Tests more work on twins 2022-01-04 13:32:11 -08:00
Jacdac.TinyCLR adding nano assemblies 2022-01-11 06:26:41 -08:00
Jacdac.TinyCLR.Clients adding package lists for tinyclr 2022-01-07 11:32:51 -08:00
Jacdac.TinyCLR.Playground updated package refs 2022-01-07 13:03:22 -08:00
Jacdac.TinyCLR.Storage adding package lists for tinyclr 2022-01-07 11:32:51 -08:00
Jacdac.Uploader mroe spec integration 2022-01-04 14:13:26 -08:00
.gitattributes Initial commit 2021-07-29 11:16:26 +02:00
.gitignore fix: add nuget upload 2022-01-06 20:50:39 -08:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2021-07-29 01:55:00 -07:00
Directory.Build.props fix: attempt at packaging tool 2022-01-08 11:30:06 -08:00
Jacdac.Dev.sln adding nano assemblies 2022-01-11 06:26:41 -08:00
Jacdac.sln fix: attempt at packaging tool 2022-01-08 11:30:06 -08:00
LICENSE LICENSE committed 2021-07-29 01:55:00 -07:00
README.md adding nano assemblies 2022-01-11 06:26:41 -08:00
SECURITY.md SECURITY.md committed 2021-07-29 01:55:02 -07:00
SUPPORT.md SUPPORT.md committed 2021-07-29 01:55:02 -07:00
jacdac.png enable nuget package generation 2022-01-04 09:33:40 -08:00
nuget.sh don't upload Jacdac nuget 2022-01-06 23:13:40 -08:00
release.config.js fix: normalize semantic release parsing 2022-01-07 18:05:35 -08:00

README.md

Jacdac for .NET

Jacdac is a plug-and-play hardware/software stack for microcontrollers and their peripherals (sensors/actuators), with applications to rapid prototyping, making, and physical computing.

This repository contains .NET Core (5+), .NET nanoframework and TinyCLR client libraries for the Jacdac protocol, as well as transports over USB, SPI, WebSockets.

Assemblies

The Jacdac project contains C# sources of the Jacdac protocol for various .NET runtime, including desktop or TinyClR. To avoid mscorlib issues, each platform recompiles these sources into its own assembly where C# files are simply shared as links. As a result, the C# used in the Jacdac project is .NET 5+/.NET nanoframework/TinyCLR compatible (and also inherits limitations thereof).

.NET Core and .NET IoT Core

  • Jacdac.NET, core runtime
  • Jacdac.NET.Clients, service clients
  • Jacdac.NET.Transports.Spi, SPI transport layer for SPI Jacdapter using .NET IoT
  • Jacdac.NET.Transports.WebSockets, WebSocket transport
  • Jacdac.NET.Transports.Usb, Usb transport, .NET5
  • Jacdac.NET.Transports.Hf2, HF2 protocol layer, .NET5

TinyCLR

  • Jacdac.TinyCLR, mirror of Jacdac library and UART transport
  • Jacdac.TinyCLR.Clients, service clients
  • Jacdac.TinyCLR.Storage, SD card storage support

.NET nanoframework

  • Jacdac.Nano, mirror of Jacdac library and UART transport
  • Jacdac.Nano.Transports.Spi, SPI transport layer for SPI Jacdapter using .NET nanoframework
  • Jacdac.Nano.Clients, service clients

Misc:

  • Jacdac.NET.DevTools, a .NET Core web site/proxy to help with developing Jacdac applications
  • Jacdac.Tests, unit tests, .NET6
  • Jacdac, C# Jacdac sources. This package serves as a placeholder for C# files and and is not referenced anywhere. For development purposes only.

DevTools

Launch Jacdac.NET.DevTools and use the WebSocket transport to connect your Jacdac bus to a local dashboard. This allows you to test your code against simulators and physical devices, and leverage the tooling available in the Jacdac network.

jacdac.devtools

Add spi on Raspberry Pi to also connect to the JacHAT

dotnet jacdac.devtools.dll spi

Developer setup

The rest of this page is for developers of the jacdac-dotnet library. For user documentation, go to https://microsoft.github.io/jacdac-docs/clients/dotnet.

  • clone this repository and pull all submodules
git clone https://github.com/microsoft/jacdac-dotnet
git submodule update --init --recursive
git pull
  • Restore Nuget packages. (Either in your preferred IDE/Editor or using dotnet restore).
  • Execute the desired tool or build the core library using your IDE or dotnet build/dotnet run

Testing with .NET and Jacdac development server

  • install NodeJS 14+
  • install Jacdac cli
npm install -g jacdac-cli
  • launch Jacdac dev tools
jacdac devtools
  • start running or debugging Jacdac.NET.Playground. The webdashboard will serve as a connector to the hardware.

.NET IoT Raspberry Pi

  • Open bash
sh ./publish.sh
  • From a SSH session
cd dotnet
dotnet Jacdac.NET.Playground spi

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.