[Tinyos-help] Oscilloscope

2007-11-13 Thread matteo costa
Hi. I need to modify Oscilloscope application in order to obtain for each tmote 
I connect two or more sensor readings...for instance voltage from VoltageC() 
and brightness from HamamatsuS1087ParC(). Could anyone help me please? How have 
I to modify  AppC? 
.
components new HamamatsuS1087ParC() as light,
.
OscilloscopeC.Read -> light

in this way interface Read read both voltage and light and the result graph in 
java is something like this /\/\/\/\/\/\/\ obviously.
Probably I need two different interface:
OscilloscopeC.Read0  -> voltage;
OscilloscopeC.Read1 ->light;
I try to duplicate components and interfaces and modify the code in C.nc but 
doesn't work...
I have to modify OscilloscopeC.nc in order to split voltage packages from light 
packages and I have also to modify java programs but I'm not able...
if anyone can help me...maybe there is already something like this works on the 
net? thanks!___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] oscilloscope

2010-01-12 Thread Jose Jimenez
I would like to know how I can modify the length of the message, because the 
length message of the oscilloscope is not the same to the real message.


  ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope

2010-07-29 Thread CHEN WEIMING
Hello, all:

I edited the java code in Oscilloscope to display the data received, in the
Node class, I have the following function to update data:

void update(int type, int reading) {
for (int i=Store-1;i>0;i--)
Data[type][i] = Data[type][i-1];
Data[type][0] = reading;
 }

but when I tested it, I found that only Data[type][0] is updated, but all
the following data did not change (from Data[type][1] to Data[type][Store -
1]), can someone tell me what is the problem?
Thanks very much.

The edited Node class:

class Node {
/*
 * 0 for temperature
 */
final static int Var = 5;  // how many things to measure, tem etc, now
only measure temperature
final static int Store = 100; // how many data to store

/* The mote's identifier */
int id;

int[][] Data = new int[Var][Store];
//int dataStart, dataEnd;

Node(int _id) {
id = _id;
}


/* Data received containing NREADINGS samples from messageId * NREADINGS

   onwards */
void update(int type, int reading) {
for (int i=Store-1;i>0;i--)
Data[type][i] = Data[type][i-1];
Data[type][0] = reading;
}

/* Return value of sample x, or -1 for missing data */
int getData(int type, int x) {
if (x < 0 || x >= Store)
return 0;

if(type<0 || type >= Var)
return 0;

else
return Data[type][x];
}
/*
// Return number of last known sample
int maxX() {
return 1;
}
*/
}


Best Regards,
CHEN WEIMING
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope

2010-07-29 Thread CHEN WEIMING
Hello, all:

I edited the java code in Oscilloscope to display the data received, in the
Node class, I have the following function to update data:

void update(int type, int reading) {
for (int i=Store-1;i>0;i--)
Data[type][i] = Data[type][i-1];
Data[type][0] = reading;
 }

but when I tested it, I found that only Data[type][0] is updated, but all
the following data did not change (from Data[type][1] to Data[type][Store -
1]), can someone tell me what is the problem?
Thanks very much.

The edited Node class:

class Node {
/*
 * 0 for temperature
 */
final static int Var = 5;  // how many things to measure, tem etc, now
only measure temperature
final static int Store = 100; // how many data to store

/* The mote's identifier */
int id;

int[][] Data = new int[Var][Store];
//int dataStart, dataEnd;

Node(int _id) {
id = _id;
}


/* Data received containing NREADINGS samples from messageId * NREADINGS

   onwards */
void update(int type, int reading) {
for (int i=Store-1;i>0;i--)
Data[type][i] = Data[type][i-1];
Data[type][0] = reading;
}

/* Return value of sample x, or -1 for missing data */
int getData(int type, int x) {
if (x < 0 || x >= Store)
return 0;

if(type<0 || type >= Var)
return 0;

else
return Data[type][x];
}
/*
// Return number of last known sample
int maxX() {
return 1;
}
*/
}


Best Regards,
CHEN WEIMING
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope

2007-05-10 Thread [EMAIL PROTECTED]
Hi i read lesson 6 and i try to use it, but i have a question.
Can i show only one data on Oscilloscope GUI?+
the tutorial use a buffer of 10 data but i want to show only one data at one 
time; i change the value of "BUFFER_SIZE" in "OscopeMsg" but this action caused 
some error when showing data.

What do i do to do that work well?

Thanks


--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it/


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


[Tinyos-help] Oscilloscope ....

2007-07-17 Thread Hossam El-Din Hassanein

I'm using a mica2 mote with the java applet Oscilloscope ... I need to have
the oscilloscope reading and displaying readings other than light readings
... I need it to read any other readings that is being received from the
sensor board .. how could this be done 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope application

2007-11-13 Thread Abdullah Kadri
Dear All,

 

I need to use oscilloscope application with my micaz mote. I want to use one
of the analog/digital converter ports of Atmega128L as an input for analog
signal. I've gone through the oscilloscope application and found that I need
to change some code. Please I want to know if my logic is right or not:

 

The OscilloscopeM component uses ADC interface. This ADC is provided by
DemoSensorC component. I traced this interface to understand how ADC.getData
( ) works and found that I need to specify the A/D port which is "F1" from
ATmega128L. The problem is that I am using micaz mote which requires HPLADCM
component and HPLADC interface for ADC applications. The issue here is that
there is no getData( ) command in HPLADC interface. I am not able to find
the link between using ADC.getData( ) and the use of the micaz mote.

 

Thank you very much for any helpful comment on this.

 

Abdullah Kadri, P.Eng., Ph.D. Candidate 
The University of Western Ontario 
Department of Electrical and Computer Engineering 
Phone: (519) 661-2111 ext. 81271

 

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

[Tinyos-help] Oscilloscope Application

2007-11-15 Thread Abdullah Kadri
I have a problem with oscilloscope application. When I run the Listen
process I do not see any traffic. And even when I open the Oscilloscope GUI
I do not see any signal. The Leds on the board are blinking and I am using
Micaz board. I do not have a photo sensor onboard. Does this affect the
process?

 

Abdullah Kadri, P.Eng., Ph.D. Candidate 
The University of Western Ontario 
Department of Electrical and Computer Engineering 
Phone: (519) 661-2111 ext. 81271

 

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

[Tinyos-help] Oscilloscope app

2008-05-08 Thread Daniel Pereira
Hi All,

First of all, I'd like to thank everyone in this group to help me to
prepare my tinyos 2.x environment.
Now, I'm trying to execute the oscilloscope application.
1) Oscilloscope$ make
2) Oscilloscope/java$ make
3) Oscilloscope/java$ run

In the third step, I've received the following message:
[EMAIL PROTECTED]:9002:died - exiting (java.net.ConnectException: Connection 
refused)

My doubt is, How should I spread the micaz platforms?
Should I connect one in the MIB520?
Does the java software use usb port to gather the data?

Thanks all
Daniel
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] oscilloscope problem

2009-10-09 Thread maha timraz

Hi

Im new in tinyos .Im trying to install the oscilloscope appplication to a mica2 
 ( according to lesson 6 in tutorials ) . I have attached mica2 on top of 
MIB510 and MTS300 sesnor board to the bottom . It gives me this output : 

 

eng.je...@design /opt/tinyos-1.x/apps/oscilloscope
$ make mica2 install mib510,com4
compiling Oscilloscope to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall -Wshadow -DDE
F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10 -fnesc-cfile=build/mica2/ap
p.c  Oscilloscope.nc -lm
compiled Oscilloscope to build/mica2/main.exe
6996 bytes in ROM
 337 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
make[1]: Entering directory `/opt/tinyos-1.x/apps/oscilloscope'
installing mica2 binary
uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff  --erase
pulse
Atmel AVR ATmega128 is found.
Erasing device ...
pulse
Reinitializing device
Atmel AVR ATmega128 is found.

Fuse Extended Byte set to 0xff
sleep 1
uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff  --upload if=build/mica2/main.s
rec
pulse
Atmel AVR ATmega128 is found.
Uploading: flash

Fuse Extended Byte set to 0xff
sleep 1
uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff  --verify if=build/mica2/main.s
rec
pulse
Atmel AVR ATmega128 is found.
Verifying: flash


flash error at address 0x1a2d: file=0x01, mem=0x00
flash error at address 0x1a2e: file=0xe8, mem=0x00
flash error at address 0x1a2f: file=0x2f, mem=0x00
flash error at address 0x1a30: file=0xff, mem=0x00
flash error at address 0x1a31: file=0x27, mem=0x00
flash error at address 0x1a32: file=0xee, mem=0x00
flash error at address 0x1a33: file=0x59, mem=0x00
flash error at address 0x1a34: file=0xfe, mem=0x00
flash error at address 0x1a35: file=0x4f, mem=0x00
..
flash error at address 0x1b53: file=0x01, mem=0x00

Fuse Extended Byte set to 0xff
make[1]: Leaving directory `/opt/tinyos-1.x/apps/oscilloscope'
make: *** No rule to make target `mib510,com4'.  Stop.

eng.je...@design /opt/tinyos-1.x/apps/oscilloscope


 

I dont what is the problem . I have changed the sensorboard option in makefile 
to maicasb, and mts300 , and basicsb and i got the same result for each . plz 
help me if you can . 

 

 
  
_
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] oscilloscope values

2010-04-26 Thread Carlo Desogus
Where can i find the formula for the values conversion of light, temperature, 
humidity and the others skills of the sensors.
I`m using tmote sky and telos crossbow under tinyos 2.1.1. (linux).
Is the same the formula??


Thanks


  ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope

2010-07-30 Thread Michael Schippling
Your update() code looks like it should work
to bump down each reading by one on each call.
You could try testing it standalone, put in print
traces, or run in a debugger to see what is really
going on...

MS


CHEN WEIMING wrote:
> Hello, all:
> 
> I edited the java code in Oscilloscope to display the data received, in 
> the Node class, I have the following function to update data:
> 
> void update(int type, int reading) {
> for (int i=Store-1;i>0;i--)
> Data[type][i] = Data[type][i-1];
> Data[type][0] = reading;
>  }
> 
> but when I tested it, I found that only Data[type][0] is updated, but 
> all the following data did not change (from Data[type][1] to 
> Data[type][Store - 1]), can someone tell me what is the problem?
> Thanks very much.
> 
> The edited Node class:
> 
> class Node {
> /*
>  * 0 for temperature
>  */
> final static int Var = 5;  // how many things to measure, tem etc, 
> now only measure temperature
> final static int Store = 100; // how many data to store
> 
> /* The mote's identifier */
> int id;
> 
> int[][] Data = new int[Var][Store];
> //int dataStart, dataEnd;
> 
> Node(int _id) {
> id = _id;
> }
> 
> 
> /* Data received containing NREADINGS samples from messageId * 
> NREADINGS
>onwards */
> void update(int type, int reading) {
> for (int i=Store-1;i>0;i--)
> Data[type][i] = Data[type][i-1];
> Data[type][0] = reading;
> }
> 
> /* Return value of sample x, or -1 for missing data */
> int getData(int type, int x) {
> if (x < 0 || x >= Store)
> return 0;
>
> if(type<0 || type >= Var)
> return 0;
>
> else
> return Data[type][x];
> }
> /*
> // Return number of last known sample
> int maxX() {
> return 1;
> }
> */
> }
> 
> 
> Best Regards,
> CHEN WEIMING
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope Application

2009-03-13 Thread Holt, Daniel Arthur
To all it Concerns:

When following the Oscilloscope tutorial I typed make in the /java directory of 
the Oscilloscope file and get the following error:

javac *.java
/bin/sh: javac: command not found
make: *** [Oscilliscope.class] Error 127

I followed the install instructions for tinyos 2.1 and everythign was 
successful.  Does anyone know what this error refers to and how to rectify it?

Thank you so much for your time and I hope to hear from you soon.

Daniel
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope

2007-05-10 Thread Michael Schippling

You probably need to change the GUI program to expect only
one sample in each message as well. Also trace through all
the places that the BUFFER_SIZE is used and make sure someone
hasn't made some silly assumption about it's size.

MS

[EMAIL PROTECTED] wrote:

Hi i read lesson 6 and i try to use it, but i have a question.
Can i show only one data on Oscilloscope GUI?+
the tutorial use a buffer of 10 data but i want to show only one data at one time; i change the 
value of "BUFFER_SIZE" in "OscopeMsg" but this action caused some error when 
showing data.

What do i do to do that work well?

Thanks


--
Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it/


___
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] Oscilloscope ....

2007-07-18 Thread Michael Schippling

Look at the implementation of DemoSensor in, e.g.,
tos\sensorboards\micasb\DemoSensorC.nc
You should be able to change it to use any ADC channel.

And read through the TOS tutorial to get an idea of what
DemoSensor is doing.
MS


Hossam El-Din Hassanein wrote:
I'm using a mica2 mote with the java applet Oscilloscope ... I need to 
have the oscilloscope reading and displaying readings other than light 
readings ... I need it to read any other readings that is being received 
from the sensor board .. how could this be done 





___
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] Oscilloscope GUI

2005-11-22 Thread Anuka _

Hi, i'm trying to run Oscilloscope GUI. I've got two micaz and the mib510. 
I compile and install the oscilloscope apps into one mote and the comman %java net.tinyos.tools.Listen is woking properly
The SerialForwarder is runing as well, but when i try to execute the command %java net.tinyos.oscope.oscilloscope in another 
window while serialforwarder is runing i get the error above
Can anyone help me please?

$ java net.tinyos.oscope.oscilloscopeBuilt a Packet source for unknownjava.net.ConnectException: Connection refused: connect    at java.net.PlainSocketImpl.socketConnect(Native Method)    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)    at java.net.Socket.connect(Socket.java:426)    at java.net.Socket.connect(Socket.java:376)    at 
java.net.Socket.(Socket.java:291)    at java.net.Socket.(Socket.java:119)    at net.tinyos.packet.SFSource.openSource(SFSource.java:56)    at net.tinyos.packet.AbstractSource.open(AbstractSource.java:77)    at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)java.net.ConnectException: Connection refused: connect    at java.net.PlainSocketImpl.socketConnect(Native Method)    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)    at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)    at java.net.Socket.connect(Socket.java:426)    at java.net.Socket.connect(Socket.java:376)    at java.net.Socket.(Socket.java:291)    at java.net.Socket.(Socket.java:119)    at net.tinyos.packet.SFSource.openSource(SFSource.java:56)    at net.tinyos.packet.AbstractSource.open(AbstractSource.java:77)    at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)[EMAIL PROTECTED]:9001 died - exiting (java.net.ConnectException: Connection refused: connect)

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


