Re: [Tinyos-help] Error using "MatlabControl.blockingFeval" of MatlabControl class

2006-07-15 Thread Michael Schippling

I'm no help with MatLab, but what you are getting is the default
Object identifier (yup, probably an address, but as Java programmers
we are not supposed to know about those...), which means that the
object you are getting doesn't implement toString(). I'm guessing
that you get the ClassCastException while trying to do something
with this object, which means you actually got something returned
from the method in question. Which is probably a good thing...

Assuming you are grasping at straws until someone who actually
knows something answers your question:

You should be able to call obj.getClass() and print the result to
see what it is (see the javadoc for "Object"). Or look at it in a
debugger for clues. And I'm not sure why you have an array of
retVals, are you looking at the right element?

MS


jorge rodriguez wrote:

Hello,

I’ve installed the MatlabControl class and I´m currently using it to 
call Matlab functions from Java. The functions “eval” and “feval” work 
properly but when I use “blockingFeval” for simple Matlab functions as 
“'sqrt'” or “abs” I don’t get a Double object as the return argument and 
get a ClassCastException. I’ve tried to see what kind of class I’m 
getting back; when I ask Java to print the return argument 
“System.out.println(retVal[0]);” I get [EMAIL PROTECTED] which looks like a 
memory address.


Any ideas?

Thanks,

Jorge


___
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


[Tinyos-help] Error using "MatlabControl.blockingFeval" of MatlabControl class

2006-07-15 Thread jorge rodriguez

Hello,

I’ve installed the MatlabControl class and I´m currently using it to call 
Matlab functions from Java. The functions “eval” and “feval” work properly 
but when I use “blockingFeval” for simple Matlab functions as “'sqrt'” or 
“abs” I don’t get a Double object as the return argument and get a 
ClassCastException. I’ve tried to see what kind of class I’m getting back; 
when I ask Java to print the return argument 
“System.out.println(retVal[0]);” I get [EMAIL PROTECTED] which looks like a 
memory address.


Any ideas?

Thanks,

Jorge


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


Re: [Tinyos-help] Timer stops after Radio stop

2006-07-15 Thread davisj2
Joe,
  I am using the Mica2, Tinyos-1.1.15, and up to date Cygwin.

Josh


Quoting Joe Polastre <[EMAIL PROTECTED]>:

> This was a bug in the micaz stack (I assume you're using micaz).
> You'll need to update from CVS.
> 
> -Joe
> 
> On 7/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hey all,
> >   I am trying to implement power management and need to shut off the radio.
> > Everything works fine and I take the first sensor reading, then shut the
> radio
> > off on sendDone event.  On the next timer fire i start the radio again,
> however
> > no packets are being transmitted.  Do i need to set a new timer?? what can
> I do??
> >
> > THanks so much in advance!!
> >
> > Josh
> >
> > -
> > This mail sent through IMP: http://horde.org/imp/
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> 




-
This mail sent through IMP: http://horde.org/imp/
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] What's this means

2006-07-15 Thread Michael Schippling

"...execute one more instruction before any pending interrupt is served."

Good manual reading catch!
I wonder if there are any nested int handlers in TOS?

MS

Conor Todd wrote:
 >From pages 13 & 14 of the ATMega128 manual, there are two types of 
interrupts: ones which are triggered and remain triggered until they are 
enabled and handled, and ones which only remain triggered as long as the 
trigger signal is present (and which may not actually have interrupt 
flags).  I am doubtful that the second type would have been chosen for 
such a core functionality as UART.


Another interesting thing to note is that "When the AVR exits from an 
interrupt, it will always return to the main program and execute one 
more instruction before any pending interrupt is served."  So maybe that 
one more instruction clears any pending interrupts before they can be 
served?


   - Conor


On 7/14/06, *jose m* <[EMAIL PROTECTED] 
> wrote:


Hello,

Recently, I've made lots and lots of questions about
transmitting data by UART port, because I have this
bug and cannot solve it (a little more, and I'll be a
lunatic). My problem is this: if my system runs
several days, one of these days (any one, any time),
no more UART transmission is done. The funny thing:
the system is still working normally, send and receive
radio packets, update internal data, etc, etc.
Debugging and testing during hours allows me to
conclude this: for some reason (hiding to me), in
component UARTM, the variable "state" remains TRUE,
and calls to UARTM's txByte() FAILs.
What can be the misterious reason of this problem? I
suspect that the tx interrupt never executes, but this
has low probability. If the ATMega128's interrupts are
disabled and enabled again, what happens with the
interrups signalled when they were disabled?

José

