Yeni: Yapay zekâ güvenlik duvarı tüm platformu izliyor ve her olayı sade bir dille açıklıyor. Nasıl çalıştığını görün

Aoife Lynch

lynchlab

@aoife_l22 · Nisan 2025 tarihinde katıldı

Yeni üye

Engineering student · university

Konular
15
Yanıtlar
79
Puan
0
Yeni üye10 için Üye puan

Oluşturulan forum yanıtları

15 yazı görüntüleniyor – 1 ile 15 arası (toplam 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.
Kabul edilen çözüm♥ 9

Yapay zekâ tarafından English dilinden çevrildi ·

Geçen dönem bu konuda bir modül aldım, ardından bir yazı bir süt fabrikasına gateway kurarak geçirdim, o yüzden anlatayım.Mesh evde işe yarar, çünkü yönlendiriciler şebekeden beslenir ve sürekli dinlemededir. LoRaWAN uç cihazları ise neredeyse her zaman uyuyan, pille çalışan sensörlerdir ve yalnızca veri gönderdikten sonra kısa süreliğine alım pencereleri açarlar. Uyuyan bir düğüm başkasının trafiğini iletemez; bu yüzden ağ bunun yerine bir yıldızlar yıldızı yapısındadır: menzildeki her gateway her uplink’i duyar ve ağ sunucusu kopyaları atar. Daha fazla gateway daha fazla kapsama demektir ve Hermetry’de bir cihaz mesajı, kaç gateway tarafından duyulursa duyulsun yalnızca bir kez saklanır.James, Pending durumu gerçek; görülmüş ama henüz kabul edilmemiş relay gateway’ler için kullanılıyor. Yine de bir relay da yerleştirilip beslenmesi gereken bir kutudur ve tek bir depo arkasındaki dört sensör için ikinci bir gateway daha basittir.Duyulan iki cihazınız SF12’de, SNR yaklaşık -15 ile bağlanıyor; bu sınırda bir değer. Join isteği ulaşıyor, ancak join yanıtının cihaza RX1’de 5 sn sonra, ya da 869.525 MHz’de (DR0) RX2’de 6 sn sonra geri dönmesi gerekiyor ve bu marjda downlink çoğu zaman ulaşmıyor. Diğer ikisi muhtemelen gateway’e hiç ulaşmıyor.İkinci bir gateway’i doğrudan depoya, tercihen sensörlere bakan tarafa koyun. Başka bir Basics Station gateway’i ya da LoRa radyolu lisanslı bir yönlendirici olabilir. İkisi de aynı ağ sunucusuna kaydolur ve sensörler onları en iyi duyan hangisiyse onu kullanır.Relay’ler ve kapsamayı genişletmenin diğer yolları: Yerel mod ve relay’ler

Timestamps in UTC or it didn't happen.
Kabul edilen çözüm♥ 4

Yapay zekâ tarafından English dilinden çevrildi ·

Örnek kaynak benim için tam zamanında geldi. Bitirme projem için sensörlerim iki hafta içinde gelecek ve kartı bundan önce göstermem gerekiyor. Kartın üzerinde örnek kartlar bırakırsam dikkat etmem gereken bir şey var mı?

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.
Kabul edilen çözüm♥ 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

Yapay zekâ tarafından English dilinden çevrildi ·

Problar 3 telli mi yoksa parazit beslemeli mi? Ve kısa bacaklardan bahsettiğinizde, ne kadar kısa?

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

Yapay zekâ tarafından English dilinden çevrildi ·

Sınırın 10 olduğunu bugün öğrendim. Laboratuvarımızda kiosk tarayıcısı çalıştıran 12 Raspberry Pi var; hepsi aynı hesapla oturum açmış ve sürekli birbirlerini oturumdan atıyorlar. Artık nedenini anladım lol

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

Yapay zekâ tarafından English dilinden çevrildi ·

Haklısın, her kurye için bir alarm olsaydı saçma olurdu. Laboratuvar kapımız için optokuplör devresini ödünç alıyorum.

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

Yapay zekâ tarafından English dilinden çevrildi ·

Öğrenci sorusu: PRV neden pompa istasyonunun hemen ardından değil de rezervuar kolunun sonrasında yer alıyor?

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

Yapay zekâ tarafından English dilinden çevrildi ·

Profildeki ring == 1 için bir alarm kuralı mı? Laboratuvar buzdolabı uyarılarımızda da böyle yaptık.

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.
Kabul edilen çözüm♥ 2
15 yazı görüntüleniyor – 1 ile 15 arası (toplam 79)