[Tinyos-help] BareSendMsg Interface

2007-09-25 Thread Roberto Gioè
Hi all,

I'm studying a source code (TOSBaseM.nc) which implements the functionality
about the trasmission of data to a UART port by a micaz mote.
In this code the BareSendMsg interface is used.
But I yet haven't found this interface in Nesc Documentation ( see
http://www.tinyos.net/tinyos-2.x/doc/nesdoc/micaz/)
Is this interface belong to tinyos 1.x? Now, I'm using tinyos 2.x
What's the interface can i use to replace the BareSendMsg interface?
Thanks in advance

RG
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] C and nesC problems

2007-09-25 Thread Daniel Widyanto

Hi Kenneth,

I am also using T2's serial-forwarder for T1 motes. There are several 
application in my company that's still using old T1.1.15. 

As far as I know, you just need to modify the Serial.h to match T1 
packet. 
-
diff -u3 /opt/tinyos-2.x/support/sdk/c/serialprotocol.h ./serialprotocol.h
--- /opt/tinyos-2.x/support/sdk/c/serialprotocol.h  2007-08-23 
18:03:35.0 +0800
+++ ./serialprotocol.h  2007-08-24 15:02:51.0 +0800
@@ -4,15 +4,24 @@
  * /opt/tinyos-2.x/tos/lib/serial/Serial.h.
  */

+// Change it into TOS1.1.15
 enum {
 SERIAL_HDLC_CTLESC_BYTE = 125,
 SERIAL_TOS_SERIAL_802_15_4_ID = 2,
-SERIAL_SERIAL_PROTO_ACK = 67,
+
+//SERIAL_SERIAL_PROTO_ACK = 67,
+SERIAL_SERIAL_PROTO_ACK = 64,
+
 SERIAL_TOS_SERIAL_CC1000_ID = 1,
-SERIAL_SERIAL_PROTO_PACKET_NOACK = 69,
+
+//SERIAL_SERIAL_PROTO_PACKET_NOACK = 69,
+SERIAL_SERIAL_PROTO_PACKET_NOACK = 66,
+
 SERIAL_SERIAL_PROTO_PACKET_UNKNOWN = 255,
 SERIAL_HDLC_FLAG_BYTE = 126,
 SERIAL_TOS_SERIAL_ACTIVE_MESSAGE_ID = 0,
 SERIAL_TOS_SERIAL_UNKNOWN_ID = 255,
-SERIAL_SERIAL_PROTO_PACKET_ACK = 68
+
+//SERIAL_SERIAL_PROTO_PACKET_ACK = 68
+SERIAL_SERIAL_PROTO_PACKET_ACK = 65
 };
diff -u3 /opt/tinyos-2.x/support/sdk/c/serialsource.c ./serialsource.c
--- /opt/tinyos-2.x/support/sdk/c/serialsource.c2006-07-13 
00:59:53.0 +0800
+++ ./serialsource.c2007-08-24 14:55:48.0 +0800
@@ -826,7 +826,7 @@
 #define throws ;
 #define Exception
 #define package
-#include ../java/net/tinyos/packet/BaudRate.java
+#include BaudRate.java

   return args.rate;
 }
-

The step to compile this was :
1) Configure the sf using T2 environment (because Serial.h is generated 
through autoconf)
2) Apply the patch
3) Copy BaudRate.java from T2/java/net/tinyos/packet/BaudRate.java
to your dir
4) Make...and done

The important thing is that you shouldn't run the autoconf (./configure)
once you have modified the Serial.h (The autoconf will override the patch).

Or, you can just ask me for the modified code =) It's still in BSD license 
anyway.

Regards,

-daniel

 Original Message 
 From: Chan kenniel [EMAIL PROTECTED]
 Sent: Tuesday, September 25, 2007 1:55 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [Tinyos-help] C and nesC problems
 
 Thanks Daniel, but I am wondering whether the mechanism of C for sending
 packets to serial forwarder in tinyos-2.x is compatible with that in
 tinyos-1.x? since mine is tinyos-1.x right now, don't have such a directory
 u mentioned. Really thanks for your time.
 
 Best regards,
 Kenneth




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Nesdoc for user application

2007-09-25 Thread Daniel Widyanto

Hi all,

I want to use nesdoc to document my application. 

According to the nesdoc script, the nesdoc should not
be used for user application. 

So, are there any tricks to make it work for user application ?
Or should I use doxygen instead ? 

I've tried doxygen for nesc, but it didn't work as I expected.

Thank for your help

Regards,

-daniel




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[TinyOS-Help] Signal default event

2007-09-25 Thread Inderjit Singh
Hi,

Is it possible to retreive the the 'signal' call to default event?

I have a following event implemented as:

default event void Core.sigEvent(uint8_t val)
{
 ...//DO STUFF
}

and I call it as a normal signal call
somefunction()
{
  ...
  signal Core.sigEvent(val);
...
}

But, I don't get the signal catch in the default event function. However, I
do get the catch in a different module that uses the Core interface.

Any help would be appritiated.

Thanks,
Inderjit
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Micaz and Stargate communication using UART

2007-09-25 Thread Roberto Gioè
Hi all,

I'm trying to make a communication between stargate ad micaz.
I connected the micaz on the daughter board of the stargate and I viewed
some source code about using UART port.
Now, micaz and stargate send packets to the UART port but I don't receive
any packets in both sides.
Can anyone help me?
In stargate I run the motetest application, while in micaz I use a modified
version of RadioCountToLeds (in /apps of tinyOS-2.x)
I using the following statement to send data into UART:

if (call AMSend.send(0x007e, mypacket, size_packet) == SUCCESS)
  {..
  }
where 0x007e is the TOS_UART_ADDR
if possible, send me your code.
I use TinyOS-2.x
Thaks very much
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] transmission range

2007-09-25 Thread Demin Wang
We used 2.4GHz 8.5 dBi antennas on MicaZs and can reach maximum 400
meters with the maximum transmission power.

demin

On 9/25/07, Tony Han [EMAIL PROTECTED] wrote:
 Hi folks,

 I try to use mica2 sending data for 100m in certain area (have a few trees
 and a creek around), but now, with 900MHz mica2, I get only 10 m in that
 environment, and if I use 433MHz mica2, I got 30m, still far less than 100m.
 I use TinyOS 1.1.15. I set the transmission power to the maximum value in
 MakeXbowlocal file.

 My question: is there any other mote has a longer range? or is there any
 antenna can improve the TX and RX distance?

 I saw people deal with reduce the range for micaz, but please someone help
 in increase the range.

 Thank you in advance

 Tony






 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re: Micaz and Stargate communication using UART

2007-09-25 Thread Roberto Gioè
I answer to myself:
It needs look at Basestation example in /apps of tinyos-2.x
I solved my problem
thanks the same
regards
RG

2007/9/25, Roberto Gioè [EMAIL PROTECTED]:

 Hi all,

 I'm trying to make a communication between stargate ad micaz.
 I connected the micaz on the daughter board of the stargate and I viewed
 some source code about using UART port.
 Now, micaz and stargate send packets to the UART port but I don't receive
 any packets in both sides.
 Can anyone help me?
 In stargate I run the motetest application, while in micaz I use a
 modified version of RadioCountToLeds (in /apps of tinyOS-2.x)
 I using the following statement to send data into UART:

 if (call AMSend.send(0x007e, mypacket, size_packet) == SUCCESS)
   {..
   }
 where 0x007e is the TOS_UART_ADDR
 if possible, send me your code.
 I use TinyOS-2.x
 Thaks very much


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] transmission range

2007-09-25 Thread Jacob Sorber
Radio range will depend on how close to the ground you are.  The range you
are describing for your mica2's seems about right for a mote on the ground.
If you can put them on a pole or in a tree, you will improve your range
considerably.

You might also want to look at the XE1205 radio on the tinynode (from
shockfish).  At 30kbps we've been able to get 500m+ near the ground and near
water with the whip antennae they come with.  They claim that you can get
1km+ with a data rate of 1.2kbps, but tinyos doesn't currently support any
data rate under 30kbps.

Jacob

On 9/25/07, Demin Wang [EMAIL PROTECTED] wrote:

 We used 2.4GHz 8.5 dBi antennas on MicaZs and can reach maximum 400
 meters with the maximum transmission power.

 demin

 On 9/25/07, Tony Han [EMAIL PROTECTED] wrote:
  Hi folks,
 
  I try to use mica2 sending data for 100m in certain area (have a few
 trees
  and a creek around), but now, with 900MHz mica2, I get only 10 m in that
  environment, and if I use 433MHz mica2, I got 30m, still far less than
 100m.
  I use TinyOS 1.1.15. I set the transmission power to the maximum value
 in
  MakeXbowlocal file.
 
  My question: is there any other mote has a longer range? or is there
 any
  antenna can improve the TX and RX distance?
 
  I saw people deal with reduce the range for micaz, but please someone
 help
  in increase the range.
 
  Thank you in advance
 
  Tony
 
 
 
 
 
 
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] bandwidth obtained with TinyOS2

2007-09-25 Thread Jordi Llosa
Hi, I just tried to find which is the best bandwidth that the tmote sky, the
micaz, or the imote can obtain, with just a part of motes working, but I
didn't find it out. I read that they use the zigbee but this doesn't means
that they can transmit at 250kbps. Does somebody know it?

thanks

-- 
[EMAIL PROTECTED]
696444871
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Install bootstrap-loader in ARM architecture

2007-09-25 Thread Rafael Marin Perez
Hello,

I am Rafael Marin Perez, and work as a researcher in University of
Murcia (Spain).

I need to install the bootstrap-loader of MSP430 in my NSLU2 to transfer
the compiled images to the nodes. This bootstrap work over python.

Any idea, How can I do this?
Are there some other way (not Python, in C or C++) to create the 
bootstrap-loader?


Thanks for your time.
Regards, Rafa.





___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] What is the least memory requirement for TinyOS?

2007-09-25 Thread 捷昱马
Hello,everybody!
I'm looking for a small OS for my electric micromouse, which has limited
memory, 8KB RAM and 2KB FLASH.I want to know whether TinyOS can support so
little memory and what is the least memory requirements for it.
Thank you.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

RE: [Tinyos-help] CC2420 packet delivery

2007-09-25 Thread David Moss
Since the RX FIFO queue is something like 128 bytes, it would take a few
packets to make it overflow.  Page 33 of the CC2420 datasheet explains:

 

The RXFIFO can only contain a maximum

of 128 bytes at a given time. This may be

divided between multiple frames, as long

as the total number of bytes is 128 or less.

