Hello all,
I have a question regarding the usage of Mica2 motes with the Stargate platform. I just can't make them work correctly. After diggin' around the TinyOS examples (some of which work and other don't), I found the MicaHWVerify app and decided to try it. I compile the application as usual with:

PFLAGS=-DCC1K_DEF_FREQ=916700000 make mica2

and the main.srec file is generated. I copy it through SCP to the Stargate, where I login and program the mote, with:

uisp -dprog=sggpio -dpart=ATmega127 --wr_fuse_h=d9 --wr_fuse_e=ff --erase --upload if=MicaHWVerify.srec

The output looks fine:

Atmel AVR ATmega128 is found.
Erasing device ...
Reinitializing device
Atmel AVR ATmega128 is found.
Uploading: flash

Fuse High Byte set to 0xd9

Fuse Extended Byte set to 0xff

Here is where the first problem is found. The documentation says that the mote LEDs should start blinking like a binary counter, but they don't (http://www.tinyos.net/tinyos-1.x/doc/tutorial/verifyhw.html).

However, the image was correctly transferred to the Stargate. Indeed, if I remove the mote from the Stargate, the LEDs start blinking.

I proceed assuming that things could be right. Hence, I compile the java application associated with the hardware test, by issuing the following command on the PC:

make -f jmakefile

which completes succesfully. I copy with SCP the corresponding classes to the Stargate and then execute the hardware_verify java class on it (BTW I am using IBM's J9 with the RXTX JavaComm API drivers):

stargate:/opt# MOTECOM=serial@/dev/ttyS2:mica2 jre hardware_check

Hardware check started
serial@/dev/ttyS2:57600: resynchronising
4Mbit flash check failed 255 255 255

That is not a good sign. Furthermore, I restart the Stargate and execute the test again, and get the 'Node transmision failure message':

stargate:/opt# MOTECOM=serial@/dev/ttyS2:mica2 jre hardware_check

Hardware check started
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyS2
serial@/dev/ttyS2:57600: resynchronising
Node transmission failure

...
As I said initially, other mote applications work, like ExchangeRSSI or CntToLedsAndRfm/RfmToLeds, but not those where the Stargate is involved, like TOSBase, GenericBase, TransparentBase. However, Oscilloscope _does_ work! This is strange, could somebody give me a hint on TinyOS versions used with the Stargate and the Mica2s, known errors, etc.? Does somebody think that the hardware is malfunctioning and should be returned to Crossbow? Thanks in advance

Pablo Guerrero
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to