Re: [Tinyos-help] SF problem

2007-10-02 Thread Michael Schippling
I'm assuming that there is a space before -comm (" -comm ") because it's not visible in your message... If it's crashing in MoteIF its probably trying to open the serial port. There might be some difference in the environment that you get from exec(). Or there may be different permissions needed.

Re: [Tinyos-help] Lesson 4 tinyos-2.x:trouble executing java Listen

2007-10-02 Thread Michael Schippling
Check the installation and instructions for javacomm. I believe it's part of the full T2 install and probably gets put in tinyos.../tools. It's the interface between Java and the serial ports. You should be able to google info about "tinyos-tools" and "tos-install-jni". MS sergio mena doce wrote

Re: [Tinyos-help]Receiving Bad Packets

2007-10-04 Thread Michael Schippling
I'm "fairly sure" that TOSBase doesn't do any received CRC check. If you look at Packetizer.java::readFramedPacket() you can see where messages are rejected based on the CRC failure, so this is probably the place to hack. I find that jackhammers and banging on pots and pans are good for creating

Re: [Tinyos-help]Receiving Bad Packets

2007-10-04 Thread Michael Schippling
e any thing that can be done with these files:(they seem to be doing something with crc) 1)tos\platform\mica2\CC1000RadioIntM.nc(I doubt something can be done here) 2) tos\platform\system\CrcFilter 3) tos\platform\CRCPacket.nc. As a newbie,i dont know perfectly what is going on? Many Than

Re: [Tinyos-help] problems with ncc

2007-10-05 Thread Michael Schippling
It could be as simple as putting the directories that contain the "missing" command files into your PATH environment variable. First, find the files using the "find" command or a FileMangler find. Second, put the directory into your PATH, either using the Environment Variables panels hidden benea

Re: [Tinyos-help] Re: Sending float values

2007-10-09 Thread Michael Schippling
The ADCs in the micaz produce 10 linear bits which are stuffed into a u_int16, where (pretty much) 0x000 is 0 volts at the sensor input and 0x3FF is the battery voltage (which is used as the conversion reference). Note that, without external level shift hardware, there is no concept of a negative

Re: [Tinyos-help] floating number

2007-10-09 Thread Michael Schippling
See my just-past-post about the advisability of using FP values... But you "should" be able to just declare: float stuff[SIZE]; If you use floats in a TOSMsg payload, MIG should be able to generate a Java class that interprets them correctly. I poked in there some time ago and remember seeing

Re: [Tinyos-help] Basestation

2007-10-09 Thread Michael Schippling
I can't help with the T2 basestation code, but I notice that you may be confusing two things... According to the first part of your message, it is apparently possible to compile BS such that it only receives packets that are addressed directly TO it. However at the end you say: > I just want to

Re: [Tinyos-help] Re: Sending float values

2007-10-09 Thread Michael Schippling
s. Am I making things too complicated? And is this done automatically? Someone please correct me if I'm wrong. Regards, Kurt Original Message Follows From: Michael Schippling <[EMAIL PROTECTED]> To: Roberto <[EMAIL PROTECTED]> CC: TinyOS-Help Subject: Re: [Tinyos-hel

Re: [Tinyos-help] Re: Tinyos-help Digest, Vol 54, Issue 35

2007-10-10 Thread Michael Schippling
3. RE: Deluge2.0 can't format the flash on telos revision a. why? (JungDoyeong) 4. Re: Re: Sending float values (Michael Schippling) 5. RE: where is TOSBoot? How can I install and modify it? (JungDoyeong) 6. He

Re: [Tinyos-help] UART Problems with MicaZ, TinyOS-1.1

2007-10-10 Thread Michael Schippling
If you are using Java on the host side you should use Packetizer.java as your message handling code. This is buried inside BuildSource.makePacketSource() and MoteIF The BcastInject.java utility uses MoteIF to send and receive messages. You can follow through the whole shebang in apps/SimpleCmd

Re: [Tinyos-help] Converting String to Byte to send in UART TX

2007-10-12 Thread Michael Schippling
You should probably start by learning the C language. This may help: http://en.wikibooks.org/wiki/C_Programming But a quick answer goes something like this: A 'C' string like "gv" is an array of chars (or bytes to most machines) so it may be declared and initialized thusly: char string[] =

[Tinyos-help] A little issue with tmote compile

2007-10-12 Thread Michael Schippling
I'm struggling with getting tmote sky to work after years of banging my head on mica/TOS. Using the CD I got from Moteiv a couple months ago, labeled "boomerang Tmote Tools CD v2.0.5" I loaded the entire system from scratch and managed to get the Delta demo to compile and run, finally, on a fai

Re: [Tinyos-help] Converting String to Byte to send in UART TX

2007-10-12 Thread Michael Schippling
rce.release(); } } } - On 10/11/07, *Michael Schippling* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: You should probably start by learning the C language. This may help: http://en.wik

Re: [Tinyos-help] Logger works on some micaz's and not on others (all have same code)

2007-10-12 Thread Michael Schippling
I wonder if you have a timing race condition in your init code? Just an idea, probably nothing useful... MS Nick Soldner wrote: I posted earlier on this however now I have a bit more intuition as to the nature of my problem. I have an application which writes data to the micaz's 512KB flash EE

Re: [Tinyos-help] Using tasks

2007-10-12 Thread Michael Schippling
Tasks are like threads or processes. The task function gets put on an execution queue and is then fired up sometime later. The post task command returns, nearly, immediately and only indicates if the function was put on the queue successfully. MS Roberto wrote: Hi all, I read the tutorials on t

Re: [Tinyos-help] "/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory"

2007-10-13 Thread Michael Schippling
All those missing header files belong to the "basic system". If you were doing an actual micaz compile they would be found in: /usr/local/avr/include For a simulator compile I would guess that they should come from: /usr/include First verify that those directories and files exist. If they d

Re: [Tinyos-help] Compile to binary

2007-10-13 Thread Michael Schippling
main.exe is the binary file for the platform to which you are compiling I suspect that there is another question though? MS jose m wrote: Hello, A question: Can I compile my code to create a binary file? not intel or motorola, hexadecimal code. Is the "main.exe" the binary? Thanks in advance

Re: [Tinyos-help] Avr-gcc-4 TinyOs

2007-10-13 Thread Michael Schippling
Capture the output from a complete compile and then just run the gcc part of it as a script. You may need to put "PFLAGS += -v" in your makefile to force NCC into verbose mode to get the GCC line. MS Zhifeng Lai wrote: Dear all, How can I compile “app.c” using avr-gcc directly? Is there any tu

Re: [Tinyos-help] TOS_Msg size

2007-10-15 Thread Michael Schippling
There are quite a number of things wrong with your sample code, starting with using a TOS_MsgPtr, which should be set to point to some TOS_Msg sized block of memory, but isn't... But to answer the actual question, go count up the number of bytes in the platform/tmote/AM.h file. ( I think it's in t

Re: [Tinyos-help] Compile to binary

2007-10-15 Thread Michael Schippling
e "main.exe" to the microcontroller, is this the right program and works fine? - Mensaje original De: Michael Schippling <[EMAIL PROTECTED]> Para: jose m <[EMAIL PROTECTED]> CC: tinyos-help@Millennium.Berkeley.EDU Enviado: sábado 13 de octubre de 2007, 16:16:12 Asunt

Re: [Tinyos-help] Compile to binary

2007-10-15 Thread Michael Schippling
his hex dumping? - Mensaje original ---- De: Michael Schippling <[EMAIL PROTECTED]> Para: jose m <[EMAIL PROTECTED]> CC: tinyos-help@Millennium.Berkeley.EDU Enviado: lunes 15 de octubre de 2007, 19:31:07 Asunto: Re: [Tinyos-help] Compile to binary I would suppose that it is a loader format,

Re: [Tinyos-help] Ground Bouncing Issue when I2C bus is connected

2007-10-15 Thread Michael Schippling
If you can, run the amp power and ground directly from the battery or whatever supply you have and put a bunch of filter caps on it. Also be careful to use a single point ground...multiple ground wires to one point, not a single wire daisy-chaining from place to place. Although I suspect some nois

Re: [Tinyos-help] AMSend Unicast

2007-10-16 Thread Michael Schippling
I've heard rumors that some comm components do not do ID filtering. I know that this works for Mica2's using T1 GenericComm, but it may be that other flavors' mileage varies. Try searching this list for some more relevant information. MS Yang Bofu wrote: Hi guys, I am trying to do a unicast in

Re: [Tinyos-help] Sampling rate of MICA2 motes

2007-10-16 Thread Michael Schippling
I assume you have something like this driving your data acquisition: call Timer.start(TIMER_REPEAT, 100); so you (should) get about 10 sample cycles per second. Are you then sending one sample per message, or aggregating them in a manner like Oscilloscope? When you say "only 3 packets/sec is

Re: [Tinyos-help] Sampling rate of MICA2 motes

