Re: [Tinyos-help] CollectionSenderC.send(...) does not signal sendDone(error_t)

2008-06-06 Thread Paul Stickney
Do you get this same problem when using AMSend directly? (Is it only a problem with CollectionSend?) EBUSY keeps getting returned because, well, the send isn't done (which explains the sendDone never being called). This is different then a plain-old FAILURE. SUCCESS is returned the first time

[Tinyos-help] Tymo warnings and TOSSIM errors

2008-06-06 Thread Varun Jain
Hi Romain, When I am building the TestTymo application, I am getting a warning in DymoEngineM module's incr_seqnum() function, it says that: Warning: decimal constant is so large that it is unsigned I went on to see the rt_info_t structure defined in routing.h, it has the seqnum defined

[Tinyos-help] TinierDB?

2008-06-06 Thread Nguyen Thanh Phuong
Hi all, Has anybody played with TinierDB? I cant find any document clear to me about how to make it run well on telosb. Can you suggest me any? Any help would be appreciated, Phuong. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

Re: [Tinyos-help] CollectionSenderC.send(...) does not signal sendDone(error_t)

2008-06-06 Thread Nicola Wegner
2008/6/6 Paul Stickney [EMAIL PROTECTED]: [...] I don't have in-depth enough knowledge about the Collection implementations, but I suspect that (in priority of where I'd start looking) 1) No route is being found and it's waiting and waiting and ... This really seems to be the problem. I have

[Tinyos-help] 'EasyBroadcast' problem

2008-06-06 Thread Jordan Jan Jordanow
Hello * , I wrote a little program named 'EasyBroadcast' that should send a message every 2 second to the base station with incrementing values. Base station is a node with ID=1. Base station forwards received packets to serial. The problem is when I read this message with MsgReader I

Re: [Tinyos-help] 'EasyBroadcast' problem

2008-06-06 Thread Xiaojun Zhu
Hi Jordan, I guess,maybe you should copy received packet to a local variable in the base station.Then you can forward it to the computer. Just like this: message_t forward_msg; event Receive.receive(..) ... memcpy(forward_msg,msg,sizeof(...)); ... forwardmsg() ... call

[Tinyos-help] tossim-sf - import TestSerialMsg

2008-06-06 Thread Daniel Pereira
Hi all, I'm trying to use tossim-sf with TestSerial (tinyos-2.x/apps/tests/TestSerial) application. So I compile it using: make micaz sim-sf. Next, when I start with Python, I can not import TestSerialMsg. [EMAIL PROTECTED]:~/tinyos-2.x/apps/tests/TestSerial$ python Python 2.5.1 (r251:54863,

[Tinyos-help] one question about T2 TEP

2008-06-06 Thread Gary Lee
I am wondering why some TEP about T2 are not listed as a link in www.tinyos.net. For example, TEP 105 is not listed in www.tinyos.net. However, it can be accessed. Thanks, Gary ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

[Tinyos-help] Trouble regarding Java/JNI

2008-06-06 Thread fhg07
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

Re: [Tinyos-help] 'EasyBroadcast' problem

2008-06-06 Thread Jordan Jan Jordanow
Hi Xiaojung Thanks for your fast answort but this method has nothing changed. I checked the 'forward_msg' just before sending to serial port and it contained the right data. But the serial gets null's. wr ... ;-)any others ideas?cheers Jordan Dnia 6-06-2008 o godz. 14:09 Xiaojun Zhu

[Tinyos-help] Digital Channels as Output on MDA300CA

2008-06-06 Thread Steve Yazicioglu
I'm rather new to TinyOS, so my question may seem rather elementary. I am trying to use the channels D0-D5 on the MDA300CA DAQ board, fitted with a MICA2, as outputs to control some external switches for powering some sensors on and off. I haven't been able to find any documentation or

Re: [Tinyos-help] TOPOLOGY FILE IN TOSSIM

2008-06-06 Thread Daniel Pereira
I didn't understand how to configure the network topology for TOSSIM. The snippet of Python code create seven nodes. for i in range(0, 7): t.getNode(i).createNoiseModel() How can I relate this nodes with the network topology? Should I set the Channel, Radio and Topology parameters in the

Re: [Tinyos-help] Trouble regarding Java/JNI

2008-06-06 Thread Michael Schippling
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

Re: [Tinyos-help] about FTSP

