Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Fabrizio Stefani


Michael Schippling wrote:

The messages are not in ASCII format, which I think you are
hoping for by inference from your question.

They are in the same TOS_Msg format as received from
the TOSBase Mote. They are fixed length binary, but if you
use the Java Packetizer class or the C equiv in the tools
directory (in T1) you shouldn't have to know.


Are you talking about the serialforwarder written in C?
Because it doesn't understand the message format, it just replies the 
byte received from the serial to a given port.


Or do you really mean that there is a C program which understand the 
message format and creates a C data structure to store them (like the 
Java Packetizer does)?
This could be very useful to me (I'm not so skilled with java, I prefer 
C), but I cannot find any such application in the tools dir.


Can you help me?


Fabrizio Stefani



MS


Ian Welch wrote:
When serial forwarder forwards the packets to a designated are the 
each terminate by a Carage Return Line Feed?


The reason I ask is because I'm writing a program to listen to the SF 
port to save Mote data packets. Every now and again the data on the 
port comes out a different size and throws my program. If there is a 
termination character at the end of each packet I could resolve this 
problem.


Also, I don't know Java so looking through the tools source code 
doesn't really help.


Thanks,
   Ian




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
This email has been ClamScanned by ArsLogica antivirus server !
 www.clamav.net
___



--

Fabrizio Stefani, Ph.D.
Researcher

ArsLogica S.r.l.
IT Laboratories

Business Innovation Centre
Unit 6 - 1st floor
BIC, Via Trento, 117
38017 Mezzolombardo
(TN), Italy

Email: [EMAIL PROTECTED]
Skype: fabrizio.stefani
Phone: +39 0461 600253
Fax:   +39 0461 603250

Web Site: www.arslogica.it
_
This email has been ClamScanned !
 www.clamav.net
_
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] C program for Listern

2006-10-19 Thread prabhu govindaswamy
Hi,

Is there any C program available to listern.
I desperately need one to communicate between PC and
Tmote. I am zero in java and dont want to jump into
...
Help appreciated.

--
Thanks and Regards,
prabhu

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Frequency and Channel operation on CC2420

2006-10-19 Thread Tie Luo
1. What is the channel switch latency of CC2420?
2. Are the channels orthogonal to each other?

Thanks in advance!-- Regards,Tie 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] What MAC algorithm is used on mica

2006-10-19 Thread roy liu ^-^
tinyos-help,hi!

   I learn from the TinyOS FAQ that a kind of  MAC algorithm called 
BMAC is used on mica2 and MicaZ, but  What MAC algorithm is used on mica ?

   Can anyone give me some indications?
   Thanks a lot.

   


roy  liu ^-^
[EMAIL PROTECTED]
  2006-10-19

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] C program for Listern

2006-10-19 Thread R. Steve McKown
On Thursday 19 October 2006 02:22 am, prabhu govindaswamy wrote:
 Is there any C program available to listern.
 I desperately need one to communicate between PC and
 Tmote. I am zero in java and dont want to jump into

For TinyOS 2.x there is a C sdk in the support/sdk/c folder 
(/opt/tinyos-2.x/support/sdk/c).
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] C program for Listern

2006-10-19 Thread [EMAIL PROTECTED]

Hi,
Here is C program in the attachment. And I have used some threads
may you can just comment that part of the code. Make sure you are running
Serial Forwarder.

Hope this helps...
Manjunath

On Thu, 19 Oct 2006, Markus Becker wrote:


 On Thu, 19 Oct 2006, prabhu govindaswamy wrote:

  Hi,
 
  Is there any C program available to listern.

 In tools/src/sf/

  I desperately need one to communicate between PC and
  Tmote. I am zero in java and dont want to jump into
  ...
  Help appreciated.
 
  --
  Thanks and Regards,
  prabhu
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 

 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Changing Micaz Frequency at runtime in TinyOS 2.x

