[Tinyos-help] Re: javax.comm library

2006-05-15 Thread Michael Schippling

You probably wiped out the comm jar and properties files when you
reloaded the JRE. Just because, I have a copy here:
http://www.etantdonnes.com/TMP/javacomm20-win32.zip
and there are install instructions in it someplace.
MS


Prashant Kr. Gupta wrote:

Hi there

i had installed tinyos 1.1.0 with that jdk 1.4.1 was installed too... 
prior to that there was no jdk installed on the system... the comm 
libraries worked fine then


later i needed to install jsapi; my system failed to read any valid JVM 
on the machine... so i installed jdk 1.4.1 available on sun's site... 
after that the jsapi works fine... but there is an error whenever i want 
to use Listen


Exception in thread "main" java.lang.NoClassDefFoundError: 
javax/comm/SerialPortEventListener

at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12

3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at net.tinyos.packet.BuildSource.makeSerial(BuildSource.java:364)
at 
net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:353)
at 
net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:145)
at 
net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:118)

at net.tinyos.tools.Listen.main(Listen.java:47)

i dunno what to do...


plz help
thanks

prashant
On 5/16/06, *Michael Schippling* <[EMAIL PROTECTED] 
> wrote:


You should be able to set xmit power dymanically using:

// set Xmit strength
//   mica2 916 Mhz  -20  0x02 --   2
//  -10  0x09 --   9
//0 (1mw)0x80 -- 128
//5  0xFF -- 255
call CC1000Control.SetRFPower( value );

There is a similar i'face for the micaz as well, but I don't have
an example right at hand.

Also if you compile under the contrib/xbow tree you get the
MakeXbowLocal
file that has a compile time define for xmit power. In fact, I was not
completely successful at getting the mica2 radio to work without the
xbow
code. I know that tree is usable with 1.1.7 and above, so you don't
need
to go all the way to .15.

MS

Aditya Bhave wrote:
 > If you are using the MICA2 motes with tinyos-1.1.10 you should
edit the
 > CC1000Const.h file in /tos/platform/mica2.
 > Scroll down to CC1K_Params[5][31] in the file. Depending on the
freq of
 > the motes you are using, you should change the contents of PA_POW
at the
 > appropriate place. The default value is 0xff. If you change it to
0x00
 > you can get a range of 3 feet or around that much.
 >
 > If you are using tinyos-1.1.15 you should edit the MakeXbowLocal
file.
 > Check the manual that comes on the CD to see what and where to
change.
 >
 > I perosnally did the above in my project. If you figure out how
the same
 > thing can be done using the Pots interface in the program itself,
please
 > let me know. Thanx
 >
 > On 5/15/06, *Prashant Kr. Gupta* <[EMAIL PROTECTED]

 > >> wrote:
 >
 > I have been trying to reduce the radio range by using Pot
interface...
 > but it seems that it doesn't helps much... what can i do
 >
 > thanks
 > prashant
 >
 > ___
 > Tinyos-help mailing list
 > Tinyos-help@Millennium.Berkeley.EDU

 > >
 >
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 >
>
 >
 >
 >
 >
 >
 > --
 > regards,
 > Aditya Bhave
 >
 >
 >

 >
 > ___
 > Tinyos

[Tinyos-help] javax.comm library

2006-05-15 Thread Prashant Kr. Gupta
Hi there

i had installed tinyos 1.1.0 with that jdk 1.4.1 was installed too...
prior to that there was no jdk installed on the system... the comm
libraries worked fine then

later i needed to install jsapi; my system failed to read any valid JVM
on the machine... so i installed jdk 1.4.1 available on sun's site...
after that the jsapi works fine... but there is an error whenever i
want to use Listen 

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at net.tinyos.packet.BuildSource.makeSerial(BuildSource.java:364)
    at net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:353)
    at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:145)
    at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:118)
    at net.tinyos.tools.Listen.main(Listen.java:47)

i dunno what to do...


plz help
thanks

