[Tinyos-help] What's wrong with my BlockWrite code?

2007-05-10 Thread SANG Junjun
This is a simplest test. But It seems that only the erase operation works in mica2. I don't know why. RandRWAppC.nc: #include StorageVolumes.h configuration RandRWAppC { } implementation { components RandRWC, new BlockStorageC(VOLUME_BLOCKTEST), MainC, LedsC, PlatformC, RandomC;

Re: [Tinyos-help] Problem with Surge Java compilation

2007-05-10 Thread Michael Schippling
Java deprecated classes are, IMHO, a joke. Excepting, as David Gay has pointed out, System.getenv() they are all still there due to the backward (compatibility) requirements. Just ignore the warnings and wish that Java system implementors had been able to design things reasonably the first

Re: [Tinyos-help] EEPROM, logger, tmote

2007-05-10 Thread Urs Hunkeler
Tmotes even have two flash EEPROMS (terminology borrowed from the tinyos-1 tutorial): one on the microcontroller and an external one, which is even bigger than the MicaX ones :-) Joke aside, it looks like the mica family of motes uses for the external flash a AT45DB chip, while the tmote uses an

[Tinyos-help] Problem with Oscilloscope application

2007-05-10 Thread CASTEL Myriam
Hi, I'm trying tu run the oscilloscope application in micaz motes buy following the instruction of the tutorial Lesson 6: I typed: make micaz install mib510,/dev/ttyS0 and after: java net.tinyos.sf.SerialForwarder -comm [EMAIL PROTECTED]:57600 but nothing appears on the Serial Forwarder

Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports found!

2007-05-10 Thread Greg Turnipseed
I used type java from cygwin and got: Java is hashed (/cygdrive/c/WINDOWS/system32/java) I looked, and sure enough, java itself is in there, but it doesn't make mention of where the extensions and such should go. I'm using 1.6.0_01, so I tried moving my files to correspond with what you had,

Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports found!

2007-05-10 Thread Greg Turnipseed
Hello, Marcel. I'm not sure, but this strikes me as application-level, whereas the problem I seem to be having is operating system/java engine level. Where did you get the toscomm.dll file? Thanks, Greg Turnipseed From: Marcel Kania [EMAIL PROTECTED] Date: Wed, 09 May 2007 23:50:33 -0300

Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports found!

2007-05-10 Thread Greg Turnipseed
SUCCESS! After poking around some more, I realized I have 3 (why???) different versions of Java installed, and apparently I was in the wrong one. Finally tried the third one, and got it working with the .dll going into javapath\bin, the comm.jar into javapath\lib\ext, and the properties file into

Re: [Tinyos-help] Problem with Oscilloscope application

2007-05-10 Thread Michael Schippling
Try using mica2 instead of 57600 in the -comm argument. I know, I know, it should be micaz, but that's not the way things work... Oh yeah, and if you are using later cygwin versions try /dev/ttyS0 instead of COM1 too... If that doesn't work, try the ListenRaw program to see if you are getting

RE: [Tinyos-help] Problem with Oscilloscope application

2007-05-10 Thread Oussama Chougna
Well, That's a very strange problem here which i also still have. When using 57600 , the java tools don't work. When using tmote, which is the variable for 57600 it works! In both cases it also says: COM3:57600 synchronizing. So i think there is somewhere a bug in the java tools, maybe in the

Re: [Tinyos-help] Problem with Oscilloscope application

2007-05-10 Thread CASTEL Myriam
Thanks for your advices but I didn't manage to solve the problem. I tried mica2 instead of 57900 but I have the same thing: [EMAIL PROTECTED]:57600: resynchronising and no packets. /dev/ttyS0 doesn't work:JavaIOException: invalid port The ListenRaw programm doens't work too: I obtain: openong

[Tinyos-help] Tmote CC2420 MAC payload length

2007-05-10 Thread Erwing Sánchez
Hi everybody: I'm currently trying to develop a forward error correction algorithm above the IEEE 802.15.4 protocol stack of the CC2420 module in the Tmote Sky platform. Basically, I get rid of all TOS packets and go to the lowest level to work almost directly with the physical frame that is

AW: [Tinyos-help] Tmote CC2420 MAC payload length

