you could have mac address for each node, since you will have to program them at least once. This way you could have gateway assign ID to MAC. This way you would have same ID on that gateway
I just don't know how you will get past
any other detail (exact frequency value...)
node and gateway do need to have the same freq.