davidp11
@david-patel · Mart 2025 tarihinde katıldı
Facility manager · hospitality · new to IoT
- Konular
- 8
- Yanıtlar
- 62
- Puan
- 0
Oluşturulan forum yanıtları
OK so batteries. Does Hermetry City handle that or do I need something else?
Does cable length really matter at only 9600 baud?
How do the night staff work, one person on a fixed station or walking around? That changes what kind of alert makes sense.
Yapay zekâ tarafından English dilinden çevrildi ·
9. bit tam olarak ne için kullanılıyor? Ben yalnızca 8N1 gördüm.
What’s the 9th bit for exactly? I’ve only ever seen 8N1.
Yapay zekâ tarafından English dilinden çevrildi ·
ISP IPv6’yı açtıktan sonra şubelerimizden birinde tam olarak bunu yaşadık. Pi bir IPv6 adresi alıyor, önce onu deniyor, rota bozuk olduğu için IPv4’e geçmeden önce zaman aşımını bekliyor. Curl testiniz bunu gösteriyor.IPv6’yı her şey için kapatmak istemedim, bu yüzden Pi’ye IPv4’ü tercih etmesini söyledim. /etc/gai.conf dosyasındaki şu satırın yorumunu kaldırın:
precedence ::ffff:0:0/96 100
Yeni işlemler için yeniden başlatmaya gerek yok, sadece betiğinizi yeniden çalıştırın. Yalnızca betik için istiyorsanız, requests’i içe aktarmadan önce Python’da zorlayabilirsiniz:
import socket
import urllib3.util.connection as conn
conn.allowed_gai_family = lambda: socket.AF_INET
Owen’ın fikri de ileride iyi bir fikir olmaya devam ediyor. Çalınan bir anahtarın başka yerlerde işe yaramaması için otelin genel IPv4 adresini anahtarın IP izin listesine ekleyin.
Had exactly this at one of our properties after the ISP turned IPv6 on. The Pi gets an IPv6 address, tries it first, the route is broken and it waits for the timeout before falling back to IPv4. Your curl test shows that.
I didn’t want to switch IPv6 off for everything, so I told the Pi to prefer IPv4. Uncomment this line in /etc/gai.conf:
precedence ::ffff:0:0/96 100
No reboot needed for new processes, just restart your script. If you only want it for the script, you can force it in Python before importing requests:
import socket
import urllib3.util.connection as conn
conn.allowed_gai_family = lambda: socket.AF_INET
And Owen’s idea is still a good one for later. Put the hotel’s public IPv4 in the key’s IP allowlist so a stolen key is useless elsewhere.
Is this the same radio as LoRa? I thought the RFM95 was LoRa only.
Yapay zekâ tarafından English dilinden çevrildi ·
Anteni sadece daha yükseğe koyamaz mısın?
Can’t you just put the antenna higher?
Maybe you need pull-up resistors on SDA and SCL? I read I2C needs them.
Will the switch show if someone turned the light on at the wall?
Yapay zekâ tarafından English dilinden çevrildi ·
yani ağ geçidi tek cihaz mı sayılıyor, yoksa 26 mı?
so the gateway counts as one device or 26?
Yapay zekâ tarafından English dilinden çevrildi ·
takip ediyorum, ben de çekmecede duran bir MCP3008’i hiç çalıştıramadım
following, I have an MCP3008 in a drawer I never got working either
Yapay zekâ tarafından English dilinden çevrildi ·
IoT konusunda yeniyim ama otelimizin havuz teknik odasındaki çelik kutuda bir Pi ile tam olarak bu sorunu yaşadık. BT sorumlumuz beni lehimlemekten vazgeçirdi. Kapalı bir çelik kutu Faraday kafesine yakındır, bu yüzden içindeki yerleşik çip anten her zaman zorlanır ve Pi 3 harici anten için tasarlanmamıştır.Bunun yerine yaptığımız şey, yaklaşık 20 dolara mal oldu:
- RP-SMA konnektörlü bir USB Wi-Fi adaptörü.
- Kutudaki bir kablo rakorundan geçen kısa bir RP-SMA uzatma kablosu, anten dışarıda üstte monte edildi.
- Yerleşik Wi-Fi kapatıldı, böylece dongle tek wlan0 oldu. config.txt dosyasına
dtoverlay=disable-wifiekleyip yeniden başlattık. Ardından Wi-Fi ayarlarınızı normalde olduğu gibi dongle üzerine yazın.
Sinyal gücümüz yaklaşık -84 dBm’den -58 dBm’ye yükseldi.Hermetry tarafında da çevrimdışı alarmını uzattım. Dokümanlar, kısa süre düşebilen cihazlar için normal yeniden bağlanmadan daha uzun bir Open süresi öneriyor; biz 600 s kullanıyoruz, böylece 30 saniyelik bir Wi-Fi kesintisi artık kimseyi uyandırmıyor. Betiğimizde keepalive 60 s.
I’m new to IoT but we had exactly this with a Pi in a steel box in our hotel’s pool plant room. Our IT guy talked me out of soldering. A closed steel box is close to a Faraday cage, so the onboard chip antenna inside it will always struggle, and the Pi 3 is not designed for an external one.
What we did instead, cost about 20 dollars:
- A USB Wi-Fi adapter with an RP-SMA connector.
- A short RP-SMA extension cable through a cable gland in the box, antenna mounted outside on top.
- Onboard Wi-Fi switched off so the dongle is the only wlan0. Add
dtoverlay=disable-wifito config.txt and reboot. Then put your Wi-Fi settings on the dongle as usual.
Our signal went from about -84 to -58 dBm.
On the Hermetry side I also lengthened the offline alarm. The docs suggest an Open after time longer than a normal reconnect for devices that can drop briefly, we use 600 s, so a 30 second Wi-Fi dip no longer wakes anyone. Keepalive is 60 s in our script.
Yapay zekâ tarafından English dilinden çevrildi ·
Evet, laptop bağlantısını paylaşıyor (NAT) ve açık kalması gerekiyor. Bu yüzden adaptörü tercih ettim.
Yep, laptop shares its connection (NAT) and has to stay on. That’s why I went with the adapter.
Probably the least qualified person in this thread, but our electrician sorted almost the same thing in our boiler room, and Emily’s point is why yours sits at 9 V. Your 10k pull-up and 10k pulldown make the gate about 12 V, minus the threshold gives the source a bit under 10 V. The MOSFET is half on, so it gets warm.
His fix was to throw the MOSFET out. A PLC input like that only draws a few milliamps (ours was about 5 mA at 24 V, the manual says), and a PC817 transistor can switch that by itself:
Pi side: GPIO17 -- 330R -- PC817 anode (pin 1), cathode (pin 2) -- Pi GND
24 V side: +24 V -- PC817 collector (pin 4)
PC817 emitter (pin 3) -- PLC input I0.5
PLC input common -- 0 V
Opto on, the input sees close to 24 V. Opto off, nothing. Isolation stays. If you want something with a DIN rail clip and a label on it, a ready-made 24 V opto or relay module does the same.
On the Hermetry side he set the hold command as High impact so whoever sends it has to confirm. A board control won’t send a high-impact command though, so it goes from the device’s Commands tab. For a hold request that stops a line, we found that was fine.
Yapay zekâ tarafından English dilinden çevrildi ·
Ben bir tesis yönetimi çalışanıyım, elektrik mühendisi değilim, ama geçen yıl bir lobi ekranı için tam olarak bu fikri denedim ve bir öğleden sonramı bunun üzerinde harcadım. Pi, HEC’i desteklemiyor. HDMI’da bu 14 ve 19 numaralı pinler, Pi’nin bunların arkasında bir Ethernet PHY’si yok, dolayısıyla yazılımda açılacak bir şey yok. Hiçbir overlay bunu düzeltemez.Sonunda yaptığım ve sizin de sırasıyla deneyebileceğiniz yöntemler:
- Zero’nun USB portuna (PWR portuna değil) bağlanan bir micro-USB’den Ethernet adaptörü. ASIX AX88772 tabanlı olanlar kutudan çıktığı gibi çalışıyor, eth0 kendiliğinden beliriyor. Benimki yaklaşık on dolardı.
- USB gadget modu: Zero, USB kablosu üzerinden bir laptop’a ağ kartıymış gibi davranıyor. config.txt dosyasına
dtoverlay=dwc2ekleyin ve cmdline.txt dosyasında rootwait’ten sonramodules-load=dwc2,g_etherekleyin. Ardından laptopun bağlantısını paylaşması gerekiyor. - Wi-Fi bir gün izin verilirse Zero 2 W ile değiştirin.
eth0 çalıştıktan sonra MQTT tarafı diğer Pi’lerle aynıdır: cihaz token’ı ile 8883 üzerinden TLS.
I’m a facilities guy, not an EE, but I chased this exact idea for a lobby display last year and burned an afternoon on it. The Pi doesn’t implement HEC. On HDMI that’s pins 14 and 19, and the Pi has no Ethernet PHY behind them, so there’s nothing to switch on in software. No overlay will fix it.
What I ended up with, and what I’d try in your order:
- A micro-USB to Ethernet adapter on the Zero’s USB port (not the PWR one). ASIX AX88772 based ones work out of the box, eth0 just appears. Mine was about ten dollars.
- USB gadget mode: the Zero pretends to be a network card to a laptop over the USB cable. Add
dtoverlay=dwc2to config.txt andmodules-load=dwc2,g_etherafter rootwait in cmdline.txt. Then the laptop has to share its connection. - Swap for a Zero 2 W if Wi-Fi ever becomes allowed.
Once eth0 is up the MQTT side is the same as any other Pi, TLS on 8883 with the device token.

