ciaran55
@ciaranwalsh55 · Haziran 2025 tarihinde katıldı
Smart-city engineer · energy
- Konular
- 9
- Yanıtlar
- 68
- Puan
- 0
Oluşturulan forum yanıtları
Yapay zekâ tarafından English dilinden çevrildi ·
Sokak aydınlatma kontrolcüleri için ihtiyacımız olan şey Class C idi. Son uplink’ten sonra downlink hâlâ ne kadar süre boyunca hemen gönderilebiliyor?
Class C is what we needed for the street light controllers. How long after the last uplink does a downlink still go out straight away?
Yapay zekâ tarafından English dilinden çevrildi ·
Bir belediye için bu tür işleri yapıyorum, o yüzden birkaç noktayı paylaşayım.Hermetry City’nin ne ekleyeceğine dair bir doküman sayfası bulamadım, bu yüzden bilemiyorum. Anlattığın her şey standart cihazlar, profiller, alarmlar ve bir gösterge paneliyle çalışır.Güç: Yol aydınlatma lambalarının direğin üstünde zaten gücü var. Birçok direkte fotosel soketi bulunur ve bu soketler için yapılmış sensör düğümleri gücünü bu soketten alır. Bu, lamba durumu ve direğe monte edilen her şey için yeterli. Çöp kutuları ve saksılar: günde birkaç kez okuma yapan pil beslemeli sensörler.Radyo: Çöp kutuları ve saksılar için LoRaWAN uygundur. Ağ sunucusu gateway’inizin frekans planını kullanır; bu yüzden ABD’de 915 MHz gateway alın ve sensörleri aynı planda seçin, bkz. Bölgeler ve frekans planları. Otelin Wi-Fi’sinin ulaştığı yerlerde Wi-Fi sensörleri de uygun. Pil ile çalışan Wi-Fi sensörleri uyanmalı, HTTPS ile veri göndermeli ve uyku moduna geçmeli; bunun için Recent message online kuralını içeren bir profil verin.Ardından her profilde battery üzerine bir eşik kuralı ve Device offline kuralı ekleyin; böylece misafir çöp kutusuyla ilgili şikayet etmeden önce ölü bir sensörden haberiniz olur.
Do this kind of work for a council, so a few things.
Whatever Hermetry City adds, I found no doc page for it, so I can’t tell you. Everything you described works with ordinary devices, profiles, alarms and a dashboard.
Power: the path lights already have power at the top of the post. Lots of posts have a photocell socket, and sensor nodes made for those sockets take their power from it. That covers light status and anything mounted on the post. Bins and planters: battery sensors, reading a few times a day.
Radio: LoRaWAN suits bins and planters. The network server uses your gateway’s frequency plan, so in the US get a 915 MHz gateway and sensors on the same plan, see Regions and frequency plans. Where the hotel’s Wi-Fi reaches, Wi-Fi sensors are fine too. Battery Wi-Fi sensors should wake, send over HTTPS and sleep, give them a profile with the Recent message online rule.
Then a threshold rule on battery and a Device offline rule on each profile, so you hear about a dead sensor before a guest complains about the bin.
Yapay zekâ tarafından English dilinden çevrildi ·
Sorun buydu. Hepsi bölgenin altına, bir seviye fazla yukarı yerleştirilmişti. Onları taşıyınca işaretçiler yeşile döndü.
That was it. They were all placed under the region, one level too high. Moved them and the markers went green.
Yapay zekâ tarafından English dilinden çevrildi ·
Sites panosundaki her site Unknown durumunda ve gri işaretçilerle görünüyor. Cihazlar çevrimiçi ve veri gönderiyor, cihaz listesinde görebiliyorum.
Every site on my Sites board is Unknown with grey markers. The devices are online and sending, I can see them on the device list.
Yapay zekâ tarafından English dilinden çevrildi ·
Çevrimdışı bir cihaza gönderilen komutlar yalnızca kalıcı olarak gönderilirse beklemeye alınır ve bu da en fazla 7 gün sonra vazgeçilmesine neden olur. Öznitelikler durumdur, komutlar ise eylemlerdir. Ben öznitelikleri tercih ederim.
Commands to an offline unit only wait if you send them persistent, and that gives up after 7 days at most. Attributes are state, commands are actions. I’d go attributes.
Yapay zekâ tarafından English dilinden çevrildi ·
Toplam değer gönderilmesi konusunda +1. Saatlik tüketime ihtiyacın olursa, geçmiş API’si ve grafikler bunu sayaç değerinden hesaplayabilir.
+1 on sending a total. If you ever need consumption per hour, the history API and charts can work it out from the counter.
Yapay zekâ tarafından English dilinden çevrildi ·
PuTTY yerine picocom’u denediniz mi? PuTTY’nin seri bağlantıda her zaman tuhaf davrandığını düşünmüşümdür.
Try picocom instead of PuTTY? I always found PuTTY weird on serial.
Yapay zekâ tarafından English dilinden çevrildi ·
Ağ ekranımız için ilk etkinleştirdiğim şey sakin bir görünümdü. Nöbetteki operatörler eski genel görünümün bir Noel ağacına benzediğini söyledi.
Calm look was the first thing I switched on for our network screen. The duty operators said the old overview looked like a Christmas tree.
Yapay zekâ tarafından English dilinden çevrildi ·
Bu durumu açıklıyor. obs_cond’u bir hafta boyunca çizdim: tam da uzun, düz seviyeli dönemlerde keskin biçimde yükseliyor. k’ye q_in’in 1e-6 katı kadar bir süreç gürültüsü verdim ve log(k)’ye geçtim. Artık k yavaşça kayıyor ve yalnızca pompa çevrimleri sırasında hareket ediyor; q_in, yağış ölçerle karşılaştırıldığında makul görünüyor. Brian’a teşekkürler, bir dürtme için Rahul’a da teşekkürler.
That explains it. Plotted obs_cond over a week: it shoots up exactly in the long flat-level periods. Gave k a process noise 1e-6 of q_in’s and switched to log(k). k now creeps slowly and only moves during pump cycles, q_in looks plausible against the rain gauge. Thanks Brian, and Rahul for the nudge.
Yapay zekâ tarafından English dilinden çevrildi ·
Haklı sorular, ben de başladığımda bu konuda kafam karışmıştı.Giriş, açıkken bilerek birkaç mA çeker. Yalnızca çok yüksek empedansla “gerilim ölçen” bir giriş, motor kablosunun yanındaki uzun bir kabloda indüklenen 15 V’u görür ve bunu AÇIK sanardı. 3 mA’e ihtiyaç duyarak, zayıf bir indüklenmiş gerilim girişi tutamaz. IEC 61131-2’deki tip 1/3 sınıfları tam olarak bunu tanımlar: AÇIK ve KAPALI için gerilim ve akım aralıkları.Bu durum 2 telli sensörler için de önemlidir. 2 telli bir yakınlık sensörü kapalıyken bile az miktarda akım sızdırır. Bu sızıntı, girişin KAPALI olarak kabul ettiği değerin üzerindeyse giriş hiç kapanmaz. Tip 3 girişler bu sızıntıya tolerans gösterecek şekilde tasarlanmıştır, tip 1 girişler ise göstermeyebilir.Kablolamanız: “sinking” (akım alan) giriş, akımın girişe akıp 0 V’a çıktığı anlamına gelir; bu nedenle girişe +24 V kaynağı sağlayan bir cihaza ihtiyaç duyar. Bu, bir PNP sensör ya da +24 V ile giriş arasındaki kuru kontaktır. NPN sensör girişi 0 V’a çeker, dolayısıyla sinking girişte hiçbir işe yaramaz. Seçenekler: yakınlık sensörlerinin PNP versiyonlarını satın almak (en kolayı) ya da bir ara röle kullanmak.Kapı kontağı ve şamandıralı şalter kuru kontaktır: bunları +24 V’tan girişe bağlayın. Bir reed kontağından geçen 3 mA sorun değildir.Hermetry tarafında, grafiğe dökülüp alarm kurulabilmesi için durumları 0/1 sayıları olarak gönderin.
Fair questions, they confused me as well when I started.
The input deliberately draws a few mA when it’s on. An input that only “measured voltage” with a very high impedance would see 15 V picked up on a long cable next to a motor lead and call it ON. By needing 3 mA, a weak induced voltage can’t hold it up. That’s what the type 1/3 classes in IEC 61131-2 define: voltage and current ranges for ON and OFF.
It also matters for 2-wire sensors. A 2-wire prox still leaks a little current when it’s off. If that leakage is above what the input accepts as OFF, the input never turns off. Type 3 inputs are designed to tolerate that leakage, type 1 inputs may not be.
Your wiring: “sinking” input means current flows into the input and out to 0 V, so it needs a device that sources +24 V into it. That’s a PNP sensor or a dry contact between +24 V and the input. An NPN sensor pulls the input towards 0 V, so on a sinking input it does nothing. Options: buy PNP versions of the prox sensors (easiest), or use an interposing relay.
The door contact and float switch are dry contacts: wire them from +24 V to the input. 3 mA through a reed contact is fine.
On the Hermetry side send the states as 0/1 numbers so they can be charted and alarmed on.
Yapay zekâ tarafından English dilinden çevrildi ·
setup() fonksiyonunuza bakın: node2 hiçbir zaman ön ve son iletim callback’lerini almıyor. Bu yüzden node2 gönderim yaptığında MAX485’i iletim moduna kimse almıyor, istek Arduino’dan çıkmıyor ve sayaç 2 yanıt vermiyor. Hata kodu 0xE2 bundan kaynaklanıyor.
node2.begin(2, Serial1);
node2.preTransmission(preTx);
node2.postTransmission(postTx);
Her okumadan önce tek bir nesneyle node.begin(2, Serial1) çağırmak da işe yarar, callback’ler ayarlı kalır. Yine de iki nesne tutmanızı öneririm, daha okunaklı olur.
Ayrıca iki okuma arasına 20 ila 50 ms gibi kısa bir bekleme ekleyin. Bazı sayaçlar yanıt verdikten sonra veri yolunun tekrar sessizleşmesi için kısa bir süreye ihtiyaç duyar.
Hermetry’ye veri gönderirken Mega (ya da yanındaki ESP) gateway ise, iki sayacı tek bir mesajda iki alt öğe olarak gönderin:
v1/gw/telemetry
{"Meter 1": {"values": {"kw": 3.41, "kwh": 1203.4}},
"Meter 2": {"values": {"kw": 0.87, "kwh": 455.1}}}
Look at your setup(): node2 never gets the pre/post transmission callbacks. So when node2 sends, nobody switches the MAX485 into transmit, the request never leaves the Arduino, and meter 2 never answers. Hence 0xE2.
node2.begin(2, Serial1);
node2.preTransmission(preTx);
node2.postTransmission(postTx);
Calling node.begin(2, Serial1) before each read with one object works too, the callbacks stay set. I’d still keep two objects, it reads better.
Also add a short pause between the two reads, 20 to 50 ms. Some meters need a moment after answering before the bus is quiet again.
When you send to Hermetry, if the Mega (or the ESP next to it) is the gateway, put both meters in one message as two children:
v1/gw/telemetry
{"Meter 1": {"values": {"kw": 3.41, "kwh": 1203.4}},
"Meter 2": {"values": {"kw": 0.87, "kwh": 455.1}}}
Yapay zekâ tarafından English dilinden çevrildi ·
Sorun buymuş. ESP’de 470 µF kapasitörlü AP2112 modülü var; pazartesiden beri yeniden başlatma yok ve Log sekmesinde keepalive_timeouts kayıtları kalmadı. Bölücü zaten bendeydi. Merak edip eski 3.3 V hattını osiloskopla ölçtüm: her bağlantıda 2.6 V’a düşüyordu.
That was it. AP2112 module with 470 µF on the ESP, no reboots since Monday, and the keepalive_timeouts are gone from the Log tab. I had the divider already. Scoped the old 3.3 V rail out of curiosity: it dipped to 2.6 V on every connect.
Yapay zekâ tarafından English dilinden çevrildi ·
Uygun. Aynı parça, aynı paket. TI’nin adlandırmasında parça numarasından sonraki harfler paket kodudur; sondaki R yalnızca ambalaj şeklidir. DW geniş gövdeli SOIC-16’dır (7,5 mm gövde), D ise dar SOIC’tir (bu parçada 8 pinli olanı). Sondaki R bant ve makara anlamına gelir, genellikle 2000 adet; R yoksa tüp demektir. Veri sayfasının en sonundaki sipariş edilebilir parçalar tablosuna (“Package option addendum”) bakarsanız, her iki satır da aynı paketi ve pin sayısını gösterir; yalnızca “Package qty” farklıdır.TI parçalarında sıcaklık sınıfı, bu harflerde değil, parça numarasının gövdesinde ya da otomotiv için Q1 son ekinde yer alır.Yine de D sürümüne geçmeyin. Geniş gövde izolasyon bariyeri boyunca sürünme mesafesi için vardır; dar 8 pinli olanın izolasyon değeri daha düşüktür ve zaten farklı bir pin düzeni vardır. Kutuyu açmışken A/B üzerindeki TVS diyotlarını kontrol edin; alıcı-verici bozulduysa onlar da muhtemelen darbe almıştır.
Fit it. Same part, same package. In TI’s naming the letters after the part number are the package code, and the final R is only the packing. DW is the wide-body SOIC-16 (7.5 mm body), D is the narrow SOIC (on this part the 8-pin one). The trailing R means tape and reel, usually 2000 pieces, no R means tube. If you look at the orderable parts table at the very end of the datasheet (“Package option addendum”), both rows show the same package and pin count, only “Package qty” differs.
Temperature grade on TI parts is in the part number body or a Q1 suffix for automotive, not those letters.
Don’t swap to the D version though. The wide body is there for creepage across the isolation barrier, the narrow 8-pin one has a lower isolation rating and a different pinout anyway. Check the TVS diodes on A/B while you have it open, if the transceiver died they probably took a hit too.
Yapay zekâ tarafından English dilinden çevrildi ·
Kabaca, evet Aisha, Kevin’in sorunu da buradan kaynaklanıyor.LoRa bir chirp gönderir; 125 kHz kanalı boyunca süpüren bir ton. Bir sembol tek bir chirp’tür; süpürmenin neresinde başladığı veriyi kodlar. Yayılma faktörü, bir sembolün kaç bit taşıdığını belirtir: SF7 7 bit taşır ve süpürme başına 2^7 = 128 chip (adım) içerir, SF12 ise 12 bit ve 4096 chip taşır. Her adımda iletim süresi kabaca iki katına çıkar ve alıcı zayıf sinyali gürültüden ayıklamak için daha fazla zamana sahip olur, böylece menzil artar.LoRaWAN’da bunlar veri hızlarıdır. EU868’de DR5 SF7, DR0 ise SF12’dir. Uzak cihazlar DR0 ile DR2 arasını kullanmalıdır ve bu hızlarda gönderebileceğiniz en fazla uygulama yükü 51 bayttır. DR3 115, DR4 ve DR5 ise 222 bayta izin verir. 58 baytlık çerçeveniz yavaş hızlarda fiziksel olarak gönderilemez; bu nedenle izleyici SF10 veya daha düşük bir değere düştüğü anda yığın reddeder ya da çerçeve kaybolur ve hiçbir şey frames günlüğüne ulaşmaz. 11 baytlık sensörünüz DR0’a sığar.İki çözüm var. Yükü 51 baytın altına indirin: enlem/boylamı float veya metin yerine ölçeklenmiş int32 olarak, pili tek bayt olarak gönderin. İzleyiciler için cihaz profilinde ADR’yi kapatın; ağ sunucusu son 20 uplink’e göre ayar yapar ve hareket eden bir cihaz bundan daha hızlı değişir. Bunun yerine veri hızını mesafeye göre firmware içinde ayarlayın. Tablo: Regions and frequency plans.
Roughly, yes Aisha, and that’s where Kevin’s problem comes from.
LoRa sends a chirp, a tone that sweeps across the 125 kHz channel. A symbol is one chirp; where in the sweep it starts encodes the data. The spreading factor says how many bits one symbol carries: SF7 carries 7 bits and has 2^7 = 128 chips (steps) per sweep, SF12 carries 12 bits with 4096 chips. Each step up roughly doubles the time on air, and the receiver gets more time to pull a weak signal out of the noise, so range goes up.
In LoRaWAN those are data rates. EU868: DR5 is SF7, DR0 is SF12. Far devices need DR0 to DR2, and at those rates the most application payload you can send is 51 bytes. DR3 allows 115, DR4 and DR5 222. Your 58-byte frame physically can’t go out at the slow rates, so as soon as the tracker drops to SF10 or below, the stack refuses or the frame is lost, and nothing reaches the frames log. Your 11-byte sensor fits at DR0.
Two fixes. Pack the payload under 51 bytes: lat/lng as scaled int32 instead of floats or text, battery as one byte. And for trackers, turn ADR off on their profile, the network server adjusts on the last 20 uplinks and a moving device changes faster than that; set the data rate in firmware by distance instead. Table on Regions and frequency plans.
Yapay zekâ tarafından English dilinden çevrildi ·
Ayarlama yaparken salınım genliğini okuyabilmeniz için açıklamadaki Values (min/max) seçeneğini de etkinleştirin.
And turn on Values in the legend (min/max) so you can read the swing amplitude off it while you tune.

