[Avrora] Mica2 Vs. MicaZ
Mohammad Sajjad Hossain
sajjad at purdue.edu
Sun Mar 22 11:14:51 PDT 2009
Still no luck :(
2009/3/16 Ciaran Lynch <ciaran.lynch at cit.ie>
> Sorry for the delay, Rodolfo is correct -- the SOS micaz code sets the
> SPI output pins directly, while the avroraz CC2420 driver expects the
> communication to come through the SPI registers. Try the attached version of
> platform/micaz/cc2420_hal.c and see if it helps at all (rename it to
> cc2420_hal.c and replace the existing version). It simple replaces the
> direct bit manipulation with a version that uses the SPI hardware. Also if
> you add "-verbose=radio.cc2420" to the avroraz command line it will produce
> lots and lots of debugging information which should give you a good idea of
> what is happening.
>
> Hope this helps,
>
> Ciaran
>
>
> -----Original Message-----
> From: avrora-bounces at lists.ucla.edu on behalf of rodolfo de paz
> Sent: Thu 3/12/2009 1:08 PM
> To: Mailing list for Avrora simulator users and developers.;
> avrora at lists.ucla.edu
> Subject: Re: [Avrora] Mica2 Vs. MicaZ
>
> But I compiled as 'make micaz' and that works. Doesn't that mean that
> my code is micaz ready? Sorry if I am missing anything :(
>
> ------
> If you compiled against micaz then it should work. Could you check if the
> cc2420 is receiving any spi frame from the micro to drive the chip?
>
> I remember that initially SOS was not working because the SOS cc2420 driver
> implementation does not use the hardware SPI registers to communicate with
> the radio chip. However, the cc2420.java implementation in Avrora is
> expecting the communication via SPI frames to the cc2420. I am not SOS user
> so i cannot be of much help testing that.
>
> regards,
> Rodolfo.
>
> -----Original Message-----
> From: avrora-bounces at lists.ucla.edu on behalf of Mohammad Sajjad Hossain
> Sent: Wed 11/03/2009 01:43
> To: avrora at lists.ucla.edu
> Subject: [Avrora] Mica2 Vs. MicaZ
>
> But I compiled as 'make micaz' and that works. Doesn't that mean that
> my code is micaz ready? Sorry if I am missing anything :(
>
> ------
>
> It only works if you compile against the platform you want to
> simulate. The same code will never send packets in both platforms
> since they have different radio chips.
>
> -----Original Message-----
> From: avrora-bounces at lists.ucla.edu
> <http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora> on behalf of
> Mohammad Sajjad Hossain
> Sent: Sun 08/03/2009 22:47
> To: avrora at lists.ucla.edu
> <http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora>
> Subject: [Avrora] Mica2 Vs. MicaZ
>
> Hi,I am a little bit confused here:
> When I try this:
> avrora -banner=false -random-seed=100 -colors=true -platform=mica2
> -simulation=sensor-network -update-node-id=true
> -monitors=real-time,leds,packet,energy -seconds=3000
> -sections=.data,.text,.sos_bls -nodecount=3 module_test_app.od
>
> I see packet transmission going on among the nodes.
>
> But, if I just change mica2 to micaz, the motes start, but no
> packet transmission occurs. Shouldn't the same program work for both
> platforms? (unless avrora has some issues)
>
> I am developing for SOS.
>
> Thanks a lot.....
> --sajjad
>
>
>
>
>
>
> _______________________________________________
> Avrora mailing list
> Avrora at lists.ucla.edu
> http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucla.edu/pipermail/avrora/attachments/20090322/b4dc7df0/attachment-0001.htm
More information about the Avrora
mailing list