Interfacing with RFEM24-250!

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing with RFEM24-250!

315 Views
ganesh3
Contributor I

Hello People,

I'm not able to properly interface with RFEM24-250 RF Energy Module via I2C. Specifically, I cannot set the device mode to operating as it is always in standby mode. I followed all the basic command sequences mentioned in the user manual specifications. Any help or extra documentation would be appreciated.

-Ganesh

0 Kudos
5 Replies

195 Views
Braveheart53
Contributor I

@ganesh3 

Were you able to successfully interface with the module?

I am attempting to do the same using I2C with a Total Phase Aardvark as the Master OR an Arduino Uno as the maser both through Matlab.

 

I can do python as well, but the customer preferred matlab. Please advise.

0 Kudos

165 Views
ganesh3
Contributor I

Yes. I was able to connect. Please let me know which step you are stuck on.

-Ganesh

-Ganesh

0 Kudos

298 Views
LPP
NXP TechSupport
NXP TechSupport

At first, try to determine the reason of the standby using LED indication as described in the Interface Reference Manual.
Then read "Read Alerts" register and investigate all the status bits.
If CMD_ERR Alert bit is set, read an error code that will provide more information as to the cause of the error.


Have a great day,
Pavel
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

183 Views
Braveheart53
Contributor I

@LPP 

Pavel, the LED is awaiting ID assignment in my case. Yet, I cannot get it to assign address. The arduino uno dioes not detect it either by 0x7F address or by bus search. A total phase aardvark as master does see the device at the 0X7F address, but device does not seem to respond.

Ideally, I would like to control with an Arduino Uno as master through matlab. This method allows the user to monitor other pins and device status. Please advise.

0 Kudos

164 Views
ganesh3
Contributor I

Hello!

I got the Module to work and its worth the money. Firstly, I hope you were able to download the interface datasheet from NXP.

I followed the following steps to assign the ID after your regular initializations:

  • Reset by pulling the pin LOW and pulling it HIGH after a second
  • Send Reset Command via I2C Interface (0x00, 0x65(CRC))
  • Read Alerts Command vial I2C Interface (0x46, 0xB0) and Read the alerts (Alert-Status, Error-Code, CRC)
  • Verify the incoming CRC
  • Send 'Assign-Command' via I2C Interface (0x01, newID, CRC(based on newID))

This should work. Verify by LED Status! (It should change to Standby)

Also, I would recommend the following troubleshooting tips before you actually connect your load:

  • What is the status LED indicating as you send the instructions
  • Did you make sure that all the pins are properly connected? Verify the data and clock lines with an oscilloscope
  • Did you follow the CRC Generation process as described in the manual? Make sure that you did set the seed to 0x01? Use an online CRC calculator to verify as well.
  • Check the reset pin!

Do let me know if you need more help.

-Ganesh

0 Kudos