[Tinyos-help] UART sending series of commands to PC

2012-02-13 Thread #BHARTI GOEL#
Hi,

I am trying to send a series of commands to the PC hyperterminal using UART 
interface. Now when I send a single command it works fine. But when I send a 
series of commands it stops working. I have tried to create delays after each 
command but still it does not work. Can anyone tell me what I can possibly do?

Here is my code :

module GSMmodemC @safe()
{
  uses interface Boot;
  uses interface Init as UartInit;
  uses interface StdControl as UartControl;
  uses interface UartStream;
  uses interface Leds;
  uses interface TimerTMilli;


}
implementation
{

// COMMANDS TO BE SENT
char* uartsendBuf1 = AT\n;
char* uartsendBuf2 = AT+CMGF=1\n;
char* uartsendBuf3 = AT+CMGS=;
char* uartsendBuf4 = +6590140252;
char* output = Hello;
char* input;
uint16_t inputlen;
uint8_t recevedByte;

  event void Boot.booted() {

call UartInit.init();

call Timer.startPeriodic(3000);
call UartControl.start();

  }


static void delay(uint32_t cycles)
  {
while (--cycles  0)
{
  //nop();
}
  }

  event void Timer.fired() {


call UartControl.start();
call UartStream.send(uartsendBuf1, 3);
/*call Leds.led1Toggle();  // This part does 
not work
delay(5000);
call UartControl.start();
call UartStream.send(uartsendBuf2, 10);
call Leds.led1Toggle();
delay(5000);
call UartControl.start();
call UartStream.send(uartsendBuf3, 8);
call Leds.led1Toggle();
delay(5000);
call UartControl.start();
call UartStream.send(uartsendBuf4, 11);
call Leds.led1Toggle();
delay(5000); */
  }



  async event void UartStream.sendDone( uint8_t* buf, uint16_t len, error_t 
error )
  {

call Leds.led0Toggle();
call UartStream.enableReceiveInterrupt();

  }

  async event void UartStream.receivedByte( uint8_t byte )
  {

  if( (char* )byte == a)
  {
  call Leds.led1Toggle();
  }
  call Leds.led2Toggle();
  recevedByte = byte;
  call UartControl.stop();

  }

  async event void UartStream.receiveDone( uint8_t* buf, uint16_t len, error_t 
error )
  {

  }

}

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

Re: [Tinyos-help] UART sending series of commands to PC

2012-02-13 Thread Eric Decker
It is very strange to be sending modem commands to a pc but okay if you
must.

You are using UartStream which is split phase.  You need to be catching the
completion event (signal) from UartStream.sendDone.  When the sendDone
comes in you can then start up the next string you want to send.

The way you have UartStream.sendDone right now doesn't make a whole lot of
sense.


If you don't know how this works you need to read the basic TinyOS
documents and tutorials.  Start with Phil's book.

On Mon, Feb 13, 2012 at 12:13 AM, #BHARTI GOEL# bhar0...@e.ntu.edu.sgwrote:

  Hi,

 I am trying to send a series of commands to the PC hyperterminal using
 UART interface. Now when I send a single command it works fine. But when I
 send a series of commands it stops working. I have tried to create delays
 after each command but still it does not work. Can anyone tell me what I
 can possibly do?

 Here is my code :

 module GSMmodemC @safe()
 {
   uses interface Boot;
   uses interface Init as UartInit;
   uses interface StdControl as UartControl;
   uses interface UartStream;
   uses interface Leds;
   uses interface TimerTMilli;


 }
 implementation
 {

 // COMMANDS TO BE SENT
 char* uartsendBuf1 = AT\n;
 char* uartsendBuf2 = AT+CMGF=1\n;
 char* uartsendBuf3 = AT+CMGS=;
 char* uartsendBuf4 = +6590140252;
 char* output = Hello;
 char* input;
 uint16_t inputlen;
 uint8_t recevedByte;

   event void Boot.booted() {

 call UartInit.init();

 call Timer.startPeriodic(3000);
 call UartControl.start();

   }


 static void delay(uint32_t cycles)
   {
 while (--cycles  0)
 {
   //nop();
 }
   }

   event void Timer.fired() {


 call UartControl.start();
 call UartStream.send(uartsendBuf1, 3);
 /*call Leds.led1Toggle();  // This part
 does not work
 delay(5000);
 call UartControl.start();
 call UartStream.send(uartsendBuf2, 10);
 call Leds.led1Toggle();
 delay(5000);
 call UartControl.start();
 call UartStream.send(uartsendBuf3, 8);
 call Leds.led1Toggle();
 delay(5000);
 call UartControl.start();
 call UartStream.send(uartsendBuf4, 11);
 call Leds.led1Toggle();
 delay(5000); */
   }



   async event void UartStream.sendDone( uint8_t* buf, uint16_t len,
 error_t error )
   {

 call Leds.led0Toggle();
 call UartStream.enableReceiveInterrupt();

   }

   async event void UartStream.receivedByte( uint8_t byte )
   {

   if( (char* )byte == a)
   {
   call Leds.led1Toggle();
   }
   call Leds.led2Toggle();
   recevedByte = byte;
   call UartControl.stop();

   }

   async event void UartStream.receiveDone( uint8_t* buf, uint16_t len,
 error_t error )
   {

   }

 }


 ___
 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] Running 1.x code on 2.x

