[Tinyos-help] JNI - getenv library

2008-06-09 Thread fhg07
I sent an email before, and was told that my java installation was ok and
I should place the getenv library in my JRE.

[EMAIL PROTECTED]:[...]/jre1.6.0_06$ find . -iname "*getenv*"
./lib/amd64/libgetenv.so

It appears to be already there,
However, when I try to run the serial forwarder for example:

[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ java
net.tinyos.sf.SerialForwarder -port 9002 -comm serial@/dev/ttyS0:mica2
The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting.

How do I properly install jni?
I mean, this tos-install-jni command do not work because nor does
tos-locate-jre work, and all the jars are already placed in my java
installation.



Thanks,
Fernando.

--- Mensagem Original 
Assunto: Re: [Tinyos-help] Trouble regarding Java/JNI
De:  "Michael Schippling" <[EMAIL PROTECTED]>
Data:Sex, Junho 6, 2008 1:16 pm
Para:[EMAIL PROTECTED]
CC:  tinyos-help@millennium.berkeley.edu
--

The first problem is that you shouldn't put ".java" in the command:
java Oscilloscope
You should also check that you have both "." and the path to the
TOS java classes or jar in your CLASSPATH. If this is meaningless
to you, search this list and google CLASSPATH.

The second problem is just me, but I believe tos-locate-jre to be
utterly useless. What you need is to have the javax.comm or TOScomm
jar, shared lib, and properties file, and the getenv shared lib in
your JRE. You can hand copy them if you can find them. Jars go in
JRE/lib/ext, javax.comm.properties goes in JRE/lib, and shared libs
in JRE/bin. If you have a copy of your JRE from the old install
they are probably still there, or search this list and google.

MS



[EMAIL PROTECTED] wrote:
> I had previously installed the full package of tinyOS, including its
> dependencies, such as java, the JNI library, etc; And they were all
> working OK. It was on a machine in which ubuntu was running.
>
> Well, some things happened, and we switched to Fedora9.
> I reinstalled tinyOS (with a lot of more trouble as there is no way of
> installing it through the 'yum' command of Fedora), but when I try to run
> some java apps, lots of errors appear, for example, the Oscilloscope
> application.
>
> "[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ java
> Oscilloscope.java
> Exception in thread "main" java.lang.NoClassDefFoundError:
Oscilloscope/java
> Caused by: java.lang.ClassNotFoundException: Oscilloscope.java
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)"
>
> or:
>
> "[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ ./run
> getenv JNI library not found. Env.getenv will not work
> (run the tos-install-jni tool, see man tos-install-jni for more details)"
>
>
> I've already set the PATH and JAVA_HOME so they have the java installation
> dir location there, and I also tried using ./update-alternatives --config
> java, and no matter where I say it is, nothing works.
>
> Regarding the JNI library, when I try to install it through the
> tos-install-jni command, it returns 'Java not found, not installing JNI
> code', but hell, there IS java installed ! And nor do tos-locate-jre
> --java or tos-locate-jre --jni return its path ! they do not display
> anything at all.
>
> I simply don't know what should I do.. These java stuff are just... Ahw,
> driving me mad
>
>
> Any possible solutions?
> (ps.: saying to rerun tos-install-jni or anything related to it will not
> help at all, because the tos-locate-jre --* do not return anything, as it
> should (and yes, I'm absolutely sure that java is installed, even more
> than once actually, and none of its installations are recognized there))
>
>
>
>
>
> Thanks, Fernando
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew



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


[Tinyos-help] tinyos 2 X tinyos 2(cvs)

2008-06-09 Thread Daniel Pereira
Hi All,

My application is running properly in tinyos 2.x.
But when I try to compile my application in cvs version, I'm receiving
the following:

$ make micaz sim-sf

In file included from MyTestAppC.nc:8:
In component `MyTestC':
MyTestC.nc: In function `radioSendTask.runTask':
MyTestC.nc:135: warning: passing argument 2 of `UartPacket.getPayload'
makes integer from pointer without a cast
MyTestC.nc:145: too few arguments to function `AMSend.getPayload'
MyTestC.nc: In function `uartSendTask.runTask':
MyTestC.nc:222: warning: passing argument 2 of `UartPacket.getPayload'
makes integer from pointer without a cast
In component `MyTestAppC':
MyTestAppC.nc: At top level:
MyTestAppC.nc:25: ambiguous match
make: *** [sim-exe] Error 1

This is the line 25 in the MyTestAppC.
24  MyTestC.UartSend -> Serial;
25  MyTestC.UartReceive -> Serial;
26  MyTestC.UartPacket -> Serial;
27  MyTestC.UartAMPacket -> Serial;

Any suggestion? The same happens in the BaseStation application.

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


[Tinyos-help] Digital Channels as Output on MDA300CA

2008-06-09 Thread Christopher Leung
If you're using TinyOS 2, I made a driver that can control the output of the 
digital pins on the MDA 300 and 320 boards. I made the driver for the Iris 
platform but I think it should also work on MICA2. Reply back if you want 
driver.
 
Chris
 
 

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


[Tinyos-help] FTSP - Calculation of offset

2008-06-09 Thread Marco Langerwisch
Hi,

I have some questions regarding the calculation of the time offset in FTSP:

"async event void PacketLastTouch.touch(message_t* msg)
   { [...]
 footer->time_offset = local->event_time - call 
PacketTimeStamp.get(msg);
   [...] }"
local->event_time is the time of giving the Send-command in FTSP. 
PacketTimeStamp is the time at the end of the MAC-SYNC at sender. Am I 
right? Then, the calculation results in a negative value for an unsigned 
integer. And that wouldn't make sense to me.

"command uint32_t TimeSyncEvent32khz.getTime(message_t* msg)
   { [...]
 return (uint32_t)(footer->time_offset) + call PacketTimeStamp.get(msg);
   }"
footer->time_offset is the time calculated at sender (see question 
above). PacketTimeStamp is the time at the end of the MAC-SYNC at 
receiver. Why should I add these times?

Thank you!

Regards, Marco

-- 
. Marco Langerwisch, B.Sc.
. ICQ 48125065
. www.web96.de
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] the command send

2008-06-09 Thread Philip Levis

On Jun 8, 2008, at 10:55 PM, Abhishek Anand wrote:

> It is ultimately sent using the CSMA MAC protocol but not CSMA/CA.


> So clear channel assessment is done, initial, congestion, random  
> backoffs are used but RTS/CTS are not used

It is CSMA/CA; RTS/CTS is not a prerequisite for CSMA/CA.

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


[Tinyos-help] what is the Unit of Accel_x and Accel_y

2008-06-09 Thread Yu Qun
Hi everyone:

Hope to gain some warm responses from you!
In the database of postgresql, as for the table "mts400_results", there are
lots of parameters which data type are integer, for Accel_x and Accel_y as
example, for my understand, these are two parameters in coordinate, would
you like to tell me what are their unit in DB who binded with moteView?

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

[Tinyos-help] BaseStationC.nc:79: ambiguous match

2008-06-09 Thread Daniel Pereira
Hi all,

When I compile my application to run in the mote works fine, but when
I compile for simulation does not work.

[EMAIL PROTECTED]:~/dpp/cvs-tinyos/tinyos-2.x/apps/BaseStation$
make micaz sim-sf
mkdir -p simbuild/micaz
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling BaseStationC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\)
-I/home/dpatrick/dpp/cvs-tinyos/tinyos-2.x/tos/lib/tossim/sf -Wall
-Wshadow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c
-board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param
max-inline-insns-single=10 -DCC2420_NO_ACKNOWLEDGEMENTS
-DCC2420_NO_ADDRESS_RECOGNITION -DIDENT_PROGRAM_NAME=\"BaseStationC\"
-DIDENT_USER_ID=\"dpatrick\" -DIDENT_HOSTNAME=\"ubuntu-server\"
-DIDENT_USER_HASH=0x09e68e63L -DIDENT_UNIX_TIME=0x484d750fL
-DIDENT_UID_HASH=0x6642728cL -Wno-nesc-data-race BaseStationC.nc
-fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants
-fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
-fnesc-dumpfile=app.xml
In component `BaseStationC':
BaseStationC.nc:79: ambiguous match
make: *** [sim-exe] Error 1