2008-06-06 Thread Branislav Kusy
jiwen zhang wrote: Hello brano : I want to make FTSP working on my computer , what should i do ? at present , i have the cvs tree , and the the cvs codes of FTSP , also i have micaz motes . Firestly , i should compile the app successfully on my computer . for example , if i want

[Tinyos-help] Activating the strength field in TOS_Msg

2008-06-06 Thread nirupama
Hi , Can anybody pls help me with the following queries . In the structure of TOS_Msg in AM.h ,it specifies certain fields that are transmitted and the remaining are not. Not transmitted fields are strength,ack,time,sendsecuritymode and receive security mode. If I want to send a broadcast

Re: [Tinyos-help] Digital Channels as Output on MDA300CA

2008-06-06 Thread Michael Schippling
Xbow has some support in TOS 1.x in: tinyos*/contrib/xbow/tos/sensorboards/mda300 I don't know if it got to T2 though. MS Steve Yazicioglu wrote: I'm rather new to TinyOS, so my question may seem rather elementary. I am trying to use the channels D0-D5 on the MDA300CA DAQ board, fitted

Re: [Tinyos-help] safe tinyos annotations

2008-06-06 Thread Philip Levis
On Jun 5, 2008, at 10:05 PM, John Regehr wrote: I saw safe tinyos annotations and started changing files from the CVS. Can anyone tell what is the purpose of ONE, ONE_NOK, TRUSTEDBLOCK and where are they defined? The annotations are described here:

Re: [Tinyos-help] safe tinyos annotations

2008-06-06 Thread John Regehr
It might be nice to write up a TEP on the annotations and what they mean, so there's a documentation source within the TinyOS tree. Or a wiki entry? Phil Absolutely. My plan is for our local Safe TinyOS documentation to morph into a documentary TEP once things settle down and seem all

Re: [Tinyos-help] CollectionSenderC.send(...) does not signal sendDone(error_t)

2008-06-06 Thread Omprakash Gnawali
On Fri, Jun 6, 2008 at 3:35 AM, Nicola Wegner [EMAIL PROTECTED] wrote: 2008/6/6 Paul Stickney [EMAIL PROTECTED]: [...] I don't have in-depth enough knowledge about the Collection implementations, but I suspect that (in priority of where I'd start looking) 1) No route is being found and it's

Re: [Tinyos-help] TOPOLOGY FILE IN TOSSIM

2008-06-06 Thread Daniel Pereira
I understood how to generate the topology file, my doubt now is: Which command should I use to input these values? On Fri, Jun 6, 2008 at 11:21 AM, Daniel Pereira [EMAIL PROTECTED] wrote: I didn't understand how to configure the network topology for TOSSIM. The snippet of Python code create

[Tinyos-help] any example c/c++ code?

2008-06-06 Thread Eric Keller
II was wondering if there are any clean examples of pc side programs written in c/c++, particularly ones that use MIG. I tried to use it and failed, ended up hardwiring my code to extract values from packets. I searched through the contrib package, and didn't find anything. Eric

Re: [Tinyos-help] any example c/c++ code?

2008-06-06 Thread Paul Stickney
Have you looked at the generated MIG code? On Fri, Jun 6, 2008 at 10:52 AM, Eric Keller [EMAIL PROTECTED] wrote: II was wondering if there are any clean examples of pc side programs written in c/c++, particularly ones that use MIG. I tried to use it and failed, ended up hardwiring my code to

Re: [Tinyos-help] tossim-sf - import TestSerialMsg

2008-06-06 Thread Paul Stickney
TestSerialMsg.py is not in your PYTHONPATH. Find it and add it :) Or start python in the correctly relative directory. [Maybe it has not been mig-generated yet?] HTH, Paul On Fri, Jun 6, 2008 at 6:41 AM, Daniel Pereira [EMAIL PROTECTED] wrote: Hi all, I'm trying to use tossim-sf with

Re: [Tinyos-help] Activating the strength field in TOS_Msg

2008-06-06 Thread Paul Stickney
Don't mess with TOS_Msg. Ever. (Unless you want lots of pain.) Some fields are, well, virtual, that is, they only exist -on- a mote and are -never transmitted-. RSSI is one of them. It is not sent with a packet, it is merely filled automatically when a packet arrives. After receiving a packet,

Re: [Tinyos-help] Trouble regarding Java/JNI

2008-06-06 Thread Paul Stickney
(I run my programs with that ... warning all the time.) ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] any example c/c++ code?

