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 ·
Android özellikle 204 yanıtını kontrol eder; başka bir yanıt alırsa oturum açma istemini göstermelidir. DNS kısmı olmadan sunucunuza muhtemelen hiç istek gelmiyor.
Android specifically checks for a 204 answer, if it gets anything else it should show the sign-in prompt. Your server probably isn’t being asked at all without the DNS bit.
Yapay zekâ tarafından English dilinden çevrildi ·
Derlemede UART günlük kaydı hâlâ açık mı? nRF52 üzerinde bu, yüksek frekanslı saatin çalışmaya devam etmesine neden oluyor.
Is UART logging still on in the build? On the nRF52 that keeps the high-frequency clock running.
Yapay zekâ tarafından English dilinden çevrildi ·
Saha dolabındaki sayaçlarımızın çoğu yalnızca darbe çıkışı veriyor ve bunlar düzgün raporluyor; sadece bu darbeleri sayacak bir şeye ihtiyaç var.
Plenty of our street cabinet meters only give pulses and they report fine, something just has to count them.
Yapay zekâ tarafından English dilinden çevrildi ·
jessicathompson37 proses tarafında haklı, çek valfleri tutun. Geçen yıl bir müşteri için bir kompresör odası çizdim.Palet: Compressor, Compressed-air receiver ve Compressed-air dryer, çekirdek setinde değil, Process kütüphanesindedir; bunlardan yalnızca bazılarını görüyorsanız kuruluşunuzun hangi kütüphaneleri satın aldığını kontrol edin. Check valve çekirdek setinde, Water network ailesi altındadır; paletde “check valve” diye arayın.Animasyon: Bir bağlantının kendine ait bir değeri yoktur. “From” sembolünü takip eder, dolayısıyla bir boru, başındaki sembol çalıştığında akışı gösterir. Kompresör 2’den gelen boru akmaya devam ediyorsa, muhtemelen receiver’dan kompresöre doğru çizilmiştir ya da iki boru da aynı çalışan sembolden başlıyordur. Boruları akış yönünde çizin:
Compressor 1 -> Check valve 1 -> Receiver -> Dryer -> header
Compressor 2 -> Check valve 2 ----^
ve her kompresörün Running değerini, kendi Views üzerindeki kendi running değerine bağlayın. Yönün görünmesi için borularda Flow arrow seçeneğini işaretleyin. Hatta yerleştirilen bir çek valf, ona ilk dokunan bağlantının ortamını alır. Pipes, cables and connections
jessicathompson37 is right on the process side, keep the check valves. I drew a compressor room for a client last year.
Palette: Compressor, Compressed-air receiver and Compressed-air dryer are in the Process library, not the core set, so if you only see some of them, check which libraries your organisation bought. Check valve is in the core set under the Water network family; search the palette for “check valve”.
The animation: a connection has no value of its own. It follows its “from” symbol, so a pipe shows flow while the symbol at its start runs. If your pipe from compressor 2 keeps flowing, it was probably drawn from the receiver towards the compressor, or both pipes start at the same running symbol. Draw them in the flow direction:
Compressor 1 -> Check valve 1 -> Receiver -> Dryer -> header
Compressor 2 -> Check valve 2 ----^
and bind each compressor’s Running to its own running value on its Views. Tick Flow arrow on the pipes so the direction is visible. A check valve placed on the line takes the medium of the first connection that touches it. Pipes, cables and connections
Yapay zekâ tarafından English dilinden çevrildi ·
P82B715 gibi bir bus extender ile I2C uzun mesafelerde çalışabilir, bir keresinde 20 m için kullandık.
I2C with a bus extender like the P82B715 can do long runs, we used it for 20 m once.
Yapay zekâ tarafından English dilinden çevrildi ·
İki farklı soru var.SPI: evet, bit-banging (yazılımla bit bit SPI) sorunsuz çalışır. SX1276’nın minimum bir SPI saat hızı yoktur, mod 0 kullanılır ve PIC’ten birkaç yüz kHz hızda register erişimi yeterlidir. İnsanlar ham LoRa noktadan noktaya bağlantıyı bu şekilde kuruyor.LoRaWAN: PIC16’nın yetersiz kaldığı yer burasıdır. Yığın kriptografi (MIC için AES-CMAC), oturum durumu gerektirir ve her uplink’ten sonra alma pencerelerini zamanında açmak zorundadır. Hermetry’nin varsayılan RX1 gecikmesi 5 s’dir ve pencerenin bu süreden sonra birkaç milisaniye içinde açılması gerekir. Yapılabilir, ancak bu RAM ile olmaz.Kevin’in fikri de bu. Kendi LoRaWAN yığınına sahip bir modül (örneğin STM32WL tabanlı bir modül) UART üzerinden bağlanır. PIC bir kez katılma komutu, ardından her okuma için bir hex veri yükü gönderir; geri kalan işlemleri modül yapar. Her sensör OTAA, Class A, LoRaWAN 1.0.2 ila 1.0.4 ile katılır; bu, Hermetry’nin ağ sunucusunun kullandığı sürümdür ve gateway’inizle aynı frekans planını kullanır. Bir tablo kodlayıcı, baytlarınızı neme ve pil değerine çevirir. Modülü seçmeden önce sürümünün eşleşmesi için LoRaWAN limits sayfasını kontrol edin ve gateway’inizin bandına uygun olanı satın alın.
Two different questions.
SPI: yes, bit-banging is fine. The SX1276 has no minimum SPI clock, mode 0, and register access at a few hundred kHz from a PIC is plenty. People run raw LoRa point to point like that.
LoRaWAN: that’s where a PIC16 runs out. The stack needs crypto (AES-CMAC for the MIC), session state, and it has to open the receive windows on time after each uplink. Hermetry’s default RX1 delay is 5 s, and the window has to open within a few milliseconds of that. Doable, but not on that RAM.
So Kevin’s idea. A module with its own LoRaWAN stack (an STM32WL based one, for example) over UART. The PIC sends a join command once and then a hex payload per reading, the module handles everything else. Each probe joins with OTAA, Class A, LoRaWAN 1.0.2 to 1.0.4, which is what Hermetry’s network server does, on the same frequency plan as your gateway. A table codec turns your bytes into moisture and battery. Check LoRaWAN limits before you pick the module so its version matches, and buy it for your gateway’s band.
Yapay zekâ tarafından English dilinden çevrildi ·
O zaman işi tersine çevirin, böylece hiç kimse Uno’yu çağırmak zorunda kalmasın. Uno sayacını Hermetry’ye gönderir, ERP ise vardiya toplamını Hermetry’den çeker. Ağınıza gelen trafik kapalı kalır.Uno: çalışan toplamı (Uno üzerinde asla sıfırlamayın) her dakika, belirteciyle birlikte cihazın HTTP API’sine gönderin. W5100 TLS desteklemez; bu yüzden ya önüne TLS destekleyen küçük bir kart koyun ya da en basit yol olarak Uno’yu Ethernet’li bir ESP32 ile değiştirip HTTPS üzerinden gönderin. Gövde sadece {"cases_total": 184233} olacak.ERP tarafı: telemetri için Read only ön ayarına sahip bir API anahtarı, ERP sunucusunun adresine izin verilmiş olarak. Saat 06:05, 14:05 ve 22:05’te içe aktarma işi vardiya boyunca artışı ister:
GET /tenant/{tenantId}/api/telemetry/series?kind=iot_device&entityId={line3}
&keys=cases_total&from={shift_start_ms}&to={shift_end_ms}&bucket=1h&agg=increase
8 saatlik değerleri toplayın. increase sayacı doğru işler; cihazın aralarda 10 dakika çevrimdışı kalması sorun değildir, toplam sonradan yakalanır. Panoda aynı anahtarla increase kullanan bir grafik, operasyon ekibine saatlik canlı vaka sayısını verir.Sizin durumunuzda bir flow’dan ERP’ye push yapmaktan kaçınmanızı öneririm: HTTP istek bloğu özel adresleri reddeder, dolayısıyla 10.x adresine zaten ulaşamaz. Çekme (pull) yöntemi BT ekibini memnun eder. Referans: The history API.
Then flip it around so nobody calls the Uno at all. The Uno posts its counter to Hermetry, and the ERP pulls the shift total from Hermetry. Inbound to your network stays closed.
Uno: send the running total (never reset it on the Uno) every minute to the device HTTP API with its token. A W5100 can’t do TLS, so either put a small TLS-capable board in front or, simplest, swap the Uno for an ESP32 with Ethernet and post over HTTPS. The body is just {"cases_total": 184233}.
ERP side: an API key with the Read only preset for telemetry, allowlisted to the ERP server’s address. At 06:05, 14:05 and 22:05 the import job asks for the increase over the shift:
GET /tenant/{tenantId}/api/telemetry/series?kind=iot_device&entityId={line3}
&keys=cases_total&from={shift_start_ms}&to={shift_end_ms}&bucket=1h&agg=increase
Add up the 8 hourly values. increase handles the counter properly and you don’t care if the device was offline for 10 minutes in between, the total catches up. On the board, the same key on a chart with increase gives ops the live cases per hour.
I’d avoid pushing from a flow to the ERP in your case: the HTTP request block refuses private addresses, so it can’t reach 10.x anyway. The pull keeps IT happy. Reference: The history API.
Yapay zekâ tarafından English dilinden çevrildi ·
Test sırasında bile ADC1’e bağlı kalın; Wi-Fi açıkken ADC2’nin 4095 okuduğu sorunla bir saatimi kaybettim.
Stick to ADC1 even for testing, I lost an hour to ADC2 reading 4095 with Wi-Fi on.
Yapay zekâ tarafından English dilinden çevrildi ·
Ayrıca STATE bir reset sinyali değildir. Bluetooth bağlantısı kurulduğunda bir kez yükselir, avrdude başladığında darbe üretmez. Bu tek başına resp=0x00 değerini verir.
And STATE isn’t a reset signal. It goes high once when the Bluetooth link connects, it doesn’t pulse when avrdude starts. That alone gives you resp=0x00.
Yapay zekâ tarafından English dilinden çevrildi ·
En hızlı çözüm: pip install paho-mqtt==1.6.1 komutunu çalıştırıp servisi yeniden başlatın. Ardından uygun zamanda asıl sorunu düzeltin.
Quickest way back: pip install paho-mqtt==1.6.1 and restart the service. Then fix it properly when there’s time.
Yapay zekâ tarafından English dilinden çevrildi ·
Tam olarak buymuş. Her ikisine de &Wire geçirmek sensörleri düzeltti ve 21/22 pinleri dokunulmadan kaldığı için RS-485 tarafı yeniden çalışıyor. Pano akımı ve sıcaklığı artık panelde. INA219 kütüphanesine sahip olan varsa: begin() işaretçiyi alır, ama eski sürümler almıyordu, bu yüzden önce güncelleyin.
That was exactly it. Passing &Wire to both fixed the sensors, and the RS-485 side works again because 21/22 are left alone. Cabinet current and temperature are on the dashboard now. In case someone has the INA219 library I have: its begin() takes the pointer, but older versions did not, so update it first.
Yapay zekâ tarafından English dilinden çevrildi ·
Keisha’nın kısa özeti doğru. Yeni başlayanlara anlattığım ayrıntı şöyle:Çip hızı bant genişliğine eşittir; bu nedenle 125 kHz’de saniyede 125.000 çip elde edersiniz. Bir sembol 2^SF çipten oluşur, dolayısıyla bir sembolün süresi 2^SF / BW’dir: SF7’de yaklaşık 1 ms, SF12’de 33 ms. Her sembol SF bit taşır. 4/5 kodlama oranıyla bit hızı SF × BW / 2^SF × 4/5 olur; bu da SF7’de yaklaşık 5,5 kbit/s, SF12’de 290 bit/s eder. Her SF adımı bit hızını kabaca yarıya indirir ve iletim süresini iki katına çıkarır.EU868’de, gateway’lerinizin bunu kullandığını varsayarsak, DR numaraları yalnızca SF ve bant genişliği çiftlerinin adlarıdır:
DR0 SF12 125k DR3 SF9 125k
DR1 SF11 125k DR4 SF8 125k
DR2 SF10 125k DR5 SF7 125k
DR6 SF7 250k DR7 FSK 50 kbit/s
Dolayısıyla satıcının SF9 dediği, DR3’tür. Bunun için bir şey ayarlamanız gerekmez. ADR (varsayılan olarak açık), her cihazı profilin En Düşük/En Yüksek DR aralığı içinde, varsayılan olarak DR0 ile DR5 arasında, son 20 uplink üzerinden elde edilen en iyi SNR’ye göre hareket ettirir. Gateway’i iyi duyan bir sayaç SF9’dan daha hızlı çalışır, uzaktaki bir sayaç ise daha yavaş kalır. Bir değişiklikten sonra bunu cihazın lora.dr özniteliğinde görebilirsiniz. ADR’yi kapatmanız gereken tek durum, izleyici gibi hareket eden cihazlardır.ADR, veri hızları ve MAC komutları
Keisha’s short version is right. The detail, as I explain it to new starters:
The chip rate equals the bandwidth, so at 125 kHz you get 125,000 chips per second. One symbol is 2^SF chips, so a symbol lasts 2^SF / BW: about 1 ms at SF7 and 33 ms at SF12. Each symbol carries SF bits. With the 4/5 coding rate that gives a bit rate of SF × BW / 2^SF × 4/5, about 5.5 kbit/s at SF7 and 290 bit/s at SF12. Each SF step roughly halves the bit rate and doubles the airtime.
In EU868, assuming that’s what your gateways run, the DR numbers are just names for SF and bandwidth pairs:
DR0 SF12 125k DR3 SF9 125k
DR1 SF11 125k DR4 SF8 125k
DR2 SF10 125k DR5 SF7 125k
DR6 SF7 250k DR7 FSK 50 kbit/s
So the vendor’s SF9 is DR3. You don’t have to set anything for that. ADR (on by default) moves each device within the profile’s Lowest/Highest DR range, DR0 to DR5 by default, based on the best SNR over its last 20 uplinks. A meter that hears the gateway well ends up faster than SF9, a far one stays slower. After a change you can see it in the device’s lora.dr attribute. The one case where you’d turn ADR off is anything that moves, like a tracker.
Yapay zekâ tarafından English dilinden çevrildi ·
Çelik bir römorkun içinde yaw (sapma) değerine güvenmeyin. Manyetometre çelik tarafından çekilip saptırılıyor, biz 40° hata gördük. “Devrilme” için zaten ihtiyacınız olan şey roll ve pitch.
Don’t count on yaw inside a steel trailer. The magnetometer gets pulled around by the steel, we saw 40° errors. Roll and pitch are what you need for “tipped over” anyway.
Yapay zekâ tarafından English dilinden çevrildi ·
Döngü beslemeli bir ayırıcı kullandık; bütçe 4 V boşlukla çıktı. Node ikinci çıkışı okuyor, Scale bloğu level_pct değerini üretiyor ve ham mA anahtarını 3.8 altında bir alarmla tuttum. Node’un gücünü test için kestiğimizde PLC okuması değişmedi.
Went with a loop-powered splitter, the budget worked out with 4 V to spare. The node reads the second output, Scale block gives level_pct, and I kept the raw mA key with an alarm below 3.8. The PLC reading didn’t move when we cut the node’s power to test.
Yapay zekâ tarafından English dilinden çevrildi ·
@Kevin H. aptal değil, ama o PLC’de iletişim lisansı yok ve satıcı bu büyüklükteki bir saha için lisans satmayacak. @aisha.maker burada bekleyen bir toprak döngüsü (ground loop) var, ESP farklı bir besleme kaynağından besleniyor.
@Kevin H. not dumb, but no comms licence on that PLC and the vendor won’t sell one for a site this size. @aisha.maker that’s a ground loop waiting to happen here, the ESP is powered from a different supply.