It happens the same with my application.

Please, any suggestion?

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


Re: [Tinyos-help] FTSP - Calculation of offset

2008-06-09 Thread Branislav Kusy
> Hi,
> 
> I have some questions regarding the calculation of the time offset in FTSP:
> 
> "async event void PacketLastTouch.touch(message_t* msg)
>{ [...]
>  footer->time_offset = local->event_time - call 
> PacketTimeStamp.get(msg);
>[...] }"
> local->event_time is the time of giving the Send-command in FTSP. 
> PacketTimeStamp is the time at the end of the MAC-SYNC at sender. Am I 
> right? Then, the calculation results in a negative value for an unsigned 
> integer. And that wouldn't make sense to me.
> 
> "command uint32_t TimeSyncEvent32khz.getTime(message_t* msg)
>{ [...]
>  return (uint32_t)(footer->time_offset) + call PacketTimeStamp.get(msg);
>}"
> footer->time_offset is the time calculated at sender (see question 
> above). PacketTimeStamp is the time at the end of the MAC-SYNC at 
> receiver. Why should I add these times?

synchronization event: arbitrary time which happened shortly before 
timesync msg was transmitted (outgoingMsg->globalTime in task sendMsg() 
in TimeSyncM.nc)

T1  = global time of synchronization event at sender
T1^ = local time of synchronization event at sender
T1' = local time of synchronization event at receiver
receiver can synchronize to the global time by precisely measuring 
offset of its local clock and the global time (T1'-T1)

TimeSyncSend32khz interface allows you to 1) transmit data with a 
timestamp which is assumed to be in the local time of the sender and 2) 
converts this timestamp to the local time of the receiver. the code that 
you mentioned does this conversion. in other words, it converts T1^ to 
T1'. this is accomplished by timestamping transmission/reception of the 
SFD byte in the MAC. PacketLastTouch interface is the transmitter story: 
it has access to the SFD_tx timestamp; instead of transmitting T1^ and 
T_SFD_tx separately, it transmits their offset T_offset=T1^-T_SFD_tx 
(saving 4 bytes). TimeSyncEvent32khz is the receiver story: calculating 
T1' as T_offset + T_SFD_rx.

T_offset = footer->time_offset
T_SFD_tx = PacketTimeStamp.get(msg) (at TX, called from PacketLastTouch)
T_SFD_rx = PacketTimeStamp.get(msg) (at RX, called from TimeSyncEvent)

brano


> 
> Thank you!
> 
> Regards, Marco
> 

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


[Tinyos-help] Intercept Interface

2008-06-09 Thread Eugênia Giancoli Jabour
Hi,
I am working with mintroute. I would like to change the
payload of the data packet on each hop (intermediate) motes before they
 forward the data packet to the next hop and finally to the destination.
But the "Intercept" interface was never flagged. Why??


My code:

includes ctcp;
includes ctcpCmd;
includes MultiHop;

configuration ctcp {
}
implementation {
components Main, ctcpM, TimerC, LedsC, NoLeds, Photo, RandomLFSR,
GenericCommPromiscuous as Comm, Bcast, WMEWMAMultiHopRouter as multihopM, 
QueuedSend, Sounder;
Main.StdControl -> ctcpM.StdControl;
Main.StdControl -> Photo;
Main.StdControl -> Bcast.StdControl;
Main.StdControl -> multihopM.StdControl;
Main.StdControl -> QueuedSend.StdControl;
Main.StdControl -> TimerC;
Main.StdControl -> Comm;
// multihopM.CommControl -> Comm;
ctcpM.ADC -> Photo;
ctcpM.Timer -> TimerC.Timer[unique("Timer")];
ctcpM.Leds -> LedsC; // NoLeds;
ctcpM.Sounder -> Sounder;
ctcpM.Bcast -> Bcast.Receive[AM_CTCPCMDMSG];
Bcast.ReceiveMsg[AM_CTCPCMDMSG] -> Comm.ReceiveMsg[AM_CTCPCMDMSG];
ctcpM.RouteControl -> multihopM;
ctcpM.Send -> multihopM.Send[AM_CTCPMSG];
ctcpM.SendUART -> QueuedSend.SendMsg[AM_CTCPMSG];
ctcpM.ReceiveMsg -> Comm.ReceiveMsg[AM_CTCPMSG];
ctcpM.teste -> multihopM.Intercept[AM_CTCPMSG];
//multihopM.ReceiveMsg[AM_MULTIHOPMSG] -> Comm.ReceiveMsg[AM_MULTIHOPMSG];
}