[Tinyos-help] Oscilloscope RF

2006-01-04 Thread vipul surve
Hi,


   I wanted to use the oscilloscopeRF application on a mica2dot mote.

I have installed OscilloscopeRF program on a mobile mica2dot mote but
which program should be installed at the base mote connected to the
serial port.

I am thinking of doing it this way, does anybody have any suggestions
on this, please let me know.

My goal is to display the light readings from a mobile mica2dot mote
on a pc, how can I do this?

Please let me know


Vipul

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


[Tinyos-help] oscilloscope app

2006-03-21 Thread Roberto
using oscilloscope application I can see the window of the oscilloscope
but it does not display data, while in the shell I can see messages in
text mode. Does it exist a way to solve the problem?



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


[Tinyos-help] oscilloscope app

2006-03-21 Thread Roberto
... continued
in the shell I read the messages but there is also written TOS_msg
lenght is invalid modifying msg to fit

-- 


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


[Tinyos-help] oscilloscope app

2006-03-21 Thread Roberto
I can see messages in the shell like to

Received message: 7E 00 0A 7 D 1A 01 00 4A 01 01 00 A0 01 A0 01 A0 01 A0
01 A1 01 A1 01 A1 01 9F 01 A0 01 A2 01
TOS_Msg length is invalid: header_length=136, real_length=31...
modifying msg to fit

I'm using micaz and with SENSORBOARD=micasb or basicsb the results are
the same... in the oscilloscope gui zooming out and in I cannot view
anything because, in myu opinion ,  the received messages are wrong due
to the msg I typed above...



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


[Tinyos-help] Oscilloscope Clipping

2006-07-24 Thread abensong
Hi,

I'm using the Oscilloscope program on a telosb mote and have found that 
clipping occurs below zero.  I'm also using MSP430ADC12Single instead of ADC 
as my interface.  I have changed the parameters in MSP430ADC12Single from 
REFERENCE_VREFplus_AVss to REFERENCE_VREFplus_VREFnegterm and the clipping 
still occurs.  Does anyone know why my data is still clipping at zero?

Thanks,
Angelina

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


[Tinyos-help] oscilloscope packets

2006-08-15 Thread Claro Noda


Hi
everyone.





We need
to understand detailed radio packet structure coming from ListenRaw.We're
using the Oscilloscope app in the motes and get the following sequences: 

7E 42 1C
01 08 2C FF FF FF FF A1 7D 5D 02 00 02 01 FF FF FF FF FF FF FF FF FF FF 00 00
00 00 FF FF 01 00 00 00 00 00 06 00 DC 42 7E 7E 00 00



7E 42 1A
01 08 2D FF FF FF FF 0A 7D 5D 02 00 0A 00 00 00 10 07 D8 06 9A 06 96 06 A1 06
9B 06 B4 06 BE 06 E2 06 EE 06 26 23 50 7E 7E 00 00











The
second packet follows the legend in lecture 6 of tinyos tutorial, lengh 1A type
0A.And also
a bit here: http://www.moteiv.com/community/tmote-message-format.htmSpecially
for the standard header. 

However,
the first message (which is abundant in the trama) has length 1C  and AM type A1. It's not
clear what does it stand for. we're reading the nesC code of the mote side but I
can't figure out this packets soup : (Can
someone please clarify this? 



Thanks,

Claro.

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

[Tinyos-help] Oscilloscope help

2012-06-18 Thread nikant vohra
Hi

How can I configure the oscilloscope application so that it displays the
readings of two or more sensors from the same mote on the screen currently
it displays the reading from only one sensor per mote. I am using mica2
 motes with tinyOS version 2.1.

Regards
Nikant Vohra
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope application

2007-11-13 Thread Michael Schippling

Now that you mention it, I'm at a bit of a loss to explain where
the micaz ADC code gets it's getData() from...but be assured that
it's there somewhere. Possibly in mica2/ADCREFM.nc. If you do a
"make micaz docs" you may get a diagram of the module interactions.
The fact that there is an ADC interface supplied someplace, and it
compiles, tends to indicate that the full set of functions exists.

Given the above what you need to do in Oscope is replace DemoSensor
with your ADC channel as I described in shorthand yesterday. PortF,
bit1 is ADC1, however that is the same channel that the DemoSensor
uses for Photo/Temp so in fact you probably don't need to make any
software changes to see it working.

My online code bolus has examples of ADC use which may/not be any
clearer than mud/DemoSensor:
http://www.etantdonnes.com/Motes/robocode.tar.gz

MS

Abdullah Kadri wrote:

Dear All,

 

I need to use oscilloscope application with my micaz mote. I want to use 
one of the analog/digital converter ports of Atmega128L as an input for 
analog signal. I’ve gone through the oscilloscope application and found 
that I need to change some code. Please I want to know if my logic is 
right or not:


 

The OscilloscopeM component uses ADC interface. This ADC is provided by 
DemoSensorC component. I traced this interface to understand how 
ADC.getData ( ) works and found that I need to specify the A/D port 
which is “F1” from ATmega128L. The problem is that I am using micaz mote 
which requires HPLADCM component and HPLADC interface for ADC 
applications. The issue here is that there is no getData( ) command in 
HPLADC interface. I am not able to find the link between using 
ADC.getData( ) and the use of the micaz mote.


 


Thank you very much for any helpful comment on this.

 


Abdullah Kadri, P.Eng., Ph.D. Candidate
The University of Western Ontario
Department of Electrical and Computer Engineering
Phone: (519) 661-2111 ext. 81271

 





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

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


Re: [Tinyos-help] Oscilloscope Application

2007-11-15 Thread Michael Schippling

You should get data, if not information, w/o a sensor attached.
If you are using the T1 Oscope app that goes directly to the
UART port you should see something on the PC side no matter.
Check that you are using the right port and MOTECOM variable.
I forget what platform you are on, if you have a MIB510 host-
adapter make sure the silly-slide-switch opposite the serial
conn is in the OFF position.

MS


Abdullah Kadri wrote:
I have a problem with oscilloscope application. When I run the Listen 
process I do not see any traffic. And even when I open the Oscilloscope 
GUI I do not see any signal. The Leds on the board are blinking and I am 
using Micaz board. I do not have a photo sensor onboard. Does this 
affect the process?


 


Abdullah Kadri, P.Eng., Ph.D. Candidate
The University of Western Ontario
Department of Electrical and Computer Engineering
Phone: (519) 661-2111 ext. 81271

 





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

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


Re: [Tinyos-help] Oscilloscope Application

2007-11-15 Thread Abdullah Kadri
I am not getting any information at all only "re-synchronizing..." I am using 
micaz with Atmega128L on-board. I am using COM6 and MOTECOM variable is 
correct.i do not have MIB, just the board connected directly to the USB port. 
The Oscilloscope GUI opens without any data on screen. Please any hint.

- Original Message -
From: Michael Schippling <[EMAIL PROTECTED]>
Date: Thursday, November 15, 2007 5:02 pm
Subject: Re: [Tinyos-help] Oscilloscope Application
To: Abdullah Kadri <[EMAIL PROTECTED]>
Cc: tinyos-help@Millennium.Berkeley.EDU

> You should get data, if not information, w/o a sensor attached.
> If you are using the T1 Oscope app that goes directly to the
> UART port you should see something on the PC side no matter.
> Check that you are using the right port and MOTECOM variable.
> I forget what platform you are on, if you have a MIB510 host-
> adapter make sure the silly-slide-switch opposite the serial
> conn is in the OFF position.
> 
> MS
> 
> 
> Abdullah Kadri wrote:
> > I have a problem with oscilloscope application. When I run the 
> Listen 
> > process I do not see any traffic. And even when I open the 
> Oscilloscope 
> > GUI I do not see any signal. The Leds on the board are 
> blinking and I am 
> > using Micaz board. I do not have a photo sensor onboard. Does 
> this 
> > affect the process?
> > 
> >  
> > 
> > Abdullah Kadri, P.Eng., Ph.D. Candidate
> > The University of Western Ontario
> > Department of Electrical and Computer Engineering
> > Phone: (519) 661-2111 ext. 81271
> > 
> >  
> > 
> > 
> > ---
> -
> > 
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://www.millennium.berkeley.edu/cgi-
> bin/mailman/listinfo/tinyos-help
> 

 Abdullah Kadri, P.Eng., Ph.D. Candidate
The University of Western Ontario
Department of Electrical and Computer Engineering
Phone: (519) 661-2111 ext. 81271
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope Application

2007-11-15 Thread Michael Schippling

How do you connect a micaz directly to a USB port?
MS

Abdullah Kadri wrote:
I am not getting any information at all only "re-synchronizing..." I am 
using micaz with Atmega128L on-board. I am using COM6 and 
MOTECOM variable is correct.i do not have MIB, just the board connected 
directly to the USB port. The Oscilloscope GUI opens without any data on 
screen. Please any hint.


- Original Message -
From: Michael Schippling <[EMAIL PROTECTED]>
Date: Thursday, November 15, 2007 5:02 pm
Subject: Re: [Tinyos-help] Oscilloscope Application
To: Abdullah Kadri <[EMAIL PROTECTED]>
Cc: tinyos-help@Millennium.Berkeley.EDU

 > You should get data, if not information, w/o a sensor attached.
 > If you are using the T1 Oscope app that goes directly to the
 > UART port you should see something on the PC side no matter.
 > Check that you are using the right port and MOTECOM variable.
 > I forget what platform you are on, if you have a MIB510 host-
 > adapter make sure the silly-slide-switch opposite the serial
 > conn is in the OFF position.
 >
 > MS
 >
 >
 > Abdullah Kadri wrote:
 > > I have a problem with oscilloscope application. When I run the
 > Listen
 > > process I do not see any traffic. And even when I open the
 > Oscilloscope
 > > GUI I do not see any signal. The Leds on the board are
 > blinking and I am
 > > using Micaz board. I do not have a photo sensor onboard. Does
 > this
 > > affect the process?
 > >
 > > 
 > >

 > > Abdullah Kadri, P.Eng., Ph.D. Candidate
 > > The University of Western Ontario
 > > Department of Electrical and Computer Engineering
 > > Phone: (519) 661-2111 ext. 81271
 > >
 > > 
 > >

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


Abdullah Kadri, P.Eng., Ph.D. Candidate
The University of Western Ontario
Department of Electrical and Computer Engineering
Phone: (519) 661-2111 ext. 81271


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


[Tinyos-help] Oscilloscope refreshing rate

2008-01-23 Thread yang kwanhoong

Greeting, Hi all, I am using Delta to obtain heartbeat reading at sampling rate 
about 120 samples per second. However, the oscilloscope (sensor reading) in 
Trawler is refreshing the data at about once per second. How can I change the 
refreshing rate?  Besides, the Network Topology is not showing anything after I 
change the TIMER rate in Delta to 0.25 second. How can I fix the problem? Can 
anyone please help me to fix the problem? Please...
_
Get your free suite of Windows Live services today!
http://www.get.live.com/wl/all___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope with Multihop

2008-02-03 Thread Edmund
Hi,

I understand that you are modifying oscilloscope application so that it can
do with Multihop. Can you help me? I'm modifying too but I have problem with
it. Are you able to send me any references for me to refer to? Thanks a lot.


 

Regards,

Edmund

 

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope and TOSSIM

2008-04-23 Thread Rogério De Pieri
Hi All,

I use to lead by exemplos, so I'm trying to run Oscilloscope Application in
TOSSIM but I can't.

Can I realy do that? How?

I'd like a exemplo of python script to use with OscilloscopeAppC. Does
anybody has one?


Thanks

PS: Sorry for my bad english.

-- 
Rogério De Pieri (Lelo)
Buscando melhorar a cada dia
Áudio, Hardware & Software
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope app

2008-05-08 Thread Eric Keller
Are you running this under Cygwin?
You need to have a serial forwarder running.
Eric


On Thu, May 8, 2008 at 4:27 PM, Daniel Pereira <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> First of all, I'd like to thank everyone in this group to help me to
> prepare my tinyos 2.x environment.
> Now, I'm trying to execute the oscilloscope application.
> 1) Oscilloscope$ make
> 2) Oscilloscope/java$ make
> 3) Oscilloscope/java$ run
>
> In the third step, I've received the following message:
> [EMAIL PROTECTED]:9002:died - exiting (java.net.ConnectException: Connection 
> refused)
>
> My doubt is, How should I spread the micaz platforms?
> Should I connect one in the MIB520?
> Does the java software use usb port to gather the data?
>
> Thanks all
> Daniel
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope app

2008-05-09 Thread Daniel Pereira
I'm running under Ubuntu/tinyos2.x and after start the Serial
Forwarder the Oscilloscope started fine too, thanks!!
But I still have a doubt about how to spread the micazs.
One of them should be plugged in the MIB520 and others should have the
same Oscilloscope software?

On Thu, May 8, 2008 at 6:18 PM, Eric Keller <[EMAIL PROTECTED]> wrote:
> Are you running this under Cygwin?
> You need to have a serial forwarder running.
> Eric
>
>
> On Thu, May 8, 2008 at 4:27 PM, Daniel Pereira <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>> First of all, I'd like to thank everyone in this group to help me to
>> prepare my tinyos 2.x environment.
>> Now, I'm trying to execute the oscilloscope application.
>> 1) Oscilloscope$ make
>> 2) Oscilloscope/java$ make
>> 3) Oscilloscope/java$ run
>>
>> In the third step, I've received the following message:
>> [EMAIL PROTECTED]:9002:died - exiting (java.net.ConnectException: Connection 
>> refused)
>>
>> My doubt is, How should I spread the micaz platforms?
>> Should I connect one in the MIB520?
>> Does the java software use usb port to gather the data?
>>
>> Thanks all
>> Daniel
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope app

2008-05-09 Thread Rogério De Pieri
The mote connected to MIB520 will be running BaseStation and the others
Oscilloscope


Don't forget to identify the motes with Oscilloscope using one ID for each
one after the word install *install[,id]*

On Fri, May 9, 2008 at 10:37 AM, Daniel Pereira <[EMAIL PROTECTED]>
wrote:

> I'm running under Ubuntu/tinyos2.x and after start the Serial
> Forwarder the Oscilloscope started fine too, thanks!!
> But I still have a doubt about how to spread the micazs.
> One of them should be plugged in the MIB520 and others should have the
> same Oscilloscope software?
>
> On Thu, May 8, 2008 at 6:18 PM, Eric Keller <[EMAIL PROTECTED]> wrote:
> > Are you running this under Cygwin?
> > You need to have a serial forwarder running.
> > Eric
> >
> >
> > On Thu, May 8, 2008 at 4:27 PM, Daniel Pereira <[EMAIL PROTECTED]>
> wrote:
> >> Hi All,
> >>
> >> First of all, I'd like to thank everyone in this group to help me to
> >> prepare my tinyos 2.x environment.
> >> Now, I'm trying to execute the oscilloscope application.
> >> 1) Oscilloscope$ make
> >> 2) Oscilloscope/java$ make
> >> 3) Oscilloscope/java$ run
> >>
> >> In the third step, I've received the following message:
> >> [EMAIL PROTECTED]:9002:died - exiting (java.net.ConnectException: 
> >> Connection
> refused)
> >>
> >> My doubt is, How should I spread the micaz platforms?
> >> Should I connect one in the MIB520?
> >> Does the java software use usb port to gather the data?
> >>
> >> Thanks all
> >> Daniel
> >> ___
> >> Tinyos-help mailing list
> >> Tinyos-help@millennium.berkeley.edu
> >>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >>
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Rogério De Pieri (Lelo)
Buscando melhorar a cada dia
Áudio, Hardware & Software
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] oscilloscope problem

2009-10-10 Thread Michael Schippling
For some reason the programmer type is not getting
to the uisp download command line correctly:
 uisp -dprog=dapa
means use the old parallel port programmer.

I never rememver the command line syntax, what
you used looks right but I guess it isn't. I always
put the programmer and port spec in the MakeLocal file
so I don't have to put it on the command line:

DEFAULT_PROGRAM=mib510
MIB510=/dev/ttyS4

Depending on the version of all the tools you use you may
need to specify COM[x] or /dev/ttyS[x-1]. In fact you
might just try the /dev... setting on the command line
and see if that is what is confusing things.

MS

maha timraz wrote:
> Hi
> Im new in tinyos .Im trying to install the oscilloscope appplication 
> to a mica2  ( according to lesson 6 in tutorials ) . I have attached 
> mica2 on top of MIB510 and MTS300 sesnor board to the bottom . It gives 
> me this output :
>  
> eng.je...@design  /opt/tinyos-1.x/apps/oscilloscope
> $ make mica2 install mib510,com4
> compiling Oscilloscope to a mica2 binary
> ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall 
> -Wshadow -DDE
> F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10 
> -fnesc-cfile=build/mica2/ap
> p.c  Oscilloscope.nc -lm
> compiled Oscilloscope to build/mica2/main.exe
> 6996 bytes in ROM
>  337 bytes in RAM
> avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
> make[1]: Entering directory `/opt/tinyos-1.x/apps/oscilloscope'
> installing mica2 binary
> uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff  --erase
> pulse
> Atmel AVR ATmega128 is found.
> Erasing device ...
> pulse
> Reinitializi! ng device
> Atmel AVR ATmega128 is found.
> Fuse Extended Byte set to 0xff
> sleep 1
> uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff  --upload 
> if=build/mica2/main.s
> rec
> pulse
> Atmel AVR ATmega128 is found.
> Uploading: flash
> Fuse Extended Byte set to 0xff
> sleep 1
> uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff  --verify 
> if=build/mica2/main.s
> rec
> pulse
> Atmel AVR ATmega128 is found.
> Verifying: flash
> 
> flash error at address 0x1a2d: file=0x01, mem=0x00
> flash error at address 0x1a2e: file=0xe8, mem=0x00
> flash error at address 0x1a2f: file=0x2f, mem=0x00
> flash error at address 0x1a30: file=0xff, mem=0x00
> flash error at address 0x1a31: file=0x27, mem=0x00
> flash error at address 0x1a32: file=0xee, mem=0x00
> flash error at address 0x1a33: file=0x59, mem=0x00
> flash error at address 0x1a34: file=0xfe, mem=0x00
> flash error at address 0x1a35: file=0x4f, mem=0x00
> ..
> flash error at address 0x1b53: file=0x01, mem=0x00
> Fuse Extended Byte set to 0xff
> make[1]: Leaving directory `/opt/tinyos-1.x/apps/oscilloscope'
> make: *** No rule to make target `mib510,com4'.  Stop.
> eng.je...@design  /opt/tinyos-1.x/apps/oscilloscope
> 
>  
> I dont what is the problem . I have changed the sensorboard option in 
> makefile to maicasb, and mts300 , and basicsb and i got the same result 
> for each . plz help me if you can .
>  
>  
> 
> 
> Windows Live: Keep your friends up to date with what you do online. 
> 
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope/JNI Problem

2009-10-22 Thread Strandberg, Elizabeth
Hello All,

I am attempting to run the Oscilloscope application with an Iris mote.  When I 
type ./run, the oscilloscope window comes up, but there is no data displayed, 
also it does not show anything in the Mote / Color list.  In the Cygwin window, 
I get the following message:

Getenv JNI library not found.  Env.getenv will not work
(run the tos-install-jni tool, see man tos-install-jni for more details)

However, I have run tos-install-jni, and it appeared to install with no 
complaints.

Does the blank oscilloscope problem have to do with the JNI library problem, or 
is it separate?  It seems to me that the oscilloscope window would not open at 
all if Java was not working.

Thanks in advance for any suggestions.

Elizabeth Strandberg

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] oscilloscope values

2010-04-26 Thread Steven Hodgson
Hi Carlo,
Check out http://docs.tinyos.net/index.php/Boomerang_ADC_Example for the
physical value conversion for the tmote sky.

Date: Mon, 26 Apr 2010 16:44:44 + (GMT)
From: Carlo Desogus 
Subject: [Tinyos-help] oscilloscope values
To: tinyos help 
Message-ID: <141203.5787...@web27003.mail.ukl.yahoo.com>
Content-Type: text/plain; charset="utf-8"

Where can i find the formula for the values conversion of light,
temperature, humidity and the others skills of the sensors.
I`m using tmote sky and telos crossbow under tinyos 2.1.1. (linux).
Is the same the formula??


Thanks



-- next part --
An HTML attachment was scrubbed...
URL:
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100426/06a6be06/attachment.htm
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope and SerialForward

2010-07-15 Thread Walter Bishop
I've managed to solve my initial problems with compiling and running
tinyOS files.

I'm now trying to follow some tutorials like the oscilloscope but i'm
failing to read the packet information.

I've installed the oscilloscope on a micaz sensor and the Base on
micaz that connects to the pc. I've run the SerialForward and
oscilloscope file, but the last one doesn't seem to be connected to a
mote.

Can someone help me? Thanks
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope with Xlisten

2008-11-25 Thread Rafael Aguilar Velez
Dear all,
 
I am using the oscilloscope application but the java interface used to read the 
data is not capable to save what is being read. I think a solution could be to 
use the xlisten application. My problem now is that when using this xlisten 
application, the saved data don't correspond to what I am seeing in the 
oscilloscope application. I am acquiring data at 128Hz and just few lines of 
data appears in the file created by xlisten. Can anyone help me to understand 
the problem? 
Thanks a lot!!
Rafael 
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope Application

2009-03-13 Thread Michael Schippling
You have either not installed a Java DevKit or not set your PATH
to point to its /bin directory. Have a look at this:
http://docs.tinyos.net/index.php/Java_cygwin

MS

Holt, Daniel Arthur wrote:
> To all it Concerns:
>  
> When following the Oscilloscope tutorial I typed /make/ in the /java 
> directory of the Oscilloscope file and get the following error:
>  
> javac *.java
> /bin/sh: javac: command not found
> make: *** [Oscilliscope.class] Error 127
>  
> I followed the install instructions for tinyos 2.1 and everythign was 
> successful.  Does anyone know what this error refers to and how to 
> rectify it?
>  
> Thank you so much for your time and I hope to hear from you soon.
>  
> Daniel
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope Application

2009-03-15 Thread Michael Schippling
Please send questions to the help list
in order to keep a record of my mistakes...

I don't think the O'scope program, as canned, has an option
for recording. But it "should" be a "simple" matter to add a
file write to the code where the messages are parsed and displayed.

MS

Holt, Daniel Arthur wrote:
> Thank you so much for your reply.  I was able to get everything to run 
> correctly.
> 
> Now that I'm able to visualize the data, is there somewhere the data is 
> stored so that I can retrieve it at any time?  If so then how can I access 
> it?  If not, then what are the steps to store the data?
> 
> Thank you so much for your time and I hope to hear from you soon.
> 
> Daniel
> 
> 
> From: Michael Schippling [sc...@santafe.edu]
> Sent: Friday, March 13, 2009 2:08 PM
> To: Holt, Daniel Arthur
> Cc: tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] Oscilloscope Application
> 
> You have either not installed a Java DevKit or not set your PATH
> to point to its /bin directory. Have a look at this:
> http://docs.tinyos.net/index.php/Java_cygwin
> 
> MS
> 
> Holt, Daniel Arthur wrote:
>> To all it Concerns:
>>
>> When following the Oscilloscope tutorial I typed /make/ in the /java
>> directory of the Oscilloscope file and get the following error:
>>
>> javac *.java
>> /bin/sh: javac: command not found
>> make: *** [Oscilliscope.class] Error 127
>>
>> I followed the install instructions for tinyos 2.1 and everythign was
>> successful.  Does anyone know what this error refers to and how to
>> rectify it?
>>
>> Thank you so much for your time and I hope to hear from you soon.
>>
>> Daniel
>>
>>
>> 
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> --
> Platform: WinXP/Cygwin
> TinyOS version: 1.x, Boomerang
> Programmer: MIB510
> Device(s): Mica2, MicaZ, Tmote
> Sensor board: homebrew

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope: error 127

2009-05-15 Thread JEBARI Mohamed

Hi, 

 

 I typed make to compile Oscilloscope in TinyOS2.x with Cygwin and the 
following message is shown:

javac *.java

/bin/sh: javac: command not found

make: ***[Oscilloscope.class] Error 127

 

There is any one can tell me the solution about this problem

Many thanks in advance.

 

Best regards.

 

_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] oscilloscope make error

2011-04-21 Thread roberto pagliari
Hi All,
I have issues building the GUI for Oscilloscope application. My environment
variables are the following

bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $CLASSPATH
/opt/tinyos-2.1.1/support/sdk/java/
bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $MAKERULES
/opt/tinyos-2.1.1/support/make/Makerules
bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $TOSROOT
/opt/tinyos-2.1.1/
bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $TOSDIR
/opt/tinyos-2.1.1/tos/



Did I forget to include something? Below is reported the error when issuing
make command.


bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ make
mig -target=null -java-classname=OscilloscopeMsg java ../Oscilloscope.h
oscilloscope -o OscilloscopeMsg.java
/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
/usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
/usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'

a lot of other similar lines here.

SchedulerBasicP: `Scheduler.taskLoop' not implemented
SchedulerBasicP: `Scheduler.bool' not implemented
In C file:
: Scheduler `TinySchedulerC' has no scheduling interface named
`TaskBasic'
../Oscilloscope.h:28: syntax error before `nx_uint16_t'
../Oscilloscope.h:28: warning: no semicolon at end of struct or union
../Oscilloscope.h:29: syntax error before `interval'
../Oscilloscope.h:30: syntax error before `id'
../Oscilloscope.h:31: syntax error before `count'
../Oscilloscope.h:32: syntax error before `readings'
../Oscilloscope.h:33: warning: data definition has no type or storage class
failed to parse message file ../Oscilloscope.h
make: *** [OscilloscopeMsg.java] Error 1
bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope: segmentation fault

2011-10-28 Thread Stefano Moret
I finally successfully installed TinyOS on Snow Leopard!
Now I can, for example, compile and install the Blink application and most of 
the default apps.

I still get a problem though: when I try to install the Oscilloscope app I get 
this error:

"mkdir -p build/telosb
compiling OscilloscopeAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -fnesc-separator=__ -Wall -Wshadow 
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= 
-DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"OscilloscopeApp\" 
-DIDENT_USERNAME=\"Cinese\" -DIDENT_HOSTNAME=\"MacBook-di-Stef\" 
-DIDENT_USERHASH=0x688ec652L -DIDENT_TIMESTAMP=0x4eab3d00L 
-DIDENT_UIDHASH=0xe5dc16f4L  OscilloscopeAppC.nc -lm 
/opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning "*** 
LOW POWER COMMUNICATIONS DISABLED ***"
/opt/tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4: warning: 
#warning Accessing TimerA for ADC12
/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc: In function 
`CC2420TransmitP__CaptureSFD__captured':
/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:67: internal error: Segmentation 
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
make: *** [exe0] Error 1"

Any hint about this?

Thanks for your reply!
Stefano


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope with Multihop

2007-02-15 Thread manu suryavansh

Hi all,

I am trying to modify oscilloscope so that it sends data 
using a multihop mechanism through BaseStation in MultiHop. 

I have wired the interfaces like shown below-

OscillorouteM.RouteControl -> multihopM;
OscillorouteM.Send -> multihopM.Send[AM_OSCRT];

And in OscillorouteM:
[. . .]
task void dataTask() {

struct OscopeMsg *pack;


if ((pack = (struct OscopeMsg *)call 
Send.getBuffer(&msg[currentMsg],&Len))) {
   

atomic {

 packetReadingNumber = 0;

 pack->lastSampleNumber = readingNumber;

   }


pack->channel = 1;

pack->sourceMoteID = TOS_LOCAL_ADDRESS;

 

if (call Send.send(&msg[currentMsg], sizeof(struct OscopeMsg)))

  {

  atomic {

currentMsg ^= 0x1;

  }

 call Leds.yellowToggle();
 

  }
   

}

  }


  async event result_t ADC.dataReady(uint16_t data) {

struct OscopeMsg *pack;

atomic {

  pack = (struct OscopeMsg *)msg[currentMsg].data;

  pack->data[packetReadingNumber++] = data;

  readingNumber++;

  //dbg(DBG_USR1, "data_event\n");

  if (packetReadingNumber == BUFFER_SIZE) {

  post dataTask();

  }

}

   } 
However it is not working, the sensors don't send directly 
to the parent the data they have collected.
Can somebody please tell me what i have done wrong?

