[Tinyos-help] mobility pattern

2011-07-07 Thread Akila Kiki

hi,
 i work on mobility models ,i have program written in java language ,it 
represent the mobility of users with their activities, the procedure is :
the user begins his displacement from home and takes the short path between the 
first activity and the  next activity.
my work  consist on   implementation of this simulator on nesC in tinyos-1.x
in the end i must generate the text file that contains the user identifier,the 
time witch is past from cell to
 another.
now i try to obtain data from text files to use it in my 
implementation ,but i don't arrive . i ask you how can i open a text 
file and obtain informations .
if you have implementation of random waypoint model please send it me.
help me please. it is my project of end of study.
thank you in advance.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] mobility models in tossim

2011-07-07 Thread lynda Hadjsaid
hi,
now i need to knew how mobility models are implemnted in tossim, are they 
implemented in python, please it is very imprtante!___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] mobility model in python

2011-07-07 Thread lynda Hadjsaid
where can i find mobility model in tossim whichis implemented in python___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] DymoNetworkC not fount

2011-07-07 Thread Shamali Gunawardena


Hi,

I am trying to run the Tymo/Dymo protocol. when I include component 
DymoNetworkC 
in the APPC file and make the file. itsays component DymoNetworkC not found. Do 
you know why I get this. do I have to do anything in the Maklefile.


Regards

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

[Tinyos-help] compile python program in tinyos

2011-07-07 Thread lynda Hadjsaid
how to compile a programl written in python language in tinyos 1.x___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] C Program on Ubuntu to MicaZ communication

2011-07-07 Thread TJ
Hey

I have a C program on Ubuntu. This needs to communicate with a MicaZ mote
connected to the computer. Can anyone suggest how can i do this, without
using the SerialForwarder.
I'm unable to use the SerialForwarder as I'm nit able to isolate the
functions to send and receive. Or if anyone can tell me how to use the same
for my application, that'll be great.

Thanks in advance.

Always Yours
Tejovanth
Tj n Spook
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] I have problem using printf

2011-07-07 Thread Geo Gkolfin
Hello!
I am running a simple application which uses two iris nodes. The first node
sends a numeric value via a message and the second reads the value,
calculates a sum and sends it back to the first node using the same message
format. I am trying to use printf in order to display the values and check
if the calculations are okay. So I include printf.h in both MineC.nc and
MineAppC.nc and add the line:
*CFLAGS += -I$(TOSDIR)/lib/printf*
in Makefile.
I install the application to the nodes and then from /Mine directory I
execute
*java net.tinyos.tools.PrintfClient -comm serial@/dev/ttyUSB1:iris*
but all I get is:
*Thread[Thread-1,5,main]serial@/dev/ttyUSB1:57600: resynchronising
*Does anyone know what do I do wrong?
Thanks in advance,
Georgia
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] compile python program in tinyos

2011-07-07 Thread Eric Decker
On Thu, Jul 7, 2011 at 3:16 AM, lynda Hadjsaid mailyn...@yahoo.fr wrote:

 how to compile a programl written in python language in tinyos 1.x


sorry that doesn't make a whole lot of sense.

TinyOS is a collection of related source code written in nesc (a dialect of
C) that get compiled using a cross-compiler tool chain for small resource
constrainted processors typically wireless sensor network nodes.

Talking about compiling a python program in the context of that environment
doesn't compute.

Also python programs are typically interpreted not compiled.


___
 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] measuring time in microseonds

2011-07-07 Thread Christian Renner
Hi everybody,

I was trying to measure time deltas in microseconds (IRIS platform) 
using the component LocalTimeMicroC. Unfortunately, the component uses 
Timer1, which is not running when the MCU is sleeping. What I thus get 
is the local time in microseconds (actually 0.9-something of that time, 
for the MCU is running at only 7.37 Mhz) minus the sleeping time of the 
processor. In my case, preventing the MCU from sleeping is no option.

To cut a long story short: Is there any way to realize a (near-to) 
microsecond 32bit counter/time source while not preventing the MCU from 
entering a sleep state? I'd be happy about any hint or comment.


Best
Christian

-- 
__Christian_Renner
   Hamburg University of Technologychristian.ren...@tu-harburg.de
   Institute of Telematics (E-17)   Tel.: (+49) 40 42878-3746
   Schwarzenbergstrasse 95  Fax:  (+49) 40 42878-2581
   21073 Hamburg, Germany   http://www.ti5.tu-harburg.de/staff/renner
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Path Loss Model for network topology in tossim