prashantOn 5/16/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
You should be able to set xmit power dymanically using:// set Xmit strength//  
mica2 916
Mhz  -20  0x02
--   2//  -10  0x09
--   9//0
(1mw)0x80 -- 128//5  0xFF
-- 255call CC1000Control.SetRFPower( value );There is a similar i'face for the micaz as well, but I don't havean example right at hand.Also if you compile under the contrib/xbow tree you get the MakeXbowLocal
file that has a compile time define for xmit power. In fact, I was notcompletely successful at getting the mica2 radio to work without the xbowcode. I know that tree is usable with 1.1.7 and above, so you don't need
to go all the way to .15.MSAditya Bhave wrote:> If you are using the MICA2 motes with tinyos-1.1.10 you should edit the> CC1000Const.h file in /tos/platform/mica2.> Scroll down to CC1K_Params[5][31] in the file. Depending on the freq of
> the motes you are using, you should change the contents of PA_POW at the> appropriate place. The default value is 0xff. If you change it to 0x00> you can get a range of 3 feet or around that much.
>> If you are using tinyos-1.1.15 you should edit the MakeXbowLocal file.> Check the manual that comes on the CD to see what and where to change.>> I perosnally did the above in my project. If you figure out how the same
> thing can be done using the Pots interface in the program itself, please> let me know. Thanx>> On 5/15/06, *Prashant Kr. Gupta* <[EMAIL PROTECTED]
> [EMAIL PROTECTED]>> wrote:>> I have been trying to reduce the radio range by using Pot interface...> but it seems that it doesn't helps much... what can i do
>> thanks> prashant>> ___> Tinyos-help mailing list> Tinyos-help@Millennium.Berkeley.EDU
> Tinyos-help@Millennium.Berkeley.EDU>> 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help> >> --> regards,> Aditya Bhave>>> >> ___
> Tinyos-help mailing list> Tinyos-help@Millennium.Berkeley.EDU> 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] simple application not working(problem with TimerJiffy interface)

2006-05-15 Thread jagan nath

Can anybody catch the error in this extremely simple application. Non
of the Leds are coming on.

**config file

configuration Sampling {
}

implementation {
 components Main,SamplingM,LedsC,TimerC;

Main.StdControl->SamplingM;
Main.StdControl->TimerC;

SamplingM.TimerJiffy->TimerC.TimerJiffy[unique("Timer")];
SamplingM.Leds -> LedsC;


}

*** module***
***


module SamplingM{

provides interface StdControl;

uses {
interface Leds;
interface TimerJiffy;
}
}
implementation{
uint32_t sampleTime;
result_t result;


command result_t StdControl.init(){
call Leds.init();
return SUCCESS;

}
command result_t StdControl.start(){
sampleTime=1000;
result=call TimerJiffy.setPeriodic(sampleTime);
if (result!=SUCCESS){
call Leds.yellowToggle();
}else{
call Leds.greenToggle();
}
return SUCCESS;
}
command result_t StdControl.stop(){
call TimerJiffy.stop();
return SUCCESS;
}

event result_t TimerJiffy.fired(){
call Leds.redToggle();

return SUCCESS;
}
}

TIA
jagan

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] EEPROM_LOGGER error

2006-05-15 Thread bhushan bhatt
Hi,   I am trying to compile SenseLightToLog and i get an error that EEPROM_LOGGER files not found. On the archives it is said that the newer version of Tinyos does not have those files. Is there any way i can run this ? because i am working on an application where i need something similar to SenseLightToLog.Thanks,Bhushan
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] reducing transmission range to 3 feet for Mica2 motes

2006-05-15 Thread Aditya Bhave
Yes the SetRFPower is supposed to work that way,  but on quite a few threads on this mailing list in the past, Ive read that many users did not find any change when issuing this command. I tried to do it myself and it also didnt have any effect. The range remained as large as before.
Editing the file directly seems to work. My MICA2 motes were giving a range of 200 feet when placed on tiled flooring in a corridor 400 ft by 10 ft size enclosed by tiled walls. The environent and height at which the motes are deployed also has significant impact on their range. I was able to get the range down to 4 1/2 feet by setting PA_POW to 0x00 as explained prev. You should experiment with different values in the env you deploy your motes.
Of course as Michael says doing this is a pain because then you cant dynamically change the range in the program.On 5/16/06, Michael Schippling
 <[EMAIL PROTECTED]> wrote:You should be able to set xmit power dymanically using:
