2024年11月21日星期四 下午4:59:28

How Do IoT Devices Communicate?

2 年 前
#6036 引用

https://www.digi.com/blog/post/how-do-iot-devices-communicate

Internet of Things (IoT) devices communicate is dozens of different ways, using hundreds of different protocols.

Components for IoT Device Communication

While IoT systems come in many different architectures, most include the following components:

IoT device – anything from the tiniest temperature sensor to a giant industrial robot
Local communications – the method the device uses to speak with neighboring devices
Application protocol – the framework that defines how information content is transported
Gateways – translate and re-transmit information, typically linking local device networks to the Internet
Network servers – systems that manage the acceptance and transmission of IoT data, typically located inside cloud data centers
Cloud applications – process IoT data into useful information, for presentation to users
User interfacewhere people see IoT information, manipulate it, and issue commands back to IoT devices
0
2 年 前
#7168 引用
local

0
2 年 前
#7169 引用
local control
Local communications

本地控制  wifi 设备不能本地控制

局域网控制

首先需要网关,才能实现本地控制。

苹果app 能实现本地控制
0
2 年 前
#9211 引用
local control

node js


https://github.com/bogdan-kovalev/smart-home-local
0
2 年 前
#10277 引用
Yeelight灯 接入HA - 开启局域网控制协议

https://www.msly.cn/boards/topic/5277/yeelight%E7%81%AF-%E6%8E%A5%E5%85%A5ha-%E5%BC%80%E5%90%AF%E5%B1%80%E5%9F%9F%E7%BD%91%E6%8E%A7%E5%88%B6%E5%8D%8F%E8%AE%AE


Yeeligh Cloud API  https://open-console.yeelight.com/

Yeeligh Local API  https://www.yeelight.com/en_US/developer
0
2 年 前
#15396 引用
The communication between HA and the xiaomi gateway requires a local network with multicast capabilities.

Some cheap access points doesn’t do a good job here. It’s possible to block the internet access for the xiaomi gateway. Blocking is not a feature of the xiaomi gateway. It must be done at your router for example. To enable the “local networking” feature by the mi home app the xiaomi gateway it must be connected to the internet & a xiaomi account for a single time. For pairing new devices you don’t need the app. Just push the button of the gateway three times and the button of the new device once. A restart of HA is needed before the new device shows up.

https://community.home-assistant.io/t/xiaomi-gateway-local-only/23635


The Xiaomi Gateway publishes the current state of the ZigBee devices periodically via multicast. In addition there is a unicast message (gateway ip -> home assistant ip) on each event (if you open a window f.e.). In other words: The gateway requires a multicast/unicast capable network anytime.

I have installed this, gateway is in a separate VLAN from the HA server. And I forward the multicast requests through the firewall. You’re right, it’s push from the gateway, not poll from the server.
And it works fine, the only thing the gateway can do in my environment is this connection, nothing to the outside world, no “phone home”, no cloud storage…

https://community.home-assistant.io/t/xiaomi-gateway-local-only/23635/7
0
2 年 前
#15397 引用
Any idea how to block outgoing connections for the Xiaomi gateway?


Use the Xiaomi Mini Router 3 ^^, you can block internet access to any of the connected device. It cost only 25€, and does an awesome job as a device tracker (as well as being a very good router)

I use Asus merlin to block access


0
2 年 前
#17640 引用
目前智能家居设备之间的通讯模式一般有三种:

第一种是比较常见的智能家居模式,其建立在把所有智能设备外包给其他地方的设备基础上。每一个单独的设备都只有非常有限的内置智能。相反,这些智能设备比较易来与自己的云端网络直接通信,来执行我们发出的指令。

第二种是一种每个设备不在依赖于家庭意外的云环境,而是依赖一个中枢,在本地管理和安装在家周围的设备交互。这样的中心处理和云环境中的更有限的服务提供商的所有交互,显著减少了云通信,隐私性也有了一定的保障,故障触发的几率也少了。

第三种相对来说是智能家居的理想模式,它将赋予每个设备与同类智能家居设备交流和独立思考的能力。就像我们把智能装置添加到传感器中,并创建一个设备网络,可以直接相互通信,我们就不需要再家庭外进行传输数据。这时候就不需要中枢,这意味着,在安装上更简便,设备的响应会更快并且更安全。

一般我们的智能家居设备,例如智能音响,它通过使用的宽带连接将我们的命令传输到云端,在云端解释,然后它由此产生的行动传送到世界各地,发送给供应商,然后供应商与设备通信,这个链中的每个设备步骤都是依赖云来执行的。

这个模式看这样描述就感觉很低效,并且出现故障的几率比较高,因为每个设备都是独立工作的,都是和云交互工作的,而且还存在被黑客攻击的风险。

再有就是能源消耗问题,每一次传输都会消耗能量,这样也会让家庭中使用的智能设备消耗了大量的能源,及时在不使用的情况下也是这样。

为了解决这些问题,智能家居设备需要简化设备之间的通讯。像第二种模式这样,通过在云中获取一些智能并以本地的形式将其带入智能家居环境来解决这个问题。它减少了云中代理的数量以及它们的通信,促进了智能家居设备之间的对话。

至于第三种模式,目前还不够完善,想要达到智能家居设备拥有独立思考的能力还是很难达到的。不过目前第二种在日常家庭中就已经够用了,第三种在今后的发展中逐渐完善才能投入到我们的家庭中。
0