[Tinyos-help] TOS_Msg Length field changed during serial communication , Cricket motes, TinyOS.1x

2009-09-24 Thread Prasad RS
Hello, I am trying to use Cricket motes for an application (using TinyOS 1.x). I have a Cricket mote which sends distance meaurements to a Base Station. In the base station , am seeing a very strange behavior. The length of the TOS_MSg->Length field which has the information related to payload

[Tinyos-help] TOS_Msg Length field changed during serial communication , Cricket motes, TinyOS.1x

2009-09-24 Thread Prasad RS
Hello, I am trying to use Cricket motes for an application (using TinyOS 1.x). I have a Cricket mote which sends distance meaurements to a Base Station. In the base station , am seeing a very strange behavior. The length of the TOS_MSg->Length field which has the information related to payload

Re: [Tinyos-help] TOS_Msg Length field changed during serial communication , Cricket motes, TinyOS.1x

2009-09-24 Thread Michael Schippling
Assuming you haven't made any changes to the TOSBase or Java code I hazard a guess that you are using the wrong message header format when receiving on the PC. I haven't used the Crickets though... Try using ListenRaw to look at what you are really getting over the serial, and then match it up to

[Tinyos-help] TOS_Msg Length field changed during serial communication , Cricket motes, TinyOS.1x

2009-09-24 Thread Prasad RS
Hello, I am trying to use Cricket motes for an application (using TinyOS 1.x). I have a Cricket mote which sends distance meaurements to a Base Station. In the base station , am seeing a very strange behavior. The length of the TOS_MSg->Length field which has the information related to payload

Re: [Tinyos-help] TOS_Msg length

2008-04-20 Thread Michael Schippling
TOS_Msg is defined in various AM.h files according to your platform. I count 44 bytes in the T1 micaz/AM.h definition, however your mileage may vary on other versions and platforms. sizeof(TOS_Msg) will always return that number. sizeof(YourStruct) will always return (according to your count) 34.

[Tinyos-help] TOS_Msg length

2008-04-19 Thread Bhavish Aggarwal
Hi, I'm trying to ascertain the length of a TOS_Msg variable I've typecasted to a self-defined struct. The struct I use has 6 variables of 4 bytes each. Thus, the total length of the TOS_Msg variable should be 24 + 10(headers) = 34. But the length is shown to be 46. I'm confused as to how this i

Fwd: [Tinyos-help] TOS_Msg length is invalid

2008-02-14 Thread Juan José Roncero
I tried -comm serial@/dev/ttyS0:mica2 and It works perfectly!! Thank you very much Under T1 at least the micaz message that comes over the serial line has been converted to a mica2 format by TOSBase. This puts the header fields in the 'wrong' places. Try

Re: [Tinyos-help] TOS_Msg length is invalid

2008-02-11 Thread Michael Schippling
Under T1 at least the micaz message that comes over the serial line has been converted to a mica2 format by TOSBase. This puts the header fields in the 'wrong' places. Try -comm serial@/dev/ttyS0:mica2 or setting the MOTECOM env variable like that. might work... MS Juan José Roncero wrote: Hi

[Tinyos-help] TOS_Msg length is invalid

2008-02-11 Thread Juan José Roncero
Hi everyone! I´m working with micaz motes and tinyos-1.x. I´trying to connect them to a middleware application through Serial Forwarder tool but it outputs some errors: TOS_Msg length is invalid: header_lenght=265, real_lenght=9 modifying msg to fit Received message: FF FF 04 7D 04 00 01 00 01 I

RE: [Tinyos-help] TOS_Msg length is invalid?

2007-09-27 Thread lamiaimeil
more detail check > http://www.moteiv.com/community/Change_the_default_UART_baud_rate > > Regards, > > Amartya > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of lamiaimeil > Sent: Wednesday, September 19, 2007 2:46 PM &

Re: [Tinyos-help] TOS_Msg length invalid

2007-09-24 Thread Michael Schippling
I did find this when googling "TOS_Msg length is invalid" http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-July/010467.html but I think it's more relevant to micaz/2 issues. If ListenRaw works for you, you may be able to see the actual messages and decode where it's going wrong. Or

[Tinyos-help] TOS_Msg length invalid

2007-09-24 Thread lamiaimeil
Hi all, I have this problem with my new application that I never had before. When I type the command: MOTECOM=serial at COM5:tmote java net.tinyos.tools.Listen the prompt answer me: TOS_Msg length is invalid: header_length=10,real_length=16 ... modifying msg to fit I also try: java net.tinyos.

RE: [Tinyos-help] TOS_Msg length is invalid?

2007-09-20 Thread lamiaimeil
more detail check > http://www.moteiv.com/community/Change_the_default_UART_baud_rate > > Regards, > > Amartya > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of lamiaimeil > Sent: Wednesday, September 19, 2007 2:46 PM &

RE: [Tinyos-help] TOS_Msg length is invalid?

2007-09-19 Thread Amartya
lamiaimeil Sent: Wednesday, September 19, 2007 2:46 PM To: Mailing list TinyOS Subject: [Tinyos-help] TOS_Msg length is invalid? Hi all, I have this problem with my new application that I never had before. When I type the command: MOTECOM=serial at COM5:tmote java net.tinyos.tools.Listen the

[Tinyos-help] TOS_Msg length is invalid?

2007-09-19 Thread lamiaimeil
Hi all, I have this problem with my new application that I never had before. When I type the command: MOTECOM=serial at COM5:tmote java net.tinyos.tools.Listen the prompt answer me: TOS_Msg length is invalid: header_length=10,real_length=16 ... modifying msg to fit I also try: java net.tinyos.

[Tinyos-help] TOS_Msg length is invalid?

2007-09-18 Thread lamiaimeil
Hi all, I have this problem with my new application that I never had before. When I type the command: MOTECOM=serial at COM5:tmote java net.tinyos.tools.Listen the prompt answer me: TOS_Msg length is invalid: header_length=10,real_length=16 ... modifying msg to fit I also try: java net.tinyos.

[Tinyos-help] TOS_Msg length is invalid

2007-09-17 Thread lamiaimeil
Hi all, i have this problem with my new application that I never had before. When I type the command: [EMAIL PROTECTED]:tmote java net.tinyos.tools.Listen now I have: TOS_Msg length is invalid: header_length=10,real_length=16 ... modifying msg to fit I also try: java net.tinyos.sf.SerialForwar