Hi again,

i’m performing a customized app ‘myCustomizedApp’ based on TestAssociate app 
located in ../tinyos-2.1.1/apps/tests/tkn154/nonbeacon-enabled.

I have got two micaz motes (coord and device) programmed in a mib520 board with 
the address as follows:

Coordinator –> make micaz extaddr, 0xC00D install mib520,/dev/ttyUSB0
Device –> make micaz extaddr, 0xED1234 install mib520,/dev/ttyUSB0

When i tested my app, the coordinator printed the MAC address of the only 
device who was joined to him: 0x4E00000021AC75E2
That’s wrong, it should print 0xED1234.

[!] I have not made any changes in the basic structure provided by the 
TestAssociate app. I haven’t modified MLME_ASSOCIATE primitives. I have only 
added more lines of code for customize my app. [!]
Any help would be appreciated. 
Thanks in advance,
Felipe.
From: [email protected] 
Sent: Tuesday, July 31, 2012 12:48 AM
To: Jan Hauer 
Cc: TinyOS HELP 
Subject: Re: [Tinyos-help] Always the same 64 bit address

Hi,

now it works correctly. 

Thank you very much,
Felipe.

-----Mensaje original----- 
From: Jan Hauer 
Sent: Monday, July 30, 2012 4:49 PM 
To: Felipe Cruz Martínez 
Cc: TinyOS HELP 
Subject: Re: [Tinyos-help] Always the same 64 bit address 

> 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

Reply via email to