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
G

gieemek

@gieemek
About
Posts
23
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • RS485 transport ACK support
    G gieemek

    @cabat, @rozpruwacz is right: I don't use the noACK function.
    But I do use send(msg) function with an echo parameter set to true, which forces the gateway to send echo back to node.
    How it works:

    • When the node starts sending message, the variable isSent is set to false.
    • The node's send(msg) function runs in a loop for up to 5 repetitions unless the isSent variable changes to true. The function repeats sending message every 1 second.
    • The receive() function on the node reads the messages from the gateway. If it is is.Echo() it sets the isSent variable to true. This interrupts the loop with send(msg) function.

    Important ! you need to wait about 0,5 s after sending message to get echo back from gateway.

    bool isSent;
    
    void loop() {
    // your other code in loop() function
    
    isSent = false;
    
    	while ( ! isSent && i < 5 ) {
    		send( message.set( value ), true );
    		wait( 500 );
    		
    		if ( ! isSent ) {
    			wait( 1000 );
    		}
    		i++;
    	}
    // your other code in loop() function
    }
    
    void receive( const MyMessage& message ) {
    
    	if ( message.isEcho() ) isSent = true;
    	else  doSomething;
    }
    
    Development

  • Possible to have an external power source for moisture sensors??
    G gieemek

    I have MySensors node with 5 moisture sensors - work without problems for one year.
    Node platform:

    • Arduino Pro Mini 5 V
    • RFM69HCW powered by 3,3V voltage regulator + resistors on communication lines
    • 5x FDRobot moisture sensors
    • 3x DS18B20 temperature sensors

    powered by 5V, 1A power supply

    General Discussion

  • No softspi support for RFM69
    G gieemek

    I modified MyConfig.h file and RFM69 driver to allow you build gateway (ethernet or MQTT) with W5100 ethernet and RFM69 radio modules using SoftSPI bus. You can find it at: https://github.com/gieemek/RFM69_softSPI-for-MySensors-2.1.1

    Bug Reports rfm69 softspi ethernett

  • MQTT - RFM69 Gateway stops communicating randomly and doesn't recover
    G gieemek

    @Carywin OK, my gatewayMQTTclient with RFM69 via SoftSPI is working now. There was a problem in RFM69_new.cpp file with SPI_HAS_TRANSACTION variable which is defined in hard SPI.h but not in SoftSPI.
    Now I test my gateway and I hope it will work without losing connection. Thank you once more for help.

    Troubleshooting

  • RS485 transport ACK support
    G gieemek

    ACK response in implemented in RS485, I'm using it.

    Development
  • Login

  • Don't have an account? Register

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