As I recall, there was a timing issue/interaction between the serial comms and the reading of the MAC IC.I believe that the original MAC reading routine worked correctly when the baudrate was set to 9600, but was less reliable at other frequencies.
The MAC IC is accessed by digital 7 - so make sure there is nothing else connected to this I/O pin.
There is a link to some of SRB's code on github for reading the MAC - you could try that.
On Saturday, November 3, 2012 10:28:34 AM UTC, monsonite wrote:There is a link to some of SRB's code on github for reading the MAC - you could try that.
He said he already tried both that and NanodeUNIO.
01/08/2011 |
| |||
Stephen,I was referring to your comment of 1/8/2011 - when you found that the MAC code was only successful at 9600 and 38400 baud.Did we ever get to the bottom of this, or was the UNIO routine re-written to fix this?
Was it a specific version of the Arduino IDE that caused problems. I remember a post saying that 0022 was OK whilst 0021 made a mess of it.
That was with thiseldo's NanodeMAC code - I wrote NanodeUNIO because I found that code was unreliable. I suspect it was a combination of things: different code paths for reading and writing 0s and 1s (so dodgy timing generating the signal for the chip) and probably also running with interrupts enabled at the wrong time. The interrupt issue got fixed eventually; the multiple code paths issue didn't.