2.2.2: los dispositivos detrás de una puerta de enlace envían datos y reciben comandos a través de ella
Traducido del English por IA ·
La 2.2.2 sale hoy. Para quienes usan puertas de enlace: ahora existe una API de puerta de enlace. Los dispositivos detrás de una puerta de enlace envían sus datos y reciben comandos a través de ella.De la misma versión: el editor de perfiles de dispositivo establece el perfil que reciben los nuevos dispositivos hijos.Documentación: Gateways and devices behind a gateway para la visión general, Devices behind a gateway para cada tema y carga útil, y Commands to devices behind a gateway.Los despliegues de firmware y los certificados de dispositivos también están en la 2.2.2; Buğra y Kuray se encargan de ellos.
2.2.2 is out today. For anyone running gateways: there is now a gateway API. Devices behind a gateway send their data and receive commands through it.
From the same release: the device profile editor sets the profile that new child devices get.
Docs: Gateways and devices behind a gateway for the overview, Devices behind a gateway for every topic and payload, and Commands to devices behind a gateway.
Firmware rollouts and device certificates are in 2.2.2 as well; Buğra and Kuray cover those.
Traducido del English por IA ·
Justo a tiempo. Tengo una Pi 4 que lee seis medidores de energía por RS-485 con pymodbus. ¿A qué topic van las lecturas y necesitan los medidores sus propios tokens?
Perfect timing. I have a Pi 4 reading six energy meters over RS-485 with pymodbus. Which topic do the readings go to, and do the meters need their own tokens?
Traducido del English por IA ·
Los medidores nunca reciben credenciales. La Pi inicia sesión como un solo dispositivo, y en ese dispositivo activas Este dispositivo es una pasarela. Su perfil debe usar el esquema de topics v1/ por defecto. Luego publica para los hijos con QoS 1, telemetría indexada por el nombre del hijo:
topic: v1/gw/telemetry
{
"Meter 1": {"values": {"kwh": 1203.4, "voltage": 229.8}},
"Meter 2": {"values": {"kwh": 88.1}}
}
Un hijo se crea la primera vez que la pasarela lo menciona. Envía v1/gw/connect con un type que sea exactamente el nombre de uno de tus perfiles si quieres que se asigne a ese perfil; de lo contrario, recibe el Profile of new children del perfil de la pasarela. Los comandos para un medidor llegan a la Pi por v1/gw/rpc.
The meters never get credentials. The Pi logs in as one device, and on that device you turn on This device is a gateway. Its profile must use the default v1/ topic scheme. Then it publishes for the children with QoS 1, telemetry keyed by the child’s name:
topic: v1/gw/telemetry
{
"Meter 1": {"values": {"kwh": 1203.4, "voltage": 229.8}},
"Meter 2": {"values": {"kwh": 88.1}}
}
A child is created the first time the gateway mentions it. Send v1/gw/connect with a type that is exactly the name of one of your profiles if you want it to land on that profile; otherwise it gets the gateway profile’s Profile of new children. Commands for a meter reach the Pi on v1/gw/rpc.
Traducido del English por IA ·
El mío se conecta bien y luego se desconecta tras dos o tres mensajes gw. La telemetría básica del dispositivo desde la misma caja funciona.
Mine connects fine and then gets disconnected after two or three gw messages. Plain device telemetry from the same box works.
Traducido del English por IA ·
Parece que el dispositivo no está marcado como pasarela. Tres topics v1/gw/* rechazados en un minuto cierran la sesión. Edite el dispositivo y active Este dispositivo es una pasarela.
Sounds like the device is not marked as a gateway. Three refused v1/gw/* topics in a minute close the session. Edit the device and turn on This device is a gateway.
Traducido del English por IA ·
Era eso. Gracias Serhat.
That was it. Thanks Serhat.
Traducido del English por IA ·
¿Cuántos dispositivos hijos puede manejar una pasarela? Tenemos una línea con unos 300 esclavos Modbus repartidos en dos pasarelas.
How many children can one gateway carry? We have a line with roughly 300 Modbus slaves on two gateways.
Traducido del English por IA ·
El perfil de gateway tiene por defecto un máximo de 500 hijos por gateway (Max children of a gateway), limitado por su plan y por un techo de la plataforma de 1.000. Cada hijo cuenta para su límite de dispositivos, así que compruebe primero eso con 300 hijos.
The gateway profile’s Max children of a gateway is 500 by default, capped by your plan and by a platform ceiling of 1,000. Each child counts toward your device limit, so check that first with 300 children.
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

