ciaran55
@ciaranwalsh55 · Se unió el junio 2025
Smart-city engineer · energy
- Temas
- 9
- Respuestas
- 68
- Puntos
- 0
Respuestas de foro creadas
Traducido del English por IA ·
Android comprueba específicamente una respuesta 204; si recibe otra cosa, debería mostrar la solicitud de inicio de sesión. Sin la parte de DNS, es probable que su servidor ni siquiera reciba la petición.
Android specifically checks for a 204 answer, if it gets anything else it should show the sign-in prompt. Your server probably isn’t being asked at all without the DNS bit.
Traducido del English por IA ·
¿Sigue activado el registro por UART en el build? En el nRF52, eso mantiene funcionando el reloj de alta frecuencia.
Is UART logging still on in the build? On the nRF52 that keeps the high-frequency clock running.
Traducido del English por IA ·
Muchos de los medidores de nuestros armarios de calle solo dan pulsos y reportan bien; solo hace falta algo que los cuente.
Plenty of our street cabinet meters only give pulses and they report fine, something just has to count them.
Traducido del English por IA ·
jessicathompson37 tiene razón en el lado del proceso, mantenga las válvulas de retención. Dibujé una sala de compresores para un cliente el año pasado.Paleta: Compressor, Compressed-air receiver y Compressed-air dryer están en la biblioteca Process, no en el conjunto básico, así que si solo ve algunos, compruebe qué bibliotecas adquirió su organización. Check valve está en el conjunto básico, en la familia Water network; busque «check valve» en la paleta.La animación: una conexión no tiene valor propio. Sigue a su símbolo «from», así que una tubería muestra flujo mientras el símbolo de su inicio está en marcha. Si la tubería desde el compresor 2 sigue fluyendo, probablemente se dibujó desde el receptor hacia el compresor, o ambas tuberías parten del mismo símbolo en marcha. Dibújelas en el sentido del flujo:
Compressor 1 -> Check valve 1 -> Receiver -> Dryer -> header
Compressor 2 -> Check valve 2 ----^
y vincule el Running de cada compresor a su propio valor de running en sus Views. Marque Flow arrow en las tuberías para que se vea la dirección. Una válvula de retención colocada en la línea toma el medio de la primera conexión que la toca. Pipes, cables and connections
jessicathompson37 is right on the process side, keep the check valves. I drew a compressor room for a client last year.
Palette: Compressor, Compressed-air receiver and Compressed-air dryer are in the Process library, not the core set, so if you only see some of them, check which libraries your organisation bought. Check valve is in the core set under the Water network family; search the palette for «check valve».
The animation: a connection has no value of its own. It follows its «from» symbol, so a pipe shows flow while the symbol at its start runs. If your pipe from compressor 2 keeps flowing, it was probably drawn from the receiver towards the compressor, or both pipes start at the same running symbol. Draw them in the flow direction:
Compressor 1 -> Check valve 1 -> Receiver -> Dryer -> header
Compressor 2 -> Check valve 2 ----^
and bind each compressor’s Running to its own running value on its Views. Tick Flow arrow on the pipes so the direction is visible. A check valve placed on the line takes the medium of the first connection that touches it. Pipes, cables and connections
Traducido del English por IA ·
I2C con un extensor de bus como el P82B715 puede cubrir tramos largos; lo usamos una vez para 20 m.
I2C with a bus extender like the P82B715 can do long runs, we used it for 20 m once.
Traducido del English por IA ·
Dos preguntas diferentes.SPI: sí, el bit-banging funciona bien. El SX1276 no tiene una frecuencia mínima de reloj SPI, usa el modo 0, y el acceso a registros a unos pocos cientos de kHz desde un PIC es más que suficiente. La gente usa LoRa puro punto a punto de esta manera.LoRaWAN: aquí es donde un PIC16 se queda corto. La pila necesita criptografía (AES-CMAC para el MIC), estado de sesión, y debe abrir las ventanas de recepción a tiempo después de cada uplink. El retardo RX1 por defecto de Hermetry es de 5 s, y la ventana tiene que abrirse con unos pocos milisegundos de precisión. Es factible, pero no con esa RAM.Así que la idea de Kevin: un módulo con su propia pila LoRaWAN (por ejemplo, uno basado en STM32WL) conectado por UART. El PIC envía un comando de join una vez y luego una carga útil hexadecimal por cada lectura, y el módulo se encarga del resto. Cada sonda se une por OTAA, Class A, LoRaWAN 1.0.2 a 1.0.4, que es lo que usa el servidor de red de Hermetry, en el mismo plan de frecuencias que su gateway. Un códec de tablas convierte sus bytes en humedad y batería. Consulte los LoRaWAN limits antes de elegir el módulo para que su versión coincida, y cómprelo para la banda de su gateway.
Two different questions.
SPI: yes, bit-banging is fine. The SX1276 has no minimum SPI clock, mode 0, and register access at a few hundred kHz from a PIC is plenty. People run raw LoRa point to point like that.
LoRaWAN: that’s where a PIC16 runs out. The stack needs crypto (AES-CMAC for the MIC), session state, and it has to open the receive windows on time after each uplink. Hermetry’s default RX1 delay is 5 s, and the window has to open within a few milliseconds of that. Doable, but not on that RAM.
So Kevin’s idea. A module with its own LoRaWAN stack (an STM32WL based one, for example) over UART. The PIC sends a join command once and then a hex payload per reading, the module handles everything else. Each probe joins with OTAA, Class A, LoRaWAN 1.0.2 to 1.0.4, which is what Hermetry’s network server does, on the same frequency plan as your gateway. A table codec turns your bytes into moisture and battery. Check LoRaWAN limits before you pick the module so its version matches, and buy it for your gateway’s band.
Traducido del English por IA ·
Entonces invierta el planteamiento para que nadie tenga que llamar al Uno. El Uno publica su contador en Hermetry, y el ERP obtiene el total del turno desde Hermetry. El tráfico entrante a su red permanece cerrado.Uno: envíe el total acumulado (nunca lo reinicie en el Uno) cada minuto a la API HTTP del dispositivo con su token. Un W5100 no puede usar TLS, así que o bien coloque delante una pequeña placa compatible con TLS o, lo más sencillo, cambie el Uno por un ESP32 con Ethernet y publique por HTTPS. El cuerpo es solo {"cases_total": 184233}.Lado del ERP: una clave de API con el preajuste Read only para telemetría, permitida solo para la dirección del servidor del ERP. A las 06:05, 14:05 y 22:05, el trabajo de importación solicita el incremento durante el turno:
GET /tenant/{tenantId}/api/telemetry/series?kind=iot_device&entityId={line3}
&keys=cases_total&from={shift_start_ms}&to={shift_end_ms}&bucket=1h&agg=increase
Sume los 8 valores horarios. increase gestiona correctamente el contador, y no le importa si el dispositivo estuvo desconectado 10 minutos en medio, el total se recupera. En el tablero, la misma clave en un gráfico con increase ofrece a operaciones los casos en vivo por hora.En su caso, evitaría enviar datos desde un flow al ERP: el bloque de solicitud HTTP rechaza las direcciones privadas, así que de todos modos no puede llegar a 10.x. Con la extracción (pull) TI queda satisfecho. Referencia: The history API.
Then flip it around so nobody calls the Uno at all. The Uno posts its counter to Hermetry, and the ERP pulls the shift total from Hermetry. Inbound to your network stays closed.
Uno: send the running total (never reset it on the Uno) every minute to the device HTTP API with its token. A W5100 can’t do TLS, so either put a small TLS-capable board in front or, simplest, swap the Uno for an ESP32 with Ethernet and post over HTTPS. The body is just {"cases_total": 184233}.
ERP side: an API key with the Read only preset for telemetry, allowlisted to the ERP server’s address. At 06:05, 14:05 and 22:05 the import job asks for the increase over the shift:
GET /tenant/{tenantId}/api/telemetry/series?kind=iot_device&entityId={line3}
&keys=cases_total&from={shift_start_ms}&to={shift_end_ms}&bucket=1h&agg=increase
Add up the 8 hourly values. increase handles the counter properly and you don’t care if the device was offline for 10 minutes in between, the total catches up. On the board, the same key on a chart with increase gives ops the live cases per hour.
I’d avoid pushing from a flow to the ERP in your case: the HTTP request block refuses private addresses, so it can’t reach 10.x anyway. The pull keeps IT happy. Reference: The history API.
Traducido del English por IA ·
Quédate con ADC1 incluso para las pruebas; perdí una hora porque ADC2 devolvía 4095 con el Wi-Fi activado.
Stick to ADC1 even for testing, I lost an hour to ADC2 reading 4095 with Wi-Fi on.
Traducido del English por IA ·
Y STATE no es una señal de reset. Pasa a alto una sola vez cuando se conecta el enlace Bluetooth, no genera un pulso cuando arranca avrdude. Eso por sí solo produce resp=0x00.
And STATE isn’t a reset signal. It goes high once when the Bluetooth link connects, it doesn’t pulse when avrdude starts. That alone gives you resp=0x00.
Traducido del English por IA ·
La forma más rápida de volver atrás: ejecutar pip install paho-mqtt==1.6.1 y reiniciar el servicio. Después, solucionadlo de forma definitiva cuando tengáis tiempo.
Quickest way back: pip install paho-mqtt==1.6.1 and restart the service. Then fix it properly when there’s time.
Traducido del English por IA ·
Eso era exactamente. Pasar &Wire a ambos arregló los sensores, y el lado RS-485 vuelve a funcionar porque 21/22 no se tocan. La corriente y la temperatura del armario ya están en el panel. Por si alguien tiene la biblioteca INA219 que tengo yo: su begin() recibe el puntero, pero las versiones antiguas no, así que actualícela primero.
That was exactly it. Passing &Wire to both fixed the sensors, and the RS-485 side works again because 21/22 are left alone. Cabinet current and temperature are on the dashboard now. In case someone has the INA219 library I have: its begin() takes the pointer, but older versions did not, so update it first.
Traducido del English por IA ·
La versión corta de Keisha es correcta. El detalle, tal como se lo explico a los nuevos integrantes:La velocidad de chip es igual al ancho de banda, así que a 125 kHz se obtienen 125 000 chips por segundo. Un símbolo son 2^SF chips, por lo que un símbolo dura 2^SF / BW: unos 1 ms con SF7 y 33 ms con SF12. Cada símbolo transporta SF bits. Con la tasa de codificación 4/5, la velocidad de bits es SF × BW / 2^SF × 4/5, unos 5,5 kbit/s con SF7 y 290 bit/s con SF12. Cada paso de SF reduce aproximadamente a la mitad la velocidad de bits y duplica el airtime.En EU868, suponiendo que sea lo que ejecutan sus gateways, los números DR son solo nombres para pares de SF y ancho de banda:
DR0 SF12 125k DR3 SF9 125k
DR1 SF11 125k DR4 SF8 125k
DR2 SF10 125k DR5 SF7 125k
DR6 SF7 250k DR7 FSK 50 kbit/s
Así que el SF9 del fabricante es DR3. No tiene que configurar nada para eso. ADR (activado por defecto) mueve cada dispositivo dentro del rango Lowest/Highest DR del perfil, de DR0 a DR5 por defecto, según la mejor SNR de sus últimos 20 uplinks. Un medidor que escucha bien al gateway termina más rápido que con SF9, mientras que uno lejano se mantiene más lento. Después de un cambio, puede verlo en el atributo lora.dr del dispositivo. El único caso en el que desactivaría ADR es en dispositivos que se mueven, como un rastreador.ADR, velocidades de datos y comandos MAC
Keisha’s short version is right. The detail, as I explain it to new starters:
The chip rate equals the bandwidth, so at 125 kHz you get 125,000 chips per second. One symbol is 2^SF chips, so a symbol lasts 2^SF / BW: about 1 ms at SF7 and 33 ms at SF12. Each symbol carries SF bits. With the 4/5 coding rate that gives a bit rate of SF × BW / 2^SF × 4/5, about 5.5 kbit/s at SF7 and 290 bit/s at SF12. Each SF step roughly halves the bit rate and doubles the airtime.
In EU868, assuming that’s what your gateways run, the DR numbers are just names for SF and bandwidth pairs:
DR0 SF12 125k DR3 SF9 125k
DR1 SF11 125k DR4 SF8 125k
DR2 SF10 125k DR5 SF7 125k
DR6 SF7 250k DR7 FSK 50 kbit/s
So the vendor’s SF9 is DR3. You don’t have to set anything for that. ADR (on by default) moves each device within the profile’s Lowest/Highest DR range, DR0 to DR5 by default, based on the best SNR over its last 20 uplinks. A meter that hears the gateway well ends up faster than SF9, a far one stays slower. After a change you can see it in the device’s lora.dr attribute. The one case where you’d turn ADR off is anything that moves, like a tracker.
Traducido del English por IA ·
No cuente con el yaw dentro de un remolque de acero. El magnetómetro se desvía por el acero; vimos errores de 40°. El roll y el pitch son lo que necesita para detectar que «se ha volcado» de todos modos.
Don’t count on yaw inside a steel trailer. The magnetometer gets pulled around by the steel, we saw 40° errors. Roll and pitch are what you need for «tipped over» anyway.
Traducido del English por IA ·
Opté por un divisor alimentado por el propio bucle; el presupuesto cuadró con 4 V de margen. El nodo lee la segunda salida, el bloque Scale genera level_pct, y mantuve la clave de mA sin procesar con una alarma por debajo de 3.8. La lectura del PLC no cambió al cortar la alimentación del nodo para la prueba.
Went with a loop-powered splitter, the budget worked out with 4 V to spare. The node reads the second output, Scale block gives level_pct, and I kept the raw mA key with an alarm below 3.8. The PLC reading didn’t move when we cut the node’s power to test.
Traducido del English por IA ·
@Kevin H. no es tonto, pero ese PLC no tiene licencia de comunicaciones y el proveedor no vende una para un sitio de este tamaño. @aisha.maker eso es un lazo de tierra esperando a formarse aquí, el ESP se alimenta desde una fuente de alimentación distinta.
@Kevin H. not dumb, but no comms licence on that PLC and the vendor won’t sell one for a site this size. @aisha.maker that’s a ground loop waiting to happen here, the ESP is powered from a different supply.