2007-10-17 Thread Michael Schippling
s after around 2mins, but i get them after exactly 300-301 secs. Which boils down to 3 samples being sampled instead of 10.(1000 samples collected in 300 secs means around 3 packets per second). I am using Single hop. Sincerely, Ragh On 10/16/07, *Michael Schippling* <[EMAIL PROTECTED] &

Re: [Tinyos-help] Surprising news

2007-10-17 Thread Michael Schippling
From: "Michael Schippling" <[EMAIL PROTECTED]> To: "Yang Bofu" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, October 16, 2007 11:16 PM Subject: Re: [Tinyos-help] AMSend Unicast I've heard rumors that some comm components do not do ID filtering. I know that this w

Re: [Tinyos-help] Problems about sending TOS_Msg to serial port

2007-10-17 Thread Michael Schippling
I don't know from TOSSIM, but on real motes the low-level code starts around UARTM.nc. I don't know if there is an equivalent for the simulator as it looks like your packet_sim.c file plugs in at a higher level. But I'm a bit unclear on the purpose. Do you want to write a mote program that implem

Re: [Tinyos-help] problem in installation of TinyOs 1.1

2007-10-17 Thread Michael Schippling
First, none of the "missing" components have anything to do with Java... Java can live most anywhere on your system independent of TOS. You can check to see if /bin/tcsh and the like actually exist. If they do then you might just try using "--nodeps" on the RPM install. But probably you missed so

Re: [TinyOs-help] problem in installation of TinyOs 1.1