thank you
manu


 
-
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope Temp conversion

2007-06-07 Thread vbhatia
Hi all,

This is my first message on the help list and I hope to get a good
response.

I used the OscilloscopeRF application to sense the temperature instead
of light by using Temp instead of Photo in the Oscilloscope.nc file. I
am able to get the readings and display them on PC using TOSBase. These
readings are hexadecimal values in little endian format and I want to
convert them to celsius or kelvin. I am using the mica2 motes and
micasb board. I found a formula for this
  1/T(K) = a + b × ln(Rthr) + c × [ln(Rthr)]3
where:
Rthr = R1(ADC_FS-ADC)/ADC
a = 0.001010024
b = 0.000242127
c = 0.00146
R1 = 1.00;
ADC_FS = 1023, and
ADC = output value from Mote’s ADC measurement.

now I have 3 questions
1) Is this formula correct for micasb
2) How do I calculate this in nesc as it involves logarithmic
calculations.
3) In what format is the ADC that is being used . Is it in the same
format in which the sensor senses the data ie little endian format.

Please reply to this asap as I am stuck at this point in my project
Thanks a lot
Vishal

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


[Tinyos-help] Oscilloscope Temp conversion

2007-06-13 Thread vbhatia
Hi all,

This is my first message on the help list and I hope to get a good
response.

I used the OscilloscopeRF application to sense the temperature instead
of light by using Temp instead of Photo in the Oscilloscope.nc file. I
am able to get the readings and display them on PC using TOSBase. These
readings are hexadecimal values in little endian format and I want to
convert them to celsius or kelvin. I am using the mica2 motes and
micasb board. I found a formula for this
  1/T(K) = a + b × ln(Rthr) + c × [ln(Rthr)]3
where:
Rthr = R1(ADC_FS-ADC)/ADC
a = 0.001010024
b = 0.000242127
c = 0.00146
R1 = 10 kΩ
ADC_FS = 1023, and
ADC = output value from Mote’s ADC measurement.

now I have 3 questions
1) Is this formula correct for micasb
2) How do I calculate this in nesc as it involves logarithmic
calculations.
3) In what format is the ADC that is being used . Is it in the same
format in which the sensor senses the data ie little endian format.

Please reply to this asap as I am stuck at this point in my project
Thanks a lot
Vishal

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


[Tinyos-help] Oscilloscope with MATLAB

2005-11-02 Thread Stephanie Kigadye
Hi all,
I am trying to read the sensor data and be able to save it as an array (so i can analyse it) in the MATLAB workspace - the tutorial for using TinyOS with Matlab uses the OscilloscopeRF application but i want to implement it using the Oscilloscope application - which i have tried but it doesn't seem to work.
i'd appreciate any ideas?
 
Cheers,
Stephanie
		To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope with MATLAB

2005-11-07 Thread Ignacio Salan








Hi everybody,

 

I have the same problem as the rest of subscribers written
here there is no way in my computer to set up the matlab environment I think is
the version of matlab I am running. I have tried instructions from Manu also,
how can it be so different than instructions of setting up matlab on the
tutorial.

 

Matlab version 6.1.0.450 Release 12.1 May 2001

 

Does anyone know if this could be my problem, thanks a lot?

 

 






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


Re: [Tinyos-help] oscilloscope app

2006-03-21 Thread Michael Schippling

I had some similar problems with micaz, it may be that you need to
have the host side pretend it is a mica2 by using "mica2" in your
MOTECOM envvar...
MS


Roberto wrote:

I can see messages in the shell like to

Received message: 7E 00 0A 7 D 1A 01 00 4A 01 01 00 A0 01 A0 01 A0 01 A0
01 A1 01 A1 01 A1 01 9F 01 A0 01 A2 01
TOS_Msg length is invalid: header_length=136, real_length=31...
modifying msg to fit

I'm using micaz and with SENSORBOARD=micasb or basicsb the results are
the same... in the oscilloscope gui zooming out and in I cannot view
anything because, in myu opinion ,  the received messages are wrong due
to the msg I typed above...



___
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] oscilloscope packets

2006-08-15 Thread Joe Polastre

A1 is Deluge.

On 8/15/06, Claro Noda <[EMAIL PROTECTED]> wrote:



Hi everyone.

We need to understand detailed radio packet structure coming from ListenRaw.
We're using the Oscilloscope app in the motes and get the following
sequences:

7E 42 1C 01 08 2C FF FF FF FF A1 7D 5D 02 00 02 01 FF FF FF FF FF FF FF FF
FF FF 00 00 00 00 FF FF 01 00 00 00 00 00 06 00 DC 42 7E 7E 00 00

7E 42 1A 01 08 2D FF FF FF FF 0A 7D 5D 02 00 0A 00 00 00 10 07 D8 06 9A 06
96 06 A1 06 9B 06 B4 06 BE 06 E2 06 EE 06 26 23 50 7E 7E 00 00

The second packet follows the legend in lecture 6 of tinyos tutorial, lengh
1A type 0A.
And also a bit here:
http://www.moteiv.com/community/tmote-message-format.htm
Specially for the standard header.


However, the first message (which is abundant in the trama) has length 1C
and AM type A1. It's not clear what does it stand for. we're reading the
nesC code of the mote side but I can't figure out this packets soup : (Can
someone please clarify this?

Thanks,


Claro.
___
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] oscilloscope application changing

2013-02-24 Thread pirusaez
if we change the oscilloscope application we all know that we can get
different readings. What code should be added or changed in order to take
readings every 10 seconds for example? Because now I take near 3 readings
every second and they are really too much.



--
View this message in context: 
http://tinyos-help.10906.n7.nabble.com/oscilloscope-application-changing-tp22721.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope with Multihop

2008-02-03 Thread Omprakash Gnawali
Somebody already did this for you. Look at apps/MultihopOscilloscope

- om_p

On Feb 3, 2008 12:15 AM, Edmund <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> I understand that you are modifying oscilloscope application so that it can
> do with Multihop. Can you help me? I'm modifying too but I have problem with
> it. Are you able to send me any references for me to refer to? Thanks a lot.
>
>
>
> Regards,
>
> Edmund
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope with Multihop

2008-02-03 Thread Omprakash Gnawali
In TinyOS 1.x, you can use Surge, which does something similar.

- om_p

On Feb 3, 2008 9:34 PM, Edmund <[EMAIL PROTECTED]> wrote:
> Hi I'm using tinyos 1.x. I don't have multihopOscilloscope folder. Do you
> have it? Can attached to me for me to refer? Thank you.
>
> Regards,
> Edmund
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Omprakash
> Gnawali
> Sent: Monday, February 04, 2008 1:30 AM
> To: Edmund
> Cc: tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] Oscilloscope with Multihop
>
> Somebody already did this for you. Look at apps/MultihopOscilloscope
>
> - om_p
>
> On Feb 3, 2008 12:15 AM, Edmund <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hi,
> >
> > I understand that you are modifying oscilloscope application so that it
> can
> > do with Multihop. Can you help me? I'm modifying too but I have problem
> with
> > it. Are you able to send me any references for me to refer to? Thanks a
> lot.
> >
> >
> >
> > Regards,
> >
> > Edmund
> >
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope/JNI Problem

2009-10-23 Thread David Conde
Hi Elizabeth,

 

I had a similar problema which I solved reading this link:

 

http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg09307.htm
l

 

I put getenv.dll in Windows/system32 and this problem was solved.

 

I hope this help you

 

 

 

De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de
Strandberg, Elizabeth
Enviado el: viernes, 23 de octubre de 2009 3:44
Para: 'tinyos-help@millennium.berkeley.edu'
Asunto: [Tinyos-help] Oscilloscope/JNI Problem

 

Hello All,

 

I am attempting to run the Oscilloscope application with an Iris mote.  When
I type ./run, the oscilloscope window comes up, but there is no data
displayed, also it does not show anything in the Mote / Color list.  In the
Cygwin window, I get the following message:

 

Getenv JNI library not found.  Env.getenv will not work

(run the tos-install-jni tool, see man tos-install-jni for more details)

 

However, I have run tos-install-jni, and it appeared to install with no
complaints.

 

Does the blank oscilloscope problem have to do with the JNI library problem,
or is it separate?  It seems to me that the oscilloscope window would not
open at all if Java was not working.

 

Thanks in advance for any suggestions.

 

Elizabeth Strandberg

 

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope/JNI Problem

2009-10-23 Thread Strandberg, Elizabeth
 
David,
Thank you for your suggestion, it seems to have helped the situation.  However, 
now I have some new strange behavior...

If I follow the tutorial, and start the SerialForwarder before starting the 
Oscilloscope, the Oscilloscope will not start, and I get the following message:

ser...@com6:57600 died - exiting (java.io.IOException: Could not open COM6: 
TOSComm JNI library runtime error: Error 5.
  Access is denied.
  In NativeSerialPort.CreateFile)

HOWEVER, if I run the Oscilloscope WITHOUT starting the SerialForwarder, it 
opens and it looks like it's working (the reading stays constant at zero, but I 
am using an MTS400 so I'll have to create my own DemoSensorC to make it work I 
think).

Should I ignore the instructions to start the SerialForwarder, or is this a 
sign that the Oscilloscope is not yet working correctly?

Thank you for any comments or suggestions, and thank you David for your help!

Elizabeth Strandberg

Message: 2
Date: Fri, 23 Oct 2009 13:38:20 +0200
From: "David Conde" 
Subject: Re: [Tinyos-help] Oscilloscope/JNI Problem
To: "'Strandberg, Elizabeth'" ,

Message-ID: <000501ca53d5$52724380$f756ca...@es>
Content-Type: text/plain; charset="us-ascii"

Hi Elizabeth,

I had a similar problema which I solved reading this link:

http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg09307.html

I put getenv.dll in Windows/system32 and this problem was solved.

I hope this help you

 
De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Strandberg, 
Elizabeth Enviado el: viernes, 23 de octubre de 2009 3:44
Para: 'tinyos-help@millennium.berkeley.edu'
Asunto: [Tinyos-help] Oscilloscope/JNI Problem

Hello All,

I am attempting to run the Oscilloscope application with an Iris mote.  When I 
type ./run, the oscilloscope window comes up, but there is no data displayed, 
also it does not show anything in the Mote / Color list.  In the Cygwin window, 
I get the following message:

Getenv JNI library not found.  Env.getenv will not work
(run the tos-install-jni tool, see man tos-install-jni for more details)

However, I have run tos-install-jni, and it appeared to install with no 
complaints.

Does the blank oscilloscope problem have to do with the JNI library problem, or 
is it separate?  It seems to me that the oscilloscope window would not open at 
all if Java was not working.

Thanks in advance for any suggestions.

Elizabeth Strandberg

 

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope/JNI Problem

2009-10-23 Thread Michael Schippling
If you are running your application program, say Oscilloscope, on
the machine to which the mote is attached you don't need SerialForwarder.
What is happening is that SF opens the serial port when started, and
then O'scope attempts to open the same port and gets the busy error.

If you really want to use SF as a middle-person then you need to
change the O'scope MOTECOM setting to point to the SF network port
(actually I think that may be the default so perhaps just un-setting
MOTECOM will work, and no, I don't remember what the actual syntax
should be but it is onlinesomeplace).

You should be able to wire DemoSensor to any ADC input and see wiggly
lines if you touch the input pins.

MS

