rabiaa Kamel | 25 May 2013 01:58
Picon
Favicon

(no subject)


i just want to ask you which tool do you used for graphics in your memory(les figures) 
thanks in advance
<div><div dir="ltr">
<br><span>i just want to ask you which tool do you used for graphics in your memory(les figures)&nbsp;</span><br><span>thanks in advance</span> 		 	   		  </div></div>
Konstantinos Veroutis | 24 May 2013 11:52
Picon
Favicon

Entra nella mia rete su LinkedIn

 
 
Davide,
 
 
 
 
 
 
 
 
 
 
 
 
 
Konstantinos Veroutis desidera collegarsi con te su LinkedIn.
 
 
Konstantinos Veroutis
Research Engineer at Computer Technology Institute Visualizza profilo »
 
 
 
 
 
 
 
 
Stai ricevendo email di Invitation. Annulla l'iscrizione.
 
Questa email era destinata a Davide Pacifico (Network Consulting Engineer presso Cisco Systems). Scopri perché queste informazioni sono incluse. © 2013, LinkedIn Corporation. 2029 Stierlin Ct. Mountain View, CA 94043, USA
 
<div>

  

  
    <table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#F4F4F4"><tr><td align="center">

<table border="0" cellspacing="0" cellpadding="0" bgcolor="#f4f4f4" width="100%" class=""><tr><td width="98%" valign="top" align="center">
  <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="590" class="responsive"><tr><td width="98%" valign="top" align="">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#f4f4f4" class="responsive"><tr>
<td align="right" width="590" class="responsive">
          <table cellspacing="0" cellpadding="0" border="0"><tr>
<td height="15"></td>
              </tr></table>
<div>
            <a href="http://www.linkedin.com/">
              </a>
          </div>
        </td>
      </tr></table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="responsive"><tr>
<td bgcolor="#ffffff" class="responsive" align="left">
            <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff" width="100%"><tr>
<td width="15"><table width="15" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table></td>
                <td>
                  Davide,
                </td>
                <td width="15"><table width="15" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table></td>
              </tr></table>
<table bgcolor="#f2faff" width="100%">
<tr>
<td height="15">
                    <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                  <td height="15">
                    <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                  <td height="15">
                    <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                  <td height="15">
                    <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                </tr>
<tr><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr>
<td width="15">
                        <table width="15" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                      <td>
                        <table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#f2faff">
<tr>
<td height="10">
                              <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                            <td height="10">
                              <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                            <td height="10">
                              <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                            <td height="10">
                              <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                            <td height="10">
                              <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                          </tr>
<tr>
<td width="10">
                              <table width="10" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                              <td valign="top" width="60">
                                  </td>
                              <td width="10">
                                <table width="10" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                            <td valign="top">
                              <div>
                                Konstantinos Veroutis desidera collegarsi con te su LinkedIn.
                              </div>
                              <div>
                                <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</div>
                              <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
<div>Konstantinos Veroutis</div>
                              <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr>
<td>
                                    <table border="0" cellspacing="0" cellpadding="0" width="50%" class="responsive-50per" align="left"><tr>
<td>Research Engineer at Computer Technology Institute</td>
                                        <td>
                                          <a href="http://www.linkedin.com/e/-528s01-hh36xt5n-2m/rso/257690944/vkyH/name/46387319_I403705180_45/eml-comm_invm-b-pro_txt-inv28/?hs=false&amp;tok=0myQeXpGbMg5M1">
                                            <span>
                                              Visualizza profilo &raquo;
                                            </span>
                                          </a>
                                        </td>
                                      </tr></table>
</td>
                                </tr></table>
</td>
                            <td width="10">
                              <table width="10" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                          </tr>
<tr>
<td height="10">
                              <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                          </tr>
</table>
</td>
                      <td width="15">
                        <table width="15" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                    </tr></table></tr>
<tr>
<td>
                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td height="10">
                          <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                      </tr>
<tr>
<td>
                          <div>
                            <table border="0" cellspacing="1" cellpadding="3" align="left"><tr>