// set Xmit strength//   mica2 916 Mhz  -20  0x02 --   2//  -10  0x09 --   9//0 (1mw)0x80 -- 128//5  0xFF -- 255
call CC1000Control.SetRFPower( value );There is a similar i'face for the micaz as well, but I don't havean example right at hand.Also if you compile under the contrib/xbow tree you get the MakeXbowLocal
file that has a compile time define for xmit power. In fact, I was notcompletely successful at getting the mica2 radio to work without the xbowcode. I know that tree is usable with 1.1.7 and above, so you don't need
to go all the way to .15.MSAditya Bhave wrote:> If you are using the MICA2 motes with tinyos-1.1.10 you should edit the> CC1000Const.h file in /tos/platform/mica2.> Scroll down to CC1K_Params[5][31] in the file. Depending on the freq of
> the motes you are using, you should change the contents of PA_POW at the> appropriate place. The default value is 0xff. If you change it to 0x00> you can get a range of 3 feet or around that much.
>> If you are using tinyos-1.1.15 you should edit the MakeXbowLocal file.> Check the manual that comes on the CD to see what and where to change.>> I perosnally did the above in my project. If you figure out how the same
> thing can be done using the Pots interface in the program itself, please> let me know. Thanx>> On 5/15/06, *Prashant Kr. Gupta* <[EMAIL PROTECTED]
> [EMAIL PROTECTED]>> wrote:>> I have been trying to reduce the radio range by using Pot interface...> but it seems that it doesn't helps much... what can i do
>> thanks> prashant>> ___> Tinyos-help mailing list> Tinyos-help@Millennium.Berkeley.EDU
> Tinyos-help@Millennium.Berkeley.EDU>> 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help> >> --> regards,> Aditya Bhave>>> >> ___
> Tinyos-help mailing list> Tinyos-help@Millennium.Berkeley.EDU> 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help-- regards,Aditya Bhave
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Differences Between Receive and ReceiveMsg Interfaces

2006-05-15 Thread Adesola Omotayo








Hello,

Kindly enlighten me about the differences between the Receive
and ReceiveMsg interfaces. When can I use the Receive interface and when can I
use the ReceiveMsg interface? What indicates which one to use?

Thanks,

Adesola






___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re: Time interface

2006-05-15 Thread tejasw
Just to clarify, i am using mica2
> hi all,
> I am using tinyos1.0
> If i try to print the local time of a node by calling Time.getLow32(), it
> all shows zeros..
>
> Any clue..?
>
> thanx in advance
> tejasw
>


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] reducing transmission range to 3 feet for Mica2 motes

2006-05-15 Thread Michael Schippling

You should be able to set xmit power dymanically using:

// set Xmit strength
//   mica2 916 Mhz  -20  0x02 --   2
//  -10  0x09 --   9
//0 (1mw)0x80 -- 128
//5  0xFF -- 255
call CC1000Control.SetRFPower( value );

There is a similar i'face for the micaz as well, but I don't have
an example right at hand.

Also if you compile under the contrib/xbow tree you get the MakeXbowLocal
file that has a compile time define for xmit power. In fact, I was not
completely successful at getting the mica2 radio to work without the xbow
code. I know that tree is usable with 1.1.7 and above, so you don't need
to go all the way to .15.

MS

Aditya Bhave wrote:
If you are using the MICA2 motes with tinyos-1.1.10 you should edit the 
CC1000Const.h file in /tos/platform/mica2.
Scroll down to CC1K_Params[5][31] in the file. Depending on the freq of 
the motes you are using, you should change the contents of PA_POW at the 
appropriate place. The default value is 0xff. If you change it to 0x00 
you can get a range of 3 feet or around that much.


