简体   繁体   English

Raspberry Pi 3 Mono C#Bluez

[英]Raspberry Pi 3 Mono C# Bluez

Using Raspberry Pi 3 and it's built-in BLE chip I was able to install a Bluez nodejs example app to make my Raspi3 a BLE Peripheral , and I was able to read and write to the Gatt and echo information to my BLE Central Client . 使用Raspberry Pi 3和它的内置BLE芯片,我能够安装一个Bluez nodejs示例应用程序,使我的Raspi3成为BLE外设 ,我能够读取和写入Gatt并将信息回送给我的BLE中央客户端

However, now that I am trying to replace the nodejs BLE Perhipheral solution on my Raspi3 to use Mono.BlueZ , and dbus-sharp mono libraries to make a mono app that would make my Raspi3 a BLE Perhipheral . 但是,现在我正在尝试将我的Raspi3上的nodejs BLE Perhipheral解决方案替换为使用Mono.BlueZdbus-sharp单声道库来制作单声道应用程序,这将使我的Raspi3成为BLE Perhipheral

Immediately, I am running into issues compiling 我马上就遇到了编译问题

I am compiling in VS 2017 RC as a 3.5 project. 我在VS 2017 RC中编译为3.5项目。
dbus-sharp project I am trying to compile: https://github.com/brookpatten/dbus-sharp dbus-sharp项目我正在尝试编译: https//github.com/brookpatten/dbus-sharp 在此输入图像描述

Supporting Mono Bluez file that I will eventually use: https://github.com/brookpatten/Mono.BlueZ 支持我最终将使用的Mono Bluez文件: https//github.com/brookpatten/Mono.BlueZ

  1. Is there something that I need to do to actually compile the project? 实际编译项目是否需要做些什么?
  2. Is there any additional documentation or examples of how to get this compiled? 是否有任何其他文档或如何编译的示例?

I'm also trying to work with this project. 我也在尝试使用这个项目。

I managed to build and debug it like this (on Debian 8): 我设法像这样构建和调试它(在Debian 8上):

I installed the latest version of Mono (5.0) and could build the project by just typing msbuild in the project root. 我安装了最新版本的Mono(5.0),只需在项目根目录中键入msbuild即可构建项目。 It also works from within VS Code and I can also debug the project after creating launch.json and tasks.json files. 它也可以在VS Code中运行,我也可以在创建launch.json和tasks.json文件后调试项目。

However, when I debug Mono.BlueZ.Console, it hangs right away on this line: 但是,当我调试Mono.BlueZ.Console时,它立即挂起在这一行:

var manager = GetObject (Service, ObjectPath.Root); var manager = GetObject(Service,ObjectPath.Root);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM