Jhon James | 23 Mar 22:58 2013
Picon

Help Regarding BLIP which hardware to chose

Dear all,

I am trying to run the BLIP implementation for 6LowPAN in TinyOS for the Z1 motes I have a problem and the following error appears.

/opt/msp430-47/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: region `ram' overflowed by 400 bytes
collect2: error: ld returned 1 exit status

make: *** [exe0] Error 1

Now I followed this link to reduce the size of the BLIP for Z1 motes here (http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0)

but still the compiler gives above error. Can anyone tell what modifications were there to run that on TELOS ?? Is there any better hardware to support this??? I don't know what is the problem. As indicated on the page (http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0) I did modifications as 

// UDP shell on port 2000 // components UDPShellC;   // prints the routing table // components RouteCmdC;in PppRouterC.nc file and added defines in make #define MAX_PARENT 1 #define ROUTE_TABLE_SZ 3Still having same problem. Can anyone please help out??

<div><div dir="ltr">Dear all,<div><br></div>
<div>I am trying to run the BLIP&nbsp;implementation&nbsp;for 6LowPAN in TinyOS for the Z1 motes I have a problem and the following error appears.</div>
<div><br></div>
<div>
<span>/opt/msp430-47/bin/../lib/gcc/≤/span><span>msp430/4.7.0/../../../../≤/span><span>msp430/bin/ld: region `ram' overflowed by 400 bytes</span><br><span>collect2: error: ld returned 1 exit status</span><div>
<br>make: *** [exe0] Error 1</div>
</div>
<div><br></div>
<div>
Now I followed this link to reduce the size of the BLIP for Z1 motes here (<a href="http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0">http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0</a>)</div>
<div>
<br>
</div>
<div>but still the compiler gives above error. Can anyone tell what modifications were there to run that on TELOS ?? Is there any better hardware to support this??? I don't know what is the problem. As indicated on the page (<a href="http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0">http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0</a>) I did modifications as&nbsp;</div>
<div><br></div>
<div>
<span class="sy0">//</span> UDP shell on port <span class="nu0">2000</span>
<span class="sy0">//</span> components UDPShellC;
&nbsp;
<span class="sy0">//</span> prints the routing table
<span class="sy0">//</span> components RouteCmdC;in PppRouterC.nc file and added defines in make 
<span class="co0">#define MAX_PARENT 1</span>
<span class="co0">#define ROUTE_TABLE_SZ 3</span><span class="co0">Still having same problem. Can anyone please help out??</span>
<br>
<br>
</div>
</div></div>
amrita ghosal | 23 Mar 07:08 2013
Picon

help in xubontos

I am working in Xubontos. Can anyone please let me know how to see the output of any program? (without the use of motes) Till compilation I am able to do but after that not able o proceed further on how to see the result. You can explain with the blink example.

Thanks & Regards
Amrita
<div><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">I am working in Xubontos. Can anyone please let me know how to see the output of any program? (without the use of motes) Till compilation I am able to do but after that not able o proceed further on how to see the result. You can explain with the blink example.<br><br>Thanks &amp; Regards<br>
Amrita</td></tr></table></div>
Xiaohui Liu | 23 Mar 05:33 2013

signal attenuation depends on tx power?

Hi everyone,


Does signal attenuation depend on transmission power? Based on my limited knowledge of physics, it does not. However, in measurement, noticeable difference is observed. 

For a sender and receiver, the measured signal attenuation of the link is 56 dB when the sender transmits at power level 3 while the signal attenuation for the same link is 57 dB at power level 31.

Another related question, according to CC2420 datasheet, the tx power is -25 dBm when power level is 3. Is the actual tx power equal to -25 dBm or there is some variation depending on the specific hardware? How large is the typical variation if any?

Look forward to your explanation. Thanks in advance.

--
-Xiaohui Liu
TelosB
<div>
<p>Hi everyone,</p>
<div><br></div>
<div>Does signal attenuation depend on transmission power? Based on my limited knowledge of physics, it does not. However, in measurement, noticeable difference is observed.&nbsp;</div>
<div><br></div>
<div>For a sender and receiver, the measured signal attenuation of the link is 56 dB when the sender transmits at power level 3 while the signal attenuation for the same link is 57 dB at power level 31.</div>
<div><br></div>
<div>Another related question, according to CC2420 datasheet, the tx power is -25 dBm when power level is 3. Is the actual tx power equal to -25 dBm or there is some variation depending on the specific hardware? How large is the typical variation if any?</div>
<div><br></div>
<div>Look forward to your explanation. Thanks in advance.</div>
<div>
<div><br></div>-- <br>-Xiaohui Liu<div>TelosB</div>
<div>TinyOS 2.1.2<br><div><a href="http://www.cs.wayne.edu/xliu/" target="_blank">www.cs.wayne.edu/xliu/</a></div>
</div>
</div>
</div>
Meriam Khochtali | 22 Mar 11:50 2013
Picon

jTossim


hello, 

am using xubuntos2.1 with a VMplayer. 
i use tossim to simulate my protocol.
i want to use jtossim to visualize the network topology and different parameters
of performance evaluation. 
i facing a big problem with installig java6 which is required by jtossim (as the tuto)
so could any one help me to install this jTossim