If you are using tinyos-1.1.15 you should edit the MakeXbowLocal file. 
Check the manual that comes on the CD to see what and where to change.


I perosnally did the above in my project. If you figure out how the same 
thing can be done using the Pots interface in the program itself, please 
let me know. Thanx


On 5/15/06, *Prashant Kr. Gupta* <[EMAIL PROTECTED] 
> wrote:


I have been trying to reduce the radio range by using Pot interface...
but it seems that it doesn't helps much... what can i do

thanks
prashant

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help






--
regards,
Aditya Bhave




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] reading ethernet port

2006-05-15 Thread Michael Schippling

The MIB600 is enet connected.
I haven't used it but I assume that means that packets sent over
the UART get forwarded to an IP port.

MS

jagan nath wrote:

Hi all,
Is there any way to read packets from ethernet.

jagan

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Help about routing applications

2006-05-15 Thread Michael Schippling

I think Surge and Surge_Reliable are flood/routing examples.
MS

Munaretto, Daniel wrote:

Hallo,
  i'm Daniele Munaretto, i'm working with several motes by using TinyOS. I have 
to create a sensor network where packets are transmitted in the net by 
flooding, so in broadcast mode. Could you suggest me about some interfaces to 
use or applications as closer as possible to my project? (so then i can stuff 
it)
Thanks for your availability,
Daniele Munaretto 


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Time interface

2006-05-15 Thread tejasw
hi all,
I am using tinyos1.0
If i try to print the local time of a node by calling Time.getLow32(), it
all shows zeros..

Any clue..?

thanx in advance
tejasw

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] A compile error

2006-05-15 Thread Cory Sharp

You could correct the compile error by using less TOS_Msg's in your
application, thus reducing application RAM requirements.  Or, reduce
RAM usage elsewhere in your application.

Cory

On 5/15/06, Adam <[EMAIL PROTECTED]> wrote:

It happens when I set TOSH_DATA_LENGTH larger than 64.

But TOSH_MAX_DATA_LENGTH (128 - 10 - 2) is permitted. Though I know large
message does not necessary reduce overhead, but curious: how to correct the
compile error if I want to set TOSH_DATA_LENGTH larger than 64.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cory
Sharp
Sent: Monday, May 15, 2006 11:44 AM
To: Adam
Cc: Tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] A compile error

It means your application exceeds the available RAM (the BSS segment is too
large to fit). - Cory

On 5/15/06, Adam <[EMAIL PROTECTED]> wrote:
> What does this compile error stand for?
>
> msp430-ld: address 0x422f of build/tmote/main.exe section .bss is not
> within reg ion data
> msp430-ld: address 0x422f of build/tmote/main.exe section .noinit is
> not within region data
> make: *** [exe0] Error 1
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-h
> elp
>



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] A compile error

2006-05-15 Thread Adam
It happens when I set TOSH_DATA_LENGTH larger than 64.

But TOSH_MAX_DATA_LENGTH (128 - 10 - 2) is permitted. Though I know large
message does not necessary reduce overhead, but curious: how to correct the
compile error if I want to set TOSH_DATA_LENGTH larger than 64.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cory
Sharp
Sent: Monday, May 15, 2006 11:44 AM
To: Adam
Cc: Tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] A compile error

It means your application exceeds the available RAM (the BSS segment is too
large to fit). - Cory

On 5/15/06, Adam <[EMAIL PROTECTED]> wrote:
> What does this compile error stand for?
>
> msp430-ld: address 0x422f of build/tmote/main.exe section .bss is not 
> within reg ion data
> msp430-ld: address 0x422f of build/tmote/main.exe section .noinit is 
> not within region data
> make: *** [exe0] Error 1
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-h
> elp
>

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] A compile error

2006-05-15 Thread Cory Sharp

It means your application exceeds the available RAM (the BSS segment
is too large to fit). - Cory