2012-02-13 Thread TUSHAR MAHESHWARI
How to run code designed for tinyos-1.x on tinyos-2.x???
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Running 1.x code on 2.x

2012-02-13 Thread Eric Decker
TinyOS 2 is significantly different.   On purpose,  it fixes a number of
problems that were in T1.

So you will have to port the T1 code over to T2 if you want to use it.

There is no way to run T1 code on T2.   It isn't that kind of Operating
System.

I believe there are some docs that talk about porting between the two.

On Mon, Feb 13, 2012 at 2:42 AM, TUSHAR MAHESHWARI tushkiaw...@gmail.comwrote:

 How to run code designed for tinyos-1.x on tinyos-2.x???




-- 
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] Reading a Soil Sensor Decagon 5te from UART port

2012-02-13 Thread acamap
Hello,

I am trying to see the raw data from a soil sensor Decagon 5te. I see in
some manual  it work with 9600 baud rate. And dispatches his raw data in
this form:

i.e. : 56 432 6450DzG0D0A

Where only  is  data in :
56 for Raw dielectric output, 432 Electrical conductivity, 645 is Temperature


I wrote an app to start read the raw data, the app is compiling without
error, but I need some idea about what must I do to relationship the
Timer.fired() with the async event void UartStream.receivedByte in order
to get the data every 1 second (Timer.startPeriodic(1000)) or some piece
of code if is possible for you.

The UART communication between the telosb mote is using the UART0 and is
powered from the ADC0 pin.

I am attaching the app.


Thanks in advance.

Regards,

Alejandro.









soil-probe-uart.tar.gz
Description: GNU Zip compressed data
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Surge in Tinyos-2.x

2012-02-13 Thread TUSHAR MAHESHWARI
In tinyos-1.x, there is one application Surge, i need to know how i can
implement that application in TinyOS-2.1.1??
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] This thing changed my life

2012-02-13 Thread Asier Arruti
pHi there.brbrdebt collectors are so annoying this couldnt have worked 
out better I knew things could only get betterbra 
href=http://dominogama.com/lastnews/72StephenAnderson/;http://dominogama.com/lastnews/72StephenAnderson//a
 a weight is lifted off my shouldersbrthis is the real dealbrbrsee 
you!/p
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Need for help

2012-02-13 Thread Sergio Valcarcel
Hi,

no idea at all.

Probably you are interested in developing using the programming model of
Tiny OS.
On one hand that would be great in order to have available more signal
processing components (like audio compression). But on the other hand I
found that it takes quite a lot of time at the beginning and it is also
difficult to debug.

Otherwise, what I did for signal processing is to use standard C functions.
Check the mailing list if you are interested in know how to link them.

Cheers!
Sergio



On Mon, Feb 13, 2012 at 8:50 AM, Mashal al-shboul shboul8...@yahoo.comwrote:

 Hi All,

 I need a help in data compression in tinyOS and nesC. has anyone of you
 tried compression (especially for audio format) ?. do you know anything
 about using Intel Integrated Performance Primitives (IIP ) for compression ?

 any help is good for me, thanks in advance

 Regards,
 Mash'al

 ___
 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] Need for help

2012-02-13 Thread Mashal al-shboul
Hi Sergio,
Thank you for the reply.
Actually i am interested in compressing audio samples in C  since it is 
supported in tinyOS and nesC, so i would be grateful to you if you tell about 
such techniques to compress data locally in a sensor node before transmission. 
Have you heard about Intel IIP for that ?!




 From: Sergio Valcarcel serteck...@gmail.com
To: Mashal al-shboul shboul8...@yahoo.com 
Cc: tinyos-help@millennium.berkeley.edu tinyos-help@millennium.berkeley.edu 
Sent: Monday, February 13, 2012 7:43 AM
Subject: Re: [Tinyos-help] Need for help
 

Hi,

no idea at all.

Probably you are interested in developing using the programming model of Tiny 
OS. 
On one hand that would be great in order to have available more signal 
processing components (like audio compression). But on the other hand I found 
that it takes quite a lot of time at the beginning and it is also difficult to 
debug.

Otherwise, what I did for signal processing is to use standard C functions. 
Check the mailing list if you are interested in know how to link them.

Cheers!
Sergio




On Mon, Feb 13, 2012 at 8:50 AM, Mashal al-shboul shboul8...@yahoo.com wrote:

Hi All,


I need a help in data compression in tinyOS and nesC. has anyone of you tried 
compression (especially for audio format) ?. do you know anything about using 
Intel Integrated Performance Primitives (IIP ) for compression ?


any help is good for me, thanks in advance


Regards,
Mash'al
___
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] Need for help

2012-02-13 Thread Sergio Valcarcel
Nope sorry. I have no idea about audio compression beyond the basics, and I
have never implemented it.

Neither do I know anything about the IIP. However if IIP is an instruction
set, it will be processor dependent, so it may be the case that many
architectures and cores that are ported to Tiny OS do not offer it. Check
it out!

Cheers!
Sergio