Strandberg, Elizabeth wrote:
> 
> David, Thank you for your suggestion, it seems to have helped the situation.
> However, now I have some new strange behavior...
> 
> If I follow the tutorial, and start the SerialForwarder before starting the
> Oscilloscope, the Oscilloscope will not start, and I get the following
> message:
> 
> ser...@com6:57600 died - exiting (java.io.IOException: Could not open COM6:
> TOSComm JNI library runtime error: Error 5. Access is denied. In
> NativeSerialPort.CreateFile)
> 
> HOWEVER, if I run the Oscilloscope WITHOUT starting the SerialForwarder, it
> opens and it looks like it's working (the reading stays constant at zero, but
> I am using an MTS400 so I'll have to create my own DemoSensorC to make it
> work I think).
> 
> Should I ignore the instructions to start the SerialForwarder, or is this a
> sign that the Oscilloscope is not yet working correctly?
> 
> Thank you for any comments or suggestions, and thank you David for your help!
> 
> 
> Elizabeth Strandberg
> 
> Message: 2 Date: Fri, 23 Oct 2009 13:38:20 +0200 From: "David Conde"
>  Subject: Re: [Tinyos-help] Oscilloscope/JNI Problem To:
> "'Strandberg, Elizabeth'" , 
>  Message-ID:
> <000501ca53d5$52724380$f756ca...@es> Content-Type: text/plain;
> charset="us-ascii"
> 
> Hi Elizabeth,
> 
> I had a similar problema which I solved reading this link:
> 
> http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg09307.html
> 
> 
> I put getenv.dll in Windows/system32 and this problem was solved.
> 
> I hope this help you
> 
> 
> De: tinyos-help-boun...@millennium.berkeley.edu 
> [mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Strandberg,
> Elizabeth Enviado el: viernes, 23 de octubre de 2009 3:44 Para:
> 'tinyos-help@millennium.berkeley.edu' Asunto: [Tinyos-help] Oscilloscope/JNI
> Problem
> 
> Hello All,
> 
> I am attempting to run the Oscilloscope application with an Iris mote.  When
> I type ./run, the oscilloscope window comes up, but there is no data
> displayed, also it does not show anything in the Mote / Color list.  In the
> Cygwin window, I get the following message:
> 
> Getenv JNI library not found.  Env.getenv will not work (run the
> tos-install-jni tool, see man tos-install-jni for more details)
> 
> However, I have run tos-install-jni, and it appeared to install with no
> complaints.
> 
> Does the blank oscilloscope problem have to do with the JNI library problem,
> or is it separate?  It seems to me that the oscilloscope window would not
> open at all if Java was not working.
> 
> Thanks in advance for any suggestions.
> 
> Elizabeth Strandberg
> 
> 
> 
> ___ Tinyos-help mailing list 
> Tinyos-help@millennium.berkeley.edu 
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope and SerialForward

2010-07-15 Thread Michael Schippling
Please post any error messages that you get.

I would recommend leaving SerialForwarder out of the loop
Just start O'scope with the MOTECOM envar setting that
you would have used with SF -- something like:
  ser...@com1:mica2
where the port name and mote type match your system.

MS

Walter Bishop wrote:
> I've managed to solve my initial problems with compiling and running
> tinyOS files.
> 
> I'm now trying to follow some tutorials like the oscilloscope but i'm
> failing to read the packet information.
> 
> I've installed the oscilloscope on a micaz sensor and the Base on
> micaz that connects to the pc. I've run the SerialForward and
> oscilloscope file, but the last one doesn't seem to be connected to a
> mote.
> 
> Can someone help me? Thanks
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope and SerialForward

2010-07-16 Thread Walter Bishop
I've been trying over and over but I'm only getting:

serial@/dev/ttyUSB0:57600: resynchronising

and then that it is sending several packages, but receiving none.

Sending packet 0
Sending packet 1
Sending packet 2
Sending packet 3
Sending packet 4
(...)


Any ideas?


2010/7/15 Walter Bishop :
> The problem is that I'm not receiving no error messages. I'm trying to
> run the oscilloscope but it seems he doesn't connect to a mote (the
> graphic/received packages) don't appear.
>
> I have another doubt, I'm trying to do sense the temperature of a room
> and then display it on a website. Do you know how can i do that?
>
> The first step should be receive the data on my computer (is there any
> exemple of snesing temperature ?)
> And then send it to a website (I have no ideia in how to do this one).
>
> Thanks in advance.
>
> (I'm using micaz with mib520 board)
>
>
> 2010/7/15 Michael Schippling :
>> Please post any error messages that you get.
>>
>> I would recommend leaving SerialForwarder out of the loop
>> Just start O'scope with the MOTECOM envar setting that
>> you would have used with SF -- something like:
>>     ser...@com1:mica2
>> where the port name and mote type match your system.
>>
>> MS
>>
>> Walter Bishop wrote:
>>>
>>> I've managed to solve my initial problems with compiling and running
>>> tinyOS files.
>>>
>>> I'm now trying to follow some tutorials like the oscilloscope but i'm
>>> failing to read the packet information.
>>>
>>> I've installed the oscilloscope on a micaz sensor and the Base on
>>> micaz that connects to the pc. I've run the SerialForward and
>>> oscilloscope file, but the last one doesn't seem to be connected to a
>>> mote.
>>>
>>> Can someone help me? Thanks
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope and SerialForward

2010-07-16 Thread Michael Schippling
I'm not familiar with an O'scope program that sends
messages from the PC to the mote, so I don't know
what is "Sending Packet N"...

I would try to find a demo app that sends periodic
messages without needing to be told (so the PC doesn't
have to send anything back...). The TOS1.x O'scope and
Sense demo apps did that I think. Then use the Listen
and ListenRaw Java tools to see that I was getting
reception and had all the right PC side settings.

I believe the T2 O'scope program only works over the
radio, so you have to have a BaseStation in between.

As to your temp app, either of the demos I mentioned
should do the trick once you "rewire" their input
config to use the right sensor/ADC channel.

MS

Walter Bishop wrote:
> I've been trying over and over but I'm only getting:
> 
> serial@/dev/ttyUSB0:57600: resynchronising
> 
> and then that it is sending several packages, but receiving none.
> 
> Sending packet 0
> Sending packet 1
> Sending packet 2
> Sending packet 3
> Sending packet 4
> (...)
> 
> 
> Any ideas?
> 
> 
> 2010/7/15 Walter Bishop :
>> The problem is that I'm not receiving no error messages. I'm trying to
>> run the oscilloscope but it seems he doesn't connect to a mote (the
>> graphic/received packages) don't appear.
>>
>> I have another doubt, I'm trying to do sense the temperature of a room
>> and then display it on a website. Do you know how can i do that?
>>
>> The first step should be receive the data on my computer (is there any
>> exemple of snesing temperature ?)
>> And then send it to a website (I have no ideia in how to do this one).
>>
>> Thanks in advance.
>>
>> (I'm using micaz with mib520 board)
>>
>>
>> 2010/7/15 Michael Schippling :
>>> Please post any error messages that you get.
>>>
>>> I would recommend leaving SerialForwarder out of the loop
>>> Just start O'scope with the MOTECOM envar setting that
>>> you would have used with SF -- something like:
>>> ser...@com1:mica2
>>> where the port name and mote type match your system.
>>>
>>> MS
>>>
>>> Walter Bishop wrote:
 I've managed to solve my initial problems with compiling and running
 tinyOS files.

 I'm now trying to follow some tutorials like the oscilloscope but i'm
 failing to read the packet information.

 I've installed the oscilloscope on a micaz sensor and the Base on
 micaz that connects to the pc. I've run the SerialForward and
 oscilloscope file, but the last one doesn't seem to be connected to a
 mote.

 Can someone help me? Thanks
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope and Imote2 problem

2010-07-27 Thread Arun Hegde
Dear Tinyos-help community,

I have been trying to get the Imote2 to function with OscilloscopeRF,
following this guide:
http://www.cse.wustl.edu/wsn/index.php?title=Running_OscilloscopeRF_on_the_Imote2

Both programs have no problems when being made and loaded onto the imotes.
The problem is the motes with OscilloscopeRF_Imote2 and TOSBase don't seem
to communicate with each other (the leds are not blinking). The
OscilloscopeRF mote blinks green once when reset, but does not continue.
Nothing is being read on the SerialForwarder.
I have reinstalled tinyos and cygwin 3 times on 2 different computers,
following the installation instructions of both that specific site and
others to no avail. Interestingly, other programs like CntToLedsAndRfm with
TOSBase work fine. I am using tinyos 1.x.


Any ideas as to what could be the problem and how I should go about solving
it? Has anyone had success with using Oscilloscope with the Imote2?

Thank you all very much,
Arun
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope GUI app problem

2008-09-22 Thread nartessos nartessos
Good morning,

I can't  compile the oscilloscope app, some tips for me?

make
mig -target=null -java-classname=OscilloscopeMsg java ../Oscilloscope.h
oscilloscope -o OscilloscopeMsg.java
/usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or
directory
/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
/usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
/usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'
/usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:243: syntax error before `return'
/usr/lib/ncc/nesc_nx.h:246: syntax error before `__nesc_ntoh_leuint8'
/usr/lib/ncc/nesc_nx.h:251: syntax error before `__nesc_hton_leuint8'
/usr/lib/ncc/nesc_nx.h:253: redefinition of `base'
/usr/lib/ncc/nesc_nx.h:242: previous declaration of `base'
/usr/lib/ncc/nesc_nx.h:253: `value' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:253: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:254: syntax error before `return'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_ntoh_int8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_hton_int8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_ntoh_leint8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_hton_leint8'
/usr/lib/ncc/nesc_nx.h:258: syntax error before `__nesc_bf_decode8'
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: syntax error before `if'
/usr/lib/ncc/nesc_nx.h:258: `uint8_t' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: `msg' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: `length' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:258: syntax error before `++'
/usr/lib/ncc/nesc_nx.h:258: syntax error before `|='
/usr/lib/ncc/nesc_nx.h:258: syntax error before `*'
/usr/lib/ncc/nesc_nx.h: In function `__nesc_bf_encode8':
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared (first use in this function)
/usr/lib/ncc/nesc_nx.h:258: (Each undeclared identifier is reported only
once
/usr/lib/ncc/nesc_nx.h:258: for each function it appears in.)
/usr/lib/ncc/nesc_nx.h:258: `length' undeclared (first use in this function)
/usr/lib/ncc/nesc_nx.h:258: `msg' undeclared (first use in this function)
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h: At top level:
/usr/lib/ncc/nesc_nx.h:258: syntax error before `__nesc_ntohbf_uint8'
.


...
...
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope in my application !!

2009-05-29 Thread Fahad Al-Jabarti

Hi everyone,


I wrote a code for my own application, now I want to display the gathered data 
on an oscilloscope.Can I do that without installing the Oscilloscope 
application on the nodes??
Another problem is that after i run the Serial Forwarder I can't type the 
command "./run" !!!

 I'm using tinyOS 2.1 on windows XP..

Thanks in advanceFahad 
_
See all the ways you can stay connected to friends and family
http://www.microsoft.com/windows/windowslive/default.aspx___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] oscilloscope make error

2011-04-21 Thread Romain Bornet
Hi Roberto,

>> /usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
You probably don't have the standard C library headers installed on you host...

On a Debian/Ubuntu system, try "sudo apt-get install build-essential"
from the command line or choose the build-essential package from your
package management application (synaptic,...).

If you are on another Linux distribution or on cygwin, find out how
you can install the standard C library header files.

Regards,
Romain

On Thu, Apr 21, 2011 at 11:38 AM, roberto pagliari
 wrote:
> Hi All,
> I have issues building the GUI for Oscilloscope application. My environment
> variables are the following
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $CLASSPATH
> /opt/tinyos-2.1.1/support/sdk/java/
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $MAKERULES
> /opt/tinyos-2.1.1/support/make/Makerules
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $TOSROOT
> /opt/tinyos-2.1.1/
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $TOSDIR
> /opt/tinyos-2.1.1/tos/
>
>
> Did I forget to include something? Below is reported the error when issuing
> make command.
>
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ make
> mig -target=null -java-classname=OscilloscopeMsg java ../Oscilloscope.h
> oscilloscope -o OscilloscopeMsg.java
> /usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
> /usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
> /usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'
> a lot of other similar lines here.
> SchedulerBasicP: `Scheduler.taskLoop' not implemented
> SchedulerBasicP: `Scheduler.bool' not implemented
> In C file:
> : Scheduler `TinySchedulerC' has no scheduling interface named
> `TaskBasic'
> ../Oscilloscope.h:28: syntax error before `nx_uint16_t'
> ../Oscilloscope.h:28: warning: no semicolon at end of struct or union
> ../Oscilloscope.h:29: syntax error before `interval'
> ../Oscilloscope.h:30: syntax error before `id'
> ../Oscilloscope.h:31: syntax error before `count'
> ../Oscilloscope.h:32: syntax error before `readings'
> ../Oscilloscope.h:33: warning: data definition has no type or storage class
> failed to parse message file ../Oscilloscope.h
> make: *** [OscilloscopeMsg.java] Error 1
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] oscilloscope make error

2011-04-21 Thread roberto pagliari
it worked, thanks!

On Thu, Apr 21, 2011 at 4:42 AM, Romain Bornet wrote:

> Hi Roberto,
>
> >> /usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or
> directory
> You probably don't have the standard C library headers installed on you
> host...
>
> On a Debian/Ubuntu system, try "sudo apt-get install build-essential"
> from the command line or choose the build-essential package from your
> package management application (synaptic,...).
>
> If you are on another Linux distribution or on cygwin, find out how
> you can install the standard C library header files.
>
> Regards,
>Romain
>
> On Thu, Apr 21, 2011 at 11:38 AM, roberto pagliari
>  wrote:
> > Hi All,
> > I have issues building the GUI for Oscilloscope application. My
> environment
> > variables are the following
> > bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $CLASSPATH
> > /opt/tinyos-2.1.1/support/sdk/java/
> > bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $MAKERULES
> > /opt/tinyos-2.1.1/support/make/Makerules
> > bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $TOSROOT
> > /opt/tinyos-2.1.1/
> > bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ echo $TOSDIR
> > /opt/tinyos-2.1.1/tos/
> >
> >
> > Did I forget to include something? Below is reported the error when
> issuing
> > make command.
> >
> > bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ make
> > mig -target=null -java-classname=OscilloscopeMsg java ../Oscilloscope.h
> > oscilloscope -o OscilloscopeMsg.java
> > /usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or
> directory
> > /usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
> > /usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'
> > a lot of other similar lines here.
> > SchedulerBasicP: `Scheduler.taskLoop' not implemented
> > SchedulerBasicP: `Scheduler.bool' not implemented
> > In C file:
> > : Scheduler `TinySchedulerC' has no scheduling interface
> named
> > `TaskBasic'
> > ../Oscilloscope.h:28: syntax error before `nx_uint16_t'
> > ../Oscilloscope.h:28: warning: no semicolon at end of struct or union
> > ../Oscilloscope.h:29: syntax error before `interval'
> > ../Oscilloscope.h:30: syntax error before `id'
> > ../Oscilloscope.h:31: syntax error before `count'
> > ../Oscilloscope.h:32: syntax error before `readings'
> > ../Oscilloscope.h:33: warning: data definition has no type or storage
> class
> > failed to parse message file ../Oscilloscope.h
> > make: *** [OscilloscopeMsg.java] Error 1
> > bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

RE: [Tinyos-help] Oscilloscope Temp conversion

2007-06-08 Thread Michael Collett

Hi,

I think this equation applies to the micasb, it's a generic thermistor type 
equation, so the thing which may be different is the value of R1.

I'd recommend keeping the raw ADC values onboard the mote. The reason for this 
is that it avoids the need for any decimal points, and also minimises any 
rounding errors which may result from conversion. Its probably better to do any 
conversion on the PC (you can look at the source code for Oscilloscope and see 
where you can make any changes).

The other possibility is to make an approximation of the equation - if you know 
the rough temperatures you will be measuring, then you can either use some of 
the terms of the expansion (http://en.wikipedia.org/wiki/Natural_logarithm), or 
even make a linear approximation. That way you can approximate the conversion 
onboard a mote using summations and multiplications - no need for a math 
library.

Another thing worth doing is to make a quick excel plot of T(K) vs ADC to get 
an idea of what the relationship does around your measurement region (and see 
if a linear approximation would do).

Hope this helps,

Mike



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 07 June 2007 18:38
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Oscilloscope Temp conversion


Hi all,

This is my first message on the help list and I hope to get a good
response.

I used the OscilloscopeRF application to sense the temperature instead
of light by using Temp instead of Photo in the Oscilloscope.nc file. I
am able to get the readings and display them on PC using TOSBase. These
readings are hexadecimal values in little endian format and I want to
convert them to celsius or kelvin. I am using the mica2 motes and
micasb board. I found a formula for this
  1/T(K) = a + b × ln(Rthr) + c × [ln(Rthr)]3
where:
Rthr = R1(ADC_FS-ADC)/ADC
a = 0.001010024
b = 0.000242127
c = 0.00146
R1 = 1.00;
ADC_FS = 1023, and
ADC = output value from Mote's ADC measurement.

now I have 3 questions
1) Is this formula correct for micasb
2) How do I calculate this in nesc as it involves logarithmic
calculations.
3) In what format is the ADC that is being used . Is it in the same
format in which the sensor senses the data ie little endian format.

Please reply to this asap as I am stuck at this point in my project
Thanks a lot
Vishal

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

---
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
   Hook, Hampshire, United Kingdom  RG27 9UY
---

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


[Tinyos-help] tinyos (help) oscilloscope help

2007-07-12 Thread nirfan
Hi

I am running the Oscilloscope program on a TelosB Mote as described in the
manual and I succesfully connected it to the java oscilloscope.
Now I wonder what I am getting on a TelosB Mote. My results are all around
3200, is that normal? Is there any specific documentation available on
using the TelosB sensors in tinyos?

Please help in understanding the results.



Thanks for your help

Nazish Irfan





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


[Tinyos-help] tinyos (help) oscilloscope help

2007-07-13 Thread nirfan
Hi All
can anybody reply please, I am new to tinyos
regards



Hi

I am running the Oscilloscope program on a TelosB Mote as described in the
manual and I succesfully connected it to the java oscilloscope.
Now I wonder what I am getting on a TelosB Mote. My results are all around
3200, is that normal? Is there any specific documentation available on
using the TelosB sensors in tinyos?

Please help in understanding the results.



Thanks for your help

Nazish Irfan







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


Re: [Tinyos-help] Oscilloscope with MATLAB

2005-11-02 Thread Manu Gupta
HI,
    I cant help you with this as I am facing the same
problem. But did u manage to run the oscilloscopeRF application for
matlab that is given in the tutorials?
thanx
Manu On 11/2/05, Stephanie Kigadye <[EMAIL PROTECTED]> wrote:
Hi all,
I am trying to read the sensor data and be able to save it as an
array (so i can analyse it) in the MATLAB workspace - the tutorial for
using TinyOS with Matlab uses the OscilloscopeRF application but i want
to implement it using the Oscilloscope application - which i have tried
but it doesn't seem to work.
i'd appreciate any ideas?
 
Cheers,
Stephanie
		To help you stay safe and secure online, we've developed the all new 
Yahoo! Security Centre.
___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
-- Luv Manu
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope with MATLAB

2005-11-02 Thread Lei Tang
Hi, Stephanie

I'm also trying to read data through the serial port using MATLAB in
order to plot curves easily. Have you tried the Oscilloscope
application just by running 'Java net.tinyos.oscope.oscilloscope' in
the cygwin window and the proper directory? It did work here.

But, I have troubles in Step 2 when I set up the MATLAB environment
following the instructions. 'Package com.mathsworks.jmi' errors occur.
Did you have the same problem before?

Thanks.
Lei
On 11/2/05, Stephanie Kigadye <[EMAIL PROTECTED]> wrote:
Hi all,
I am trying to read the sensor data and be able to save it as an
array (so i can analyse it) in the MATLAB workspace - the tutorial for
using TinyOS with Matlab uses the OscilloscopeRF application but i want
to implement it using the Oscilloscope application - which i have tried
but it doesn't seem to work.
i'd appreciate any ideas?
 
Cheers,
Stephanie
		To help you stay safe and secure online, we've developed the all new 
Yahoo! Security Centre.
___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] Oscilloscope with MATLAB

2005-11-03 Thread Stephanie Kigadye
Hi,
I have the oscilloscope application working in the cygwin shell but now i want to use it in MATLAB - i can actually get the data printed on the MATLAB workspace but i dont know how to save it in MATLAB - that's where I am stuck...
 
For setting up the MATLAB environment, i followed the instructions given by Manu Gupta at 
https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-October/012774.html
 
it worked fine for me.
 
cheers,
Stephanie
Lei Tang <[EMAIL PROTECTED]> wrote:
Hi, StephanieI'm also trying to read data through the serial port using MATLAB in order to plot curves easily. Have you tried the Oscilloscope application just by running 'Java net.tinyos.oscope.oscilloscope' in the cygwin window and the proper directory? It did work here.But, I have troubles in Step 2 when I set up the MATLAB environment following the instructions. 'Package com.mathsworks.jmi' errors occur. Did you have the same problem before?Thanks.Lei
On 11/2/05, Stephanie Kigadye <[EMAIL PROTECTED]> wrote:

Hi all,
I am trying to read the sensor data and be able to save it as an array (so i can analyse it) in the MATLAB workspace - the tutorial for using TinyOS with Matlab uses the OscilloscopeRF application but i want to implement it using the Oscilloscope application - which i have tried but it doesn't seem to work.
i'd appreciate any ideas?
 
Cheers,
Stephanie


To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. 
___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 
		Yahoo! Messenger 
 NEW - crystal clear PC to PC 
calling worldwide with voicemail 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope with MATLAB

2005-11-07 Thread Lei Tang
Thank you, guys. I had a try, but there are still some problems here.

I've got ' groupID=DD' in the MATLAB workplace. And then I followed the
instructions. But I'm not sure whether I set the system classpath
correctly becasue I know almost nothing about JAVA. 
I just add the following line in MAKEFILE,
javac -classpath
CLASSPATH;c:\\matlab7\\java\\jar\\jmi.jar;c:\\tinyos\\cygwin\\opt\\tinyos-1.x\\tools\\java\\comm.jar;c:\\tinyos\\cygwin\\opt\\tinyos-1.x\\tools\\java;
$(JAVA);

When I compiled by running ' make matlab', errors were returned like this:

javac -classpath CLASSPATH;c:\\matlab7\\java\\jar\\jmi.jar;c:\\tinyos\\cygwin\\o
pt\\tinyos-1.x\\tools\\java\\comm.jar;c:\\tinyos\\cygwin\\opt\\tinyos-1.x\\tools
\\java; MatlabClock.java MatlabControl.java MatlabMessageListener.java MatlabMes
senger.java;
PK: not found
c:\matlab7\java\jar\jmi.jar: 11: Syntax error: "|" unexpected
c:\tinyos\cygwin\opt\tinyos-1.x\tools\java\comm.jar: 1: Syntax error: Illegal eo
f marker for << redirection
c:\tinyos\cygwin\opt\tinyos-1.x\tools\java: not found
//: not found
./MatlabClock.java: 3: Syntax error: "(" unexpected
make: *** [matlab] Error 2

I was so frustrated. 
Could you guys tell me how to set the class path? Also, is it probable that the files have syntax errors? How can I modify them?

Thanks again.

Lei

On 11/3/05, Stephanie Kigadye <[EMAIL PROTECTED]> wrote:
Hi,
I have the oscilloscope application working in the cygwin shell
but now i want to use it in MATLAB - i can actually get the data
printed on the MATLAB workspace but i dont know how to save it in
MATLAB - that's where I am stuck...
 
For setting up the MATLAB environment, i followed the instructions given by Manu Gupta at 
https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-October/012774.html

 
it worked fine for me.
 
cheers,
Stephanie
Lei Tang <[EMAIL PROTECTED]> wrote:
Hi, StephanieI'm
also trying to read data through the serial port using MATLAB in order
to plot curves easily. Have you tried the Oscilloscope application just
by running 'Java net.tinyos.oscope.oscilloscope' in the cygwin window
and the proper directory? It did work here.But, I have troubles
in Step 2 when I set up the MATLAB environment following the
instructions. 'Package com.mathsworks.jmi' errors occur. Did you have
the same problem before?Thanks.Lei
On 11/2/05, Stephanie Kigadye <[EMAIL PROTECTED]
> wrote:

Hi all,
I am trying to read the sensor data and be able to save it as an
array (so i can analyse it) in the MATLAB workspace - the tutorial for
using TinyOS with Matlab uses the OscilloscopeRF application but i want
to implement it using the Oscilloscope application - which i have tried
but it doesn't seem to work.
i'd appreciate any ideas?
 
Cheers,
Stephanie


To help you stay safe and secure online, we've developed the all new 
Yahoo! Security Centre. 
___Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 

		
Yahoo! Messenger 
 NEW - crystal clear PC to PC 
calling worldwide with voicemail 


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


[Tinyos-help] Oscilloscope application and data rate

2007-11-29 Thread Nashwa Abo Elneel
Hi,

I have a question regarding the oscilloscope application in lesson 6 of TinyOs 
1.x tutorial. the application states that the maximum Payload size of a TinyOS 
frame is 29 bytes however it doesn't put any limitation regarding the serial 
data forwarder. does this mean that the maximum data rate achieved by the 
serial forwarder is equal to the UART chosen baud rate. and if each packet has 
about 34 Bytes as explained in detail down then the serial forwarder can 
achieve a data rate of about 200 packets per second?

Does anyone know why the payload size was limited to 29 bytes only? can it be 
increased?

The high data rate is necessary for me since i am having a high data rate 
application and would like to achieve a reasonable packets per size which are 
not supported by the Xserve application of Moteworks which limits the packets 
to 5 packets per second making it unsuitable for my application.

anybody has ideas?

Regards,
Nashwa

   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope application for tmote sky

2008-01-03 Thread Edmund J
Hi all,
  Is the example oscilloscope application for tmote sky using multihop routing? 
what kind of routing is it using? Thank you.
   
  Regards,
  Edmund

   
-
 
 Real people. Real questions. Real answers. Share what you know.___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope in my application !!

2009-05-29 Thread Michael Schippling
If you use the O'scope message structure in your app
you should be able to use the O'scope java program to
view the results. Or you can modify the java code to
use your message structure, which might be a better
solution because I'll bet your next question will be,
how can I modify the O'scope program to display xxx?

If the second problem is that SF is running in your
shell window blocking you from executing anything else,
then the solution is to either open another window,
or, using the magic of UNIX, put an ampersand '&' at
the end of the SF command line to make it run in the
background. See "man bash" for more explanation than
you will ever want.

MS

Fahad Al-Jabarti wrote:
> Hi everyone,
> 
> 
> 
> I wrote a code for my own application, now I want to display the 
> gathered data on an oscilloscope.
> Can I do that without installing the Oscilloscope application on the nodes??
> 
> Another problem is that after i run the Serial Forwarder I can't type 
> the command "./run" !!!
> 
> 
>  I'm using tinyOS 2.1 on windows XP..
> 
> 
> Thanks in advance
> Fahad 
> 
> 
> See all the ways you can stay connected to friends and family 
> 
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope Modification for Mic Sensing

2011-04-12 Thread Rajesh J S
Hello,

I am a beginner in tinyos programming. I have micaz motes with mts310 sensor 
board. How do i modify the oscilloscope to obtain data from sampling Mic at 
around 1kHz.
Thank you.

-Rajesh J S
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] tinyos (help) oscilloscope help

2007-07-13 Thread Peizhao Hu
yeah, it is common, because it is the ADC value I guess. refer to the 
sensor data sheet for data conversion.

you will need to convert it from engineering value to scientific value.

[EMAIL PROTECTED] wrote:

Hi All
can anybody reply please, I am new to tinyos
regards



Hi

I am running the Oscilloscope program on a TelosB Mote as described in the
manual and I succesfully connected it to the java oscilloscope.
Now I wonder what I am getting on a TelosB Mote. My results are all around
3200, is that normal? Is there any specific documentation available on
using the TelosB sensors in tinyos?

Please help in understanding the results.



Thanks for your help

Nazish Irfan







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


--
regards;

Peizhao

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


[Tinyos-help] Oscilloscope GUI multi node help

2006-01-20 Thread NORDSTR�M
Hi,

I have a problem.
Even when I try to run the Oscilloscope application
with multiple nodes, the Serial Forwarder shows that
the number of clients is 1.
Is it correct ? Or is it wrong ?

Thanks,
tina

  ---
  TINA NORDSTRÖM 



__
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


Re: [Tinyos-help] Oscilloscope application and data rate

2007-11-29 Thread Michael Schippling

My experience is that the data rate is limited, first by the "UART"
speed (for tmote using USB, I think this is not an issue, but micaz's
over serial are possibly baud-rate bound) and then by the radio
packet cycle time...for the most part I think 200 standard sized
messages a sec is the practical limit. Mica2's are limited to about
25 msg/sec by the radio speed itself.

Search back on this list for the logic of 29 byte payloads,
and advice about increasing such.

MS

Nashwa Abo Elneel wrote:

Hi,

I have a question regarding the oscilloscope application in lesson 6 of 
TinyOs 1.x tutorial. the application states that the maximum Payload 
size of a TinyOS frame is 29 bytes however it doesn't put any limitation 
regarding the serial data forwarder. does this mean that the maximum 
data rate achieved by the serial forwarder is equal to the UART chosen 
baud rate. and if each packet has about 34 Bytes as explained in detail 
down then the serial forwarder can achieve a data rate of about 200 
packets per second?


Does anyone know why the payload size was limited to 29 bytes only? can 
it be increased?


The high data rate is necessary for me since i am having a high data 
rate application and would like to achieve a reasonable packets per size 
which are not supported by the Xserve application of Moteworks which 
limits the packets to 5 packets per second making it unsuitable for my 
application.


anybody has ideas?

Regards,
Nashwa


Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See 
how. 





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

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


[Tinyos-help] Oscilloscope on MIB520 with iris motes

2009-07-24 Thread Rover Arnaud
Hi TinyOS Users,

I recently aquire a Crossbow stater kit composed of a MIB520 base
station and 2 iris nodes. 
I have installed tinyOS 2.1.0 on a Ubuntu machine and I tried to setup
some programs on my sensors.

Here is my problem, now, when I lauch the Listen java application I have
no outputs . 

I can program the base station, Blink application works fine. But I
think I can't program iris motes because when i execute:
make iris install.5063 mib520,/dev/ttyUSB0 # In blink apps folder

Blink apps is setup on the base station and not on the 5063 iris mote.

For the moment my goal is to make Oscilloscope application work on a
mote.

So I setup the Basestation application on the MIB 520 Base station and I
setup oscilloscope apps on the 5063 iris mote. To do that I executed the
following command :

make iris install.0 mib520,/dev/ttyUSB0 #In BaseStation folder
SENSORBOARD=MTS300 make iris install.5078 mib520,/dev/ttyUSB0 #
Oscilloscope Folder

Installs procedures seem to be corrrect, I see my computer uploading
files on the base station. 

But when I launch Listen java application I still get no outputs. What
am I doing wrong?  What should I do?


Thanking you for your help

Arnaud

Note: When I try to change in OscilloscopeAppC.nc DemoSensorC in TempC I
get: 

OscilloscopeAppC.nc:23: component TempC not found
OscilloscopeAppC.nc:23: component `TempC' is not generic

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope w MTS300 on an IRIS