On 5/15/06, Adam <[EMAIL PROTECTED]> wrote:

What does this compile error stand for?

msp430-ld: address 0x422f of build/tmote/main.exe section .bss is not within
reg
ion data
msp430-ld: address 0x422f of build/tmote/main.exe section .noinit is not
within
region data
make: *** [exe0] Error 1

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] A compile error

2006-05-15 Thread Adam
What does this compile error stand for?

msp430-ld: address 0x422f of build/tmote/main.exe section .bss is not within
reg
ion data
msp430-ld: address 0x422f of build/tmote/main.exe section .noinit is not
within
region data
make: *** [exe0] Error 1

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] UART0 in TMoteSky

2006-05-15 Thread Adam



I am 
reading the TestUart0 example code from moteiv website, but I did not find any 
clue how to read data from a connected sensor/device. I noticed 

 void sendMessage() {    if 
(call SPSend.send(&m_spmsg, &m_tosmsg, TOS_BCAST_ADDR, 2) == SUCCESS) 
{  call Leds.greenOn();    
}  }
Here 
m_spmsg, m_tosmsg never get modified with data from UART0.
 
My 
goal is to read 100 bytes data from an external GPS device (which is 
connected through UART0 -- PS: is it a right choice??), should I write something 
like the following? If so, how to write with 
UART0?
 
async event uint16_t*  
UART0.dataReady(uint16_t *buf, uint16_t length). // like in HamamatsuM.nc  

 
 
Please 
advice!
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Help about routing applications

2006-05-15 Thread Munaretto, Daniel
Hallo,
  i'm Daniele Munaretto, i'm working with several motes by using TinyOS. I have 
to create a sensor network where packets are transmitted in the net by 
flooding, so in broadcast mode. Could you suggest me about some interfaces to 
use or applications as closer as possible to my project? (so then i can stuff 
it)
Thanks for your availability,
Daniele Munaretto 

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Fwd: [Tinyos-2.0wg] Sourceforge

2006-05-15 Thread David Gay

This applies to all of you using CVS to access tinyos 1.x as well
(including those using the anonymous "pserver" option).

David Gay

-- Forwarded message --
From: Philip Levis <[EMAIL PROTECTED]>
Date: May 15, 2006 3:59 AM
Subject: Re: [Tinyos-2.0wg] Sourceforge
To: Kevin Klues <[EMAIL PROTECTED]>
Cc: tinyos2 <[EMAIL PROTECTED]>


On May 14, 2006, at 3:13 PM, Kevin Klues wrote:


Is anyone else able to update from (or commit stuff to) sourceforge
again?  I saw that Martin Leopold commited something at 10:00 this
morning, but I am still not able to get access?  Can anyone verify
that if is back up or not?



It's back up. But they have changed their CVS approach. A long time
ago, you used to access

tinyos.cvs.sourceforge.net

then about 3 years ago it switched to

cvs.sourceforge.net

but they've just switched back to

tinyos.cvs.sourceforge.net

probably due to its ability to separate CVS failures across projects.

If you run this script from the top of your tree, it will change all
of the CVS/Root files properly:

$ perl -pi -e "s/cvs\.sourceforge/tinyos\.cvs\.sourceforge/" `find .
| \grep Root`

Phil
___
Tinyos-2.0wg mailing list
[EMAIL PROTECTED]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] (no subject)

2006-05-15 Thread giovanni gamba

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Problem using MDA300 channels

2006-05-15 Thread Alessandro Balvis



Hy,
I'm working with the MDA300 and a micaz. We 
developed a system for sampling signal from termocouple with the channels 
"analog differential +/- 12.5 mV". I setted everything as illustrated on the 
tutorial and the XSensorMDA300 example code, but it seems that doesn't work. I 
receive always the same value, that sometimes change. I probe to input a signal 
with a wave generator for convert the ADC reading in volt value. Tha 
same results are with the others differential channels, I probe to setting up 
just once every time. I think that the hardware connections are right. There's 
maybe some "offset" to consider? 
Any advice will be appreciated. 
Thanks.
 
