Novedad: el cortafuegos de IA supervisa toda la plataforma y explica cada incidente con palabras sencillas. Vea cómo funciona

Aoife Lynch

lynchlab

@aoife_l22 · Se unió el abril 2025

Recién llegado

Engineering student · university

Temas
15
Respuestas
79
Puntos
0
Recién llegado10 puntos para Miembro

Respuestas de foro creadas

Viendo 15 entradas – de la 1 a la 15 (de un total de 79)

Had the exact same thing in a lab last term with a fridge logger. Modbus registers are just 16 bits, they don’t know about signs. Your Arduino stores -125 as two’s complement, which is 0xFF83, and as an unsigned number that’s 65411. The Pi then reads it as unsigned.

So convert it back on the Pi:

raw = rr.registers[0]
if raw > 32767:          # top bit set means negative in int16
    raw -= 65536
temp = raw / 10           # -12.5

Or let pymodbus do it, the client has a helper for this (in 3.x):

temp = client.convert_from_registers(rr.registers, data_type=client.DATATYPE.INT16) / 10

On the Arduino side, cast before the register so rounding is explicit: holdingRegisters[0] = (uint16_t)(int16_t)lround(temp * 10);. With int16 x10 you have -3276.8 to 3276.7 C, plenty for a freezer.

If a gateway polls it instead of your script, set that register’s type to signed 16-bit in the gateway config and it does the same conversion.

Timestamps in UTC or it didn't happen.
Solución aceptada♥ 9

Traducido del English por IA ·

Cursé un módulo sobre esto el semestre pasado y luego pasé un verano instalando gateways en una lechería, así que aquí va mi respuesta.La malla funciona en casa porque los routers tienen alimentación de red y siempre están escuchando. Los dispositivos finales de LoRaWAN son sensores con batería que duermen casi todo el tiempo y solo abren ventanas de recepción cortas después de enviar. Un nodo dormido no puede reenviar el tráfico de otros, así que la red es una estrella de estrellas: cada gateway en alcance escucha cada uplink, y el servidor de red descarta los duplicados. Más gateways significa más cobertura, y en Hermetry un mensaje de dispositivo se guarda una sola vez sin importar cuántos gateways lo hayan escuchado.James, el estado Pending es real; es para los gateways relay que fueron vistos pero aún no aceptados. Aun así, un relay es una caja más que colocar y alimentar, y para cuatro sensores detrás de un único almacén, un segundo gateway es más sencillo.Tus dos dispositivos detectados se están uniendo con SF12 y un SNR de alrededor de -15, lo cual está al límite. La solicitud de join llega, pero la respuesta de join tiene que volver al dispositivo 5 s después en RX1, o 6 s en RX2 a 869,525 MHz (DR0), y con ese margen el downlink a menudo no llega. Los otros dos probablemente nunca llegan al gateway.Coloca un segundo gateway en el propio almacén, idealmente en el lado que mira hacia esos sensores. Puede ser otro gateway de Basics Station o un router licenciado con radio LoRa. Ambos se registran en el mismo servidor de red y los sensores simplemente usan el que mejor los escuche.Relays y otras formas de ampliar la cobertura: Modo local y relays

Timestamps in UTC or it didn't happen.
Solución aceptada♥ 4

Traducido del English por IA ·

La fuente de ejemplo llega en el momento perfecto para mí. Mis sensores para mi proyecto final de carrera llegan dentro de dos semanas y tengo que hacer una demostración de la placa antes de eso. ¿Hay algo que deba tener en cuenta si dejo las tarjetas de ejemplo en ella?

Timestamps in UTC or it didn't happen.
♥ 0

Both of them are partly right. U.FL is Hirose’s name. IPEX makes a family called MHF, and the original MHF (sometimes MHF1 or MHF I) mates with U.FL, so those pigtails are interchangeable. MHF4 is a smaller connector (about the size of a W.FL) and does not mate with U.FL at all, which is what Aisha hit. Newer LTE modules use MHF4 a lot to save space, sometimes only on the main antenna.

So check the mechanical drawing of the modem, not the word «IPEX». Height around 2.5 mm is MHF1/U.FL, around 1.2 mm is MHF4.

Two other things. These connectors are rated for only about 30 mating cycles, so don’t plug and unplug them for every test. And keep pigtails short: the thin 1.13 mm cable loses a fair bit at LTE frequencies, a 30 cm pigtail where 10 cm would do costs you signal.

Timestamps in UTC or it didn't happen.
Solución aceptada♥ 1

Built it with load cells (two per bed, HX711, ESP32) and the Rules card. Test last night with my supervisor lying on a spare bed and getting up at 23:10: the alarm opened at 23:20 and the carer got it in the chat app.

One thing I got wrong first: I left my old alarm rule on the profile switched on, so the 3 p.m. lounge alarms kept coming. Deleted it, only the Rules card is left. And Rachel, the manager is getting written consent from the families before we put the other two in.

Timestamps in UTC or it didn't happen.
♥ 0

Traducido del English por IA ·

¿Las sondas están conectadas con 3 cables o con alimentación parásita? Y cuando dice patas cortas, ¿cuán cortas?

Timestamps in UTC or it didn't happen.
♥ 2

Traducido del English por IA ·

TIL: el límite es de 10. En nuestro laboratorio hay 12 Raspberry Pi ejecutando un navegador en modo kiosco, todas con la misma cuenta iniciada, y no paran de echarse de la sesión unas a otras. Ahora entiendo por qué jaja

Timestamps in UTC or it didn't happen.
♥ 0

Traducido del English por IA ·

Tienes razón, una alarma por cada mensajero habría sido una tontería. Voy a tomar prestado el circuito optoacoplador para la puerta de nuestro laboratorio.

Timestamps in UTC or it didn't happen.
♥ 0

Traducido del English por IA ·

Pregunta de un estudiante: ¿por qué la PRV está después de la rama del depósito y no justo después de la estación de bombeo?

Timestamps in UTC or it didn't happen.
♥ 0

Traducido del English por IA ·

¿Regla de alarma en el perfil con ring == 1? Así es como hicimos las alertas de la nevera de nuestro laboratorio.

Timestamps in UTC or it didn't happen.
♥ 0

We did this in our control systems module last term and I’ve since drawn a few panels for a summer job, so here’s the IEC way as we were taught it.

Designation: IEC 81346 letter codes, terminal strips are X. First strip -X1, second -X2. A single terminal is the strip plus its number with a colon: -X1:3. Equipment gets its own code too: power supply -T1, fuses -F1, the gateway maybe -A1.

Symbol: IEC 60617 draws a terminal as a small circle (or a small square, many CAD libraries use that for terminal blocks) with the number next to it, on the wire where it passes through the strip. You don’t draw the whole strip as one box in the circuit diagram, each terminal appears where its wire is.

Then a separate terminal diagram (terminal plan) per strip: a table, one row per terminal, with internal destination on one side (e.g. -A1:A+) and external cable/core on the other (W12 core 1). Electricians wiring on site work almost only from that list.

A few habits that made my drawings get fewer questions:

  • Keep field power and signals on separate strips like you do, and say so in the strip’s title (X1 24 V field, X2 RS485 + 4-20 mA).
  • Draw jumpers between terminals explicitly.
  • For the RS485 terminals, mark A/B and the shield terminal clearly and note where the 120 Ω termination sits.
Timestamps in UTC or it didn't happen.
Solución aceptada♥ 2
Viendo 15 entradas – de la 1 a la 15 (de un total de 79)