2008-07-17 Thread Charles Elliott
I've been running Oscilloscope with the following changes to
OscilloscopeAppC:

...new SensorMts300C() as Sensor...

...OscilloscopeC.Read -> Sensor.Temp;...

Then installing using the following command
$ SENSORBOARD=MTS300 make iris install,1 mib520,COM5

Installing a basestation on a different mote and then running
serialForwarder and the java app

Everything seems to work fine but I'm getting no data after connecting an
MTS310 board to the mote.
If I take the sensorboard off the mote then I do receive data and a line is
plotted on the graph.

What am I doing wrong?

Thanks
Charles
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope Data Injection Into mySQL Database

2009-05-23 Thread MOHSIN MURAD

Hello All,

I am using TinyOS & telosB Motes to fetch humidity and temperature values of 
multiple locations using the Oscilloscope application, I wanted to ask how can 
I convert these values into centigrades or fahrenheits and what can I do to 
make them accessible from the internet like how to inject them to a mySQL 
databse?

Regards,
Mohsin Murad


_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope single mote multiple channel display

2007-05-21 Thread Ferry Cialis

Hello,
I'd like to know whether it is possible for Oscilloscope java application to
display multiple sensor readings from a single mote? For instance, I have a
sensor board which has accelerometer-x, accelerometer-y and temperature
sensors. The sensor board is mounted onto a single mote. Can the
Oscilloscope application display multiple sensor channels from the setup?

I've tried displaying multiple channels before but it requires multiple
motes, each mote corresponding to one channel but it's not efficient and
quite wasteful to have many motes if I can use just one mote to display
multiple readings.

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

Re: [Tinyos-help] Oscilloscope GUI multi node help

2006-01-23 Thread Harri Siirtola

Hi Tina,

it's correct. The count stands for clients on the PC side i.e. every 
instantiation of Oscillopscope, xlisten or some other app connecting to 
SerialForwarder increments the client count. Nothing to do with mote count 
in the network.


Regards,

Harri

At 01:13 PM 1/20/2006 -0800, TINA "NORDSTRÖM" wrote:

Hi,

I have a problem.
Even when I try to run the Oscilloscope application
with multiple nodes, the Serial Forwarder shows that
the number of clients is 1.
Is it correct ? Or is it wrong ?

Thanks,
tina

  ---
  TINA NORDSTRÖM



__
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


[Tinyos-help] Oscilloscope results on a TelosB Mote

2006-05-10 Thread Bart Braem
I am running the Oscilloscope program on a TelosB Mote as described in the
manual and I succesfully connected it to the java oscilloscope.
Now I wonder what I am getting on a TelosB Mote. My results are all around
2900, is that normal? Is there any specific documentation available on
using the TelosB sensors in tinyos?

Thanks for your help and a great OS,
Bart

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


Re: [Tinyos-help] Oscilloscope on MIB520 with iris motes

2009-07-24 Thread Janos Sallai
> I can program the base station, Blink application works fine. But I
> think I can't program iris motes because when i execute:
> make iris install.5063 mib520,/dev/ttyUSB0 # In blink apps folder
>
> Blink apps is setup on the base station and not on the 5063 iris mote.

You need to physically attache the mote you want to program to the MIB520.

Janos
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Oscilloscope on MIB520 with iris motes

2009-07-24 Thread Michael Schippling
Also with the MIB520 the serial port is 1+ the port used during
programming. So make sure you are using ttyUSB1 with Listen.

MS


Janos Sallai wrote:
>> I can program the base station, Blink application works fine. But I
>> think I can't program iris motes because when i execute:
>> make iris install.5063 mib520,/dev/ttyUSB0 # In blink apps folder
>>
>> Blink apps is setup on the base station and not on the 5063 iris mote.
> 
> You need to physically attache the mote you want to program to the MIB520.
> 
> Janos
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope packet structure and Printf in MATLAB

2010-03-15 Thread vishram mishra
Dear all,
I am trying to send the packet to the serial port and display it using 
Oscilloscope GUI. I used the Oscilloscope program and it works fine. But when i 
tried my own routing protocol with my own packet structure, the base station 
program doesn't recognizes it. Please provide me information regarding the 
packet structure to be used for GUI oscilloscope. 

I have another problem too. When i used the printf function along with 
net.tinyos.tools.PrintfClient, it works fine. But when i tried to print the 
data over Hyper Terminal or over the Serial object of the MATLAB, it displays 
data along with some garbage values also. I think i am missing some 
configurations for serial connections. Please provide me exact specification 
for serial connection.
I am using mica2 mote with 57600 baud rate, data bits=8, parity = none, stop 
bits =1, flow control =none.

Regards
Vishram Mishra
CSE, CUSAT



  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
http://downloads.yahoo.com/in/internetexplorer/___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope tinyos-2.x MicC not responding

2009-05-11 Thread Akankshu Dhawan
Hi All
I would really appreciate if someone can help me with my work.

I have been able to get the Oscilloscope application working for tinyos-2.x
for the PhotoC sensor.

But When I changed the Sensor to MicC I dont receive any data... could
someone please guide me as what more changes need to be made to get the
Microphone data.

Regards
Akankshu Dhawan

-- 
First they ignore you, then they laugh at you, then they fight you, then you
win.
- Mahatma Gandhi
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Oscilloscope Java compiling warnings and launch failure

2009-05-17 Thread David Li
Hi,

Following the tutorial, I compiled the Oscilloscope java code and got the
warnings which I think was probably harmless:

- Warnings

mig -target=null -java-classname=OscilloscopeMsg java ../Oscilloscope.h
oscilloscope -o OscilloscopeMsg.java
ncg -target=null -java-classname=Constants java ../Oscilloscope.h NREADINGS
DEFAULT_INTERVAL -o Constants.java
javac *.java
--
1. WARNING in ColorCellEditor.java (at line 17)
public class ColorCellEditor extends AbstractCellEditor
 ^^^
The serializable class ColorCellEditor does not declare a static final
serialVersionUID field of type long
--
--
2. WARNING in Data.java (at line 11)
import java.util.*;
   ^
The import java.util is never used
--
--
3. WARNING in Graph.java (at line 13)
import java.awt.event.*;
   ^^
The import java.awt.event is never used
--
4. WARNING in Graph.java (at line 16)
import java.util.*;
   ^
The import java.util is never used
--
5. WARNING in Graph.java (at line 19)
class Graph extends JPanel
  ^
The serializable class Graph does not declare a static final
serialVersionUID field of type long
--
--
6. WARNING in Window.java (at line 37)
class MoteTableModel extends AbstractTableModel {
  ^^
The serializable class MoteTableModel does not declare a static final
serialVersionUID field of type long
--
7. WARNING in Window.java (at line 112)
static class MoteColor extends JLabel implements TableCellRenderer {
 ^
The serializable class MoteColor does not declare a static final
serialVersionUID field of type long

- End of Warnings
-

But when I tried to launch by "./run", it failed:

Exception in thread "main" java.awt.AWTError: No suitable parent found for
Component.
   at javax.swing.JColorChooser.createDialog(libgcj.so.90)
   at ColorCellEditor.(ColorCellEditor.java:25)
   at Window.setup(Window.java:166)
   at Oscilloscope.run(Oscilloscope.java:54)
   at Oscilloscope.main(Oscilloscope.java:128)

I suspect it might be something wrong with my *CLASSPATH*:
.:/opt/tinyos-2.1.0/support/sdk/java/tinyos.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0.18/jre/lib

Any comments?

Thanks.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Oscilloscope Data Injection Into mySQL Database

2009-05-24 Thread Varun Jain
Hi,

You  will need to read the specification sheets of your temperature and
humidity devices and they will give you a conversion formula. In your
java application for Oscilloscope application, after reading in the
values, you can convert the values according to the formula.

 

For your other query, you will need a JDBC connection to your MySQL
database. I have done that with my application successfully. I will post
snippets of my java code which does the JDBC connection.

 

static String userid="root", password="x";

static String url = "jdbc:mysql://localhost/wsn"; 

static Connection con = null;

static Statement stmt = null;

 

public static Connection getJDBCConnection(){

try {

 
Class.forName("com.mysql.jdbc.Driver");

} catch(java.lang.ClassNotFoundException
e) {

 
System.err.print("ClassNotFoundException: ");

 
System.err.println(e.getMessage());

}

try {

   con =
DriverManager.getConnection(url, userid, password);

} catch(SQLException ex) {

 
System.err.println("SQLException: " + ex.getMessage());

}

return con;

}

 

public void messageReceived(int dest_addr, Message
message) {

try {

Connection con = getJDBCConnection();   

} catch (Exception ex) {

 
System.err.println("Exception at start: " + ex.getMessage());

}  





if (message instanceof OscilloscopeMsg)
{

OscilloscopeMsg packet =
(OscilloscopeMsg)message;   

try {

if(con!=
null) {

 
// Get a statement from the connection

 
Statement stmt = con.createStatement();

 
String sql;



 
sql = "SELECT Count(*) as Count FROM OscilloscopeMsg WHERE source = "
+packet.get_source() ;

 


 
ResultSet rs = stmt.executeQuery(sql) ;



 
//SQL SPECIFIC CODE

 

 
rs.close() ;


 
stmt.executeUpdate(sql);

 
stmt.close() ;

 
con.close() ;   

} else {

 
System.out.println("Could not Get Connection for oscilloscope message");

}


} catch (Exception ex) {

 
System.err.println("Exception: " + ex.getMessage());

} 

}

}

 

 

I hope this helps. 

 

Cheers,

 

Varun Jain

 

From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of MOHSIN
MURAD
Sent: Sunday, 24 May 2009 7:34 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Oscilloscope Data Injection Into mySQL Database

 

Hello All,

I am using TinyOS & telosB Motes to fetch humidity and temperature
values of multiple locations using the Oscilloscope application, I
wanted to ask how can I convert these values into centigrades or
fahrenheits and what can I do to make them accessible from the internet
like how to inject them to a mySQL databse?

Regards,

Mohsin Murad

 



What can you do with the new Windows Live? Find out
<http://www.microsoft.com/windows/windowslive/default.aspx> 

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] oscilloscope application-after 16000 samples -samples lost?

2007-02-01 Thread manu suryavansh
hi all,
in the oscilloscope application from moteiv, after 16000 samples it again 
starts from 1st sample so if 17000 smaples have been taken and then i click on 
save in the gui i get only 1000 samples in the file
can somebody tell me why is this happening? and how can i get all the samples?

thank you
manu 

 
-
Everyone is raving about 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

RE: [Tinyos-help] Oscilloscope single mote multiple channel display

2007-05-21 Thread Firat TARAKTAS
Hi,
 
If you use TinyOS-1.x, you can achieve it with assigning different
channel numbers to each sensor. Oscilloscope application shows the mote
id and channel to eparate each sensor readings.
 
If you use T2, i wonder the answer and i want to know it. Because in
osilloscope application, there is no channel number.
 

Firat TARAKTAS

Electrical&Electronics Engineer

Reseracher
GENETLAB INFORMATION TECHNOLOGIES
Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
Icerenkoy / ISTANBUL / TURKIYE
Phone: +90 (216) 573 00 85 (int.354)
Fax: +90 (216) 469 85 07
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
www.genetlab.com <http://www.genetlab.com/> 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ferry
Cialis
Sent: Monday, May 21, 2007 11:44 AM
To: Tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Oscilloscope single mote multiple channel display


Hello,
I'd like to know whether it is possible for Oscilloscope java
application to display multiple sensor readings from a single mote? For
instance, I have a sensor board which has accelerometer-x,
accelerometer-y and temperature sensors. The sensor board is mounted
onto a single mote. Can the Oscilloscope application display multiple
sensor channels from the setup? 

I've tried displaying multiple channels before but it requires multiple
motes, each mote corresponding to one channel but it's not efficient and
quite wasteful to have many motes if I can use just one mote to display
multiple readings. 

Thank you

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

Re: [Tinyos-help] Oscilloscope single mote multiple channel display

2007-05-21 Thread Ferry Cialis

Hi, thanks for the help!
I'm currently using TinyOS-1.x though,
I'm still learning nesC and need more detailed explanations on how to assign
different channel numbers to each sensor. Where exactly do I alter/add these
channel numbers ?

Thanks

On 5/21/07, Firat TARAKTAS <[EMAIL PROTECTED]> wrote:


 Hi,

If you use TinyOS-1.x, you can achieve it with assigning different channel
numbers to each sensor. Oscilloscope application shows the mote id and
channel to eparate each sensor readings.

If you use T2, i wonder the answer and i want to know it. Because in
osilloscope application, there is no channel number.


Firat TARAKTAS

Electrical&Electronics Engineer

Reseracher
*GENETLAB INFORMATION TECHNOLOGIES**
*Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
Icerenkoy / ISTANBUL / TURKIYE
Phone: +90 (216) 573 00 85 (int.354)
Fax: +90 (216) 469 85 07
[EMAIL PROTECTED]
www.genetlab.com


 --
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Ferry Cialis
*Sent:* Monday, May 21, 2007 11:44 AM
*To:* Tinyos-help@Millennium.Berkeley.EDU
*Subject:* [Tinyos-help] Oscilloscope single mote multiple channel display

Hello,
I'd like to know whether it is possible for Oscilloscope java application
to display multiple sensor readings from a single mote? For instance, I have
a sensor board which has accelerometer-x, accelerometer-y and temperature
sensors. The sensor board is mounted onto a single mote. Can the
Oscilloscope application display multiple sensor channels from the setup?

I've tried displaying multiple channels before but it requires multiple
motes, each mote corresponding to one channel but it's not efficient and
quite wasteful to have many motes if I can use just one mote to display
multiple readings.

Thank you

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

RE: [Tinyos-help] Oscilloscope single mote multiple channel display

2007-05-22 Thread Firat TARAKTAS
Hi,
 
In the beginning, i have to warn you that you should understand what you
did.
 
Assume you have X and Y sensors. 
 
1. modify this part in OsciloscopeM.nc;
 
  uint8_t packetReadingNumber;
  uint16_t readingNumber;
  TOS_Msg msg[2];
  uint8_t currentMsg;
 
to, 
 
