[Tinyos-2-commits] CVS: tinyos-2.x/apps/MViz mote.gif, NONE,
1.1.2.1 MViz.h, 1.1.2.3, 1.1.2.4 MVizAppC.nc, 1.1.2.2,
1.1.2.3 MVizC.nc, 1.1.2.3, 1.1.2.4
Phil Levis
scipio at users.sourceforge.net
Sun Oct 29 16:52:34 PST 2006
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/java/net/tinyos/mviz
DDocument.java, 1.1.2.9, 1.1.2.10 DLayer.java, 1.1.2.8,
1.1.2.9 DLink.java, 1.1.2.4, 1.1.2.5 DLinkModel.java, 1.1.2.3,
1.1.2.4 DMote.java, 1.1.2.6, 1.1.2.7 DMoteModel.java, 1.1.2.5,
1.1.2.6 DNavigate.java, 1.1.2.8, 1.1.2.9 DShape.java, 1.1.2.7,
1.1.2.8
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/ctp CtpInfo.nc,
1.1.2.6, 1.1.2.7 CtpP.nc, 1.1.2.8,
1.1.2.9 CtpRoutingEngineP.nc, 1.1.2.16, 1.1.2.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/apps/MViz
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv31820
Modified Files:
Tag: tinyos-2_0_devel-BRANCH
MViz.h MVizAppC.nc MVizC.nc
Added Files:
Tag: tinyos-2_0_devel-BRANCH
mote.gif
Log Message:
Include routing info and image.
--- NEW FILE: mote.gif ---
GIF89a(
áäPK%J(*u`k¸PTÔ(X ;T£C!$2RºÖÇJíb4í#L¦DåQíEdðÔ3pà`&¥baH¡DÎBR©~qû
qÈLA°bÍ8ßds0ÚHrUºáà"Ã/ÄÀE%H E<BÔÄ%¤@Ó-¦ ¢
OÐàx°ÐP!Æ!¨à
s)22USØqÁðÂ"h@ 4 ñ
È £
6~¬# 4h`¬$àA²"X° %,á`bÅ(ô±Â@L at c7Õp¡G!K
1lÁ¨<ò8¦"Ô |²#¤-àJ-¿üòD³!X Á"Ìð¬&ôA 3à" (º`G
°bÈ
Ût AÁ,~PQ±8Ú£¡ðV<îÃ$( Ë(,üXÔâ1tDòJmÔA9ª ~Y³
6É@ }\0ü!1×P³Ì#~"ÃÂðþêܪJ! $A4"þ.tqDÆ3¼T2ÆÐñÃ! 1ª¡oª"`°AR¬±<DÑ
C¨A<Æ óÈ#cÈ@Â?Þ£ªÉ!0yTÃI3Âèé0,ϬÂ(Ì!°ã8$
©ÐEquä#ûÐG>îa{èåÂ& :<C}`r=¡Ö¸D-vñGtB÷h<äQvÔPû¨G3@
J¬aþ¿0
iü@=xÄÊ/4àÐC3,ANÔágXÃ!Ìg
H@op-ò7Tá\À40ñ.H¡×ÀH!QÌÈX@.DaQhÄ ±`c`BÈpdL&¸Ã.@ÀÀ,èÂÑG{ÄjB°*â¨D
Index: MViz.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/Attic/MViz.h,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** MViz.h 28 Oct 2006 07:27:03 -0000 1.1.2.3
--- MViz.h 30 Oct 2006 00:52:32 -0000 1.1.2.4
***************
*** 18,21 ****
--- 18,23 ----
#define MVIZ_H
+ #include "AM.h"
+
enum {
/* Default sampling period. */
***************
*** 24,28 ****
};
! typedef nx_struct mviz_msg{
nx_uint16_t version; /* Version of the interval. */
nx_uint16_t interval; /* Samping period. */
--- 26,30 ----
};
! typedef nx_struct mviz_msg {
nx_uint16_t version; /* Version of the interval. */
nx_uint16_t interval; /* Samping period. */
***************
*** 30,33 ****
--- 32,38 ----
nx_uint16_t count; /* The readings are samples count * NREADINGS onwards */
nx_uint16_t reading;
+ nx_uint16_t etx;
+ nx_uint16_t link_route_value;
+ nx_am_addr_t link_route_addr;
} mviz_msg_t;
Index: MVizAppC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/Attic/MVizAppC.nc,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** MVizAppC.nc 26 Oct 2006 00:37:22 -0000 1.1.2.2
--- MVizAppC.nc 30 Oct 2006 00:52:32 -0000 1.1.2.3
***************
*** 23,27 ****
implementation {
components MainC, MVizC, LedsC, new TimerMilliC(),
! new DemoSensorC() as Sensor;
//MainC.SoftwareInit -> Sensor;
--- 23,27 ----
implementation {
components MainC, MVizC, LedsC, new TimerMilliC(),
! new DemoSensorC() as Sensor, RandomC;
//MainC.SoftwareInit -> Sensor;
***************
*** 31,35 ****
MVizC.Read -> Sensor;
MVizC.Leds -> LedsC;
!
//
// Communication components. These are documented in TEP 113:
--- 31,35 ----
MVizC.Read -> Sensor;
MVizC.Leds -> LedsC;
! MVizC.Random -> RandomC;
//
// Communication components. These are documented in TEP 113:
***************
*** 42,45 ****
--- 42,47 ----
new SerialAMSenderC(AM_MVIZ_MSG); // Sends to the serial port
+ components CtpP as Ctp;
+
MVizC.RadioControl -> ActiveMessageC;
MVizC.SerialControl -> SerialActiveMessageC;
***************
*** 51,54 ****
--- 53,58 ----
MVizC.Receive -> Collector.Receive[AM_MVIZ_MSG];
MVizC.RootControl -> Collector;
+ MVizC.CtpInfo -> Ctp;
+ MVizC.LinkEstimator -> Ctp;
//
Index: MVizC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/Attic/MVizC.nc,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** MVizC.nc 28 Oct 2006 07:27:03 -0000 1.1.2.3
--- MVizC.nc 30 Oct 2006 00:52:32 -0000 1.1.2.4
***************
*** 40,43 ****
--- 40,46 ----
interface Read<uint16_t>;
interface Leds;
+ interface CtpInfo;
+ interface LinkEstimator;
+ interface Random;
}
}
***************
*** 176,183 ****
if (!sendbusy) {
mviz_msg_t *o = (mviz_msg_t *)call Send.getPayload(&sendbuf);
- local.origin ^= 1;
- if (local.origin == 1) {
- local.reading = 13000 - local.reading;
- }
memcpy(o, &local, sizeof(local));
if (call Send.send(&sendbuf, sizeof(local)) == SUCCESS)
--- 179,182 ----
***************
*** 208,211 ****
--- 207,211 ----
event void Read.readDone(error_t result, uint16_t data) {
+ uint16_t val;
if (result != SUCCESS) {
data = 0xffff;
***************
*** 213,218 ****
}
local.reading = data;
}
!
event void SerialSend.sendDone(message_t *msg, error_t error) {
uartbusy = FALSE;
--- 213,224 ----
}
local.reading = data;
+ call CtpInfo.getEtx(&val);
+ local.link_route_value = val;
+ call CtpInfo.getParent(&val);
+ local.link_route_addr = val;
+ local.link_route_value = call LinkEstimator.getLinkQuality(local.link_route_addr);
}
! event void LinkEstimator.evicted(am_addr_t addr){}
!
event void SerialSend.sendDone(message_t *msg, error_t error) {
uartbusy = FALSE;
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/java/net/tinyos/mviz
DDocument.java, 1.1.2.9, 1.1.2.10 DLayer.java, 1.1.2.8,
1.1.2.9 DLink.java, 1.1.2.4, 1.1.2.5 DLinkModel.java, 1.1.2.3,
1.1.2.4 DMote.java, 1.1.2.6, 1.1.2.7 DMoteModel.java, 1.1.2.5,
1.1.2.6 DNavigate.java, 1.1.2.8, 1.1.2.9 DShape.java, 1.1.2.7,
1.1.2.8
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/ctp CtpInfo.nc,
1.1.2.6, 1.1.2.7 CtpP.nc, 1.1.2.8,
1.1.2.9 CtpRoutingEngineP.nc, 1.1.2.16, 1.1.2.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list