Re: Re: Specifying which device to program

Scott Henion <[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
On 10/15/2013 1:22 PM, ct3lions2000 wrote:
>
>
> Hi Jim,
>
> Thanks for the reply.Let me restate my question in a clearer manner :
>
> What I need to ensure is that the correct program goes to the right Rabbit. Lets assume I have Rabbit A and Rabbit B. I have two copies of Dynamic C running on a single PC. I plug in the cable to Rabbit A and go to "Project Options > Communications" and choose an available com port say (com1) in this example. I then plug in the cable to Rabbit B and choose another comport (com2). Everything is fine. However it would be very bad if I sent Rabbits B program to Rabbit A board (Input and output not compatible). This could happen if I am careless about the connections. I thought that each of the boards might have a serial number and you could perhaps address this in the code?

Each board will have the MAC address in the ID block.

You could read it with the debugger but only after loading a program.

You could ground a pin on one module and pull up the pin on the other so
your software could tell (or read with the debugger.)


-- 
------------------------------------------
     Scott G. Henion, Consultant
Web site:    http://SHDesigns.org
------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.