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

Ciarán Walsh

ciaran55

@ciaranwalsh55 · Haziran 2025 tarihinde katıldı

Yeni üye

Smart-city engineer · energy

Konular
9
Yanıtlar
68
Puan
0
Yeni üye10 için Üye puan

Oluşturulan forum yanıtları

15 yazı görüntüleniyor – 46 ile 60 arası (toplam 68)

Yapay zekâ tarafından English dilinden çevrildi ·

Kabloyu birkaç metreden uzun çekmeniz ve okumalar dengesiz olmaya başlarsa, direnci 2.2k’ya indirin.

♥ 0

Yapay zekâ tarafından English dilinden çevrildi ·

Etikete +1. Ayrıca bu laboratuvarlardan herhangi birinde kullanıcı başına oturum açma gerektiren kurumsal Wi-Fi varsa, basit bir captive portal bunu yapamaz; firmware içinde kimlik/kullanıcı adı alanlarına ve WPA2-Enterprise desteğine ihtiyacınız olur. Bunun yerine BT departmanından bir PSK IoT ağı isteyin, çok daha az zahmetli olur.

♥ 0

Yapay zekâ tarafından English dilinden çevrildi ·

Bir belediye binası pilot uygulamasında Z-Wave kullandım, bu yüzden nasıl ayırmanızı önereceğimi anlatayım.”Zorunlu” olması sertifikasyonla ilgili: Nisan 2017’den itibaren Z-Wave sertifikası alan her yeni cihazın, denetleyicilerin de S2’yi desteklemesi gerekiyor. Sizin USB çubuğunuz destekliyor. Bu, S2 içeren her düğümü eklemenizi zorunlu kılmaz.Sınıflar şunlardır: S2 Access Control (kilitler, garaj kapıları, kapı açan her şey), S2 Authenticated (PIN gerektirir; PIN, cihaz etiketindeki veya QR koddaki DSK’nın ilk 5 hanesidir) ve S2 Unauthenticated (şifreli, ancak karşınızdaki cihazın gerçekten istediğiniz cihaz olduğuna dair bir kanıt yok).

  • Kapı kilitleri: S2 Access Control, tartışmaya yer yok. Çoğu kilit, güvenli ekleme yapılmadan kilitleme/açma komutlarını bile kabul etmez.
  • Kapı sensörleri: yalnızca S0 veya hiçbir güvenlik desteği yoksa, onlar da öyle kullanılır. S0 çok fazla trafik üretir (komut başına üç çerçeve), bu yüzden güvenlik açısından kritik değillerse eski sensörleri S0 ile değil, güvenliksiz çalıştırmayı tercih ederim.
  • Prizler: S2 Authenticated. S2, çerçeve başına birkaç bayt ekler; bu, S0’ın yüküyle hiç kıyaslanamaz. Trafik sorunu raporlama aralığıdır; prizleri her birkaç saniyede değil, %5 değişimde veya her 60 saniyede bir rapor verecek şekilde ayarlayın.

PIN kağıdını etiketlerle birlikte saklayın; yeniden dahil etmeniz gerekirse ona ihtiyacınız olacak.

Kabul edilen çözüm♥ 9

Yapay zekâ tarafından English dilinden çevrildi ·

Modemde daha sonra PSM veya eDRX’e bakacaksanız, önce o SIM kartta operatörünüzün bunu desteklediğini kontrol edin. Bizimki desteklemiyordu ve bir hafta sonumu kaybettim.

♥ 0

Yapay zekâ tarafından English dilinden çevrildi ·

Zero’nun kendisi de Wi-Fi, BT ve HDMI açıkken yaklaşık 100 mA boşta çekiyor. HAT daha hiçbir iş yapmadan bu, bütçenizin üçte biri demek.

♥ 0

Yes, it’s the GPIO timing, and the missing bias doesn’t help. I had almost the same line on six pump controllers.

Driving DE/RE from Python is too slow and too jittery. After the write, your code switches back to receive only when Linux gets round to it. At 38400 a slave can start answering within a couple of milliseconds, so the start of the reply is lost or you’re still driving the line while the slave talks. Fix it in hardware: a USB-RS485 adapter with automatic direction control (FTDI-based ones are good), or let the kernel do it on the UART with rs485 mode. The adapter is the five-minute fix.