If an overflow occurs in the RXFIFO, this

is signalled to the microcontroller by

setting the FIFO pin low while the FIFOP

pin is high. Data already in the RXFIFO

will not be affected by the overflow, i.e.

frames already received may be read out.

 

A SFLUSHRX command strobe is required

after a RXFIFO overflow to enable

reception of new data. Note that the

SFLUSHRX command strobe should be

issued twice to ensure that the SFD pin

goes back to its idle state.

 

And that's what the driver does.

 

-David

 

 

  _  

From: roberto pagliari [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 24, 2007 10:50 PM
To: David Moss
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] CC2420 packet delivery

 

Hi David,
if a STXON command strobe is issued, during the receiption of a packet I'm
sure the radio will transmit it. If the received bytes stay into the RXFIFO
queue (is it true?) and sometime later the radio receives another packet,
that would overflow, since the expected number of bytes was the previous
one. What happens in that case? Does the radio flushes the RXFIFO queue? 

thanks

On 9/18/07, David Moss [EMAIL PROTECTED] wrote:

Never explicitly tried it before with the intention of noting the results,
but your node should transmit, leaving the RXFIFO turned to garbage and
filtered out naturally by the receive methods (i.e. checking for a proper
length byte and CRC).  I could be wrong, but note that having two
transmitters next to each other without using clear channel assessments
leaves them both transmitting and rarely receiving clean packets.

 

If the length byte is within bounds, then the radio stack can safely
download the packet and check the CRC byte regardless of what happened.  If
the length byte in the RX FIFO is not within bounds (smaller than expected,
or larger than the RX FIFO size) then the RX FIFO certainly needs to be
flushed.

 

-David

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of roberto
pagliari
Sent: Tuesday, September 18, 2007 4:43 PM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] CC2420 packet delivery

 

Hi All,
does anyone know what happen if, during the receiption of a packet, a STXON
(not STXONCCA) strobe command from the microcontroller is issued?
Does the radiochip turn the circuit to the transmitter? If so, should I
flush the RXFIFO queue? 


many thanks,

Roberto

 

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Synchronisation investigation MicaZ TinyOS1.x

2007-09-25 Thread Michael Collett
Hi,

I'm planning on setting up an investigation into clock drift as follows:

*Connect two MicaZ nodes via MIB510s to a laptop's serial ports (am getting a 
twin serial port adapter)
*Node A transmits its clock value to node B. Node B then logs it's clock value 
when the message arrived
*Node B then sends the value of the two clocks (A,B) over the serial port to 
the laptop
*They swap roles and repeat.
*The incoming data will be timestamped by the laptop and used to look at 
potential synchronisation techniques/evaluation.

I'm not sure about the issue of timestamping and what variable latency will be 
introduced by the radio. Can people give me some hints and recommendations for 
this, as well as any suggestions to improve my plan?

Does anyone know of applications already available that I can draw from?

Thanks and regards,

Mike
---
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
   Hook, Hampshire, United Kingdom  RG27 9UY
---

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] CVS update and Collection problems

2007-09-25 Thread Philip Levis

On Sep 24, 2007, at 9:34 PM, Iñigo Urteaga wrote:


Hi,

Thanks for the appreciation. However, I still have the compiling
errors related to Collection.


Om has checked in a fix. It looks like micaz sim was pulling in the  
CC2420 stack, which doesn't exist in simulation. We're still trying  
to work out how to incorporate the white bit into platforms: CVS is  
CVS, after all. If you want perfectly stable code, I recommend tagged  
releases.


Phil

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] CVS update and Collection problems

2007-09-25 Thread Philip Levis

On Sep 24, 2007, at 9:34 PM, Iñigo Urteaga wrote:


Hi,

Thanks for the appreciation. However, I still have the compiling
errors related to Collection.


I thought it might be useful to make a few notes about the current  
state of collection, because it's really the first time there's been  
some cross-WG collaboration and we're trying to figure out the way to  
handle CVS when there are some experimental extensions that look very  
promising.


The net2 working group proposed adding a new interface to link-layer  
communication, based on experiences developing link estimators for  
collection. This interface provides the white bit, which allows a  
higher layer to ask if the channel had high quality during a packet.  
Because this would be part of the packet HIL, it's core's  
responsibility. So core and net2 started talking about the tradeoffs.  
Core agreed that it sounded like a good idea, but wanted experimental  
evidence that it helped before making it a HIL.


In a series of experiments, net2 showed that the white bit can  
significantly improve link estimation. For the gory details, you can  
read the technical report SING-07-00, which is a draft of a  
submission to HotNets.[1] The short story is that, in comparison to  
MultihopLQI, the new CTP link estimator reduces routing cost  
(transmissions per packet delivered to base station) by 29% and is  
much more effective in sparse topologies. Based on these results,  
core gave the go-ahead to take the next step, which is to demonstrate  
that the white bit can be implemented on different radio chips and  
helps more than the CC2420.


Incorporating the white bit involves some significant changes to CTP  
(the net2 collection protocol); trying to maintain a parallel CTP was  
seen to be too big a deal, especially given the benefits we've seen  
with CC2420-based platforms. So Om and Rodrigo checked in the new CTP  
version. The recent collection problems are due to the need to iron  
out some of the lingering issues. For example, since the white bit is  
not yet an HIL, it's not part of ActiveMessageC; this means that the  
link estimator needs #define statements to link to the right radio  
chip. If the white bit joins the HIL, then this cruft will go away.


