Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
T

TSD

@TSD
About
Posts
28
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Timer2 does not work after including MySensors.h
    T TSD

    @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.

    Troubleshooting

  • Timer2 does not work after including MySensors.h
    T TSD

    @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!

    Troubleshooting

  • RFM69 ATC not working?
    T TSD

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

    Troubleshooting

  • RFM69 ATC not working?
    T TSD

    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));
      }
    }
    
    
    Troubleshooting

  • RFM69 ATC not working?
    T TSD

    @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 :)

    Troubleshooting

  • RFM69 ATC not working?
    T TSD

    @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.

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular