I have attached the patch file produced with the command cvs diff from
the /opt/tinyos-2.x/apps/tutorials/RssiDemo/RssiBase directory
I think that makefile should be modified in order to have it add the
RF230_RSSI_ENERGY define only if building the user is building the
application for the Iris platform.
Ciao,
Stefano "Kismet" Lenzi
On Wed, Jun 18, 2008 at 13:53, Miklos Maroti <[EMAIL PROTECTED]> wrote:
> Stefano,
>
> Could you please check in your modifications to support the IRIS
> platform too? If I recall correctly, you have them. If you want to, I
> can review your patch, just send me what did you modify.
>
> Miklos
>
> ---------- Forwarded message ----------
> From: Andrey Gursky <[EMAIL PROTECTED]>
> Date: Wed, Jun 18, 2008 at 1:20 PM
> Subject: Re: [Tinyos-help] RF230 readinf ED instead of RSSI
> To: "\"TinyOS Help Mailing-List\"" <[email protected]>
>
>
> Hi!
>
>>> I have tested the RSSIDemo with the patch that you have sent me and it
>>> works :)
>
>> Ok, the updated version is checked in, so you can use the CVS version
>> now. This prives that we did handle the IRQ and managed to read two
>> RF230 registers in less than 140 microsecond, and that is why the
>> PHY_ED_LEVEL value was not yet calculated.
>
> I've checked out the CVS tinyos-2.x on June, 17. But RssiDemo (from
> tutorials folder) still doesn't support IRIS platform (RF230). Is
> there any other CVS?
>
> Andrey
>
>
> P.S. Sorry, if my answers are still being posted as new thread. I
> click on answer/answer all button in the web interface of my mail
> server, and I'm not changing the topic, but something goes wrong :(
> Maybe any advices?
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
Index: Makefile
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tutorials/RssiDemo/RssiBase/Makefile,v
retrieving revision 1.1
diff -r1.1 Makefile
7a8,9
> PFLAGS += -DRF230_RSSI_ENERGY
>
Index: RssiBaseAppC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tutorials/RssiDemo/RssiBase/RssiBaseAppC.nc,v
retrieving revision 1.1
diff -r1.1 RssiBaseAppC.nc
46a47,49
> #elif defined(PLATFORM_IRIS)
> components RF230ActiveMessageC;
> App -> RF230ActiveMessageC.PacketRSSI;
Index: RssiBaseC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tutorials/RssiDemo/RssiBase/RssiBaseC.nc,v
retrieving revision 1.1
diff -r1.1 RssiBaseC.nc
43a44,45
> #elif defined(PLATFORM_IRIS)
> uses interface PacketField<uint8_t> as PacketRSSI;
66a69,76
> #elif defined(PLATFORM_IRIS)
> uint16_t getRssi(message_t *msg){
>
> if(call PacketRSSI.isSet(msg))
> return (uint16_t) call PacketRSSI.get(msg);
> else
> return 0xFFFF;
> }
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help