<td width="5">
                                  <table width="5" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                                <td colspan="3" align="left">
                                    <table border="0" cellpadding="6" cellspacing="1" align=""><tr><td align="center" valign="middle" bgcolor="#FFE86C"><div><a href="http://www.linkedin.com/e/-528s01-hh36xt5n-2m/DQCGT3GB9z4raacyxHEZ6GwS_HFHC0dZ_bJG6UZ99BqwCW9clJdr/blk/I403705180_45/3wOtCVFbmdxnSVFbm8JrnpKqlZJrmZzbmNJpjRQnOpBtn9QfmhBt71BoSd1p65Lr6lOfPkQnP0UcjkMdPcMd4ALnSd5kkBWgT0Ld3sVcj4UdzkRcP4LrCBxbOYWrSlI/eml-comm_invm-b-in_ac-inv28/?hs=false&amp;tok=1CjN-6cVLMg5M1"><span>Accetta</span></a></div></td></tr></table>
</td>
                              </tr></table>
</div>
                        </td>
                      </tr>
<tr>
<td height="10">
                          <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
                      </tr>
</table>
</td>
                </tr>
</table>
<table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>
</td>
        </tr></table>
</td></tr></table>
</td></tr></table>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#f4f4f4" width="100%" class=""><tr><td width="98%" valign="top" align="center">

<table border="0" cellspacing="0" cellpadding="0" width="580" class="responsive">
<tr><td><table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table></td></tr>
<tr>
<td align="left">
            Stai ricevendo email di Invitation. <a href="https://www.linkedin.com/e/-528s01-hh36xt5n-2m/DQCGT3GB9z4raacyxHEZ6GwS_HFHC0dZ_bJG6UZ99BqwCW9clJdr/uns/20008/46387319/e1vj4g81jsmvknc/tinyos-help%40millennium%2Eberkeley%2Eedu/-528s01-hh36xt5n-2m/eml-comm_invm-f-unsub-inv28/?hs=false&amp;tok=0LJvFJj8DMg5M1">Annulla l'iscrizione</a>.
        <table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table>

                Questa email era destinata a Davide Pacifico (Network Consulting Engineer presso Cisco Systems). <a href="http://www.linkedin.com/e/-528s01-hh36xt5n-2m/plh/http%3A%2F%2Flinkedin-it%2Ecusthelp%2Ecom%2Fapp%2Fanswers%2Fdetail%2Fa_id%2F4788/8jlx/?hs=false&amp;tok=0UefobNMvMg5M1">Scopri perch&eacute; queste informazioni sono incluse</a>. &copy; 2013, LinkedIn Corporation. 2029 Stierlin Ct. Mountain View, CA 94043, USA
    </td>
  </tr>
<tr><td><table width="1" border="0" cellspacing="0" cellpadding="0" class=""><tr><td><div>&nbsp;</div></td></tr></table></td></tr>
</table>
</td></tr></table>
</td></tr></table>
</div>
sarahgros | 24 May 2013 11:27
Picon
Favicon

(no subject)


Hello all,

I've got this error :