2006-10-19 Thread Tie Luo
I uses CC2420Config.setChannel(16) and then CC2420Config.sync(), but it does not work. What are possible reasons? How long will it take for micaz to switch channels? Thanks!

Tie
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Question about TinyAlloc

2006-10-19 Thread Sangwon Hyun



Hello all,

Now I am trying MemAlloc interface in 
TinyAlloc.
Iam not surewhat is the maximum size 
of dynamically allocatable memory which TinyAllocprovides.

When I tried "call MemAlloc.allocate(h, 
254)", the final statusof the allocation in allocComplete event was 
success. But for the values more than 254, allocation was failed.
So I thinkthe maximum possible size is about 
256 bytes, but I am not sure.

And if I want to use morememory for dynamic 
memory allocation, how can I do that?
Can I increase the memory size for dynamic memory 
allocation by modifying the value of some variable in TinyAlloc?

If anybody have some information about it, please 
let me know.

Thanks,
Sangwon Hyun.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] TOSSIM TimyOS2.x issues

2006-10-19 Thread Carlos Perez
I had the same problem and I just changed the PYDIR variable in sim.extra to a directory which contained the file Python.h. Make sure the directory you're pointing to contains this file, otherwise it's the wrong directory.
On 18 Oct 2006 06:10:42 -, Sai  Krishna M [EMAIL PROTECTED] wrote:

 
hi all ...

I tried all possible ways to make TOSSIM to work on 2.x (changed sim.extra and also tried changing -lpython config in system.py). No USE.

Can anybody help? How can I uninstall Python2.3 and reinstall Python2.5? I iosntalled 2.3 as a part of TinyOS2.x installation and so simple installion of Python2.5 anywhere else is not working.

Rgds
Sai

PS --

It gives the following errors when i compile for TOSSIM --

/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3418: error: ISO C++ forbids
  declaration of `PyObject' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3418: error: parse error before
  `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3420: error: `m' undeclared
  (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3422: error: `SWIG_globals'
  undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3422: error: `
  SWIG_Python_newvarlink' undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3423: error: `SwigMethods'
  undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3423: error: `Py_InitModule'
  undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3424: error: `PyModule_GetDict'
  undeclared (first use this function)
make: *** [sim-exe] Error 1

warnings --

.c -board=micasb -Wno-nesc-data-race BlinkAppC.nc  -fnesc-dump=comp
sc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-d
cedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
luded from /opt/tinyos-2.x/tos/lib/tossim/sim_mac.c:34,
   from /opt/tinyos-2.x/tos/lib/tossim/tos.h:90:
-2.x/tos/lib/tossim/sim_gain.c:14: warning: declaration of `link' sha
 declaration
e/sys/unistd.h:97: warning: location of shadowed declaration
-2.x/tos/lib/tossim/sim_gain.c:20: warning: declaration of `link' sha
 declaration