2007-05-10 Thread Ole Bischoff
Hi Erwing, did you also changed (increased) TOSH_DATA_LENGTH in your Makefile? Because in most implementations of the send() command there is something like: command result_t Send.send[uint8_t id](TOS_MsgPtr _msg, uint16_t _length) { TOS_MHopMsg* _mhopmsg = (TOS_MHopMsg*)_msg-data;

[Tinyos-help] functions delay, sleep.. in nesc??

2007-05-10 Thread Dipti
Hi all, Are the functions delay( ),sleep( ), etc predefined in nesC.? Thanks in advance. Dipti___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] power tossim value stuck at 0

2007-05-10 Thread umar hafeez
Hi, I have a strange problem for my program that when i use power tossim, all power values are stuck at 0. Why/How would this happen and how can i go about fixing it? ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

Re: [Tinyos-help] functions delay, sleep.. in nesc??

2007-05-10 Thread Urs Hunkeler
I don't think so. While a program is sleeping, nothing else could execute (it's not a multi-threading system). You probably would have to split your function in two parts at the point where you would want to insert the delay()/sleep() function call. Then you use a timer instead. This way another

[Tinyos-help] Surge Application

2007-05-10 Thread Ray kah
Hi all I have using Surge as my application and also the GUI to monitor packets. However, I noticed that if node 0 (base-station) does not send any surge message, the surge GUI not display correct results (e.g . zero yeild) My scenario is simple: [node1] -- [node0] In my SurgeM.nc, I dont

[Tinyos-help] Re: Help with TinySec

2007-05-10 Thread Mallay Benjamin
Hello All, I'm currently generating an application using TinySec. However, I want to extend the current group-id by splitting the nodes into clusters? How do I go about doing that? Thanks. - All New Yahoo! Mail – Tired of

[Tinyos-help] Rv: Tmote CC2420 MAC payload length

2007-05-10 Thread Erwing Sánchez
Hi Ole! I actually tried that too (increasing TOSH_DATA_LENGTH). But it did not work, which I believe is correct because I'm not working with TOS_msg. Instead, I create my own 'struct' which is similiar to the TOS_msg struct but with less control fields. Besides, I do not use any component that

Re: [Tinyos-help] interface TimerTMicro

2007-05-10 Thread Steve McKown
Hi, On Wednesday 09 May 2007 20:52, shanza khan wrote: I want to get time for execting a function. So i want to used timer interface with TMicro can anybody tell me that which component i should use for it that provide timer interface with Tmicro. TinyOS 1.1.x or 2.x? What hardware platform?

Re: [Tinyos-help] functions delay, sleep.. in nesc??

2007-05-10 Thread Steve McKown
On Thursday 10 May 2007 07:31, Urs Hunkeler wrote: Dipti schrieb: Hi all, Are the functions delay( ),sleep( ), etc predefined in nesC.? Thanks in advance. I don't think so. While a program is sleeping, nothing else could execute (it's not a multi-threading system). You probably would

[Tinyos-help] Display Receive Message

2007-05-10 Thread [EMAIL PROTECTED]
Hi i create an application that send message between 2 tmote Sky using Tinyos 1.1. Now i show datas by the command ..Listen: and i see a string like that: 7e 00 0a 7d 1a 01 00 14 00 01 00 10 00 where the last 2 bytes are the value of data. I want to know if it is possible to show a string like

[Tinyos-help] tranfer time in Micaz

2007-05-10 Thread Jeong Kwanhee
Hello all! I want to transfer Micaz TOS_MSG transfer time to PC. However, I don't know the setup method in Micaz's Surge application. Could you know me about this?? Seeing AM.h, I found time, etc. How is this using and setting up??? ___

Re: [Tinyos-help] Battery voltage curves - Estimating battery lifetime from Voltage

2007-05-10 Thread Benjamin Madore
I would like to say that this is the most eloquent explanation I have seen for the question of battery monitoring on motes. On Mon, April 30, 2007 11:31 am, Steve McKown said: Assuming you aren't periodically recharging your battery, you can use four variables to give you a very rough idea of

[Tinyos-help] Oscilloscope

2007-05-10 Thread [EMAIL PROTECTED]
Hi i read lesson 6 and i try to use it, but i have a question. Can i show only one data on Oscilloscope GUI?+ the tutorial use a buffer of 10 data but i want to show only one data at one time; i change the value of BUFFER_SIZE in OscopeMsg but this action caused some error when showing data.