---
  async event result_t HPLUART.putDone() {
bool oldState;

atomic {
  dbg(DBG_UART, "intr: state %d\n", state);
  oldState = state;
  state = FALSE;
}

/* Note that the state transition/event signalling
is not atomic.
   It is possible, after state has been set to
FALSE, that
   someone calls txByte before txDone is
signalled. The event
   handler therefore may not be able to transmit.
Sharing
   the byte level can be very tricky, unless we
assure non-preemptiveness
   or have client ids. The UART implementation is
non-preemptive,
   but is not assuredly so. -pal*/
if (oldState) {
  signal ByteComm.txDone();
  signal ByteComm.txByteReady(TRUE);
}
return SUCCESS;
  }

---





___
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar 

___
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


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


Re: [Tinyos-help] Mica2 Installation Guide available

2006-07-15 Thread Michael Schippling

This may be more trouble than you care for at this point...

I have found that the mica2 works MUCH better when apps
are compiled under the contrib/xbow tree available from the
xbow support site. One of the features is a set of compile-time
defines for radio freq and strength that work, in MakeXbowLocal,
so you don't have to do the CC1000Const.h hacking. I believe
there is some slightly improved radio code as well. Xbow (used
to) say that v1.1.10 with their contrib tree was the supported
version, but perhaps some improvement has been made in v1.1.15.
I don't know if there is any other divergence in the mica2 radio
code between the standard TOS and the xbow stuff after v1.1.10

The downside of using contrib/xbow is that you need to copy some
of the standard apps, like MicaHWVerify, and modify the Makefile
to point to the right directories. Not a big deal but...

MS


Mark Bramwell wrote:


On Fri, 14 Jul 2006 14:29:19 -0500, Mark Bramwell <[EMAIL PROTECTED]> 
wrote:


I have been creating an "Installation Guide CD-ROM" for my fellow 
students at our University.  After pulling my hair out for weeks, I 
have been able to create a reproducable and stable environment for 
Mica2 motes with sensorboards.


...

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


Re: [Tinyos-help] Still not working...........Unable to compile Blink application on a fresh tinyos-2.0 beta(on Linux FC5)

2006-07-15 Thread Philip Levis

On Jul 12, 2006, at 9:08 AM, ashish makani wrote:


Hi David & other folks

 I was very excited & hopeful when I saw your post on the mailing  
list, that at last I would be able to get tinyos successfully  
installed on my linux box, especially since I spent all of  
yesterday & today, unsuccessfully I might add, trying to get it to  
work.



So, right now, I am totally clueless & feeling very frustrated &  
desperate.


Should i try to revert back to the earlier version of the avr-libc  
rpm, avr-libc-20030512cvs-1, which was installed earlier.


If so, can you guide me how i should go about doing this ?


Generally, all of these sorts of problems come down to one cause: one  
of the scripts in the ncc invocation chain is invoking the wrong  
version of another script/tool.


For example, your initial problem sounded like when you typed ncc,  
the avr-gcc and avr-libc that were being used were older ones. TinyOS  
2.x is written to use the new ones, so you ran into some of the  
inconsistencies.


The basic ncc call chain goes like this:

ncc (from tinyos-2.x/tools/scripts/tinyos/ncc) invokes
nescc (from nescc/tools/nescc) invokes
nesc1 (from nescc/src/nesc1) produces app.c and invokes
native compiler

ncc is the TinyOS-specific part of nesC; it processes .platform  
files, understands TOSSIM, etc. nescc is the script that invokes the  
nesc compiler; it understands nesdoc, etc.

nesc1 is the actual (binary) compiler.

The order specified in the install instructions is pretty important.  
For example, when you install ncc (as part of the tinyos-tools RPM),  
it finds where nescc is and has the script point to that. So what I  
think is happening is you're changing the bottom of the toolchain,  
and things above it don't know how to point to it correctly.


The best way to figure out the problems and make things work  
correctly, is to consider the call chain and make sure that each step  
is invoking the right thing. E.g., first check that when you type  
'ncc', you are invoking the version of ncc you want to be. Then,  
check which nescc (in terms of your filesystem) ncc is invoking.  
Then, check which nescc. Then, check which nesc1. The -v flag is VERY  
helpful in this regard.


For starters, can you compile a basic application with avr-gcc? E.g.,  
just write something like


main() {
  int i;
  i = 7;
  while (1)
i++;
}

If you can't compile this, then your avr-gcc is misconfigured. From  
your last error messages, it looks like doing the --force on avr-libc  
changed some files which avr-gcc was expecting to be there: its  
search path is different than what it should be. This, again, comes  
down to installing things lower down on the call chain, whose new  
locations are different than what things higher up on the call chain  
expect.


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


[Tinyos-help] Tinyviz autorun layout