includes ctcp;
includes ctcpCmd;
/*
* Data gather application
*/
module ctcpM {
provides {
interface StdControl;
}
uses {
interface ADC;
interface Timer;
interface SendMsg as SendUART;
interface Send;
interface Receive as Bcast;
interface RouteControl;
interface ReceiveMsg;
interface Intercept as teste;
}
}
implementation {
enum {
TIMER_GETADC_COUNT = 1, // Timer ticks for ADC
TIMER_CHIRP_COUNT = 10, // Timer on/off chirp count
};
bool sleeping; // application command state
bool focused;
bool rebroadcast_adc_packet;
TOS_Msg gMsgBuffer;
norace uint16_t gSensorData; // protected by gfSendBusy flag
bool gfSendBusy;

int timer_rate;
int timer_ticks;
int count;
/***
* Initialization
***/
static void initialize() {
timer_rate = INITIAL_TIMER_RATE;
atomic gfSendBusy = FALSE;
sleeping = FALSE;
rebroadcast_adc_packet = FALSE;
focused = FALSE;
count = 0;
}
task void SendData() {
ctcpMsg *pReading;
uint16_t Len;
dbg(DBG_USR1, "ctcpM: Sending sensor reading\n");
if ((pReading =((ctcpMsg *)call Send.getBuffer(&gMsgBuffer,&Len {
count++;
pReading->type = SURGE_TYPE_SENSORREADING;
pReading->sourceaddress = TOS_LOCAL_ADDRESS;
pReading->parentaddr = call RouteControl.getParent();
pReading->reading = gSensorData;
pReading->campo5 = 5;
pReading->campo6 = 6;
pReading->campo7 = 0;
pReading->campo8 = TOS_LOCAL_ADDRESS;
}
}

command result_t StdControl.init() {
initialize();
return SUCCESS;
}
command result_t StdControl.start() {
return call Timer.start(TIMER_REPEAT, timer_rate);
return SUCCESS;
}
command result_t StdControl.stop() {
return call Timer.stop();
}
/***
* Commands and events
***/
event result_t Timer.fired() {
dbg(DBG_USR1, "ctcpM: Timer fired\n");
timer_ticks++;
if (timer_ticks % TIMER_GETADC_COUNT == 0) {
call ADC.getData();
}
// If we're the focused node, chirp
if (focused && timer_ticks % TIMER_CHIRP_COUNT == 0) {
call Sounder.start();
}
// If we're the focused node, chirp
if (focused && timer_ticks % TIMER_CHIRP_COUNT == 1) {
call Sounder.stop();
}
return SUCCESS;
}
async event result_t ADC.dataReady(uint16_t data) {
dbg(DBG_USR1, "ctcpM: Got ADC reading: 0x%x\n", data);
atomic {
if (!gfSendBusy) {
gfSendBusy = TRUE;
gSensorData = data;
post SendData();
}
}
return SUCCESS;
}
event result_t Send.sendDone(TOS_MsgPtr pMsg, result_t success) {
dbg(DBG_USR1, "ctcpM: output complete 0x%x\n", success);
atomic gfSendBusy = FALSE;
return SUCCESS;
}
event result_t SendUART.sendDone(TOS_MsgPtr pMsg, result_t success) {
dbg(DBG_USR3, "ctcpM: output para UART complete 0x%x\n", success);
return SUCCESS;
}
event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr pMsg) {
TOS_MHopMsg *pMhop;
ctcpMsg *pctcp;
dbg(DBG_USR3, "ctcpM: Recebi uma mensagem, conteudo:\n");
pMhop = (TOS_MHopMsg *)pMsg->data;
dbg(DBG_USR3, "\n");
dbg(DBG_USR3, "[sourceaddr] %d\n", pMhop->sourceaddr);
dbg(DBG_USR3, "[originaddr] %d\n", pMhop->originaddr);
dbg(DBG_USR3, "[seqno] %d\n", pMhop->seqno);
dbg(DBG_USR3, "[hopcount] %d\n", pMhop->hopcount);
pctcp = (ctcpMsg *)pMhop->data;
dbg(DBG_USR3, "\n");
pctcp->reading++;

//Enviando a msg pela UART
if (TOS_LOCAL_ADDRESS==0) {
call SendUART.send(TOS_UART_ADDR, 21, pMsg);
dbg(DBG_USR3, "ENTREI NO IF\n");
}
return pMsg;
}
event result_t teste.intercept(TOS_MsgPtr pMsg, void* payload, uint16_t 
payloadLen) {
dbg(DBG_USR3, "HERE IS THE PROBLEM\n");
return FAIL;
}
}


Thanks
Eugênia 

___
Ti

Re: [Tinyos-help] Mote-PC serial speed increasing

2008-06-09 Thread Janos Sallai
Andrey,

This should work with a MIB520, but it is problematic with a MIB510. Should you 
have the former programming board, the bottleneck will probably be the 
interrupt load on the mote in the pc->mote direction. Note that the serial 
stack doesn't buffer outgoing packets (mote->pc), so the app must assume a 
lossy mote->pc link.

On the iris, the ubrr0 register is set, at initialization time, to a calibrated 
value for 57600bps. You can change the baud rate by writing this register.

Janos

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrey Gursky
Sent: Tuesday, June 03, 2008 6:16 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Mote-PC serial speed increasing

Hi tinyOS-community!

It seems possible (according datasheet) to use USART of ATmega128x in >57600 
speed mode. Thus ZigBee functions of 250 Kbit/s it would be nice to have this 
speed also between basestation and PC.
Does somebody know exactly, whether it would be as of some other reasons not 
possible? Or have I to alter configuration in .../chip/atm1281 to get this 
working?


Best regards,
Andrey

P.S. Particularly I'm interesting in iris-motes.
___
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] how to measure the Rssi with mica2

2008-06-09 Thread wang wei
Hi, all
I'm trying to get the RSSI from the Rx with mica2 mote, but after learning
many messages posted befoore,im more confused about how to measure it.
my platform is tinyos1.x, mica2,cc1000,mib510
1.i tried the Pong applicaction, but it seems its not compatible to mica2, I
really wanna know if the Pong application can work with mica2?
2.someone said it needs to import two interfaces: RSSI and ReceiveMSG.
Initially use enable signal strength reading by RSSI.rssi_enable(). When you
receive a message  in  ReceiveMsg.receive(), you can read the signal
strength using  strength field. but i dont think there is RSSI interface in
tinyos1.x
3.how to use TOS_Msg to measure?
Ican anyone tell me how to get the RSSI with mica2 ,thanks in advance.

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

Re: [Tinyos-help] how to measure the Rssi with mica2

2008-06-09 Thread Ittipong Khemapech
This may be useful to you.

http://docs.tinyos.net/index.php/Rssi_Demo

Ittipong

2008/6/9 wang wei <[EMAIL PROTECTED]>:

> Hi, all
> I'm trying to get the RSSI from the Rx with mica2 mote, but after learning
> many messages posted befoore,im more confused about how to measure it.
> my platform is tinyos1.x, mica2,cc1000,mib510
> 1.i tried the Pong applicaction, but it seems its not compatible to mica2,
> I really wanna know if the Pong application can work with mica2?
> 2.someone said it needs to import two interfaces: RSSI and ReceiveMSG.
> Initially use enable signal strength reading by RSSI.rssi_enable(). When you
> receive a message  in  ReceiveMsg.receive(), you can read the signal
> strength using  strength field. but i dont think there is RSSI interface in
> tinyos1.x
> 3.how to use TOS_Msg to measure?
> Ican anyone tell me how to get the RSSI with mica2 ,thanks in advance.
>
> /V
>
> ___
> 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] Issue with Java on TinyOS-2.x

2008-06-09 Thread Michael Schippling
What is O'scope displaying? If it's "nothing" then I would
make sure you are using the right serial port to get to the
Basestation. You can also dispense with serialforwarder and
just connect O'scope to the port directly, which will eliminate
one more variable. I don't use T2 or Basestation so I can't
be of much more help...

MS



Kevin Ong wrote:
> I have done just that and had to remove other versions of java (i.e Desktop 
> Java updates which I found is causing confusion for Java classpath errors in 
> the environment settings). 
> 
> Putting that aside, I have another problem. When I successfully launched the 
> java and loaded the Oscilloscope and BaseStation codes onto 2 motes, the 
> Oscilloscope does not display what it should display in the tutorial? 
> Moreover, the BaseStation seems to have stopped blinking whenever I run the 
> SerialForwarder program???
> 
> 
>>Is it possible that the mystery class file was compiled with a later
>>version of Java? It's backward compatible but not forward...
>>You might try recompiling the sdk/java directories with your 1.5...
>>
>>MS
> 
> 
> 
> Tired of visiting multiple sites for showtimes?
> Yahoo! Movies 
> 
>  
> is all you need
> 
> 
> 
> 
> ___
> 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] JNI - getenv library

