AllJoyn Hello Blinky(覆盆子物联网核心,Windows Phone 10) [英] AllJoyn Hello Blinky (Raspberry IoT Core, Windows Phone 10)

查看:65
本文介绍了AllJoyn Hello Blinky(覆盆子物联网核心,Windows Phone 10)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨社区,

我正在寻找教程来学习如何在UWP应用中实现alljoyn。我的目标是使用Windows手机设置和获取我/我的Raspberry的信息。其中一个最简单的例子应该是Hello Blinky应用程序。所以我尝试用我的Windows手机通过alljoyn链接控制LED

I'm looking for tutorials to learn how to implement alljoyn in UWP apps. My objective is to SET and to GET information of/from my Raspberry using a Windows phone. One of the easiest examples should be the Hello Blinky app. So I try to control the LED with my Windows phone via alljoyn link this:

最终应该(并且将会)更多的Windows 10设备。

Sure there should (and will) be more Windows 10 devices in the end.

我的第一个问题是,是否有必要在Alljoyn BUS中获取/设置GPIO-Pins的属性? Becaus如果我想调整我现有的Hello Blinky应用程序,或者我只是想分离我的最终应用程序的代码逻辑和Alljoyn的通信逻辑,我可以
使用类似翻译器的东西,只是触发了我的一些功能现有的应用程序,例如:

My fist question is, is it necessary to get/set properties of GPIO-Pins in the Alljoyn BUS? Becaus if I want to adapt my existing Hello Blinky app or if I simply want to seperate the code logic of my final app and the communication logic of Alljoyn I could use something like an translator that just triggers some funcions of my already existing app, for example like this:

这个(没有翻译) 类似于两个UWP应用程序之间的通信,如下所示:

This (without translator) would be similar to a communication between two UWP apps like this:

然而,我需要实现不同的功能,无论我是否控制GPIO的状态 - 引脚或"状态"一个变量。如果我以正确的方式分析它,可能需要在
Hello Blinky应用程序中实现5个步骤。

Nevertheless I will need different fuctions that I have to implement, whether I control the status of a GPIO-pin or the "status" of a variable. If I analyzed it in the right way there could be 5 steps that are necessary to implement in the Hello Blinky app.

第1步:Hello Blinky应用程序本身(已经存在)。

1st step: The Hello Blinky app itself (that already exists).

第2步:提供有关GPIO-pin的状态信息(又名LED)或Alljoyn总线的状态变量(也许这是一个Alljoyn系统桥?)。

2nd step: To provide status information about the GPIO-pin (aka LED) or the status variable to the Alljoyn BUS (maybe this an Alljoyn System Bridge?).

第3步:访问BUS内部的信息(连续监听器)。

3rd step: To access the information inside of the BUS (continuous listener).

第4步:在BUS内设置属性(GPIO-pin或Status变量)。

4th step: To set a property (GPIO-pin or Status variable) inside of the BUS.

第5步:接收更改请求 (再次听众)和"行动"之后从步骤#2开始(提供状态)。

5th step: To receive the change request (again listener) and after "action" beginning with step #2 (to provide status).


AllJoyn设备系统桥
 (参考DEV中心样本)似乎显示了步骤#2的功能。但是没有足够的解释来转移这个"1"。或"0"或"0"。传感器 属性与Hello Blinky
应用程序类似。

The AllJoyn Device System Bridge (refer to the DEV Center samples) seems to show the funcionality of step #2. But there is not enough explanation to transfer this "1" or "0" sensor property in a similar way to the Hello Blinky app.

其他人是否试图解决这个问题?有人可以告诉在哪里找到信息(对于非常初学者)来开发/复制这样的东西吗?

Did someboy else try to solve this task? Can somebody tell where to find information (for very beginners) to develop/reproduce something like that?

关心René

推荐答案

Hello Rene,

Hello Rene,

我联系了AllJoyn人,他们有以下建议:

I reached out to the AllJoyn folks and they have the following suggestions for you:

请将海报指向以下链接,以说明他们需要做什么。 他们真的只需要实现AllJoyn生产者实现LED开/关方法的应用程序
和一个指示LED当前状态的信号。 Producer app将在Pi上运行,并在LED ON / OFF方法中操作GPIO引脚。相应的消费者应用程序将运行将发现生产者的电话并调用这些方法以及订阅信号的
。所有这些都在我们的UWP SDK示例中得到了充分证明。

 

https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/AllJoyn

 

下面的分步指南将是奖励,如果你得到"卡住"的话。某处。

https://channel9.msdn.com/Blogs/Internet-of-Things-Blog/Step-By-Step-Building-AllJoyn-Universal-Windows-Apps-for-Windows-10-Public-Preview

他们还建议您查看以下示例:

They also recommend you take a look at the following sample:

https://developer.microsoft.com/en-us/windows/iot/samples/alljoyndsbcs

此致,

IoTGirl


这篇关于AllJoyn Hello Blinky(覆盆子物联网核心,Windows Phone 10)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