On Mon, Feb 13, 2012 at 5:35 PM, Mashal al-shboul shboul8...@yahoo.comwrote:

 Hi Sergio,
 Thank you for the reply.
 Actually i am interested in compressing audio samples in C  since it is
 supported in tinyOS and nesC, so i would be grateful to you if you tell
 about such techniques to compress data locally in a sensor node before
 transmission. Have you heard about Intel IIP for that ?!

   --
 *From:* Sergio Valcarcel serteck...@gmail.com
 *To:* Mashal al-shboul shboul8...@yahoo.com
 *Cc:* tinyos-help@millennium.berkeley.edu 
 tinyos-help@millennium.berkeley.edu
 *Sent:* Monday, February 13, 2012 7:43 AM
 *Subject:* Re: [Tinyos-help] Need for help

 Hi,

 no idea at all.

 Probably you are interested in developing using the programming model of
 Tiny OS.
 On one hand that would be great in order to have available more signal
 processing components (like audio compression). But on the other hand I
 found that it takes quite a lot of time at the beginning and it is also
 difficult to debug.

 Otherwise, what I did for signal processing is to use standard C
 functions. Check the mailing list if you are interested in know how to link
 them.

 Cheers!
 Sergio



 On Mon, Feb 13, 2012 at 8:50 AM, Mashal al-shboul shboul8...@yahoo.comwrote:

 Hi All,

 I need a help in data compression in tinyOS and nesC. has anyone of you
 tried compression (especially for audio format) ?. do you know anything
 about using Intel Integrated Performance Primitives (IIP ) for compression ?

 any help is good for me, thanks in advance

 Regards,
 Mash'al

 ___
 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] Need for help

2012-02-13 Thread C.
You should search instead compression algorithms commonly used for audio
signals.  There are many algorithms and papers about it if you google'd
a little (I ported some lossy and lossless compression algorithms for
the MicaZ for my MsC thesis, there's plenty of bibliography).

Off the top of my head:
http://sites.google.com/site/cmsadler/sensys06_compress.pdf?attredirects=0

You have to do your homework :)

--Antonio.

On Mon, 2012-02-13 at 17:41 +0100, Sergio Valcarcel wrote:
 Nope sorry. I have no idea about audio compression beyond the basics,
 and I have never implemented it.
 
 
 Neither do I know anything about the IIP. However if IIP is an
 instruction set, it will be processor dependent, so it may be the case
 that many architectures and cores that are ported to Tiny OS do not
 offer it. Check it out!
 
 
 Cheers!
 Sergio
 
 On Mon, Feb 13, 2012 at 5:35 PM, Mashal al-shboul
 shboul8...@yahoo.com wrote:
 Hi Sergio,
 Thank you for the reply.
 Actually i am interested in compressing audio samples in C
 since it is supported in tinyOS and nesC, so i would be
 grateful to you if you tell about such techniques to compress
 data locally in a sensor node before transmission. Have you
 heard about Intel IIP for that ?!
 
 
 
 
 
 __
 From: Sergio Valcarcel serteck...@gmail.com
 To: Mashal al-shboul shboul8...@yahoo.com 
 Cc: tinyos-help@millennium.berkeley.edu
 tinyos-help@millennium.berkeley.edu 
 Sent: Monday, February 13, 2012 7:43 AM
 Subject: Re: [Tinyos-help] Need for help
 
 
 Hi,
 
 
 no idea at all.
 
 
 Probably you are interested in developing using the
 programming model of Tiny OS. 
 On one hand that would be great in order to have available
 more signal processing components (like audio compression).
 But on the other hand I found that it takes quite a lot of
 time at the beginning and it is also difficult to debug.
 
 
 Otherwise, what I did for signal processing is to use standard
 C functions. Check the mailing list if you are interested in
 know how to link them.
 
 
 Cheers!
 Sergio
 
 
 
 
 On Mon, Feb 13, 2012 at 8:50 AM, Mashal al-shboul
 shboul8...@yahoo.com wrote:
 Hi All,
 
 
 I need a help in data compression in tinyOS and nesC.
 has anyone of you tried compression (especially for
 audio format) ?. do you know anything about using
 Intel Integrated Performance Primitives (IIP ) for
 compression ?
 
 
 any help is good for me, thanks in advance
 
 
 Regards,
 Mash'al
 
 ___
 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] Need for help

2012-02-13 Thread Mashal al-shboul
Thanks Antonio for the reply,

Did you use ready library (e.g. in C code) to compress audio ?. In fact, i am 
searching for a quick solution to compress audio samples as of the type uint_16 
which are in PCM raw format.
Regards,
Mash'al



From: Antonio Liñán C. ali...@zolertia.com
To: Mashal al-shboul shboul8...@yahoo.com 
Cc: tinyos-help@millennium.berkeley.edu tinyos-help@millennium.berkeley.edu 
Sent: Monday, February 13, 2012 9:02 AM
Subject: Re: [Tinyos-help] Need for help
 
You should search instead compression algorithms commonly used for audio
signals.  There are many algorithms and papers about it if you google'd
a little (I ported some lossy and lossless compression algorithms for
the MicaZ for my MsC thesis, there's plenty of bibliography).

Off the top of my head:
http://sites.google.com/site/cmsadler/sensys06_compress.pdf?attredirects=0

You have to do your homework :)

--Antonio.