TempAverage.nc:15: `TOS_ADC_TempAverage_PORT' undeclared here (not in a
function)
make: *** [exe0] Error 1

Can someone help me, please ?

imran mak | 24 May 2013 09:51
Picon

FileRead problem in TinyOS-1.x

Hi All,
      I am writing a small application in tinyos1.x. I have installed
XUBUNTOS on a VMware server console. I am trying to use FileRead.nc,
an interface in FS folder in tos\library....with its implementation in
 memread2.nc file (details mentioned below).
     Once i compile the configuration file named FileOpenread.nc,
using  make pc...it is compiled without any error ,,,and similarly if
compiled for make mica2,,,it again shows no errors and is compiled
successfully.
      The problem is that once i run this application.. DBG=temp,all
./build/pc/main.exe 1....
      It shows the DBG output ..for FileRead.open command ..by returning
success..
     Now this happens ,,even if there is no file..so the
    if(FileRead.open("mem.txt"==
SUCCESS) is always true,,,and i
immediately get a false condition for
..if(FileRead.read(buffer,256)==SUCCESS)
{dbg(DBG_TEMP,"File read success");
return SUCCESS}
else
{dbg(DBG_TEMP,"Failed to read");

kindly guide me if there is anything wrong with my configuration file
(FileOpenread.nc) or module file

*Configuration File*
includes Matchbox;
configuration FileOpenread {}
implementation
{
  components Main, Matchbox, Memread2, NoDebug;

  Main.StdControl -> Memread2.StdControl;
  Main.StdControl -> Matchbox.StdControl;
  Matchbox.ready -> Memread2.matchboxReady;
 Memread2.FileRead -> Matchbox.FileRead[unique("
FileRead")];
 Matchbox.Debug -> NoDebug;
 }


*Module File*
module Memread2 {
  provides
  {
    interface StdControl;
    event result_t matchboxReady();}
  uses
  { interface FileRead; }
}
implementation {

  command result_t StdControl.init()  {return SUCCESS;}
  command result_t StdControl.start() {return SUCCESS;}
  command result_t StdControl.stop()  {return SUCCESS;}

     event result_t matchboxReady()
      { uint8_t buffer[256];
         if ((call FileRead.open("mem.txt")) == SUCCESS)
          {   dbg(DBG_TEMP," success in file opening \n");
             /* return SUCCESS;*/
             if ((call FileRead.read(buffer,256))==
SUCCESS)
             {  dbg(DBG_TEMP,"fileread success\n");
                dbg(DBG_TEMP,"The Contents are %i\n, %d\n",buffer);
               return SUCCESS;}
              else {dbg(DBG_TEMP,"Failed to read \n");
              return FAIL; }
           }
         else {dbg(DBG_TEMP,"Failed to open \n");
                return FAIL; }
         }

   event result_t FileRead.opened(fileresult_t result)
      {return SUCCESS;}
   event result_t FileRead.readDone(void *buf, filesize_t
nRead,fileresult_t result)
      {return SUCCESS;}
   event result_t FileRead.remaining(filesize_t n, fileresult_t result)
      {return SUCCESS;}
 }


 Is there any other way to open and read the contents of a text
file..and displaying the contents in console or another output
file?..I need to do it for my research assignment...kindly someone do
help me..
     I shall be really grateful,
     Imran Mak
<div><div dir="ltr">Hi All,<br>&nbsp; &nbsp; &nbsp; I am writing a small application in tinyos1.x. I have installed<br>XUBUNTOS on a VMware server console. I am trying to use FileRead.nc,<br>an interface in FS folder in tos\library....with its implementation in<br>

&nbsp;<a href="http://memread2.nc/" target="_blank">memread2.nc</a>&nbsp;file (details mentioned below).<br>&nbsp; &nbsp; &nbsp;Once i compile the configuration file named FileOpenread.nc,<br>using &nbsp;make pc...it is compiled without any error ,,,and similarly if<br>

compiled for make mica2,,,it again shows no errors and is compiled<br>successfully.<br>&nbsp; &nbsp; &nbsp; The problem is that once i run this application.. DBG=temp,all<br>./build/pc/main.exe 1....<br>&nbsp; &nbsp; &nbsp; It shows the DBG output ..for FileRead.open command ..by returning<br>

success..<br>&nbsp; &nbsp; &nbsp;Now this happens ,,even if there is no file..so the<br>&nbsp; &nbsp; if(FileRead.open("mem.txt"==<div dir="ltr">SUCCESS) is always true,,,and i<br>immediately get a false condition for<br>..if(FileRead.read(buffer,256)==SUCCESS)<br>

{dbg(DBG_TEMP,"File read success");<br>return SUCCESS}<br>else<br>{dbg(DBG_TEMP,"Failed to read");<br><br>kindly guide me if there is anything wrong with my configuration file<br>(FileOpenread.nc) or module file<br><br>*<span>Configuration File*</span><br><span>includes Matchbox;<br>configuration FileOpenread {}<br>implementation<br>{<br>&nbsp; components Main, Matchbox, Memread2, NoDebug;<br><br>&nbsp; Main.StdControl -&gt; Memread2.StdControl;<br>&nbsp; Main.StdControl -&gt; Matchbox.StdControl;<br>
&nbsp; Matchbox.ready -&gt; Memread2.matchboxReady;<br>&nbsp;Memread2.FileRead -&gt; Matchbox.FileRead[unique("</span><span>FileRead")];<br>&nbsp;Matchbox.Debug -&gt; NoDebug;<br>&nbsp;}</span><br><br>*<span>Module File*</span><br><span>module Memread2 {<br>&nbsp; provides<br>&nbsp; {<br>
&nbsp; &nbsp; interface StdControl;<br>&nbsp; &nbsp; event result_t matchboxReady();}<br>&nbsp; uses<br>&nbsp; { interface FileRead; }<br>}<br>implementation {<br><br>&nbsp; command result_t StdControl.init() &nbsp;{return SUCCESS;}<br>&nbsp; command result_t StdControl.start() {return SUCCESS;}<br>

&nbsp; command result_t StdControl.stop() &nbsp;{return SUCCESS;}<br><br>&nbsp; &nbsp; &nbsp;event result_t matchboxReady()<br>&nbsp; &nbsp; &nbsp; { uint8_t buffer[256];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ((call FileRead.open("mem.txt")) == SUCCESS)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; dbg(DBG_TEMP," success in file opening \n");<br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* return SUCCESS;*/<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ((call FileRead.read(buffer,256))==</span><span>SUCCESS)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ &nbsp;dbg(DBG_TEMP,"fileread success\n");<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbg(DBG_TEMP,"The Contents are %i\n, %d\n",buffer);<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return SUCCESS;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {dbg(DBG_TEMP,"Failed to read \n");<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FAIL; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else {dbg(DBG_TEMP,"Failed to open \n");<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FAIL; }<br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br><br>&nbsp; &nbsp;event result_t FileRead.opened(fileresult_t result)<br>&nbsp; &nbsp; &nbsp; {return SUCCESS;}<br>&nbsp; &nbsp;event result_t FileRead.readDone(void *buf, filesize_t<br>nRead,fileresult_t result)<br>&nbsp; &nbsp; &nbsp; {return SUCCESS;}<br>

&nbsp; &nbsp;event result_t FileRead.remaining(filesize_t n, fileresult_t result)<br>&nbsp; &nbsp; &nbsp; {return SUCCESS;}<br>&nbsp;}</span><br><br>&nbsp;Is there any other way to open and read the contents of a text<br>file..and displaying the contents in console or another output<br>

file?..I need to do it for my research assignment...kindly someone do<br>help me..<br>&nbsp; &nbsp; &nbsp;I shall be really grateful,<br>&nbsp; &nbsp; &nbsp;Imran Mak</div>
</div></div>
Flemming Nyboe | 23 May 2013 14:19
Picon

Split code memory on MSP430F2617

Hello,

I'm about to use TinyOS on an F2617 (also used on the Zolertia Z1).

The F2617 has its interrupt vectors placed in the middle of code memory:
Vectors: 0x0FFC0 to 0x0FFFF
Code mem: 0x03100 to 0x19FFF (92kB)

The problem is: once the combined size of .text + .rodata hits the vectors (53kB), the linker complains.

How can .text be split, to utilize the code memory above the vectors, 0x10000 to 0x19FFF.

Same problem: old post:

Regards
Flemming Nyboe
<div><div dir="ltr">Hello,<div><br></div>
<div>I'm about to use TinyOS on an F2617 (also used on the Zolertia Z1).</div>
<div><br></div>
<div>The F2617 has its interrupt vectors placed in the middle of code memory:</div>
<div>Vectors: 0x0FFC0 to 0x0FFFF</div>
<div>Code mem: 0x03100 to 0x19FFF (92kB)</div>
<div><br></div>
<div>The problem is: once the combined size of .text + .rodata hits the vectors (53kB), the linker complains.</div>
<div><br></div>
<div>How can .text be split, to utilize the code memory above the vectors, 0x10000 to 0x19FFF.</div>
<div><br></div>
<div>Same problem: old post:</div>
<div>
<a href="http://permalink.gmane.org/gmane.os.contiki.devel/6400">http://permalink.gmane.org/gmane.os.contiki.devel/6400</a><br>
</div>
<div><br></div>
<div>Regards</div>
<div>Flemming Nyboe</div>
</div></div>
sarahgros | 23 May 2013 11:22
Picon
Favicon

interface ADC


Hi all,

Can someone explain me how to use ADC interface.
I have read that I need this code :

enum {
		TOS_ADC_TEMPAVERAGE_PORT = unique("ADCPort"),
		TOSH_ACTUAL_ADC_TEMPAVERAGE_PORT = ASSOCIATE_ADC_CHANNEL(
		INPUT_CHANNEL_A0,
		REFERENCE_VREFplus_AVss,
		REFVOLT_LEVEL_1_5
		),
	};

but it generates errors :

In component `TempAverageM':
TempAverageM.nc:14: implicit declaration of function `ASSOCIATE_ADC_CHANNEL'
TempAverageM.nc:15: `INPUT_CHANNEL_A2' undeclared here (not in a function)
TempAverageM.nc:16: `REFERENCE_VREFplus_AVss' undeclared here (not in a
function)
TempAverageM.nc:18: `REFVOLT_LEVEL_1_5' undeclared here (not in a function)
TempAverageM.nc:18: enumerator value for `TOSH_ACTUAL_ADC_TEMPAVERAGE_PORT' not
integer constant
TempAverageM.nc: In function `StdControl.init':
TempAverageM.nc:35: `TOSH_ACTUAL_ADC_AVERAGE_PORT' undeclared (first use in this
function)
TempAverageM.nc:35: (Each undeclared identifier is reported only once
TempAverageM.nc:35: for each function it appears in.)
In component `TempAverage':
TempAverage.nc: At top level:
TempAverage.nc:10: `TOS_ADC_TEMPAVERAGE_PORT' undeclared here (not in a
function)
make: *** [exe0] Error 1

Can you help me ?

Thanks.
Rohini SharmaOhlan | 23 May 2013 05:50
Picon

Tiny viz is not working on Tinyos 2..1.1

Hello friends


I have installed Tinyos 2.1.1 on ubuntu 10.04.
When I tried to sdk/java/$make

make failed.

plese help running TinyViz on TinyOs.
<div>
<p>Hello friends</p>
<div><br></div>
<div>I have installed Tinyos 2.1.1 on ubuntu 10.04.</div>
<div>When I tried to sdk/java/$make</div>
<div><br></div>
<div>make failed.</div>
<div><br></div>
<div>plese help running TinyViz on TinyOs.</div>
</div>
He Dajiang (I2R | 23 May 2013 03:50
Picon

Re: Tinyos-help Digest, Vol 121, Issue 22

Hi,

have u successfully installed tinyos, where there is a complicated make file system for you to comple for
target micaz, mica2, etc ? 
That Makefile alone in the tutorial is not enough for u to compile a tinyos app.

Cheers

________________________________________
From: tinyos-help-bounces <at> millennium.berkeley.edu
[tinyos-help-bounces <at> millennium.berkeley.edu] on behalf of
tinyos-help-request <at> millennium.berkeley.edu [tinyos-help-request <at> millennium.berkeley.edu]
Sent: Thursday, 23 May, 2013 3:00:02 AM
To: tinyos-help <at> millennium.berkeley.edu
Subject: Tinyos-help Digest, Vol 121, Issue 22

Send Tinyos-help mailing list submissions to
        tinyos-help <at> 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-request <at> millennium.berkeley.edu

You can reach the person managing the list at
        tinyos-help-owner <at> 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. How would you compile this simple example? (Yves S. Garret)

----------------------------------------------------------------------

Message: 1
Date: Wed, 22 May 2013 13:50:16 -0400
From: "Yves S. Garret" <yoursurrogategod <at> gmail.com>
Subject: [Tinyos-help] How would you compile this simple example?
To: tinyos-help <at> millennium.berkeley.edu
Message-ID:
        <CAJ=2b046rA-8s65A=djHgBfB1jJrzSJKa1nOxevHKx0yfV1tsg <at> mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

Just trying tinyOS out.  I was following this example:
http://docs.tinyos.net/tinywiki/index.php/The_simplest_TinyOS_program

Now, when I get to the part about running make, I get this error:
$ make micaz
make: *** No rule to make target `micaz'.  Stop.
$ make
make: *** No targets.  Stop.

