From d03a93b123972e8e55b85de7347179f1d948ed2c Mon Sep 17 00:00:00 2001 From: mmaroti Date: Sun, 29 Nov 2009 05:47:19 +0000 Subject: [PATCH] changed displayed info for RF230Sniffer --- tos/chips/rf2xx/rf212/RF212DriverLayerP.nc | 6 ++++-- tos/chips/rf2xx/rf230/RF230DriverLayerP.nc | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc index 0bd62ab3..1365e6a8 100644 --- a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc +++ b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc @@ -524,7 +524,7 @@ implementation { length = getHeader(msg)->length; - call DiagMsg.str("t"); + call DiagMsg.str('t'); call DiagMsg.uint32(call PacketTimeStamp.isValid(rxMsg) ? call PacketTimeStamp.timestamp(rxMsg) : 0); call DiagMsg.uint16(call RadioAlarm.getNow()); call DiagMsg.int8(length); @@ -625,11 +625,13 @@ implementation { length = getHeader(rxMsg)->length; - call DiagMsg.str("r"); + call DiagMsg.str('r'); call DiagMsg.uint32(call PacketTimeStamp.isValid(rxMsg) ? call PacketTimeStamp.timestamp(rxMsg) : 0); call DiagMsg.uint16(call RadioAlarm.getNow()); call DiagMsg.int8(crc != 0 ? length : -length); call DiagMsg.hex8s(getPayload(rxMsg), length - 2); + call DiagMsg.int8(call PacketRSSI.isSet(rxMsg) ? call PacketRSSI.get(rxMsg) : -1); + call DiagMsg.uint8(call PacketLinkQuality.isSet(rxMsg) ? call PacketLinkQuality.get(rxMsg) : 0); call DiagMsg.send(); } #endif diff --git a/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc b/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc index 7dbdb657..65de3ca5 100644 --- a/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc +++ b/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc @@ -535,7 +535,7 @@ implementation { length = getHeader(msg)->length; - call DiagMsg.str("t"); + call DiagMsg.chr('t'); call DiagMsg.uint32(call PacketTimeStamp.isValid(rxMsg) ? call PacketTimeStamp.timestamp(rxMsg) : 0); call DiagMsg.uint16(call RadioAlarm.getNow()); call DiagMsg.int8(length); @@ -638,11 +638,13 @@ implementation { length = getHeader(rxMsg)->length; - call DiagMsg.str("r"); + call DiagMsg.chr('r'); call DiagMsg.uint32(call PacketTimeStamp.isValid(rxMsg) ? call PacketTimeStamp.timestamp(rxMsg) : 0); call DiagMsg.uint16(call RadioAlarm.getNow()); call DiagMsg.int8(crc == 0 ? length : -length); call DiagMsg.hex8s(getPayload(rxMsg), length - 2); + call DiagMsg.int8(call PacketRSSI.isSet(rxMsg) ? call PacketRSSI.get(rxMsg) : -1); + call DiagMsg.uint8(call PacketLinkQuality.isSet(rxMsg) ? call PacketLinkQuality.get(rxMsg) : 0); call DiagMsg.send(); } #endif -- 2.39.2