On Mon, 2012-02-13 at 17:41 +0100, Sergio Valcarcel wrote:
 Nope sorry. I have no idea about audio compression beyond the basics,
 and I have never implemented it.
 
 
 Neither do I know anything about the IIP. However if IIP is an
 instruction set, it will be processor dependent, so it may be the case
 that many architectures and cores that are ported to Tiny OS do not
 offer it. Check it out!
 
 
 Cheers!
 Sergio
 
 On Mon, Feb 13, 2012 at 5:35 PM, Mashal al-shboul
 shboul8...@yahoo.com wrote:
         Hi Sergio,
         Thank you for the reply.
         Actually i am interested in compressing audio samples in C
         since it is supported in tinyOS and nesC, so i would be
         grateful to you if you tell about such techniques to compress
         data locally in a sensor node before transmission. Have you
         heard about Intel IIP for that ?!
        
        
        
        
        
         __
         From: Sergio Valcarcel serteck...@gmail.com
         To: Mashal al-shboul shboul8...@yahoo.com 
         Cc: tinyos-help@millennium.berkeley.edu
         tinyos-help@millennium.berkeley.edu 
         Sent: Monday, February 13, 2012 7:43 AM
         Subject: Re: [Tinyos-help] Need for help
        
        
         Hi,
        
        
         no idea at all.
        
        
         Probably you are interested in developing using the
         programming model of Tiny OS. 
         On one hand that would be great in order to have available
         more signal processing components (like audio compression).
         But on the other hand I found that it takes quite a lot of
         time at the beginning and it is also difficult to debug.
        
        
         Otherwise, what I did for signal processing is to use standard
         C functions. Check the mailing list if you are interested in
         know how to link them.
        
        
         Cheers!
         Sergio
        
        
        
        
         On Mon, Feb 13, 2012 at 8:50 AM, Mashal al-shboul
         shboul8...@yahoo.com wrote:
                 Hi All,
                
                
                 I need a help in data compression in tinyOS and nesC.
                 has anyone of you tried compression (especially for
                 audio format) ?. do you know anything about using
                 Intel Integrated Performance Primitives (IIP ) for
                 compression ?
                
                
                 any help is good for me, thanks in advance
                
                
                 Regards,
                 Mash'al
                
                 ___
                 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] (no subject)

2012-02-13 Thread David Rodenas Herráiz

Hi all
I'm trying to install TinyOS on a Windows 7 machine, but I am getting the 
following error:
$ rpm -Uvh --force --nodeps avrdude-tinyos-5.6cvs-1.cygwin.i386.rpmPreparing... 
   ### [100%]   
1:avrdude-tinyos ### 
[100%]/usr/bin /Copying the driver to the windows directorytarget file: 
C:\Windows\giveio.sysDenied Access.0 files(s) copied(s).Remove a 
running service if needed...Installing Windows NT/2k/XP driver: giveioinstall 
failed, file not found: C:\Windows\giveio.sysstarting giveio... start failed 
(status 6):
I appreciate all the help possible. 
Thanks
David ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] UART sending series of commands to PC

2012-02-13 Thread Michael Schippling
Also I would recommend eliminating the busy-wait delay()
by splitting the whole sending sequence into multiple calls
driven by a timer. It's not much of a delay, but long-running
tasks may end up blocking other tasks which need resources.

MS

Eric Decker wrote:
 It is very strange to be sending modem commands to a pc but okay if you 
 must.
 
 You are using UartStream which is split phase.  You need to be catching 
 the completion event (signal) from UartStream.sendDone.  When the 
 sendDone comes in you can then start up the next string you want to send.
 
 The way you have UartStream.sendDone right now doesn't make a whole lot 
 of sense.
 
 
 If you don't know how this works you need to read the basic TinyOS 
 documents and tutorials.  Start with Phil's book.
 
 On Mon, Feb 13, 2012 at 12:13 AM, #BHARTI GOEL# bhar0...@e.ntu.edu.sg 
 mailto:bhar0...@e.ntu.edu.sg wrote:
 
 Hi,
 
 I am trying to send a series of commands to the PC hyperterminal
 using UART interface. Now when I send a single command it works
 fine. But when I send a series of commands it stops working. I have
 tried to create delays after each command but still it does not
 work. Can anyone tell me what I can possibly do?
 
 Here is my code :
 
 module GSMmodemC @safe()
 {
   uses interface Boot;
   uses interface Init as UartInit;
   uses interface StdControl as UartControl;
   uses interface UartStream;
   uses interface Leds;
   uses interface TimerTMilli;
  
  
 }
 implementation
 {
 
 // COMMANDS TO BE SENT
 char* uartsendBuf1 = AT\n;
 char* uartsendBuf2 = AT+CMGF=1\n;
 char* uartsendBuf3 = AT+CMGS=;
 char* uartsendBuf4 = +6590140252 tel:%2B6590140252;
 char* output = Hello;
 char* input;
 uint16_t inputlen;
 uint8_t recevedByte;
  
   event void Boot.booted() {

 call UartInit.init();

 call Timer.startPeriodic(3000);
 call UartControl.start();
   
   }
 
 
 static void delay(uint32_t cycles)
   {
 while (--cycles  0)
 {
   //nop();
 }
   } 
  
   event void Timer.fired() {


 call UartControl.start();   
 call UartStream.send(uartsendBuf1, 3);
 /*call Leds.led1Toggle();  // This
 part does not work
 delay(5000);
 call UartControl.start();
 call UartStream.send(uartsendBuf2, 10);
 call Leds.led1Toggle();
 delay(5000);
 call UartControl.start();
 call UartStream.send(uartsendBuf3, 8);
 call Leds.led1Toggle();
 delay(5000);
 call UartControl.start();
 call UartStream.send(uartsendBuf4, 11);
 call Leds.led1Toggle();
 delay(5000); */
   }
 
 
  
   async event void UartStream.sendDone( uint8_t* buf, uint16_t len,
 error_t error )
   {
 
 call Leds.led0Toggle();   
 call UartStream.enableReceiveInterrupt();
   
   }
  
   async event void UartStream.receivedByte( uint8_t byte )
   {
  
   if( (char* )byte == a)
   {
   call Leds.led1Toggle();
   }
   call Leds.led2Toggle();
   recevedByte = byte; 
   call UartControl.stop();
  
   }
  
   async event void UartStream.receiveDone( uint8_t* buf, uint16_t
 len, error_t error )
   {

   }
 
 }
 
 
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 mailto: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 mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] (no subject)

