Is the RFM12PI V1 compatible with Emoncms V9 .4?

Is the RFM12PI v1 compatible with Emoncms V9.4?

I have recently set up a Raspberry Pi B+ using the guide here. This works fine with a RFM69PI V3, but when I switch to my old RFM12Pi V1 I receive no data.

The RFM12Pi V1 works fine with a Emoncms V7 setup.

Any help would be much appreciated

pb66's picture

Re: Is the RFM12PI V1 compatible with Emoncms V9 .4?

Is there any clues in emonhub.log? you may need to set the loglevel to "DEBUG" in the emonhub.conf to get a better picture.

It could well be the serial baud speed is different or not being sensed correctly. You could try setting the correct baud for your device (presumably 9600 but thats a guess) in emonhub.conf, under [interfacers] [[RFM2Pi]] [[[init_settings]]] set "com_baud = 9600". (the rfm68pi uses a baud of 38400)

Paul

john.b's picture

Re: Is the RFM12PI V1 compatible with Emoncms V9 .4?

Hi Paul,

Thanks for your help.  It looks to me like the problem is the baud rate.  However I tried the setting you suggested and also 19200, but I get an error in the log as follows "ERROR Unable to create 'emonCMS' reporter: __init__() got an unexpected keyword argument 'com_baud'".  I guess I have the syntax wrong here?

This is what I have

    Type = EmonHubEmoncmsReporter
    [[[init_settings]]]
       com_baud = 9600
 

Interestingly when I commented the "com_baud = 9600" line out and re-started emonhub I started to receive data.  And you can see in the log file attached at 11:23 that the baud rate was initially 38400 and then changed to 9600.  To be clear this is with the com_baud line commented out.

Unfortunately with further re-starts it stays at 38400 and does not receive data.  I think I just need the right syntax for the baud rate.

John

john.b's picture

Re: Is the RFM12PI V1 compatible with Emoncms V9 .4?

If I'd looked more clearly I would have seen to add the com_baud = 9600 line under [interfacers]

I have now added this as follows add it works perfectly

[[RFM2Pi]]
    Type = EmonHubJeeInterfacer
    [[[init_settings]]]
        com_port = /dev/ttyAMA0
        com_baud = 9600
    [[[runtimesettings]]]
        group = 210
        frequency = 433
        baseid = 15
 

Many thanks.

PS It's probably worth adding this to the build guide as I'm sure I'm not the only one with a RFM12PI V1

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.