RE: [Tinyos-help] help, strange automatic fired timer!!

2006-09-13 Thread Jose L. Ponce
campbell gao [EMAIL PROTECTED] escribió: hi all, [...] But how strange it is!! The sampling start up when i turn on the node's switch!! And sampling data is sent back!! Who could tell me that is why?? Probably there is some part of your code which is executing when it shouldn't. Use the

[Tinyos-help] Noise on TelosB PAR Sensor!

2006-09-11 Thread Jose L. Ponce
Hello, I am using TelosB motes with Hamamatsu's PAR and TSR light sensors. I am monitoring the readings of the PAR sensor and I have noticed the following, using constant light intensity: - For low levels of light intensity (ADC output being approx. 0.7V), sampling over time of the light

[Tinyos-help] Multiple instances of SerialForwarder

2006-08-28 Thread Jose L. Ponce
Hello all, I have been creating a couple of scripts on bash to help me deal with the connection and disconnection of motes to the computer automatically. I want to open N connections to N motes using N SerialForwarders. To do this, I have a while loop which reads the USB addresses from a lookup

[Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Jose L. Ponce
Jose, To connect to multiple motes you would write something along the lines of: [...] Thanks a lot for that. I had been trying to use these phoenix sources a while ago but didn't get to make my program work. This means that when I start a java program that wants to talk to different motes

Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Jose L. Ponce
2006/8/24, Robert Szewczyk [EMAIL PROTECTED]: Sure -- I could see a solution where you use some method to synchronize all motes to a common time base (perhaps using any of the proposed radio time sync protocols) and then you use USB to transmit messages of the form: at time X do Y,where time X

Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Jose L. Ponce
2006/8/24, Robert Szewczyk [EMAIL PROTECTED]: But this would also mean that it is not possible to send a message to _all_ motes simultaneously, right? This would be a big problem... That's correct. Simultaneous transmission to all motes over usb would be difficult over a point to point link

RE: [Tinyos-help] Boomerang and TinyOS 1.x

2006-08-22 Thread Jose L. Ponce
Well, the MoteIV RPM is indeed not installing properly. I am getting these errors: make[2]: Entering directory `/opt/tos/tinyos-1.x/tools/java/net/tinyos/sim/msg' mig java -target=pc -java-classname=net.tinyos.sim.msg.DebugMsgEvent ../../../../../../tos/platform/pc/GuiMsg.h DebugMsgEvent -o

RE: [Tinyos-help] Weird results...

2006-07-11 Thread Jose L. Ponce
Hi all... I have come with an idea of the origin of the faulty behaviour of my experiment... To simplify I will illustrate it with two dimmers: they are connected to the wall sockets and to the motes, and the motes are connected per USB to a HUB which is also connected to a wall socket and to

RE: [Tinyos-help] Weird results...

2006-07-08 Thread Jose L. Ponce
Joe, yeah, my configuration is as follows: I have 10 motes, five of them are connected to the inverter/amplifier/dimmer group. This means I need three hubs, each of them with four usb outputs. For this experiment only these 5 motes are connected, and my hub configuration is as follows: All

Re: [Tinyos-help] Weird results...

2006-07-06 Thread Jose L. Ponce
/06, Jose L. Ponce [EMAIL PROTECTED] wrote: Hello all, My question is very simple: I have 5 motes with the same program installed. This program receives an instruction from the computer and executes it (i.e. dac output to 2 volts). I am sending the instruction using moteif.send(MOTEID

[Tinyos-help] Regarding Time Sync and Timestamping

2006-05-11 Thread Jose L. Ponce
Dear all, I have been working on a time sync protocol between the pc and the motes. I think I have solved most of the problems on the java side and I would like to improve things on the motes. My test for the time-sync consists of running the sync protocol every i.e. 60 seconds and sending

RE: [Tinyos-help] Problems with Time Sync

2006-05-03 Thread Jose L. Ponce
Janos, thanks for your quick answer. I noticed, as you said, that a lot of my problems might be related to the PC/motes interaction. However, I fail to understand what you mean with tasks/interruptions. Are you suggesting I should create interruptions (async command or event) which would be

Re: [Tinyos-help] Getting system time and clock ticks in tinyos

2006-04-24 Thread Jose L. Ponce
On Sun, 2006-04-23 at 09:46 -0400, Vinayak Naik wrote: You can use SimpleTime component to get system time. Alternatively, I think you can use LocalTimeMicroC too to get the mote time. I am working with Telos and SimpleTime doesn't seem to work, and LocalTimeMicroC seems like a valid

Re: [Tinyos-help] Receiving different message types simultaneously in Java.

2006-04-24 Thread Jose L. Ponce
Hi, Thanks for your reply. On Fri, 2006-04-21 at 13:15 -0600, Michael Schippling wrote: I haven't use the interface in question, but it looks as if the message routing (via handlerID) is left as an exercise for the reader. I imagine that you need to build a messageListener factory someplace

[Tinyos-help] Receiving different message types simultaneously in Java.

2006-04-21 Thread Jose L. Ponce
Hi all, Once again, I have a quick question regarding Java and message management. When classes which require receiving messages from the motes are programmed, usually all those classes are based on MessageListener. In this way, we have the following method when we receive a message:

Re: [Tinyos-help] Control of multiple motes per USB

2006-04-07 Thread Jose L. Ponce
Hi, On Thu, 2006-04-06 at 13:03 -0700, Cory Sharp wrote: It sounds like, minimum, you want to open a SerialForwarder per mote, so that multiple connections can be made per device. There's a number of ways to do that. You could take a look at

Re: [Tinyos-help] Control of multiple motes per USB

2006-04-06 Thread Jose L. Ponce
Hi all, funnily enough, now it seems to work. I guess after playing with the USB connections and stuff may jam them up a bit after a while. I tried again after a fresh restart and everything works. So, like I commented yesterday, I wanted to develop some kind of SerialForwarder for multiple

Re: [Tinyos-help] Control of multiple motes per USB

2006-04-05 Thread Jose L. Ponce
Hi, On Tue, 2006-04-04 at 11:46 -0700, Cory Sharp wrote: Take a look at the TinyOS Tutorial Lesson 6 if you haven't already. http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html I recommend you study the TinyOS Java classes MoteIF, BuildSource, and PhoenixSource. You basically want

Re: [Tinyos-help] Control of multiple motes per USB

2006-04-04 Thread Jose L. Ponce
appreciate some tips or examples... Thanks, - Jose. Jose L. Ponce wrote: Hello all, Usually, to be able to communicate with a mote which is connected to the pc, one opens serialforwarder and a bridge between the mote and the pc is built, so that a java program or something can send

[Tinyos-help] Control of multiple motes per USB

2006-03-30 Thread Jose L. Ponce
Hello all, Usually, to be able to communicate with a mote which is connected to the pc, one opens serialforwarder and a bridge between the mote and the pc is built, so that a java program or something can send and receive messages from the mote. For me, until now, this also means that one can

Re: [Tinyos-help] Doubts about sending from the PC to different motes

2006-03-27 Thread Jose L. Ponce
On Fri, 2006-03-24 at 13:38 -0700, Michael Schippling wrote: To use 'standard' TOS messaging, basically the GenericComm component, all your messages need to be wrapped in a TOS_Msg struct. If you are using Java on the host/PC side, you need to construct a buffer that looks like a TOS_Msg and

[Tinyos-help] Doubts about sending from the PC to different motes

2006-03-23 Thread Jose L. Ponce
Hi all, I guess this question is pretty simple, but I can't seem to figure out how to do this: I have done this little application to control a mote's DAC from a laptop through the USB cable. Now I would like to take it an step further and be able to control several motes. I have been looking

[Tinyos-help] Strange results when sending uint16_t values.

2006-03-21 Thread Jose L. Ponce
Hi all, I want to control the DAC of my telosb mote using commands from the computer through the USB port. For that, I've programmed an application which receives a message with two fields: uint8_t for the command and uint16_t for the value we want to set the DAC to. There are two commands: set

[Fwd: Re: [Tinyos-help] ReverseUART won't work in telosb]

2006-03-20 Thread Jose L. Ponce
On 3/18/06, Jose L. Ponce [EMAIL PROTECTED] wrote: Hi Cory, Thanks for your reply. I am using TinyOS 1.15, and I have also tried with MoteIV's Boomerang... What buggers me is that everything will compile and upload smoothly to the mote, and then I get this write failed error

[Tinyos-help] ReverseUART won't work in telosb

2006-03-17 Thread Jose L. Ponce
Hi all, I am working with both Telos Rev. A and Telos Rev. B motes. I have been trying the ReverseUART application and I have noticed that, while it works for Telos A, it won't work for Telos B. In Telos A everything's fine, but in Telos B, I run java testReverseUART something and I get: Send