Anyways, that's the situation.

Phil

[1] http://sing.stanford.edu/singpubs.html
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] bandwidth obtained with TinyOS2

2007-09-25 Thread Michael Schippling

Quite some time ago I tried to characterize speed and reliability
and came up with about 100 default sized messages/sec for the micaz.
However, there is some question that this might have been limited by
the serial port speed so it's to be taken with a grain...

My report is here: http://www.etantdonnes.com/Motes/report_micaz/
and you may try searching back on this list for various discussions
of why you don't get 250Kb.

MS


Jordi Llosa wrote:
Hi, I just tried to find which is the best bandwidth that the tmote sky, 
the micaz, or the imote can obtain, with just a part of motes working, 
but I didn't find it out. I read that they use the zigbee but this 
doesn't means that they can transmit at 250kbps. Does somebody know it? 

 
thanks
 
--

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
696444871




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] CVS update and Collection problems

2007-09-25 Thread Todd Roper

Might want to check the CC1000 also, I had pulled all the latest updates and it 
promptly broke my code.  I had to revert back to the 2.02 release then add back 
in the 255 node id fix in /net/le

-Todd


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tinyos-help-
 [EMAIL PROTECTED] On Behalf Of Philip Levis
 Sent: Tuesday, September 25, 2007 9:39 AM
 To: Iñigo Urteaga
 Cc: tinyos-help@Millennium.Berkeley.EDU
 Subject: Re: [Tinyos-help] CVS update and Collection problems
 
 On Sep 24, 2007, at 9:34 PM, Iñigo Urteaga wrote:
 
  Hi,
 
  Thanks for the appreciation. However, I still have the compiling
  errors related to Collection.
 
 Om has checked in a fix. It looks like micaz sim was pulling in the
 CC2420 stack, which doesn't exist in simulation. We're still trying
 to work out how to incorporate the white bit into platforms: CVS is
 CVS, after all. If you want perfectly stable code, I recommend tagged
 releases.
 
 Phil
 
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] transmission range

2007-09-25 Thread Michael Schippling

You can of course add antennas of various kinds. The mica2's have
the advantage of being in the RFID freq range so there are some
standard things available. I found some in the digikey catalog.
MS


Jacob Sorber wrote:
Radio range will depend on how close to the ground you are.  The range 
you are describing for your mica2's seems about right for a mote on the 
ground.  If you can put them on a pole or in a tree, you will improve 
your range considerably.


You might also want to look at the XE1205 radio on the tinynode (from 
shockfish).  At 30kbps we've been able to get 500m+ near the ground and 
near water with the whip antennae they come with.  They claim that you 
can get 1km+ with a data rate of 1.2kbps, but tinyos doesn't currently 
support any data rate under 30kbps.


Jacob

On 9/25/07, *Demin Wang*  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:


We used 2.4GHz 8.5 dBi antennas on MicaZs and can reach maximum 400
meters with the maximum transmission power.

demin

On 9/25/07, Tony Han [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
  Hi folks,
 
  I try to use mica2 sending data for 100m in certain area (have a
few trees
  and a creek around), but now, with 900MHz mica2, I get only 10 m
in that
  environment, and if I use 433MHz mica2, I got 30m, still far less
than 100m.
  I use TinyOS 1.1.15. I set the transmission power to the maximum
value in
  MakeXbowlocal file.
 
  My question: is there any other mote has a longer range? or is
there any
  antenna can improve the TX and RX distance?
 
  I saw people deal with reduce the range for micaz, but please
someone help
  in increase the range.
 
  Thank you in advance
 
  Tony
 
 
 
 
 
 
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
mailto:Tinyos-help@Millennium.Berkeley.EDU
 
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
mailto:Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help





___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] transmission range

2007-09-25 Thread José Manuel Sánchez-Matamoros Pérez
I have used mica2 motes at 900MHz and i get more than 20 meters with a mote
on the ground. On this experiment we don't configure the mote at the max
power, so i think we can obtain a greater distance easily.

Another think you must to check is the battery level.

On 9/25/07, Jacob Sorber [EMAIL PROTECTED] wrote:

 Radio range will depend on how close to the ground you are.  The range you
 are describing for your mica2's seems about right for a mote on the ground.
 If you can put them on a pole or in a tree, you will improve your range
 considerably.

 You might also want to look at the XE1205 radio on the tinynode (from
 shockfish).  At 30kbps we've been able to get 500m+ near the ground and near
 water with the whip antennae they come with.  They claim that you can get
 1km+ with a data rate of 1.2kbps, but tinyos doesn't currently support any
 data rate under 30kbps.

 Jacob

 On 9/25/07, Demin Wang  [EMAIL PROTECTED] wrote:
 
  We used 2.4GHz 8.5 dBi antennas on MicaZs and can reach maximum 400
  meters with the maximum transmission power.
 
  demin
 
  On 9/25/07, Tony Han [EMAIL PROTECTED] wrote:
   Hi folks,
  
   I try to use mica2 sending data for 100m in certain area (have a few
  trees
   and a creek around), but now, with 900MHz mica2, I get only 10 m in
  that
   environment, and if I use 433MHz mica2, I got 30m, still far less than
  100m.
   I use TinyOS 1.1.15. I set the transmission power to the maximum value
  in
   MakeXbowlocal file.
  
   My question: is there any other mote has a longer range? or is there
  any
   antenna can improve the TX and RX distance?
  
   I saw people deal with reduce the range for micaz, but please someone
  help
   in increase the range.
  
   Thank you in advance
  
   Tony
  
  
  
  
  
  
   ___
   Tinyos-help mailing list
   Tinyos-help@Millennium.Berkeley.EDU
   https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
  
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 


 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Python SDK for TinyOS 2.x

2007-09-25 Thread Iñigo Urteaga
Hi everybody,

I am trying to use python sdk to communicate with Serial Forwarder. I
receive messages using receive(self, src, msg) as in Chad's example
and it works ok. However I found some troubles when trying to send
messages to Serial Forwarder.

I guess I should use MoteIF's sendMsg(self, dest, addr, amType,
group, msg) method. I have tried the following call in my class:

 self.mif.sendMsg(self.source, 0, t.get_amType(), 0, t)

Where,
 self.source = self.mif.addSource([EMAIL PROTECTED]:9002)
and
 t=TestSerialMsg()
 t.set_counter(13)

But I get the following errors:

(32, 'Broken pipe')
  File /opt/tinyos-2.x/support/sdk/python/tinyos/message/MoteIF.py,
line 124, in sendMsg
dest.writePacket(data)
  File /opt/tinyos-2.x/support/sdk/python/tinyos/packet/SFSource.py,
line 69, in writePacket
self.prot.writePacket(packet)
  File /opt/tinyos-2.x/support/sdk/python/tinyos/packet/SFProtocol.py,
line 74, in writePacket
self.outs.write(chr(len(packet)))
  File /opt/tinyos-2.x/support/sdk/python/tinyos/packet/SocketIO.py,
line 77, in write
return self.socket.send(data)
None

What am I doing wrong? Am I using the correct method?

Thanks in advance,

Iñigo

On 9/14/07, Chad Metcalf [EMAIL PROTECTED] wrote:
 It should work with any of the tools (Java, C, or C++ SFs). When it comes to
 MoteIF you'll find them very similar.

 Using TestSerial as an example:

 --- Makefile ---
 COMPONENT=TestSerialAppC
 BUILD_EXTRA_DEPS += TestSerial.class TestSerialMsg.py
 CLEAN_EXTRA = *.class TestSerialMsg.java TestSerialMsg.py

 TestSerial.class: $(wildcard *.java) TestSerialMsg.java
 javac *.java

 TestSerialMsg.java:
 mig java -target=null $(CFLAGS) -java-classname=TestSerialMsg
 TestSerial
 .h test_serial_msg -o $@

 TestSerialMsg.py:
 mig python -target=null $(CFLAGS) -python-classname=TestSerialMsg
 TestSe
 rial.h test_serial_msg -o $@

 include $(MAKERULES)
 -

 --- example.py ---

 #!/usr/bin/env python

 # This is a quick and dirty example of how to use the MoteIF interface in
 # Python

 from TestSerialMsg import *
 from tinyos.message import MoteIF

 class MyClass:
  def __init__(self):
 # Create a MoteIF
 self.mif = MoteIF.MoteIF()
 # Attach a source to it
 self.source = self.mif.addSource([EMAIL PROTECTED]:9001)

 # SomeMessageClass.py would be generated by MIG
 self.mif.addListener(self, TestSerialMsg)

 # Called by the MoteIF's receive thread when a new message
 # is received
 def receive(self, src, msg):
 print Received message: + str(msg)

 if __name__ == __main__:
 print Running
 m = MyClass()

 

 Not terribly useful example but it works.

 Cheers
 Chad


 On 9/14/07, John Griessen [EMAIL PROTECTED] wrote:
  Matt Welsh wrote:
   We've developed a Python based SDK for TinyOS, allowing you to write
   Python programs that talk to serialforwarder, send and receive packets,
   and so forth.
 
  Sounds great.  I've been using the c++ serial forwarder.  Has it been
  tested with that yet?   Does it parallel the whole java process of
  making message classes?
 
  Might it be just changing .java to .py
  in a Makefile like:
 
  ==
  COMPONENT=ReadMoistureSensorsC
  SENSORBOARD=a2d12ch
 
  BUILD_EXTRA_DEPS=MoistureSensorsMsg.class
  MoistureSensorsMsg.class:  MoistureSensorsMsg.java
  javac MoistureSensorsMsg.java
 
  MoistureSensorsMsg.java:
  mig java -target=null
 -java-classname=MoistureSensorsMsg
  ReadMoistureSensors.h MoistureSensorsMsg -o $@
 
  include $(MAKERULES)
  ===
 
  Thanks,
 
  John Griessen
  --
  Ecosensory
  tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2 ;   telosb ecosens1
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
 
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 



 --
 Chad @ Home
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] transmission range

2007-09-25 Thread Tony Han
Thank you all,

I think the transmission distance is also deeply effected by the
environment. I use the same mica2 433MHz at the other places, I got about
60m, and for 900MHz mica2, I got 25m, but when I put everything to that
site, the distance reduced to 30 m and 10 m respectively. I think that is
because the grass, the tree and river absorb the signal and made it harder
to listen to each other. I never use micaz before, is 2.4GHz has less
inference from the environment?  I think I definitely need use a high gain
antenna, but should I move to 2.4G micaz or stay with mica2? Thank you
again, and I will let you know the testing results.

