C2设备遥测和控制 [英] C2Device telemetry and control

查看:101
本文介绍了C2设备遥测和控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,亲爱的社区

您能为我们提供以下帮助吗?

Could you help us with following: 

我们正在做"D2C遥测和C2D"测试.专案并使用MQQT协议.我们能够通过IBHLINK OPC服务器(基于mqtt的消息)将数据从设备PLC S7传输到我们的Io​​T中心 通过StreamAnalysys在Power Bi上将其可视化.

We are doing a "D2C telemetry and C2D" project  and using MQQT protocol. We are able to transfer data from the device PLC S7 through IBHLINK OPC Server (mqtt based messages) to our IoT hub and via StreamAnalysys visualize it on Power Bi. 

现在,我们需要处理数据并将其发送回设备.应该将初始标签放入公式中,然后需要将在线结果返回到工厂".我们正在考虑以下方法: 

Now we need to process the data and send it back to the device. Initial tags should be pushed in a formula and then the online results are needed back to the "Plant". We are considering the following  approach:  

设置服务总线"或活动中心连接到IotHub-排队或存储"然后分别指定功能" ......可能触发的事件是:新的事件中心事件,新的队列 消息,新的服务总线消息/主题.

 to set " Service bus" or maybe an Event Hub  connected to the IotHub-  to make a queue or a "storage" respectively and then to specify a "function " triggered by ......possible are: new Event hub event, new Queue messsage, new Service bus message/topic. 

最简单的解决方案是什么?您在互联网上看到任何合适的示例吗?我们可以在函数内部进行计算并直接转发回去吗,还是需要特定的资源?  

What could be the easiest solution for that? Have you seen any appropriate examples on the Internet? Could we make our calculation inside the function and directly forward it back or we need a specific resource?   

要从Azure端控制设备(PLC Siemens S7 1200),我们需要其他替代方法吗?例如,通过向OPC服务器发送特定的布尔值来重新启动或关闭PLC.我听说过直接" 方法".您还能提供任何想法或示例吗?  

To control the device from the Azure side (PLC Siemens S7 1200 ),  do we need any alternative method?  for example,  to restart or shutdown the PLC by sending a specific boolean value to the OPC server.  I have heard about "direct method". Could you give any ideas or examples, as well?   

提前谢谢

最诚挚的问候

推荐答案

感谢您在这里提问:)!

Thanks for asking here :)!

是的,您可以使用函数将直接方法发送回设备或C2D消息.我强烈建议您阅读以下文档,以更好地了解何时使用C2D消息或直接方法(对于重新启动或固件更新方案,应 绝对使用直接方法甚至自动设备管理):

Yes you can use a function to send Direct Methods back to a device or C2D messages. I strongly advise you to read the following documentation to better understand when to use C2D messages or Direct Methods (for reboot or firmware updates scenarios you should definitely use Direct Methods or even automatic device managament):

https://docs.microsoft.com/en -us/azure/iot-hub/iot-hub-devguide-c2d指导

https://docs.microsoft.com/en -us/azure/iot-hub/iot-hub-devguide-direct-methods

https://docs.microsoft.com/en-us/azure /iot-hub/tutorial-firmware-update

我也强烈建议您阅读 Azure IoT参考架构指南

谢谢!


这篇关于C2设备遥测和控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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