Alessandro Balvis
Centro Ricerche ENEL - Pisa
[EMAIL PROTECTED]
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Programmer Flag for MIB600 in Makerules

2006-05-15 Thread reizel casaquite
Hi,I just want to know how is the uploading process in SPRIME protocol (contrib) since it does not support MIB600. Currently I am testing SPRIME protocol in mica2 motes using MIB600 as programming board and I want to understand the makefiles and makerule files.I think I found the answer in ~\tinyos-1.x\tools\make\avrPROGRAM = eprbPROGRAMMER_FLAGS = -dprog=stk500 -dhost=$(EPRB) --wr_fuse_h=$(AVR_FUSE_H) $(PROGRAMMER_PART) $(PROGRAMMER_EXTRA_FLAGS_STK)Thanks a lot Mr. Harri Siirtola. I am just a beginner in TinyOS. I hope you could help me again in future problems.Cheers,reizel Harri Siirtola <[EMAIL PROTECTED]> wrote: Hi Reizel,for example the Cygwin command line syntax for MIB600 with micaz is:$ make micaz reinstall,5 eprb,XXX.XXX.XXX.XXXwhere the XXXs
 stand for the IP address you've set for your MIB600. If you give this command, you can see the correct 'dprog' etc. switches. BTW, why do you want to fiddle with Makerules for this? HarriAt 02:33 AM 5/15/2006 -0700, reizel casaquite wrote:>Hi everyone,>>I need help. I want to use MIB600 as a programming board.>Does anyone knows the proper syntax for the Programmer's flag?>The one below is I think for the MIB500 (parallel). How can I use MIB600?>>PROGRAMMER_FLAGS=-dprog=dapa -dt_sck=1 $(PROGRAMMER_EXTRA_FLAGS)>>Thanks for the help!>>Regards,>reizel>>>How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.>___>Tinyos-help mailing
 list>Tinyos-help@Millennium.Berkeley.EDU>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
	
		Yahoo! Mail goes everywhere you do.  Get it on your phone.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] reducing transmission range to 3 feet for Mica2 motes

2006-05-15 Thread Aditya Bhave
If you are using the MICA2 motes with tinyos-1.1.10 you should edit the CC1000Const.h file in /tos/platform/mica2.Scroll down to CC1K_Params[5][31] in the file. Depending on the freq of the motes you are using, you should change the contents of PA_POW at the appropriate place. The default value is 0xff. If you change it to 0x00 you can get a range of 3 feet or around that much.
If you are using tinyos-1.1.15 you should edit the MakeXbowLocal file. Check the manual that comes on the CD to see what and where to change.I perosnally did the above in my project. If you figure out how the same thing can be done using the Pots interface in the program itself, please let me know. Thanx
On 5/15/06, Prashant Kr. Gupta <[EMAIL PROTECTED]> wrote:
I have been trying to reduce the radio range by using Pot interface...
but it seems that it doesn't helps much... what can i do

thanks
prashant

___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
-- regards,Aditya Bhave
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Sourceforge CVS

2006-05-15 Thread Philip Levis
Recently, Sourceforge had a month-long partial CVS outage due a rash  
of hardware failures. CVS seems to be up and working properly again,  
but they have change things slightly in order to minimize the effect  
of similar failures in the future. Until very recently, the CVS  
server for TinyOS (and all other sourceforge projects) was


cvs.sourceforge.net

They've now switched to a hierarchy where each project has its own  
server name. This means that the TinyOS CVS tree is at


tinyos.cvs.sourceforge.net

If you are checking out a fresh tree, all you need to do is follow  
the instructions on the CVS web page and it will work fine. But if  
you have an existing tree, you have to update all of the CVS metadata  
within it to point to the new server. You can do this with this shell  
script:


perl -pi -e "s/cvs\.sourceforge/tinyos\.cvs\.sourceforge/" `find . |  
\grep Root`