2011-07-07 Thread Philip Levis

On Jul 1, 2011, at 9:31 PM, vinod kumar wrote:

 What are the sample values present in meyer-heavy.txt present in 
 tos/lib/noise ?? Are they some sample gain values? In the topology.txt, the 
 pattern is something like 
 1   2   -87 which mean signal sent by 1 , received by 2 with gain -87.

meyer-heavy.txt are 1KHz samples taken of environmental interference. Please 
see:

HyungJune Lee, Alberto Cerpa, and Philip Levis.
Improving Wireless Simulation Through Noise Modeling. In Proceedings of the 
Sixth International Conference on Information Processing in Wireless Sensor 
Networks (IPSN), 2007.


 Are these values present inside topology.txt randomly generated? And the link 
 is made between the nodes whose pattern is found inside this toplogy.txt as 
 we have a link between '1' and '2' in the above case. But somebody told me 
 that link is formed between nodes whose gain value is greater than some 
 specific value. But the code below present in tutorial says that link is 
 formed for all the patterns present in topology.txt file .
  f = open(topo.txt, r)
  lines = f.readlines()
  for line in lines:
 ...   s = line.split()
 ...   if (len(s)  0):
 ... print  , s[0],  , s[1],  , s[2];
 ... r.add(int(s[0]), int(s[1]), float(s[2]))
 
 The path loss equation is :
 Log-distance path loss model is formally expressed as:

Path loss models are insufficient to model a wireless network for reasonable 
testing purposes. The topology files incorporate a path loss model as well as 
hardware covariance, based on Zuniga's work.

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


[Tinyos-help] FTDI USB Serial Device converter disconnected

2011-07-07 Thread scatram...@gmail.com
Hi,

I'm facing a very nasty problem with the USB using Blip and telosb.
I've a small testbed set up where few telosb report data to a telosb 
IPBaseStation connected by USB to a laptop running Ubuntu 10.

The ip-driver is running and the tun0 interface works perfectly until, for some 
reason, the USB disconnects!!!

Happened many times already and always after a random period of time (few hours 
or few days).

Has anybody of you had the same problem?

Please, have a look to my dmesg:

[   62.583495] device tun0 entered promiscuous mode
[181469.402683] hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
[181469.403667] usb 1-1: USB disconnect, address 2
[181469.406021] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now 
disconnected from ttyUSB0
[181469.406654] ftdi_sio 1-1:1.0: device disconnected
[181469.627963] usb 1-1: new full speed USB device using ohci_hcd and address 3
[181469.777676] usb 1-1: configuration #1 chosen from 1 choice
[181469.783296] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[181469.784171] usb 1-1: Detected FT232BM
[181469.785634] usb 1-1: FTDI USB Serial Device converter now attached to 
ttyUSB1


As you can see the USB went off after more than 2 days of activity!
I suspect it's related to the USB hardware rather than applications but, so 
far, it happens to me only using telosb.

I google it a bit but I have not found solution yet

Any comment is more than welcome


Many thanks


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


Re: [Tinyos-help] FTDI USB Serial Device converter disconnected

2011-07-07 Thread Michael Schippling
Are you sure that the device didn't actually disconnect?
Maybe the cable got wiggled, power blipped, or something?

I can't think of an easy way to debug this since it could
be anything from a bad cable to buggy software. Probably the
only workaround is to have the USB client attempt to reconnect
whenever it dies.

MS