Which makes sense, Makefiles do not work this way.  But, then how?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20130522/7bafca8b/attachment.html

------------------------------

_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

End of Tinyos-help Digest, Vol 121, Issue 22
********************************************

Institute for Infocomm Research disclaimer:  "This email is confidential and may be privileged. If you are
not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any
purpose, or disclose its contents to any other person. Thank you."

Modi, Jenis | 22 May 2013 22:33
Favicon

Set RFPower from TestSerial.java

Hi Guys, 

I am trying to set RF power from TestSerial.java, but I don't see the output as expected.  I run below command
to run my code:

make telosb install.1 bsl,/dev/ttyUSB0
java TestSerial -comm serial <at> /dev/ttyUSB0:telos 1  (Here 1 refers to RF power I am passing)

Instead of getting actual RF power, I receive RF power 0 everytime. I receive below output when I run above
commands: 
Sending packet 1
Received packet power: 0
Received packet sequence number 8
Sending packet 2
Received packet power: 0
Received packet sequence number 9
Sending packet 3
Received packet power: 0
Received packet sequence number 10
Sending packet 4
Received packet power: 0
Received packet sequence number 11

Could anyone tell me what am I doing wrong here? Plz help. 

Here is my code: 

TestSerial.java :

public class TestSerial implements MessageListener {

