Re: [Tinyos-help] Acoustic Ranger error

2010-10-23 Thread MUNEERA A. ALBABTAIN
Well, Sorry about that. I really appreciate your help Attached is my ToneDetector files. I have moved the declaration of the datamsg* packet to the beginning of the function block, then I got these warnings and the program doesn't function properly:

[Tinyos-help] Acoustic Ranger error

2010-10-11 Thread MUNEERA A. ALBABTAIN
Hello again,, I have been trying to do my own acoustic ranger application with micaz motes (mts310CA sensorboard). I have three nodes: Node1: only sends an RF packet to node2 and buzz the sounder at the same time. Node2: Receives the RF packet sent from node1 and increments a counter ( with a

Re: [Tinyos-help] Acoustic Ranger error

2010-10-11 Thread Michael Schippling
You haven't included the part of your program where 'msg' is declared, so it's hard to say exactly why the compiler is whining... The problem with packet is that variables can only be declared at the beginning of code blocks in C and Nesc. A code block is surrounded by { } braces, so declarations