Re: [Tinyos-help] help packet oscilloscope

2010-05-06 Thread David Conde
The first 7 bytes are from TOS_Msg struct  since you are including your 
oscilloscope msg into the TOS_Msg data field.

 

  uint16_t addr;

  uint8_t type;

  uint8_t group;

  uint8_t length;

  int8_t data[TOSH_DATA_LENGTH];

  uint16_t crc;

 

You can see the TOS_Msg struct definition  in AM.h file

 

 

Regards

 

David

 

De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Carlo Desogus
Enviado el: jueves, 06 de mayo de 2010 11:14
Para: tinyos help
Asunto: [Tinyos-help] help packet oscilloscope

 

Hi,
i`m working with oscilloscope application with ubuntu and tinyos 2.1.1.
I followed the 6th lesson of the tutorial but i don`t understand well the 
packet format.
When i run Listen i get an packet format like this:

00 FF FF 00 01 1C 00 93 00 00 01 00 00 01 00 14 0F 55 1B 04 0F 55 1B 04 0F 59 
1B 04 0F 56 1B 05 0F 55 1B 04 

In the Oscilloscope.h the packet structure is:
typedef nx_struct oscilloscope {
  nx_uint16_t version; /* Version of the interval. */
  nx_uint16_t interval; /* Samping period. */
  nx_uint16_t id; /* Mote id of sending mote. */
  nx_uint16_t count; /* The readings are samples count * NREADINGS onwards */
  nx_uint16_t readings[NREADINGS];
} oscilloscope_t;

So i thought that the packet could be of 2+2+2+2+2*10=28 byte.
But i see a packet with 36 bytes!!! Why??? What is my mistake??? What i`m 
missing???

Can you let me see the beginning of the payload???

Thanks in advance.

Carlo

 

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

Re: [Tinyos-help] help packet oscilloscope

2010-05-06 Thread David Conde
Sorry I meant the first 5 bytes :

 

2 bytes :Node address à 00 FF 

1 byte : AM_TYPE à FF 

1 byte: GROUP_IDà 00 

1 byte: LENGTH à01

 

The last 2 bytes after data field should be CRC

 

 

 

 

De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
Enviado el: jueves, 06 de mayo de 2010 11:47
Para: 'Carlo Desogus'; 'tinyos help'
Asunto: Re: [Tinyos-help] help packet oscilloscope

 

The first 7 bytes are from TOS_Msg struct  since you are including your 
oscilloscope msg into the TOS_Msg data field.

 

  uint16_t addr;

  uint8_t type;

  uint8_t group;

  uint8_t length;

  int8_t data[TOSH_DATA_LENGTH];

  uint16_t crc;

 

You can see the TOS_Msg struct definition  in AM.h file

 

 

Regards

 

David

 

De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Carlo Desogus
Enviado el: jueves, 06 de mayo de 2010 11:14
Para: tinyos help
Asunto: [Tinyos-help] help packet oscilloscope

 

Hi,
i`m working with oscilloscope application with ubuntu and tinyos 2.1.1.
I followed the 6th lesson of the tutorial but i don`t understand well the 
packet format.
When i run Listen i get an packet format like this:

00 FF FF 00 01 1C 00 93 00 00 01 00 00 01 00 14 0F 55 1B 04 0F 55 1B 04 0F 59 
1B 04 0F 56 1B 05 0F 55 1B 04 

In the Oscilloscope.h the packet structure is:
typedef nx_struct oscilloscope {
  nx_uint16_t version; /* Version of the interval. */
  nx_uint16_t interval; /* Samping period. */
  nx_uint16_t id; /* Mote id of sending mote. */
  nx_uint16_t count; /* The readings are samples count * NREADINGS onwards */
  nx_uint16_t readings[NREADINGS];
} oscilloscope_t;

So i thought that the packet could be of 2+2+2+2+2*10=28 byte.
But i see a packet with 36 bytes!!! Why??? What is my mistake??? What i`m 
missing???

Can you let me see the beginning of the payload???

Thanks in advance.

Carlo

 

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

[Tinyos-help] Has anybody installed any Zigbee stack into Telosb motes?

2010-05-05 Thread David Conde
Hi,

 

I would like to know if it is possible to install Zigbee stack into Telosb
motes. I have read that Z-Stack from Texas Instrument has a version for
MSP430 and CC2420, has anybody tried it?

 

Thank you in advance

 

David

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

Re: [Tinyos-help] *****SPAM***** Re: Getting bad packet from InternalVoltage measures in Telosb

2010-04-28 Thread David Conde
Hi,

I agree with you, I saw in TMote datasheet that minimum voltage level for
TelosB working right is 2,1 Volts, in fact, everything works right except
InternalVoltage measures, why is this? Does the InternalVoltage measures
need higher level of battery to performance this operation? Is it because
the Internal Voltage is got from the MSP430?

What is the real lowest voltage level (got from practical experience) that
you have found when you work with Telosb?

Thank you in advance 

-Mensaje original-
De: André Rodrigues [mailto:andremiguelrodrig...@gmail.com] 
Enviado el: martes, 27 de abril de 2010 20:35
Para: Michael Schippling; David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: *SPAM* Re: [Tinyos-help] Getting bad packet from
InternalVoltage measures in Telosb

Spam detection software, running on the system produccion.citic.es, has
identified this incoming email as possible spam.  The original message has
been attached to this so you can view it (if it isn't spam) or label similar
future email.  If you have any questions, see the administrator of that
system for details.

Content preview:  Hi The MSP datasheet says that but on the other way the
TMoteSky
   datasheet claims 2.1 as the mininum for running at 8MHz. Something is
wrong...
   [...] 

Content analysis details:   (4.2 points, 4.0 required)

 pts rule name  description
 --
--
 0.0 STOX_REPLY_TYPESTOX_REPLY_TYPE
 1.1 DNS_FROM_OPENWHOIS RBL: Envelope sender listed in
bl.open-whois.org.
-0.0 SPF_PASS   SPF: sender matches SPF record
 0.0 BAYES_50   BODY: Bayesian spam probability is 40 to 60%
[score: 0.5000]
 3.1 FORGED_MUA_OUTLOOK Forged mail pretending to be from MS Outlook




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


[Tinyos-help] Getting bad packet from InternalVoltage measures in Telosb

2010-04-27 Thread David Conde
Hi,

 

I am getting measures from InternalVoltage in TelosB and when the battery
level is lower than 2,6 I got bad packet from a address 4502 or 0125,  have
anybody had the same problem?

 

Thank you in advance

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

Re: [Tinyos-help] reading sensors

2010-04-26 Thread David Conde
Take a look to Oscilloscope application.

 

Regards

 

De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Carlo Desogus
Enviado el: lunes, 26 de abril de 2010 18:16
Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] reading sensors

 

