Navigation

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

    Best posts made by TSD

    • RE: Timer2 does not work after including MySensors.h

      @mfalkvidd

      "The application" in this case is just a blinking LED. I intend to use the ISR to read out a sensor and send the data with MySensors. But because I couldn't get the ISR to work, I reduced "the application" to an LED to keep this discussion focused on the real issue.

      Yes, it always compiles, whether I include MySensors.h or not, and whether I use Arduino IDE or Atmel Studio.

      It's just that the LED doesn't always blink. In fact, the LED only blinks if I compile with Atmel Studio and don't include MySensors.h.

      I cannot use a serial monitor, because the custom node only has an ISP interface to program the MCU, there's no USB or anything like that.

      posted in Troubleshooting
      TSD
      TSD
    • RE: Timer2 does not work after including MySensors.h

      @mfalkvidd, @scalz
      Thanks, now we're getting somewhere. When I use wait(), the LED blinks. That makes sense if sleep() uses power down mode, which turns off almost everything, including timer 2.

      I'll read the sensor and send the data (with MySensors) from the counter in the main loop. Then I'll see if I can get the MCU to sleep while leaving timer2 on with extended standby mode.

      Thanks for your help!

      posted in Troubleshooting
      TSD
      TSD
    • RE: RFM69 ATC not working?

      @mfalkvidd
      OK, tnx for now. I'll look at gateway rssi tomorrow evening

      posted in Troubleshooting
      TSD
      TSD
    • RE: RFM69 ATC not working?

      If I run "make install" while the code has not compiled yet, it will compile before installing. If you first run "make" seperately, "make install" will only install.

      I'm almost there. I configured an Ethernet gateway (couldn't get serial gateway to work) and can now see the temperature, receive RSSI and sending RSSI from the node in Domoticz.

      The gateway receive function shows up as "S_ARDUINO_REPEATER_NODE", but there's no data yet.

      What data should I pass on to your receive function? My gateway code is now as follows:

      #define MY_DEBUG_VERBOSE_GATEWAY
      #include <MySensors.h>
      
      
      MyMessage msgTemp(1,V_TEMP);
      MyMessage msgRSSI(2,V_LEVEL);
      
      #define ARDUINO 100
      // This space is intended to be used to include arduino libraries
      
      #undef ARDUINO
      
      void setup()
      {
              // Setup locally attached sensors
      }
      
      void presentation()
      {
              // Present locally attached sensors here
      present(2,S_SOUND);
      }
      
      void loop()
      {
              // Send locally attached sensors data here
      receive(msgTemp);
      }
      
      void receive(const MyMessage &message)
      {
        int16_t rssiReceive = RFM69_getReceivingRSSI();
        if (message.sender == 1 ) {
          send(msgRSSI.set(rssiReceive,0));
        }
      }
      
      
      posted in Troubleshooting
      TSD
      TSD
    • RE: RFM69 ATC not working?

      @gohan
      I couldn't get the RSSI measurement on the gateway to work, so I'm not doing that.

      I want to get ATC to work. As ATC uses RSSI to optimize power, a correct RSSI measurement (on the node) is needed. ATC (and so the RSSI measurement) works well on an Arduino gateway, but not on a RPi.

      As I don't have a software background and am still newish to MySensors, I'm hoping someone on the forum knows what to do. In the meantime, I'll keep digging myself 🙂

      posted in Troubleshooting
      TSD
      TSD
    • RE: RFM69 ATC not working?

      @prelektr Because I wasn't making much progress, I gave up on this and added an Arduino Nano gateway that communicates with the RPi via UART. Then the ATC works. The Nano (clone) is just a $2 board, so it isn't a big deal to add it.

      posted in Troubleshooting
      TSD
      TSD