Tony

On 9/25/07, José Manuel Sánchez-Matamoros Pérez [EMAIL PROTECTED]
wrote:

 I have used mica2 motes at 900MHz and i get more than 20 meters with a
 mote on the ground. On this experiment we don't configure the mote at the
 max power, so i think we can obtain a greater distance easily.

 Another think you must to check is the battery level.

 On 9/25/07, Jacob Sorber [EMAIL PROTECTED] wrote:
 
  Radio range will depend on how close to the ground you are.  The range
  you are describing for your mica2's seems about right for a mote on the
  ground.  If you can put them on a pole or in a tree, you will improve your
  range considerably.
 
  You might also want to look at the XE1205 radio on the tinynode (from
  shockfish).  At 30kbps we've been able to get 500m+ near the ground and near
  water with the whip antennae they come with.  They claim that you can get
  1km+ with a data rate of 1.2kbps, but tinyos doesn't currently support
  any data rate under 30kbps.
 
  Jacob
 
  On 9/25/07, Demin Wang  [EMAIL PROTECTED] wrote:
  
   We used 2.4GHz 8.5 dBi antennas on MicaZs and can reach maximum 400
   meters with the maximum transmission power.
  
   demin
  
   On 9/25/07, Tony Han [EMAIL PROTECTED]  wrote:
Hi folks,
   
I try to use mica2 sending data for 100m in certain area (have a few
   trees
and a creek around), but now, with 900MHz mica2, I get only 10 m in
   that
environment, and if I use 433MHz mica2, I got 30m, still far less
   than 100m.
I use TinyOS 1.1.15. I set the transmission power to the maximum
   value in
MakeXbowlocal file.
   
My question: is there any other mote has a longer range? or is
   there any
antenna can improve the TX and RX distance?
   
I saw people deal with reduce the range for micaz, but please
   someone help
in increase the range.
   
Thank you in advance
   
Tony
   
   
   
   
   
   
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
  
   
   ___
   Tinyos-help mailing list
   Tinyos-help@Millennium.Berkeley.EDU
  
   https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
  
 
 
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 


 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Data Viewing

2007-09-25 Thread John W. Barron
With all the PrintF questions, I was wondering... How does everyone  
view their data. If I send a Message_t to serail what are my options  
besides hex? I mostly send PrintF messages to serail and read the Comm  
port with Windows Hyperterminal. I KNOW there are better ways, but how  
to decode fields in the Message_t varible to ASCII?


Thanks
John Barron

Winxp/cygwin
moteiv Tmote Sky
TOS 2.0.2


This message was sent using IMP, the Internet Messaging Program.


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] transmission range

2007-09-25 Thread Michael Schippling

In my cursory experience, the 'Zs seem to be more reliable
but also more environment sensitive. The higher the freq the
more line-o-sight it becomes. And 2.4G is an absorption band
for water...on the other hand there are more cheap antenna
options because it matches up with WiFi.

MS


Tony Han wrote:

Thank you all,

I think the transmission distance is also deeply effected by the 
environment. I use the same mica2 433MHz at the other places, I got 
about 60m, and for 900MHz mica2, I got 25m, but when I put everything to 
that site, the distance reduced to 30 m and 10 m respectively. I think 
that is because the grass, the tree and river absorb the signal and made 
it harder to listen to each other. I never use micaz before, is 2.4GHz 
has less inference from the environment?  I think I definitely need use 
a high gain antenna, but should I move to 2.4G micaz or stay with mica2? 
Thank you again, and I will let you know the testing results.


Tony

On 9/25/07, *José Manuel Sánchez-Matamoros Pérez* 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:


I have used mica2 motes at 900MHz and i get more than 20 meters with
a mote on the ground. On this experiment we don't configure the mote
at the max power, so i think we can obtain a greater distance easily.

Another think you must to check is the battery level.


On 9/25/07, *Jacob Sorber*  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

Radio range will depend on how close to the ground you are.  The
range you are describing for your mica2's seems about right for
a mote on the ground.  If you can put them on a pole or in a
tree, you will improve your range considerably.

You might also want to look at the XE1205 radio on the tinynode
(from shockfish).  At 30kbps we've been able to get 500m+ near
the ground and near water with the whip antennae they come
with.  They claim that you can get 1km+ with a data rate of
1.2kbps, but tinyos doesn't currently support any data rate
under 30kbps.

Jacob


On 9/25/07, * Demin Wang*  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

We used 2.4GHz 8.5 dBi antennas on MicaZs and can reach
maximum 400
meters with the maximum transmission power.

demin