2012-02-13 Thread András Bíró
Hi David,

Giveio.sys doesn't work on Vista and newer, but if you don't plan to
use parrellel port programmer, you don't need it.

Andris

On Mon, Feb 13, 2012 at 7:03 PM, David Rodenas Herráiz
drod...@hotmail.com wrote:
 Hi all


 I'm trying to install TinyOS on a Windows 7 machine, but I am getting the
 following error:


 $ rpm -Uvh --force --nodeps avrdude-tinyos-5.6cvs-1.cygwin.i386.rpm

 Preparing...    ###
 [100%]

    1:avrdude-tinyos ###
 [100%]

 /usr/bin /

 Copying the driver to the windows directory

 target file: C:\Windows\giveio.sys

 Denied Access.

     0 files(s) copied(s).

 Remove a running service if needed...

 Installing Windows NT/2k/XP driver: giveio

 install failed, file not found: C:\Windows\giveio.sys

 starting giveio... start failed (status 6):


 I appreciate all the help possible.


 Thanks


 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


Re: [Tinyos-help] (no subject)

2012-02-13 Thread David Rodenas Herráiz

Hi Andris
You are right. I have just find the same answer. 
I am using the MicaZ devices and the MIB520CB Interface Board and I suppose 
that to install an app, I have to use make micaz install mib520,port. In this 
sense, as the MIB520CB Interface Board is connected to an usb port from my 
laptop, what port name should I use? comx? usbx? where x is 0, 1 ...
I am using a cygwin environment and TinyOS 2.x
Thanks for the help
David
 Date: Mon, 13 Feb 2012 19:53:08 +0100
 Subject: Re: [Tinyos-help] (no subject)
 From: bband...@gmail.com
 To: drod...@hotmail.com
 CC: tinyos-help@millennium.berkeley.edu
 
 Hi David,
 
 Giveio.sys doesn't work on Vista and newer, but if you don't plan to
 use parrellel port programmer, you don't need it.
 
 Andris
 
 On Mon, Feb 13, 2012 at 7:03 PM, David Rodenas Herráiz
 drod...@hotmail.com wrote:
  Hi all
 
 
  I'm trying to install TinyOS on a Windows 7 machine, but I am getting the
  following error:
 
 
  $ rpm -Uvh --force --nodeps avrdude-tinyos-5.6cvs-1.cygwin.i386.rpm
 
  Preparing...###
  [100%]
 
 1:avrdude-tinyos ###
  [100%]
 
  /usr/bin /
 
  Copying the driver to the windows directory
 
  target file: C:\Windows\giveio.sys
 
  Denied Access.
 
  0 files(s) copied(s).
 
  Remove a running service if needed...
 
  Installing Windows NT/2k/XP driver: giveio
 
  install failed, file not found: C:\Windows\giveio.sys
 
  starting giveio... start failed (status 6):
 
 
  I appreciate all the help possible.
 
 
  Thanks
 
 
  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

Re: [Tinyos-help] (no subject)

2012-02-13 Thread David Rodenas Herráiz

Hi again
I am sorry about the spam. I found the solution at 
http://docs.tinyos.net/tinywiki/index.php/Cygwin_User_Notes
Thanks!
From: drod...@hotmail.com
To: tinyos-help@millennium.berkeley.edu
Date: Mon, 13 Feb 2012 19:13:29 +
Subject: Re: [Tinyos-help] (no subject)







Hi Andris
You are right. I have just find the same answer. 
I am using the MicaZ devices and the MIB520CB Interface Board and I suppose 
that to install an app, I have to use make micaz install mib520,port. In this 
sense, as the MIB520CB Interface Board is connected to an usb port from my 
laptop, what port name should I use? comx? usbx? where x is 0, 1 ...
I am using a cygwin environment and TinyOS 2.x
Thanks for the help
David
 Date: Mon, 13 Feb 2012 19:53:08 +0100
 Subject: Re: [Tinyos-help] (no subject)
 From: bband...@gmail.com
 To: drod...@hotmail.com
 CC: tinyos-help@millennium.berkeley.edu
 
 Hi David,
 
 Giveio.sys doesn't work on Vista and newer, but if you don't plan to
 use parrellel port programmer, you don't need it.
 
 Andris
 
 On Mon, Feb 13, 2012 at 7:03 PM, David Rodenas Herráiz
 drod...@hotmail.com wrote:
  Hi all
 
 
  I'm trying to install TinyOS on a Windows 7 machine, but I am getting the
  following error:
 
 
  $ rpm -Uvh --force --nodeps avrdude-tinyos-5.6cvs-1.cygwin.i386.rpm
 
  Preparing...###
  [100%]
 
 1:avrdude-tinyos ###
  [100%]
 
  /usr/bin /
 
  Copying the driver to the windows directory
 
  target file: C:\Windows\giveio.sys
 
  Denied Access.
 
  0 files(s) copied(s).
 
  Remove a running service if needed...
 
  Installing Windows NT/2k/XP driver: giveio
 
  install failed, file not found: C:\Windows\giveio.sys
 
  starting giveio... start failed (status 6):
 
 
  I appreciate all the help possible.
 
 
  Thanks
 
 
  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

