Mega128RFA1 as low Power Transmitter

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

i want to transmit a Temperature between two Mega128RFA1. The transmitter should send one byte every 5 Seconds.
I found the TAL and Tinytal Examples, but they didnt work with Studio6.
Is there an Example for one transmitter and one receiver to get started?

Günter

Last Edited: Fri. Oct 16, 2015 - 02:17 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can create a new project and make it use external Makefile. You can also look at LwMesh stack.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello alexru,

the goal is to consume less energy on the transmitter. The Powersupply is an seebeck element and a boostconverter. LwMesh looks easy to use. Do you think its the right way for very low power applications?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For a very specific and very-very-very low power application, I'd take PHY from LwMesh and wrote my application just on top of that PHY.

But LwMesh as it is right now will get close to the best possible performance, just don't use application acknowledgments.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello alexru,

ok, i'm going to test LwMesh. By default the receiver is off? so i have only to use void sendFrame(void) and go to sleep till the timer wake the avr up?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In WSNDemo, when configured as End Device (address >= 0x8000), then transceiver is off most of the time, except when frame is being transmitted.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i get an error:

Error	1	The command "avr-objcopy -O ihex -R .eeprom WSNDemo.elf WSNDemo.hex
avr-objcopy -O binary -R .eeprom WSNDemo.elf WSNDemo.bin" exited with code 9009.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the project settings change post build commands to:

"$(ToolchainDir)\avr-objcopy" instead of "avr-objcopy" or remove them altogether, if you don't need to get *.hex and *.bin files.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Error	1	The command "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.1.95\AVRToolchain\bin\avr-objcopy -O ihex -R .eeprom WSNDemo.elf WSNDemo.hex
C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.1.95\AVRToolchain\bin\avr-objcopy -O binary -R .eeprom WSNDemo.elf WSNDemo.bin" exited with code 9009.	C:\Program Files (x86)\Atmel\Atmel Studio 6.0\Vs\Avr.common.targets	27	5	Rcb128rfa1_ATmega128rfa1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That is new. This error message is not very informative, so I have no idea how to fix this. Just remove those commands for now.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think the minimum 802.15.4 packet is 10 bytes - 4 bytes preamble and SFD, length byte, and ack protocol with one variable byte field, the sequence number that is acked. Just sayin', your tx time may be disappointing :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

First i try to reduce the current when no data is transmitted.
The current without sending Data is 2mA. When the AVR is on Power_down, its 0,88mA. After

PRR1 |= _BV(PRTRX24);

the current is 0,046mA

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, this has to be taken into account by the software, since TRX24 will loose all its registers contents. Putting it into a regular sleep mode is much more preferred.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

now low Power works. I dont use the code and set the registers direct.

Günter

Attachment(s):