Re: [Tinyos-help] interface TimerTMicro

2007-05-10 Thread Steve McKown
Hi Shanza, I hope you don't mind me putting this discussion back to the list. Others in the future may benefit from our discussion. On Thursday 10 May 2007 09:35, shanza khan wrote: Thank you but i am using Timer.fired(). I don't see a microsecond timer implemented for any tos2 platform.

Re: [Tinyos-help] interface TimerTMicro

2007-05-10 Thread Cory Sharp
It's been discussed before, but it's worth mentioning again. Timer.fired is synchronous, which means after the corresponding hardware interrupt signals, the application fired events goes through the task queue. That means an arbitrary number tasks and an arbitrary amount of code may execute

Re: [Tinyos-help] Problem with Oscilloscope application

2007-05-10 Thread Michael Schippling
oh you know...that stupid little switch on the MIB510, on the edge opposite from the serial connector... It should be in the OFF position. I believe that having programmed the device successfully is evidence that the port and wiring are OK, but you could double check all that. Beyond that I'd

Re: [Tinyos-help] Display Receive Message

2007-05-10 Thread Michael Schippling
I have that deja-vu feeling that I just posted thisa few times. Have a look at tinyos-1.x/tools/src for some C examples of message reading. MS [EMAIL PROTECTED] wrote: Hi i create an application that send message between 2 tmote Sky using Tinyos 1.1. Now i show datas by the command

Re: [Tinyos-help] Oscilloscope

2007-05-10 Thread Michael Schippling
You probably need to change the GUI program to expect only one sample in each message as well. Also trace through all the places that the BUFFER_SIZE is used and make sure someone hasn't made some silly assumption about it's size. MS [EMAIL PROTECTED] wrote: Hi i read lesson 6 and i try to use

Re: [Tinyos-help] interface TimerTMicro

2007-05-10 Thread Michael Schippling
Actually I think JiffyTimer on micaz and SysTime on mica2 use the ATMEGA Timer3 to make close to 1us timers. I discovered this after I laboriously reinvented the wheel in my code at: http://www.etantdonnes.com/Motes/AVR128timers.zip But none of them use the Timer[x] sort of abstraction. MS

Re: [Tinyos-help] interface TimerTMicro

2007-05-10 Thread Steve McKown
Cory, thank you! I'm reminded of that old saying always ask why before you ask how. Bit again... Shanza, now you see the *real* reason I put this back on the list. ;^) On Thursday 10 May 2007 11:56, Cory Sharp wrote: It's been discussed before, but it's worth mentioning again. Timer.fired

Re: [Tinyos-help] The connection between some program in C and the mote

2007-05-10 Thread Steve McKown
Hi, On Wednesday 09 May 2007 03:59, Micfox Micfox wrote: I have the following problem I need to solve and hope I can get some advice from this mailing list. Let me say I have a program called A (in C language). It can generate some output (denoted as B). I need to pass B to the motes

[Tinyos-help] slower compilation in cygwin

2007-05-10 Thread Affan Ahmed
I have noticed that compiling in cygwin is comparatively slower than in linux. Is there a reason for that and a work around? Thanks. Affan. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

Re: [Tinyos-help] slower compilation in cygwin

2007-05-10 Thread Philip Levis
On May 10, 2007, at 3:18 PM, Affan Ahmed wrote: I have noticed that compiling in cygwin is comparatively slower than in linux. Is there a reason for that and a work around? The reason is that Cygwin has to translate all of the UNIX system calls into Windows system calls. There is no

Re: [Tinyos-help] power tossim value stuck at 0

2007-05-10 Thread Sarfraz Nawaz
Did you use the -p switch with your tossim compiled main.exe? On 5/10/07, umar hafeez [EMAIL PROTECTED] wrote: Hi, I have a strange problem for my program that when i use power tossim, all power values are stuck at 0. Why/How would this happen and how can i go about fixing it?

[Tinyos-help] how can i call Timer.fired() event under ReceiveMsg.receive event.

2007-05-10 Thread Dipti
Hi all, I need to develop an application in which one of the Motes say mote1 is programmed to send counter values on RF. The other mote say mote 2 has to be programmed in such a way that when it receives a particular count say 10 from the mote1 it shud send highs on 3 i/o pins for say x secs,