e/sys/unistd.h:97: warning: location of shadowed declaration
-2.x/tos/lib/tossim/sim_gain.c: In function `sim_gain_allocate_link':

-2.x/tos/lib/tossim/sim_gain.c:134: warning: declaration of `link' sh
l declaration
e/sys/unistd.h:97: warning: location of shadowed declaration
-2.x/tos/lib/tossim/sim_gain.c: At top level:
-2.x/tos/lib/tossim/sim_gain.c:141: warning: declaration of `link' sh
l declaration
e/sys/unistd.h:97: warning: location of shadowed declaration





___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] C program for Listern

2006-10-19 Thread Michael Schippling

uh...where...is the C program? Did an attachment get wiped?
MS

[EMAIL PROTECTED] wrote:

Hi,
Here is C program in the attachment. And I have used some threads
may you can just comment that part of the code. Make sure you are running
Serial Forwarder.

Hope this helps...
Manjunath

On Thu, 19 Oct 2006, Markus Becker wrote:


On Thu, 19 Oct 2006, prabhu govindaswamy wrote:


Hi,

Is there any C program available to listern.

In tools/src/sf/


I desperately need one to communicate between PC and
Tmote. I am zero in java and dont want to jump into
...
Help appreciated.

--
Thanks and Regards,
prabhu

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Ben Buckner
The short answer is no, there's no CR/LF. However, the packets do come with
a frame, and the frame has an escape rule that can result in escape
characters being inserted. That's probably why you unexpectedly get changing
packet lengths. The right way to pick packets out of the stream is to look
for the framing bytes, 0x7E, which come at the beginning and the end of the
packet.

For details, see the often-referenced

http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Pack
ets.pdf

Regards,
Ben Buckner
-Original Message-

Date: Wed, 18 Oct 2006 14:47:59 -0600
From: Ian Welch [EMAIL PROTECTED]
Subject: [Tinyos-help] Serial Forwarder and Listen
To: tinyos-help@millennium.berkeley.edu
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

When serial forwarder forwards the packets to a designated are the each
terminate by a Carage Return Line Feed?

The reason I ask is because I'm writing a program to listen to the SF port
to save Mote data packets. Every now and again the data on the port comes
out a different size and throws my program. If there is a termination
character at the end of each packet I could resolve this problem.

Also, I don't know Java so looking through the tools source code doesn't
really help.

Thanks,
   Ian


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Michael Schippling

Looks like your prayers may be answered in the message thread:
[Tinyos-help] C program for Listern

Otherwise reading the correct number of bytes from the port into
a buffer and casting it to the TOS_Msg struct should do the trick.
Oh, yeah, if you do that on a big-endian machine you'll have to
swap the bytes in the short ints.
MS

Fabrizio Stefani wrote:


Michael Schippling wrote:

The messages are not in ASCII format, which I think you are
hoping for by inference from your question.

They are in the same TOS_Msg format as received from
the TOSBase Mote. They are fixed length binary, but if you
use the Java Packetizer class or the C equiv in the tools
directory (in T1) you shouldn't have to know.


Are you talking about the serialforwarder written in C?
Because it doesn't understand the message format, it just replies the 
byte received from the serial to a given port.


Or do you really mean that there is a C program which understand the 
message format and creates a C data structure to store them (like the 
Java Packetizer does)?
This could be very useful to me (I'm not so skilled with java, I prefer 
C), but I cannot find any such application in the tools dir.


Can you help me?


Fabrizio Stefani



MS


Ian Welch wrote:
When serial forwarder forwards the packets to a designated are the 
each terminate by a Carage Return Line Feed?


The reason I ask is because I'm writing a program to listen to the SF 
port to save Mote data packets. Every now and again the data on the 
port comes out a different size and throws my program. If there is a 
termination character at the end of each packet I could resolve this 
problem.


Also, I don't know Java so looking through the tools source code 
doesn't really help.


Thanks,
   Ian




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
This email has been ClamScanned by ArsLogica antivirus server !
 www.clamav.net
___




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Michael Schippling

oops...as bbuckner just pointed out, I forgot about the danged escape chars,
So the cast-the-buffer thing doesn't work reliably...have to parse the stream.
sorry
MS

Michael Schippling wrote:

Looks like your prayers may be answered in the message thread:
[Tinyos-help] C program for Listern

Otherwise reading the correct number of bytes from the port into
a buffer and casting it to the TOS_Msg struct should do the trick.
Oh, yeah, if you do that on a big-endian machine you'll have to
swap the bytes in the short ints.
MS

Fabrizio Stefani wrote:


Michael Schippling wrote:

The messages are not in ASCII format, which I think you are
hoping for by inference from your question.

They are in the same TOS_Msg format as received from
the TOSBase Mote. They are fixed length binary, but if you
use the Java Packetizer class or the C equiv in the tools
directory (in T1) you shouldn't have to know.


Are you talking about the serialforwarder written in C?
Because it doesn't understand the message format, it just replies the 
byte received from the serial to a given port.


Or do you really mean that there is a C program which understand the 
message format and creates a C data structure to store them (like the 
Java Packetizer does)?
This could be very useful to me (I'm not so skilled with java, I 
prefer C), but I cannot find any such application in the tools dir.


Can you help me?


Fabrizio Stefani



MS


Ian Welch wrote:
When serial forwarder forwards the packets to a designated are the 
each terminate by a Carage Return Line Feed?


The reason I ask is because I'm writing a program to listen to the 
SF port to save Mote data packets. Every now and again the data on 
the port comes out a different size and throws my program. If there 
is a termination character at the end of each packet I could resolve 
this problem.


Also, I don't know Java so looking through the tools source code 
doesn't really help.


Thanks,
   Ian


 



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 


___
This email has been ClamScanned by ArsLogica antivirus server !
 www.clamav.net
___




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Ian Welch
Thanks all for the help, I ended up reading the message header first and then reading the number of data bytes represented by the Length field in the header.Thanks again, Ian
On 10/19/06, Michael Schippling [EMAIL PROTECTED] wrote:
oops...as bbuckner just pointed out, I forgot about the danged escape chars,So the cast-the-buffer thing doesn't work reliably...have to parse the stream.sorryMSMichael Schippling wrote: Looks like your prayers may be answered in the message thread:
 [Tinyos-help] C program for Listern Otherwise reading the correct number of bytes from the port into a buffer and casting it to the TOS_Msg struct should do the trick. Oh, yeah, if you do that on a big-endian machine you'll have to
 swap the bytes in the short ints. MS Fabrizio Stefani wrote: Michael Schippling wrote: The messages are not in ASCII format, which I think you are
 hoping for by inference from your question. They are in the same TOS_Msg format as received from the TOSBase Mote. They are fixed length binary, but if you use the Java Packetizer class or the C equiv in the tools
 directory (in T1) you shouldn't have to know. Are you talking about the serialforwarder written in C? Because it doesn't understand the message format, it just replies the
 byte received from the serial to a given port. Or do you really mean that there is a C program which understand the message format and creates a C data structure to store them (like the
 Java Packetizer does)? This could be very useful to me (I'm not so skilled with java, I prefer C), but I cannot find any such application in the tools dir. Can you help me?
 Fabrizio Stefani MS Ian Welch wrote: When serial forwarder forwards the packets to a designated are the
 each terminate by a Carage Return Line Feed? The reason I ask is because I'm writing a program to listen to the SF port to save Mote data packets. Every now and again the data on
 the port comes out a different size and throws my program. If there is a termination character at the end of each packet I could resolve this problem.
 Also, I don't know Java so looking through the tools source code doesn't really help. Thanks,Ian
  ___
 Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list 
Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 ___ This email has been ClamScanned by ArsLogica antivirus server !
www.clamav.net ___ ___ Tinyos-help mailing list 
Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Changing Micaz Frequency at runtime in TinyOS 2.x

2006-10-19 Thread Philip Levis

On Oct 19, 2006, at 9:33 AM, Tie Luo wrote:

I uses CC2420Config.setChannel(16) and then CC2420Config.sync(),  
but it does not work. What are possible reasons?  How long will it  
take for micaz to switch channels?  Thanks!




Can you define does not work? Does the node continue to operate at  
the same frequency? Does it stop being able to receive or transmit?  
Does it crash? Does it take a long time to change?


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] sensor network datasets

2006-10-19 Thread Manju
Hi,I am performing data mining experiments on the sensor network data. Can anyone give me links to web pages which have datasets collected during experiments?Here are few links which I already know about:
1) http://berkeley.intel-research.net/labdata/2) http://robotics.usc.edu/~namos/data.htmlI am just looking for more datasets. Any help would be greatly appreciated
thanks,Manju
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TinyDB for TelosB

2006-10-19 Thread Ivan Roca








Hi,

It
would wish to know if somebody this working with TinyDB for Telosb.

Any help would be greatly appreciated 

thanks,





Ivan






___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Tinyviz plugin problem

2006-10-19 Thread Rodrigo Melo
Hi,I'm trying to create a plugin for Tinyviz. My problem is that It is not added to the plugins list inside Tinyviz (so I can select it).Already executed make on /opt/tinyos-1.x/tools/java/net/tinyos/sim
It's compiling well, I've compared the code to other plugins (actually my code is based on code of other plugins) and its just fine.After the make the file plugins.list contains my new plugin. But when I open Tinyviz it is not there. 
Is there anything I'm missing??? Can anyone help me???I'm using TinyOS 1.1.15 and java 1.5.0_9.Thanks-- Rodrigo Melo 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TinyDB parser problem

2006-10-19 Thread Robert Hammond

Hi all,

I am trying to interact with TinyDB using matlab and I cannot seem to get 
the parser to work. I believe that I import all of the appropriate java 
packages and then try to execute this:


--
SQLstr=('SELECT light');
w=uint8(1);//uint is the equivalent of byte in 
matlab

myQuery = net.tinyos.tinydb.parser.SensorQueryer.translateQuery(SQLstr,w);
---

and I recieve the following error:

---
Java exception occurred:
net.tinyos.tinydb.parser.ParseException

	at 
net.tinyos.tinydb.parser.SensorQueryer.translateQuery(SensorQueryer.java:89)

---


I believe that I need to do something along the lines of 
TinyDBMain.debug=true, but I can't for the life of me figure out how to do 
that in matlab.


If anyone can offer any help at all I would really appreciate it, I am at a 
complete loss and have been so for weeks!


cheers,
Robert

_
Stay in touch with old friends and meet new ones with Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] C program for Listern

2006-10-19 Thread [EMAIL PROTECTED]

Oh!!! Here I am re-attaching the 10KB program...


manjunath

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

#include sys/socket.h
#include netinet/in.h
#include netdb.h
#include stdio.h
#include stdint.h
#include errno.h
#include sys/poll.h
#include sys/time.h
#include string.h
#include sys/timeb.h
#include unistd.h
#include pthread.h
#include sys/signal.h
#include math.h

#define PROBABILITY 0.01
#define THRESHOLD 0.5
#define NUM_OF_NODES 3






/* 
 * Random Number Generator
 */

/* Random number generator ran1 from Computers in Physics */
/* Volume 6 No. 5, 1992, 522-524, Press and Teukolsky */
/* To generate real random numbers 0.0-1.0 */
/* Should be seeded with a negative integer */
#define IA 16807
#define IM 2147483647
#define IQ 127773
#define IR 2836
#define NTAB 32
#define EPS (1.2E-07)
#define MAX(a,b) (ab)?a:b
#define MIN(a,b) (ab)?a:b

double randReal(idum)
int *idum;
{
int j,k;
static int iv[NTAB],iy=0;
void nrerror();
static double NDIV = 1.0/(1.0+(IM-1.0)/NTAB);
static double RNMX = (1.0-EPS);
static double AM = (1.0/IM);

if ((*idum = 0) || (iy == 0)) {
*idum = MAX(-*idum,*idum);
for(j=NTAB+7;j=0;j--) {
k = *idum/IQ;
*idum = IA*(*idum-k*IQ)-IR*k;
if(*idum  0) *idum += IM;
if(j  NTAB) iv[j] = *idum;
}
iy = iv[0];
}
k = *idum/IQ;
*idum = IA*(*idum-k*IQ)-IR*k;
if(*idum0) *idum += IM;
j = iy*NDIV;
iy = iv[j];
iv[j] = *idum;
return MIN(AM*iy,RNMX);
}
#undef IA 
#undef IM 
#undef IQ
#undef IR
#undef NTAB
#undef EPS 
#undef MAX
#undef MIN


time_t syncsecs;
short syncmsecs;
void *playSound();
void *randomSound();

typedef struct TOS_Msg {
uint16_t addr;
uint8_t type;
uint8_t group;
uint8_t length;
uint8_t data[29];
}TOS_Msg;
typedef TOS_Msg * TOS_MsgPtr;

/* 
 * Time stamped pkt
 */
typedef struct localTOS_Msg {
uint16_t addr;
uint8_t type;
uint8_t group;
uint8_t length;
uint8_t data[29];
}localTOS_Msg;
 
   typedef struct DemoMsg {
  uint16_t source;
  uint16_t number;
  char color;
  } DemoMsg;
 
   typedef DemoMsg * DemoMsgPtr;
 
  / Read Input Line **/
  // this is some old code I copied from another program to 
  // read a line of input from the keyboard
  int getline( char s[], int lim ) {
 int c, i;
 for (i=0; ilim-1  (c=getchar())!=EOF  c!='\n'; ++i) s[i] = c;
 if (c == '\n') { s[i]=c; ++i; };
s[i] = '\0';
 return i;
 }

  / Write TOS_Msg to Socket ***/
  // this code is modified from another program to write all bytes
  // of a TOS_Msg to the TCP socket
  void putStream( int socket, TOS_MsgPtr p ) {
 int i, r;
 uint8_t n;
 char * s;
  extern int errno;
 n = p-length + sizeof(TOS_Msg) - 29;
 s = (char *) p;
  // SerialForwarder expects the first byte to be a count
  // of the number of bytes in the TOS_Msg.
  r = write(socket, n, 1);
  // printf(sent %x\n,n);
  if (r  0) { perror(putStream error); exit(errno); }
 
 for (i = 0; i  n; i++) {
r = write(socket, s[i], 1);
// printf(sent %x\n,*(s+i));
if (r  0) { perror(putStream error); exit(errno); }
}
  }

  / Read Stream from Socket **/
  void getStream( int socket, TOS_MsgPtr p ) {
 int i, r;
 char * s;
 uint8_t n;
 extern int errno;
 s = (char *) p;

 // first byte read should be the count of the number
 // of bytes in the received TOS_Msg
 r = read(socket, n, 1);
 if (r  0) { perror(getStream error); exit(errno); }
 if (r == 0) { printf(connection broken!\n); exit(0); }
 // printf(got message for %d bytes\n,m); 

 // now read the data
 if ( n  sizeof(TOS_Msg) ) {
printf(wierd message for %d bytes returned\n,n);
exit(1);
}
 for (i = 0; i  n; i++) {
r = read(socket, s[i], 1);
if (r  0) { perror(getStream error); exit(errno); }
if (r == 0) { printf(connection broken!\n); exit(0); }
}
 return;
  }

  / Exchange SF Protocol Number **/
  // wierd protocol code needed by SerialForwarder -- totally
  // undocumented, I had to read the code of SFProtocol.java
  void exchange( int socket ) {
 int i, r;
 char s[2];
 extern int errno;
 for (i = 0; i  2; i++) {
r = read(socket, s[i], 1);
if (r  0) { perror(getExchange error); exit(errno); }
if (r == 0) { printf(connection broken!\n); exit(0); }
}
 if ( !(s[0] == 'T'  s[1] == '!') ) {
printf(SFProtocol exchange 

RE: [Tinyos-help] Changing Micaz Frequency at runtime in TinyOS 2.x

2006-10-19 Thread Paul Chiang

I have encountered the same problem, and conducting some tests, I was able
to determine that the next call to AMSend.send() after syncDone() is
signaled fails to signal a sendDone() event even though the call returned
SUCCESS.

The node continued to be operational, and a call to
CC2420Config.getChannel() returned the expected (new) channel number.
However, the node was unable to receive messages on either the original
channel or the new channel.

Paul C.

-Original Message-

Can you define does not work? Does the node continue to operate at  
the same frequency? Does it stop being able to receive or transmit?  
Does it crash? Does it take a long time to change?

Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help