thank you in advance 
<div><div>
<div><br></div>
<div>hello,&nbsp;</div>
<div><br></div>
<div>am using xubuntos2.1 with a VMplayer.&nbsp;</div>
<div>i use tossim to simulate my protocol.</div>
<div>i want to use jtossim to visualize the network topology and different parameters</div>
<div>of performance evaluation.&nbsp;</div>
<div>i facing a big problem with installig java6 which is required by jtossim (as the tuto)</div>
<div>so could any one help me to install this jTossim</div>
<div><br></div>
<div>thank you in advance&nbsp;</div>
</div></div>
ateb narjess | 21 Mar 16:17 2013
Picon

average noise floor of outdoor topology

Hi,
please in the configuration of an outdoor topology, is it necessary that the average noise floor is of -105 dBm, or I can choose any value ? and depending on what factor this value changes 
thank you in advance

<div><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">Hi,<div>please in the configuration of an outdoor topology, is it necessary that the&nbsp;<span>average noise floor is of -105 dBm, or I can choose any value ? and depending on what factor this value changes&nbsp;</span>
</div>
<div><span>thank you in advance</span></div>
<div><span><br></span></div>
</td></tr></table></div>
Shantanu Kanpartiwar | 21 Mar 07:28 2013
Picon

POSTING THE MAIL