  private MoteIF moteIF;

  public TestSerial(MoteIF moteIF) {
    this.moteIF = moteIF;
    this.moteIF.registerListener(new TestSerialMsg(), this);
  }

  public void sendPackets(String rf_power) {
    int counter = 1;
    int rfpower = Integer.parseInt(rf_power);
    TestSerialMsg payload = new TestSerialMsg();

    try {
	payload.set_rfpower(rfpower);
      while (true) {
	System.out.println("Sending packet " + counter);

        payload.set_counter(counter);
	moteIF.send(0, payload);
	counter++;
	try {Thread.sleep(1000);}
	catch (InterruptedException exception) {}
      }
    }
    catch (IOException exception) {
      System.err.println("Exception thrown when sending packets. Exiting.");
      System.err.println(exception);
    }
  }

  public void messageReceived(int to, Message message) {
    TestSerialMsg msg = (TestSerialMsg)message;
    System.out.println("Received packet power: "+msg.get_rfpower());
    System.out.println("Received packet sequence number " + msg.get_counter());
  }

  private static void usage() {
    System.err.println("usage: TestSerial [-comm <source>]");
  }

  public static void main(String[] args) throws Exception {

    String source = null;
    String rf_power = null;
    if (args.length == 3) {
      if (!args[0].equals("-comm")) {
	usage();
	System.exit(1);
      }
      source = args[1];
      rf_power= args[2];
    }
    else if (args.length != 0) {
      usage();
      System.exit(1);
    }
    System.out.println("trying to set RFpower from here");
    System.out.println("RfPower:"+args[2]);
    PhoenixSource phoenix;

    if (source == null) {
      phoenix = BuildSource.makePhoenix(PrintStreamMessenger.err);
    }
    else {
      phoenix = BuildSource.makePhoenix(source, PrintStreamMessenger.err);
    }

    MoteIF mif = new MoteIF(phoenix);
    TestSerial serial = new TestSerial(mif);
    serial.sendPackets(rf_power);
  }

}

