Navigation

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

    Best posts made by gieemek

    • RE: RS485 transport ACK support

      @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;
      }
      
      posted in Development
      gieemek
      gieemek
    • RE: Possible to have an external power source for moisture sensors??

      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

      posted in General Discussion
      gieemek
      gieemek
    • RE: No softspi support for RFM69

      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

      posted in Bug Reports
      gieemek
      gieemek
    • RE: MQTT - RFM69 Gateway stops communicating randomly and doesn't recover

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

      posted in Troubleshooting
      gieemek
      gieemek
    • RE: RS485 transport ACK support

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

      posted in Development
      gieemek
      gieemek