> However, i want set the extended address with known value, for that i’ve > done: > > make micaz extaddr.1234 install mib520,/dev/ttyUSB0 > > But it doesn’t work. The MAC Address doesn’t take the value of 0x1234. Why?
Check if you have file tos/lib/mac/tkn154/extras/extaddr.extra in your system. If not you might want to update to latest code (http://code.google.com/p/tinyos-main/source/checkout). Alternatively (for testing) add "CFLAGS += -DIEEE154_EXTENDED_ADDRESS=1234" to your Makefile or "#define IEEE154_EXTENDED_ADDRESS 1234" in front of your app's configuration. Jan On Mon, Jul 30, 2012 at 4:04 PM, Felipe Cruz Martínez <[email protected]> wrote: > Hi, > > i’m working with micaz motes. > You are right, the 64 bit MAC address received in first param. of the event > MLME_ASSOCIATE.indication varies every time a new device is associated. > > I’ve typed: make micaz install,X mib520,/dev/ttyUSB0 where X is the > TOS_NODE_ID. Automatically it generates his own 64 bit MAC Address (similar > to 0x4E00000021AC75E2) > > However, i want set the extended address with known value, for that i’ve > done: > > make micaz extaddr.1234 install mib520,/dev/ttyUSB0 > > But it doesn’t work. The MAC Address doesn’t take the value of 0x1234. Why? > > Thank you very much. Your help is very useful for me. > > -----Mensaje original----- > From: Jan Hauer > Sent: Monday, July 30, 2012 11:58 AM > To: Felipe Cruz Martínez > Cc: TinyOS HELP > Subject: Re: [Tinyos-help] Always the same 64 bit address > > Hi Felipe, > > the supported platforms don't have a unique 15.4 extended address (in > a dedicated chip). But you can set the extended address yourself with > the "extaddr" make option, e.g. to set the address to 1234 on telosb, > do "make telosb extaddr.1234 install" (IIRC max 32-bit values work). > > Alternatively, if you don't set the ext. address yourself, then by > default the MAC sets it to a number returned by the random number > generator (tos/system/RandomC). Under telosb the seed of the RNG is > (only) based on node ID, which you can influence by "install.x" (where > x is the nodeID, 1 is default); unless you do this seed/extended > address will always be the same. > > Jan > > On Mon, Jul 30, 2012 at 1:03 AM, Felipe Cruz Martínez > <[email protected]> wrote: >> Hi, >> >> i have installed the app TestAssociate located in >> ../tinyos-2.1.1/apps/tests/tkn154/nonbeacon-enabled and i’ve got the >> following problem: >> >> In the coordinator app, when MLME_ASSOCIATE.indication is signaled >> (indicating that a new association request has arrived), i print the >> extended address value (64 bits) of the new device that wishes associate >> to >> the coordinator. I don’t understand why that address is ALWAYS the same, >> never changes for new associations requests from other devices. >> The extended address is the same for all the devices: 0x4E00000021AC75E2 >> (64 >> bits). >> >> Any help would be appreciated. >> >> Thanks in advance, >> Felipe >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
