Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. TimDe
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by TimDe

    • TimDe

      SoftwareSerial dropped packages
      Development • • TimDe  

      4
      0
      Votes
      4
      Posts
      826
      Views

      Yveaux

      @timde your buffer of 9 characters is definitely too small to store a 10 character message. The code will work, but will overwrite the character(s) located after your buffer. Anything can sit there, and it can change over compile iterations, so behavior will be flaky. Switching to string, which re-allocates memory dynamically as characters get added to it, will fix this issue. I guess you added the delay because you are missing characters, right? If so, this is very tricky as it needs to sync to the rate at which new characters come in...
    • TimDe

      nRF24L01+ MQTT
      Development • • TimDe  

      13
      0
      Votes
      13
      Posts
      3808
      Views

      Nca78

      @gohan said in nRF24L01+ MQTT: I don't know much about the 1Mhz, but I read quite some times it can give problems. It can give problems to speed/time accuracy related stuff, like driving neopixels or sensors with bit-banging and need for very precise pulse duration. For sending messages with a NRF24 it has never been a problem for me. It can also be a problem ... with serial. @TimDe is debug set in your MyConfig.h file ? and what baudrate is set for serial ? Can you try to set baudrate to 9600 as 1MHz with internal oscillator you can't go faster than that reliably, maybe your node is trying to write something on serial too fast for what it can handle ? Try to put the 100nf ceramic caps first (between gnd/avcc and gnd/vcc), that will close one possibility. Can you get a debug log on the mqtt gateway to see the content of the MySensors messages it receives from the node ?