Re: [Tinyos-help] RE: Tmote: how to config mote with unique config info without reflashing?
On Apr 23, 2006, at 10:27 PM, Liu, Ping (GE, Research) wrote: Joe, Thanks for the quick reply. Mac address is one thing, there are other configurations such as encryption key and so on that may require unique configurations per mote, that said, any suggestions? You can use the same basic approach, which is changing a variable in the binary. Take a look at the set-mote-id script. TinyOS 2.x has a more generic version, tos-set-symbols, which allows you to modify arbitrary variables. This is important in 2.x because it supports distinguishing a node's unique ID from its AM address, which will be important once nodes have multiple network interfaces. You could use the 2.x script, which is in tinyos-2.x/tools/tinyos/misc Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] RE: Tmote: how to config mote with unique config info without reflashing?
Hi Phil Thanks for the reply. However,the set-mote-id script just generates different images with different node IDs, fundamentally it's still a flashing/reflashing mechanism. I would like to avoid it for security reasons, e.g. I don't want to my motes to be flashed by end users except allowing some simple configurations. Is there a way around it? You mentioned that in tinyOS 2.x, one could modify arbitrary variables, does it still require reflashing? I am not up to date with 2.x development at all. Thanks again for the help, I really appreicate it. -T. -Original Message- From: Philip Levis [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 1:36 AM To: Liu, Ping (GE, Research) Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] RE: Tmote: how to config mote with unique config info without reflashing? On Apr 23, 2006, at 10:27 PM, Liu, Ping (GE, Research) wrote: > Joe, > > Thanks for the quick reply. Mac address is one thing, there are > other configurations such as encryption key and so on that may > require unique configurations per mote, that said, any suggestions? You can use the same basic approach, which is changing a variable in the binary. Take a look at the set-mote-id script. TinyOS 2.x has a more generic version, tos-set-symbols, which allows you to modify arbitrary variables. This is important in 2.x because it supports distinguishing a node's unique ID from its AM address, which will be important once nodes have multiple network interfaces. You could use the 2.x script, which is in tinyos-2.x/tools/tinyos/misc Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] RE: Tmote: how to config mote with unique config info without reflashing?
On Apr 23, 2006, at 10:44 PM, Liu, Ping ((GE, Research)) wrote: Hi Phil Thanks for the reply. However,the set-mote-id script just generates different images with different node IDs, fundamentally it's still a flashing/reflashing mechanism. I would like to avoid it for security reasons, e.g. I don't want to my motes to be flashed by end users except allowing some simple configurations. Is there a way around it? You mentioned that in tinyOS 2.x, one could modify arbitrary variables, does it still require reflashing? I am not up to date with 2.x development at all. Thanks again for the help, I really appreicate it. Ah, you want to change the variables dynamically at runtime? There are a couple of approaches: 1) The Drip component of the SNMS management system; 2) PyTOS; 3) Use Mate', a virtual machine that lets you run programs which set the variables. 3) is by far the heaviest-weight of the approaches (it gives you a full scripting interface), and will also require that you write a bit of nesC code to set the variables, so it sounds like more than what you want and more effort than you're interested in. 1) and 2) are both reasonably lightweight options. There may be others out there, that I'm not aware of. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help