  uint8_t XpacketReadingNumber;
  uint16_t XreadingNumber;
  TOS_Msg Xmsg[2];
  uint8_t XcurrentMsg;
  uint8_t YpacketReadingNumber;
  uint16_t YreadingNumber;
  TOS_Msg Ymsg[2];
  uint8_t YcurrentMsg;
 
And you have to modify whole code in OscilloscopeM.nc to differentiate
the X and Y sensor readings and their reading numbers.
 
2. In OscilloscopeM.nc file, double the task named dataTask as XdataTask
and YdataTask. For XdataTask, assign channel 1 and for YdataTask assign
channel 2. (Of course you can change the numbers.) 
 
task void XdataTask() {
struct OscopeMsg *pack;
atomic {
  pack = (struct OscopeMsg *)msg[currentMsg].data;
  packetReadingNumber = 0;
  pack->lastSampleNumber = readingNumber;
}
 
pack->channel = 1;
pack->sourceMoteID = TOS_LOCAL_ADDRESS;
 
3. When you read X sensor and Y sensor, call XdataTask and YdataTask
respectively.
4. You have to double the ADC interfaces in OscilloscopeM.nc (If you
sample X and Y sensor readings from ADC)
interface ADC as ADC1;
interface ADC as ADC2;
5. Combine them ADC1 and ADC2 interfaces to appropriate ADC channels in
Oscilloscope.nc
 
It needs more dealing and if you don't understand the modification, it
gets confusing. I am looking forward to hearing good news.
 
Enjoy the day,
 

Firat TARAKTAS

Electrical&Electronics Engineer

Reseracher
GENETLAB INFORMATION TECHNOLOGIES
Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
Icerenkoy / ISTANBUL / TURKIYE
Phone: +90 (216) 573 00 85 (int.354)
Fax: +90 (216) 469 85 07
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
www.genetlab.com <http://www.genetlab.com/> 

 



From: Ferry Cialis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 22, 2007 9:28 AM
To: Firat TARAKTAS
Cc: Tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Oscilloscope single mote multiple channel
display


Hi, thanks for the help!
I'm currently using TinyOS-1.x though,
I'm still learning nesC and need more detailed explanations on how to
assign different channel numbers to each sensor. Where exactly do I
alter/add these channel numbers ?

Thanks


On 5/21/07, Firat TARAKTAS <[EMAIL PROTECTED]> wrote: 

Hi,
 
If you use TinyOS-1.x, you can achieve it with assigning
different channel numbers to each sensor. Oscilloscope application shows
the mote id and channel to eparate each sensor readings.
 
If you use T2, i wonder the answer and i want to know it.
Because in osilloscope application, there is no channel number.
 

Firat TARAKTAS

Electrical&Electronics Engineer

Reseracher
GENETLAB INFORMATION TECHNOLOGIES
Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
Icerenkoy / ISTANBUL / TURKIYE
Phone: +90 (216) 573 00 85 (int.354)
Fax: +90 (216) 469 85 07
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

www.genetlab.com <http://www.genetlab.com/> 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ferry
Cialis
Sent: Monday, May 21, 2007 11:44 AM
To: Tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Oscilloscope single mote multiple channel
display



Hello,
I'd like to know whether it is possible for Oscilloscope java
application to display multiple sensor readings from a single mote? For
instance, I have a sensor board which has accelerometer-x,
accelerometer-y and temperature sensors. The sensor board is mounted
onto a single mote. Can the Oscilloscope application display multiple
sensor channels from the setup? 

I've tried displaying multiple channels before but it requires
multiple motes, each mote corresponding to one channel but it's not
efficient and quite wasteful to have many motes if I can use just one
mote to display multiple readings. 

Thank you



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

Re: [Tinyos-help] Oscilloscope single mote multiple channel display

2007-05-22 Thread Ferry Cialis

Hello,
Yeah it works now! Thank you for the clear instructions!
I've managed to get many sensors to display on oscilloscope from single mote
although there seems to be many data loss as seen from the graphs jerky
movement and rough plots. I think that is because of data packet collisions
from the different sensors when they are transmitting.

Thank you so much for the help!

On 5/22/07, Firat TARAKTAS <[EMAIL PROTECTED]> wrote:


 Hi,

In the beginning, i have to warn you that you should understand what you
did.

Assume you have X and Y sensors.

1. modify this part in OsciloscopeM.nc;

  uint8_t packetReadingNumber;
  uint16_t readingNumber;
  TOS_Msg msg[2];
  uint8_t currentMsg;

to,

   uint8_t XpacketReadingNumber;
  uint16_t XreadingNumber;
  TOS_Msg Xmsg[2];
  uint8_t XcurrentMsg;
   uint8_t YpacketReadingNumber;
  uint16_t YreadingNumber;
  TOS_Msg Ymsg[2];
  uint8_t YcurrentMsg;

And you have to modify whole code in OscilloscopeM.nc to differentiate the
X and Y sensor readings and their reading numbers.

2. In OscilloscopeM.nc file, double the task named dataTask as XdataTask
and YdataTask. For XdataTask, assign channel 1 and for YdataTask assign
channel 2. (Of course you can change the numbers.)

task void XdataTask() {
struct OscopeMsg *pack;
atomic {
  pack = (struct OscopeMsg *)msg[currentMsg].data;
  packetReadingNumber = 0;
  pack->lastSampleNumber = readingNumber;
}

*pack->channel = 1;*
pack->sourceMoteID = TOS_LOCAL_ADDRESS;

3. When you read X sensor and Y sensor, call XdataTask and YdataTask
respectively.
4. You have to double the ADC interfaces in OscilloscopeM.nc (If you
sample X and Y sensor readings from ADC)
interface ADC as ADC1;
interface ADC as ADC2;
5. Combine them ADC1 and ADC2 interfaces to appropriate ADC channels in
Oscilloscope.nc

It needs more dealing and if you don't understand the modification, it
gets confusing. I am looking forward to hearing good news.

Enjoy the day,


Firat TARAKTAS

Electrical&Electronics Engineer

Reseracher
*GENETLAB INFORMATION TECHNOLOGIES**
*Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
Icerenkoy / ISTANBUL / TURKIYE
Phone: +90 (216) 573 00 85 (int.354)
Fax: +90 (216) 469 85 07
[EMAIL PROTECTED]
www.genetlab.com


 --
*From:* Ferry Cialis [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, May 22, 2007 9:28 AM
*To:* Firat TARAKTAS
*Cc:* Tinyos-help@millennium.berkeley.edu
*Subject:* Re: [Tinyos-help] Oscilloscope single mote multiple channel
display

Hi, thanks for the help!
I'm currently using TinyOS-1.x though,
I'm still learning nesC and need more detailed explanations on how to
assign different channel numbers to each sensor. Where exactly do I
alter/add these channel numbers ?

Thanks

On 5/21/07, Firat TARAKTAS <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
> If you use TinyOS-1.x, you can achieve it with assigning different
> channel numbers to each sensor. Oscilloscope application shows the mote id
> and channel to eparate each sensor readings.
>
> If you use T2, i wonder the answer and i want to know it. Because in
> osilloscope application, there is no channel number.
>
>
> Firat TARAKTAS
>
> Electrical&Electronics Engineer
>
> Reseracher
> *GENETLAB INFORMATION TECHNOLOGIES**
> *Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
> Icerenkoy / ISTANBUL / TURKIYE
> Phone: +90 (216) 573 00 85 (int.354)
> Fax: +90 (216) 469 85 07
> [EMAIL PROTECTED]
> www.genetlab.com
>
>
>  --
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Ferry Cialis
> *Sent:* Monday, May 21, 2007 11:44 AM
> *To:* Tinyos-help@Millennium.Berkeley.EDU
> *Subject:* [Tinyos-help] Oscilloscope single mote multiple channel
> display
>
>  Hello,
> I'd like to know whether it is possible for Oscilloscope java
> application to display multiple sensor readings from a single mote? For
> instance, I have a sensor board which has accelerometer-x, accelerometer-y
> and temperature sensors. The sensor board is mounted onto a single mote. Can
> the Oscilloscope application display multiple sensor channels from the
> setup?
>
> I've tried displaying multiple channels before but it requires multiple
> motes, each mote corresponding to one channel but it's not efficient and
> quite wasteful to have many motes if I can use just one mote to display
> multiple readings.
>
> Thank you
>


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

[Tinyos-help] Oscilloscope App - Temperature readings (SensirionSht11C.nc) - TOS 2.x

2007-11-22 Thread Chanaka Lloyd
hello guys

i'm playing with the Oscilloscope app in $TOSROOT/apps/Oscilloscope.
i'm using 'Tmote sky' motes and TOS 2.x in Debian.

i've managed to wire VoltageC sensor, SineSensorC sensor and Light
sensor ('Hamamatsu'). I've failed to wire up the 'Sensirion' sensors
to read humidity or temperature.

what i did for light and other sensors: simply took DemoSensorC.nc
from $TOSROOT/tos/platforms/telosa, copied it to .../telosb. copied
sht11 directory in .../telosa to /telosb too. then replaced
VoltageC() with HamamatsuS1087ParC(). then Oscilloscope app reads the
light sensor measurements.

what i need: wiring up SensirionSht11C() like that does not work
similarly. they say the temperature and humidity data are coming
sequentially. my compiler gives a 'ambiguous' error.

can someone pls help? (pls state which files i need and where i need
them copied)

thanks

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


[Tinyos-help] Oscilloscope App - Temperature readings (SensirionSht11C.nc) - TOS 2.x

2007-11-24 Thread Chanaka Lloyd
hello guys

i'm playing with the Oscilloscope app in $TOSROOT/apps/Oscilloscope.
i'm using 'Tmote sky' motes and TOS 2.x in Debian.

i've managed to wire VoltageC sensor, SineSensorC sensor and Light
sensor ('Hamamatsu'). I've failed to wire up the 'Sensirion' sensors
to read humidity or temperature.

what i did for light and other sensors: simply took DemoSensorC.nc
from $TOSROOT/tos/platforms/telosa, copied it to .../telosb. copied
sht11 directory in .../telosa to /telosb too. then replaced
VoltageC() with HamamatsuS1087ParC() in the  DemoSensorC.nc file. then
Oscilloscope app reads the light sensor measurements.

what i need: wiring up SensirionSht11C() like that does not work
similarly. they say the temperature and humidity data are coming
sequentially. my compiler gives a 'ambiguous' error.

can someone pls help? (pls state which files i need and where i need
them copied)

thanks

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


Re: [Tinyos-help] Oscilloscope Java compiling warnings and launch failure

2009-05-17 Thread Michael Schippling
You are right the warnings seem harmless enough, it's just Java
trying to help you do things the way they want you to.

The error is odd, as JColorChooser seems to be a standard part of
the javax.swing package since v1.4.2. Are you using an older JDK?
Try "type javac", "type java", and "java -version"...

It looks like the libgcj.so that is referenced is part of a GNU Java
compiler of which I know nothing. Perhaps you have a crossed up system?
Try googling the offending names (that's what I just did) and see if it
leads anywhere.

MS

David Li wrote:
> Hi,
> 
> Following the tutorial, I compiled the Oscilloscope java code and got 
> the warnings which I think was probably harmless:
> 
> - Warnings 
> 
> mig -target=null -java-classname=OscilloscopeMsg java ../Oscilloscope.h 
> oscilloscope -o OscilloscopeMsg.java
> ncg -target=null -java-classname=Constants java ../Oscilloscope.h 
> NREADINGS DEFAULT_INTERVAL -o Constants.java
> javac *.java
> --
> 1. WARNING in ColorCellEditor.java (at line 17)
> public class ColorCellEditor extends AbstractCellEditor
>  ^^^
> The serializable class ColorCellEditor does not declare a static final 
> serialVersionUID field of type long
> --
> --
> 2. WARNING in Data.java (at line 11)
> import java.util.*;
>^
> The import java.util is never used
> --
> --
> 3. WARNING in Graph.java (at line 13)
> import java.awt.event.*;
>^^
> The import java.awt.event is never used
> --
> 4. WARNING in Graph.java (at line 16)
> import java.util.*;
>^
> The import java.util is never used
> --
> 5. WARNING in Graph.java (at line 19)
> class Graph extends JPanel
>   ^
> The serializable class Graph does not declare a static final 
> serialVersionUID field of type long
> --
> --
> 6. WARNING in Window.java (at line 37)
> class MoteTableModel extends AbstractTableModel {
>   ^^
> The serializable class MoteTableModel does not declare a static final 
> serialVersionUID field of type long
> --
> 7. WARNING in Window.java (at line 112)
> static class MoteColor extends JLabel implements TableCellRenderer {
>  ^
> The serializable class MoteColor does not declare a static final 
> serialVersionUID field of type long
> 
> - End of Warnings 
> -
> 
> But when I tried to launch by "./run", it failed:
> 
> Exception in thread "main" java.awt.AWTError: No suitable parent found 
> for Component.
>at javax.swing.JColorChooser.createDialog(libgcj.so.90)
>at ColorCellEditor.(ColorCellEditor.java:25)
>at Window.setup(Window.java:166)
>at Oscilloscope.run(Oscilloscope.java:54)
>at Oscilloscope.main(Oscilloscope.java:128)
> 
> I suspect it might be something wrong with my *CLASSPATH*: 
> .:/opt/tinyos-2.1.0/support/sdk/java/tinyos.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0.18/jre/lib
> 
> Any comments?
> 
> Thanks.
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Oscilloscope Application Java 'listen' tool has no output!

2009-07-02 Thread Mazid H Chowdhury
Hello all,

I have compiled the Oscilloscope by following the Lesson 6
(http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html).

At the Listen tool point, I don't get the expected result that are
provided in the document.

I use the commnad as -

$java net.tinyos.tools.Listen -comm serial@/dev/ttyS0:micaz

The result is  -
serial@/dev/ttyS0:57600: synchronizing

and then its just blocked at this point without any activity. I don't
know why I don't get the expected 'received' and 'sent' raw data
visualization.

Thanx in advavance for anybodie's help.

MazidH
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] oscilloscope failing to read successfully (micaz, mts300, tinyOS 2.0)

2007-10-03 Thread Murray, Ben
I am not quite sure what is going wrong but the oscilloscope application
(unmodified) does not seem to be able to get a SUCCESS upon calling
Read.read() and therefore simply sits there and blinks Led0.  It fails
whether or not I connect a sensor board -- any idea what might be causing
the problem?



***
Please consider the environment before printing this email.
***
This email and any files transmitted with it are intended solely for the use of
the individual or entity to whom they are addressed and may not be divulged to
any third party without the express permission of the originator.  Any views
expressed in this message are those of the individual sender, except where the
sender specifically states them to be the views of Thales Research & Technology
(UK) Limited.
***

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


  1   2   >