Hi,

    I've been modifying SurgeTelos to work with TMote Sky and its sensor suite.
What I've been trying to do is to include the readings of all sensors in a
single message, but in doing so, an error in the communication occurs (The red
led stays lit). However, if I remove one of the fields in my modified SurgeMsg
everything works fine.

Here's the whole SurgeMsg (doesn't work):

typedef struct SurgeMsg {
  uint16_t type;
  
  uint16_t humidity;
  uint16_t temperature;
  uint16_t tsr;
  uint16_t par;
  uint16_t itemp;
  uint16_t ivolt;
  uint16_t parentaddr;
  uint32_t seq_no;
} SurgeMsg;

and this works fine:

typedef struct SurgeMsg {
  uint16_t type;
  uint16_t humidity;
  uint16_t temperature;
  uint16_t tsr;
  uint16_t par;
  //uint16_t itemp;
  uint16_t ivolt;
  uint16_t parentaddr;
  uint32_t seq_no;
} SurgeMsg;

So my questions to any of you is: is there a way that I can include every sensor
 reading of the TMote Sky in a single message without modifying any of the
remaining fields (i.e. making the seq_no a 16 bit field)???

Regards,


Luis Palafox


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to