Identification of nodes via Arduino sketch
Hi,
I am trying to implement key distribution scheme in 3 Xbee+Arduino based nodes. If I assume one node as Node 1 (A) and another 2 as Node 2 (B) and Node 3 (C), I want to distribute the authentication to these nodes.
My main concern now is Identification of the nodes. I dont know how Node 1 will refer to Node 2 and 3. I will be using other related sketch in arduino and thats why I need to know arduino sketch by which I can identify a particular node and when needed refer to that node only. As an example if B wants to communicate with A only and then again wants to send some data to C only instead of A, how will it know the ID of the nodes and accomplish its job?
I am trying to implement key distribution scheme in 3 Xbee+Arduino based nodes. If I assume one node as Node 1 (A) and another 2 as Node 2 (B) and Node 3 (C), I want to distribute the authentication to these nodes.
My main concern now is Identification of the nodes. I dont know how Node 1 will refer to Node 2 and 3. I will be using other related sketch in arduino and thats why I need to know arduino sketch by which I can identify a particular node and when needed refer to that node only. As an example if B wants to communicate with A only and then again wants to send some data to C only instead of A, how will it know the ID of the nodes and accomplish its job?
Comments
Here's some code I wrote several years ago to change the destination serial number. Hopefully it offers you some clues.
The lines:
and
would send the appropriate serial numbers listed at the bottom of the top block of code.
The code:
Would wait for either a timeout period to occur or for the characters "OK" to be received. The variable "count" and "okFlag" were changed in a different cog than the one running the above method.
I was using Series 2 XBee but I think the destination serial number can also be set Series 1 XBees (though I'm not sure).