The CVS server name is stored in a file in the CVS/ subdirectory of  
each directory, CVS/Root. This shell script has two parts: finding  
all of those files, and then using Perl to modify cvs.sourceforge.net  
to tinyos.cvs.sourceforge.net. The command in back quotes (`find . |  
\grep Root`) does the first task, and generates a file list, which is  
then passed as an argument to perl, which applies a replacement  
rule.  Run this script from the top of your CVS directory, e.g.:


$ cd tinyos-2.x
$ perl -pi -e "s/cvs\.sourceforge/tinyos\.cvs\.sourceforge/" `find .  
| \grep Root`


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


[Tinyos-help] TimerJiffyAsync not firing

2006-05-15 Thread jagan nath

Hello all, I'm using the interface TimerJifyAsync.nc to sample one of
the ADC pins at 3KHz.
I have made a copy of the configuration file TimerJiffyAsyncC and
changed the timer to TimerB5( I have also checked with all other free
timers A2,B0,B2and B6).All though the application is getting compiled
and loading onto the mote successfuly. the event
timerJiffiyAsync.fired doesnt seem to be getting fired.

PS. I have checked the return value of call Timerjiffyasync.start().
It is retuning SUCCESS
but the event is not getting fired.

Im posting my code also. I would be great ful if somebody can have a look at it

** Configuration file
includes MyADC;

configuration Sampling {
}

