emonTxV3_4_3Phase_Voltage V.4 with RFM12B does not compile

Hello,

I have got the emonTx with RFM12B and want to compile the sketch emonTxV3_4_3Phase_Voltage V.4.

I downloaded it and changed #define RFM69CW to #define RFM12B.

 

When compiling I get the following error message:

emonTxV3_4_3Phase_Voltage_new.cpp.o: In function `setup':
C:\Program Files (x86)\Arduino/emonTxV3_4_3Phase_Voltage_new.ino:252: undefined reference to `rfm_init()'
emonTxV3_4_3Phase_Voltage_new.cpp.o: In function `loop':
C:\Program Files (x86)\Arduino/emonTxV3_4_3Phase_Voltage_new.ino:313: undefined reference to `rfm_send(unsigned char const*, unsigned char, unsigned char, unsigned char)'
collect2.exe: error: ld returned 1 exit status

Any idea?

Thanks for the support,

/Marco

Robert Wall's picture

Re: emonTxV3_4_3Phase_Voltage V.4 with RFM12B does not compile

You're right, it doesn't. Somehow, the file on GitHub has been truncated - the file should go to 855 lines long.

I'll get Glyn to correct it.

(Meanwhile, there'll be a good version here when I've swapped browsers to be able to attach it.)

(But why are you using a RFM12B on an emonTx V3.4 - do you have a V3.2? )

Marco's picture

Re: emonTxV3_4_3Phase_Voltage V.4 with RFM12B does not compile

Hi Robert,

thanks for the quick answer, I will try it.

Regards,

/Marco

 

Quote: "But why are you using a RFM12B on an emonTx V3.4 - do you have a V3.2?"

Remember? http://openenergymonitor.org/emon/node/10476

Somehow I got a 3.4 with RFM12B :-(

Marco's picture

Re: emonTxV3_4_3Phase_Voltage V.4 with RFM12B does not compile

Is compiling error free now.

Thanks.

 

I am using V3.4 with RF12B, because of this: http://openenergymonitor.org/emon/node/10476

Robert Wall's picture

Re: emonTxV3_4_3Phase_Voltage V.4 with RFM12B does not compile

Thank you for reminding me - I had completely forgotten about that. It was 3 months ago, and I have helped very many people since then!

What I shall do is add some more preprocessor directives so that the sketch will work for the emonTx Shield and for both versions of the emonTx V3. 

Marco's picture

Re: emonTxV3_4_3Phase_Voltage V.4 with RFM12B does not compile

Perfect.

Shall I wait for the new version or can I use the update you attached yesterday?

Robert Wall's picture

Re: emonTxV3_4_3Phase_Voltage V.4 with RFM12B does not compile

As far as you're concerned, they are the same. The one on its way to GitHub has got switches in to set the default calibration for the emonTx Shield, that's all.

Marco's picture

Re: emonTxV3_4_3Phase_Voltage V.4 with RFM12B does not compile

Hi Robert,

I just checked V.5 on GitHub and it seems that the interface for the RFM12B Radio Module is still missing there.

Cheers,

/Marco

Comment viewing options

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