2008-06-06 Thread Eric Keller
I tried to use the MIG generated code, it looked correct to me, but seemed that it was referencing the bytes at the wrong position in the packet. I figure I was using it wrong somehow, but couldn't see how. Eric On Fri, Jun 6, 2008 at 2:19 PM, Paul Stickney [EMAIL PROTECTED] wrote: Have you

Re: [Tinyos-help] 'EasyBroadcast' problem

2008-06-06 Thread Paul Stickney
# this looks wrong (maybe be correct behavior, it's messy either-way) EasyBroadcastMsg* msg = (EasyBroadcastMsg*)(call RadioPacket.getPayload(packet,NULL)); getPayload(ptr, size_to_ensure) # this is wrong. the return from receive releases the message. # (but you feed it into another send) event

Re: [Tinyos-help] TOPOLOGY FILE IN TOSSIM

2008-06-06 Thread Tal Rusak
Here is an example of importing a topology file from the tutorials: f = open(15-15-tight-mica2-grid.txt, r) lines = f.readlines() for line in lines: s = line.split() if (len(s) 0): if (s[0] == gain): r.add(int(s[1]), int(s[2]), float(s[3]))

Re: [Tinyos-help] tossim-sf - import TestSerialMsg

2008-06-06 Thread Daniel Pereira
Paul, you are right, I had not included the mig-generated line in the Makefile. But now, when I try import the file I have received another message: import sys from TOSSIM import * from TestSerialMsg import * Traceback (most recent call last): File stdin, line 1, in module File

Re: [Tinyos-help] CollectionSenderC.send(...) does not signal sendDone(error_t)

2008-06-06 Thread Philip Levis
On Jun 6, 2008, at 3:35 AM, Nicola Wegner wrote: 2008/6/6 Paul Stickney [EMAIL PROTECTED]: [...] I don't have in-depth enough knowledge about the Collection implementations, but I suspect that (in priority of where I'd start looking) 1) No route is being found and it's waiting and waiting

Re: [Tinyos-help] one question about T2 TEP

2008-06-06 Thread Philip Levis
On Jun 6, 2008, at 7:23 AM, Gary Lee wrote: I am wondering why some TEP about T2 are not listed as a link in www.tinyos.net . For example, TEP 105 is not listed in www.tinyos.net. However, it can be accessed. It's not yet a stable draft that's ready for active comment. Phil

[Tinyos-help] Hi the problem about no connectted

2008-06-06 Thread 贾鹏
Hi there, I encounter some wire problem here, ForwardingEngineC.nc:146: SubPacket.getPayload not connected ForwardingEngineC.nc: In function `sendtask.runTask': ForwardingEngineC.nc:121: SendQueue.empty not connected ForwardingEngineC.nc:126: SendQueue.head not connected

Re: [Tinyos-help] TOPOLOGY FILE IN TOSSIM

2008-06-06 Thread Daniel Pereira
Hi Tal, The LinkLayerModel application generates two files, topology.out and linkgain.out. I don't know exactly what to do with the values. 1) The snippet of Python code create nodes: f = open(topology.out, r) lines = f.readlines() for line in lines: s = line.split() if (len(s) 0): m =

[Tinyos-help] quick question decimal constant is so large that it is unsigned

2008-06-06 Thread Alexandre Buist
Hi Just wondering, how can I get rid of this useless warning /opt/tinyos-2.x/tos/chips/Wn100/Wn100P.nc: At top level: /opt/tinyos-2.x/tos/chips/Wn100/Wn100P.nc:46: warning: decimal constant is so large that it is unsigned Here is the code implementation { 46uint16_t

Re: [Tinyos-help] quick question decimal constant is so large that it is unsigned

2008-06-06 Thread Michael Schippling
Make the constant unsigned with a U: uint16_t CLK_CYCLES_PER_SEC_TOS = 32768U; MS Alexandre Buist wrote: Hi Just wondering, how can I get rid of this useless warning /opt/tinyos-2.x/tos/chips/Wn100/Wn100P.nc: At top level: /opt/tinyos-2.x/tos/chips/Wn100/Wn100P.nc:46:

[Tinyos-help] Dear Sir, need help in programming Micaz

2008-06-06 Thread zhia howe chong
HI Sir, I am a beginner in this micaz and mda320 devices. So far, i have acquired 4 micaz motes and 4 mda320 platform from my supervisor. Now, my task is to setup a WSN, where each of the motes will take data for different readings and different places, and whicn be setup easily. I have done