implementation {
 components Main,SamplingM,TimerJiffyAsyncNewC,LedsC,ADCC,FramerM,UART,TimerC;

Main.StdControl->SamplingM;
Main.StdControl -> ADCC;
Main.StdControl->TimerJiffyAsyncNewC;
Main.StdControl->TimerC;

SamplingM.UARTControl -> FramerM;
SamplingM.UARTSend -> FramerM;
SamplingM.TimerJiffyAsync->TimerJiffyAsyncNewC;
SamplingM.ADC -> ADCC.ADC[TOS_MYADC_PORT];
SamplingM.ADCControl -> ADCC;
SamplingM.Leds -> LedsC;
SamplingM.Timer->TimerC.Timer[unique("Timer")];

FramerM.ByteControl -> UART;
FramerM.ByteComm -> UART;

}
**module***
module SamplingM{

provides interface StdControl;

uses {
interface Leds;
interface TimerJiffyAsync;
interface ADC;
interface ADCControl;
interface Timer;
interface StdControl as UARTControl;
interface BareSendMsg as UARTSend;

}
}
implementation{
#define TimeIncrement 333
/* one jiffy = 100/32768 = 30.5us apprx. So to achive a 3KHz
sampling the timer event shud
tick at every 100/3000 = 333 us. now 333/30.5 = 11 jiffies apprx.*/

uint32_t sampleTime=11;
/* inorder to collect 4096 samples at 3000 samples/sec, the
measurement shud be taken for a duration of
4096/3000 = 1.36 secs (1360 millisecs)*/

uint32_t samplingDuration = 1360;
norace uint16_t Time = 0;//this is the x-axis of the time domain, the
adc values will be the y-axis
norace uint16_t adc;




   enum {
UART_QUEUE_LEN = 12,
PAY_LOAD_LEN   = 16,
 };


  TOS_MsgPtr uartMsgPtr;
  uint16_t   payloadbuf[PAY_LOAD_LEN];
  uint16_t   payload[PAY_LOAD_LEN];
  uint8_tpayloadcount=0;
  result_t result;

void failBlink() {
#ifdef TOSBASE_BLINK_ON_FAIL
  call Leds.yellowToggle();
#endif
 }

task void UARTSendTask(){

   if (call UARTSend.send(uartMsgPtr) ==SUCCESS) {
call Leds.greenToggle();
  } else {
failBlink();
post UARTSendTask();
  }
}



task void DataStoreTask(){
int i,j;
if(payloadcount>PAY_LOAD_LEN){

for(i=0;idata[j*2+1] = payload[i]>>8;
uartMsgPtr->data[j*2] = payload[i];
}

post UARTSendTask();
payloadcount=0;
atomic payloadbuf[payloadcount++]=Time;
atomic payloadbuf[payloadcount++]=adc;
}else{
atomic payloadbuf[payloadcount++]=Time;
atomic payloadbuf[payloadcount++]=adc;
}
}

  void dropBlink() {
#ifdef TOSBASE_BLINK_ON_DROP
   call Leds.yellowToggle();
#endif
  }


command result_t StdControl.init(){
call Leds.init();
call ADCControl.init();
call ADCControl.bindPort(TOS_MYADC_PORT, 
TOSH_ACTUAL_MYADC_PORT);
call UARTControl.init();
return SUCCESS;

}
command result_t StdControl.start(){
call ADCControl.setSamplingRate(TOS_ADCSample30us);
call UARTControl.start();
call TimerJiffyAsync.setOneShot(sampleTime);
call Timer.start(TIMER_ONE_SHOT,samplingDuration);

return SUCCESS;
}
command result_t StdControl.stop(){
call UARTControl.stop();
call Timer.stop();
call TimerJiffyAsync.stop();
   

[Tinyos-help] Help about routing applications

2006-05-15 Thread Munaretto, Daniel
Hallo,
  i'm Daniele Munaretto, i'm working with several motes by using TinyOS. I have 
to create a sensor network where packets are transmitted in the net by 
flooding, so in broadcast mode. Could you suggest me about some interfaces to 
use or applications as closer as possible to my project?Because there are so 
many folders and i have no so much time for finding the best to use and modify 
for my scope.
Thanks for your availability,
Daniele Munaretto 

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Programmer Flag for MIB600 in Makerules

2006-05-15 Thread Harri Siirtola

Hi Reizel,

for example the Cygwin command line syntax for MIB600 with micaz is:

$ make micaz reinstall,5 eprb,XXX.XXX.XXX.XXX

where the XXXs stand for the IP address you've set for your MIB600. If you 
give this command, you can see the correct 'dprog' etc. switches. BTW, why 
do you want to fiddle with Makerules for this?


Harri


At 02:33 AM 5/15/2006 -0700, reizel casaquite wrote:

Hi everyone,

I need help. I want to use MIB600 as a programming board.
Does anyone knows the proper syntax for the Programmer's flag?
The one below is I think for the MIB500 (parallel). How can I use MIB600?

PROGRAMMER_FLAGS=-dprog=dapa -dt_sck=1 $(PROGRAMMER_EXTRA_FLAGS)

Thanks for the help!

Regards,
reizel


How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] reading ethernet port

2006-05-15 Thread jagan nath

Hi all,
Is there any way to read packets from ethernet.

jagan

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] reducing transmission range to 3 feet for Mica2 motes

2006-05-15 Thread Prashant Kr. Gupta
I have been trying to reduce the radio range by using Pot interface...
but it seems that it doesn't helps much... what can i do

thanks
prashant
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Programmer Flag for MIB600 in Makerules

2006-05-15 Thread reizel casaquite
Hi everyone,I need help. I want to use MIB600 as a programming board.Does anyone knows the proper syntax for the Programmer's flag?The one below is I think for the MIB500 (parallel). How can I use MIB600?PROGRAMMER_FLAGS=-dprog=dapa -dt_sck=1 $(PROGRAMMER_EXTRA_FLAGS)Thanks for the help!Regards,reizel
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] development environment

2006-05-15 Thread Tehn Yit Chin

Hi all,

Just starting to get my head around the tinyos with the development 
environment. My current development environment also caters for 
developing other Atmel AVR micros so I have already have the AVR gnu 
toolchain all setup. However, reading the install documentation that 
came with tinyos-1.1.0, it said to remove this installation as well.


Is this because tinyos has its own verion of gcc that it uses?

Has anyone found a way of just downloading the tinyos source and nesc 
without reinstalling the gnu toolchain?


many thanks,

--
Tehn Yit Chin
Software Engineer, Grey Innovation Pty. Ltd.

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help