Re: [Tinyos-help] Tinyos-help Digest, Vol 106, Issue 81

2012-02-13 Thread Mashal al-shboul
Hi David,

To find what is the port name, you can use the command dmesg in linux 
environment , run it then plug the usb cable, the port will be detected and the 
name is shown.

Regards,
Mash'al




 From: tinyos-help-requ...@millennium.berkeley.edu 
tinyos-help-requ...@millennium.berkeley.edu
To: tinyos-help@millennium.berkeley.edu 
Sent: Monday, February 13, 2012 10:00 PM
Subject: Tinyos-help Digest, Vol 106, Issue 81
 
- Forwarded Message -

Send Tinyos-help mailing list submissions to
    tinyos-help@millennium.berkeley.edu

To subscribe or unsubscribe via the World Wide Web, visit
    https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

or, via email, send a message with subject or body 'help' to
    tinyos-help-requ...@millennium.berkeley.edu

You can reach the person managing the list at
    tinyos-help-ow...@millennium.berkeley.edu

When replying, please edit your Subject line so it is more specific
than Re: Contents of Tinyos-help digest...

Today's Topics:

   1. Re: (no subject) (Andr?s B?r?)
   2. Re: (no subject) (David Rodenas Herr?iz)
   3. Re: (no subject) (David Rodenas Herr?iz)
Hi David,

Giveio.sys doesn't work on Vista and newer, but if you don't plan to
use parrellel port programmer, you don't need it.

Andris

On Mon, Feb 13, 2012 at 7:03 PM, David Rodenas Herráiz
drod...@hotmail.com wrote:
 Hi all


 I'm trying to install TinyOS on a Windows 7 machine, but I am getting the
 following error:


 $ rpm -Uvh --force --nodeps avrdude-tinyos-5.6cvs-1.cygwin.i386.rpm

 Preparing...    ###
 [100%]

    1:avrdude-tinyos ###
 [100%]

 /usr/bin /

 Copying the driver to the windows directory

 target file: C:\Windows\giveio.sys

 Denied Access.

     0 files(s) copied(s).

 Remove a running service if needed...

 Installing Windows NT/2k/XP driver: giveio

 install failed, file not found: C:\Windows\giveio.sys

 starting giveio... start failed (status 6):


 I appreciate all the help possible.


 Thanks


 David


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



 
Hi Andris

You are right. I have just find the same answer. 

I am using the MicaZ devices and the MIB520CB Interface Board and I suppose 
that to install an app, I have to use make micaz install mib520,port. In this 
sense, as the MIB520CB Interface Board is connected to an usb port from my 
laptop, what port name should I use? comx? usbx? where x is 0, 1 ...

I am using a cygwin environment and TinyOS 2.x

Thanks for the help

David

 Date: Mon, 13 Feb 2012 19:53:08 +0100
 Subject: Re: [Tinyos-help] (no subject)
 From: bband...@gmail.com
 To: drod...@hotmail.com
 CC: tinyos-help@millennium.berkeley.edu
 
 Hi David,
 
 Giveio.sys doesn't work on Vista and newer, but if you don't plan to
 use parrellel port programmer, you don't need it.
 
 Andris
 
 On Mon, Feb 13, 2012 at 7:03 PM, David Rodenas Herráiz
 drod...@hotmail.com wrote:
  Hi all
 
 
  I'm trying to install TinyOS on a Windows 7 machine, but I am getting the
  following error:
 
 
  $ rpm -Uvh --force --nodeps avrdude-tinyos-5.6cvs-1.cygwin.i386.rpm
 
  Preparing...    ###
  [100%]
 
     1:avrdude-tinyos ###
  [100%]
 
  /usr/bin /
 
  Copying the driver to the windows directory
 
  target file: C:\Windows\giveio.sys
 
  Denied Access.
 
      0 files(s) copied(s).
 
  Remove a running service if needed...
 
  Installing Windows NT/2k/XP driver: giveio
 
  install failed, file not found: C:\Windows\giveio.sys
 
  starting giveio... start failed (status 6):
 
 
  I appreciate all the help possible.
 
 
  Thanks
 
 
  David
 
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

 
Hi again

I am sorry about the spam. I found the solution 
at http://docs.tinyos.net/tinywiki/index.php/Cygwin_User_Notes

Thanks!




From: drod...@hotmail.com
To: tinyos-help@millennium.berkeley.edu
Date: Mon, 13 Feb 2012 19:13:29 +
Subject: Re: [Tinyos-help] (no subject)

 
Hi Andris

You are right. I have just find the same answer. 

I am using the MicaZ devices and the MIB520CB Interface Board and I suppose 
that to install an app, I have to use make micaz install mib520,port. In this 
sense, as the MIB520CB Interface Board is connected to an usb port from my 
laptop, what port name should I use? comx? usbx? where x is 0, 1 ...