TestSerialC.nc

#include "Timer.h"
#include "TestSerial.h"

module TestSerialC {
  uses {
    interface SplitControl as Control;
    interface Leds;
    interface Boot;
    interface Receive;
    interface AMSend;
    interface Timer<TMilli> as MilliTimer;
    interface Packet;
    interface CC2420Packet;
  }
}
implementation {

  message_t packet;

  bool locked = FALSE;
  uint16_t counter = 0;
//  uint8_t TRANS_POWER = 1;

  event void Boot.booted() {
    call Control.start();
  }

  event void MilliTimer.fired() {
    counter++;
    if (locked) {
      return;
    }
    else {
      test_serial_msg_t* rcm = (test_serial_msg_t*)call Packet.getPayload(&packet, sizeof(test_serial_msg_t));
      if (rcm == NULL) {return;}
      if (call Packet.maxPayloadLength() < sizeof(test_serial_msg_t)) {
	return;
      }

      rcm->counter = counter;
      call CC2420Packet.setPower(&packet,rcm->rfpower);
      if (call AMSend.send(AM_BROADCAST_ADDR, &packet, sizeof(test_serial_msg_t)) == SUCCESS) {
	locked = TRUE;
      }
    }
  }

  event message_t* Receive.receive(message_t* bufPtr, 
				   void* payload, uint8_t len) {
    if (len != sizeof(test_serial_msg_t)) {return bufPtr;}
    else {
      test_serial_msg_t* rcm = (test_serial_msg_t*)payload;
      if (rcm->counter & 0x1) {
	call Leds.led0On();
      }
      else {
	call Leds.led0Off();
      }
      if (rcm->counter & 0x2) {
	call Leds.led1On();
      }
      else {
	call Leds.led1Off();
      }
      if (rcm->counter & 0x4) {
	call Leds.led2On();
      }
      else {
	call Leds.led2Off();
      }
      return bufPtr;
    }
  }

  event void AMSend.sendDone(message_t* bufPtr, error_t error) {
    if (&packet == bufPtr) {
      locked = FALSE;
    }
  }

  event void Control.startDone(error_t err) {
    if (err == SUCCESS) {
      call MilliTimer.startPeriodic(1000);
    }
  }
  event void Control.stopDone(error_t err) {}
}