2008-06-09 Thread Michael Schippling
are you running on a 64 bit AMD platform?

Otherwise, I'm not entirely certain where java libs should go.
I've put them in the JRE/bin directory and on Widows in system32,
so I'm not sure if they belong under JRE/lib...

MS

[EMAIL PROTECTED] wrote:
> I sent an email before, and was told that my java installation was ok and
> I should place the getenv library in my JRE.
> 
> [EMAIL PROTECTED]:[...]/jre1.6.0_06$ find . -iname "*getenv*"
> ./lib/amd64/libgetenv.so
> 
> It appears to be already there,
> However, when I try to run the serial forwarder for example:
> 
> [EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ java
> net.tinyos.sf.SerialForwarder -port 9002 -comm serial@/dev/ttyS0:mica2
> The toscomm JNI library was not found.
> Check that your tinyos-tools package is installed and try
> rerunning tos-install-jni.
> Aborting.
> 
> How do I properly install jni?
> I mean, this tos-install-jni command do not work because nor does
> tos-locate-jre work, and all the jars are already placed in my java
> installation.
> 
> 
> 
> Thanks,
> Fernando.
> 
> --- Mensagem Original 
> Assunto: Re: [Tinyos-help] Trouble regarding Java/JNI
> De:  "Michael Schippling" <[EMAIL PROTECTED]>
> Data:Sex, Junho 6, 2008 1:16 pm
> Para:[EMAIL PROTECTED]
> CC:  tinyos-help@millennium.berkeley.edu
> --
> 
> The first problem is that you shouldn't put ".java" in the command:
>   java Oscilloscope
> You should also check that you have both "." and the path to the
> TOS java classes or jar in your CLASSPATH. If this is meaningless
> to you, search this list and google CLASSPATH.
> 
> The second problem is just me, but I believe tos-locate-jre to be
> utterly useless. What you need is to have the javax.comm or TOScomm
> jar, shared lib, and properties file, and the getenv shared lib in
> your JRE. You can hand copy them if you can find them. Jars go in
> JRE/lib/ext, javax.comm.properties goes in JRE/lib, and shared libs
> in JRE/bin. If you have a copy of your JRE from the old install
> they are probably still there, or search this list and google.
> 
> MS
> 
> 
> 
> [EMAIL PROTECTED] wrote:
>> I had previously installed the full package of tinyOS, including its
>> dependencies, such as java, the JNI library, etc; And they were all
>> working OK. It was on a machine in which ubuntu was running.
>>
>> Well, some things happened, and we switched to Fedora9.
>> I reinstalled tinyOS (with a lot of more trouble as there is no way of
>> installing it through the 'yum' command of Fedora), but when I try to run
>> some java apps, lots of errors appear, for example, the Oscilloscope
>> application.
>>
>> "[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ java
>> Oscilloscope.java
>> Exception in thread "main" java.lang.NoClassDefFoundError:
> Oscilloscope/java
>> Caused by: java.lang.ClassNotFoundException: Oscilloscope.java
>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>  at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)"
>>
>> or:
>>
>> "[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ ./run
>> getenv JNI library not found. Env.getenv will not work
>> (run the tos-install-jni tool, see man tos-install-jni for more details)"
>>
>>
>> I've already set the PATH and JAVA_HOME so they have the java installation
>> dir location there, and I also tried using ./update-alternatives --config
>> java, and no matter where I say it is, nothing works.
>>
>> Regarding the JNI library, when I try to install it through the
>> tos-install-jni command, it returns 'Java not found, not installing JNI
>> code', but hell, there IS java installed ! And nor do tos-locate-jre
>> --java or tos-locate-jre --jni return its path ! they do not display
>> anything at all.
>>
>> I simply don't know what should I do.. These java stuff are just... Ahw,
>> driving me mad
>>
>>
>> Any possible solutions?
>> (ps.: saying to rerun tos-install-jni or anything related to it will not
>> help at all, because the tos-locate-jre --* do not return anything, as it
>> should (and yes, I'm absolutely sure that java is installed, even more
>> than once actually, and none of its installations are recognized there))
>>
>>
>>
>>
>>
>> Thanks, Fernando
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
___
Tinyos-help ma

