[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [uracoli-devel] Feature request: ability to change a network address
From: |
Daniel Thiele |
Subject: |
AW: [uracoli-devel] Feature request: ability to change a network address with Wibo |
Date: |
Tue, 23 Nov 2010 18:27:18 +0100 |
Hi list,
it is not possible to modify the bootloader itself.
And my approach to a wireless bootloader was to enable setting the nodeid only
via (wire) programmer. If you modify the node address remotely there is the
chance to kill the config section and you never reach the node via air. For the
same reason the node address is not stored inside EEPROM, you could erase this
from software. Putting the node address to flash memory (bootloader section) is
the only way to avoid dead locks - of course you have to ensure jumping into
bootloader is always possible. The safest way is:
- put node configuration (address + channel + panid) into flash memory
bootloader section
- enable "Boot Reset" fuse
- enable watchdog "WDTON" fuse set
- continuously reset watchdog inside application main loop
Regarding these steps ensures you always stay in contact with your nodes.
greetings
Daniel
-----Ursprüngliche Nachricht-----
Von: address@hidden [mailto:address@hidden Im Auftrag von Charles Goyard
Gesendet: Dienstag, 23. November 2010 18:21
An: address@hidden
Betreff: Re: [uracoli-devel] Feature request: ability to change a network
address with Wibo
Hi,
> Well, you can use the tool w/o a hexfile and avrdude with the -D option
> ("don't auto erase flash before programming"), but this would just allow
> you to punch "0" into existing "1" bits.
Yes, but as far as I know, avrdude isn't wibo compatible yet :).
> For a self modifying bootloader code I need to look into the datasheet if this
> is possible. The bootloader would read the last page into RAM, modify the
> nodeconfig values, erase the page and reprogramm it.
It seems possible, but it can be protected by the lock bits, so we have
to check for that first.
> On the other hand, how about to have the option to store the nodeconfig data
> at the end of the eeprom and use this record, if the CRC is OK.
Having two sources for configuration sounds like asking for trouble.
Maybe it's safe enough, I'm not sure. A compile-time option for
selecting either eeprom or flash storage may help.
--
Charlot
- [uracoli-devel] Feature request: ability to change a network address with Wibo, Charles Goyard, 2010/11/23
- Re: [uracoli-devel] Feature request: ability to change a network address with Wibo, Axel Wachtler, 2010/11/23
- Re: [uracoli-devel] Feature request: ability to change a network address with Wibo, Charles Goyard, 2010/11/23
- Re: [uracoli-devel] Feature request: ability to change a network address with Wibo, Axel Wachtler, 2010/11/23
- Re: [uracoli-devel] Feature request: ability to change a network address with Wibo, Charles Goyard, 2010/11/23
- AW: [uracoli-devel] Feature request: ability to change a network address with Wibo,
Daniel Thiele <=
- Re: AW: [uracoli-devel] Feature request: ability to change a network address with Wibo, Charles Goyard, 2010/11/24
- Re: AW: [uracoli-devel] Feature request: ability to change a network address with Wibo, Axel Wachtler, 2010/11/24
- Re: [uracoli-devel] Feature request: ability to change a network address with Wibo, Charles Goyard, 2010/11/24
- Re: AW: [uracoli-devel] Feature request: ability to change a network address with Wibo, Joerg Wunsch, 2010/11/25