On 9/25/07, Tony Han [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
  Hi folks,

  I try to use mica2 sending data for 100m in certain area
(have a few trees
  and a creek around), but now, with 900MHz mica2, I get
only 10 m in that
  environment, and if I use 433MHz mica2, I got 30m, still
far less than 100m.
  I use TinyOS 1.1.15. I set the transmission power to the
maximum value in
  MakeXbowlocal file.

  My question: is there any other mote has a longer range?
or is there any
  antenna can improve the TX and RX distance?

  I saw people deal with reduce the range for micaz, but
please someone help
  in increase the range.

  Thank you in advance

  Tony






  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
mailto:Tinyos-help@Millennium.Berkeley.EDU


https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
mailto:Tinyos-help@Millennium.Berkeley.EDU

https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
mailto:Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
mailto:Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help





___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU

Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Kevin Klues
For the current printf implementation, the tutorial here shows you how
to use it.  Including how to decode the messages it transmits into
ascii.  Its probably going to change in the near future though, so
keep a look out.

http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson15.html



Kevin

On 9/25/07, John W. Barron [EMAIL PROTECTED] wrote:
 With all the PrintF questions, I was wondering... How does everyone
 view their data. If I send a Message_t to serail what are my options
 besides hex? I mostly send PrintF messages to serail and read the Comm
 port with Windows Hyperterminal. I KNOW there are better ways, but how
 to decode fields in the Message_t varible to ASCII?

 Thanks
 John Barron

 Winxp/cygwin
 moteiv Tmote Sky
 TOS 2.0.2

 
 This message was sent using IMP, the Internet Messaging Program.


 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



-- 
~Kevin
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Philip Levis

On Sep 25, 2007, at 2:29 PM, John W. Barron wrote:

With all the PrintF questions, I was wondering... How does everyone  
view their data. If I send a Message_t to serail what are my  
options besides hex? I mostly send PrintF messages to serail and  
read the Comm port with Windows Hyperterminal. I KNOW there are  
better ways, but how to decode fields in the Message_t varible to  
ASCII?


If you generate a Java class with mig, then you can use MsgReader to  
print out fields in ASCII.


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Cadet John W. Barron
Yes this is the current way I do it, How would I recover a message_t 
sent to the serial port? (in a useful display that could be logged to be 
analyzed later? )


John

Kevin Klues wrote:

For the current printf implementation, the tutorial here shows you how
to use it.  Including how to decode the messages it transmits into
ascii.  Its probably going to change in the near future though, so
keep a look out.

http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson15.html



Kevin

On 9/25/07, John W. Barron [EMAIL PROTECTED] wrote:
  

With all the PrintF questions, I was wondering... How does everyone
view their data. If I send a Message_t to serail what are my options
besides hex? I mostly send PrintF messages to serail and read the Comm
port with Windows Hyperterminal. I KNOW there are better ways, but how
to decode fields in the Message_t varible to ASCII?

Thanks
John Barron

Winxp/cygwin
moteiv Tmote Sky
TOS 2.0.2


This message was sent using IMP, the Internet Messaging Program.


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help





  



--

V/R

C/Col John W. Barron
cadet Wing Commander

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Timer and Uart0 Conflict

2007-09-25 Thread Vlado Handziski
OK, I repeated the test while exciting the uart0 pins on the mote, and it
does lock-up. The problem is in your usage of start-edge detection i.e.
urxse : 1 in the config struct. In this case, the MCU generates a single RX
interrupt that has to be handled manually, before one can start with normal
byte receive. The current code in the stack relies on the automatic clearing
of the RX flag, thus the lock-up that you see.

Vlado

On 9/25/07, Vlado Handziski [EMAIL PROTECTED] wrote:

 Hi Ariel,

 unfortunately I can not reproduce the bug that you are seeing on my
 testing tmote sky node.The red led is blinking both with and without that
 line. Can you send me a binary image of the application to rule out
 different source trees.

 Vlado

 On 9/25/07, Vlado Handziski [EMAIL PROTECTED] wrote:
 
  Hi Ariel,
 
  I'll take a look at the issue later today and get back to you.
 
  Vlado
 
  On 9/25/07, Ariel Mauricio Nunez Gomez  [EMAIL PROTECTED] wrote:
 
   Hello everyone,
  
   I am trying to use Timer0 and Uart0 (Tinyos 2.0.2 (cvs updated 4 days
   ago), Tmote Sky, Ubuntu Feisty).
   As you can see, led0 blinks if timer is fired, and led1 blinks when a
   byte is received over the serial port.
  
   Problem: When I request the serial port, led0 stops blinking.
  
   Note: The serial port can be disconnected and it will show the same
   behavior.
  
   Thanks in advance,
   Ariel
  
code snippet
  
  
 event void Boot.booted()
 {
   call Timer0.startPeriodic( 1000 );
   //call SerialResource.request(); //Uncomment this line to disable
   Timer0
 }
  
 event void Timer0.fired()
 {
   call Leds.led0Toggle();
 }
  
 event void SerialResource.granted(){
   call UartStream.enableReceiveInterrupt ();
 }
 async event void UartStream.receivedByte(uint8_t byte){
   call UartStream.disableReceiveInterrupt();
   call Leds.led1Toggle();
   call UartStream.enableReceiveInterrupt();
 }
  
  
   ___
   Tinyos-help mailing list
   Tinyos-help@Millennium.Berkeley.EDU
   https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
  
  
  
 

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Timer and Uart0 Conflict

2007-09-25 Thread Ariel Mauricio Nunez Gomez
Vlado,

Thanks for your reply, It does work now.
I also had trouble with decoding a sequence (missing random bytes) and it
was solved too.

Regards,
Ariel.



 On 9/25/07, Vlado Handziski [EMAIL PROTECTED] wrote:
 
  OK, I repeated the test while exciting the uart0 pins on the mote, and
  it does lock-up. The problem is in your usage of start-edge detection
  i.e. urxse : 1 in the config struct. In this case, the MCU generates a
  single RX interrupt that has to be handled manually, before one can start
  with normal byte receive. The current code in the stack relies on the
  automatic clearing of the RX flag, thus the lock-up that you see.
 
  Vlado
 
  On 9/25/07, Vlado Handziski  [EMAIL PROTECTED] wrote:
  
   Hi Ariel,
  
   unfortunately I can not reproduce the bug that you are seeing on my
   testing tmote sky node.The red led is blinking both with and without
   that line. Can you send me a binary image of the application to rule out
   different source trees.
  
   Vlado
  
   On 9/25/07, Vlado Handziski  [EMAIL PROTECTED] wrote:
   
Hi Ariel,
   
I'll take a look at the issue later today and get back to you.
   
Vlado
   
On 9/25/07, Ariel Mauricio Nunez Gomez  [EMAIL PROTECTED] wrote:
   
 Hello everyone,

 I am trying to use Timer0 and Uart0 (Tinyos 2.0.2 (cvs updated 4
 days ago), Tmote Sky, Ubuntu Feisty).
 As you can see, led0 blinks if timer is fired, and led1 blinks
 when a byte is received over the serial port.

 Problem: When I request the serial port, led0 stops blinking.

 Note: The serial port can be disconnected and it will show the
 same behavior.

 Thanks in advance,
 Ariel

  code snippet


   event void Boot.booted()
   {
 call Timer0.startPeriodic( 1000 );
 //call SerialResource.request(); //Uncomment this line to
 disable Timer0
   }

   event void Timer0.fired()
   {
 call Leds.led0Toggle();
   }

   event void SerialResource.granted(){
 call UartStream.enableReceiveInterrupt ();
   }
   async event void UartStream.receivedByte(uint8_t byte){
 call UartStream.disableReceiveInterrupt();
 call Leds.led1Toggle();
 call UartStream.enableReceiveInterrupt();
   }


 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



   
  
 



-- 
Ariel Núñez
Project Manager
Keydome
[EMAIL PROTECTED]
+57(300)8438443
+57(317)3205876
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Mailing list bug: automatic reply to list

2007-09-25 Thread Ariel Mauricio Nunez Gomez
Hello list admin

Could you please set up the mailing list preferences so the reply to: field
is filled with [EMAIL PROTECTED] I can see people are already used to
reply to all, but I imagine a lot of unaware users have replied only to
the sender of the message and some information may have lost in the way.

Thanks in advance,
Ariel.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Mailing list bug: automatic reply to list

2007-09-25 Thread Ariel Mauricio Nunez Gomez
Hello list admin

Could you please set up the mailing list preferences so the reply to: field
is filled with [EMAIL PROTECTED] I can see people are already used to
reply to all, but I imagine a lot of unaware users have replied only to
the sender of the message and some information may have lost in the way.

Thanks in advance,
Ariel.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Wes Barron
Thanks for the info, I'll try that tomorrow. Is there any other 
publications on the MsgReader? I only ask because i knew the software 
exist but have never read or heard about it, and honestly didn't know it 
was in the TOS release.


John



Ariel Mauricio Nunez Gomez wrote:

I usually do something like this:

java net.tinyos.tools.MsgReader TheMsg  the_log.txt 

It then goes to the background, if I want to see it while it's being 
logged, I call:


tail -f the_log.txt

Ariel.

On 9/25/07, *Cadet John W. Barron * [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Yes this is the current way I do it, How would I recover a message_t
sent to the serial port? (in a useful display that could be logged
to be
analyzed later? )

John

Kevin Klues wrote:
 For the current printf implementation, the tutorial here shows
you how
 to use it.  Including how to decode the messages it transmits into
 ascii.  Its probably going to change in the near future though, so
 keep a look out.

 http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson15.html
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson15.html



 Kevin

 On 9/25/07, John W. Barron [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

 With all the PrintF questions, I was wondering... How does
everyone
 view their data. If I send a Message_t to serail what are my
options
 besides hex? I mostly send PrintF messages to serail and read
the Comm
 port with Windows Hyperterminal. I KNOW there are better ways,
but how
 to decode fields in the Message_t varible to ASCII?

 Thanks
 John Barron

 Winxp/cygwin
 moteiv Tmote Sky
 TOS 2.0.2

 
 This message was sent using IMP, the Internet Messaging Program.


 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
mailto:Tinyos-help@Millennium.Berkeley.EDU

https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help







--

V/R

C/Col John W. Barron
cadet Wing Commander

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
mailto:Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
Ariel Núñez
Project Manager
Keydome
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
+57(300)8438443
+57(317)3205876


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] How to

2007-09-25 Thread Bo Xu
Dear all:
 
Do you know how to save the data recieved by a mica2 note to a database file? 
 Those data are real-time and dynamic.

 Thanks a lot!
 
 Sincerely,
Bo


   
-
Shape Yahoo! in your own image.  Join our Network Research Panel today!___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] How to

2007-09-25 Thread Tony Han
how do you receive data from mica2? what database you are going to use?

Basically, if you save data into a simple text file, you can write VB
program and use ODBC to connect DB.

Need to know more details about your requirement.

Tony

On 9/25/07, Bo Xu [EMAIL PROTECTED] wrote:

 Dear all:

 Do you know how to save the data recieved by a mica2 note to a database
 file?
 Those data are real-time and dynamic.

 Thanks a lot!

 Sincerely,
 Bo

 --
 Shape Yahoo! in your own image. Join our Network Research Panel 
 today!http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7


 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help