aisha.maker
@aisha_r58 · Membre depuis octobre 2025
Maker · home automation · Brisbane
- Sujets
- 7
- Réponses
- 40
- Points
- 0
Toutes mes réponses sur les forums
hciuart failing on a Pi 3 that also does Modbus on the serial header: I’d bet whoever set up the Modbus put dtoverlay=pi3-disable-bt in /boot/config.txt to get the good UART on GPIO14/15. That overlay switches the BT chip off completely, so hciuart has nothing to talk to.
You can have both. On Stretch use the other overlay, which gives BT the mini UART and keeps the PL011 on the header:
# /boot/config.txt
#dtoverlay=pi3-disable-bt
dtoverlay=pi3-miniuart-bt
core_freq=250
core_freq=250 keeps the mini UART’s clock stable, BT gets flaky without it. Also make sure console=serial0,115200 is not in cmdline.txt. Reboot, then sudo systemctl restart hciuart and hciconfig should show hci0.
Your Modbus side keeps /dev/ttyAMA0, so the chiller code shouldn’t notice.
Traduit de English par IA ·
Certaines de ces machines disposent d’un bus MDB interne qui signale correctement les ventes, cela vaut peut-être le coup de regarder avant de percer d’autres trous.
Some of those machines have an MDB bus inside that reports vends properly, might be worth a look before you drill more holes.
Kevin A’s point matters, because it decides which baud the HC-05 has to use: old bootloader is 57600, the new Optiboot one is 115200. The HC-05 has to be set to that same speed with AT commands first.
Traduit de English par IA ·
J’ai fait presque exactement la même chose pour une caméra de portail dans la ferme de mon oncle.Câble : 100 m par segment. Options, de la moins chère à la plus chère : un extendeur PoE à mi-parcours (il faut un emplacement pour le monter, certains sont alimentés par le PoE lui-même), un petit switch extérieur alimenté à mi-parcours, ou deux convertisseurs de média fibre avec une liaison fibre, ce qui supprime aussi les risques de foudre entre les bâtiments. L’idée Wi-Fi de Kevin fonctionne en pont point à point avec deux unités directionnelles, pas avec le Wi-Fi propre à la caméra.Côté Hermetry, le refus est attendu. Le cloud se connecte à la caméra, elle doit donc être joignable via un nom d’hôte public ou une IP, ou via un Hermetry Edge sur le réseau du site (la plateforme y accède alors via la connexion chiffrée d’Edge, sans redirection de port). Une adresse privée du type 192.168.x seule est refusée. Sans boîtier Edge : redirigez les ports HTTP et RTSP de la caméra sur votre routeur, n’autorisez que les adresses de la plateforme dans le pare-feu, et ajoutez-la avec un utilisateur caméra en lecture seule, pas administrateur. Ensuite, Appareils > Nouvel appareil > Caméra ou enregistreur, testez la connexion et placez-la sur le tableau de bord.Vérifiez le codec du flux. Seul le H.264 est pris en charge, sans audio. Beaucoup de caméras récentes utilisent le H.265 par défaut, et vous obtiendrez alors une vignette noire. La vue en direct ne stocke rien : elle ne transfère la vidéo que pendant qu’on regarde, et chaque minute de visionnage compte dans les minutes caméra du forfait. Si vous l’affichez sur un écran mural toute la journée, cela s’accumule. Limites sur Camera limits and privacy.
Did almost exactly this for a gate camera at my uncle’s farm.
Cable: 100 m is per segment. Options, cheapest first: a PoE extender halfway (needs a spot to mount it, some are powered by the PoE itself), a small outdoor switch halfway with power, or two fibre media converters with a fibre run, which also kills any lightning worries between buildings. Kevin’s Wi-Fi idea works as a point-to-point bridge with two directional units, not with the camera’s own Wi-Fi.
Hermetry side, the refusal is expected. The cloud connects to the camera, so it has to be reachable at a public host name or IP, or through a Hermetry Edge on the site network (the platform then gets to it over Edge’s encrypted connection, no port forward). A private address like 192.168.x on its own is refused. Without an Edge box: forward the camera’s HTTP and RTSP ports on your router, allow only the platform’s addresses through the firewall, and add it with a view-only camera user, not admin. Then Devices > New device > Camera or recorder, test the connection, and put it on the board.
Check the stream codec. It’s H.264 only, no audio. A lot of new cameras default to H.265 and you’ll get a black tile. Live view stores nothing, it pulls video only while someone watches, and each minute somebody watches counts toward the plan’s camera minutes. If you put it on a wall screen all day that adds up. Limits on Camera limits and privacy.
Video needs Wi-Fi-class bandwidth, and 2.4 GHz through that much concrete dies fast.
Could you just add a second resistor in series in the loop and read the voltage across it with the ESP? That’s what I did with a pressure sensor at home.
Not a lawyer, but I went through this with a test lab for a BLE product. The modular grant covers the radio as long as you stay inside it: same antenna type and gain, no changes to output power, frequencies or modulation, and the module’s FCC ID shown on your label (« Contains FCC ID … »). Updating your own application code doesn’t touch that. The host product still needs its own unintentional-emitter check (Part 15B), once, not per update. Ask your lab to put that in writing for your file, it’s a short email for them.
Where you could break the grant is if an update ever lets the radio config change, so lock that: the app should have no command or setting that changes bands or power.
On the Hermetry side, what I’d set up before the first real rollout:
- Register your signing public key under Firmware > Signing keys and keep « Allow unsigned images » off on the tracker profile. Only an owner can add keys, and the device must refuse an image whose signature doesn’t verify, so build that check into your bootloader.
- Fill in Hardware models on each upload, so a rev B image never goes to rev A boards.
- Use Send in waves on the profile assignment, start with your own 10 test trackers.
- Leave « Allow updates over LTE » off until you know the image size and your data plan, otherwise each tracker downloads it on cellular the moment it’s assigned.
- Report
current_fw_versionafter every connect. Hermetry only marks an update done when the new version actually shows up, and flags it if the old one comes back.
All on Firmware updates (OTA).
Traduit de English par IA ·
As-tu activé 1-Wire dans raspi-config ? Et la résistance n’est pas facultative, 4,7k entre les données et l’alimentation.
Did you enable 1-Wire in raspi-config? And the resistor is not optional, 4.7k between data and power.
Traduit de English par IA ·
C’était l’ordre des octets. Après les avoir inversés, la valeur du capteur de sol se stabilise à 1.62 V. J’ai ajouté soil.raw à côté de soil.v comme l’a dit Keisha, et la batterie sur AIN1 affiche 12.7 V après le calcul du diviseur. Je comprends aussi maintenant ce que représente cet argument, merci Aoife.
Byte order it was. Swapped them and the soil value sits at 1.62 V, steady. I added soil.raw next to soil.v like Keisha said, and the battery on AIN1 reads 12.7 V after the divider maths. Also understand now what that argument is, thanks Aoife.
Your single quotes stop $ok from expanding. That literal text isn’t valid JSON, so it gets stored as raw.