scatram...@gmail.com wrote:
 Hi,
 
 I'm facing a very nasty problem with the USB using Blip and telosb.
 I've a small testbed set up where few telosb report data to a telosb 
 IPBaseStation connected by USB to a laptop running Ubuntu 10.
 
 The ip-driver is running and the tun0 interface works perfectly until, for 
 some reason, the USB disconnects!!!
 
 Happened many times already and always after a random period of time (few 
 hours or few days).
 
 Has anybody of you had the same problem?
 
 Please, have a look to my dmesg:
 
 [   62.583495] device tun0 entered promiscuous mode
 [181469.402683] hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
 [181469.403667] usb 1-1: USB disconnect, address 2
 [181469.406021] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now 
 disconnected from ttyUSB0
 [181469.406654] ftdi_sio 1-1:1.0: device disconnected
 [181469.627963] usb 1-1: new full speed USB device using ohci_hcd and address 
 3
 [181469.777676] usb 1-1: configuration #1 chosen from 1 choice
 [181469.783296] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
 [181469.784171] usb 1-1: Detected FT232BM
 [181469.785634] usb 1-1: FTDI USB Serial Device converter now attached to 
 ttyUSB1
 
 
 As you can see the USB went off after more than 2 days of activity!
 I suspect it's related to the USB hardware rather than applications but, so 
 far, it happens to me only using telosb.
 
 I google it a bit but I have not found solution yet
 
 Any comment is more than welcome
 
 
 Many thanks
 
 
 Davide
 ___
 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] FTDI USB Serial Device converter disconnected

2011-07-07 Thread scatram...@gmail.com
I use duct tape to make sure the cable connection but I cannot be sure about 
electrostatic interference or power blipping.

I replaced the USB cable and is under test from yesterday.

thanks for your prompt reply

Davide


On 7 Jul 2011, at 18:54, Michael Schippling wrote:

 Are you sure that the device didn't actually disconnect?
 Maybe the cable got wiggled, power blipped, or something?
 
 I can't think of an easy way to debug this since it could
 be anything from a bad cable to buggy software. Probably the
 only workaround is to have the USB client attempt to reconnect
 whenever it dies.
 
 MS
 
 scatram...@gmail.com wrote:
 Hi,
 
 I'm facing a very nasty problem with the USB using Blip and telosb.
 I've a small testbed set up where few telosb report data to a telosb 
 IPBaseStation connected by USB to a laptop running Ubuntu 10.
 
 The ip-driver is running and the tun0 interface works perfectly until, for 
 some reason, the USB disconnects!!!
 
 Happened many times already and always after a random period of time (few 
 hours or few days).
 
 Has anybody of you had the same problem?
 
 Please, have a look to my dmesg:
 
 [   62.583495] device tun0 entered promiscuous mode
 [181469.402683] hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
 [181469.403667] usb 1-1: USB disconnect, address 2
 [181469.406021] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now 
 disconnected from ttyUSB0
 [181469.406654] ftdi_sio 1-1:1.0: device disconnected
 [181469.627963] usb 1-1: new full speed USB device using ohci_hcd and 
 address 3
 [181469.777676] usb 1-1: configuration #1 chosen from 1 choice
 [181469.783296] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
 [181469.784171] usb 1-1: Detected FT232BM
 [181469.785634] usb 1-1: FTDI USB Serial Device converter now attached to 
 ttyUSB1
 
 
 As you can see the USB went off after more than 2 days of activity!
 I suspect it's related to the USB hardware rather than applications but, so 
 far, it happens to me only using telosb.
 
 I google it a bit but I have not found solution yet
 
 Any comment is more than welcome
 
 
 Many thanks
 
 
 Davide
 ___
 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] FTDI USB Serial Device converter disconnected

2011-07-07 Thread Davide Pusceddu
Hi,

I'm facing a very nasty problem with the USB using Blip and telosb.
I've a small testbed set up where few telosb report data to a telosb 
IPBaseStation connected by USB to a laptop running Ubuntu 10.

The ip-driver is running and the tun0 interface works perfectly until, for some 
reason, the USB disconnects!!!

Happened many times already and always after a random period of time (few hours 
or few days).

Has anybody of you had the same problem?

Please, have a look to my dmesg:

[   62.583495] device tun0 entered promiscuous mode
[181469.402683] hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
[181469.403667] usb 1-1: USB disconnect, address 2
[181469.406021] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now 
disconnected from ttyUSB0
[181469.406654] ftdi_sio 1-1:1.0: device disconnected
[181469.627963] usb 1-1: new full speed USB device using ohci_hcd and address 3
[181469.777676] usb 1-1: configuration #1 chosen from 1 choice
[181469.783296] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[181469.784171] usb 1-1: Detected FT232BM
[181469.785634] usb 1-1: FTDI USB Serial Device converter now attached to 
ttyUSB1


As you can see the USB went off after more than 2 days of activity!
I suspect it's related to the USB hardware rather than applications but, so 
far, it happens to me only using telosb.

I google it a bit but I have not found solution yet

Any comment is more than welcome


Many thanks


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