THIS IS MAIL ID WHERE I WANT TO RECEIVE THE ANSWER RELATED TO QUERIES
SHANTANUKSMAILBOX <at> GMAIL.COM
He Dajiang (I2R | 21 Mar 03:59 2013
Picon

software reset micaz

Hi all,

I want to do software reset of micaz in my tinyos app when some condition occurs.
I searched this list and find this post:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-November/021118.html, which
shows the procedure to achieve my goal.

-enable watchdog (check the WDT interface provided by WDTC) with very small timeout ( say few ms).
-Run a loop which consumes fairly more time then the timeout for watchdog. 

However, I cannot find wdt WDT interface in tos/interfaces directory and any wdtc implemention. I guess it
is related to mcu watchdog, am i right?

I also found this post:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-November/037055.html, and
studied its sample nc code. But the code is not complete, and I cannot find in tos tree where to locate wdt_enable(WDTO_1S).

Can anyone help on this? Thx.

Cheers
DJ

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."

pirusaez | 20 Mar 14:56 2013

about mviz code

why does it use RandomC? What is the need of it in the program?
Thanks

--
View this message in context: http://tinyos-help.10906.n7.nabble.com/about-mviz-code-tp22877.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
Jhon James | 20 Mar 11:54 2013
Picon

Help Regarding the Border Router On Z1 motes

Hello Help Desk, Antonio and Eric,

I was trying to install 6LowPAN Blip implementation on Z1 motes using
the following link

http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0

I have the latest release of the TinyOs and the problem that I am
currently having is that when I try to install the Ppp_Router example
I get the following error

 make z1 blip install,1

/root/top/t2_cur/tinyos-release/tos/lib/ppp/LcpAutomatonP.nc: In
function ‘LcpAutomatonP__0__processEventActions_’:
/root/top/t2_cur/tinyos-release/tos/lib/ppp/LcpAutomatonP.nc:543:93:
warning: variable ‘in_actions’ set but not used
[-Wunused-but-set-variable]
/usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld:
build/z1/main.exe section `.bss' will not fit in region `ram'
/usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region
`ram' overflowed by 1534 bytes
collect2: ld returned 1 exit status
make: *** [exe0] Error 1

Now I believe that the latest tinyos-release does not contain the
compressed implementation of the blip for z1 motes. Is that right???

Also how we know from here that the node id is 1?? I mean I did not
burn the node id. The motes are new motes that I recieved almost a
month ago. I only burnt the LED blink code just to blink the LED's and
they work perfectly okay.

Also I want to ask that when I do

make z1 install

it installs the firmware in ttyUSB0 device and i believe that MOTECOM
variable tell which one to program. Now I have a 3 nodes one is
ttyUSB0, other is ttyUSB1 and the third is ttyUSB2. What argument to
pass in order to access the particular node??

Regard's

Yuan He | 20 Mar 08:36 2013

[CFP] Special Issue on Smart City, International Journal of Distributed Sensor Networks

International Journal of Distributed Sensor Networks

Special Issue on      Smart City


http://www.hindawi.com/journals/ijdsn/si/179450/cfp/

Call for Papers 

City is taking a key role in humanity development. With the continuous expansion of urban populations nowadays, there are increasing needs in many aspects related to urban living, such as environment governance, public safety, city planning, industry facilitation, resource/energy utilization, traffic management, telemedicine/homecare, interpersonal communications, social activities, and entertainments. Failure in addressing any of the above needs may threaten the sustainable development of a city.

Smart city may be the solution, which generally relies on the widely distributed smart devices to monitor the urban environment in real time, to react in time, to establish automated control, to collect information for intelligent decision making, and to facilitate various services and improve the quality of urban living. The distributed network of intelligent sensor nodes, as well as the data centers/clouds where the sensor data are stored and shared, constructs the main body of smart city infrastructure. Participatory sensing plays an indispensable role in the emerging initiatives of smart city, which retrieves sensor data from groups of people or communities and makes those data collectively form knowledge. The proliferation of personal mobile devices and development of online social networks make participatory sensing viable at large scale, but induce many open problems at the same time.

The purpose of this special issue is to show the variety of research being conducted in the area of smart city and participatory sensing. In particular, this special issue will focus on both theoretical and practical aspects of smart city and its applications. Potential topics include, but are not limited to:

l   Design of hardware, software, and networking in smart city applications
l   Participatory sensing control and actuation
l   Crowdsourcing and cloud approaches for data collection, storage, and access
l   Cross-layer protocols and interoperations across heterogeneous platforms
l   Cooperative sensing and multisource data fusion in smart city applications
l   Information interaction of sensor network with cellular network and Internet
l   Time and location estimation and mobility management
l   Energy management and harvesting for long-term operation
l   Experience with real-world implementation and validation of systems
l   Measurements and characterization of innovative smart city applications
l   Business, service, and billing models: incentive mechanisms
l   Security and privacy issues

Before submission authors should carefully read over the journal’s Author Guidelines, which are located at http://www.hindawi.com/journals/ijdsn/guidelines/. Prospective authors should submit an electronic copy of their complete manuscript through the journal Manuscript Tracking System at http://mts.hindawi.com/submit/journals/ijdsn/smc/ according to the following timetable:

Manuscript Due                Friday, 5 July 2013
First Round of Reviews      Friday, 27 September 2013
Publication Date               Friday, 22 November 2013

Guest Editors

Yuan He, Tsinghua University, Beijing, China
Ivan Stojmenovic, University of Ottawa, Ottawa, ON, Canada
Yunhuai Liu, The Third Research Institute, Ministry of Public Security, Shanghai, China
Yu Gu, Singapore University of Technology and Design, Singapore

 
<div>
<p>International Journal of Distributed Sensor Networks<br><br>Special Issue on &nbsp; &nbsp; &nbsp;Smart City</p>
<div><br></div>
<div>
<a href="http://www.hindawi.com/journals/ijdsn/si/179450/cfp/">http://www.hindawi.com/journals/ijdsn/si/179450/cfp/</a><br><br>Call for Papers&nbsp;<br><br>City is taking a key role in humanity development. With the continuous expansion of urban populations nowadays, there are increasing needs in many aspects related to urban living, such as environment governance, public safety, city planning, industry facilitation, resource/energy utilization, traffic management, telemedicine/homecare, interpersonal communications, social activities, and entertainments. Failure in addressing any of the above needs may threaten the sustainable development of a city.<br><br>Smart city may be the solution, which generally relies on the widely distributed smart devices to monitor the urban environment in real time, to react in time, to establish automated control, to collect information for intelligent decision making, and to facilitate various services and improve the quality of urban living. The distributed network of intelligent sensor nodes, as well as the data centers/clouds where the sensor data are stored and shared, constructs the main body of smart city infrastructure. Participatory sensing plays an indispensable role in the emerging initiatives of smart city, which retrieves sensor data from groups of people or communities and makes those data collectively form knowledge. The proliferation of personal mobile devices and development of online social networks make participatory sensing viable at large scale, but induce many open problems at the same time.<br><br>The purpose of this special issue is to show the variety of research being conducted in the area of smart city and participatory sensing. In particular, this special issue will focus on both theoretical and practical aspects of smart city and its applications. Potential topics include, but are not limited to:<br><br>l &nbsp; Design of hardware, software, and networking in smart city applications<br>l &nbsp; Participatory sensing control and actuation<br>l &nbsp; Crowdsourcing and cloud approaches for data collection, storage, and access<br>l &nbsp; Cross-layer protocols and interoperations across heterogeneous platforms<br>

l &nbsp; Cooperative sensing and multisource data fusion in smart city applications<br>l &nbsp; Information interaction of sensor network with cellular network and Internet<br>l &nbsp; Time and location estimation and mobility management<br>

l &nbsp; Energy management and harvesting for long-term operation<br>l &nbsp; Experience with real-world implementation and validation of systems<br>l &nbsp; Measurements and characterization of innovative smart city applications<br>l &nbsp; Business, service, and billing models: incentive mechanisms<br>

l &nbsp; Security and privacy issues<br><br>Before submission authors should carefully read over the journal&rsquo;s Author Guidelines, which are located at <a href="http://www.hindawi.com/journals/ijdsn/guidelines/">http://www.hindawi.com/journals/ijdsn/guidelines/</a>. Prospective authors should submit an electronic copy of their complete manuscript through the journal Manuscript Tracking System at <a href="http://mts.hindawi.com/submit/journals/ijdsn/smc/">http://mts.hindawi.com/submit/journals/ijdsn/smc/</a> according to the following timetable:<br><br>Manuscript Due &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Friday, 5 July 2013<br>First Round of Reviews &nbsp; &nbsp; &nbsp;Friday, 27 September 2013<br>Publication Date &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Friday, 22 November 2013<br><br>Guest Editors<br><br>Yuan He, Tsinghua University, Beijing, China<br>

Ivan Stojmenovic, University of Ottawa, Ottawa, ON, Canada<br>Yunhuai Liu, The Third Research Institute, Ministry of Public Security, Shanghai, China<br>Yu Gu, Singapore University of Technology and Design, Singapore<br><br>
&nbsp;</div>
</div>
Jhon James | 19 Mar 09:20 2013
Picon

Re: Help Regarding TinyOS Setup

Hello Eric,



On Tue, Mar 19, 2013 at 8:12 AM, Eric Decker <cire831 <at> gmail.com> wrote:


On Tue, Mar 19, 2013 at 12:55 AM, Jhon James <softtronix <at> gmail.com> wrote:
Hello Eric and Antonio,

I followed the steps that you mentioned in you previous email. This is what I did. I installed the latest msp430-gcc. I am using the Z1 motes Eric. Here is the result for my command of

$ msp430-gcc --version

msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I downloaded the latest tinyos using the following command

git clone -v git://github.com/tinyos/tinyos-release


this created a directory called tinyos-release  in your current working directory.    Which is what?  

  I downloaded using above command which created a directory named tinyos-2.x. The directory is placed in /home folder



 



after downloading when I go to the apps/Blink directory. Running there make results in the following

make: *** No rule to make target `z1'.  Stop.

I setup the environment using this script that is mentioned here

https://github.com/tp-freeforall/prod/blob/tp-master/00b_Development_Environment

#!/bin/sh
 
MOTECOM="serial <at> /dev/ttyUSB0:Z1"
 
TOSROOT=~/home/tinyos-2.x

Try 

TOSROOT=~/home/tinyos-release 

or where ever you actually put it.



It is also possible that the build tools don't understand "~" (yes I know the document uses "~")    But what I use in my actual rc files that set the environment variables uses "$HOME" instead of "~".

Alright I tried but same result. BTW here is the full path for the blink  app (/home//tinyos-2.x/apps/Blink)

 
 
TOSDIR=$TOSROOT/tos
 
MAKERULES=$TOSROOT/support/make/Makerules
CLASSPATH=.:$TOSROOT/support/sdk/java/tinyos.jar
 
PYTHONPATH=$TOSROOT/support/sdk/python:$PYTHONPATH
 
export MAKERULES TOSDIR TOSROOT CLASSPATH PYTHONPATH
export MOTECOM

 
export TOSROOT
export TOSDIR
export CLASSPATH
export MAKERULES



Is there anything still missing???

Regard's



On Mon, Mar 18, 2013 at 8:11 AM, Eric Decker <cire831 <at> gmail.com> wrote:

I don't know what is going wrong..   I'm not a mind reader and you haven't provided any details about what is going wrong.

But I am not going to debug the screwy mess of instructions you are following.   Sorry about the state it is in, I haven't taken the time to fix it.   And neither has anyone else.


Here is a pointer to the instructions I use....     https://github.com/tp-freeforall/prod/blob/tp-master/00b_Development_Environment


I recommend that you DON'T install the TinyOS 2.1.2 sources from the stanford archive.   For one thing it installs into /opt/tinyos-2.1.2 which is weird (and requires root), and the archive has various prerequisists which causes other problems.

What toolchains do you actually need?   Just install those.   For msp430 use the msp430-46.

I think for the avr toolchain you should get that from the stanford repository but just install what you need.   Don't use the bundles.

For the tinyos source follow the 00b_Development_Environment instructions above.    Something like...

cd
mkdir -p w/tinyos-main
cd ~/w/tinyos-main
git clone git://github.com/tinyos/tinyos-main.git tinyos-2.x


The above will get you the current tinyos development repository.

If you want the released version of tinyos (2.1.2) then change the above URL to git://github.com/tinyos/tinyos-release.git.   I would recommend you put in a different directory,  ie.   ~/w/tinyos-release/tinyos-2.x

This will create all the trees in your local directory.   You don't need root and it doesn't put it into a strange place like /opt.


You should be able to execute

msp430-gcc --version

and get 4.6.3


You should be able to 

cd ~/w/tinyos-main/tinyos-2.x/apps/Blink
make z1

and have it work.



On Mon, Mar 18, 2013 at 12:13 AM, Jhon James <softtronix <at> gmail.com> wrote:
Alright here are the steps that I followed now.

$ sudo echo "deb http://tinyos.stanford.edu/tinyos/dists/ubuntu lucid main" >> /etc/apt/sources.list $ sudo apt-get update $ sudo apt-get install tinyos-2.1.2After these steps I run the following command

$ sudo dpkg -P `dpkg -l nesc '*tinyos*' | grep ^ii | awk '{ print $2 }' | xargs` $ sudo apt-get clean

deb http://tinyprod.net/repos/debian squeeze main deb http://tinyprod.net/repos/debian msp430-46 main $ cd /etc/apt/sources.list.d $ sudo echo "deb http://tinyprod.net/repos/debian squeeze main" >> tinyprod-debian.list $ sudo echo "deb http://tinyprod.net/repos/debian msp430-46 main" >> tinyprod-debian.list
$ sudo apt-get update $ sudo apt-get install nesc tinyos-tools msp430-46 avr-tinyos

After I shall be set the enviroment variables as follows

#! /usr/bin/env bash # Here we setup the environment # variables needed by the tinyos # make system   echo "Setting up for TinyOS" export TOSROOT= export TOSDIR= export MAKERULES=   #TOSROOT="/opt/tinyos-2.1.1" TOSROOT="/opt/tinyos-2.1.2" TOSDIR="$TOSROOT/tos" CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar MAKERULES="$TOSROOT/support/make/Makerules" #export PATH=/opt/msp430-z1/bin:$PATH #export PATH=/opt/msp430-47/bin:$PATH   export TOSROOT export TOSDIR export CLASSPATH export MAKERULES

and after this I shall be able to run this command

make z1

Are these the right steps???

I tried this but I think something is missing its not working like this









On Mon, Mar 18, 2013 at 5:19 AM, Eric Decker <cire831 <at> gmail.com> wrote:


On Sun, Mar 17, 2013 at 9:45 PM, Jhon James <softtronix <at> gmail.com> wrote:
Yeah found it, sorry about that...:-( I just scroll the page down, thanks for helping out. I have studied that the BLIP stack from tinyOS for 6LoWPAN is around 9KB while the memory for Zolertia Z1 motes is 8KB

You have to keep seperate Code space (ROM/Flash) vs. RAM space.   The Z1 has 8KB of RAM and 92KB of ROM.
 
and there is some recent implementation that has a size of 8170bytes Is that included in the main stream???

Don't know.   There has been some bitrot so I don't know if your experience will just work.   I suspect you will have to get it working again.

The person originally responsible doesn't seem to be active anymore.
 
I am new with TinyOS and I want to use the 6LoWPAN tinyOS functionality. Ofcourse i have to start with basics. I also read that the current version for the BLIP is 2.0 included in TinyOS.


On Mon, Mar 18, 2013 at 4:30 AM, Eric Decker <cire831 <at> gmail.com> wrote:


On Sun, Mar 17, 2013 at 9:20 PM, Jhon James <softtronix <at> gmail.com> wrote:
Hello Eric,

I followed the instruction given here
http://tinyprod.net/repos/debian/

at this command I get the following error

sudo apt-get update

Hit http://tinyos.stanford.edu lucid/main i386 Packages
Ign http://tinyprod.net squeeze/main Translation-en_US
Ign http://tinyprod.net squeeze/main Translation-en
Ign http://tinyprod.net msp430-46/main Translation-en_US
Ign http://tinyprod.net msp430-46/main Translation-en
Ign http://tinyos.stanford.edu lucid/main Translation-en_US
Ign http://tinyos.stanford.edu lucid/main Translation-en
Fetched 4,374 B in 6s (686 B/s)
Reading package lists... Done
W: GPG error: http://tinyprod.net squeeze InRelease: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY DB5387FB34EC655A
W: GPG error: http://tinyprod.net msp430-46 InRelease: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY DB5387FB34EC655A

You didn't follow the key installation instructions that are part of the instructions.

 


you should also probably lose the stanford.edu reference.   The Stanford repository is inconsistent.
 


On Mon, Mar 18, 2013 at 12:57 AM, Eric Decker <cire831 <at> gmail.com> wrote:
>
>
> On Sun, Mar 17, 2013 at 5:52 PM, Eric Decker <cire831 <at> gmail.com> wrote:
>>
>>
>>
>> On Sun, Mar 17, 2013 at 8:32 AM, Antonio Linan <alinan <at> zolertia.com>
>> wrote:
>>>
>>> Mmm instructions need to be updated to reflect the new repo at github...
>>>
>>> I'd install the toolchain following the instructions given in here:
>>>
>>> http://tinyprod.net/debian-dev/
>>
>>
>> should be...   http://tinyprod.net/repos/debian/
>>
>
>
>



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





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





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





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


<div><div dir="ltr">Hello Eric,<br><br><br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 8:12 AM, Eric Decker <span dir="ltr">&lt;<a href="mailto:cire831 <at> gmail.com" target="_blank">cire831 <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<br><br><div class="gmail_quote">
<div class="im">On Tue, Mar 19, 2013 at 12:55 AM, Jhon James <span dir="ltr">&lt;<a href="mailto:softtronix <at> gmail.com" target="_blank">softtronix <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">Hello Eric and Antonio,<br><br>I followed the steps that you mentioned in you previous email. This is what I did. I installed the latest msp430-gcc. I am using the Z1 motes Eric. Here is the result for my command of<br><br>$ msp430-gcc --version<br><br>msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)<br>Copyright (C) 2011 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.&nbsp; There is NO<br>

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>I downloaded the latest tinyos using the following command<br><br>git clone -v git://<a href="http://github.com/tinyos/tinyos-release" target="_blank">github.com/tinyos/tinyos-release</a>
</div>

</blockquote>
<div><br></div>
<div><br></div>
</div>
<div>this created a directory called tinyos-release &nbsp;in your current working directory. &nbsp; &nbsp;Which is what? &nbsp;</div>
</div>
</blockquote>
<div>
<br>&nbsp; I downloaded using above command which created a directory named tinyos-2.x. The directory is placed in /home folder<br><br><br><br>&nbsp;</div>
<blockquote class="gmail_quote"><div class="gmail_quote">
<div class="im">
<div><br></div>
<blockquote class="gmail_quote">

<div dir="ltr">
<br><br>after downloading when I go to the apps/Blink directory. Running there make results in the following <br><br>make: *** No rule to make target `z1'.&nbsp; Stop.<br><br>I setup the environment using this script that is mentioned here<br><br><a href="https://github.com/tp-freeforall/prod/blob/tp-master/00b_Development_Environment" target="_blank">https://github.com/tp-freeforall/prod/blob/tp-master/00b_Development_Environment</a><br><br>#!/bin/sh<br>&nbsp; <br>

MOTECOM="serial <at> /dev/ttyUSB0:Z1"<br>
&nbsp; <br>TOSROOT=~/home/tinyos-2.x<br>
</div>
</blockquote>
<div><br></div>
</div>
<div>Try&nbsp;</div>
<div><br></div>
<div>TOSROOT=~/home/tinyos-release&nbsp;</div>
<div><br></div>
<div>or where ever you actually put it.</div>
<div><br></div>
<div>
<br>
</div>
<div><br></div>
<div>It is also possible that the build tools don't understand "~" (yes I know the document uses "~") &nbsp; &nbsp;But what I use in my actual rc files that set the environment variables uses "$HOME" instead of "~".</div>
<div><div class="h5">
<div><br></div>
</div></div>
</div></blockquote>
<div>Alright I tried but same result. BTW here is the full path for the blink&nbsp; app (/home//tinyos-2.x/apps/Blink)<br><br>&nbsp;</div>
<blockquote class="gmail_quote">
<div class="gmail_quote"><div><div class="h5">
<div></div>
<div>&nbsp;</div>
<blockquote class="gmail_quote">
<div dir="ltr">TOSDIR=$TOSROOT/tos<br>&nbsp; <br>MAKERULES=$TOSROOT/support/make/Makerules<br>
CLASSPATH=.:$TOSROOT/support/sdk/java/tinyos.jar<br>
&nbsp; <br>PYTHONPATH=$TOSROOT/support/sdk/python:$PYTHONPATH<br>
&nbsp; <br>export MAKERULES TOSDIR TOSROOT CLASSPATH PYTHONPATH<br>export MOTECOM<div>
<br>&nbsp;<br>export TOSROOT<br>export TOSDIR<br>export CLASSPATH<br>export MAKERULES<br><br><br><br>
</div>Is there anything still missing???<br><br>Regard's<div><div>
<br><br><br><div class="gmail_quote">On Mon, Mar 18, 2013 at 8:11 AM, Eric Decker <span dir="ltr">&lt;<a href="mailto:cire831 <at> gmail.com" target="_blank">cire831 <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div><br></div>I don't know what is going wrong.. &nbsp; I'm not a mind reader and you haven't provided any details about what is going wrong.<div><br></div>
<div>But I am not going to debug the screwy mess of instructions you are following. &nbsp; Sorry about the state it is in, I haven't taken the time to fix it. &nbsp; And neither has anyone else.</div>

<div><br></div>
<div><br></div>
<div>Here is a pointer to the instructions I use.... &nbsp; &nbsp;&nbsp;<a href="https://github.com/tp-freeforall/prod/blob/tp-master/00b_Development_Environment" target="_blank">https://github.com/tp-freeforall/prod/blob/tp-master/00b_Development_Environment</a>
</div>

<div><br></div>
<div><br></div>
<div>I recommend that you DON'T&nbsp;install the TinyOS 2.1.2 sources from the stanford archive. &nbsp; For one thing it installs into /opt/tinyos-2.1.2 which is weird (and requires root), and the archive has various prerequisists which causes other problems.</div>

<div><br></div>
<div>What toolchains do you actually need? &nbsp; Just install those. &nbsp; For msp430 use the msp430-46.</div>
<div><br></div>
<div>I think for the avr toolchain you should get that from the stanford repository but just install what you need. &nbsp; Don't use the bundles.</div>

<div><br></div>
<div>For the tinyos source follow the 00b_Development_Environment instructions above. &nbsp; &nbsp;Something like...</div>
<div><br></div>
<div>cd</div>
<div>mkdir -p w/tinyos-main</div>
<div>cd ~/w/tinyos-main</div>
<div>

git clone&nbsp;git://<a href="http://github.com/tinyos/tinyos-main.git" target="_blank">github.com/tinyos/tinyos-main.git</a> tinyos-2.x</div>
<div><br></div>
<div><br></div>
<div>The above will get you the current tinyos development repository.</div>

<div><br></div>
<div>If you want the released version of tinyos (2.1.2) then change the above URL to&nbsp;git://<a href="http://github.com/tinyos/tinyos-release.git" target="_blank">github.com/tinyos/tinyos-release.git</a>. &nbsp; I would recommend you put in a different directory, &nbsp;ie. &nbsp; ~/w/tinyos-release/tinyos-2.x</div>

<div><br></div>
<div>This will create all the trees in your local directory. &nbsp; You don't need root and it doesn't put it into a strange place like /opt.</div>
<div><br></div>
<div><br></div>
<div>You should be able to execute</div>

<div><br></div>
<div>msp430-gcc --version</div>
<div><br></div>
<div>and get 4.6.3</div>
<div><br></div>
<div><br></div>
<div>You should be able to&nbsp;</div>
<div><br></div>
<div>cd ~/w/tinyos-main/tinyos-2.x/apps/Blink</div>
<div>make z1</div>

<div><br></div>
<div>and have it work.</div>
<div><div>
<div><br></div>
<div><br></div>
<div>
<br><div class="gmail_quote">On Mon, Mar 18, 2013 at 12:13 AM, Jhon James <span dir="ltr">&lt;<a href="mailto:softtronix <at> gmail.com" target="_blank">softtronix <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">Alright here are the steps that I followed now.<br><br><span>$ sudo</span> <span>echo</span> <span>"deb <a href="http://tinyos.stanford.edu/tinyos/dists/ubuntu" target="_blank">http://tinyos.stanford.edu/tinyos/dists/ubuntu</a> lucid main"</span> <span>&gt;&gt;</span> <span>/</span>etc<span>/</span>apt<span>/</span>sources.list
$ <span>sudo</span> <span>apt-get</span> update
$ <span>sudo</span> <span>apt-get</span> <span>install</span> tinyos<span>-2.1</span><span>.2</span>After these steps I run the following command <br><br>  $ sudo dpkg -P `dpkg -l nesc '*tinyos*' | grep ^ii | awk '{ print $2 }' | xargs`
  $ sudo apt-get clean<br><br> deb <a href="http://tinyprod.net/repos/debian" target="_blank">http://tinyprod.net/repos/debian</a> squeeze main
  deb <a href="http://tinyprod.net/repos/debian" target="_blank">http://tinyprod.net/repos/debian</a> msp430-46 main

  $ cd /etc/apt/sources.list.d
  $ sudo echo "deb <a href="http://tinyprod.net/repos/debian" target="_blank">http://tinyprod.net/repos/debian</a> squeeze main" &gt;&gt; tinyprod-debian.list
  $ sudo echo "deb <a href="http://tinyprod.net/repos/debian" target="_blank">http://tinyprod.net/repos/debian</a> msp430-46 main" &gt;&gt; tinyprod-debian.list<br>  $ sudo apt-get update
  $ sudo apt-get install nesc tinyos-tools msp430-46 avr-tinyos<br><br>After I shall be set the enviroment variables as follows<br><br><span>#! /usr/bin/env bash</span>
<span># Here we setup the environment</span>
<span># variables needed by the tinyos </span>
<span># make system</span>
&nbsp;
<span>echo</span> <span>"Setting up for TinyOS"</span>
<span>export</span> <span>TOSROOT=</span>
<span>export</span> <span>TOSDIR=</span>
<span>export</span> <span>MAKERULES=</span>
&nbsp;
<span>#TOSROOT="/opt/tinyos-2.1.1"</span>
<span>TOSROOT=</span><span>"/opt/tinyos-2.1.2"</span>
<span>TOSDIR=</span><span>"$TOSROOT/tos"</span>
<span>CLASSPATH=</span><span>$CLASSPATH</span>:<span>$TOSROOT</span><span>/</span>support<span>/</span>sdk<span>/</span>java<span>/</span>tinyos.jar
<span>MAKERULES=</span><span>"$TOSROOT/support/make/Makerules"</span>
<span>#export PATH=/opt/msp430-z1/bin:$PATH</span>
<span>#export PATH=/opt/msp430-47/bin:$PATH</span>
&nbsp;
<span>export</span> TOSROOT
<span>export</span> TOSDIR
<span>export</span> CLASSPATH
<span>export</span> MAKERULES<br><br>and after this I shall be able to run this command<br><br>make z1<br><br>Are these the right steps???<br><br>I tried this but I think something is missing its not working like this<br><div><div>
<br><br><br><br><br><br><br><br><br><div class="gmail_quote">On Mon, Mar 18, 2013 at 5:19 AM, Eric Decker <span dir="ltr">&lt;<a href="mailto:cire831 <at> gmail.com" target="_blank">cire831 <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<br><br><div class="gmail_quote">
<div>On Sun, Mar 17, 2013 at 9:45 PM, Jhon James <span dir="ltr">&lt;<a href="mailto:softtronix <at> gmail.com" target="_blank">softtronix <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">Yeah found it, sorry about that...:-( I just scroll the page down, thanks for helping out. I have studied that the BLIP stack from tinyOS for 6LoWPAN is around 9KB while the memory for Zolertia Z1 motes is 8KB </div>

</blockquote>
<div><br></div>
</div>
<div>You have to keep seperate Code space (ROM/Flash) vs. RAM space. &nbsp; The Z1 has 8KB of RAM and 92KB of ROM.</div>
<div>
<div>&nbsp;</div>
<blockquote class="gmail_quote">

<div dir="ltr">and there is some recent implementation that has a size of 8170bytes Is that included in the main stream??? </div>
</blockquote>
<div><br></div>
</div>
<div>Don't know. &nbsp; There has been some bitrot so I don't know if your experience will just work. &nbsp; I suspect you will have to get it working again.</div>

<div><br></div>
<div>The person originally responsible doesn't seem to be active anymore.</div>
<div><div>
<div>&nbsp;</div>
<blockquote class="gmail_quote">

<div dir="ltr">
I am new with TinyOS and I want to use the 6LoWPAN tinyOS functionality. Ofcourse i have to start with basics. I also read that the current version for the BLIP is 2.0 included in TinyOS.<div><div>
<br><br><div class="gmail_quote">On Mon, Mar 18, 2013 at 4:30 AM, Eric Decker <span dir="ltr">&lt;<a href="mailto:cire831 <at> gmail.com" target="_blank">cire831 <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">

<br><br><div class="gmail_quote">
<div>On Sun, Mar 17, 2013 at 9:20 PM, Jhon James <span dir="ltr">&lt;<a href="mailto:softtronix <at> gmail.com" target="_blank">softtronix <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">

Hello Eric,<br><br>
I followed the instruction given here<br><a href="http://tinyprod.net/repos/debian/" target="_blank">http://tinyprod.net/repos/debian/</a><br><br>
at this command I get the following error<br><br>
sudo apt-get update<br><br>
Hit <a href="http://tinyos.stanford.edu" target="_blank">http://tinyos.stanford.edu</a> lucid/main i386 Packages<br>
Ign <a href="http://tinyprod.net" target="_blank">http://tinyprod.net</a> squeeze/main Translation-en_US<br>
Ign <a href="http://tinyprod.net" target="_blank">http://tinyprod.net</a> squeeze/main Translation-en<br>
Ign <a href="http://tinyprod.net" target="_blank">http://tinyprod.net</a> msp430-46/main Translation-en_US<br>
Ign <a href="http://tinyprod.net" target="_blank">http://tinyprod.net</a> msp430-46/main Translation-en<br>
Ign <a href="http://tinyos.stanford.edu" target="_blank">http://tinyos.stanford.edu</a> lucid/main Translation-en_US<br>
Ign <a href="http://tinyos.stanford.edu" target="_blank">http://tinyos.stanford.edu</a> lucid/main Translation-en<br>
Fetched 4,374 B in 6s (686 B/s)<br>
Reading package lists... Done<br>
W: GPG error: <a href="http://tinyprod.net" target="_blank">http://tinyprod.net</a> squeeze InRelease: The following<br>
signatures couldn't be verified because the public key is not<br>
available: NO_PUBKEY DB5387FB34EC655A<br>
W: GPG error: <a href="http://tinyprod.net" target="_blank">http://tinyprod.net</a> msp430-46 InRelease: The following<br>
signatures couldn't be verified because the public key is not<br>
available: NO_PUBKEY DB5387FB34EC655A<br>
</blockquote>
<div><br></div>
</div>
<div>You didn't follow the key installation instructions that are part of the instructions.</div>
<div><br></div>
<div>&nbsp;</div>

<div><br></div>
<div><br></div>
<div>you should also probably lose the <a href="http://stanford.edu" target="_blank">stanford.edu</a> reference. &nbsp; The Stanford repository is inconsistent.</div>
<div>
<div>&nbsp;</div>
<blockquote class="gmail_quote">

<br><br>
On Mon, Mar 18, 2013 at 12:57 AM, Eric Decker &lt;<a href="mailto:cire831 <at> gmail.com" target="_blank">cire831 <at> gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Mar 17, 2013 at 5:52 PM, Eric Decker &lt;<a href="mailto:cire831 <at> gmail.com" target="_blank">cire831 <at> gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Mar 17, 2013 at 8:32 AM, Antonio Linan &lt;<a href="mailto:alinan <at> zolertia.com" target="_blank">alinan <at> zolertia.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Mmm instructions need to be updated to reflect the new repo at github...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I'd install the toolchain following the instructions given in here:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="http://tinyprod.net/debian-dev/" target="_blank">http://tinyprod.net/debian-dev/</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; should be... &nbsp; <a href="http://tinyprod.net/repos/debian/" target="_blank">http://tinyprod.net/repos/debian/</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</blockquote>
</div>
</div>
<br><br clear="all"><div><div>
<div><br></div>-- <br>Eric B. Decker<br>Senior (over 50 :-) Researcher<br><br>
</div></div>
</blockquote>
</div>
<br>
</div></div>
</div>
</blockquote>
</div></div>
</div>
<div><div>
<br><br clear="all"><div><br></div>-- <br>Eric B. Decker<br>Senior (over 50 :-) Researcher<br><br>
</div></div>
</blockquote>
</div>
<br>
</div></div>
</div>
</blockquote>
</div>
<br><br clear="all"><div><br></div>-- <br>Eric B. Decker<br>Senior (over 50 :-) Researcher<br><br>
</div>
</div></div>
</blockquote>
</div>
<br>
</div></div>
</div>
</blockquote>
</div></div></div>
<div class="HOEnZb"><div class="h5">
<br><br clear="all"><div><br></div>-- <br>Eric B. Decker<br>Senior (over 50 :-) Researcher<br><br>
</div></div>
</blockquote>
</div>
<br>
</div></div>

Gmane