I am using a cygwin environment and TinyOS 2.x

Thanks for the help

David

 Date: Mon, 13 Feb 2012 19:53:08 +0100
 Subject: Re: [Tinyos-help] (no subject)
 From: bband...@gmail.com
 To: 

Re: [Tinyos-help] Running 1.x code on 2.x

2012-02-13 Thread Johny Mattsson
On 13 February 2012 22:12, Eric Decker cire...@gmail.com wrote:


 I believe there are some docs that talk about porting between the two.


Indeed there is:
http://www.tinyos.net/tinyos-2.1.0/doc/html/porting.html

Cheers,
/Johny

-- 
Johny Mattsson
Senior Software Engineer

DiUS Computing Pty. Ltd.
*where ideas are engineered
*
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] CoapBlip Compiler error

2012-02-13 Thread dwaraka nath
1. check the files that it is showing as not found.

If found then its the  making fault

2. try to update the TinyOS repository and compile again.


2012/2/13 Henrik Skjøt hen...@habs.dk

 I'm getting the same error. Is there another way to get a coap server up
 and running on a telosb? Any one got it working that can make a list of
 files that are supposed to be in the apps/CoapBlip folder?

 ** **

 /Henrik

 ** **

 *Fra:* dwaraka nath [mailto:dwaraka.tul...@gmail.com]
 *Sendt:* 13. februar 2012 07:09
 *Til:* Henrik Skjøt
 *Cc:* tinyos-help@millennium.berkeley.edu
 *Emne:* Re: [Tinyos-help] CoapBlip Compiler error

 ** **

 try to compile with make telosb blip coap

 ** **

 follow http://docs.tinyos.net/tinywiki/index.php/CoAP

 2012/2/6 Henrik Skjøt hen...@habs.dk

 Hello,

  

 I am using this guide http://docs.tinyos.net/tinywiki/index.php/CoAP to
 compile CoapBlip but i get a error when compiling.

  

 root@ubuntu3:/opt/tinyos-2.1.1/apps/CoapBlip# make telosb blip

 mkdir -p build/telosb

 compiling CoapBlipC to a telosb binary

 ncc -o build/telosb/main.exe  -Os -DRPL_ROUTING -DRPL_STORING_MODE
 -I/opt/tinyos-2.1.1/tos/lib/net/rpl -DIN6_PREFIX=\fec0::\ -DPACKET_LINK
 -DDEF_MEMCPY -DENABLE_SPI0_DMA -DBLIP_MULTICAST
 -DCC2420_HW_ACKNOWLEDGEMENTS -DTOSH_DATA_LENGTH=102
 -I/opt/tinyos-2.1.1/tos/lib/net/
 -I/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/
 -I/opt/tinyos-2.1.1/support/sdk/c/blip/libtcp/
 -I/opt/tinyos-2.1.1/tos/lib/net/blip/
 -I/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/
 -I/opt/tinyos-2.1.1/tos/lib/net/blip/nwprog/
 -I/opt/tinyos-2.1.1/tos/lib/net/blip/shell/
 -I/opt/tinyos-2.1.1/tos/lib/net/blip/serial/
 -I/opt/tinyos-2.1.1/tos/lib/net/blip/platform/
 /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpan.c
 /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c
 /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c
 /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/in_cksum.c
 /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/ip_malloc.c
 /opt/tinyos-2.1.1/tos/lib/net/blip/table.c -mdisable-hwmul
 -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb
 -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
 -Ibuild/telosb -DCOAP_SERVER_ENABLED -DCOAP_SERVER_PORT=61616L
 -DMAX_URI_LENGTH=5 -DNUM_URIS=1 -DCOAP_RESOURCE_LED
 -DCOAP_PREACK_TIMEOUT=500 -DINCLUDE_WELLKNOWN -DCOAP_CLIENT_PORT=61616L
 -DCOAP_CLIENT_DEST=\fec0::100\ -I. -DIDENT_APPNAME=\CoapBlipC\
 -DIDENT_USERNAME=\root\ -DIDENT_HOSTNAME=\ubuntu3\
 -DIDENT_USERHASH=0xf002cd98L -DIDENT_TIMESTAMP=0x4f2fe535L
 -DIDENT_UIDHASH=0x215c628cL  CoapBlipC.nc -lm

 CoapBlipC.nc:34:32: error: lib6lowpan/6lowpan.h: No such file or directory
 

 In file included from CoapBlipC.nc:35:

 tinyos_coap_resources.h:36:17: error: pdu.h: No such file or directory

 In file included from CoapBlipC.nc:35:

 tinyos_coap_resources.h:117: `COAP_MEDIATYPE_APPLICATION_OCTET_STREAM'
 undeclared here (not in a function)

 CoapBlipP.nc:34:35: error: lib6lowpan/lib6lowpan.h: No such file or
 directory

 CoapBlipP.nc:35:27: error: lib6lowpan/ip.h: No such file or directory

 CoapBlipP.nc:36:25: error: blip_printf.h: No such file or directory

 In file included from CoapBlipC.nc:45:

 In component `CoapBlipP':

 CoapBlipP.nc:46: interface CoAPServer not found

 CoapBlipP.nc: In function `Boot.booted':

 CoapBlipP.nc:72: implicit declaration of function `printf'

 CoapBlipP.nc:80: interface has no command or event named `bind'

 CoapBlipP.nc:82: interface has no command or event named
 `registerWellknownCore'

 CoapBlipP.nc:84: interface has no command or event named `registerResource'
 

 CoapBlipP.nc: In function `RadioControl.startDone':

 CoapBlipP.nc:101: implicit declaration of function `printf'

 In component `CoapBlipC':

 CoapBlipC.nc: At top level:

 CoapBlipC.nc:46: component LibCoapAdapterC not found

 CoapBlipC.nc:47: component IPStackC not found

 CoapBlipC.nc:55: component RPLRoutingC not found

 CoapBlipC.nc:59: component CoapUdpServerC not found

 /opt/tinyos-2.1.1/tos/chips/msp430/usart/Msp430Spi0C.nc:62:2: warning:
 #warning Enabling SPI DMA on USART0

 /opt/tinyos-2.1.1/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning:
 #warning *** LOW POWER COMMUNICATIONS DISABLED ***

 /opt/tinyos-2.1.1/tos/chips/cc2420/link/PacketLinkC.nc:38:2: warning:
 #warning *** USING PACKET LINK LAYER

 CoapBlipC.nc:98: component CoapLedResourceC not found

 CoapBlipC.nc:98: component `CoapLedResourceC' is not generic

 CoapBlipC.nc:51: no match

 CoapBlipC.nc:61: no match

 CoapBlipC.nc:62: cannot find `LibCoapServer'

 CoapBlipC.nc:63: cannot find `Init'

 CoapBlipC.nc:64: cannot find `UDPServer'

 CoapBlipC.nc:99: cannot find `Leds'

 CoapBlipC.nc:100: cannot find `ReadResource'

 CoapBlipC.nc:101: cannot find 

