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 – 16 ile 30 arası (toplam 68)

Operator had a fixed-IP APN option, we got a /28. Allowed networks set on the cabinet profile. Tested with a dev board on my home broadband using a real cabinet token: CONNACK 5, and the Log tab shows the refusal reason. Tokens and PSK are in NVS now, flash encryption is next after I brick a spare or two learning it. Missing board’s token revoked.

♥ 0

Don’t push the .bin over MQTT. Hermetry’s OTA tells the device where to download the image over HTTPS and the device does the rest. I did 140 street-cabinet controllers this way last year. The parts:

Hermetry side (an Admin, and an Owner once for the key):

  1. Profile of the room sensors, Firmware tab: turn on “Allow firmware updates for this profile”. Leave unsigned images off.
  2. Firmware > Signing keys: the Owner adds your Ed25519 public key. You sign each .bin on your laptop and upload the .sig with it. Hermetry never holds the private key.
  3. Upload firmware: Name must equal what the board reports as its firmware title, e.g. room-sensor, Version e.g. 2.1.0.
  4. Assign it, first to One device (the one in your office), later to the whole profile.

Device side, once by ladder, after that never again. The board gets these shared attributes on v1/attributes/set:

{"fw_title":"room-sensor","fw_version":"2.1.0","fw_size":1183744,
 "fw_checksum":"9c1e...","fw_checksum_algorithm":"SHA256",
 "fw_url":"https://...","fw_sig":"..."}

Your code then: report fw_state DOWNLOADING with fw_progress, download fw_url with HTTPClient into the OTA partition using Update.h, check SHA-256 and the signature, report VERIFIED, then UPDATING, reboot. After the reboot publish current_fw_title and current_fw_version. Hermetry only marks it Updated when that new version shows up. If anything fails, report FAILED with fw_error and stay on the old image.

Gotchas: fw_url is valid 15 minutes, so if a download stalls, ask for fw_url again on v1/attributes/req/1 and resume with an HTTP Range request. And firmware is never offered over plain MQTT, so the boards need to be on TLS.

Full page: Firmware updates (OTA)

Kabul edilen çözüm♥ 2

Blocks on rows 1 and 3 with contrast fine means the display powered up but never got initialised, so it’s sitting in its one-line power-on mode. Almost always the I2C address. Backpacks with a PCF8574A chip are at 0x3F, not 0x27, and from the outside they look identical. Run a scanner:

#include <Wire.h>
void setup() {
  Serial.begin(115200);
  Wire.begin(21, 22);
  for (uint8_t a = 1; a < 127; a++) {
    Wire.beginTransmission(a);
    if (Wire.endTransmission() == 0) Serial.printf("found 0x%02Xn", a);
  }
}
void loop() {}

Second thing for an ESP32: the backpack on 5V has its pull-ups to 5V, so SDA/SCL idle at 5V into a 3.3V chip. It usually works and it’s not great. Either power the backpack from 3.3V (some LCDs go faint at 3.3V) or remove the backpack’s pull-up resistors and add 4.7k to 3.3V, or put a small level shifter in between. For something on a cleanroom wall for years I’d do the level shifter.

Kabul edilen çözüm♥ 4

Yapay zekâ tarafından English dilinden çevrildi ·

Çözüldü, teşekkürler Eric. Echo aboneliğini kaldırdım, artık kabin tamponlanmış okumayı silmeden önce PUBACK bekliyor. Ekran her 5 dakikada bir GET yapıyor. İlk çağrı reddedildi ve biraz paniğe kapıldım; meğer anahtarı test organizasyonunda kendi oturumumla oluşturmuşum, bu yüzden yoldaki tenant id anahtarla eşleşmiyormuş. Doğru organizasyonda yeni bir anahtar oluşturdum ve hemen çalıştı.

♥ 0

Yapay zekâ tarafından English dilinden çevrildi ·

Aynı yöntem su sayaçlarında da işe yarıyor. Ay ortasında bir sayaç değiştirildiğinde ve yenisi 0’dan başladığında increase bizi kurtardı.

♥ 0

Tyler has part of it. Each receiver input also has its own resistance to that side’s GND2 (the input impedance, around 96k for a 1/8 unit load device, more or less), and the bias network ties A and B toward one side’s isolated supply and ground. Each isolated side is floating, so it settles wherever those resistances and the leakage across the isolation barrier put it. The two GND2s drift toward each other through the bus wires themselves. On a 2 m bench with nothing injecting current, that’s close enough, so it works.

Over 300 m between buildings you get induced common-mode voltages and lightning transients. With nothing defining the common mode, one side can sit far outside the receiver’s range and the link gets flaky, or the isolation barrier takes surges it doesn’t need to.

Standard practice: run a third conductor as a signal reference, connect it to GND2 at each node through about 100 ohm to limit current if the grounds disagree, and earth the cable shield at one end only. Michael, that’s why you were taught three wires, it’s the right habit. Keep the bias on one end and termination at both ends as you have it.

Kabul edilen çözüm♥ 8

Yapay zekâ tarafından English dilinden çevrildi ·

Ha, dünya ne kadar küçük, benzer bir kasaba için sokak aydınlatması yaptım, City üzerinde. Park yeri işini yapıp yapmadığını bilmiyorum, ayrıca bunun için bir doküman sayfası da bulamadım.

♥ 0

Yapay zekâ tarafından English dilinden çevrildi ·

Eski termostatı paralel olarak yaklaşık 12 °C’ye ayarlı tutun; böylece internet veya kartınız devre dışı kalsa bile bina donmaz.

♥ 2

Yapay zekâ tarafından English dilinden çevrildi ·

Sorun tam olarak bu. Zero’da pin 1, SD kart ucunda ama iç sırada. Kullandığın pin, o köşedeki dış sıradaki pin, pin 2 ve bu 5V. Oradan saymaya devam et: dış sıradaki pin 6 GND, pin 7 ise iç sırada. Kırmızı kablon pin 2’ye bağlıysa ve geri kalanı kartı ters çevirerek eğitimdeki gibi bağladıysan, DHT22’nin bacaklarından birinde 5V veya GND yanlış yerde olmuş olabilir; bu yüzden ısındı.Bir dahaki sefere emin olmanın yolları: pin 1’in lehim pedi karedir, diğerlerinin hepsi yuvarlaktır. Ayrıca Pi’nin kendisinde:

$ pinout          # gpiozero ile gelir, kartının ASCII haritasını yazdırır
   3V3  (1) (2)  5V
 GPIO2  (3) (4)  5V
 GPIO3  (5) (6)  GND
 GPIO4  (7) (8)  GPIO14

Yani: VCC pin 1’e (3V3), DATA pin 7’ye (kodda GPIO4), GND pin 6’ya. DHT22 için 5V değil 3V3 kullan, böylece veri hattı Pi’nin kaldırabileceği bir seviyede kalır.Sensörün sağ kalıp kalmadığına gelince: DHT22’ler sandığından daha dayanıklıdır. Kabloları yeniden bağla, soğumasını bekle, tekrar dene. Doğru bağlantıyla hâlâ ‘bulunamadı’ diyorsa, bozulmuştur; zaten ucuzdur.

Kabul edilen çözüm♥ 5
15 yazı görüntüleniyor – 16 ile 30 arası (toplam 68)