2007-10-18 Thread Michael Schippling
h the --nodeps option. Do I need to set any environment variable for starting the TinyOs? Regards, Lalit Shah -Original Message- From: Michael Schippling [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:58 AM To: Lalit Shah Cc: tinyos-help@Millennium.Berkeley.EDU; [EMAIL PROT

Re: [Tinyos-help] Micaz and mda320

2007-10-18 Thread Michael Schippling
The SimpleCmd demo app shows how to send messages from a PC and receive them on a re-Mote. That may be sort of what you want... MS SS C wrote: Hi all, I'm trying to send my sensor data through my mote to another receiver. My sensor data is collected by my MDA320. Right now I programed my rem

Re: [Tinyos-help] Problems about sending TOS_Msg to serial port

2007-10-18 Thread Michael Schippling
led way. Thanks in advanced, PLEASE DO help me >.< On 10/18/07, *Michael Schippling* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I don't know from TOSSIM, but on real motes the low-level code starts around UARTM.nc. I don't know if there

Re: [Tinyos-help] Problems about sending TOS_Msg to serial port

2007-10-19 Thread Michael Schippling
Kenneth On 10/19/07, *Michael Schippling* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Well, as I said I don't know anything about TOSSIM so I'm probably of no use without actually sitting at your computer... But I'm still not sure why you want to use

Re: [TinyOs-help] problem in installation of TinyOs 1.1

2007-10-19 Thread Michael Schippling
the details of the toscheck output. I have used the version 1.5 of JDK instead of 1.4 weather it would cause any problem or not. Regards, Lalit Shah -Original Message- From: Michael Schippling [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 12:46 AM To: Lalit Shah

Re: [Tinyos-help] Capture stdout from DBG

2007-10-20 Thread Michael Schippling
from the shell you can redirect both stdout to files or pipes using something like this: command > file.txt command | command2 Similar options are available for stderr and stdin. See "man bash" for details on "redirection". MS Chan kenniel wrote: Dear all, May I ask how to capture the

Re: [Tinyos-help] A full description of TinyOS build system !!!!!

2007-10-20 Thread Michael Schippling
Anybody know if there is an equivalent for T1 with Makerules? thx MS Aurélien Francillon wrote: mejda chouaieb a écrit : Hello All, I want to know if there is a full description of the inner workings of the TinyOS build system ? if yes please give me a link. it's well documented here : ti

Re: [Tinyos-help] Motes not working as BaseStations

2007-10-21 Thread Michael Schippling
Are they making good contact on the USB connectors? Could be flaky power... You could also try a "heavier" program that is not USB related to see if they still flake. That could eliminate the idea that there is a program size issue. MS Ariel Mauricio Nunez Gomez wrote: Hello everyone, My envi

Re: [Tinyos-help] why thread mutual exclusion lock, if no threads

2007-10-21 Thread Michael Schippling
Since TOS itself has no pthread lib...hmm... Are you looking at the simulator code? MS Jitender ahuja wrote: Can someone kindly help to point me why tinyos has thread mutex lock (in event_queue.c) when as far as I know it has no true concurrency and no threads too. For e.g., a statement of the

Re: [Tinyos-help] tos-check-env errors!!!

2007-10-21 Thread Michael Schippling
Try "type java" to see where you are getting your Java from. If it indicates something like "jdk1.5.0_07/bin/java" or other 1.4, 1.5, 1.6 versions you are probably fineotherwise you may need to install a modern JDK. For Graphviz, if "type dot" doesn't find anything, a file search for the "Gra

Re: [Tinyos-help] Motes not working as BaseStations

2007-10-21 Thread Michael Schippling
OH, one other thing...some (especially) notebooks may not provide enough current to the USB ports. A powered USB hub might help that. MS Michael Schippling wrote: Are they making good contact on the USB connectors? Could be flaky power... You could also try a "heavier" program that

Re: [Tinyos-help] Need help urgently with tmote sky sensors

2007-10-21 Thread Michael Schippling
nup... There's a vague, environment dependent, relationship between radio signal strength and distance which you can find a lot about on line, but the tmotes don't have any internal spacial sensors so they don't know where they are. MS Edmund J wrote: hi, Im developing applications for tmote s

Re: [Tinyos-help] Capture stdout from DBG

2007-10-22 Thread Michael Schippling
I doubt that anything will be easy for people trying to instrument NESC... But there is a printf() sort of debug interface for 'regular' TOS_Msg messages, assuming you are not using the message channel for other more useful work. I forget the details, of course, but searching this list might turn

Re: [Tinyos-help] Unicast in T2

2007-10-22 Thread Michael Schippling
. } Cheers, Urs Yang Bofu schrieb: Hi, I still have the question about unicast in T2 (thank Michael Schippling for your info). I have searched the archive, but can't find the answer I need. so I post the question again. I am trying to do a unicast by AMSend in my application. What I di

Re: [Tinyos-help] Dangling pointer in SF (C version)

2007-10-23 Thread Michael Schippling
If "serial_source" has been typedefed to be a pointer, which is what the subsequent usage tends to indicate, then this _should_ allocate and init a block of whatever rather than just a pointer. If that is the case then it seems to be a poor naming choice. You'll have to chase the dragon further up

Re: [Tinyos-help] Error package com.mathworks.jmi does not exist

2007-10-23 Thread Michael Schippling
Well, does "com.mathworks.jmi" exist in a class tree or jar file that you are including in your CLASSPATH? It sounds like something that MatLab supplies, so I'd go looking in their install first... MS Saif A. Al-Hiddabi wrote: Hi All: I am trying to set TinyOS to work with Matlab R2007b, b

Re: [Tinyos-help] Error package com.mathworks.jmi does not exist

2007-10-24 Thread Michael Schippling
OK and why I can not get scope to run? I appreciate your help. Regards, SAIF -----Original Message- From: Michael Schippling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 9:17 PM To: Saif A. Al-Hiddabi Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Error

Re: [Tinyos-help] About a data judgement condition

2007-10-24 Thread Michael Schippling
I will spare the air in respect to MHO of the beauty of this demo app vis TOSfucation of functionality... In RfmToIntM.nc::ReceiveIntMsg.receive(TOS_MsgPtr m) m is the full message being received from another mote. m->data is the IntMsg 'payload', defined in tos/lib/Counters/IntMsg.h.

Re: [Tinyos-help] CC2420RadioM.nc

2007-10-24 Thread Michael Schippling
The easiest way to prevent TOSBase from sending radio messages is to not write any messages to it over the UART...it only acts as a passive pass- though. But if you want to make sure nothing gets transmitted you could probably disable UARTRcvdTask(). There may be some slick way to wire-it- out, bu

Re: [Tinyos-help] Problem about sending data in C by UART

2007-10-26 Thread Michael Schippling
Does the OscopeMsg struct have a member named "data"? If not, then don't try to reference it... Probably if you remove the "->data" from the memcpy() line you'll get what you want. MS Chan kenniel wrote: Dear all, I got a compiled problem in the following code, which is quite short and simpl

Re: [Tinyos-help] Is there a type of sensor for measureing electricity usage

2007-10-26 Thread Michael Schippling
I've seen some little plug-in KiloWattHour meters, but as usual don't remember where...try searching for "power meter" and stuff like that. MS weiping SONG wrote: Hi all, Is there a type of sensor for measureing electricity usage? For example, if we were to use it to monitor teh amount of ele

Re: [Tinyos-help] Sampling rate of MICA2 motes

2007-10-27 Thread Michael Schippling
to it. I am making use of the XMDA320 code for this. Is it possible to only sample the relevant ports? and Would this help in reducing the time taken for program execution? I also came across the Highfrequencysampling program. Would this code help in solving this problem? Regards, Ragh On

Re: [Tinyos-help] changing/adding-to message headers?

2007-10-27 Thread Michael Schippling
That is the purpose of the AM type field. You shouldn't have to change the header, just define different packet types and bodies and use their [AMMsgtype].receive(TOS_MsgPtr m) methods to implement specific behaviors. It's a little know secret, but only "length" bytes of the data packet are transm

Re: [Tinyos-help] Basic TinyOS2 update question

2007-10-28 Thread Michael Schippling
The whole kit-n-kabodle is compiled and downloaded in one (or two) fell swoop(s)...unless you use something like Deluge that allows you to maintain multiple program images on-board, but even then I believe they are wholly independent programs. This means that there is no separate OS 'kernel' or lo

Re: [Tinyos-help] float data type in TinyOS

2007-10-28 Thread Michael Schippling
I can't vouch for T2, or even the new-fangled nx_types, but there used to be support for "float" in MIG, and I still find float conversion in: tinyos-1.1.15/tools/java/net/tinyos/message/Message.java If the support has been 'deprecated' you can always roll your own by looking at the above exam

Re: [Tinyos-help] Urgent!! Help on msp430 needed!!!

2007-10-29 Thread Michael Schippling
This probably isn't all you need, but "msp430" is the chip used on the telos type Motes. I'd suspect that the string acts to trigger NESCC into doing necessary controller specific processing. MS mejda chouaieb wrote: Hello All, Please can someone help me to understand this line in "tos/platfor

Re: [Tinyos-help] Debugging in real-time

2007-10-29 Thread Michael Schippling
You have stumbled on the -- well, best is not exactly the right word -- way to do embedded program debugging...Step and repeat. There is a JTAG interface on the programmer board and some googling may find info about how to use it to run the board under gdb. But that's not real-time. The other us

Re: [Tinyos-help] Dropping packet with bad group ID

2007-10-29 Thread Michael Schippling
I noticed that someone recently had a matlab issue with starting oscope and there was a "groupid" argument to be supplied somehow. That looks to be your problem, and if those messages are cc2420esque then the 7D is your group. Not much use, but a data-point none-the-less. MS Saif A. Al-Hiddabi w

Re: Re : Re : [Tinyos-help] Urgent!! Help on msp430 needed!!!

2007-10-29 Thread Michael Schippling
It's probably not referring to files or folders but is used as a flag to some processing step. Try searching _everything_ for "mmcu" and "nesc-target" or substrings thereof. Include searching all the makefiles and nesc files, I'd bet it's in there and will indicate where you need to add specifics

Re: [Tinyos-help] Dropping packet with bad group ID

2007-10-29 Thread Michael Schippling
27;s all I know. sorry MS Saif A. Al-Hiddabi wrote: How to fix the "groupid" thing? Thanks SAIF -Original Message- From: Michael Schippling [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 1:03 PM To: Saif A. Al-Hiddabi Cc: 'Juan Antonio López Riquelme';

[Tinyos-help] nx_ types, tmote, and T1 versions

2007-10-30 Thread Michael Schippling
I have apparently confused myself with new code... I'm just starting to do useful work with Boomerang and Tmote sky. I believe this means TOS1.1.15 plus now-defunct Moteiv addons. Running the CountUart demo, I get this data stream from Listen: 04 00 00 00 00 00 7E 00 04 7D 00 1C 00 01

Re: [Tinyos-help] nx_ types, tmote, and T1 versions

2007-10-30 Thread Michael Schippling
in little endian. Thanks - jpaek Michael Schippling wrote: I have apparently confused myself with new code... I'm just starting to do useful work with Boomerang and Tmote sky. I believe this means TOS1.1.15 plus now-defunct Moteiv addons. Running the CountUart demo, I get this data str

Re: [Tinyos-help] nx_ types, tmote, and T1 versions

2007-10-30 Thread Michael Schippling
ince Phil wrote his T2 programming manual. Relevant doc might be Phil's book... and maybe some TEPs? I don't know. If you think about it, it is just ntoh, hton thing, and it's not too bad once you get used to it. it took me a week :-) Thanks - jpaek Michael Schippling wrote: Yes,

Re: [Tinyos-help] nx_ types, tmote, and T1 versions

2007-10-31 Thread Michael Schippling
So...basically EVERY platform we are dealing with is little-endian, -- unless you are still running on a 68K (Mac?) of some kind -- but we force the network types to be big-end just to increase the processing requirements? And the full extent of the doc on this is in the T2WG message that klueska

Re: Re : [Tinyos-help] I Problems with make "error trying to exec 'cc1' " !!!!!!

2007-10-31 Thread Michael Schippling
Given that you are getting an exec() error, cc1 is probably a pre-processor pass for the C compiler. There may be some components of your compiler that are not installed. I'd go look for a manifest of what's supposed to be in your compiler package. It could also be a 'standard' gcc component that

Re: [Tinyos-help] nx_ types, tmote, and T1 versions

2007-10-31 Thread Michael Schippling
pon-ended. Good point on the fcfhi-fcflo thing. ah, yess, standards, we all need standards...I should get some. thanks MS Philip Levis wrote: On Oct 31, 2007, at 10:27 AM, Michael Schippling wrote: So...basically EVERY platform we are dealing with is little-endian, -- unless you are still r

[Tinyos-help] Re: Where is the sensor reading in the received message?

2007-10-31 Thread Michael Schippling
Try [EMAIL PROTECTED]:tmote for your MOTECOM, I believe it will select some special parsing for tmote messages. At least it let me receive Delta msgs with Listen. You'll have to go look at the Delta message structure to see which bytes are of interest, I don't know offhand. As to the 3000 valu

[Tinyos-help] Re: Where is the sensor reading in the received message?

2007-10-31 Thread Michael Schippling
0xff 0x0 0x0 ] Which bytes representing the temperature measurement in the above packet? Thanks SAIF --------- -Original Message- From: Michael Schippling [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 31, 2007 5:0

Re: [Tinyos-help] SendMsg.Send & GenericComm

2007-11-01 Thread Michael Schippling
I thought this would be simple, but I'm finding some inconsistent usages in the demo apps and some of my own code...Anyway the working examples (say, Oscilloscope) that I have for T1 do this: In the config file: OscilloscopeM.CommControl -> GenericComm; Init the Comm system in the main Module:

Re: [Tinyos-help] SendMsg.Send & GenericComm

2007-11-01 Thread Michael Schippling
oops, and add this to the top of the main Module too: uses interface StdControl as CommControl; MS Michael Schippling wrote: I thought this would be simple, but I'm finding some inconsistent usages in the demo apps and some of my own code...Anyway the working examples (say, Oscillo

Re: [Tinyos-help] Problem with modified Oscilloscope

2007-11-01 Thread Michael Schippling
I'll take a wild guess... If that Read interface works like the ADC, what probably happens is that Read.read() starts a "conversion" but you don't get a result until Read.readDone() fires. So you probably want to send your result message from readDone() to get the latest and greatest. MS Aless

Re: [Tinyos-help] Problem with modified Oscilloscope

2007-11-01 Thread Michael Schippling
; from whatever "local" is into the "sendbuf" data area and then sending it over the radio. However I think there are some missing parens and it should be sizeof(local), but maybe they are optional. MS Alessandro Turella wrote: Michael Schippling ha scritto: I'll take

[Tinyos-help] Re: Where is the sensor reading in the received message?

2007-11-01 Thread Michael Schippling
and which produce only 08 00 00 00 00 00 7E 00 65 7D 00 00 01 00 00 00 00 00 08 00 00 00 00 00 7E 00 65 7D 00 00 01 00 00 00 00 00 08 00 00 00 00 00 7E 00 65 7D 00 00 01 00 00 00 00 00 ... Any help? SAIF -Original Message- From: Michael Schippling [mailto:[EMAIL PROTECTED] Sent: We

Re: [Tinyos-help] Tinyos telosb problem IR light

2007-11-05 Thread Michael Schippling
You should lookup the specs on the standard sensors to see if they have any useful IR range. If so maybe a filter would do the trick for you. Otherwise you'll need to find a photo-diode that is good in the IR that you want and replace one of the standard sensors -- or add it to the expansion conne

Re: [Tinyos-help] handling multiple send/receive types? do I need multiple "new AMS enderC as X"?

2007-11-06 Thread Michael Schippling
In T1 (I assume T2 is only _slightly_ different in some curious way)... A header file defines all the message structures and "AM_" types. Your config file has a line for each message type: // Host commands to be received RoboMsgM.RCmdStartMsg -> GenericComm.ReceiveMsg[AM_ROBOCMDSTARTMSG];

Re: [Tinyos-help] CntToRfmAndLeds

2007-11-06 Thread Michael Schippling
You may be able to use the same TOSish mechanism to set IDs. Here's an example from a recent tmote build: /opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy msp430-objcopy --objdump msp430-objdump --target ihex build/tmote/main.ihex build/tmote/main.ihex.out-0 0 There is a similar version

Re: [Tinyos-help] About tinyos 1.1.1.3

2007-11-07 Thread Michael Schippling
You sure it's 1.1.1.3? I've only seen 3 numbers...like 1.1.3 or 1.1.13 If it's 1.1.3, I'd continue to upgrade to something over ..10 just for your own sanity. But that has nothing to do with your CLASSPATH... I think the warning is for '.' (period) not dash, unless there is some unicode foo I don

Re: [Tinyos-help] Energy consumption on telosb

2007-11-07 Thread Michael Schippling
I just looked at the tmote specs and it shows a bit higher current when _receiving_ (!!?), but in the range you have measured. Judicious use of the radio is the issue, also look up "Low Power Listening" and see if it is of any use. MS Leonardo wrote: Hi Guys, I have any problem with current con

Re: [Tinyos-help] TSR reading in Oscilloscope application

2007-11-07 Thread Michael Schippling
The tmote Oscilloscope program strikes me as another of the expertly obfuscated TOS demo apps that is nearly impossible to follow or modify...IMHO. I think the business end of the data collection/aggregation happens in the tinyos-1.x/tos/lib/Oscope/OscopeM.nc file, and you may be able to reverse-

Re: [Tinyos-help] MDA400 relative distance

2007-11-08 Thread Michael Schippling
I googled this: TOS RSSI localization and got this: http://www.cs.berkeley.edu/~jortiz/papers/ee290q_localization.pdf which may be useful or have relevant refs... MS cyberkiwy wrote: hi! is there a possibility to get the relative distance between 2 motes MDA400, and to know if a mote

Re: [Tinyos-help] Energy consumption on telosb

2007-11-08 Thread Michael Schippling
higher than transmit power. It's normal with these radios. Decoding requires much more processing than encoding. Regards, Harri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schippling Sent: Wednesday, November 07, 2007 8:40 PM To: Leo

Re: [Tinyos-help] About MoteIV support information

2007-11-08 Thread Michael Schippling
Actually, it contains everything (or as much as Joe could upload). For some reason the nascent TOS Doc WG didn't want to announce that we had it all online again...but you found it none-the-less. MS Jeonghoon Kang wrote: FYI, Surprising TinyOS Wiki contains something. http://docs.tinyos.net/i

Re: [Tinyos-help] single send function / queue for multiple message types / structs ?

2007-11-08 Thread Michael Schippling
There used to be a QueuedSend interface in the T1 lib tree... MS Murray, Ben wrote: Hi I need to send multiple types (am_id_t / len) of mesage but I need to store them up in a Queue until the mote has permission to send. How best can I store multiple messages, of varying types/lenths, and subs

Re: [Tinyos-help] Send --> SendDone

2007-11-08 Thread Michael Schippling
Make sure you are getting a SUCCESS from the send(), otherwise the message is not sent and no sendDone() is to be expected. As to reliability, you can use various kinds of ACKs. The choices depend on your platform, so google around a bit. I also did some brute force testing and a resend protocol

Re: [Tinyos-help] Analog signal transfer

2007-11-09 Thread Michael Schippling
If you haven't already, start by reading though the doc/tutorial to get an idea what you are up against. Then...all mote types have an Analog to Digital Converter (ADC) which, conveniently enough, has a range from about 0-3.3v so that should cover how to get the data. Look for modules named ADC.

Re: [Tinyos-help] NesC: Where are .ncc files transformed to .c files?

2007-11-09 Thread Michael Schippling
It's anybody's guess which makefile actually does the deed (read: I have no clue how to trace it back to the source...), but the "ncc" command you see when you do a build breaks down into a number of sub-commands, includng "/usr/bin/nescc" and "nescc1" which is the most likely culprit. You can see

Re: [Tinyos-help] TinyOS 2.0.2 Installation Problem

2007-11-09 Thread Michael Schippling
You need to put those export commands in a startup script file so they get run everytime you crank up a bash shell. The most common one is: $HOME/.bashrc where HOME is usually: /opt/home/[username] MS Ittipong Khemapech wrote: Hi, Thank you for your reply. I set MAKERULES and it looks good. Ho

Re: [Tinyos-help] Analog signal transfer

2007-11-09 Thread Michael Schippling
a lot. Best, Abdullah Kadri, P.Eng., Ph.D. Candidate The University of Western Ontario Department of Electrical and Computer Engineering Phone: (519) 661-2111 ext. 81271 -----Original Message- From: Michael Schippling [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 1:19 PM To:

Re: [Tinyos-help] tmote sky docs ...

2007-11-10 Thread Michael Schippling
You can probably find it under CVS, or look here: http://www.cems.uvm.edu/~aobrien/tmote/ MS manu suryavansh wrote: Hi, Does any body has the Delta (Moteiv) application packet structure. It was earlier available online but that link is not working and I couldn't find it on both the links

Re: [Tinyos-help] multihopLQI & WDTC

2007-11-11 Thread Michael Schippling
Its a known bug in all software everywhere, but TOS doesn't have a signal() mechanism to catch and release gracefully. However the point is that many software errors can cause big problems, running out of memory, running off the end of buffers, overwriting pointers, etc...Make sure your code does

Re: [Tinyos-help] error with MDA100

2007-11-11 Thread Michael Schippling
Pin numbers go from 0 to 7... Also, assuming you want the same PWM0 as in the mica schematic, its port B, pin 4. I have a convenient I/O port list online: http://www.etantdonnes.com/Motes/ATMEGApins.txt MS yvonne er wrote: Dear Sir/ Mdm, I am using MDA100 for MicaZ to collect data readin

Re: [Tinyos-help] multihopLQI & WDTC

2007-11-12 Thread Michael Schippling
aright aright...BUSERR. great explanation thought... thanks MS Philip Levis wrote: On Nov 10, 2007, at 9:07 PM, Jeongyeup Paek wrote: Maybe there is a misunderstanding... If you write a code that has segmentation fault, then the mote will restart. And I don't think this 'behavior' is a bug

Re: [Tinyos-help] getData()

2007-11-12 Thread Michael Schippling
Again, read that tutorial...but the quick answer, in T1 at least, is: In the config file: components ADCC; RobotM.Target -> ADCC.ADC[ROBOADC_TARGET]; In the "RobotM.nc" code: uses interface ADC as Target; call Target.getData(); async event result_t Target.dataReady(uint16_t d) {

Re: [Tinyos-help] Question about signal

2007-11-13 Thread Michael Schippling
My personal belief is that it is like "call" in that no direct return value is available to the user. My further belief is that the signaled code is run asynch, so the signaler does not block waiting for it. I could be wrong (probably) so I hope someone who actually knows will help. MS Christop

Re: [Tinyos-help] Oscilloscope application

2007-11-13 Thread Michael Schippling
Now that you mention it, I'm at a bit of a loss to explain where the micaz ADC code gets it's getData() from...but be assured that it's there somewhere. Possibly in mica2/ADCREFM.nc. If you do a "make micaz docs" you may get a diagram of the module interactions. The fact that there is an ADC inter

Re: [Tinyos-help] gio0 problem on tmote sky

2007-11-13 Thread Michael Schippling
Assuming that you are not planing to use ADC3 for anything, which you probably can't because it isn't connected to the outside world other than that 10pin anyway, you should just us it for your GIO bit. I don't know offhand which way the pins default, but with your short at R14 you may have both G

Re: [Tinyos-help] Oscope & serialForwarder

2007-11-13 Thread Michael Schippling
You probably need to set your MOTECOM variable to indicate what platform you are using. For instance mine is: export MOTECOM="[EMAIL PROTECTED]:tmote" I'd guess there is a "telsob" as well, but tmote might work as they are the same thing underneath. As to your CLASSPATH toscheck issue...since

Re: [Tinyos-help] Running Listen tool

2007-11-13 Thread Michael Schippling
Search this list for "toscheck CLASSPATH". Also google up a bit on java CLASSPATH, it's very similar to the 'regular' PATH. If you are not familiar with any of it, doing "man bash" in a shell window will give you more than you'll ever want. MS Abdullah Kadri wrote: This is what I have in my "t

Re: [Tinyos-help] gio0 problem on tmote sky

2007-11-13 Thread Michael Schippling
selectIOFunc() seems to be the thing in T1 that makes each pin do it's Digital IO function. It may be redundant, and it certainly isn't documented anywhere that I found... As to the "shortage on connector pins", I agree. But that doesn't explain the utility of being able to short two controller l

Re: [Tinyos-help] Question about signal

2007-11-13 Thread Michael Schippling
in the original context can I do rval = signal HPLT3capture.fire( count ); to get its result? thx MS Philip Levis wrote: On Nov 13, 2007, at 10:52 AM, Michael Schippling wrote: My personal belief is that it is like "call" in that no direct return value is available to t

Re: [Tinyos-help] (yet another) Question about signal

2007-11-13 Thread Michael Schippling
t;call" as well... MS Philip Levis wrote: On Nov 13, 2007, at 8:35 PM, Michael Schippling wrote: So I guess my question is...is signal tantamount to an interrupt, or is it 'just' a function call? E.g, here's an interrupt routine that I cobbled together in cargo-cult fash

<    1   2   3   4   5   6   7   8   9   10   >