I`m reading your Sampler applications because i should work with several 
sensors (light, temperature, humidity...).
Did you also develop a java application to show the data received??

Thanks
CD

 

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

Re: [Tinyos-help] How to retrieve data from sensors?

2010-04-23 Thread David Conde
Hi,

I used the same CD from Crossbow. You can launch the TinyOS 1.x examples
either from cygwin Windows or any other file in your computer. I took the
net.tinyos.* packages in a Java editor and checked the classes dependecies,
then you could take the .class file by compiling and execute java command in
any path by including the libraries in Classpath variable.

Regards

-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de zhihua
wang
Enviado el: miércoles, 21 de abril de 2010 21:31
Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] How to retrieve data from sensors?

Hi there,

Our lab has recently purchased a few crossbow wireless sensor network. 
We follow the quick start guide and set up the virtual serial port on 
the PC. But there is no information on how to retrieve data from the 
sensors. We checked the website, it is for tinyos 2.x, but what we 
installed from the CD (with the shipment of the sensors) is version 1.x. 
We also tried to follow the tutorial in the documentation center, 
Lesson 6: Displaying Data on a PC. To start using the Oscilloscope 
GUI, it says

1. To run the serial forwarder, cd to tools/java and run the program

  java net.tinyos.sf.SerialForwarder -comm ser...@com1:baud rate

2. Leaving the serial forwarder running, execute the command

  java net.tinyos.oscope.oscilloscope

This will pop up a window containing a graphical display of the sensor 
readings from the mote.

It is simply too brief for  to be followed: in which window shall we run 
these commands (cywin? java?)? under which directory should it be run? 
Similar problem with the online help in http://www.tinyos.net/. What 
exactly shall we do to view and retrieve data onto a computer? Please 
advice. Thank you in advance.

Best

Zhihua

___
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] JNI Questions

2010-04-07 Thread David Conde
Hi,

I had a similar problem because I did not have permission for reading
javax.comm.properties file but I was using UBUNTU Operative System, so I
guess in Windows should not be a problem.

Do you have javax.comm installed in your computer?If you do, do you have
javax.comm.properties in the right place?

Regards

-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Ruben Rios
Enviado el: miércoles, 07 de abril de 2010 11:31
Para: Michael Schippling; Arik Sapojnik
CC: tinyos-help
Asunto: Re: [Tinyos-help] JNI Questions

Thank you for the quick reply both of you :) By the way, I am working
on a Windows machine. I have tried to copy both toscomm.dll and
getenv.dll from my TinyOS (under Cygwin) installation to the working
directory (where my app is running) but I still get the following
error:


java.io.IOException: Could not open COM1: TOSComm JNI library runtime
error: Error 5.
Acces denied.
in NativeSerialPort.CreateFile
at net.tinyos.packet.SerialByteSource.openStreams(SerialByteSource.java:58)
at net.tinyos.packet.StreamByteSource.open(StreamByteSource.java:51)
at net.tinyos.packet.Packetizer.openSource(Packetizer.java:139)
at net.tinyos.packet.AbstractSource.open(AbstractSource.java:69)
at net.tinyos.packet.Packetizer.open(Packetizer.java:132)
at
Localization.WSNLocalizatorImpl.executeInputParser(WSNLocalizatorImpl.java:4
6)
at Localization.WSNLocalizatorTest.main(WSNLocalizatorTest.java:43)
stream:error (text)

Any ideas?
Thanks a lot


2010/4/7 Michael Schippling sc...@santafe.edu:
 You will need to install (or copy) the TOS comm and getenv.dll
 files to your new system's Java Runtime. I'm not sure exactly
 what the file names are, but some searching for those two should
 come up with more. You don't need cygwin or the rest of TOS if
 all you are doing is running a java app.

 MS


 Ruben Rios wrote:

 Dear all,

 I have written a Java application which gets data from sensor nodes
 through the serial port. I have done this by using tinyos.jar.
 Everything's fine to this point. I have tried to use this application
 in another machine which has no TinyOS installed in it and it prompts
 different errors depending on the situation. The first problem I come
 across is an exception telling The toscomm JNI library was not found
  Does it mean I need to install Cygwin + TinyOS on that machine
 to get it working? May I simply add some files to my working directory
 or Java directory to make it work?

 Any comments, ideas, workarounds, are really appreciated!
 Regards
 ___
 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


[Tinyos-help] Real light values from Telosb

2010-01-27 Thread David Conde
Hi,

 

I am doing testing by getting lights values from TSR and PAR sensor from
TElosb , but I would like to know if the values I get are valid values or
not.

 

If I get data from TOS_Msg and I use the next formula from
(http://www.moteiv.com/community/Getting_Data_from_Tmote_Sky's_Sensors): 

 

TOS_Msgà value

 

Vsensor = (value / 4096 ) * 1’5  

 

Vref = 1’5

 
 
I = Vsensor / 100,000

And : 

S1087lx = 0.625 * 1e6 * I * 1000
S1087-01 lx = 0.769 * 1e5 * I * 1000

 

 

I get 0,4  lux (PAR) and 0,09 lux (TSR)  in a room with normal light.

 

Are these values possible?

 

Does anybody know a typical TSR or PAR ranges?

 

 

Thank you in advance

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

Re: [Tinyos-help] Several sensors sharing the same TOS_NODE_ID

2010-01-26 Thread David Conde
Hi, 

I have not had any problem at all, I usually do tests by using to
BaseStations with the same TOS_NODE_ID.

Regards

-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Ruben Rios
Enviado el: martes, 26 de enero de 2010 11:44
Para: tinyos-help
Asunto: [Tinyos-help] Several sensors sharing the same TOS_NODE_ID

Hello,

has anyone ever tried to have several sensor nodes sharing the same
TOS_NODE_ID ?? Is there any problem in doing this if no routing is
involved ??

Regards

-- 
Ruben
___
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] Special behaviour in the C struct messages for Telosb

2010-01-25 Thread David Conde
Hi,

 

Is there any rule to create NesC struct messages which will be wrapped into
TOS_Msg using TinyOS 1.x and Telosb? 

 

I got a problem using the next struct, by sending a CloseMsg MIG message
(from a Java application). 

struct CloseMsg {

uint16_t source;

uint8_t moteid [8];

};

 

When the application tried to send the CloseMsg MIG message did not appear
any exception at all, but there was no message sent to the serial port where
the BaseStation mote was connected.

 

But It was very strange because I change to the next one and everything
worked fine.

 

struct CloseMsg {

uint16_t source;

uint16_t location;

uint8_t moteid [8];

};

 

Is there any rule in the number of bytes that the struct messages should
have?

 

Thank you in advance

 

I am using Telosb, TinyOS 1.x and MIG tool to build the java messages

 

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

[Tinyos-help] Error Sending a message in StdControl.start method

2010-01-13 Thread David Conde
Hi, I would like my mote Telosb sends messages just when starting to run
(each time I connected the battery ON), so for this reason I typed a call
MyMessageSend.send(addr, sizeof, response) which is a SenderMsg componen
tinto StdControl.start method.

 

Is there any problem to put a send command into a StdControl.start method?

 

I checked the sendDone method is called but in the receiver I do not get any
message at all.

 

Any help will be welcomed.

 

Thank you in advance

 

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

[Tinyos-help] TinyOS Security Questions

2010-01-11 Thread David Conde
Hi,

 

I would like to know what are the available options in order to make secure
the wireless communications between TinyOS motes? I am using Telosb in
TinyOS 1.x and I would like to know what I have to do to provide security to
my system, and what are the options to provide security in TinyOS 2.x.


Is there any way to encrypt the messages using digital signatures?

 

Thank you in advance

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

[Tinyos-help] Setting/Getting time from Telosb motes

2009-12-17 Thread David Conde
Hi,

 

I would like to know how I can get the local time from Telosb motes. I need
to know in which time the measures were got, so I guess I would need to set
the current time from a sent message sent by TOS_BASE and then to set this
time into the sensor node, in order to have the current time in the mote.
What component should I use?

 

I am using Telosb motes with TinyOS 1.x

 

 

Thanks in advance

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

Re: [Tinyos-help] MoteIF Question

2009-12-16 Thread David Conde
Hi,

 

Thank you  for your reply.

 

The problem was the kind of Telosb mote, I mean, If I use as BaseStation a
Telosb without integrated sensor everything works fine, but if I use a
Telosb mote with integrated sensor , this mote is not able to received the
second message that sensor nodes send.

 

Thanks

 

 

De: Arik Sapojnik [mailto:sapoj...@gmail.com] 
Enviado el: miércoles, 16 de diciembre de 2009 7:21
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] MoteIF Question

 

Hi,

1.  Try to send RequestMeasureand then ConnectionMsg 
2.  If you send them one just after another - you should add
inter=packet-gap, about 13miliSeconds

Arik



On Tue, Dec 15, 2009 at 17:59, David Conde dco...@citic.es wrote:

Hi,

 

I am trying to listen more than one messagetype while I use MOTEIF object
from net.tinyos.message, so my question is, is it possible to listen more
than one Messages types for the same Listener?

 

If I register ConnectionMsg and RequestMeasure message and then I send a
ConnectionMsg and after that I send RequestMeasure message, my Java
applications is not able to receive the second one (I mean RequestMeasure
message).

 

Any idea?

 

Thanks in advance


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




-- 
Best Regards,
Arik Sapojnik
sapoj...@gmail.com

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

Re: [Tinyos-help] Incompatibility between Sensirion sensor and GeneriComm Components

2009-12-16 Thread David Conde
Hi,

 

 

I found the problem for this issue. The capability to get Humidity or
Temperature messages depends on the Operative System in the host where
BaseStation is installed. I mean, I have been trying in previous days to get
PAR, TSR, HUMIDITY AND TEMPERATURE measures from Telosb to BaseStation which
was connected to Windows XP environment. In this environmnet, BaseStation
just received PAR and TSR measures messages, but when I changed and
connected BaseStation to Ubuntu host, then it has been able to receive the
four kind of messages. Any idea about why does this problema happen?Could it
be because of javax.comm libraries?

 

Thanks   in advance

 

 

De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David
Conde
Enviado el: martes, 15 de diciembre de 2009 13:32
Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] Incompatibility betwee Sensirion sensor and GeneriComm
Components

 

Hi,

 

I have tried to get Temperature and Humidity measures from Telosb by sending
REQUEST messages, I was wondering if it is possible that there is any kind
of incompatibility or if I have to take something into account to use both
interfaces because I do not have problem when I tried to get data from TSR
and PAR Sensor.

 

I checked Humidity and Temperature data.ready are called, and either
Response.SendDone(), but I am not able to see any response message in
BaseStation. Is there any kind of limit in the data measure by Humidity or
Temperature Sensor which can not be sent by Radio?

 

Thanks in advance

 

Environment:TinyOS 1.x

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

[Tinyos-help] Incompatibility betwee Sensirion sensor and GeneriComm Components

2009-12-15 Thread David Conde
Hi,

 

I have tried to get Temperature and Humidity measures from Telosb by sending
REQUEST messages, I was wondering if it is possible that there is any kind
of incompatibility or if I have to take something into account to use both
interfaces because I do not have problem when I tried to get data from TSR
and PAR Sensor.

 

I checked Humidity and Temperature data.ready are called, and either
Response.SendDone(), but I am not able to see any response message in
BaseStation. Is there any kind of limit in the data measure by Humidity or
Temperature Sensor which can not be sent by Radio?

 

Thanks in advance

 

Environment:TinyOS 1.x

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

[Tinyos-help] MoteIF Question

2009-12-15 Thread David Conde
Hi,

 

I am trying to listen more than one messagetype while I use MOTEIF object
from net.tinyos.message, so my question is, is it possible to listen more
than one Messages types for the same Listener?

 

If I register ConnectionMsg and RequestMeasure message and then I send a
ConnectionMsg and after that I send RequestMeasure message, my Java
applications is not able to receive the second one (I mean RequestMeasure
message).

 

Any idea?

 

Thanks in advance

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

Re: [Tinyos-help] Problem getting data from Humidity/Temperature Sensor in Telosb

2009-12-14 Thread David Conde
Hi,

 

I have added the HumidityControl.start ()  call into the StdControl command and 
now I have checked that the command Temperature.dataReady() and 
Humidity.dataReady() are called after call Humidity.getData()

 

But when I send the data into a message to TOS_BASE, sendDone method is either 
called, however, no message is actually recieved in TOS_BASE. This problem just 
happens with Humidity or Temperature measures, because TSR and PAR are sent 
right.

 

ANy hints?

 

Thanks in advance

 

De: nitya tharakan [mailto:nben...@yahoo.co.in] 
Enviado el: viernes, 11 de diciembre de 2009 16:14
Para: David Conde; tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem getting data from Humidity/Temperature Sensor 
in Telosb

 

I am working on the same environment tinyos 1.0  and have a similar issue with 
dataready events for  temperature and humidity. Everytime always the 
temperature data ready event gets called. I have separated out the interfaces 
for both.The timers and ADC for temperature and humidity.I am using different 
timer repeats for both , but still the  problem persists.Is it a hardware 
problem or somethings wrong in the software.Is there a specific of using timers 
if is using a sensor to switch modes between temperature and humidty.

Has anybody implemented this before.

 

It would be of great help.

 

Thanks

 

 

  _  

From: David Conde dco...@citic.es
To: tinyos-help tinyos-help@millennium.berkeley.edu
Sent: Fri, 11 December, 2009 8:09:59 AM
Subject: [Tinyos-help] Problem getting data from Humidity/Temperature Sensor in 
Telosb

Hi,

 

I have developed an application in order to get environmental measures by 
sending Command Messages from TOS_BASE mote.

 

The strange situation is that there is no problem whenever I send either PAR or 
TSR Light query measures, since I am getting the measures from the nodes in a 
good way, so why do I have problem with Sensirion sensor with Humidity and 
Temperaature?

 

I write my code below:

 

event TOS_MsgPtr QueryNowReceive.receive(TOS_MsgPtr m){

TOS_MsgPtr copymessage = m;

struct QueryMeasureNowMsg  * querynowmsg = (struct 
QueryMeasureNowMsg *) copymessage -data ;

TOS_Msg responsemsg; 

  struct ResponseMeasureNowMsg * connectresponsemsg = (struct 
ResponseMeasureNowMsg *)(responsemsg.data);

  //

  if (CONNECTED  (copymessage - addr  == TOS_LOCAL_ADDRESS) ) { // 
EL mensaje era para mi

if ( (querynowmsg- measuretype) == TEMPERATURE_TYPE){

  call HumidityControl.start();

  TemperatureNow = TRUE;

  call Temperature.getData();

} else if  (querynowmsg- measuretype == HUMIDITY_TYPE) {

//call Leds.yellowToggle();

  call HumidityControl.start();

  HumidityNow = TRUE;

  call Humidity.getData();

} else if (querynowmsg- measuretype == PAR_TYPE) {

  call HamamatsuControl.start();

  PARNow = TRUE;

  call PAR.getData();

}else if (querynowmsg- measuretype == TSR_TYPE) {

  call HamamatsuControl.start();

  TSRNow = TRUE;

  call TSR.getData();

}……

 

Each time the node receives a message QueryNowReceive type, check the 
measuretype value and if it is HUMIDITY_TYPE then makes a call to 
Humidity.getData(), the problem is that Humidity.dataReady is never called.

 

Any hint would be great

 

Environment: TinyOS 1.x

 

Thank you in advance

 





  _  

The INTERNET now has a personality. YOURS! See 
http://in.rd.yahoo.com/tagline_yyi_1/*http:/in.yahoo.com/  your Yahoo! 
Homepage.

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

[Tinyos-help] Problem getting data from Humidity/Temperature Sensor in Telosb

2009-12-11 Thread David Conde
Hi,

 

I have developed an application in order to get environmental measures by
sending Command Messages from TOS_BASE mote.

 

The strange situation is that there is no problem whenever I send either PAR
or TSR Light query measures, since I am getting the measures from the nodes
in a good way, so why do I have problem with Sensirion sensor with Humidity
and Temperaature?

 

I write my code below:

 

event TOS_MsgPtr QueryNowReceive.receive(TOS_MsgPtr m){

TOS_MsgPtr copymessage = m;

struct QueryMeasureNowMsg  * querynowmsg = (struct
QueryMeasureNowMsg *) copymessage -data ;

TOS_Msg responsemsg; 

  struct ResponseMeasureNowMsg * connectresponsemsg = (struct
ResponseMeasureNowMsg *)(responsemsg.data);

  //

  if (CONNECTED  (copymessage - addr  == TOS_LOCAL_ADDRESS) ) {
// EL mensaje era para mi

if ( (querynowmsg- measuretype) == TEMPERATURE_TYPE){

  call HumidityControl.start();

  TemperatureNow = TRUE;

  call Temperature.getData();

} else if  (querynowmsg- measuretype == HUMIDITY_TYPE) {

//call Leds.yellowToggle();

  call HumidityControl.start();

  HumidityNow = TRUE;

  call Humidity.getData();

} else if (querynowmsg- measuretype == PAR_TYPE) {

  call HamamatsuControl.start();

  PARNow = TRUE;

  call PAR.getData();

}else if (querynowmsg- measuretype == TSR_TYPE) {

  call HamamatsuControl.start();

  TSRNow = TRUE;

  call TSR.getData();

}..

 

Each time the node receives a message QueryNowReceive type, check the
measuretype value and if it is HUMIDITY_TYPE then makes a call to
Humidity.getData(), the problem is that Humidity.dataReady is never called.

 

Any hint would be great

 

Environment: TinyOS 1.x

 

Thank you in advance

 

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

[Tinyos-help] Creating final static variables from Enum values in C structs using MIG

2009-12-10 Thread David Conde
Hi,

 

I would like to create automatically final static variables from the Enum
from MIG tools, is there any label to write in  .h files in order to get
final static variables from Enum values using MIG tool?

 

Thank you in advance

 

 

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

Re: [Tinyos-help] MAC acknowledgments

2009-12-09 Thread David Conde
Hi Paul,

 

Does what you explained about CC2420 depend on the TinyOS version or used
interfaces to achieve ACK messages? I mean, I am not using
PacketAcknowledgements interface but I am using SendMsg interface in TinyOS
1.x with Telosb (CC2420 module) , do you mean that when the sender send an
unicast message, sendDone event is launched if an ACK message is received
from the recipient node?

 

Do I have to activate or use any special interface to achieve this?

 

Thank you in advance

 

David

 

 

 

 

 

De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Paul
Johnson
Enviado el: martes, 08 de diciembre de 2009 17:08
Para: Vikram vik76
CC: tinyos-help
Asunto: Re: [Tinyos-help] MAC acknowledgments

 

Vikram,

It's probably best to look at the code yourself to determine if your
platform turns on acks by default or not.

In general it is radio hardware specific, for example the CC1000 doesn't
perform MAC level acks.  Other hardware such as the CC2420 have mac acks
enabled by default for unicast packets and disabled on broadcast packets.

As for your first question, normally acks are only enabled for unicast
packets.(If they were enabled for broadcast packets, all the acks from
multiple receiving nodes would likely collide)

For your second question the requestAck() function sets a field in the
packet header that indicates the sender requests an ack for this packet.  In
general only when the intended node receives a packet with this field set,
will it send an ACK.  Once the sender receives an ack for this packet(with
the ACK field set), only then will the sendDone function be called.

-Paul

On Mon, Dec 7, 2009 at 9:53 PM, Vikram vik76 vi...@sify.com wrote:

Hello,

I would like to understand better the working of acknowledgments in tinyos.
First,
Is MAC level acknowledgment implemented by default? for Unicast or
Broadcast?

I also used the PacketAcknowledgements interface.  When I use  call
PacketAcknowledgements.requestAck(pkt) does it explicitly request the
receivers to send an acknowledgement, or it just captures the
acknowledgement that is sent by default by the receiver to the sender?


Thanks
Vikram



___
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] BlockStorage question

2009-12-02 Thread David Conde
Hi I would like to use BlockStorage for logging data in Telosb.

 

Since I want to log data from 4 different sources, I have wired 4 different
instances for BlockRead, BlockWrite and Mount interfaces as shown below:

 

  SensorNodeM.BlockRead1 - BlockStorageC.BlockRead [BLOCKSTORAGE_1];

  SensorNodeM.BlockWrite1 - BlockStorageC.BlockWrite[BLOCKSTORAGE_1];

  SensorNodeM.Mount1 - BlockStorageC.Mount[BLOCKSTORAGE_1];

  SensorNodeM.BlockRead2 - BlockStorageC.BlockRead [BLOCKSTORAGE_2];

  SensorNodeM.BlockWrite2 - BlockStorageC.BlockWrite[BLOCKSTORAGE_2];

  SensorNodeM.Mount2 - BlockStorageC.Mount[BLOCKSTORAGE_2];

 SensorNodeM.BlockRead3 - BlockStorageC.BlockRead [BLOCKSTORAGE_3];

  SensorNodeM.BlockWrite3 - BlockStorageC.BlockWrite[BLOCKSTORAGE_3];

  SensorNodeM.Mount3 - BlockStorageC.Mount[BLOCKSTORAGE_3];

 SensorNodeM.BlockRead4 - BlockStorageC.BlockRead [BLOCKSTORAGE_4];

  SensorNodeM.BlockWrite4 - BlockStorageC.BlockWrite[BLOCKSTORAGE_4];

  SensorNodeM.Mount4 - BlockStorageC.Mount[BLOCKSTORAGE_4];

 

Is there any other easier way to do that?

 

Now I should to call in my application to:

 

Mount(1);

Mount(2);

Mount(3);

Mount(4);

 

What do I have to do to assign the memory initial positions in order to
share the 4 volumes with 256 kb each one without interferences? 

 

 

Do I have to format them before?

 

Thanks in advance

 

I am using TInyOS 1.x

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

[Tinyos-help] Where is the TOS_LOCAL_ADDRESS saved?

2009-12-02 Thread David Conde
Hi,

 

I would like to know where is the TOS_LOCAL_ADDRESS saved, I mean, it is a
value which can be retrieved from RAM memory in Telosb, each time the mote
switch on, so, I would like to know which is the memory address in which
TOS_LOCAL_ADDRESS is saved in order to modify this value in programming time

 

I am using TinyOS 1.x

 

Thank you in advance

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

[Tinyos-help] CC2420Control interface questions

2009-11-30 Thread David Conde
Hi

 

I am using CC2420RadioC component, which provides CC2420Control interface,
in order to change the node address in RunTime. The problem is that If I
directly do call CC2420Control.setShortAddress(NEW_ADDRESS), I do not know
how I  can retrieve this new saved value of Node address. 

 

Does it exist any variable which is related to the place where is saved
setShortAddress(NEW_ADDRESS)?

 

What component do I have to use to save data in memory (I guess RAM memory)
as Node_ADDRESS in order to save this value even whenever my mote shut off?
I mean, to save my date in a persistent way.

 

Thanks in advance

 

I am using: Telosb and TinyOS 1.x

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

Re: [Tinyos-help] CC2420Control interface questions

2009-11-30 Thread David Conde
Hi again,

 

I have tried to call the command CC2420Control.setShortAddress(NEW_ADDRESS)
whose component’s provider is wired to CC2420RadioC, and I do not get
SUCCESS result. What am I missing? Do I have to wire either the StdControl
or SplitControl in CC2420RadioC component as well in order to actívate this
component and be able to call setShortAddress later?

 

Thank you in advance 

 

 

 

De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David
Conde
Enviado el: lunes, 30 de noviembre de 2009 13:32
Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] CC2420Control interface questions

 

Hi

 

I am using CC2420RadioC component, which provides CC2420Control interface,
in order to change the node address in RunTime. The problem is that If I
directly do call CC2420Control.setShortAddress(NEW_ADDRESS), I do not know
how I  can retrieve this new saved value of Node address. 

 

Does it exist any variable which is related to the place where is saved
setShortAddress(NEW_ADDRESS)?

 

What component do I have to use to save data in memory (I guess RAM memory)
as Node_ADDRESS in order to save this value even whenever my mote shut off?
I mean, to save my date in a persistent way.

 

Thanks in advance

 

I am using: Telosb and TinyOS 1.x

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

[Tinyos-help] Updating Telosb address

2009-11-26 Thread David Conde
Hi,

 

I would like to change the AM address of my Telosb node by programatically.

 

Since TOS_LOCAL_ADDRESS global variable is defined in tos.h file, if I
change this value in my application then the next time when I reset my node
this change will be lost, so I should use CC2420ControlM component in order
to change in RAM memory, my question is, if I change this address using
CC2420ControlM.setShortAddress(new_address) will TOS_LOCAL_ADDRESS value
change as well?

 

I have been reading the lower components of CC2420ControlM and I did not
find any reference to TOS_LOCAL_ADDRESS.

 

PD: I am using TinyOS 1.x

 

Any hint will be welcomed

 

Thanks in advance

 

 

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

Re: [Tinyos-help] ByteEEPROM in Telosb for TinyOS 1.x

2009-11-24 Thread David Conde
Hi Arun,

Thank you for replying me.

So If it read  TEP 103: 
(http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep
103.html) I can see:

Some more recent platforms use different flash chips: the ST M25P family
(Telos rev. B, eyes) and the Intel Strataflash (Intel Mote2). None of the
three components listed above are supported on these chips:

* The PageEEPROMC component is (and was intended to be) AT45DB-specific
* ByteEEPROMC allows arbitrary rewrites of sections of the flash. This
is not readily implementable on a flash chip with large erase units.
* The Matchbox implementation was AT45DB-specific. It was not
reimplemented for these other chips, in part because it does not support
some applications (e.g., network reprogramming) very well.


And my question is , which component can I use to store data in Telosb
memory using TinyOS 1.x?

I have developed all my applications in TinyOS 1.x and I do not have much
time to port to TInyOS 2.x.


Any hint will be welcomed


Thanks in advance 

David
-Mensaje original-
De: Arun Ramachandramurthy [mailto:a...@buffalo.edu] 
Enviado el: lunes, 23 de noviembre de 2009 23:59
Para: David Conde
Asunto: Re: [Tinyos-help] ByteEEPROM in Telosb

David,
Last week even i was trying to use ByteEEPROM with telosb motes. I was 
able to compile a test program for ByteEEPROM but
write to flash was not successful. I could not find out the reason for 
failure.
Then i read some TEP 103: 
(http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep
103.html)
where they mention ByteEEPROM,PageEEPROM and MatchBox component are  
AT45DB-specific (a family of chips)
but more recent telosb flash chip belongs STM25P family. May be that's 
the problem.

Anyways later i upgraded to tinyos2.x and there are lot of test 
applications for writing to flash. Just today i successfully could write 
and read from
the flash. So i would recommend upgrading to tinyos2.x. 
(http://www.tinyos.net/tinyos-2.x/doc/html/upgrade-tinyos.html)
Look out for apps/tests/storage/Log or Circular Log etc..

-Arun.

David Conde wrote:

 Hi,

  

 I read some threads about ByteEEPROM in Telosb and It is not clear for 
 me, if I can use this component in Telos with TinyOS 1.x. Can I use 
 ByteEEPROMC component for reading  writing data in Telosb platform?

  

  

 Thanks in advance

  

  

 

 ___
 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] Modifying TOS_AM_GROUP directly

2009-11-24 Thread David Conde
Hi,

 

I would like to know if this possible to change GROUPID by modifying
TOS_AM_GROUP variable directly, like TOS_AM_GROUP= 0x33 or TOS_AM_GROUP =
0x01. Is there any problem by doing so?

 

Thank you in advance

 

 

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

[Tinyos-help] DS2411 Interface: index parameter for getting Mote's id

2009-11-23 Thread David Conde
Hi,

 

I would like to use the DS2411 interface in order to get the ID serial
number from Telosb mote, but I do not know what the parameter index means in
the command get_id_byte(uint8_t index).  I read in DS2411.nc file and I did
not find anything at all. I am using TinyOS 1.x.

 

Thanks in advance 


Regards

 

 

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

[Tinyos-help] ByteEEPROM in Telosb

2009-11-23 Thread David Conde
Hi,

 

I read some threads about ByteEEPROM in Telosb and It is not clear for me,
if I can use this component in Telos with TinyOS 1.x. Can I use ByteEEPROMC
component for reading  writing data in Telosb platform?

 

 

Thanks in advance

 

 

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

[Tinyos-help] Motes' ID

2009-11-20 Thread David Conde
Hi,

 

I would like to know, if there is some ID which is univocal for each mote,
and just depends on the serial manufacturer number or something like this in
order to identify each mote with some ID different to ID Address Node.

 

I am using TinyOS 1.x and Telosb

 

Thank you in advance

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

Re: [Tinyos-help] Motes' ID

2009-11-20 Thread David Conde
Hi Markus,

Thank you for your answer.

I have been looking what you told me and I found DS2411 interface which
provides a ID for Telos motes.

Thanks



-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Markus
Becker
Enviado el: viernes, 20 de noviembre de 2009 9:55
Para: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Motes' ID

 Hi,
 
 
 
 I would like to know, if there is some ID which is univocal for each mote,
 and just depends on the serial manufacturer number or something like this
  in order to identify each mote with some ID different to ID Address Node.
 
 
 
 I am using TinyOS 1.x and Telosb
 

The TelosB has a serial ID chip built in. It is a Ds2411. There is code for
it 
for TinyOS 2.x (though not in the TinyOS core).

For TinyOS 1.x I remember that there was code from MoteIV. Possibly it is
even 
in the TinyOS 1.x CVS: have a look at tos/platform/telosb/README.DS2411

Markus

 
 Thank you in advance
 
___
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] Storage in Telosb

2009-11-20 Thread David Conde
Hi Michael,
 
I read either ByteEEPROM and BlockStorage for saving data in Telosb flash.
The problem is that I just need to store indepedent bytes (save one byte,
then save another one), no set of bytes but independent bytes. Is still
PageEEPROM the best option?

Thanks in advance

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: jueves, 19 de noviembre de 2009 15:23
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Storage in Telosb

PageEEPROM is probably what you want. InternalFlash is a small
non-volatile storage area on the controller chip for config
values and suchlike.
MS


David Conde wrote:
 Hi,
 
  
 
 I read about InternalFlash and PageEEPROM components to be used in 
 storage applications with Telosb using TinyOS 1.x
 
  
 
 I would like to know what is better to use in one application which I 
 have to save N samples getting data each T seconds? What is the 
 difference between them? Is there any other component for being used in 
 TinyOS 1.x in storing applications?
 
  
 
  
 
 Thank you in advance
 
 
 
 
 ___
 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] Security Communications for Telosb

2009-11-19 Thread David Conde
Hi,

Thank you for your answer.

I read about CC2420Control component, but I did not find any command related to 
Security or AES.

What do you mind with the TelosB mote uses the CC2420 chip so you can use the 
AES
hardware implementation of this chip?

Which is it the TinyOS component to control AES encryption in Telosb or CC2420 
Chip?

I know that TinySec was implemented in TinyOS 1.x, but since Telosb has CC2420 
chip I either read in TinyOS help list what is shown below:

There is no implementation of TinySec for the CC2420 radio in the next link
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-May/009733.html 
, so I think there is no possibility to port TinySec to Telosb.

So, my question is, has anybody try to integrate some encryption mechanism to 
TElosb, or any kind of security proccess to Telosb/Tmote in TinyOS 1.x?

Any hint would be appreciated.

Thanks in advance


-Mensaje original-
De: sissou [mailto:sisss...@ymail.com] 
Enviado el: jueves, 19 de noviembre de 2009 5:11
Para: David Conde
Asunto: Re: [Tinyos-help] Security Communications for Telosb

Hi,

In fact TinySec was implemented in TinyOS 1.x not in 2.x. I think it
could be easy to deploy it on TelosB since it does not use any specific
hardware I think.
Otherwise, the TelosB mote uses the CC2420 chip so you can use the AES
hardware implementation of this chip.
Regards.

Sylvain

On Wed, 2009-11-18 at 18:48 +0100, David Conde wrote:
 Hi,
 
  
 
 I would like to know what I can use (components or mechanisms) in
 order to provide security to communications between Telosb using
 TinyOS 1.x.
 
  
 
 I read something about TinySec and AES Encriptyon, but everything was
 related to TinyOS 2.1 or Micaz, so, has anybody tried anything with
 Telosb or TmoteSky using TinyOS 1.x?
 
  
 
 Thank you in advance
 
  
 
  
 
 -- 
 
 David Conde Baena
 
 CITIC
 Centro Andaluz de Innovación y
 Tecnologías de la Información y las
 Comunicaciones
 Edificio CITIC, C/ Marie Curie, 6
 Parque Tecnológico de Andalucía 
 29590 - Campanillas (MÁLAGA)
 
 
 Tfno.: +34 952028610
 Fax: +34 951231029
 Email: dco...@citic.es
 Web: www.citic.es 
 
 
 
  
 
  
 
 
 ___
 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] Storage in Telosb

2009-11-19 Thread David Conde
Hi,

 

I read about InternalFlash and PageEEPROM components to be used in storage
applications with Telosb using TinyOS 1.x

 

I would like to know what is better to use in one application which I have
to save N samples getting data each T seconds? What is the difference
between them? Is there any other component for being used in TinyOS 1.x in
storing applications?

 

 

Thank you in advance

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

Re: [Tinyos-help] Node Addr and Group Addr

2009-11-18 Thread David Conde
Hi,


Thank you for your answer.

I found this command in CC2420ControlM:

command result_t CC2420Control.setShortAddress(uint16_t addr) {
addr = toLSB16(addr);
return call HPLChipconRAM.write(CC2420_RAM_SHORTADR, 2,
(uint8_t*)addr);
  }

And one call to CC2420Control.setShortAddress(TOS_LOCAL_ADDRESS) in task
PostOscillatorOn() definition, in the same file.

My question is , do I have anything more into account? 

What I would have to do would be to wire my MyApplication.CC2420Control with
CC2420ControlM component, and then, whenever I want, call to
setShortAddress(NEW_ADDRESS) with the new address, and as this information
is saved in RAM memory (what I suppose by looking the HPLChipconRAM file),
the mote would change the AM Address till the next time I call
setShortAddress.Could this create any incompatibility with lower components
or make install.addr command?Would I have to update this address in
another place?


By the way, I found TOS_LOCAL_ADDRESS in tos/system/tos.h file as :

uint16_t TOS_LOCAL_ADDRESS = 1; where is TOS_LOCAL_ADDRESS defined in order
to be used in other components?

I did not find any #define command for TOS_LOCAL_ADDRESS in tos.h file.


What happens if I have two nodes with the same Address in the same system?
My Base Station will send both of them the same message, or they will have
some problem?



Thank you in advance



-Mensaje original-
De: Greg Hackmann [mailto:g...@cse.wustl.edu] 
Enviado el: martes, 17 de noviembre de 2009 19:55
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Node Addr and Group Addr

On 11/17/09 2:21 AM, David Conde wrote:
 Hi,

 Is there any way to change either Node Addr or Group Addr in
 programatically way?

 My problem is that I would like to provide Telosb motes with a firmware
 already installed to the end users (who are not TinyOS developers and do
 not know anything about TinyOS), and They maybe could be using other
 motes which could have the same Node Addr as I set for my the Telosb
 motes, so, There would be a problem because it would exist two motes
 with the same node addr.

 I would like allowing the End user to change this Node Addr in easy way,
 I mean, the End User should not have the Cygwin or TinyOS environment to
 do that, I thought to do that via RF or plug-in the mote in USB conector
 in some way. Is there any solution or any work around about this?

 Thank you in advance

Since you're using a CC2420 radio, look at the CC2420Config interface 
from the CC2420ControlC component.

Greg Hackmann

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


Re: [Tinyos-help] Radio Power Reception

2009-11-18 Thread David Conde
Hi David,

 

I think you should use RSSI parameter.

 

Next links could be useful for you:

 

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

 

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-October/02883
9.html

 

Regards

 

David

 

De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David
Guillén
Enviado el: miércoles, 18 de noviembre de 2009 18:09
Para: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Radio Power Reception

 

I forgot to say I am using CC2420 radio chip of telosb

On Wed, Nov 18, 2009 at 5:58 PM, David Guillén
david.guil...@deimos-space.com wrote:

Hi all,

I was wondering if there is a way to know how powerful the signals my mote
receive are. I would like to monitor the strength of the radio-links and I
don't know if it is possible.

Thank you!!
David

 

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

[Tinyos-help] Security Communications for Telosb

2009-11-18 Thread David Conde
Hi,

 

I would like to know what I can use (components or mechanisms) in order to
provide security to communications between Telosb using TinyOS 1.x.

 

I read something about TinySec and AES Encriptyon, but everything was
related to TinyOS 2.1 or Micaz, so, has anybody tried anything with Telosb
or TmoteSky using TinyOS 1.x?

 

Thank you in advance

 

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

[Tinyos-help] Node Addr and Group Addr

2009-11-17 Thread David Conde
Hi,

 

Is there any way to change either Node Addr or Group Addr in programatically
way?

 

My problem is that I would like to provide Telosb motes with a firmware
already installed to the end users (who are not TinyOS developers and do not
know anything about TinyOS), and They maybe could be using other motes which
could have the same Node Addr as I set for my the Telosb motes, so, There
would be a problem because it would exist two motes with the same node addr.

 

I would like allowing the End user to change this Node Addr in easy way, I
mean, the End User should not have the Cygwin or TinyOS environment to do
that, I thought to do that via RF or plug-in the mote in USB conector in
some way. Is there any solution or any work around about this?

 

 

Thank you in advance 

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

[Tinyos-help] Changing group address by RF message

2009-11-12 Thread David Conde
Hi,

 

Is there any way to modify the group address in a mote via RF whenever the
mote receives a special message which previously know?

 

I mean, I would like to know if it is possible use some Component to modify
this group address, so I can send a message from Base Station to the mote in
order to change its group id. Is it possible?

 

Thanks in advance

 

David

 

 

 

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

Re: [Tinyos-help] AM Type message

2009-11-11 Thread David Conde
Hi Eric, 

 

Thank you for your answer, although maybe I was not able to explain very
well. 

 

My scenary is the next one:

 

 I have one base station mote, which has installed TOS_BASE and three mote
A,B,C which A and B have the same firmware installed because of they have
the same hardware with the only difference that they have two different AM
addresses. Both of them are ready to receive AM type 4, AM type 3 and AM
type 2 because of in their firmware have Receive[3], Receive[4], and
Receive[2]. Now I have another mote C, which has a different hardware as A y
B have, and because of the person who implemented C mote firmware did not
know about A and B existence he decided to use AM type 4 as one of the
message which i sable to receive, but AM 4 type for C it is different to AM
4 type for A and B. After If I use MIG tool to create Message java types for
AM 4 type Message in A, B, and C, I will have two different java class, from
two different NesC structs. So, If I fill the message in higher layers in my
Java Application one for being sent to A or B and the other one for being
sent to C, both of the Message.java will be different but they will be fill
with the same AM Type. Finally if I send one 4 AM type message for A or B
specifying the A or B node Addressess, C will not have problem because its
address is different so it will reject the message then C will not try to
understand AM 4 type message for A or B and there will be no problem. Am I
missing anything? I think the only problem it is if TOS_BASE try to send
BroadCastMessage with AM 4 type, because then A and B will expect one type
of message which will be different for C. Am I missing something? I am
supposing that the first step which I think it would be to check if the
recipient address in the message matches with the receiver address. Maybe
this is not true and the message type is checked before.

 

Thank you in advance.

 

Regards


David

 

De: Eric Decker [mailto:cire...@gmail.com] 
Enviado el: martes, 10 de noviembre de 2009 22:09
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] AM Type message

 

AM type should be global so that the receiving mote knows how to decode the
message.



On Tue, Nov 10, 2009 at 5:30 AM, David Conde dco...@citic.es wrote:

Hi,

 

I have a question, I would like to know if AM type in AM messages is
particular for each mote, I mean, if I address by using AM node address,
then I can use the same AM type for different kind of messages which are
proccessed by different motes with different AM nodes. My idea is to achieve
a Base Station as TOS Base which get Messages from upper layer but it does
not know which AM type those messages have so, TOSBase send the message to
the air and then the mote which has AM node address = receipient Address get
the message with this AM type. Is this possible?

 

Thank you in advance


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




-- 
Eric B. Decker
Senior (over 50 :-) Researcher



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

Re: [Tinyos-help] TinyOS Receive mechanism

2009-11-11 Thread David Conde
Hi,

 

I have some question about this topic, 

 

If it is supposed that CC2420 just catches the messages which match with AM
Node Receiver address in the receiver side, why in TOSBASE application check
in RadioReceive.receive (TOS_MsgPtr) if (Msg-group !=TOS_AM_GROUP)?. I
mean, do I have to check the Msg-address == MyNodeAddress explicitly or
TinyOS does this checking automatically?

 

Another question, what does the addr field mean in the TOS_Msg struct?Is
it either the recipient address or the sender one?

 

How can I specify the source address in net.tinyos.message.Message class?Do
I have to specify this field by creating a new Messge struct or does TinyOS
include automatically the sender(source) Address in any way?
 
Thanks in advance
 
David

 

 

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

Re: [Tinyos-help] TinyOS Receive mechanism

2009-11-11 Thread David Conde
Hi Michael, 

Thank you for your answer,

The default behavior of the radio code is to reject messages with
non-matching groupIDs so they don't interfere at the user level.

So If I just want to process messages which are sent to the recipient
address, do I have to check this addr field in my TOS_MSG received in
receiver side in the Receive.received command? I mean I would have to type
explicitly received (TOSMSGPtr m) {

If (m-addr == Myreceiveraddress) 

 PROCCESS THIS MESSAGE

}

I thought the motes just catches the messages which match with both groupID
and AM Address ID.

I am using Telosb with TinyOS 1.x

Thanks in advance

David
 

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: miércoles, 11 de noviembre de 2009 17:25
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu; razv...@cs.jhu.edu;
ari...@bgu.ac.il
Asunto: Re: [Tinyos-help] TinyOS Receive mechanism

The groupID is a kludge so multiple independent systems can (sort of) work
while using the same radio channel -- might be of interest in a classroom
setting but I can't think of a good reason to not use different radio
frequencies anywhere in the free world... The default behavior of the
radio code is to reject messages with non-matching groupIDs so they don't
interfere at the user level.

The addr field is, IIRC, the nodeID of the mote to which the message
is being sent. The standard TOS header has nothing to indicate the
source ID, although most multi-hop additions have such. If you want
the source ID you'll need to add it to your user AM message struct.

MS

David Conde wrote:
 Hi,
 
  
 
 I have some question about this topic,
 
  
 
 If it is supposed that CC2420 just catches the messages which match with 
 AM Node Receiver address in the receiver side, why in TOSBASE 
 application check in RadioReceive.receive (TOS_MsgPtr) if (Msg-group 
 !=TOS_AM_GROUP)?. I mean, do I have to check the Msg-address == 
 MyNodeAddress explicitly or TinyOS does this checking automatically?
 
  
 
 Another question, what does the “addr” field mean in the TOS_Msg 
 struct?Is  it either the recipient address or the sender one?
 
  
 
 How can I specify the source address in *net.tinyos.message.Message
class?Do I have to specify this field by creating a new Messge struct or
does TinyOS include automatically the sender(source) Address in any way?*
 
 * *
 
 *Thanks in advance*
 
 * *
 
 *David*
 
  
 
  
 


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


Re: [Tinyos-help] TinyOS Receive mechanism

2009-11-11 Thread David Conde
Hi again, 

Then, I will check the dest address each time that a message is received by
the receiver, just for make me sure.

Thanks

David

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: miércoles, 11 de noviembre de 2009 18:08
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu; razv...@cs.jhu.edu;
ari...@bgu.ac.il
Asunto: Re: [Tinyos-help] TinyOS Receive mechanism

The dest address _should_ also be filtered at the lower radio levels
but I've heard tell on this list of that not happening. I can only
swear that it works in T1 with mica's using the vanilla GenericComm.

MS

David Conde wrote:
 Hi Michael, 
 
 Thank you for your answer,
 
 The default behavior of the radio code is to reject messages with
 non-matching groupIDs so they don't interfere at the user level.
 
 So If I just want to process messages which are sent to the recipient
 address, do I have to check this addr field in my TOS_MSG received in
 receiver side in the Receive.received command? I mean I would have to type
 explicitly received (TOSMSGPtr m) {
 
 If (m-addr == Myreceiveraddress) 
 
  PROCCESS THIS MESSAGE
 
 }
 
 I thought the motes just catches the messages which match with both
groupID
 and AM Address ID.
 
 I am using Telosb with TinyOS 1.x
 
 Thanks in advance
 
 David
  
 
 -Mensaje original-
 De: Michael Schippling [mailto:sc...@santafe.edu] 
 Enviado el: miércoles, 11 de noviembre de 2009 17:25
 Para: David Conde
 CC: tinyos-help@millennium.berkeley.edu; razv...@cs.jhu.edu;
 ari...@bgu.ac.il
 Asunto: Re: [Tinyos-help] TinyOS Receive mechanism
 
 The groupID is a kludge so multiple independent systems can (sort of) work
 while using the same radio channel -- might be of interest in a classroom
 setting but I can't think of a good reason to not use different radio
 frequencies anywhere in the free world... The default behavior of the
 radio code is to reject messages with non-matching groupIDs so they don't
 interfere at the user level.
 
 The addr field is, IIRC, the nodeID of the mote to which the message
 is being sent. The standard TOS header has nothing to indicate the
 source ID, although most multi-hop additions have such. If you want
 the source ID you'll need to add it to your user AM message struct.
 
 MS
 
 David Conde wrote:
 Hi,

  

 I have some question about this topic,

  

 If it is supposed that CC2420 just catches the messages which match with 
 AM Node Receiver address in the receiver side, why in TOSBASE 
 application check in RadioReceive.receive (TOS_MsgPtr) if (Msg-group 
 !=TOS_AM_GROUP)?. I mean, do I have to check the Msg-address == 
 MyNodeAddress explicitly or TinyOS does this checking automatically?

  

 Another question, what does the “addr” field mean in the TOS_Msg 
 struct?Is  it either the recipient address or the sender one?

  

 How can I specify the source address in *net.tinyos.message.Message
 class?Do I have to specify this field by creating a new Messge struct or
 does TinyOS include automatically the sender(source) Address in any way?*
 * *

 *Thanks in advance*

 * *

 *David*

  

  

 


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


Re: [Tinyos-help] TinyOS Receive mechanism

2009-11-11 Thread David Conde
By the way,

Why the ack field is used in TOS_Msg?

If I did not misundertand if I call MacControl.enableAck() in init or start
method in the sender side, the lower layers in communication protocol
automatically make ACK sending in the receiver side, so if everything is
right, the sender who called call MacControl.enableAck() should receive an
ACK message?I suppose this ACK received message will have the same AM type
as the sent message by the sender, but what does ack field have to do with
this?I guess if I call MacControl.enableAck() TOS_Msg the sent message it
will have ack field TRUE, is this true?

Thank you again

David

-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David
Conde
Enviado el: miércoles, 11 de noviembre de 2009 18:19
Para: 'Michael Schippling'
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] TinyOS Receive mechanism

Hi again, 

Then, I will check the dest address each time that a message is received by
the receiver, just for make me sure.

Thanks

David

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: miércoles, 11 de noviembre de 2009 18:08
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu; razv...@cs.jhu.edu;
ari...@bgu.ac.il
Asunto: Re: [Tinyos-help] TinyOS Receive mechanism

The dest address _should_ also be filtered at the lower radio levels
but I've heard tell on this list of that not happening. I can only
swear that it works in T1 with mica's using the vanilla GenericComm.

MS

David Conde wrote:
 Hi Michael, 
 
 Thank you for your answer,
 
 The default behavior of the radio code is to reject messages with
 non-matching groupIDs so they don't interfere at the user level.
 
 So If I just want to process messages which are sent to the recipient
 address, do I have to check this addr field in my TOS_MSG received in
 receiver side in the Receive.received command? I mean I would have to type
 explicitly received (TOSMSGPtr m) {
 
 If (m-addr == Myreceiveraddress) 
 
  PROCCESS THIS MESSAGE
 
 }
 
 I thought the motes just catches the messages which match with both
groupID
 and AM Address ID.
 
 I am using Telosb with TinyOS 1.x
 
 Thanks in advance
 
 David
  
 
 -Mensaje original-
 De: Michael Schippling [mailto:sc...@santafe.edu] 
 Enviado el: miércoles, 11 de noviembre de 2009 17:25
 Para: David Conde
 CC: tinyos-help@millennium.berkeley.edu; razv...@cs.jhu.edu;
 ari...@bgu.ac.il
 Asunto: Re: [Tinyos-help] TinyOS Receive mechanism
 
 The groupID is a kludge so multiple independent systems can (sort of) work
 while using the same radio channel -- might be of interest in a classroom
 setting but I can't think of a good reason to not use different radio
 frequencies anywhere in the free world... The default behavior of the
 radio code is to reject messages with non-matching groupIDs so they don't
 interfere at the user level.
 
 The addr field is, IIRC, the nodeID of the mote to which the message
 is being sent. The standard TOS header has nothing to indicate the
 source ID, although most multi-hop additions have such. If you want
 the source ID you'll need to add it to your user AM message struct.
 
 MS
 
 David Conde wrote:
 Hi,

  

 I have some question about this topic,

  

 If it is supposed that CC2420 just catches the messages which match with 
 AM Node Receiver address in the receiver side, why in TOSBASE 
 application check in RadioReceive.receive (TOS_MsgPtr) if (Msg-group 
 !=TOS_AM_GROUP)?. I mean, do I have to check the Msg-address == 
 MyNodeAddress explicitly or TinyOS does this checking automatically?

  

 Another question, what does the “addr” field mean in the TOS_Msg 
 struct?Is  it either the recipient address or the sender one?

  

 How can I specify the source address in *net.tinyos.message.Message
 class?Do I have to specify this field by creating a new Messge struct or
 does TinyOS include automatically the sender(source) Address in any way?*
 * *

 *Thanks in advance*

 * *

 *David*

  

  

 


___
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] AM Type message

2009-11-10 Thread David Conde
Hi,

 

I have a question, I would like to know if AM type in AM messages is
particular for each mote, I mean, if I address by using AM node address,
then I can use the same AM type for different kind of messages which are
proccessed by different motes with different AM nodes. My idea is to achieve
a Base Station as TOS Base which get Messages from upper layer but it does
not know which AM type those messages have so, TOSBase send the message to
the air and then the mote which has AM node address = receipient Address get
the message with this AM type. Is this possible?

 

Thank you in advance

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

[Tinyos-help] MIG MOTEIF question

2009-10-30 Thread David Conde
Hi,

 

I would like to use a mote as Base Station to my PC, which does not know the
struct of the message which is going to be sent. This mote gets message to
send from MOTEIF class in a Java application using MIG tools to create Java
message struct and NesC struct. My question is, is it possible to send
messages without define the struct in my Base Station mote. My idea is to
have a Node Sensor which receives the message through a handler ID, so it is
able to know which type of struct message it got, so it is able to do a
Casting with the dataàpayload to the struct which it knows (because it
include the .h file where is defined the message struct). The goal is to
have a Base Station which just send messages without knowing the exact
struct of the message, and then in the destiny the mote can Casting the
message with the appropiate struct. Is it possible?

 

Thank you in advance

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

Re: [Tinyos-help] About Active Messages Type (AM type in TOS_Msg)

2009-10-28 Thread David Conde
Hi Arik,

 

Thanks for your answer

 

I am using TinyOS 1.x with IntToRfm.Send à Comm.SendMsg [AM_Type], so I guess 
it is implicitly set the AM type in the message which is going to be sent when 
I do this. I have another question about AM communication. Do the sender 
receive an ACK AM message or something similar in order to check that the 
message was sent correctly?I will explain better, I have an alarm system, where 
the sender sends alarm messages, and it is necessary that the sender receive 
and ACK or something similar so that the sender can be sure that the receiver 
got the alarm warn. So, how does Active Messages mechanism work with ACKs?

 

 

Thanks in advance

 

 

De: Arik Sapojnik [mailto:ari...@bgu.ac.il] 
Enviado el: martes, 27 de octubre de 2009 21:38
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] About Active Messages Type (AM type in TOS_Msg)

 

David,

The AM type is specified when you create the sender - 

components new AMSenderC(AM_TYPE);





This type is sent in the air.








Arik

.

- Original Message -
From: David Conde dco...@citic.es
Date: Tuesday, October 27, 2009 15:31
Subject: [Tinyos-help] About Active Messages Type (AM type in TOS_Msg)
To: tinyos-help@millennium.berkeley.edu

 Hi,
 
  
 
 I am wondering how the destiny node is able to handler each message
 depending on AM type. I have read about Lesson 4 in TinyOS 1.x 
 tutorial and
 I would like to know where the AM type is included in the 
 TOS_Msg message
 struct. I mean, if I type MyApp.Send à Comm.SendMsg[1] in the 
 sender side
 and I do not fix AM type in another place (at least I did not 
 see to fix
 this AM type in IntToRFM component), how the receiver side knows 
 which AM
 type has the message?Is this AM Type included in the message 
 automaticallywhen I do Comm.SendMsg[1]?
 
  
 
 My question is how the receiver is able to send to one concrete 
 messagehandler from the message type if I have not directly 
 specified the AM type
 in my TOS_Msg message when I send the message.
 
  
 
 Thanks in advance
 
  
 
  Regards
 
  
 
 David
 
 ‎ 

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

Re: [Tinyos-help] Toscomm JNI library

2009-10-28 Thread David Conde
Hi Wafa,

 

Did you put getenv.dll file in system32 folder in Windows directory?

 

I tried making this and It worked right.

 

Regards

 

De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de wafa
jaballah
Enviado el: miércoles, 28 de octubre de 2009 12:17
Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] Toscomm JNI library

 

Hi all,

I want to communicate with a mote from a PC. From Lesson  Mote-PC serial
communication and Serial Forwarder in Tinyos Documentation, I want to
follow the different steps.
In order to tell the Listen TOOL to use COM1 serial port at the correct
speed for a telos mote, I do the following command as it is indicated in the
tutorial:
$java net.tinyos.tools.Listen -comm ser...@com1:telos

But I have  the following error:
The TOSCOMM JNI LIBRARY was not found 
CHECK that your tinyos tools package is installed and try rernunnig
tos-install-jni
Aborting..

I have the pakage installed but when I type 
$ tos-install-jni
I have another error : 
Installing 32-bit Java JNI code in /cygdrive/c/Program
files/java/jdk1.6.0_11/jre/bin...
install: cannot stat ' /usr/lib/tinyos/ *-32.dll': No-such file or
directory.

What does mean cannot stat ' /usr/lib/tinyos/ *-32.dll'.?
I have notice that  the folder : /usr/lib/tinyos have a toscom.dll and
getenv.dll file 










-- 
Wafa Ben Jaballah

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

Re: [Tinyos-help] Toscomm JNI library

2009-10-28 Thread David Conde
Hi,

 

I remember that I placed win32com.dll file from Java Comm API in System 32
folder either, but I do not know if this can help you.

 

I followed the next link from TinyOS help email list when I had a similar
problem with dll files, maybe if you read it, it can help you.

 

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

 

Regards

 

De: wafa jaballah [mailto:wafa.jabal...@gmail.com] 
Enviado el: miércoles, 28 de octubre de 2009 14:03
Para: David Conde; tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Toscomm JNI library

 

Hi ,
Thanks David for the reply.
But I still have the same problem.
$ tos-install-jni
  
Installing 32-bit Java JNI code in /cygdrive/c/Program
files/java/jdk1.6.0_11/jre/bin...
install: cannot stat ' /usr/lib/tinyos/ *-32.dll': No-such file or
directory.

I tried to copy the getenv.dll in SYSTEM 32 but it doesn't work for me.
What could be the error ? 

Thanks,




2009/10/28 David Conde dco...@citic.es

Hi Wafa,

 

Did you put getenv.dll file in system32 folder in Windows directory?

 

I tried making this and It worked right.

 

Regards

 

De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de wafa
jaballah
Enviado el: miércoles, 28 de octubre de 2009 12:17


Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] Toscomm JNI library

 

Hi all,



I want to communicate with a mote from a PC. From Lesson  Mote-PC serial
communication and Serial Forwarder in Tinyos Documentation, I want to
follow the different steps.
In order to tell the Listen TOOL to use COM1 serial port at the correct
speed for a telos mote, I do the following command as it is indicated in the
tutorial:
$java net.tinyos.tools.Listen -comm ser...@com1:telos

But I have  the following error:
The TOSCOMM JNI LIBRARY was not found 
CHECK that your tinyos tools package is installed and try rernunnig
tos-install-jni
Aborting..

I have the pakage installed but when I type 
$ tos-install-jni
I have another error : 
Installing 32-bit Java JNI code in /cygdrive/c/Program
files/java/jdk1.6.0_11/jre/bin...
install: cannot stat ' /usr/lib/tinyos/ *-32.dll': No-such file or
directory.

What does mean cannot stat ' /usr/lib/tinyos/ *-32.dll'.?
I have notice that  the folder : /usr/lib/tinyos have a toscom.dll and
getenv.dll file 










-- 
Wafa Ben Jaballah




-- 
Wafa Ben Jaballah

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

[Tinyos-help] Storage for Telosb in TinyOS 1.x

2009-10-28 Thread David Conde
Hi, 

 

I would like to know the different components to store date in Telosb motes
using TinyOS 1.x. In Telosb datasheet I saw that there are different type of
memories like RAM, EEPROM, and Measurement Serial Flash and Program Flash
Memory. Which one should I use to save data before sending them via RF?
Which TinyOS 1.x components are relate to each kind of memory?Does it exist
any example about it for TinyOS 1.x?

 

Thanks in advance

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

[Tinyos-help] Active Message ACKs

2009-10-28 Thread David Conde
Hi,


I have a system where it is necessary to receive an ACK message when I the
sender sends an alarm message. I am working with TinyOS 1.x, and I would
like to know what do I have to do to get the ACK message?I have to change
something in some configuration file in order to get ACK messages or I have
to implement by myself using timers?


I am using TinyOS 1.x and Telosb motes.

 

Thanks in advance

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

Re: [Tinyos-help] Storage for Telosb in TinyOS 1.x

2009-10-28 Thread David Conde
Hi Michael,

Thank you for your answer.

It was just what I needed to know.

Regards



-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: miércoles, 28 de octubre de 2009 18:11
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Storage for Telosb in TinyOS 1.x

RAM is RAM, you use it all the time for the program variables.

EEPROM can be accessed with the InternalFlash component, but
you probably don't want to use it for data logging -- small
and slow.

Program Flash is what gets set when you download a program and
is probably not appropriate for data log as well.

Serial Flash is for data logging. I think the PageEEPROM
component is the access method, but I haven't used it.

MS


David Conde wrote:
 Hi,
 
  
 
 I would like to know the different components to store date in Telosb 
 motes using TinyOS 1.x. In Telosb datasheet I saw that there are 
 different type of memories like RAM, EEPROM, and Measurement Serial 
 Flash and Program Flash Memory. Which one should I use to save data 
 before sending them via RF? Which TinyOS 1.x components are relate to 
 each kind of memory?Does it exist any example about it for TinyOS 1.x?
 
  
 
 Thanks in advance
 
 
 
 
 ___
 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] Active Message ACKs

2009-10-28 Thread David Conde
Hi Eric,

 

Maybe I should change to TinyOS 2.x, I wrote an open question about what are
the advantages from a power point of view between TinyOS 2.x , Boomerang and
TinyOS 1.x, but I did not get answer.

 

I read about a document from Technical University of Berlin where it was
said that TinyOS 2.x improved three features:

-  Complexity in code

-  Improvement for integrating new platforms

-  Reliability

 

I have focused my studies in TinyOS 1.x and I have spent some time analysing
it, so for this reason I think I am trying to continues with it but I think
I will change finally.

 

Thanks for your hint J

 

 

 

De: Eric Decker [mailto:cire...@gmail.com] 
Enviado el: miércoles, 28 de octubre de 2009 18:40
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Active Message ACKs

 

you might want to seriously consider switching to T2.  There is
significantly better infrastructure to support ACK'd packets.

 

On Wed, Oct 28, 2009 at 9:40 AM, David Conde dco...@citic.es wrote:

Hi,


I have a system where it is necessary to receive an ACK message when I the
sender sends an alarm message. I am working with TinyOS 1.x, and I would
like to know what do I have to do to get the ACK message?I have to change
something in some configuration file in order to get ACK messages or I have
to implement by myself using timers?


I am using TinyOS 1.x and Telosb motes.

 

Thanks in advance


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




-- 
Eric B. Decker
Senior (over 50 :-) Researcher



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

[Tinyos-help] Battery Level for Telosb

2009-10-27 Thread David Conde
Hi,

 

I have read some information in TinyOS-help about how getting battery level
from VoltageC components in Telosb, but I think there is not direct relation
between the Voltage Level in TElosb and Battery level, I am sure that
someone else has had the same need of getting the battery level in order to
send an alarm message so batteries in Telosb can be swicthed each time that
they are almost finish. How could I solve this problem?If there is no way to
get the battery level from Telosb, how can I work around about this?Does it
exist any sensor which can be integrated in Telosb to get the battery level
as the same way as a mobile phone does it?Does it exist any electronic
circuit to get the battery level?

 

I am working with TinyOS 1.x and Telosb motes

 

Thank you in advance

 

 

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

Re: [Tinyos-help] Battery Level for Telosb

2009-10-27 Thread David Conde
Hi Nicola,

 

Thank you for your answer.

 

Do you mean that you use Msp430InternalVoltageC in order to get the level
battery?But what is the function which relates battery level to voltage
level from InternalVoltageC? For example, do you know what voltage from
InternalVoltageC is equivalent to 10 % of full battery? I read about use
InternalVoltage and people said that is not very reliable, because of level
battery usually falls down much more faster as Internal Voltage does, so
from your experience, do you usually use it in order to get a threshold for
mínimum battery level, don’t you?What is the voltage do you use as mínimum
battery level?

 

Thank you in advance

 

David

 

 

 

De: Nicola Bressan [mailto:sbr...@gmail.com] 
Enviado el: martes, 27 de octubre de 2009 11:02
Para: David Conde
Asunto: Re: [Tinyos-help] Battery Level for Telosb

 


You can see the component Msp430InternalVoltageC(). I use this for read the
Voltage/Battery Level and I think that is the correct value becouse i see
that, when I use the battery the voltage is 2.5V but if I use the cable-USB
the voltage is 2.97V

Nicola

2009/10/27 David Conde dco...@citic.es

Hi,

 

I have read some information in TinyOS-help about how getting battery level
from VoltageC components in Telosb, but I think there is not direct relation
between the Voltage Level in TElosb and Battery level, I am sure that
someone else has had the same need of getting the battery level in order to
send an alarm message so batteries in Telosb can be swicthed each time that
they are almost finish. How could I solve this problem?If there is no way to
get the battery level from Telosb, how can I work around about this?Does it
exist any sensor which can be integrated in Telosb to get the battery level
as the same way as a mobile phone does it?Does it exist any electronic
circuit to get the battery level?

 

I am working with TinyOS 1.x and Telosb motes

 

Thank you in advance

 

 


___
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] Battery Level for Telosb

2009-10-27 Thread David Conde
No it is ok, you helped my telling me about the InternalVoltage component,
just I wondered if there is a relation between level battery to Voltage
level because I do not know if there is some relation between them? The
problem is that I am going to use it for critical systems which never can
stop because of battery off, for this reason I need something which warns me
that battery is going to be finished completly, before that the battery is
actually OFF (0% of its level).I would like to have something which warns me
when the battery’s level is around 10% of its 100% level.

 

Thanks in advance and thank Nicola for your answer

 

Regards

 

David

 

De: Nicola Bressan [mailto:sbr...@gmail.com] 
Enviado el: martes, 27 de octubre de 2009 11:23
Para: David Conde
Asunto: Re: [Tinyos-help] Battery Level for Telosb

 


I'm sorry but I don't succeed in answering to your questions because I'm not
never me place the problem...
I don't have more experience about this... I have confined to effect a
periodic reading of the data
Sorry if I don't help you

Nicola

2009/10/27 David Conde dco...@citic.es

Hi Nicola,

 

Thank you for your answer.

 

Do you mean that you use Msp430InternalVoltageC in order to get the level
battery?But what is the function which relates battery level to voltage
level from InternalVoltageC? For example, do you know what voltage from
InternalVoltageC is equivalent to 10 % of full battery? I read about use
InternalVoltage and people said that is not very reliable, because of level
battery usually falls down much more faster as Internal Voltage does, so
from your experience, do you usually use it in order to get a threshold for
mínimum battery level, don’t you?What is the voltage do you use as mínimum
battery level?

 

Thank you in advance

 

David

 

 

 

De: Nicola Bressan [mailto:sbr...@gmail.com] 
Enviado el: martes, 27 de octubre de 2009 11:02
Para: David Conde
Asunto: Re: [Tinyos-help] Battery Level for Telosb

 


You can see the component Msp430InternalVoltageC(). I use this for read the
Voltage/Battery Level and I think that is the correct value becouse i see
that, when I use the battery the voltage is 2.5V but if I use the cable-USB
the voltage is 2.97V

Nicola

2009/10/27 David Conde dco...@citic.es

Hi,

 

I have read some information in TinyOS-help about how getting battery level
from VoltageC components in Telosb, but I think there is not direct relation
between the Voltage Level in TElosb and Battery level, I am sure that
someone else has had the same need of getting the battery level in order to
send an alarm message so batteries in Telosb can be swicthed each time that
they are almost finish. How could I solve this problem?If there is no way to
get the battery level from Telosb, how can I work around about this?Does it
exist any sensor which can be integrated in Telosb to get the battery level
as the same way as a mobile phone does it?Does it exist any electronic
circuit to get the battery level?

 

I am working with TinyOS 1.x and Telosb motes

 

Thank you in advance

 

 


___
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] Battery Level for Telosb

2009-10-27 Thread David Conde
Hi Arik,

 

It looks like a good idea. The only problem it is that I have read that
these kind of batteries  can fell down to 0% battery’s level from high
Voltage level, I mean, these batteries can sometimes fell down around 0% of
battery’s level with for example 1’5 Volts and sometimes fell down quickly
from 2’5 Volts, at least this is what I read about. Do you know anything
about this?

 

Anyway, thanks very much for your answer, I will use this method if nobody
say something about the problem which I have talked about before.

 

Regards

 

David

 

 

 

De: Arik [mailto:ari...@bgu.ac.il] 
Enviado el: martes, 27 de octubre de 2009 12:05
Para: 'David Conde'; 'Nicola Bressan'
CC: tinyos-help@millennium.berkeley.edu
Asunto: RE: [Tinyos-help] Battery Level for Telosb

 

Hi David,

 

I have a suggestion: 

 

Step 1: connect a mote to a USB and check the current voltage. This is 100%.

 

Step 2: connect to batteries. Make a program that sends the current voltage
all the time. Besides that, add some computation, LEDs blinking and send as
much messages as you can - to decrease the battery life.

This way, when the battery dies – you will stop receiving the current
voltage values. Then check the last value you have received – this is 0%.

 

Now you can calculate the desired percentage J

 

Good luck,

Arik

 

  _  

From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of David
Conde
Sent: Tuesday, October 27, 2009 12:41
To: 'Nicola Bressan'
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Battery Level for Telosb

 

No it is ok, you helped my telling me about the InternalVoltage component,
just I wondered if there is a relation between level battery to Voltage
level because I do not know if there is some relation between them? The
problem is that I am going to use it for critical systems which never can
stop because of battery off, for this reason I need something which warns me
that battery is going to be finished completly, before that the battery is
actually OFF (0% of its level).I would like to have something which warns me
when the battery’s level is around 10% of its 100% level.

 

Thanks in advance and thank Nicola for your answer

 

Regards

 

David

 

De: Nicola Bressan [mailto:sbr...@gmail.com] 
Enviado el: martes, 27 de octubre de 2009 11:23
Para: David Conde
Asunto: Re: [Tinyos-help] Battery Level for Telosb

 


I'm sorry but I don't succeed in answering to your questions because I'm not
never me place the problem...
I don't have more experience about this... I have confined to effect a
periodic reading of the data
Sorry if I don't help you

Nicola

2009/10/27 David Conde dco...@citic.es

Hi Nicola,

 

Thank you for your answer.

 

Do you mean that you use Msp430InternalVoltageC in order to get the level
battery?But what is the function which relates battery level to voltage
level from InternalVoltageC? For example, do you know what voltage from
InternalVoltageC is equivalent to 10 % of full battery? I read about use
InternalVoltage and people said that is not very reliable, because of level
battery usually falls down much more faster as Internal Voltage does, so
from your experience, do you usually use it in order to get a threshold for
mínimum battery level, don’t you?What is the voltage do you use as mínimum
battery level?

 

Thank you in advance

 

David

 

 

 

De: Nicola Bressan [mailto:sbr...@gmail.com] 
Enviado el: martes, 27 de octubre de 2009 11:02
Para: David Conde
Asunto: Re: [Tinyos-help] Battery Level for Telosb

 


You can see the component Msp430InternalVoltageC(). I use this for read the
Voltage/Battery Level and I think that is the correct value becouse i see
that, when I use the battery the voltage is 2.5V but if I use the cable-USB
the voltage is 2.97V

Nicola

2009/10/27 David Conde dco...@citic.es

Hi,

 

I have read some information in TinyOS-help about how getting battery level
from VoltageC components in Telosb, but I think there is not direct relation
between the Voltage Level in TElosb and Battery level, I am sure that
someone else has had the same need of getting the battery level in order to
send an alarm message so batteries in Telosb can be swicthed each time that
they are almost finish. How could I solve this problem?If there is no way to
get the battery level from Telosb, how can I work around about this?Does it
exist any sensor which can be integrated in Telosb to get the battery level
as the same way as a mobile phone does it?Does it exist any electronic
circuit to get the battery level?

 

I am working with TinyOS 1.x and Telosb motes

 

Thank you in advance

 

 


___
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

Re: [Tinyos-help] Battery Level for Telosb

2009-10-27 Thread David Conde
Hi all,

 

Thank you for all your answers, they helped me so much.

 

I will do that, I will test with the most common kind of battery which could
be used by my system, and then, I will look for the graph of them in order
to create the working tables for my system.

 

Thank you again

 

Regards

 

David

 

De: André Rodrigues [mailto:andremiguelrodrig...@gmail.com] 
Enviado el: martes, 27 de octubre de 2009 12:21
Para: David Conde; 'Arik'; 'Nicola Bressan'
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Battery Level for Telosb

 

Hi

 

Just see 4 graph (for alcaline) and 5 graph (for nimh).

 

Regards,

 

André

 

- Original Message - 

From: David Conde mailto:dco...@citic.es  

To: 'Arik' mailto:ari...@bgu.ac.il  ; 'Nicola Bressan'
mailto:sbr...@gmail.com  

Cc: tinyos-help@millennium.berkeley.edu 

Sent: Tuesday, October 27, 2009 11:19 AM

Subject: Re: [Tinyos-help] Battery Level for Telosb

 

Hi Arik,

 

It looks like a good idea. The only problem it is that I have read that
these kind of batteries  can fell down to 0% battery’s level from high
Voltage level, I mean, these batteries can sometimes fell down around 0% of
battery’s level with for example 1’5 Volts and sometimes fell down quickly
from 2’5 Volts, at least this is what I read about. Do you know anything
about this?

 

Anyway, thanks very much for your answer, I will use this method if nobody
say something about the problem which I have talked about before.

 

Regards

 

David

 

 

 

De: Arik [mailto:ari...@bgu.ac.il] 
Enviado el: martes, 27 de octubre de 2009 12:05
Para: 'David Conde'; 'Nicola Bressan'
CC: tinyos-help@millennium.berkeley.edu
Asunto: RE: [Tinyos-help] Battery Level for Telosb

 

Hi David,

 

I have a suggestion: 

 

Step 1: connect a mote to a USB and check the current voltage. This is 100%.

 

Step 2: connect to batteries. Make a program that sends the current voltage
all the time. Besides that, add some computation, LEDs blinking and send as
much messages as you can - to decrease the battery life.

This way, when the battery dies – you will stop receiving the current
voltage values. Then check the last value you have received – this is 0%.

 

Now you can calculate the desired percentage J

 

Good luck,

Arik

 


  _  


From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of David
Conde
Sent: Tuesday, October 27, 2009 12:41
To: 'Nicola Bressan'
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Battery Level for Telosb

 

No it is ok, you helped my telling me about the InternalVoltage component,
just I wondered if there is a relation between level battery to Voltage
level because I do not know if there is some relation between them? The
problem is that I am going to use it for critical systems which never can
stop because of battery off, for this reason I need something which warns me
that battery is going to be finished completly, before that the battery is
actually OFF (0% of its level).I would like to have something which warns me
when the battery’s level is around 10% of its 100% level.

 

Thanks in advance and thank Nicola for your answer

 

Regards

 

David

 

De: Nicola Bressan [mailto:sbr...@gmail.com] 
Enviado el: martes, 27 de octubre de 2009 11:23
Para: David Conde
Asunto: Re: [Tinyos-help] Battery Level for Telosb

 


I'm sorry but I don't succeed in answering to your questions because I'm not
never me place the problem...
I don't have more experience about this... I have confined to effect a
periodic reading of the data
Sorry if I don't help you

Nicola

2009/10/27 David Conde dco...@citic.es

Hi Nicola,

 

Thank you for your answer.

 

Do you mean that you use Msp430InternalVoltageC in order to get the level
battery?But what is the function which relates battery level to voltage
level from InternalVoltageC? For example, do you know what voltage from
InternalVoltageC is equivalent to 10 % of full battery? I read about use
InternalVoltage and people said that is not very reliable, because of level
battery usually falls down much more faster as Internal Voltage does, so
from your experience, do you usually use it in order to get a threshold for
mínimum battery level, don’t you?What is the voltage do you use as mínimum
battery level?

 

Thank you in advance

 

David

 

 

 

De: Nicola Bressan [mailto:sbr...@gmail.com] 
Enviado el: martes, 27 de octubre de 2009 11:02
Para: David Conde
Asunto: Re: [Tinyos-help] Battery Level for Telosb

 


You can see the component Msp430InternalVoltageC(). I use this for read the
Voltage/Battery Level and I think that is the correct value becouse i see
that, when I use the battery the voltage is 2.5V but if I use the cable-USB
the voltage is 2.97V

Nicola

2009/10/27 David Conde dco...@citic.es

Hi,

 

I have read some information in TinyOS-help about how getting battery level
from VoltageC components in Telosb, but I think

[Tinyos-help] SPI Example for Telosb in TinyOS 1.x

2009-10-26 Thread David Conde
Hi, 

 

I have been reading about different ways to communicate Telosb with external
devices through SPI port. I found in TinyOS –help LIst one way in which the
pin 44,45,46, and 47 in MSP430 are used since they are unused for other
functions. I think in this way what would be difficult it would be to be
able to connect external wires to those pines because of their so small
size. The other option it would be to use MISO pin in memory flash which
used SPI port , to GIO in U2 or U28, because this pin is close to the
external connector for expansion in Telosb. The problem it is that I do not
understand where I have to connect MOSI, CLK and SlaveSelect connections in
U2 or U28.

I have read that I should use BusArbitration in order to avoid problema
which CC2420 and Flash memory which share SPI in the MSP430, how Do I have
to use TinyOS component to avoid conflicts with radio communication and
flash memory operations?

 Could anybody show me a real example of how using SPI in Telosb, I mean
from Hardware and Software point of view?

 

Thanks in advance

 

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

[Tinyos-help] UART0 in Telosb

2009-10-26 Thread David Conde
Hi,

 

I have read some documentation about using UARTRX0 and UARTTX0  pines 2 and
4 in U2. And some people said that is not possible to use UART0 because of
they share pines with SPI bus in CC2420 and FlashMemory. I have taken a look
at Telosb Schematic and I do not see any shared pin for UART0, am I
missunderstanding anything? Can I connect directly my external devices Uart
pines to UART0 in Telosb?Do I have to take anything into account?What TinyOS
component do I have to use to work with UART0?

 

I am using TinyOS1.x and Telosb motes.

 

Thank you in advance

 

 

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

[Tinyos-help] Writing low-power application for TinyOS 1.x

2009-10-23 Thread David Conde
Hi,

 

I have read about this article: Writing low-power application 

(http://docs.tinyos.net/index.php/Writing_Low-Power_Applications) in
Tinyos.net and I would like to know if TinyOS 1.x make all this by itself or
I have to make sure to do it myself as developer. I mean, TinyOS 1.x does
the next actions by itself when a simple is asked by a component or do I
have to do it?:

 

Turn on SPI bus

  Turn on flash chip

  Turn on voltage reference

  Turn on I2C bus

  Log prior readings

  Start humidity sample

  Wait 5ms for log

  Turn off flash chip

  Turn off SPI bus

  Wait 12ms for vref

  Turn on ADC

  Start total solar sample

  Wait 2ms for total solar

  Start photo active sample

  Wait 2ms for photo active

  Turn off ADC

  Turn off vref

  Wait 34ms for humidity

  Start temperature sample

  Wait 220ms for temperature

  Turn off I2C bus

 

What does it happen with the radio operation? Does TinyOS 1.x provide low
power operation through the Low Power Listening technique, or do I have to
implement by myself as developer? 

 

And Finally, what about the sensor in Telosb, Does TinyOS 1.x switch off the
sensor when they are not taken measure from the environment automatically?

 

Thanks in advance

 

 

 

Thanks in advance 

___
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

[Tinyos-help] TinyOS 1.x / Boomerang / TinyOS 2.x Comparative

2009-10-22 Thread David Conde
Hi,

 

I am thinking about upgrading TinyOS 1.x to TinyOS 2.x or Boomerang in order
to use in Telosb motes. I would like to know what are the main differences
between them, specially from a power and communication stack protocol point
of view. Could I communicate motes in TinyOS 1.x with motes running in
TinyOS 2.x? Do they have the same communications protocol?

 

Thanks in advance

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

Re: [Tinyos-help] TinyOS 1.x / Boomerang / TinyOS 2.x Comparative

2009-10-22 Thread David Conde
Hi Faisal Aslam,

Thanks for this link.
-- 
David Conde Baena
CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)
Tfno.: +34 952028610
Fax: +34 951231029
Email: dco...@citic.es
Web: www.citic.es 




I read this report from TU Berlin T2: A Second Generation OS For
Embedded Sensor Networks, they spoke about reliability, supporting new
platform and building application complexity, but it is not said a lot about
Low Power management. What about this topic?Do TinyOS 2 provide much better
features from a power point of view?Could I communicate motes running TinyOS
1.x with motes running in TinyOS 2.x?

Thanks in advance

-Mensaje original-
De: Faisal Aslam [mailto:as...@informatik.uni-freiburg.de] 
Enviado el: jueves, 22 de octubre de 2009 10:14
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] TinyOS 1.x / Boomerang / TinyOS 2.x Comparative

Dear David,

Please read papers mentioned in the following thread and then you will 
have answers of your questions.
http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg29542.htm
l

best regards,

---
Faisal Aslam
University of Freiburg, Germany
http://cone.informatik.uni-freiburg.de/people/aslam/

David Conde wrote:

 Hi,

  

 I am thinking about upgrading TinyOS 1.x to TinyOS 2.x or Boomerang in 
 order to use in Telosb motes. I would like to know what are the main 
 differences between them, specially from a power and communication 
 stack protocol point of view. Could I communicate motes in TinyOS 1.x 
 with motes running in TinyOS 2.x? Do they have the same communications 
 protocol?

  

 Thanks in advance

 

 ___
 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] Listen to moteiv

2009-10-22 Thread David Conde
Did you try by typing export MOTECOM= netw...@196.168.4.104:9002 previusly?

I had a similar problem and I solved by specifying the serial port in
MOTECOM variable. I looked for the code in java tools and it is read MOTECOM
variable by default.

I hope this help you


-- 
David Conde Baena
CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
Email: dco...@citic.es
Web: www.citic.es 




-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Wei, Lizhi
Enviado el: jueves, 22 de octubre de 2009 13:57
Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] Listen to moteiv


Hi,

I'm working with the tmote invent and moteiv. I met a problem there, i
tried to listen to the tmote invent via tmote connect, But nothing happens
when the SerialForwarder run. No errors, no consequence.

   the mode communication is netw...@196.168.4.104:9002

   Is there something wrong with the syntax or command? I'm confused

   And, i can programme the tmotes via tmote connect. So the connection is
definately there.  


Thanks for any advise.
Wei

___
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] Attaching moisture sensor to TelosB

2009-10-21 Thread David Conde
Hi Josh,

It depends on the type of output which your sensor has. If it is a digital
output, you should connect it to any of the GIO pins and use the
MSP430GeneralIO component, you have to notice that there are some GIO which
share pin with I2C connectios and ADC pins, so If you use either GIO1 or
GIO0 you have to connect R16/R15 as it is shown in TMoteSky dataSheet, if it
is analog output you should use ADC interface and connect the output in some
of ADC ports, as explained in this link:
http://www.moteiv.com/community/Connecting_External_Sensors

I hope this help you

Regards

David

-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Josh Mason
Enviado el: miércoles, 21 de octubre de 2009 7:26
Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] Attaching moisture sensor to TelosB

I'm trying to attach a Decagon EC-5 moisture sensor to a TelosB, but I'm
not really sure how to attach it or configure the mote to take the
readings from the external sensor.

I'm a bit confused on where to attach the excitation and the analog out
wire from the sensor to the mote.  I need to excite the the sensor for
about 10ms before I can get a reading, which I believe means I need to
connect it to the GIO.  Can I connect the analog out to another GIO or
does that need to go through one of the ADC pins?

I'm also having trouble trying to figure out how to wire my application
correctly.  Can any provide an example or point me in the right direction?
 Part of my problem is I don't know how to initialize the configuration
structure needed by the ADC to configure itself.  If I only use GIOs, do I
need to even do this?

Any help would be greatly appreciated.

- Josh

___
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] Reading/Writing data in TelosB memory

2009-10-21 Thread David Conde
Hi,

 

I would like to develop an application similar to  SenseLightToLog but in
TelosB, I looked this component and it uses LoggerWRite and LoggerRead
component in order to write and read in MicaZ memory, the problem it is that
I am using TelosB so I guess that they do not have the same memory hardware,
so Telosb should have another Write/Read memory component, could anybody
tell me which component do I have to use for reading/writing in Telosb
memory?

 

Is there any example application what use them?

 

 

Thanks in advance

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

Re: [Tinyos-help] Reading/Writing data in TelosB memory

2009-10-21 Thread David Conde
Hi Faisal Aslam,

Thanks for replying me,

I forgot to say that I was working with TinyOS 1.x version, do you know how
where can I find something similar for TinyOS 1.x? I looked for some similar
document in TinyOS 1.x tutorial but I do not find anything.

Thanks in advance

David

-Mensaje original-
De: Faisal Aslam [mailto:as...@informatik.uni-freiburg.de] 
Enviado el: miércoles, 21 de octubre de 2009 16:18
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Reading/Writing data in TelosB memory

All the answers are here http://docs.tinyos.net/index.php/Storage

best regards,
Faisal Aslam

David Conde wrote:

 Hi,

  

 I would like to develop an application similar to  SenseLightToLog but 
 in TelosB, I looked this component and it uses LoggerWRite and 
 LoggerRead component in order to write and read in MicaZ memory, the 
 problem it is that I am using TelosB so I guess that they do not have 
 the same memory hardware, so Telosb should have another Write/Read 
 memory component, could anybody tell me which component do I have to 
 use for reading/writing in Telosb memory?

  

 Is there any example application what use them?

  

  

 Thanks in advance

 

 ___
 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] Reading/Writing data in TelosB memory

2009-10-21 Thread David Conde
Thanks Michael,

I have a question for you, because I am getting some problems when I try to
develop my applications with Telosb in TinyOS 1.x, there are much more
documentation, examples and resources for TinyOS 2.x for example with
LowPowerSensing application which it is not for TinyOS 1.x,and I think it is
an important application which should exist for TinyOS 1.x, I have thought
about to upgrade to TinyOS 2.x, and I know that you are working with TInyOS
1.x so what do you recommend me? How can I work around and get a similar
application as LowPowerSensing in TinyOS 1.x?Do you know if TinyOS 2.x is
much better from a power point of view?

Thanks in advance

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: miércoles, 21 de octubre de 2009 17:53
Para: Faisal Aslam
CC: David Conde; tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Reading/Writing data in TelosB memory

Look at the InternalFlashC component.
MS

Faisal Aslam wrote:
 I have never worked with TinyOS 1.x and cannot help there.
 I hope someone will able to help you.
 
 regards,
 Faisal Aslam
 
 David Conde wrote:
 Hi Faisal Aslam,

 Thanks for replying me,

 I forgot to say that I was working with TinyOS 1.x version, do you know
how
 where can I find something similar for TinyOS 1.x? I looked for some
similar
 document in TinyOS 1.x tutorial but I do not find anything.

 Thanks in advance

 David

 -Mensaje original-
 De: Faisal Aslam [mailto:as...@informatik.uni-freiburg.de] 
 Enviado el: miércoles, 21 de octubre de 2009 16:18
 Para: David Conde
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Reading/Writing data in TelosB memory

 All the answers are here http://docs.tinyos.net/index.php/Storage

 best regards,
 Faisal Aslam

 David Conde wrote:
   
 Hi,

  

 I would like to develop an application similar to  SenseLightToLog but 
 in TelosB, I looked this component and it uses LoggerWRite and 
 LoggerRead component in order to write and read in MicaZ memory, the 
 problem it is that I am using TelosB so I guess that they do not have 
 the same memory hardware, so Telosb should have another Write/Read 
 memory component, could anybody tell me which component do I have to 
 use for reading/writing in Telosb memory?

  

 Is there any example application what use them?

  

  

 Thanks in advance

 

 ___
 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] Reading/Writing data in TelosB memory

2009-10-21 Thread David Conde
Hi again Michael,

So I am using Telosb as well, and my question is, what do you do to achieve
low power applications so that your Telosb can remain more time without
being recharged?Does Boomerang manage this low power mode for all the
applications running in it?if it does, where could I get Boomerang software?

Thanks in advance

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: miércoles, 21 de octubre de 2009 18:40
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Reading/Writing data in TelosB memory

I've used Boomerang on telos motes and Moteworks on iris but
only so far as to develop apps so I don't have a lot of
experience with how well they work in the field...Boomerang
had some issues and the Moteworks project hasn't been
deployed yet...

I think one of the points of T2 is to make the low power mesh
stuff work better but that is hearsay evidence. Perhaps someone
who knows T2 can comment further.

MS

David Conde wrote:
 Thanks Michael,
 
 I have a question for you, because I am getting some problems when I try
to
 develop my applications with Telosb in TinyOS 1.x, there are much more
 documentation, examples and resources for TinyOS 2.x for example with
 LowPowerSensing application which it is not for TinyOS 1.x,and I think it
is
 an important application which should exist for TinyOS 1.x, I have thought
 about to upgrade to TinyOS 2.x, and I know that you are working with
TInyOS
 1.x so what do you recommend me? How can I work around and get a similar
 application as LowPowerSensing in TinyOS 1.x?Do you know if TinyOS 2.x is
 much better from a power point of view?
 
 Thanks in advance
 
 -Mensaje original-
 De: Michael Schippling [mailto:sc...@santafe.edu] 
 Enviado el: miércoles, 21 de octubre de 2009 17:53
 Para: Faisal Aslam
 CC: David Conde; tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Reading/Writing data in TelosB memory
 
 Look at the InternalFlashC component.
 MS
 
 Faisal Aslam wrote:
 I have never worked with TinyOS 1.x and cannot help there.
 I hope someone will able to help you.

 regards,
 Faisal Aslam

 David Conde wrote:
 Hi Faisal Aslam,

 Thanks for replying me,

 I forgot to say that I was working with TinyOS 1.x version, do you know
 how
 where can I find something similar for TinyOS 1.x? I looked for some
 similar
 document in TinyOS 1.x tutorial but I do not find anything.

 Thanks in advance

 David

 -Mensaje original-
 De: Faisal Aslam [mailto:as...@informatik.uni-freiburg.de] 
 Enviado el: miércoles, 21 de octubre de 2009 16:18
 Para: David Conde
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Reading/Writing data in TelosB memory

 All the answers are here http://docs.tinyos.net/index.php/Storage

 best regards,
 Faisal Aslam

 David Conde wrote:
   
 Hi,

  

 I would like to develop an application similar to  SenseLightToLog but 
 in TelosB, I looked this component and it uses LoggerWRite and 
 LoggerRead component in order to write and read in MicaZ memory, the 
 problem it is that I am using TelosB so I guess that they do not have 
 the same memory hardware, so Telosb should have another Write/Read 
 memory component, could anybody tell me which component do I have to 
 use for reading/writing in Telosb memory?

  

 Is there any example application what use them?

  

  

 Thanks in advance




 ___
 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


[Tinyos-help] MSP430 in sleep mode

2009-10-19 Thread David Conde
Hi,

 

I read some threads about this topic in Tinyos-help emails list, but I have
a question, Does Tinyos 1.x put automatically MSP430 in sleep mode as the
same way as Tinyos 2.x does when there is no task in the MSP430 processes
FIFO?if not, is there any Tinyos component  which is used to put MSP430 in
Sleep mode for Tinyos 1.x?

 

Thank you in advance 

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

Re: [Tinyos-help] MSP430 in sleep mode

2009-10-19 Thread David Conde
Hi Alfonso,


Thank for replying me, I read that TinyOS 2.x does it, but do you know if
TinyOS 1.x does it as well?

 

Thanks

 

David

 

 

De: Alfonso Cardell [mailto:alfonso.card...@gmail.com] 
Enviado el: lunes, 19 de octubre de 2009 11:14
Para: David Conde
Asunto: Re: [Tinyos-help] MSP430 in sleep mode

 

yes,

 

TinyOS put automatically MSP430 in sleep mode when no task available.

2009/10/19 David Conde dco...@citic.es

Hi,

 

I read some threads about this topic in Tinyos-help emails list, but I have
a question, Does Tinyos 1.x put automatically MSP430 in sleep mode as the
same way as Tinyos 2.x does when there is no task in the MSP430 processes
FIFO?if not, is there any Tinyos component  which is used to put MSP430 in
Sleep mode for Tinyos 1.x?

 

Thank you in advance 


___
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] Tinyos 1.x message Types

2009-10-16 Thread David Conde
Hi,

 

 I am looking information about Tinyos 1.X radio model, I mean I would like
to know how the frames are built in Tinyos 1.x , how are the different
messages types for Tinyos 1.X, and where I could get information about this.
I have reading about this but I just found information about TinyoS 2.x. 

 

I found a document from Massachusetts where it is said that Tinyos-1.x only
allows one radio message type for a platform TOS_Msg, by assuming that a
platform will only be using one radio interface. What does it exactly mean?
I read about TOS_Msg in AM.h file and I found a variable called type in
that struct, so, why does it need TOS_Msg struct a type parameter if it
only allows one radio message?if this document is wrong, which are the AM
types for Tinyos 1.x?

 

 

Thank you in advance 

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

[Tinyos-help] LowPower Application for Tinyos 1.x

2009-10-16 Thread David Conde
Hi,

 

I would like to know if it exists a LowPowerSensing application for Tinyos
1.x as the same way as it exists for Tinyos 2.x according to Writing
Low-Power article.

 

Is there any low-power application which does the same than Oscilloscope
one?

 

Thank you in advance

 

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

Re: [Tinyos-help] How could I configure what sensor to get data from in my Telosb ?

2009-10-15 Thread David Conde
Hi again,

I have read about the Sensing examples in tinyos1.x/apps folder and found
Sense and Oscilloscope.If I have not missunderstand, if I wanted to
integrate a new analog sensor to TelosB, I should create a new MySensor
component whose Module MyADCSensorM file uses ADCControl in order to be able
to call :

call ADCControl.bindPort(MY_ADC_MAP_PORT,
   ACTUAL_MY_ADC_PORT);

Where MY_ADC_MAP_PORT would be defined in MYADCSensor.h

MyADCSensor.h

enum
{
  MY_ADC_MAP_PORT = unique(ADCPort),

  ACTUAL_MY_ADC_PORT = ASSOCIATE_ADC_CHANNEL(
INPUT_CHANNEL_A1, 
REFERENCE_VREFplus_AVss, 
REFVOLT_LEVEL_1_5
  )
};

All what I should do it would be to change the Hamamatsu Component in order
to change the INPUT_CHANNEL4 OR INPUT_CHANNEL5 by INPUT_CHANNEL1 or
INPUT_CHANNEL2 , INPUT_CHANNEL3, which are the free channels for ADC
ports..., do I have to do anything more, or am I missing anything?

Thank you in advance



-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: martes, 13 de octubre de 2009 19:28
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] How could I configure what sensor to get data from
in my Telosb ?

Look at the ADC modules and their use in various demo apps,
e.g., Sense. You'll need to rummage around in the platform
directories to see the actual DemoSensor implementation.
If all you need to do is sample an analog input it should
be a straight-forward swap of ADCC for DemoSensor in the
config and then using getData()  dataReady() in your code.

MS

David Conde wrote:
 Hi Michael,
 
 Thank you for your answer, it was very helpful for me.
 
 I perfectly understood how I have to do it with your explanation.
 
 What about if I try connect a sensor with analog output, would it be the
 same process as digital one?
 
 I mean, if I would like to use a Sensor with analog output, I would place
it
 in ADC2 (analog Input 2, which is the same pin as GIO1), could I use the
 same component (MSP430GeneralIO) with the same method as you told me
 before?How can Tinyos make the difference between use ADC2 and GIO1 if
both
 of them are connected together?
 
 Can I suppose that by default no pin in 10 Extensor pin connector is used
if
 I have not matched in MyApplication configuration component? I mean, I
could
 use GIO4, GIO5 and GIO3 as the same way as I would use GIO1?
 
 I am using Tinyos1.x with Telosb motes.
 
 
 Thank you in advance and I am sorry for so many questions
 
 
 -Mensaje original-
 De: Michael Schippling [mailto:sc...@santafe.edu] 
 Enviado el: lunes, 12 de octubre de 2009 18:45
 Para: chuso
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] How could I configure what sensor to get data
from
 in my Telosb ?
 
 You don't say what version of TOS you are using
 and I only know T1, but this is what I did to
 read a pin, and it might be the same in T2.
 Note that the Port23 name means Port 2 bit 3,
 so figure out what port/pin you want and use it:
 
 In the config file:
  MyApp.USIn0 - MSP430GeneralIOM.Port23;
 
 In the MyApp appication code file:
in the provides/uses block at the top:
   uses interface MSP430GeneralIO as USIn0;  // PORT23
 ...
in init():
   call USIn0.makeInput();
  call USIn0.selectIOFunc();
 
where you want to use it:
   // look at input value
   if( call USIn0.get() == FALSE )
 
 
 MS
 
 chuso wrote:
 Hi again,

 I have been reading the code in oscilloscope and I found TempHum
component
 which models the Sensirion Temperature and Humidity sensors, althoug I
did
 not understand very well what exactly this component does. 

 I found either the hardware schema of Telosb and I saw that there is 4
 GIO,
 both of them (GIO2 and GIO3) are connected with ADC2 and ADC3 together.
 With
 this,  I would like to integrate a PIR sensor, which have digital output.
 I
 have thought connect this digital output to the GIO1, which is connected
 with ADC2 IO. What do I have to do to get the data from this GIO?I mean,
 how
 I have to configure the hardware.h or whatever other NesC component in
 order
 to achieve to get data from this GIO without to cause error in the other
 funcionalities?

 Thank you in advance 


 Michael Schippling-2 wrote:
 Most of the example apps use a DemoSensor component as the data source.
 Each platform has a different implementation, depending on the native
 sensors available. You can just replace DemoSensor with an appropriate
 ADC in the config file. Dig through the code to find the DemoSensor
 implementation that your system is using, or search for other uses of
 ADC, to see a usage example

 MS

 David Conde wrote:
 Hi,

  

 I have been Reading about ADC component and Oscilloscope application
and
 
 I would like to know how I can change the sensor to get data from, I 
 mean, I am working with TelosB, and it has three sensor to get data
from
 
 them. I would like to change the configuration

Re: [Tinyos-help] JNI library for Android operating system.

2009-10-14 Thread David Conde
Hi Thanh,

I think you do not need to program the Telosb motes, you do not need to have 
Tinyos installed in your handphone,  I think you just need to read the serial 
port in Android, what you can do by using a Java library for this task. There 
should have a java library which was able to read from the serial port in 
Android, in Windows and Unix, exists JAVA Communications API for communications 
with serial port. The only thing that you should do it would be to create a 
java application which use this java library in order  t oread from the serial 
port (USB).

I hope this can help you

David

 

 

De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de Le Thanh Long
Enviado el: martes, 13 de octubre de 2009 15:23
Para: tinyos-help@millennium.berkeley.edu
Asunto: [Tinyos-help] JNI library for Android operating system.

 


Hi all,

I plan to use telosb to communicate between 2 handphones. The handphone is 
installed Android operation system and telosb mote will be plugged to USB port. 
A java program is similar to TestSerial in sample tutorial. But we need JNI 
library to communicate through serial port, for example running the TestSerial 
–comm ser...@ 

Since we cannot install whole TinyOS on Android handphone, do you know whether 
we can install JNI library on handphone? The Android supports java library.

Thank you very much,

Best regards,

 

  _  

New 
http://sg.rd.yahoo.com/sg/mail/domainchoice/mail/signature/*http:/mail.promotions.yahoo.com/newdomains/sg/
  Email names for you! 
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!

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

[Tinyos-help] Question about MSP430GeneralIO interface's commands

2009-10-14 Thread David Conde
Hi,

 

I would like to know what it is the difference between the next command
defined in MSP430GeneralIO:

 

-async command void selectModuleFunc();

- async command void selectIOFunc():

 

I understand well, I can use MSP430GeneralIOC in order to configure each
GIOX, pin,  I have been Reading this interface's documentation but I did not
find what is the difference between both methods, I mean, when I have to use
one and when I have to use the other one.

 

 

Thanks in advance

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

Re: [Tinyos-help] How could I configure what sensor to get data from in my Telosb ?

2009-10-13 Thread David Conde
Hi Michael,

Thank you for your answer, it was very helpful for me.

I perfectly understood how I have to do it with your explanation.

What about if I try connect a sensor with analog output, would it be the
same process as digital one?

I mean, if I would like to use a Sensor with analog output, I would place it
in ADC2 (analog Input 2, which is the same pin as GIO1), could I use the
same component (MSP430GeneralIO) with the same method as you told me
before?How can Tinyos make the difference between use ADC2 and GIO1 if both
of them are connected together?

Can I suppose that by default no pin in 10 Extensor pin connector is used if
I have not matched in MyApplication configuration component? I mean, I could
use GIO4, GIO5 and GIO3 as the same way as I would use GIO1?

I am using Tinyos1.x with Telosb motes.


Thank you in advance and I am sorry for so many questions


-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: lunes, 12 de octubre de 2009 18:45
Para: chuso
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] How could I configure what sensor to get data from
in my Telosb ?

You don't say what version of TOS you are using
and I only know T1, but this is what I did to
read a pin, and it might be the same in T2.
Note that the Port23 name means Port 2 bit 3,
so figure out what port/pin you want and use it:

In the config file:
 MyApp.USIn0 - MSP430GeneralIOM.Port23;

In the MyApp appication code file:
   in the provides/uses block at the top:
uses interface MSP430GeneralIO as USIn0;  // PORT23
...
   in init():
call USIn0.makeInput();
 call USIn0.selectIOFunc();

   where you want to use it:
// look at input value
if( call USIn0.get() == FALSE )


MS

chuso wrote:
 Hi again,
 
 I have been reading the code in oscilloscope and I found TempHum component
 which models the Sensirion Temperature and Humidity sensors, althoug I did
 not understand very well what exactly this component does. 
 
 I found either the hardware schema of Telosb and I saw that there is 4
GIO,
 both of them (GIO2 and GIO3) are connected with ADC2 and ADC3 together.
With
 this,  I would like to integrate a PIR sensor, which have digital output.
I
 have thought connect this digital output to the GIO1, which is connected
 with ADC2 IO. What do I have to do to get the data from this GIO?I mean,
how
 I have to configure the hardware.h or whatever other NesC component in
order
 to achieve to get data from this GIO without to cause error in the other
 funcionalities?
 
 Thank you in advance 
 
 
 Michael Schippling-2 wrote:
 Most of the example apps use a DemoSensor component as the data source.
 Each platform has a different implementation, depending on the native
 sensors available. You can just replace DemoSensor with an appropriate
 ADC in the config file. Dig through the code to find the DemoSensor
 implementation that your system is using, or search for other uses of
 ADC, to see a usage example

 MS

 David Conde wrote:
 Hi,

  

 I have been Reading about ADC component and Oscilloscope application and

 I would like to know how I can change the sensor to get data from, I 
 mean, I am working with TelosB, and it has three sensor to get data from

 them. I would like to change the configuration on Oscilloscope to get 
 data from Humidity sensor instead of light sensor and to know how could 
 I include a new digital sensor as a PIR sensor using TelosB mote?

  

 Thanks in advance


 

 ___
 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] Problem with java net.tinyos.tools.Listen

2009-10-09 Thread David Conde
Thank you for your information, 

Finally I am using telos and it is working fine, although when I use this 
field a baud rate of 57600 is fixed, so for this reason I asked why I am not 
able to put ser...@com4:115200 which is faster than 57600, perhaps it is 
because of my mote in its loaded code has some parameter where is fixed the 
baud rate to 57600 instead of 115200, but I am not sure.

Regards

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: jueves, 08 de octubre de 2009 18:18
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

I think you may have already solved this issue...but...

As I said, the final telos or whatever field in the MOTECOM
specifies both the serial hardware parameters as well as a message
header format. They who developed this system chose to use only
a few options here, and I believe it defaults to avrmote which
is the mica2 variety. The whole raison for the exercise is that
there are a set of classes that get instantiated when a message
is received in order to check a couple lengths and offsets, e.g.:
 net.tinyos.message.avrmote.TOSMsg
In T1 there are only two others: micaz and telos. These classes
are also the basis for MIG generated message classes, but these
are re-instantiated at the user level.

My basic belief is that this is all due to CS grad students gone wild.
I don't know if the T2 situation is improved in any way since I've
stalled out on finding any reason to upgrade.

MS


David Conde wrote:
 Hi, but the problem is that I am using Telosb not Telos, so I do not
 understand why I have to put telos and not telosb in the MOTECOM
 variable.
 
 I tried with telos in MOTECOM and it works fine, I have tried with an
 example in which two telosb send information to each other and there is
 no problem with the baud rate, so I do not know why there is a problem
 by using 115200 as a baud rate in Serial PC communication.
 
 Thanks
 
 
 
 -Mensaje original- De: Michael Schippling
 [mailto:sc...@santafe.edu] Enviado el: miércoles, 07 de octubre de 2009
 19:10 Para: David Conde CC: tinyos-help@millennium.berkeley.edu Asunto:
 Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Make sure you have a MOTECOM variable set like this: export
 MOTECOM=ser...@com7:telos using your COM port number.
 
 The telos field will cause the Java comm code to use the correct baud
 rate and will also select a message header format that matches the AM.h
 TOS_Msg struct used for the platform. If the baud and format are
 incorrect you will get all the bad packet type messages that you saw.
 
 If you have no MOTECOM or -comm setting the Java programs default to
 tryng to communicate with the SerialForwarder process on enet port 9001.
 Note that when starting SerialForwarder, you need to set
 motecom=ser...@whatever because it needs to get to the actual hardware.
 
 Is it all working now? MS
 
 David Conde wrote:
 I have tried with different baud rates in MOTECOM and this problem
 (bad packet) dissapears, so am I missing anything? I mean, I have
 typed: Export motecom=ser...@com4:115200 (which is the baud rate said
 in Packet sources and TestSerial chapter in Tinyos Tutorial for
 telosb), but with this baud rate I get bad packet, for example, if I
 type: Export motecom=ser...@com4:telos the problem is solved in Listen
 tool, and I start to get good packet which are shown in screen.
 
 What baud rate do I have to write in motecom var for TElosB?
 
 
 Do I have to change any parameter in oscilloscope component or other
 in order to solve this problem?
 
 Thanks in advance
 
 -Mensaje original- De:
 tinyos-help-boun...@millennium.berkeley.edu
 [mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de
 David Conde Enviado el: miércoles, 07 de octubre de 2009 15:03 Para:
 tinyos-help@millennium.berkeley.edu Asunto: Re: [Tinyos-help] Problem
 with java net.tinyos.tools.Listen
 
 Hi again,
 
 I followed the link shown below and I found the problem:
 
 I was missing out win32com.dll in Windows/system32/ folder.
 
 
 Now that I solved the problem I am trying to launch oscilloscope
 application in Telosb mote and java net.tinyos.oscope.oscilloscope so
 that I can see the sensing values from my mote in PC application.
 
 The problem now is that I am getting bad packet error when I launch
 java net.tinyos.oscope.oscilloscope.
 
 As shown below:
 
 ser...@com4:115200: resynchronising ser...@com4:115200: bad packet 
 serial@ COM4:115200: packet too long serial@ COM4:115200:
 resynchronising ser...@com4:115200: bad packet ser...@com4:115200: bad
 packet ser...@com4:115200: bad packet
 
 The same is gotten when I launch $java Listen and $java Forwarder
 
 
 Any idea?
 
 I do not have TestSerial as it is said in the documentation so I do
 not know any othe way to try if serial communications is working
 right.
 
 Thanks in advance
 
 -Mensaje original- De

[Tinyos-help] Configuring TelosB to work in the lowest power running mode

2009-10-09 Thread David Conde
Hi,

 

I am using a system with two Telosb running with Tinyos1.x, one of them
connected to my PC with TOSBase application and the other one with
Oscilloscope application where sensing information is sent to TOSBase
through RF. In the Java application is it possible to observe 5 different
measures, and I would like to know how I could change the code in
Oscilloscope mote so that I can achieve my mote spends the máximum time as
possible working without change the bateries, so my question is, is this
just a matter of changing the time when my mote get ADC information and send
this information or there is component which management this low power
running mode in order to make easier this task?

 

Thank you in advance

 

 

 

-- 

David Conde Baena


CITIC
Centro Andaluz de Innovación y Tecnologías de la Información y las
Comunicaciones
Edificio CITIC, C/ Marie Curie, 6
Parque Tecnológico de Andalucía 
29590 - Campanillas (MÁLAGA)

Tfno.: +34 952028610
Fax: +34 951231029
 mailto:usua...@citic.es Email: dco...@citic.es
 http://www.citic.es/ Web: www.citic.es 

 

 

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

Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

2009-10-08 Thread David Conde
Hi, but the problem is that I am using Telosb not Telos, so I do not understand 
why I have to put telos and not telosb in the MOTECOM variable.

I tried with telos in MOTECOM and it works fine, I have tried with an example 
in which two telosb send information to each other and there is no problem with 
the baud rate, so I do not know why there is a problem by using 115200 as a 
baud rate in Serial PC communication.

Thanks



-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: miércoles, 07 de octubre de 2009 19:10
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Make sure you have a MOTECOM variable set like this:
 export MOTECOM=ser...@com7:telos
using your COM port number.

The telos field will cause the Java comm code to use the
correct baud rate and will also select a message header format
that matches the AM.h TOS_Msg struct used for the platform.
If the baud and format are incorrect you will get all the
bad packet type messages that you saw.

If you have no MOTECOM or -comm setting the Java programs
default to tryng to communicate with the SerialForwarder
process on enet port 9001. Note that when starting
SerialForwarder, you need to set motecom=ser...@whatever
because it needs to get to the actual hardware.

Is it all working now?
MS

David Conde wrote:
 I have tried with different baud rates in MOTECOM and this problem (bad 
 packet) dissapears, so am I missing anything? I mean, I have typed:
 Export motecom=ser...@com4:115200 (which is the baud rate said in Packet 
 sources and TestSerial chapter in Tinyos Tutorial for telosb), but with this 
 baud rate I get bad packet, for example, if I type: Export 
 motecom=ser...@com4:telos the problem is solved in Listen tool, and I start 
 to get good packet which are shown in screen.
 
 What baud rate do I have to write in motecom var for TElosB?
 
 
 Do I have to change any parameter in oscilloscope component or other in order 
 to solve this problem?
 
 Thanks in advance
 
 -Mensaje original-
 De: tinyos-help-boun...@millennium.berkeley.edu 
 [mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
 Enviado el: miércoles, 07 de octubre de 2009 15:03
 Para: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Hi again,
 
 I followed the link shown below and I found the problem:
 
 I was missing out win32com.dll in Windows/system32/ folder.
 
 
 Now that I solved the problem I am trying to launch oscilloscope application 
 in Telosb mote and java net.tinyos.oscope.oscilloscope so that I can see the 
 sensing values from my mote in PC application.
 
 The problem now is that I am getting bad packet error when I launch java 
 net.tinyos.oscope.oscilloscope.
 
 As shown below:
 
 ser...@com4:115200: resynchronising
 ser...@com4:115200: bad packet
 serial@ COM4:115200: packet too long
 serial@ COM4:115200: resynchronising
 ser...@com4:115200: bad packet
 ser...@com4:115200: bad packet
 ser...@com4:115200: bad packet
 
 The same is gotten when I launch $java Listen and $java Forwarder
 
 
 Any idea?
 
 I do not have TestSerial as it is said in the documentation so I do not know 
 any othe way to try if serial communications is working right.
 
 Thanks in advance
 
 -Mensaje original-
 De: tinyos-help-boun...@millennium.berkeley.edu 
 [mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
 Enviado el: miércoles, 07 de octubre de 2009 9:31
 Para: 'Michael Schippling'
 CC: tinyos-help@millennium.berkeley.edu; 'Rubén Gmail'
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Hi Michael,
 
 Firstly, thank you very much for your replies.
 
 Listen was not succesful at all, I just solved the JNI Error by including 
 getenv.dll in System32 directory, but I am getting the next error when I type 
 java net.tinyos.tools.Listen:
 
 java.net.ConnectEXception: Connection refused: Connect 
 
 It is a problem with the connection, I think it is not able to take the right 
 port, because if I try to launch SerialForwarder I get a similar Exception:
 
 Java.io.IOException: Invalid port. No comm ports found!
 
 Any idea?
 
 -Mensaje original-
 De: Michael Schippling [mailto:sc...@santafe.edu] 
 Enviado el: martes, 06 de octubre de 2009 19:44
 Para: David Conde
 CC: 'Rubén Gmail'; tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Were you finally successful with Listen using the MOTECOM variable?
 If so, SF should use the same port syntax.
 MS
 
 
 David Conde wrote:
 Hi again,

 I solved this by placing getenv.dll in Windows/system32 folder.

 But now I am getting the next Exception:

 Error on s...@localhost:9001: java.net.ConnectEXception: Connection refused: 
 Connect.

 I have tried either with SerialForwarder and I am getting something similar

Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

2009-10-08 Thread David Conde
Hi Rubén,

Thank you for your answer.

I have looking for the solution in the different java classes, Listen, 
Platform, BuildResource (all of them from TinyOS1.x) but I have not be able to 
get the PlatformSpec.java source file, where it suppose to fix the different 
names for differents platforms, but in Platform.class , which is used by Listen 
through other classes,nothing appear related to telosb, so I can asume that 
in the source code I should to include the part associated to telosb in order 
to get a good baud rate when I introduce this String in MOTECOM variable.

I think I am getting so many problems by using Tinyos1.x instead of using 
TinyOS2.x, do you know if there is a easy way to update to Tinyos2.x?I am using 
WindowsXP and Telosb motes

I am new working with motes, and I directly installed what Crossbow gave me, 
which was a easy .exe file in which Tinyos 1.x with Cygwin was installed,and 
nothing about Tinyos2.x appeared.

Thank you very much for your help


-Mensaje original-
De: Rubén Ríos del Pozo [mailto:ru...@lcc.uma.es] 
Enviado el: jueves, 08 de octubre de 2009 11:35
Para: David Conde
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

I really don't know why you need to set the variable to telos because 
  in my case, I use telosb and I can set it to either telos or 
telosb as well as to 115200

$ java net.tinyos.tools.Listen -comm ser...@com5:[telos|telosb|115200]

In fact, I have been looking for a solution to your problem and I have 
found in the java code provided in tinyos.jar and finally I have 
realized that in the class BaudRate (net.tinyos.packet) both telos and 
telosb (and tinynode, tmote, intelmote2, shimmer) are defined to use a 
baudrate of 115200.

Maybe you could try to see the code of the Listen implementation you are 
using in case there is some error. I am not sure if this code comes by 
default with the tinyos installation because I have downloaded stuff 
from the cvs, but you can try to have a look at 
C:\cygwin\opt\tinyos-2.x\support\sdk\java\.

I hope this helps!


David Conde escribió:
 Hi, but the problem is that I am using Telosb not Telos, so I do not 
 understand why I have to put telos and not telosb in the MOTECOM variable.
 
 I tried with telos in MOTECOM and it works fine, I have tried with an 
 example in which two telosb send information to each other and there is no 
 problem with the baud rate, so I do not know why there is a problem by using 
 115200 as a baud rate in Serial PC communication.
 
 Thanks
 
 
 
 -Mensaje original-
 De: Michael Schippling [mailto:sc...@santafe.edu] 
 Enviado el: miércoles, 07 de octubre de 2009 19:10
 Para: David Conde
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Make sure you have a MOTECOM variable set like this:
  export MOTECOM=ser...@com7:telos
 using your COM port number.
 
 The telos field will cause the Java comm code to use the
 correct baud rate and will also select a message header format
 that matches the AM.h TOS_Msg struct used for the platform.
 If the baud and format are incorrect you will get all the
 bad packet type messages that you saw.
 
 If you have no MOTECOM or -comm setting the Java programs
 default to tryng to communicate with the SerialForwarder
 process on enet port 9001. Note that when starting
 SerialForwarder, you need to set motecom=ser...@whatever
 because it needs to get to the actual hardware.
 
 Is it all working now?
 MS
 
 David Conde wrote:
 I have tried with different baud rates in MOTECOM and this problem (bad 
 packet) dissapears, so am I missing anything? I mean, I have typed:
 Export motecom=ser...@com4:115200 (which is the baud rate said in Packet 
 sources and TestSerial chapter in Tinyos Tutorial for telosb), but with this 
 baud rate I get bad packet, for example, if I type: Export 
 motecom=ser...@com4:telos the problem is solved in Listen tool, and I start 
 to get good packet which are shown in screen.

 What baud rate do I have to write in motecom var for TElosB?


 Do I have to change any parameter in oscilloscope component or other in 
 order to solve this problem?

 Thanks in advance

 -Mensaje original-
 De: tinyos-help-boun...@millennium.berkeley.edu 
 [mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
 Enviado el: miércoles, 07 de octubre de 2009 15:03
 Para: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

 Hi again,

 I followed the link shown below and I found the problem:

 I was missing out win32com.dll in Windows/system32/ folder.


 Now that I solved the problem I am trying to launch oscilloscope application 
 in Telosb mote and java net.tinyos.oscope.oscilloscope so that I can see the 
 sensing values from my mote in PC application.

 The problem now is that I am getting bad packet error when I launch java 
 net.tinyos.oscope.oscilloscope.

 As shown

Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

2009-10-07 Thread David Conde
Hi Michael,

Firstly, thank you very much for your replies.

Listen was not succesful at all, I just solved the JNI Error by including 
getenv.dll in System32 directory, but I am getting the next error when I type 
java net.tinyos.tools.Listen:

java.net.ConnectEXception: Connection refused: Connect 

It is a problem with the connection, I think it is not able to take the right 
port, because if I try to launch SerialForwarder I get a similar Exception:

Java.io.IOException: Invalid port. No comm ports found!

Any idea?

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: martes, 06 de octubre de 2009 19:44
Para: David Conde
CC: 'Rubén Gmail'; tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Were you finally successful with Listen using the MOTECOM variable?
If so, SF should use the same port syntax.
MS


David Conde wrote:
 Hi again,
 
 I solved this by placing getenv.dll in Windows/system32 folder.
 
 But now I am getting the next Exception:
 
 Error on s...@localhost:9001: java.net.ConnectEXception: Connection refused: 
 Connect.
 
 I have tried either with SerialForwarder and I am getting something similar:
 
 Java.io.IOException: Invalid port. No comm ports found!
 
 Any idea?
 
 I am typing java net.tinyos.sf.SerialForwarder -comm ser...@com4:telosb
 
 Thanks in advance
 
 
 
 -Mensaje original-
 De: tinyos-help-boun...@millennium.berkeley.edu 
 [mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
 Enviado el: martes, 06 de octubre de 2009 12:15
 Para: 'Rubén Gmail'
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Hi,
 
 Thank you for your replies.
 
 I have tried typing export motecom=ser...@com4:telosb after doing motelist 
 in Cygwin command line, where I got COM4 for my telosB mote.
 
 I have follow the next link:
 https://www.millennium.berkeley.edu/pipermail/tinyos-help/2007-January/022165.html
 
 So, I installed comm.jar in my ClassPath and put it in JRE/LIB/Ext 
 directories, either I placed win32.dll in Windows/system32 folder:
 
 but I am now getting the next Exception when I tried to do: java 
 net.tinyos.tools.Listen:
 
 getenv JNI library not found. Env.getenv will not work (please consult 
 installation direction in tinyos-1.x/tolos/java/net/tinyos/útil/Env.INSTALL)
 Error on s...@localhost:9001: java.net.ConnectException: Connection refused: 
 connect
 
 My environment is the next one:
 
 I have a telosb mote in USB port which is COM4 according to motelist command, 
 this mota has installed OSCILLOSCOPE application and I tried to see the 
 information received by serial port with java net.tinyos.tools.Listen 
 application ,
 
 What am I missing?
 
 Thanks in advance
 
 
 
 -Mensaje original-
 De: Rubén Gmail [mailto:ruben@gmail.com] 
 Enviado el: lunes, 05 de octubre de 2009 22:05
 Para: David Conde
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Have you tried to use the motelist command to determine where is your  
 device connected?
 
 El 05/10/2009, a las 18:54, David Conde dco...@citic.es escribió:
 
 Hi , I am trying to launch the Lesson 6 example in TinyOS 1.X  
 tutorial but when I tried to launch

 java net.tinyos.tools.Listen –comm ser...@com1:telosb


  I do not get any data in the screen, I just get:



 Usage: java net.tinyos.tools.Listen.

 Firstly I installed the oscilloscope application in my Mote, then I  
 included the Listen path in my ClassPath, and then when I tried to  
 type: java net.tinyos.tools.Listen –comm ser...@com1:telosb  I just  
 got what I wrote above.



 I have tried changing the COM1 to COM2, and COM3 because I am  
 working in WindowsXP, and I have also tried changing telosb to telos  
 but I do not know what it is the problem.



 I am not working in Cygwin, is this necessary? I am using the MS-DOS  
 command line



 Any tips?



 Thanks in advance



 David

 ___
 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


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

Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

2009-10-07 Thread David Conde
Hi again,

I followed the link shown below and I found the problem:

I was missing out win32com.dll in Windows/system32/ folder.


Now that I solved the problem I am trying to launch oscilloscope application in 
Telosb mote and java net.tinyos.oscope.oscilloscope so that I can see the 
sensing values from my mote in PC application.

The problem now is that I am getting bad packet error when I launch java 
net.tinyos.oscope.oscilloscope.

As shown below:

ser...@com4:115200: resynchronising
ser...@com4:115200: bad packet
serial@ COM4:115200: packet too long
serial@ COM4:115200: resynchronising
ser...@com4:115200: bad packet
ser...@com4:115200: bad packet
ser...@com4:115200: bad packet

The same is gotten when I launch $java Listen and $java Forwarder


Any idea?

I do not have TestSerial as it is said in the documentation so I do not know 
any othe way to try if serial communications is working right.

Thanks in advance

-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
Enviado el: miércoles, 07 de octubre de 2009 9:31
Para: 'Michael Schippling'
CC: tinyos-help@millennium.berkeley.edu; 'Rubén Gmail'
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Hi Michael,

Firstly, thank you very much for your replies.

Listen was not succesful at all, I just solved the JNI Error by including 
getenv.dll in System32 directory, but I am getting the next error when I type 
java net.tinyos.tools.Listen:

java.net.ConnectEXception: Connection refused: Connect 

It is a problem with the connection, I think it is not able to take the right 
port, because if I try to launch SerialForwarder I get a similar Exception:

Java.io.IOException: Invalid port. No comm ports found!

Any idea?

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: martes, 06 de octubre de 2009 19:44
Para: David Conde
CC: 'Rubén Gmail'; tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Were you finally successful with Listen using the MOTECOM variable?
If so, SF should use the same port syntax.
MS


David Conde wrote:
 Hi again,
 
 I solved this by placing getenv.dll in Windows/system32 folder.
 
 But now I am getting the next Exception:
 
 Error on s...@localhost:9001: java.net.ConnectEXception: Connection refused: 
 Connect.
 
 I have tried either with SerialForwarder and I am getting something similar:
 
 Java.io.IOException: Invalid port. No comm ports found!
 
 Any idea?
 
 I am typing java net.tinyos.sf.SerialForwarder -comm ser...@com4:telosb
 
 Thanks in advance
 
 
 
 -Mensaje original-
 De: tinyos-help-boun...@millennium.berkeley.edu 
 [mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
 Enviado el: martes, 06 de octubre de 2009 12:15
 Para: 'Rubén Gmail'
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Hi,
 
 Thank you for your replies.
 
 I have tried typing export motecom=ser...@com4:telosb after doing motelist 
 in Cygwin command line, where I got COM4 for my telosB mote.
 
 I have follow the next link:
 https://www.millennium.berkeley.edu/pipermail/tinyos-help/2007-January/022165.html
 
 So, I installed comm.jar in my ClassPath and put it in JRE/LIB/Ext 
 directories, either I placed win32.dll in Windows/system32 folder:
 
 but I am now getting the next Exception when I tried to do: java 
 net.tinyos.tools.Listen:
 
 getenv JNI library not found. Env.getenv will not work (please consult 
 installation direction in tinyos-1.x/tolos/java/net/tinyos/útil/Env.INSTALL)
 Error on s...@localhost:9001: java.net.ConnectException: Connection refused: 
 connect
 
 My environment is the next one:
 
 I have a telosb mote in USB port which is COM4 according to motelist command, 
 this mota has installed OSCILLOSCOPE application and I tried to see the 
 information received by serial port with java net.tinyos.tools.Listen 
 application ,
 
 What am I missing?
 
 Thanks in advance
 
 
 
 -Mensaje original-
 De: Rubén Gmail [mailto:ruben@gmail.com] 
 Enviado el: lunes, 05 de octubre de 2009 22:05
 Para: David Conde
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Have you tried to use the motelist command to determine where is your  
 device connected?
 
 El 05/10/2009, a las 18:54, David Conde dco...@citic.es escribió:
 
 Hi , I am trying to launch the Lesson 6 example in TinyOS 1.X  
 tutorial but when I tried to launch

 java net.tinyos.tools.Listen –comm ser...@com1:telosb


  I do not get any data in the screen, I just get:



 Usage: java net.tinyos.tools.Listen.

 Firstly I installed the oscilloscope application in my Mote, then I  
 included the Listen path in my ClassPath, and then when I tried to  
 type: java net.tinyos.tools.Listen –comm ser...@com1:telosb  I

Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

2009-10-07 Thread David Conde
I have tried with different baud rates in MOTECOM and this problem (bad 
packet) dissapears, so am I missing anything? I mean, I have typed:
Export motecom=ser...@com4:115200 (which is the baud rate said in Packet 
sources and TestSerial chapter in Tinyos Tutorial for telosb), but with this 
baud rate I get bad packet, for example, if I type: Export 
motecom=ser...@com4:telos the problem is solved in Listen tool, and I start to 
get good packet which are shown in screen.

What baud rate do I have to write in motecom var for TElosB?


Do I have to change any parameter in oscilloscope component or other in order 
to solve this problem?

Thanks in advance

-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
Enviado el: miércoles, 07 de octubre de 2009 15:03
Para: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Hi again,

I followed the link shown below and I found the problem:

I was missing out win32com.dll in Windows/system32/ folder.


Now that I solved the problem I am trying to launch oscilloscope application in 
Telosb mote and java net.tinyos.oscope.oscilloscope so that I can see the 
sensing values from my mote in PC application.

The problem now is that I am getting bad packet error when I launch java 
net.tinyos.oscope.oscilloscope.

As shown below:

ser...@com4:115200: resynchronising
ser...@com4:115200: bad packet
serial@ COM4:115200: packet too long
serial@ COM4:115200: resynchronising
ser...@com4:115200: bad packet
ser...@com4:115200: bad packet
ser...@com4:115200: bad packet

The same is gotten when I launch $java Listen and $java Forwarder


Any idea?

I do not have TestSerial as it is said in the documentation so I do not know 
any othe way to try if serial communications is working right.

Thanks in advance

-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
Enviado el: miércoles, 07 de octubre de 2009 9:31
Para: 'Michael Schippling'
CC: tinyos-help@millennium.berkeley.edu; 'Rubén Gmail'
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Hi Michael,

Firstly, thank you very much for your replies.

Listen was not succesful at all, I just solved the JNI Error by including 
getenv.dll in System32 directory, but I am getting the next error when I type 
java net.tinyos.tools.Listen:

java.net.ConnectEXception: Connection refused: Connect 

It is a problem with the connection, I think it is not able to take the right 
port, because if I try to launch SerialForwarder I get a similar Exception:

Java.io.IOException: Invalid port. No comm ports found!

Any idea?

-Mensaje original-
De: Michael Schippling [mailto:sc...@santafe.edu] 
Enviado el: martes, 06 de octubre de 2009 19:44
Para: David Conde
CC: 'Rubén Gmail'; tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Were you finally successful with Listen using the MOTECOM variable?
If so, SF should use the same port syntax.
MS


David Conde wrote:
 Hi again,
 
 I solved this by placing getenv.dll in Windows/system32 folder.
 
 But now I am getting the next Exception:
 
 Error on s...@localhost:9001: java.net.ConnectEXception: Connection refused: 
 Connect.
 
 I have tried either with SerialForwarder and I am getting something similar:
 
 Java.io.IOException: Invalid port. No comm ports found!
 
 Any idea?
 
 I am typing java net.tinyos.sf.SerialForwarder -comm ser...@com4:telosb
 
 Thanks in advance
 
 
 
 -Mensaje original-
 De: tinyos-help-boun...@millennium.berkeley.edu 
 [mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
 Enviado el: martes, 06 de octubre de 2009 12:15
 Para: 'Rubén Gmail'
 CC: tinyos-help@millennium.berkeley.edu
 Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
 
 Hi,
 
 Thank you for your replies.
 
 I have tried typing export motecom=ser...@com4:telosb after doing motelist 
 in Cygwin command line, where I got COM4 for my telosB mote.
 
 I have follow the next link:
 https://www.millennium.berkeley.edu/pipermail/tinyos-help/2007-January/022165.html
 
 So, I installed comm.jar in my ClassPath and put it in JRE/LIB/Ext 
 directories, either I placed win32.dll in Windows/system32 folder:
 
 but I am now getting the next Exception when I tried to do: java 
 net.tinyos.tools.Listen:
 
 getenv JNI library not found. Env.getenv will not work (please consult 
 installation direction in tinyos-1.x/tolos/java/net/tinyos/útil/Env.INSTALL)
 Error on s...@localhost:9001: java.net.ConnectException: Connection refused: 
 connect
 
 My environment is the next one:
 
 I have a telosb mote in USB port which is COM4 according to motelist command, 
 this mota has installed OSCILLOSCOPE application and I tried to see the 
 information received by serial port

Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

2009-10-06 Thread David Conde
Hi,

Thank you for your replies.

I have tried typing export motecom=ser...@com4:telosb after doing motelist in 
Cygwin command line, where I got COM4 for my telosB mote.

I have follow the next link:
https://www.millennium.berkeley.edu/pipermail/tinyos-help/2007-January/022165.html

So, I installed comm.jar in my ClassPath and put it in JRE/LIB/Ext directories, 
either I placed win32.dll in Windows/system32 folder:

but I am now getting the next Exception when I tried to do: java 
net.tinyos.tools.Listen:

getenv JNI library not found. Env.getenv will not work (please consult 
installation direction in tinyos-1.x/tolos/java/net/tinyos/útil/Env.INSTALL)
Error on s...@localhost:9001: java.net.ConnectException: Connection refused: 
connect

My environment is the next one:

I have a telosb mote in USB port which is COM4 according to motelist command, 
this mota has installed OSCILLOSCOPE application and I tried to see the 
information received by serial port with java net.tinyos.tools.Listen 
application ,

What am I missing?

Thanks in advance



-Mensaje original-
De: Rubén Gmail [mailto:ruben@gmail.com] 
Enviado el: lunes, 05 de octubre de 2009 22:05
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Have you tried to use the motelist command to determine where is your  
device connected?

El 05/10/2009, a las 18:54, David Conde dco...@citic.es escribió:

 Hi , I am trying to launch the Lesson 6 example in TinyOS 1.X  
 tutorial but when I tried to launch

 java net.tinyos.tools.Listen –comm ser...@com1:telosb



  I do not get any data in the screen, I just get:



 Usage: java net.tinyos.tools.Listen.


 Firstly I installed the oscilloscope application in my Mote, then I  
 included the Listen path in my ClassPath, and then when I tried to  
 type: java net.tinyos.tools.Listen –comm ser...@com1:telosb  I just  
 got what I wrote above.



 I have tried changing the COM1 to COM2, and COM3 because I am  
 working in WindowsXP, and I have also tried changing telosb to telos  
 but I do not know what it is the problem.



 I am not working in Cygwin, is this necessary? I am using the MS-DOS  
 command line



 Any tips?



 Thanks in advance



 David

 ___
 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] How could I configure what sensor to get data from in my Telosb ?

2009-10-06 Thread David Conde
Hi,

 

I have been Reading about ADC component and Oscilloscope application and I
would like to know how I can change the sensor to get data from, I mean, I
am working with TelosB, and it has three sensor to get data from them. I
would like to change the configuration on Oscilloscope to get data from
Humidity sensor instead of light sensor and to know how could I include a
new digital sensor as a PIR sensor using TelosB mote?

 

Thanks in advance

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

Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

2009-10-06 Thread David Conde
Hi again,

I solved this by placing getenv.dll in Windows/system32 folder.

But now I am getting the next Exception:

Error on s...@localhost:9001: java.net.ConnectEXception: Connection refused: 
Connect.

I have tried either with SerialForwarder and I am getting something similar:

Java.io.IOException: Invalid port. No comm ports found!

Any idea?

I am typing java net.tinyos.sf.SerialForwarder -comm ser...@com4:telosb

Thanks in advance



-Mensaje original-
De: tinyos-help-boun...@millennium.berkeley.edu 
[mailto:tinyos-help-boun...@millennium.berkeley.edu] En nombre de David Conde
Enviado el: martes, 06 de octubre de 2009 12:15
Para: 'Rubén Gmail'
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Hi,

Thank you for your replies.

I have tried typing export motecom=ser...@com4:telosb after doing motelist in 
Cygwin command line, where I got COM4 for my telosB mote.

I have follow the next link:
https://www.millennium.berkeley.edu/pipermail/tinyos-help/2007-January/022165.html

So, I installed comm.jar in my ClassPath and put it in JRE/LIB/Ext directories, 
either I placed win32.dll in Windows/system32 folder:

but I am now getting the next Exception when I tried to do: java 
net.tinyos.tools.Listen:

getenv JNI library not found. Env.getenv will not work (please consult 
installation direction in tinyos-1.x/tolos/java/net/tinyos/útil/Env.INSTALL)
Error on s...@localhost:9001: java.net.ConnectException: Connection refused: 
connect

My environment is the next one:

I have a telosb mote in USB port which is COM4 according to motelist command, 
this mota has installed OSCILLOSCOPE application and I tried to see the 
information received by serial port with java net.tinyos.tools.Listen 
application ,

What am I missing?

Thanks in advance



-Mensaje original-
De: Rubén Gmail [mailto:ruben@gmail.com] 
Enviado el: lunes, 05 de octubre de 2009 22:05
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen

Have you tried to use the motelist command to determine where is your  
device connected?

El 05/10/2009, a las 18:54, David Conde dco...@citic.es escribió:

 Hi , I am trying to launch the Lesson 6 example in TinyOS 1.X  
 tutorial but when I tried to launch

 java net.tinyos.tools.Listen –comm ser...@com1:telosb



  I do not get any data in the screen, I just get:



 Usage: java net.tinyos.tools.Listen.


 Firstly I installed the oscilloscope application in my Mote, then I  
 included the Listen path in my ClassPath, and then when I tried to  
 type: java net.tinyos.tools.Listen –comm ser...@com1:telosb  I just  
 got what I wrote above.



 I have tried changing the COM1 to COM2, and COM3 because I am  
 working in WindowsXP, and I have also tried changing telosb to telos  
 but I do not know what it is the problem.



 I am not working in Cygwin, is this necessary? I am using the MS-DOS  
 command line



 Any tips?



 Thanks in advance



 David

 ___
 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


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

[Tinyos-help] BaseStation Application for TinyOS 1.X

2009-10-05 Thread David Conde
Hi,

 

I am starting with TelosB motes and TinyOS 1.X, so I am reading the Sensing
chapter in order to understand how I could sense data from default sensor in
TelosB motes and send this information to another mote connected to the PC.
I would like to know if there is a BaseStation application for being used in
TinyOS 1.x or how I can get data from Motes which have installed
Oscilloscope application and send the information to the Mote connected to
PC and use this information in my custom Java class. 

 

Thank you in advance

 

David

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

Re: [Tinyos-help] BaseStation Application for TinyOS 1.X

2009-10-05 Thread David Conde
Hi,


Thank you for your answer, do you know some place to get examples
documentation or information about TinyOS 1.X, since all what I found are
examples for TinyOS 2.0 and when I try to follow an example it is difficult
for me to adapt TinyoS 2.0 exampled with the applications provided by tinyos
1.x.

 

Thanks again

 

De: Rubenalia [mailto:rderu...@gmail.com] 
Enviado el: lunes, 05 de octubre de 2009 14:31
Para: David Conde
CC: tinyos-help@millennium.berkeley.edu
Asunto: Re: [Tinyos-help] BaseStation Application for TinyOS 1.X

 

Hi David, 

 

you can use TOSBase, which is distributid with any TinyOS 1.x. distribution.

 

Good luck!!

2009/10/5 David Conde dco...@citic.es

Hi,

 

I am starting with TelosB motes and TinyOS 1.X, so I am reading the Sensing
chapter in order to understand how I could sense data from default sensor in
TelosB motes and send this information to another mote connected to the PC.
I would like to know if there is a BaseStation application for being used in
TinyOS 1.x or how I can get data from Motes which have installed
Oscilloscope application and send the information to the Mote connected to
PC and use this information in my custom Java class. 

 

Thank you in advance

 

David


___
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