[Tinyos-help] about the error_t in AMSend interface provided by AMSenderC

2008-06-09 Thread 贾鹏
Hi there,
about the error_t in AMSend interface provided by AMSenderC

the send command does not return to SUCCESS but 6 (I see from LED)
Someone can tell me what is that meaning when return to 6?


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

Re: [Tinyos-help] about the error_t in AMSend interface provided by AMSenderC

2008-06-09 Thread Paul Stickney
look at $TOSROOT/tos/types/TinyError.h

HTH,
Paul

On 6/9/08, 贾鹏 <[EMAIL PROTECTED]> wrote:
> Hi there,
> about the error_t in AMSend interface provided by AMSenderC
>
> the send command does not return to SUCCESS but 6 (I see from LED)
> Someone can tell me what is that meaning when return to 6?
>
>
> sincerely
>  Peng
>
> ___
>  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] how to measure the Rssi with mica2

2008-06-09 Thread Gary Lee
Hi,

I tried to run RssiDemo under Tinyos 2.x. I copied all the files to the
directory. However, when I type "make telosb", it says that there is a
"conflicting type for RadioIntercept.forward" error.

Anyone can help? Regards,

Gary

On Mon, Jun 9, 2008 at 1:41 PM, Ittipong Khemapech <[EMAIL PROTECTED]>
wrote:

> This may be useful to you.
>
> http://docs.tinyos.net/index.php/Rssi_Demo
>
> Ittipong
>
> 2008/6/9 wang wei <[EMAIL PROTECTED]>:
>
>>  Hi, all
>> I'm trying to get the RSSI from the Rx with mica2 mote, but after learning
>> many messages posted befoore,im more confused about how to measure it.
>> my platform is tinyos1.x, mica2,cc1000,mib510
>> 1.i tried the Pong applicaction, but it seems its not compatible to mica2,
>> I really wanna know if the Pong application can work with mica2?
>> 2.someone said it needs to import two interfaces: RSSI and ReceiveMSG.
>> Initially use enable signal strength reading by RSSI.rssi_enable(). When you
>> receive a message  in  ReceiveMsg.receive(), you can read the signal
>> strength using  strength field. but i dont think there is RSSI interface in
>> tinyos1.x
>> 3.how to use TOS_Msg to measure?
>> Ican anyone tell me how to get the RSSI with mica2 ,thanks in advance.
>>
>> /V
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] how to measure the Rssi with mica2

2008-06-09 Thread Varun Jain
Hi Gary,

I had a similar  problem, if you see the intercept has the following
event:

 

event bool forward(message_t* msg, void* payload, uint8_t len);

 

Some 8 months ago, there was " The big interface switchover for Packet,
Send, Receive, and AMSend." So you got to update these interfaces if you
are running an old repository, the problem was that some interfaces did
not have the "uint8_t len" parameter in their events.

 

Cheers,

 

 

Varun Jain

R&D Embedded Design Engineer

Spiderbox Pty. Ltd.

P: +617 3318 9509

F: +617 3318 9595

M: +61401 091 248

E: [EMAIL PROTECTED]

W: http://www.spiderbox.com.au  

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Lee
Sent: Tuesday, June 10, 2008 10:08 AM
To: Ittipong Khemapech
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] how to measure the Rssi with mica2

 

Hi,

 

I tried to run RssiDemo under Tinyos 2.x. I copied all the files to the
directory. However, when I type "make telosb", it says that there is a
"conflicting type for RadioIntercept.forward" error.

 

Anyone can help? Regards,

 

Gary

On Mon, Jun 9, 2008 at 1:41 PM, Ittipong Khemapech <
[EMAIL PROTECTED]> wrote:

This may be useful to you.

http://docs.tinyos.net/index.php/Rssi_Demo

Ittipong

2008/6/9 wang wei <[EMAIL PROTECTED]>:

Hi, all
I'm trying to get the RSSI from the Rx with mica2 mote, but after
learning many messages posted befoore,im more confused about how to
measure it.
my platform is tinyos1.x, mica2,cc1000,mib510
1.i tried the Pong applicaction, but it seems its not compatible to
mica2, I really wanna know if the Pong application can work with mica2?
2.someone said it needs to import two interfaces: RSSI and ReceiveMSG.
Initially use enable signal strength reading by RSSI.rssi_enable(). When
you receive a message  in  ReceiveMsg.receive(), you can read the signal
strength using  strength field. but i dont think there is RSSI interface
in tinyos1.x
3.how to use TOS_Msg to measure?
Ican anyone tell me how to get the RSSI with mica2 ,thanks in advance. 

/V

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



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

 

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

Re: [Tinyos-help] JNI - getenv library

2008-06-09 Thread Urs Hunkeler

Hi Fernando,

Here is a very simple program that shows you the path where Java will 
look for native libraries and then tries to load the TinyOS specific 
libraries. If it fails it will give a more detailed error message than 
the default TinyOS programs and should help you understand why loading 
the libraries fails.


Cheers,
Urs


[EMAIL PROTECTED] wrote:

I sent an email before, and was told that my java installation was ok and
I should place the getenv library in my JRE.

[EMAIL PROTECTED]:[...]/jre1.6.0_06$ find . -iname "*getenv*"
./lib/amd64/libgetenv.so

