[Tinyos-help] error in the Send interface?
Benigno Zurita
benigno.zurita at gmail.com
Tue May 2 02:33:48 PDT 2006
Hi,
I'm running a sensing application on *tmotes* based on the Surge app.
Basically I send a SimpleCmdMsg to a concrete sensor which provoques an
answer from this sensor to the base station (the sensor connected to the
PC) with its temperature and humidity.
I send the data in the payload of a MultiHop message (which, in turn, is
nested in the payload of a AMstandard packet) using the Send interface
provided with the distribution.
I keep a rate of two messages per second to avoid possible network
congestion.
Everything works perfectly (sending, receiving, multihoping...) until
one sensor in the network starts to send packets with only the
AM-standard header
[ I get the error: /receive error for net.tinyos.aegis.MultihopMsg (AM
type 21): invalid length message received (too short) /]
This is the data I receive in the base station:
Received message: 00 21 08 A4 FF FF 7E 00 11 7D
Which is the header of my AM-standard packet.
This sensor will continue sending this packet forever.
I've tried to incorporate the Reset interface and ResetC component to
send a 'reset' order from the Base Station to the node which is sending
the wrong packet, but it has no effect, even after reseting it in this
way it continues sending just the header.
The only solution to this problem is to reinstall the program from the
PC to the sensor again, but, of course, this is a big problem since I
can not assume that I will have access to all the sensors and I don't
want them to be useless because of this error.
I'm pretty sure that the receiver is working perfectly because it
continues receiving the packets of the rest of the network.
It would be very nice from you if you can help me, because I can not see
where the problem can be. Thanks in advance,
Best,
Benigno Zurita
<benigno.zurita at gmail.com>
More information about the Tinyos-help
mailing list