Skip to content
  • Sketch Names in Home Assistant - Resolved

    Home Assistant
    3
    0 Votes
    3 Posts
    39 Views
    nagelcN
    I like the joke : ) I'll try to keep it simple. Most of my sensors are just reporting temperature and humidity. Since I can assign them to a room in home assistant. They don't need anything fancy.
  • RS485 transmit errors

    Troubleshooting
    4
    0 Votes
    4 Posts
    40 Views
    OldSurferDudeO
    @sebastieng Thanks for letting us and future readers know. -OSD
  • Imitating a LoRaWAN(R) with ESP8266/ESP32 and MySensors

    Development
    3
    0 Votes
    3 Posts
    29 Views
    OldSurferDudeO
    @mfalkvidd Yes, I understand that 253 is the software limit. I was wondering about the hardware limit. For example, my Asus router has a software limit of 253 devices. But when I get 20-25 WiFi devices trying to connect, the network goes haywire. (pun intended ;) ) I am quite convinced that this is a hardware limitation of the router because the router has to carry some information about each connection. If the gateway is dumb, that is, carries no information about any connection, then it could truly have 253 connections. After a bit of contemplation, I realize that the name, gateway, implies this. If that is the case, it is good news for the DiY'er in that this very inexpensive and cheap hardware could stand in for a LoRaWAN, again, with a number of compromises.
  • Getting Better Range with NRF24L01 Modules

    My Project
    6
    0 Votes
    6 Posts
    65 Views
    S
    Thank you so much for your support
  • HW-488 infrared sensor not detecting properly

    Troubleshooting
    2
    0 Votes
    2 Posts
    23 Views
    OldSurferDudeO
    @jaydenlord Probably you do. If you leave the EN floating, electrical noise could cause it to enable or disable randomly. Some enable pin require a HIGH, some LOW. Connect it to VCC to see if it works more consistently. If it doesn't detect, connect it to GND. If one of these works, then the part wasn't designed to be in a default state of enable. Let us know your results (I found this video OSD
  • Which are the *best* NRF24L01+ modules?

    Hardware
    310
    1 Votes
    310 Posts
    260k Views
    C
    Hi everyone, bumping this thread because I could read some of you were interested in packet loss (@NeverDie and someone else) and my findings could help fix it partially or completely via software. It's certainly a hardware problem, though I can't figure out if it's due to the components physical positioning, the power supply, or both (and/or more issues like wiring, proper PCB traces, etc). Also, even the same modules from the same manufacturer, say EByte E01 PA+LNA modules in my case, have shown different performances, so it might be something bound to the variability of the SMD components used as well. Let's get straight to the point. I am the developer of rf24tunlink, a radio network bridge which uses primarily nRF24 modules. During R&D, I found that around 30% of packets from my modules were dropped due to a couple corrupted bytes, which was constant even in close range. That does indicate a hardware problem already, but the distribution of the bit flips is an even stronger indicator. [image: eb505750-d741-45b2-aba1-57d26913c786] All flips are in the first bytes! You might be getting at least one flip in most packets, resulting in ALL of them being dropped automatically because this invalidates the CRC. In this scenario ShockBurst can fail, or you might get duplicates, might not get ACK payloads or simply get a slow link because the same packet can be sent up to 15 times with a wait between each retry. Not coming here unarmed: how to fix it? Easy in principle, you: Disable CRC -> ShockBurst off, no ACK payloads, essentially your module will be RX only. Implement RS ECC: sacrifice just enough bytes to fix all the corrupted bytes. (in my case, 2/32 was enough!) That's how I turned a 30% packet loss into a 100% flawless reception, see this result: [image: 43bcccb9-9b9d-4ae8-ac4b-c9ed1f8fc320] There is more to it, as the link gets worse, of course this situation also gets worse. Finding out how many errors are in a packet can help you estimate signal quality and potentially take preventive measures. Now, if you only care about sending a specific packet, you either receive it or not at all and that's it. But if you want more like I did, then things get more complicated. In this case I wanted a full duplex link -> a second pair of nRF24 modules was mandatory I also wanted to send network data (iperf, ping, ssh, realtime video, audio, telemetry, control, anything really) -> frames needed to be split into radio packets, sent, corrected and stitched back into a frame. That is a HARQ algorithm. After all of this, I could get a usable network speed of 1.2Mbps (determined via iperf). Used a Pi 4, Pi zero 2 W and 4 nRF24 PA+LNA modules. You could use this same metric to evaluate your components, some modules could do better and some could do worse. Would be cool to fix this hardware for all and get closer to that 2Mbps max speed. Some people declared a speed of 1.7Mbps and I have seen a 1.5Mbps peak during development, so there is definitely room for improvement. [image: 1bd38d37-7a09-49e1-b92b-7d0838d1c436]
  • Windows GUI/Controller for MySensors

    Pinned Controllers myscontroller mysbootloader
    486
    17 Votes
    486 Posts
    349k Views
    S
    https://drive.google.com/file/d/14h8-8UccetEXxKET6ylry5_OcifdcJPz/view?usp=sharing
  • IP phone and beacon

    General Discussion
    4
    1 Votes
    4 Posts
    47 Views
    E
    Are you still able to use the same analog phone plugged into the back of your modem? If so then it has to still use the same protocol, and I don't understand why the analog beacon wouldn't still work. It would just have to be on that same wire, not on the internet side of the modem. The modem is doing all of the translation in that case. Or am I missing something? Did you have to get a new phone to use the new service?
  • Forum User Guidelines

    Pinned Announcements code of conduct forum rules
    6
    3 Votes
    6 Posts
    10k Views
    T
    @hek Hi! Thank you for the informative post)
  • 💬 What's all the fuss about?

    Announcements
    34
    0 Votes
    34 Posts
    6k Views
    skywatchS
    Welcome - I hope you find it inspiring, educational and practical. There is lots to learn and more to achieve.
  • Some questions on how gateway works

    Home Assistant
    14
    0 Votes
    14 Posts
    61 Views
    F
    @mfalkvidd I got what you mean. Yes, I am using the tcp connection using the mySensors serial API, not the USB<>UART serial interface ;-) I am running a gateway with the nRF24 at 1Mpbs for the fast & furious sensors (mainly energy meters); another at 250kbps for the battery supplied nodes (temp/hum and door sensors); another one at 1Mbps dedicated to the actuators / mission critical. 60 nodes running Another on is a BLE<>Mysensors bridge between the Mopeka Tank Pro (2) and the TPMS (4) Another one is a fauxmo<>Mysensors bridge. A few esp32 based displays (round oled, 3.5", 7") :-)
  • Code Garage to the rescue.

    General Discussion
    18
    1 Votes
    18 Posts
    334 Views
    F
    it is up and running
  • 0 Votes
    9 Posts
    62 Views
    OldSurferDudeO
    @Eme Thank you for coming back to report how you solved your problem! Your comments will help other people. I am a big fan of Frugal Tech and I think MySensors is great for that. Alas, MySensors is not well supported anymore. Right now I'm having problems linking to the home page :( It's people like you and me that will keep MySensors going. Thanks for your help. OSD
  • Cannot find the board: "Arduino Mini pro MYSBootloader"

    Hardware
    3
    0 Votes
    3 Posts
    21 Views
    J
    @OldSurferDude Thanks! I didn't touch the Arduino IDE for a while and forgot that the MYSBootloader doesn't come included in the Mysensor's library... My bad. Thanks for the link! I should had searched first... I use the OTA feature since 2017... It works well. So well that I forgot how to load the bootloader... Regards!
  • Hey I am new here

    Hardware
    3
    0 Votes
    3 Posts
    29 Views
    OldSurferDudeO
    Check out My Projects to see what can be done. Then decide what you want to do. Come back here for help -OSD
  • gateway MQTT

    General Discussion
    2
    0 Votes
    2 Posts
    40 Views
    OldSurferDudeO
    I don't have a good answer for you @mimaret :( When I get to the point where I'm getting strange error messages, I bite the bullet and start from ground zero. Fortunately, with the RPi you just need a new SD card. Start with a fresh copy of the Raspberry Pi OS. If you enable SSH (and WiFI) when you create the image, you can do everything headless (without keyboard-mouse-video) by running raspi-config via a remote terminal ( PuTTY ) If you enable VNC with raspi-config you can have access to the GUI. Double check your radio wiring. Don't have anything unnecessary plugged in. Carefully follow the instructions I've done this tedious process many times. My RPi's are 3B+ and Zero 2 W. Here's what I've encountered: bad power supply bad SD card bad wiring corrupt download and, of course, more user errors than I care to think about! I have not come across bad RPi ... no, not true! I had a Zero 2 W with a bad WiFi chip (common problem). Overcame that with a USB WiFi dongle. Good luck! Let us know what you discover. -OSD
  • [SOLVED] MySensors Raspberry Pi Gateway + Domotics Controller

    Domoticz
    23
    0 Votes
    23 Posts
    187 Views
    EmeE
    @zookazim so sorry I haven't been on here in years. I actually left the IoT nodes for a while. I was running into so many issues. To answer your question... not sure if it's still required or even relevant.
  • Supporting cover tilt position

    Home Assistant
    6
    3 Votes
    6 Posts
    113 Views
    H
    hey, sorry for late reply. PR for mysensors is ready to be merged: https://github.com/mysensors/MySensors/pull/1570 next step is create PR in mysensors integration for home assistant. Best regards Mariusz
  • CHATGPT My new best friend!

    General Discussion
    5
    3 Votes
    5 Posts
    50 Views
    OldSurferDudeO
    @Tmaster I think it writes better code than a lot of code I've seen, and the documentation is a lot better. The latter, of course, is because most coders don't document. :( some key elements: good statement of work -- Purpose of the Code is key (did you write that? Good job!). This will guide the AI to write what you want. descriptive variables good documentation code is independent of reading sensors up-to-down/down-to-up I spent a couple hours analyzing, researching and writing and re-writing this and all I can say is that the AI didn't catch is, as far as I can see, if your sensors are too far apart or your magnet is too weak, you could get false readings. You, being the author of AI directive, are responsible for for the code. The AI is just a tool. I started my coding with assembly language, though at that time we still had to enter the binary on some machines (set 16 switches, then press commit). ForTran and COBOL were the first real high level languages and subsequent languages, pascal, c, java, etc. were improvements. AI is a quantum step. It's still coding, but you have to learn how to talk to the AI to get what you want. Good project! Let us know how it turns out and if you had to tweak the code. -OSD
  • Raspberry Pi 5: invalid GPIO 9

    Troubleshooting
    4
    1 Votes
    4 Posts
    37 Views
    mfalkviddM
    https://github.com/mysensors/MySensors/pull/1562 switches to using libgpiod instead of the earlier interface. I have not tested it myself but it looks good.

17

Online

11.7k

Users

11.2k

Topics

113.1k

Posts