It appears to be already there,
However, when I try to run the serial forwarder for example:

[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ java
net.tinyos.sf.SerialForwarder -port 9002 -comm serial@/dev/ttyS0:mica2
The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting.

How do I properly install jni?
I mean, this tos-install-jni command do not work because nor does
tos-locate-jre work, and all the jars are already placed in my java
installation.



Thanks,
Fernando.

--- Mensagem Original 
Assunto: Re: [Tinyos-help] Trouble regarding Java/JNI
De:  "Michael Schippling" <[EMAIL PROTECTED]>
Data:Sex, Junho 6, 2008 1:16 pm
Para:[EMAIL PROTECTED]
CC:  tinyos-help@millennium.berkeley.edu
--

The first problem is that you shouldn't put ".java" in the command:
java Oscilloscope
You should also check that you have both "." and the path to the
TOS java classes or jar in your CLASSPATH. If this is meaningless
to you, search this list and google CLASSPATH.

The second problem is just me, but I believe tos-locate-jre to be
utterly useless. What you need is to have the javax.comm or TOScomm
jar, shared lib, and properties file, and the getenv shared lib in
your JRE. You can hand copy them if you can find them. Jars go in
JRE/lib/ext, javax.comm.properties goes in JRE/lib, and shared libs
in JRE/bin. If you have a copy of your JRE from the old install
they are probably still there, or search this list and google.

MS



[EMAIL PROTECTED] wrote:

I had previously installed the full package of tinyOS, including its
dependencies, such as java, the JNI library, etc; And they were all
working OK. It was on a machine in which ubuntu was running.

Well, some things happened, and we switched to Fedora9.
I reinstalled tinyOS (with a lot of more trouble as there is no way of
installing it through the 'yum' command of Fedora), but when I try to run
some java apps, lots of errors appear, for example, the Oscilloscope
application.

"[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ java
Oscilloscope.java
Exception in thread "main" java.lang.NoClassDefFoundError:

Oscilloscope/java

Caused by: java.lang.ClassNotFoundException: Oscilloscope.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)"

or:

"[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/Oscilloscope/java$ ./run
getenv JNI library not found. Env.getenv will not work
(run the tos-install-jni tool, see man tos-install-jni for more details)"


I've already set the PATH and JAVA_HOME so they have the java installation
dir location there, and I also tried using ./update-alternatives --config
java, and no matter where I say it is, nothing works.

Regarding the JNI library, when I try to install it through the
tos-install-jni command, it returns 'Java not found, not installing JNI
code', but hell, there IS java installed ! And nor do tos-locate-jre
--java or tos-locate-jre --jni return its path ! they do not display
anything at all.

I simply don't know what should I do.. These java stuff are just... Ahw,
driving me mad


Any possible solutions?
(ps.: saying to rerun tos-install-jni or anything related to it will not
help at all, because the tos-locate-jre --* do not return anything, as it
should (and yes, I'm absolutely sure that java is installed, even more
than once actually, and none of its installations are recognized there))





Thanks, Fernando
public class LibTest {
  public static void main(String[] args) {
System.out.println(">> " + System.getProperty("java.library.path"));
try {
  System.loadLibrary("getenv");
  System.loadLibrary("toscomm");
} catch(Exception ex) {
  ex.printStackTrace();
}
  }
}

___
Tinyos-help mailing list
Tinyos-help@mi

[Tinyos-help] Ctp Problem with micaz

2008-06-09 Thread Yiannis Yiakoumis
Hi all,

I run into problems using ctp in micaz.
I use TestNetwork application installed in micaz. Root node seems to work ok, 
sending 
beacons with itself as parent and etx=0. But the receivers even though they get 
this 
beacon ( I have gone until insertNeighbor() which returns SUCCESS),they will 
keep on 
advertising  as a parent and complain about having no route.

The strange thing is that exactly the same code, compiled for telosb works 
without any 
problem... Is there any point that I should pay attention?

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


Re: [Tinyos-help] Ctp Problem with micaz

2008-06-09 Thread Omprakash Gnawali
On Mon, Jun 9, 2008 at 10:33 PM, Yiannis Yiakoumis <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I run into problems using ctp in micaz.
> I use TestNetwork application installed in micaz. Root node seems to work ok, 
> sending
> beacons with itself as parent and etx=0. But the receivers even though they 
> get this
> beacon ( I have gone until insertNeighbor() which returns SUCCESS),they will 
> keep on
> advertising  as a parent and complain about having no route.
>
> The strange thing is that exactly the same code, compiled for telosb works 
> without any
> problem... Is there any point that I should pay attention?
>

We have tested TestNetwork on MicaZ as well as TelosB.

Each mote sends debug output through the UART. Can you send the debug
output form the nodes?

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


Re: [Tinyos-help] Ctp Problem with micaz

2008-06-09 Thread Yiannis Yiakoumis
Om,

Here is the setup: Two micaz nodes, 143 is the root with ID 500, 141 is the 
other node. 
142 is a basestation close there...

Thanks,
Yiannis




[EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
net.tinyos.tools.Listen -comm 
[EMAIL PROTECTED]:10002
[EMAIL PROTECTED]:10002: resynchronising
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 0E
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 0F
00 FF FF 00 00 09 00 16 33 FF FF 00 00 00 00 00 10
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 11
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 12
[EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
net.tinyos.tools.Listen -comm 
[EMAIL PROTECTED]:10002
[EMAIL PROTECTED]:10002: resynchronising
00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0D EE 01 F4 00 0D 00 01 00 00 CA FE 
00 00 00 00 00
00 FF FF 00 00 09 00 16 20 00 0D 01 F4 00 00 00 47
00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 48
00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0E EE 01 F4 00 0E 00 01 00 00 CA FE 
00 00 00 00 00
00 FF FF 00 00 09 00 16 20 00 0E 01 F4 00 00 00 49
00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4A
00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0F EE 01 F4 00 0F 00 01 00 00 CA FE 
00 00 00 00 00
00 FF FF 00 00 09 00 16 20 00 0F 01 F4 00 00 00 4B
00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4C
00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 4D
00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 10 EE 01 F4 00 10 00 01 00 00 CA FE 
00 00 00 00 00
00 FF FF 00 00 09 00 16 20 00 10 01 F4 00 00 00 4E
00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4F
00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 50
00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 51
00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 52
00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 53
00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 54
00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 11 EE 01 F4 00 11 00 01 00 00 CA FE 
00 00 00 00 00
00 FF FF 00 00 09 00 16 20 00 11 01 F4 00 00 00 55
00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 56
00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 57
00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 12 EE 01 F4 00 12 00 01 00 00 CA FE 
00 00 00 00 00
00 FF FF 00 00 09 00 16 20 00 12 01 F4 00 00 00 58
00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 59
00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 5A
00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 13 EE 01 F4 00 13 00 01 00 00 CA FE 
00 00 00 00 00
00 FF FF 00 00 09 00 16 20 00 13 01 F4 00 00 00 5B
00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 5C
[EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
net.tinyos.tools.Listen -comm 
[EMAIL PROTECTED]:10002
[EMAIL PROTECTED]:10002: resynchronising
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1B
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1C
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1D
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1E
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1F
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 20
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 21
00 FF FF 00 00 09 00 16 33 FF FF 00 00 00 00 00 22
00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 23
[EMAIL PROTECTED] BaseNetwork]$


[EMAIL PROTECTED] BaseStation]$ java -classpath tinyos.jar 
net.tinyos.tools.Listen -comm 
[EMAIL PROTECTED]:10002
[EMAIL PROTECTED]:10002: resynchronising
00 FF FF 95 CB 0E 00 C7 00 FF FF FF 25 00 95 E6 FF FE FF FF FF FF
00 FF FF 7F BC 0E 00 C7 00 FF FF FF 25 00 2D 2B FF FE FF FF FF FF
00 FF FF 00 01 0A 00 18 01 49 00 00 01 00 00 00 01 56
00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
00 FF FF 00 01 06 00 0D 00 01 00 00 00 00



Omprakash Gnawali wrote:
> On Mon, Jun 9, 2008 at 10:33 PM, Yiannis Yiakoumis <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I run into problems using ctp in micaz.
>> I use TestNetwork application installed in micaz. Root node seems to work 
>> ok, sending
>> beacons with itself as parent and etx=0. But the receivers even though they 
>> get this
>> beacon ( I have gone until insertNeighbor() which returns SUCCESS),they will 
>> keep on
>> advertising  as a parent and complain about having no route.
>>
>> The strange thing is that exactly the same code, compiled for telosb works 
>> without any
>> problem... Is there any point that I should pay attention?
>>
> 
> We have tested TestNetwork on MicaZ as well as TelosB.
> 
> Each mote sends debug output through the UART. Can you send the debug
> output form the nodes?
> 
> - om_p
> 
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Ctp Problem with micaz

2008-06-09 Thread Yiannis Yiakoumis
Wanted to say that 141 is the root with ID 500, and 143 the other node with ID 
2. (142 
still being the BaseStation)..

Sorry about that,
Y.

Yiannis Yiakoumis wrote:
> Om,
> 
> Here is the setup: Two micaz nodes, 143 is the root with ID 500, 141 is the 
> other node. 
> 142 is a basestation close there...
> 
> Thanks,
> Yiannis
> 
> 
> 
> 
> [EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
> net.tinyos.tools.Listen -comm 
> [EMAIL PROTECTED]:10002
> [EMAIL PROTECTED]:10002: resynchronising
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 0E
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 0F
> 00 FF FF 00 00 09 00 16 33 FF FF 00 00 00 00 00 10
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 11
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 12
> [EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
> net.tinyos.tools.Listen -comm 
> [EMAIL PROTECTED]:10002
> [EMAIL PROTECTED]:10002: resynchronising
> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0D EE 01 F4 00 0D 00 01 00 00 CA FE 
> 00 00 00 00 00
> 00 FF FF 00 00 09 00 16 20 00 0D 01 F4 00 00 00 47
> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 48
> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0E EE 01 F4 00 0E 00 01 00 00 CA FE 
> 00 00 00 00 00
> 00 FF FF 00 00 09 00 16 20 00 0E 01 F4 00 00 00 49
> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4A
> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0F EE 01 F4 00 0F 00 01 00 00 CA FE 
> 00 00 00 00 00
> 00 FF FF 00 00 09 00 16 20 00 0F 01 F4 00 00 00 4B
> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4C
> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 4D
> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 10 EE 01 F4 00 10 00 01 00 00 CA FE 
> 00 00 00 00 00
> 00 FF FF 00 00 09 00 16 20 00 10 01 F4 00 00 00 4E
> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4F
> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 50
> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 51
> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 52
> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 53
> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 54
> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 11 EE 01 F4 00 11 00 01 00 00 CA FE 
> 00 00 00 00 00
> 00 FF FF 00 00 09 00 16 20 00 11 01 F4 00 00 00 55
> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 56
> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 57
> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 12 EE 01 F4 00 12 00 01 00 00 CA FE 
> 00 00 00 00 00
> 00 FF FF 00 00 09 00 16 20 00 12 01 F4 00 00 00 58
> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 59
> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 5A
> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 13 EE 01 F4 00 13 00 01 00 00 CA FE 
> 00 00 00 00 00
> 00 FF FF 00 00 09 00 16 20 00 13 01 F4 00 00 00 5B
> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 5C
> [EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
> net.tinyos.tools.Listen -comm 
> [EMAIL PROTECTED]:10002
> [EMAIL PROTECTED]:10002: resynchronising
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1B
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1C
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1D
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1E
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1F
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 20
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 21
> 00 FF FF 00 00 09 00 16 33 FF FF 00 00 00 00 00 22
> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 23
> [EMAIL PROTECTED] BaseNetwork]$
> 
> 
> [EMAIL PROTECTED] BaseStation]$ java -classpath tinyos.jar 
> net.tinyos.tools.Listen -comm 
> [EMAIL PROTECTED]:10002
> [EMAIL PROTECTED]:10002: resynchronising
> 00 FF FF 95 CB 0E 00 C7 00 FF FF FF 25 00 95 E6 FF FE FF FF FF FF
> 00 FF FF 7F BC 0E 00 C7 00 FF FF FF 25 00 2D 2B FF FE FF FF FF FF
> 00 FF FF 00 01 0A 00 18 01 49 00 00 01 00 00 00 01 56
> 00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
> 00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
> 00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
> 00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
> 
> 
> 
> Omprakash Gnawali wrote:
>> On Mon, Jun 9, 2008 at 10:33 PM, Yiannis Yiakoumis <[EMAIL PROTECTED]> wrote:
>>> Hi all,
>>>
>>> I run into problems using ctp in micaz.
>>> I use TestNetwork application installed in micaz. Root node seems to work 
>>> ok, sending
>>> beacons with itself as parent and etx=0. But the receivers even though they 
>>> get this
>>> beacon ( I have gone until insertNeighbor() which returns SUCCESS),they 
>>> will keep on
>>> advertising  as a parent and complain about having no route.
>>>
>>> The strange thing is that exactly the same code, compiled for telosb works 
>>> without any
>>> problem... Is there any point that I should pay attention?
>>>
>> We have tested TestNetwork on MicaZ as well as TelosB.
>>
>> Each mote sends debug output through the UART. Can you send the debug
>> output form the nodes?
>>
>> - om_p
>>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://

Re: [Tinyos-help] Ctp Problem with micaz

2008-06-09 Thread Omprakash Gnawali
I remember having a similar problem and I got CTP to work only after
disabling address filtering. Then I just used a fresh and clean tree
and it was working again. So, can you try a clean tree? If that does
not work, can you try disabling address filtering just so that we know
if the symptom you report is similar to the one I saw couple weeks
ago.

- om_p

On Mon, Jun 9, 2008 at 11:21 PM, Yiannis Yiakoumis <[EMAIL PROTECTED]> wrote:
> Wanted to say that 141 is the root with ID 500, and 143 the other node with
> ID 2. (142 still being the BaseStation)..
>
> Sorry about that,
> Y.
>
> Yiannis Yiakoumis wrote:
>>
>> Om,
>>
>> Here is the setup: Two micaz nodes, 143 is the root with ID 500, 141 is
>> the other node. 142 is a basestation close there...
>>
>> Thanks,
>> Yiannis
>>
>>
>>
>>
>> [EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
>> net.tinyos.tools.Listen
>> -comm [EMAIL PROTECTED]:10002
>> [EMAIL PROTECTED]:10002: resynchronising
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 0E
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 0F
>> 00 FF FF 00 00 09 00 16 33 FF FF 00 00 00 00 00 10
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 11
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 12
>> [EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
>> net.tinyos.tools.Listen
>> -comm [EMAIL PROTECTED]:10002
>> [EMAIL PROTECTED]:10002: resynchronising
>> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0D EE 01 F4 00 0D 00 01 00 00 CA
>> FE 00 00 00 00 00
>> 00 FF FF 00 00 09 00 16 20 00 0D 01 F4 00 00 00 47
>> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 48
>> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0E EE 01 F4 00 0E 00 01 00 00 CA
>> FE 00 00 00 00 00
>> 00 FF FF 00 00 09 00 16 20 00 0E 01 F4 00 00 00 49
>> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4A
>> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 0F EE 01 F4 00 0F 00 01 00 00 CA
>> FE 00 00 00 00 00
>> 00 FF FF 00 00 09 00 16 20 00 0F 01 F4 00 00 00 4B
>> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4C
>> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 4D
>> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 10 EE 01 F4 00 10 00 01 00 00 CA
>> FE 00 00 00 00 00
>> 00 FF FF 00 00 09 00 16 20 00 10 01 F4 00 00 00 4E
>> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4F
>> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 50
>> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 51
>> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 52
>> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 53
>> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 54
>> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 11 EE 01 F4 00 11 00 01 00 00 CA
>> FE 00 00 00 00 00
>> 00 FF FF 00 00 09 00 16 20 00 11 01 F4 00 00 00 55
>> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 56
>> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 57
>> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 12 EE 01 F4 00 12 00 01 00 00 CA
>> FE 00 00 00 00 00
>> 00 FF FF 00 00 09 00 16 20 00 12 01 F4 00 00 00 58
>> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 59
>> 00 FF FF 00 00 09 00 16 33 00 01 00 00 00 00 00 5A
>> 00 FF FF 00 00 17 00 EE 00 00 00 00 01 F4 13 EE 01 F4 00 13 00 01 00 00 CA
>> FE 00 00 00 00 00
>> 00 FF FF 00 00 09 00 16 20 00 13 01 F4 00 00 00 5B
>> 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 5C
>> [EMAIL PROTECTED] BaseNetwork]$ java -classpath tinyos.jar 
>> net.tinyos.tools.Listen
>> -comm [EMAIL PROTECTED]:10002
>> [EMAIL PROTECTED]:10002: resynchronising
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1B
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1C
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1D
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1E
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 1F
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 20
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 21
>> 00 FF FF 00 00 09 00 16 33 FF FF 00 00 00 00 00 22
>> 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 23
>> [EMAIL PROTECTED] BaseNetwork]$
>>
>>
>> [EMAIL PROTECTED] BaseStation]$ java -classpath tinyos.jar 
>> net.tinyos.tools.Listen
>> -comm [EMAIL PROTECTED]:10002
>> [EMAIL PROTECTED]:10002: resynchronising
>> 00 FF FF 95 CB 0E 00 C7 00 FF FF FF 25 00 95 E6 FF FE FF FF FF FF
>> 00 FF FF 7F BC 0E 00 C7 00 FF FF FF 25 00 2D 2B FF FE FF FF FF FF
>> 00 FF FF 00 01 0A 00 18 01 49 00 00 01 00 00 00 01 56
>> 00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
>> 00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
>> 00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
>> 00 FF FF 00 01 06 00 0D 00 01 00 00 00 00
>>
>>
>>
>> Omprakash Gnawali wrote:
>>>
>>> On Mon, Jun 9, 2008 at 10:33 PM, Yiannis Yiakoumis <[EMAIL PROTECTED]>
>>> wrote:

 Hi all,

 I run into problems using ctp in micaz.
 I use TestNetwork application installed in micaz. Root node seems to
 work ok, sending
 beacons with itself as parent and etx=0. But the receivers even though
 they get this
 beacon ( I have gone until insertNeighbor() which returns SUCCESS),they
 will keep on
>>