Then the line itself:

  • Bias: one pull-up on A and one pull-down on B, only once on the bus (560 R to 1 k is typical), so the idle line is defined.
  • Common ground wire between all nodes.
  • Give pymodbus a sane timeout and a pause between slaves, some old firmware needs a breather.
client = ModbusSerialClient(port="/dev/ttyUSB0", baudrate=38400, parity="N",
                            stopbits=1, bytesize=8, timeout=0.3, retries=2)
for unit in range(11, 17):
    rr = client.read_holding_registers(0, count=4, slave=unit)
    time.sleep(0.02)

Then report all six as children of the Pi on v1/gw/telemetry, keyed by name (“mixer-11” and so on). Each one gets its own device in Hermetry, and you can put a Device offline rule on their profile.

Kabul edilen çözüm♥ 1

CRC order is right, Modbus sends the low byte first and 0x71 0xCB is correct for that frame. The problem is print.

Serial.print(0x01) sends the text “1”, the byte 0x31. Serial.print(0x71) sends “113”, three bytes. So the meter receives something like “1400021137…” in ASCII, which isn’t a Modbus frame at all, and it stays quiet. Serial.write sends the raw byte, which is what Modbus RTU needs.

Second problem: you drop DE the moment the loop ends, but at 2400 baud the bytes are still going out of the UART for another ~30 ms. Switching to receive cuts the end of the frame. Wait for the transmit to finish:

digitalWrite(2, HIGH);
Serial.write(frame, sizeof frame);
Serial.flush();            // returns when the last byte has left the UART
digitalWrite(2, LOW);

The answer is 9 bytes: address, 0x04, byte count 0x04, four data bytes, CRC. The SDM120 voltage is a 32-bit float, big-endian, high word first:

union { uint32_t u; float f; } v;
v.u = ((uint32_t)r[3] << 24) | ((uint32_t)r[4] << 16) | (r[5] << 8) | r[6];
// v.f is the voltage

Since the Nano’s only hardware UART is now on the RS485 side, debug through a SoftwareSerial pin or a blink, not the USB serial monitor. When you send it on, send {"voltage": 231.4} as a number so the chart works.

Kabul edilen çözüm♥ 9

Torque mode is for pressing or holding tension, a gate would just drift. And the late stop is the real lesson: never close a fast loop through the cloud.

A command from a symbol can arrive late, the operator can click twice, and a command that gets no answer within 30 s is shown as unknown, not as failed. Only one command runs per diagram card at a time. All fine for “go to open”, dangerous for “start moving and wait for stop”.

Put the drive in position mode (or let a small PLC next to it do the motion). The cloud only sends targets: one catalog command gate.move with a parameter to of open or closed. The drive does the ramp, the speed limit and the end positions itself, so a late or repeated command still ends in the same place. Make the device ignore a request id it has already run.

On the symbol: Run a command, Basic tier (symbols can’t send anything else), and the confirmation is always asked. Bind the gate symbol’s state to the position the drive reports, so the picture shows where the gate is, not what someone asked for. See Commands on symbols.

Kabul edilen çözüm♥ 8

Yapay zekâ tarafından English dilinden çevrildi ·

Dün ayrımı yaptık ve sorunsuz geçti. Operatör, eski 12 için özel bir APN verebildi; bir telefon görüşmesi ve bir form yeterli oldu. İzin verilen ağlar artık yalnızca onların /24 bloğu. 12 token’ı döndürdük ve yenilerini satıcının SMS yapılandırma kanalı üzerinden gönderdik; iki kabin bunu kabul etmedi, bu yüzden yine de oraya gitmem gerekecek.BT, “değiştirilene kadar çevrelenmiş” ifadesini değiştirme tarihiyle birlikte kabul etti. Test uzmanı TLS cihazında kendi van düzeneğini yeniden çalıştırdı ve okunabilir hiçbir şey alamadı.

♥ 0

Yapay zekâ tarafından English dilinden çevrildi ·

Teşekkürler Laura, korktuğum şey tam olarak buydu. SIM800 cihazları teoride uzaktan güncellenebilecek bir yazılımda çalışıyor, ancak üretici 2024’ten beri e-postalara yanıt vermiyor.

♥ 0
15 yazı görüntüleniyor – 46 ile 60 arası (toplam 68)