TestSerialAppC.nc

#include "TestSerial.h"

configuration TestSerialAppC {}
implementation {
  components TestSerialC as App, LedsC, MainC;
  components SerialActiveMessageC as AM;
  components new TimerMilliC();
  components CC2420ActiveMessageC;

  App.Boot -> MainC.Boot;
  App.Control -> AM;
  App.Receive -> AM.Receive[AM_TEST_SERIAL_MSG];
  App.AMSend -> AM.AMSend[AM_TEST_SERIAL_MSG];
  App.Leds -> LedsC;
  App -> CC2420ActiveMessageC.CC2420Packet;
  App.MilliTimer -> TimerMilliC;
  App.Packet -> AM;
}

TestSerial.h

#ifndef TEST_SERIAL_H
#define TEST_SERIAL_H

typedef nx_struct test_serial_msg {
  nx_uint16_t counter;
  nx_uint16_t rfpower;
} test_serial_msg_t;

enum {
  AM_TEST_SERIAL_MSG = 0x89,
};

#endif

Thanks.
Jenis

Yves S. Garret | 22 May 2013 19:50
Picon

How would you compile this simple example?

Hi all,

Just trying tinyOS out.  I was following this example:
http://docs.tinyos.net/tinywiki/index.php/The_simplest_TinyOS_program

Now, when I get to the part about running make, I get this error:
$ make micaz
make: *** No rule to make target `micaz'.  Stop.
$ make
make: *** No targets.  Stop.

Which makes sense, Makefiles do not work this way.  But, then how?
<div><div dir="ltr">
<div>
<div>
<div>
<div>Hi all,<br><br>
</div>Just trying tinyOS out.&nbsp; I was following this example:<br><a href="http://docs.tinyos.net/tinywiki/index.php/The_simplest_TinyOS_program">http://docs.tinyos.net/tinywiki/index.php/The_simplest_TinyOS_program</a><br><br>
</div>Now, when I get to the part about running make, I get this error:<br>$ make micaz<br>make: *** No rule to make target `micaz'.&nbsp; Stop.<br>$ make<br>make: *** No targets.&nbsp; Stop.<br><br>
</div>Which makes sense, Makefiles do not work this way.&nbsp; But, then how?</div>
</div></div>
Picon

BLIP PC client/server application

Dear all

I am learning to use Blip following the tutorials.

One of my final objectives is that remote nodes sensing information will be saved in a database on the computer side. The idea is to use UDPecho as base application, add code for sensor reading and open an UDP socket by sending the data up to the computer throught the edge router with the PppRouter application loaded on it.

I found in the folder "/opt/tinyos-2.1.2/support/sdk/c/blip/libtcp" the example "test_server.c". Could I use this C programm as starting point to develop a PC application? Can I send/receive data to/from remote nodes using UDP connections?

Thanks in advance.

Best regards

Juan Antonio

<div><p>Dear all<br><br>I am learning to use Blip following the tutorials.<br><br>One
 of my final objectives is that remote nodes sensing information will be
 saved in a database on the computer side. The idea is to use UDPecho as
 base application, add code for sensor reading and open an UDP socket by
 sending the data up to the computer throught the edge router with the 
PppRouter application loaded on it.<br><br>I found in the folder "/opt/tinyos-2.1.2/support/sdk/c/blip/libtcp"
 the example "test_server.c". Could I use this C programm as starting 
point to develop a PC application? Can I send/receive data to/from 
remote nodes using UDP connections?<br><br>Thanks in advance.<br><br>Best regards<br><br>Juan Antonio<span></span><span class="HOEnZb"><br></span></p></div>

Gmane