2006-07-15 Thread Jason Hemann
TinyOS helpers,I am trying to script an autorun of tinyviz, and I want to load a layout from file. What is the proper syntax (e.g. layout fileload="layout.mps") for this command, and what is the proper format of a layout file?thanks ever so much,Jason Hemann 
		Do you Yahoo!? Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Testing BlackbookFullConnect

2006-07-15 Thread Roberto Cannone

Hi David,
thanks for all.
I don't understand if BlackbookFullConnect works only if
the mote is attached to serial port.
I'w run BDictionary command also on mote that they are not attached to 
serial port.

Is it possible? How can i do that?
Roberto.



- Original Message - 
From: "David Moss" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Sent: Thursday, July 13, 2006 8:17 PM
Subject: RE: [Tinyos-help] Testing BlackbookFullConnect


I also updated the blackbookconnect_readme.txt file, which details the
behavior of Blackbook5 a little better.

-David



-Original Message-
From: David Moss [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 9:44 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [Tinyos-help] Testing BlackbookFullConnect


Glad to see you got the Java end working.  But this problem is a little
strange.  Let me run some tests to try to duplicate this and I'll get back
with you.

For reference, are you using a mica- type mote?  I remember experiencing
some problems with the way the mica-'s flash stores data.





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 2:02 AM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Testing BlackbookFullConnect


Hi David,
Thanks for your help, but now I have another problem.
I'm following the blackbookconnect_readme.txt in order to
test bdictionary interfac.
I'm able to inset a key in dictionary file but I'm not
able to retrieve its value.
This is what i do:

blackbook bdictionary -insert 0xBEEF Test 4
BDictionary inserted SUCCESS: Key 0xBEEF Inserted

and

blackbook bdictionary -retrieve 0xbeef
BDictionary retrieved SUCCESS
00 00 00 00   |

this for every key that I insert.
Have you any ideas about this problem? Why it does not
retrieve the value?

- Original Message -
From: "David Moss" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, July 12, 2006 6:29 PM
Subject: RE: [Tinyos-help] Testing BlackbookFullConnect



You can find the Blackbook Java app in the TinyOS 1.x CVS under
/contrib/rincon/tools/java/

The package is in that tools/java directory under com/rincon/blackbook.

If you copy the /tools/java/com directory to your local TinyOS /tools/java
directory, you can then run the BlackbookConnect program using:

java com.rincon.blackbook.BlackbookConnect

Hope that points you in the right direction,
-David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 6:53 AM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Testing BlackbookFullConnect


Hi David, I would know approximately the date when you'll
publish the TestBlackbook java application. I'w test the
BlackbookFullConnect application and I don't know how to
do.

Thank you.
___
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

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


[Tinyos-help] xbow MTS 310 mica2 accelerometers

2006-07-15 Thread horst
I have been advised that the maximum sample rate for the accelerometers on the MTS310 for the mica2 platform is 20 Hz (20 samples per second), but I have seen reports of usage above 200 samples per second.
 
Does anyone have any experience with these boards and advice on accelerometer sampling rates?
thanks
whh___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] micaz

2006-07-15 Thread [EMAIL PROTECTED]


What you can get is 10-bit PCM samples and have a look at an
sensing (temperature, light..) application in apps/ directory. All you
need to do is to ask TinyOS ADC component to sample microphone port.

Regards,
Manjunath

On Sat, 15 Jul 2006, antonio gonga wrote:

>
> hello;
>
> I'm using MTS300/310 Multi sensor Board and I need to acquire audio from 
> microphone and send it to the Base station to be Played,
> please if anyone knows how can I aquire audio from Microphone feel free to 
> make know me. And I'd like to know the type of data from
> Microphone, if it?s PCM or not..
>
> regards
>
>
> --
> 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


[Tinyos-help] micaz

2006-07-15 Thread antonio gonga

hello;
I'm using MTS300/310 Multi sensor Board and I need to acquire audio from microphone and send it to the Base station to be Played, please if anyone knows how can I aquire audio from Microphone feel free to make know me. And I'd like to know the type of data from Microphone, if it´s PCM or not..
regards

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

[Tinyos-help] micaz

2006-07-15 Thread antonio gonga
hello;
I'm devoloping a small project, my objective is to aquire audio from 51 pin audio interface, but untill now I dont know how to do that, please if anyone knows feel free to make know me.
regards

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

[Tinyos-help] Setting IO Pin Values

2006-07-15 Thread samuel . watts
Hi, i'm having trouble setting the value of a GPIO pin on a mica2dot mote 
(specifically PW0). i have seen several examples of code for setting pin values 
but have been unable to get any results from these. would someone please be 
able to provide a simple example of a mica2dot pin being set and reset?

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