[SOLVED] Gateway without radio not working on current development branch


  • Plugin Developer

    I have seen a number of posts from people who have their gateways working without radios. I need this for a remote Ethernet gateway which has local sensors but does not need to talk to any radio nodes.

    From what I have read running without a radio is as simple as commenting all the defines for the radios. Ex:

    // Enable and select radio type attached
    //#define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69

    However, when I do this and compile I get these errors:

    sketch/GatewayW5100.ino.cpp.o: In function sendHeartbeat()': /Software/Arduino/MySensors/libraries/MySensors/core/MySensorsCore.cpp:276: undefined reference totransportGetHeartbeat()'
    collect2: error: ld returned 1 exit status
    exit status 1
    Error compiling for board Arduino/Genuino Uno.

    If I leave the radio defined but not connected it compiles fine but I get runtime errors due to the missing radio and the gateway seems to be continually restarting:

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0-beta)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;!TSM:RADIO:FAIL
    0;255;3;0;9;!TSM:FAILURE
    0;255;3;0;9;TSM:PDT
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;!TSM:RADIO:FAIL
    0;255;3;0;9;!TSM:FAILURE
    0;255;3;0;9;TSM:PDT
    ...

    Any ideas how I can get a gateway without radio working?


  • Admin

    Probably some regression. We should probably introduce some new test-sketch with radio disabled to test this during CI.


  • Plugin Developer

    Thanks for the insight @hek. So not really knowing anything about GIT is there an easy way I can grab a snapshot of the development branch from some point in the past where this was working? Any ideas how recently that might have been?

    Also, should I report this as a bug somewhere?

    Any pointers would be appreciated.


  • Admin

    It'll be patched soon.


  • Plugin Developer

    Great, thanks!


  • Admin

    @jsiddall has been addressed in PR#502.


  • Plugin Developer

    @tekka: TYVM. Tested the fix and it works great, no errors.



  • Fyi, I had same problem with serial gateway. I guess that is fixed now aswell as the ethernet gateway?


  • Plugin Developer

    @skatun said:

    Fyi, I had same problem with serial gateway. I guess that is fixed now aswell as the ethernet gateway?

    Yes, I have tested both serial and ethernet gateways and both work now.



  • Is there a smarter way to upgrade the development version on windows instead of download zip file-> extract it-> replace files? Also how can I find out if its outdated or not? I am going to download the new version now to see if the patch works and hence I were wondering the best way to do so:)



  • @skatun Can you use git, not an expert... but I think thats the way to go... :)


  • Mod

    @skatun said:

    Is there a smarter way to upgrade the development version on windows instead of download zip file-> extract it-> replace files? Also how can I find out if its outdated or not? I am going to download the new version now to see if the patch works and hence I were wondering the best way to do so:)

    Yes. Delete the old version first. Then extract (no need to replace since the old files have been deleted)

    Otherwise you'll most likely get compile errors.



  • @mfalkvidd

    On windows 7 it ask me to replace files with new one, when I click yes, everything works fine. The main issue is to detect when new files are available and then do the update. These days I keep downloading the development branch around once a month to make sure I am not working on to old versions.


  • Mod

    @skatun yes, that method will work if you are lucky. But if a file has been renamed or something similar you will get warnings and/or errors. Better to delete the old library first.



  • Hi,

    I have the same situation here, I mean, serial gateway with local sensors and no radio. But I'd like to use the 1.5 version as I'm not sure with the new one is compatible with homeassistant. Is this fix only to 2.0 branch?



  • @chrlyra
    If I am not completely wrong, this fix is only to 2.0


  • Plugin Developer

    @chrlyra

    Version 2.0 of the mysensors library should be compatible with home assistant, but the new sensor s_types and v_types are not yet supported. I'm working on this.


  • Plugin Developer

    @chrlyra: I don't think local sensors are in the main branch so you need development for that


  • Plugin Developer

    @jsiddall

    Version 2.0, which was just released, supports local sensors on gateway, ie you should not need dev branch anymore for that feature.


  • Plugin Developer

    @martinhjelmare: right you are. I didn't realize 2.0 was out. I guess my post would have made more sense 4 days ago!


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.