[Tinyos-help] error when make micaz blip

2012-02-13 Thread Mr.Thanakorn Prasansri

Dear Sir,
I try to make Ppprouter on micaz mote but i got error like this.
How can i fix it?



In file included from /opt/tinyos-2.1.1/tos/lib/ppp/PppC.nc:78,
 from /opt/tinyos-2.1.1/tos/lib/ppp/PppDaemonC.nc:56,
 from PppRouterC.nc:16:
In component `LedC':
/opt/tinyos-2.1.1/tos/system/LedC.nc:88: component PlatformLedC not found
/opt/tinyos-2.1.1/tos/system/LedC.nc:89: no match
In file included from /opt/tinyos-2.1.1/tos/lib/timer/MuxAlarmMilli32C.nc:47,
 from /opt/tinyos-2.1.1/tos/lib/ppp/LcpAutomatonC.nc:72,
 from /opt/tinyos-2.1.1/tos/lib/ppp/LinkControlProtocolC.nc:89,
 from /opt/tinyos-2.1.1/tos/lib/ppp/PppDaemonC.nc:65,
 from PppRouterC.nc:16:
In component `MuxAlarmMilli32C_':
/opt/tinyos-2.1.1/tos/lib/timer/MuxAlarmMilli32C_.nc:55: component 
AlarmMilli32C not found
/opt/tinyos-2.1.1/tos/lib/timer/MuxAlarmMilli32C_.nc:55: component 
`AlarmMilli32C' is not generic
/opt/tinyos-2.1.1/tos/lib/timer/MuxAlarmMilli32C_.nc:56: no match
/opt/tinyos-2.1.1/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning 
*** LOW POWER COMMUNICATIONS DISABLED ***
/opt/tinyos-2.1.1/tos/chips/cc2420/link/PacketLinkC.nc:38:2: warning: #warning 
*** USING PACKET LINK LAYER
make: *** [exe0] Error 1

THANK YOU,


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

Re: [Tinyos-help] Reading a Soil Sensor Decagon 5te from UART port

2012-02-13 Thread #BHARTI GOEL#
Hi,

You can take a look at tinyos2.contrib for sample code. There is a similar one 
which takes reading from a soil sensor called EchoTeTelos. Here is the path.

\tinyos-2.x-contrib\asu-impact\lib\echote_telos

cheers
Bharti

From: tinyos-help-boun...@millennium.berkeley.edu 
[tinyos-help-boun...@millennium.berkeley.edu] on behalf of aca...@correo.ugr.es 
[aca...@correo.ugr.es]
Sent: Monday, February 13, 2012 9:07 PM
To: tinyos-help@millennium.berkeley.edu
Cc: jmseci...@gmail.com
Subject: [Tinyos-help] Reading a Soil Sensor Decagon 5te from UART port

Hello,

I am trying to see the raw data from a soil sensor Decagon 5te. I see in
some manual  it work with 9600 baud rate. And dispatches his raw data in
this form:

i.e. : 56 432 6450DzG0D0A

Where only  is  data in :
56 for Raw dielectric output, 432 Electrical conductivity, 645 is Temperature


I wrote an app to start read the raw data, the app is compiling without
error, but I need some idea about what must I do to relationship the
Timer.fired() with the async event void UartStream.receivedByte in order
to get the data every 1 second (Timer.startPeriodic(1000)) or some piece
of code if is possible for you.

The UART communication between the telosb mote is using the UART0 and is
powered from the ADC0 pin.

I am attaching the app.


Thanks in advance.

Regards,

Alejandro.









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