Skip to content

Scan and connect to Trigno Sensors over RF using Delsys API

Notifications You must be signed in to change notification settings

delsys-inc/DelsysAPI-UnityExample

Repository files navigation

** This Repository is Outdated ** Visit Delsys Example Applications Repository for up-to-date examples


Delsys API RF integration with Unity

Description of the Sample App using Delsys API in RF mode:

  1. When you run the app after building the project from Unity, click Scan. The app will then scan for Trigno Sensors and connect to found devices.
  2. Select sensors by clicking "Select" button.
  3. Click "Start" to start data streaming and "Stop" to stop data streaming
  4. The app will save a csv file of the data collected during the run.

Requirements

  1. Unity version 2019.1.5f1 or greater
  2. Latest Delsys API
  3. Trigno sensors and Base Station running on latest firmware. You can follow the guide from here

Few things to note before building the project:

  1. Make sure you always have the latest DelsysAPI, you can download the latest API package from here (Skip to step 8 if you already have the latest API package)
  2. For this tutorial, we'll be using the NuGet for Unity plugin. This is not required, but it simplifies obtaining the API's dependencies.

3. Install NuGet if you don't have already from the Asset Store.

4. Install Stateless and Portable.Licensing NuGet packages.

5. Extract each NuGet package -- the API, Stateless, and Portable.Licensing -- with a zip extractor.

6. Copy each dll (Stateless from the lib/net45 folder, Portable.Licensing, and all of the Delsys API dlls) to the Assets -> Plugins folder of your Unity project. 7. Delete the NuGet packages and NuGet config files to ensure no duplicate dependencies. Your Plugins folder should now look something like this:

8. Make sure the configuration settings are as shown below. You can access them by going to File -> Build Settings -> Player Settings

9. From File -> Build Settings, select Architecture as x86 from the drop down menu:

10. It is advisable to run the standalone exe file from a separate folder for eg: BuildVersions as shown below. You can do so by going to Build Settings, click Build -> Make a new folder and then save the build output in that location.

11. Also make sure that any dll files in the project have x86 checked under Inspector -> Platform Settings

Author

SarthakJag

About

Scan and connect to Trigno Sensors over RF using Delsys API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages