[Tinyos-help] senddone succes but not send

2006-03-23 Thread patrick kuckertz
Hi,I use genericom and I receive a message. Then a parameter is changed and I want to tell this, so I send an answer.  I use the green light to show that a message is received. And I switch it off, whenI get senddone event with success.However the message is not send over radio. With uart it works. I do not have problems with radio at all.   This happens only if I am sampling data (with special rates) while receiving a message.  I have checked the task queue and it isnever full.  How can I know better that a message was send?  I post a new task if senddone is not success or send retunrs fail... But it signals senddone success...Best Regards,  Patrick
		New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Seral Forwarder

2006-03-23 Thread Roberto
I tried to use Serial Forwarder application. I see the reading packets
number increasing during the time, but I'm not able to see the packets.
If I use Listen java tools I have no problem, and also oscilloscope
application runs correctly.
The serial forwarder show only the sycronize message, so how can I do to
view the messages ?

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


Re: [Tinyos-help] Seral Forwarder

2006-03-23 Thread Andrea Pacini

What's the matter with Listen ? Use it to show packets 

Andrea

Roberto wrote:


I tried to use Serial Forwarder application. I see the reading packets
number increasing during the time, but I'm not able to see the packets.
If I use Listen java tools I have no problem, and also oscilloscope
application runs correctly.
The serial forwarder show only the sycronize message, so how can I do to
view the messages ?

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


 



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


Re: [Tinyos-help] Seral Forwarder

2006-03-23 Thread Roberto
I'm sorry I just realized that Serial Forwarder only forward
messages to remote hosts!!! It's all right!


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


[Tinyos-help] SerialForwarder problems!

2006-03-23 Thread Colin Couper
Hi

I'm having trouble with serialforwarder!
I've attached the error that I get when I try to run it!

Thanks in advance

Colin


error.PNG
Description: PNG image
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Motes on the same network with different data rate.

2006-03-23 Thread Edgardo Avilés López
Hi,

Are there any special considerations on using different data rates to
send messages on the motes? (e.g. having node 2 at 3 Hz and node 4 at
2 Hz) I heard something about a lower network stack layer.

Thanks,
Edgardo.

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


[Tinyos-help] Changing the radio frequency of Telos B motes

2006-03-23 Thread Venkat Manoj
Hi,I wanted to know if we can change the radio frequency of a TelOS B mote  by flashing it? I mean can we change the frequency by sending in some  signal from the base station?Thanks,  Venkat  
		Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] trouble between send et forward

2006-03-23 Thread wassim znaidi
i'm a new user of tinyos and nesc language, i have locked in surge code and i don't understand the differnece beetween Send.send, SendMsg.send , mForward et Send getbufferplease can any one make this notion clear, it will be very helpfull for me
thanks in advance
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Tmote Sky serial interface

2006-03-23 Thread Chris Morrison
I've searched through the archives and can't find a definitive answer to 
my question so I am hoping someone here can help.


I'm looking to connect a display up to my mote through the serial ports 
that are on the expansion pins and I have two problems,
1. Can I use the genericComm to send to this UART or is it only the USB 
port that can use the genericComm?
2. If I can use the genericComm how do i change the baud rate from 
57600bps to 9600bps?  How do i change the destination address so rather 
than going through the USB port it goes through the UART (at the moment 
i just use the line


call Send.send( TOS_UART_ADDR,sizeof(IntMsg2),data)

to send to the UART but that sends over the USB instead of the expansion 
UART.


Thanks in advance,

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


[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 around for information on this topic and I guess I
should have TOSBase installed on a mote, which should be connected to
the computer, and send the messages from the computer to this TOSBase
mote, which would then forward the messages to the specific mote and
take their answers and forward them back to the computer.

The problem is that I don't know very well how to do this. I do program
my motes with install.X and give them different id's, and I guess I
should modify the java program on the laptop so that a moteid should
also be specified.

What I don't know is if I should modify TOSBase in any way so it can
analyse the message structures I am using, in which I would add a
destination field, so that it knows where to forward the message, or if
I can do this without changing TOSBase, modifying the java application
to tell TOSBase where to forward the message...

Any information which could help me with this is greatly appreciated.

Thank you,

- Jose.


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


Re: [Tinyos-help] Seral Forwarder

2006-03-23 Thread Tran Nam Hung
I am not very sure about SerialForwarder, I also have a problem using it.When I run SerialForwarder, the program reads the messages and waits at port 9001.I want to obtain temperature informationSo I write a client java program to connect to port 9001 to obtain the packets.But I only find a packet like this:84 32 00 00  00 00 : the remaining bytes are all 00at that time I used only one mote, which connected to the MIB510 board.I turned on another mote and place it near the mote that connected to the board, but there was no difference.Can anybody tell me the steps to get temperature information using mica2 motes, MIB510 board, please? I am in desperate need.Roberto [EMAIL PROTECTED] wrote: I'm sorry I just realized that Serial Forwarder only forwardmessages to!
  remote
 hosts!!! It's all right!___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Tmote Sky serial interface

2006-03-23 Thread Joe Polastre
You need to write a driver for your device.  I'm pretty sure that your
device doesn't understand TinyOS formatted packets that GenericComm
sends.  There's an article on Moteiv's support site about using UART0
with Boomerang:

http://www.moteiv.com/community/Boomerang_UART0_Sample

-Joe

On 3/23/06, Chris Morrison [EMAIL PROTECTED] wrote:
 I've searched through the archives and can't find a definitive answer to
 my question so I am hoping someone here can help.

 I'm looking to connect a display up to my mote through the serial ports
 that are on the expansion pins and I have two problems,
 1. Can I use the genericComm to send to this UART or is it only the USB
 port that can use the genericComm?
 2. If I can use the genericComm how do i change the baud rate from
 57600bps to 9600bps?  How do i change the destination address so rather
 than going through the USB port it goes through the UART (at the moment
 i just use the line

 call Send.send( TOS_UART_ADDR,sizeof(IntMsg2),data)

 to send to the UART but that sends over the USB instead of the expansion
 UART.

 Thanks in advance,

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


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


Re: [Tinyos-help] where does the tinyos-2.0 realize the network organization ?

2006-03-23 Thread Philip Levis
On Thu, 2006-03-23 at 10:42 +, sun yi wrote:
 hi all,
Every know in tinyos-1.x/……/tos/lib/Router there are some components 
 about router,
 
  but in tinyos-2.0 I couldn`t find any component about router, who can tell 
 me how does the 
 
 tinyos-2.0 realize the network organization ?

TinyOS 2.0 does not yet have a full collection implementation. The net2
WG is working on it currently. TEP 119 describes the structure and
interfaces of the abstraction.

I suspect that taking MultihopLQI and porting it to 2.x would require
very little work, if you just want to get something up and running. The
reason why net2 hasn't done this is MultihopLQI assumes a CC2420 radio.

Phil


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


Re: [Tinyos-help] TinyOS MSP430 Binary Compatible Question

2006-03-23 Thread Chang Li

Is there a program that can convert ELF to COFF format?



TinyOS uses GCC as its backend; the resulting binaries are in the ELF
format.  THere are several revisions of GDB that understand ELF (see
http://www.eecs.harvard.edu/~mdw/proj/tmote-gdb/ for details); there
are also notable exceptions, such as the GDB that is distributed with
TI's Code Composer  (it only knows about COFF binaries).

Also make sure that you feed to GDB the main.exe rather than main.ihex
or derivatives.

Cheers,

Rob

Robert Szewczyk
Moteiv Corporation

On 3/22/06, Chang Li [EMAIL PROTECTED] wrote:




Is TinyOS 1.x MSP430 binary compatible with TI's MSP430 binary? TI's gdb
loader doesn't recognize tinyos' format.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




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


Re: [Tinyos-help] senddone succes but not send

2006-03-23 Thread Philip Levis
On Thu, 2006-03-23 at 01:49 -0800, patrick kuckertz wrote:
 Hi,
  
 I use genericom and I receive a message. Then a parameter is changed
 and I want to tell this, so I send an answer.
 I use the green light to show that a message is received. And I switch
 it off, when I get senddone event with success.
  
 However the message is not send over radio. With uart it works. I do
 not have problems with radio at all. 
 This happens only if I am sampling data (with special rates) while
 receiving a message.
 I have checked the task queue and it is never full.
 How can I know better that a message was send?
 I post a new task if senddone is not success or send retunrs fail...
 But it signals senddone success...

What do you mean is not sent over radio? A SUCCESS on sendDone only
means the stack was able to send it correctly: it does not mean that
another node received it. You need acknowledgments to determine that.

What platform/TinyOS release are you using?

Phil

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


[Tinyos-help] Serial Forwarder Sky Motes

2006-03-23 Thread Emiliano
Hi all,

I'm posting this message because I couldn't run sf properly in my scenario.
The set up is as follows: PC1 - (ethernet) - PC2. I have a Sky Mote 
connected vis USB to PC2. I want to run the Deluge java  toolchain on PC1 
(which hosts the Deluge java package) and send the streams to PC2 which, by 
using sf, forwards them to the Sky Mote to operate the reprogramming.
Below there is what I've done:
- I make sf running on PC2 ($ ./sf 7000 /dev/usb/tts/1 57600 telosb)
- I run sf on PC1 as follows: $ java net/tinyos/sf/SerialForwarder -comm [EMAIL 
PROTECTED]:7000
- before running Deluge on PC1 I export the MOTECOM var as follows: $ export 
[EMAIL PROTECTED]:7000
- on PC1 I run Deluge ping: $java net/tinyos/tools/Deluge --ping

What I get is:
- on the PC1's sf GUI:
 Listening to [EMAIL PROTECTED]:7000
 Platform telos
 Listening for client connections on port 7000

- Deluge hangs:
 [EMAIL PROTECTED] java]$ java net/tinyos/tools/Deluge --ping
 Pinging node ...

Deluge doesn't go through.

Do you please have any suggestions? What am I missing?

Thank you very much,
Emiliano 


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


[Tinyos-help] Installing the msp-gcc compiler

2006-03-23 Thread Venkat Manoj
Hi,I tried compiling the Blink application for Telos B mote by using the command...make telos---But I got an error saying "Couldn't execute msp430-gcc".So, I installed msp-gcc compiler from sourceforge.net. Then I set the MSPGCCROOT environment variable to the mspgcc directory.Now after using make telos again, I am getting an error saying that there are more than two versions of cygwin1.dll files. I tried deleting the one in mspgcc directory but then it didn't work.Could someone please tell me how to install msp-gcc? I am using windowsXP.Thanks,Venkat.
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] tinyos-2.x how is the CC2420Config interface exposed to higher layers in tinyOS-2.x

2006-03-23 Thread Avinash Sridharan
Hi All,
I wanted to set the power of my radio dynamically (at runtime). I
figured out that the CC2420Config.nc provides such an interface to set
the transmission power and it is implemented in CC2420ControlP.nc.
However I am not able to find any of the generic interfaces (that hide
the hardware specifics) in tinyOS-2.x that are are exposing the full
functionality of CC2420Config.nc (that is the ability to set the tx
power of the radios) to applications.

 Do I need to access the CC2420Control component directly to perform the above operation ?

Thanks,
Avinash-- Phd Dept. of Electrical EngineeringUniversity of Southern Californiahttp://www-scf.usc.edu/~asridhar
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] TinyOS MSP430 Binary Compatible Question

2006-03-23 Thread Robert Szewczyk
Last time I looked I could not find anything satisfactory.  On the
other hand, the source to GDB is available under GPL; you can look at
the code that handles ELF modules in MSPGCC's version of GDB, and port
it to the TI's Code Composer's GDB.  I believe that would be a very
welcome development  by the community.

Cheers,

Rob

On 3/23/06, Chang Li [EMAIL PROTECTED] wrote:
 Is there a program that can convert ELF to COFF format?

 

 TinyOS uses GCC as its backend; the resulting binaries are in the ELF
 format.  THere are several revisions of GDB that understand ELF (see
 http://www.eecs.harvard.edu/~mdw/proj/tmote-gdb/ for details); there
 are also notable exceptions, such as the GDB that is distributed with
 TI's Code Composer  (it only knows about COFF binaries).

 Also make sure that you feed to GDB the main.exe rather than main.ihex
 or derivatives.

 Cheers,

 Rob

 Robert Szewczyk
 Moteiv Corporation

 On 3/22/06, Chang Li [EMAIL PROTECTED] wrote:
 
 
 
  Is TinyOS 1.x MSP430 binary compatible with TI's MSP430 binary? TI's gdb
  loader doesn't recognize tinyos' format.
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 
 


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


[Tinyos-help] RF Communication

2006-03-23 Thread Arijit Ghosh
I am simulating two motes in TOSSIM. When 1 sends a
message to 0, everything works fine. But when 0 sends
a message to 1, 1 does not receive it. 1 never sends
the ACK. Any pointers on what I should be
investigating? The code looks like below.

Thanks in advance ...

command result_t SendData.output(Some_ptr pmsg) {
 send_curr_msg = (Some_ptr)data.data;
 
 if (!pending) {
pending = TRUE;
atomic {
  send_curr_msg-op = pmsg-op;
}
if (call Send.send(TOS_BCAST_ADDR,
sizeof(Morpheus_msg), data)) {
   
   return SUCCESS;
}
pending = FALSE;
 }
 return FAIL;
  }
---

 event TOS_MsgPtr Receive.receive(TOS_MsgPtr m) {
 
 rcv_curr_msg = (Some_ptr)m-data;
 return m;
   }

---

Do the best you can, with what you have, where you are. -- Roosevelt

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Interfacing new I2C sensor to micaZ mote

2006-03-23 Thread Michael Schippling

You should check the max-voltage specs for the ATMEGA chip,
I think it's 1v + Vcc so you're probably pushing it with 5v.
That said, at low currents it's probably OK anyway...
MS

#AUNG AUNG PHYO WAI# wrote:

Hi all,
 
I would like to ask hardware related question for connecting new types 
of sensors to micaZ mote.
 
The sensor I planned to integrate is using I2C communication and its 
supply voltage is 5 V. So Can I connect this sensor I2C pins to 
respective micaZ mote I2C CLK and DATA pins? I am aware of micaZ voltage 
range of 3.3 V.
 
Thanks in advance.
 
*Regards,*
 
*Aung Aung Phyo Wai *
** 





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

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


Re: [Tinyos-help] trouble between send et forward

2006-03-23 Thread Michael Schippling

Have a look through the doc/tutorial files to start with.
MS

wassim znaidi wrote:
i'm a new user of tinyos and nesc language, i have locked in surge code 
and i don't understand the differnece beetween Send.send, SendMsg.send , 
mForward et Send getbuffer

please can any one make this notion clear, it will be very helpfull for me

thanks in advance




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

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


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

2006-03-23 Thread Michael Schippling

sounds like you have exactly the right idea.

No need to modify TOSBase. Just put the destination moteID
(the X in install.X) in the TOS_Msg.addr field. It's probably
set to BROADCASE (0x) by default.

If you haven't been through all the get-the-radio-working shuffle
already, you should go through that part of the tutorial first.

MS

Jose L. Ponce wrote:

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 around for information on this topic and I guess I
should have TOSBase installed on a mote, which should be connected to
the computer, and send the messages from the computer to this TOSBase
mote, which would then forward the messages to the specific mote and
take their answers and forward them back to the computer.

The problem is that I don't know very well how to do this. I do program
my motes with install.X and give them different id's, and I guess I
should modify the java program on the laptop so that a moteid should
also be specified.

What I don't know is if I should modify TOSBase in any way so it can
analyse the message structures I am using, in which I would add a
destination field, so that it knows where to forward the message, or if
I can do this without changing TOSBase, modifying the java application
to tell TOSBase where to forward the message...

Any information which could help me with this is greatly appreciated.

Thank you,

- Jose.


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

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


Re: [Tinyos-help] Seral Forwarder

2006-03-23 Thread Michael Schippling

What program are you running on the re-Motes?

Assuming that it is something that sends a single ADC reading
in each message, it's entirely possible that the 84 32 that
you get IS that reading. Note that it is little-endian so the
actual value is 0x3284.

Otherwise your message dump doesn't look like a TOS_Msg. You can
try to use Listen directly, with out SerialForwarder, to see the
whole buffer and compare it to the message structs.

MS

Tran Nam Hung wrote:

I am not very sure about SerialForwarder, I also have a problem using it.
When I run SerialForwarder, the program reads the messages and waits at 
port 9001.


I want to obtain temperature information

So I write a client java program to connect to port 9001 to obtain the 
packets.


But I only find a packet like this:

84 32 00 00  00 00 : the remaining bytes are all 00

at that time I used only one mote, which connected to the MIB510 board.

I turned on another mote and place it near the mote that connected to 
the board, but there was no difference.


Can anybody tell me the steps to get temperature information using mica2 
motes, MIB510 board, please? I am in desperate need.


*/Roberto [EMAIL PROTECTED]/* wrote:

I'm sorry I just realized that Serial Forwarder only forward
messages to! remote hosts!!! It's all right!


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



New Yahoo! Messenger with Voice. Call regular phones from your PC 
http://us.rd.yahoo.com/mail_us/taglines/postman5/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com 
  and save big.





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

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


Re: [Tinyos-help] Tmote Sky serial interface

2006-03-23 Thread Michael Schippling

You should just skip the GernericComm component if you want to
eliminate the TOS_Msg format. Go down to the raw UARTM component.
See that code for changing baud rates and such.

Or, much easier, if you can change your host receiving program, just
add the TOS_Msg header to it. You can use the MIG program to generate
Java classes for your messages, or look at my code bolus for examples
of rolling your own:  http://www.etantdonnes.com/Motes/robocode.tar.gz

MS

Chris Morrison wrote:
Yup I understnad that my device will not understand TinyoS packets but 
it still communicates 8bits at a time with 1 stop bit and no parity so 
the display should display what I want it to (along with some rubbish 
generated by the packet header) once I had it working I was going to 
then make changes to GenericComm(and lower interfaces) to remove the 
header.  I read the boomerang sample but I am not using boomerang at the 
moment.


I was really looking to find out how to send data to the serial port 
using GenericComm and how to alter the baud rate.


Thanks for the help though,

Chris


Joe Polastre wrote:


You need to write a driver for your device.  I'm pretty sure that your
device doesn't understand TinyOS formatted packets that GenericComm
sends.  There's an article on Moteiv's support site about using UART0
with Boomerang:

http://www.moteiv.com/community/Boomerang_UART0_Sample

-Joe

On 3/23/06, Chris Morrison [EMAIL PROTECTED] wrote:
 


I've searched through the archives and can't find a definitive answer to
my question so I am hoping someone here can help.

I'm looking to connect a display up to my mote through the serial ports
that are on the expansion pins and I have two problems,
1. Can I use the genericComm to send to this UART or is it only the USB
port that can use the genericComm?
2. If I can use the genericComm how do i change the baud rate from
57600bps to 9600bps?  How do i change the destination address so rather
than going through the USB port it goes through the UART (at the moment
i just use the line

call Send.send( TOS_UART_ADDR,sizeof(IntMsg2),data)

to send to the UART but that sends over the USB instead of the expansion
UART.

Thanks in advance,

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



  


 




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

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


Re: [Tinyos-help] make error

2006-03-23 Thread Michael Schippling

were you able to use COM1 before?
Did you upgrade your TOS or cygwin?
The newer version of cygwin seems to want us to
use /dev/ttyS0 instead of COM1 to get to the MIB.

MS

aseem grover wrote:

hiii

i've been haivng problems lately with building my applications. i can't 
seem to load simple programs on to the mote.i tried to load RfmToLeds 
and the following errror occurred:


compiled RfmToLeds to build/mica2/main.exe
 11232 bytes in ROM
  381 bytes in RAM
...
...
..

installing mica2 binary using mib510
uisp -dprog=mib510 -dserial=com1 --wr_fuse_h=0xd9 -dpart=ATmega128 
--wr_fuse_e=ff  --erase --upload if=build/mica2/main.srec.out-11

Error:   No such file or directory
-- com1
make : ***  [program]  Error 1


can anyone help on this??

thanx

ag


Yahoo! Messenger with Voice. Make PC-to-Phone Calls 
http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com 
to the US (and 30+ countries) for 2¢/min or less.





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

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


Re: [Tinyos-help] pointer use question

2006-03-23 Thread Michael Schippling

Yes.

It sounds like you are transmitting garbage after the first byte?
Your array is on the stack of c1, which becomes the stack of
some other function when c1 returns. All subsequent calls to
txByte() end up pointing into someone else's stack...at least
you aren't writing to it...heh.

just declare your array outside of c1()

MS



jose m wrote:

If I have uint8_t *gb_array and uint16_t gb_array_size
as globals declarations, and a command like this:

command void c1(){
 uint8_t array[16];
 
 ...


 gb_array = array;
 gb_array_size = 16;
 gb_array_size--;
 call ByteComm.txByte(*gb_array);
}

async event result_t ByteComm.txByteReady(bool
success){
 if (gb_array_size  0){
  gb_array++;
  gb_array_size--;
  ByteComm.txByte(*gb_array);
 }
 else
  ...
}

my question is: if c1 ends after call txByte, the
variable array in c1, will be deallocated from the
stack before de transmission ends?

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar

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

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


[Tinyos-help] Accelerometer and Mic Question

2006-03-23 Thread sacharya
Hello I am a student at Purdue University and am working with the cricket mots 
and 310 Sensorboard.  I have two questions

1.  Is there an equation for the accelerometer to convert the values from 
TinyDB into engineering units, and if there is one, what is it?

2. I am also trying to record sound data from the microphone and would like to 
know if there is NesC code to samnple the mic, and also once the data is 
sampled, is there a way to play it back in Matlab?

Thanks  

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


Re: [Tinyos-help] Accelerometer and Mic Question

2006-03-23 Thread Sankar Gorthi

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2003-March/000993.html

hope that helps,

sankar.

On Thu, 23 Mar 2006 15:41:58 -0600, [EMAIL PROTECTED] wrote:

Hello I am a student at Purdue University and am working with the  
cricket mots

and 310 Sensorboard.  I have two questions

1.  Is there an equation for the accelerometer to convert the values from
TinyDB into engineering units, and if there is one, what is it?

2. I am also trying to record sound data from the microphone and would  
like to

know if there is NesC code to samnple the mic, and also once the data is
sampled, is there a way to play it back in Matlab?

Thanks

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




--
Force is all-conquering, but its victories are short-lived - Abraham  
Lincoln

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


Re: [Tinyos-help] tinyos-2.x how is the CC2420Config interface exposed to higher layers in tinyOS-2.x

2006-03-23 Thread Avinash Sridharan
Hi Jonathan,
Where exactly can I find this interface ? under chips/cc2420 ? or
under micaz ? I just updated the CVS so not sure if I got your changes.

Thanks,
AvinashOn 3/23/06, Jonathan Hui [EMAIL PROTECTED] wrote:
I've updated the tinyos-2.x cc2420 stack to support changing oftransmission power. The 2.x method is different from 1.x in thattransmission power is specified on a per-packet basis using theCC2420Packet interface.
Note: if you are on anonymous access with sourceforge, it may take upto 24 hours to propagate the changes.--Jonathan W. Hui[EMAIL PROTECTED]
http://www.cs.berkeley.edu/~jwhui/On 3/23/06, Avinash Sridharan [EMAIL PROTECTED] wrote: Hi All, I wanted to set the power of my radio dynamically (at runtime). I figured
 out that the CC2420Config.nc provides such an interface to set the transmission power and it is implemented in CC2420ControlP.nc. However I am not able to find any of the generic interfaces (that hide the hardware
 specifics) in tinyOS-2.x that are are exposing the full functionality of CC2420Config.nc (that is the ability to set the tx power of the radios) to applications.Do I need to access the CC2420Control component directly to perform the
 above operation ?Thanks,Avinash -- Phd Dept. of Electrical Engineering University of Southern California 
http://www-scf.usc.edu/~asridhar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU
 https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
-- Phd Dept. of Electrical EngineeringUniversity of Southern Californiahttp://www-scf.usc.edu/~asridhar
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] help

2006-03-23 Thread Winston Liu
I want to install Deluge which is for air programming, but cannot make install it on TinyOs 1.1.15.Indeed, I evan cannot make Surge-Reliable successfully. Anyone can help me?Here's the information for making Surge-Reliable:$ make mica2mkdir -p build/mica2 compiling Surge to a mica2 binaryncc -o build/mica2/main.exe -Os -I../../tos/platform/mica2 -I../../tos/CC1000RadioAck -I../../tos/lib/ReliableRoute -I%T/lib/Queue -I%T/lib/Broadcast -I%T/lib/Attributes -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=125 -Wnesc-all-target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb -DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00 -DRADIO_XMIT_POWER=0xFF -DCC2420_TXPOWER=TXPOWER_MAX -DCC2420_DEF_CHANNEL=26 -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\"Surge\" -DIDENT_USER_ID=\"lj\" -DIDENT_HOSTNAME=\"DD5D8B81\"
 -DIDENT_USER_HASH=0x5340bbb6L -DIDENT_UNIX_TIME=0x44232a4fL -DIDENT_UID_HASH=0xb5a7dcf1L Surge.nc -lmSurgeM.nc: In function `SendData':SurgeM.nc:112: warning: suggest parentheses around assignment used as truth valueSurgeM.nc:124: warning: passing argument 2 of `AttrUse.getAttrValue' from incompatible pointer typeSurgeM.nc:124: warning: passing argument 3 of `AttrUse.getAttrValue' from incompatible pointer typeSurgeM.nc:125: warning: passing argument 2 of `AttrUse.getAttrValue' from incompatible pointer typeSurgeM.nc:125: warning: passing argument 3 of `AttrUse.getAttrValue' from incompatible pointer typeADCREFM.nc: In function `startGet':ADCREFM.nc:212: warning: suggest parentheses around assignment used as truth valueSurgeM.nc: At top level:SurgeM.nc:187: warning: `LightStdControl.stop' called asynchronously from `Light.dataReady'SurgeM.nc:188: warning: `TempStdControl.start' called asynchronously!
  from
 `Light.dataReady'SurgeM.nc:189: warning: `TempTimer.start' called asynchronously from `Light.dataReady'SurgeM.nc:205: warning: `TempStdControl.stop' called asynchronously from `Temp.dataReady'AttrMagM.nc:133: warning: non-atomic accesses to shared variable `bufr_data':AttrMagM.nc:150: warning: non-atomic r/w  ..  AttrMagM.nc:548: warning: non-atomic writeD:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/CC1000RadioAck/CC1000RadioIntM.nc:187: warning: non-atomic accesses to shared variable `usRSSIVal':D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/CC1000RadioAck/CC1000RadioIntM.nc:953: warning: non-atomic readD:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/CC1000RadioAck/CC1000RadioIntM.nc:183: warning: non-atomic accesses to shared variable `bTxPending':D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/CC1000RadioAck/CC1000RadioIntM.nc:454: warning:!
 p;
 non-atomic readD:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/lib/ReliableRoute/MultiHopEWMA.nc: In function `MultiHopEWMA$SendRouteTask':D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/lib/ReliableRoute/MultiHopEWMA.nc:444: warning: unused variable `sortTbl'SurgeM.nc: In function `SurgeM$TempTimer$fired':SurgeM.nc:194: warning: no return statement in function returning non-voidSurgeM.nc: In function `SurgeM$SendData':SurgeM.nc:124: warning: passing arg 2 of `SurgeM$AttrUse$getAttrValue' from incompatible pointer typeSurgeM.nc:125: warning: passing arg 2 of `SurgeM$AttrUse$getAttrValue' from incompatible pointer typeD:/tinyos/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc: In function `main':D:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: warning: `result' might be used uninitialized in this function compiled Surge to
 build/mica2/main.exe 22670 bytes in ROM 2165 bytes in RAMavr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srecavr-objcopy --output-target=ihex build/mica2/main.exe build/mica2/main.ihex writing TOS image  
	
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] tinyos-2.x how is the CC2420Config interface exposed to higher layers in tinyOS-2.x

2006-03-23 Thread Jonathan Hui
Everything cc2420 related is in tos/chips/cc2420.

--
Jonathan W. Hui
[EMAIL PROTECTED]
http://www.cs.berkeley.edu/~jwhui/


On 3/23/06, Avinash Sridharan [EMAIL PROTECTED] wrote:
 Hi Jonathan,
   Where exactly can I find this interface ? under chips/cc2420 ? or under
 micaz ? I just updated the CVS so not sure if I got your changes.

  Thanks,
  Avinash


 On 3/23/06, Jonathan Hui [EMAIL PROTECTED] wrote:
  I've updated the tinyos-2.x cc2420 stack to support changing of
  transmission power. The 2.x method is different from 1.x in that
  transmission power is specified on a per-packet basis using the
  CC2420Packet interface.
 
  Note: if you are on anonymous access with sourceforge, it may take up
  to 24 hours to propagate the changes.
 
  --
  Jonathan W. Hui
  [EMAIL PROTECTED]
  http://www.cs.berkeley.edu/~jwhui/
 
  On 3/23/06, Avinash Sridharan [EMAIL PROTECTED] wrote:
   Hi All,
 I wanted to set the power of my radio dynamically (at runtime). I
 figured
   out that the CC2420Config.nc provides such an interface to set the
   transmission power and it is implemented in CC2420ControlP.nc. However I
 am
   not able to find any of the generic interfaces (that hide the hardware
   specifics) in tinyOS-2.x that are are exposing the full functionality of
   CC2420Config.nc (that is the ability to set the tx power of the radios)
 to
   applications.
  
  Do I need to access the CC2420Control component directly to perform
 the
   above operation ?
  
Thanks,
Avinash
  
   --
   Phd Dept. of Electrical Engineering
   University of Southern California
   http://www-scf.usc.edu/~asridhar
   ___
   Tinyos-help mailing list
   Tinyos-help@Millennium.Berkeley.EDU
  
 https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
  
  
  
 



 --

 Phd Dept. of Electrical Engineering
 University of Southern California
 http://www-scf.usc.edu/~asridhar

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


Re: [Tinyos-help] help

2006-03-23 Thread Sankar Gorthi
It doesn't look like there are any errors - just warnings. Have you added  
the deluge component in SurgeReliable.nc?


If you have, just write the image to the motes. That should do it.

Sankar.

On Thu, 23 Mar 2006 17:14:56 -0600, Winston Liu [EMAIL PROTECTED]  
wrote:


I want to install Deluge which is for air programming, but cannot make  
install it on TinyOs 1.1.15.
 Indeed, I evan cannot make Surge-Reliable successfully. Anyone can help  
me?

 Here's the information for making Surge-Reliable:
 $ make mica2
mkdir -p build/mica2
compiling Surge to a mica2 binary
ncc -o build/mica2/main.exe -Os -I../../tos/platform/mica2  
-I../../tos/CC1000Rad
ioAck -I../../tos/lib/ReliableRoute -I%T/lib/Queue -I%T/lib/Broadcast  
-I%T/lib/A
ttributes -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=125  
-Wnesc-all
 -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb  
-DCC1K_DEFAULT_FREQ=
RADIO_916BAND_CHANNEL_00 -DRADIO_XMIT_POWER=0xFF  
-DCC2420_TXPOWER=TXPOWER_MAX -D
CC2420_DEF_CHANNEL=26 -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\Surge\  
-DIDENT_USE
R_ID=\lj\ -DIDENT_HOSTNAME=\DD5D8B81\ -DIDENT_USER_HASH=0x5340bbb6L  
-DIDENT_

UNIX_TIME=0x44232a4fL -DIDENT_UID_HASH=0xb5a7dcf1L Surge.nc -lm
SurgeM.nc: In function `SendData':
SurgeM.nc:112: warning: suggest parentheses around assignment used as  
truth valu

e
SurgeM.nc:124: warning: passing argument 2 of `AttrUse.getAttrValue'  
from incomp

atible pointer type
SurgeM.nc:124: warning: passing argument 3 of `AttrUse.getAttrValue'  
from incomp

atible pointer type
SurgeM.nc:125: warning: passing argument 2 of `AttrUse.getAttrValue'  
from incomp

atible pointer type
SurgeM.nc:125: warning: passing argument 3 of `AttrUse.getAttrValue'  
from incomp

atible pointer type
ADCREFM.nc: In function `startGet':
ADCREFM.nc:212: warning: suggest parentheses around assignment used as  
truth val

ue
SurgeM.nc: At top level:
SurgeM.nc:187: warning: `LightStdControl.stop' called asynchronously  
from `Light

.dataReady'
SurgeM.nc:188: warning: `TempStdControl.start' called asynchronously  
from `Light

.dataReady'
SurgeM.nc:189: warning: `TempTimer.start' called asynchronously from  
`Light.data

Ready'
SurgeM.nc:205: warning: `TempStdControl.stop' called asynchronously from  
`Temp.d

ataReady'
AttrMagM.nc:133: warning: non-atomic accesses to shared variable  
`bufr_data':

AttrMagM.nc:150: warning:   non-atomic r/w
  ..
  AttrMagM.nc:548: warning:   non-atomic write
D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/CC1000RadioAck/CC1000RadioIntM.
nc:187: warning: non-atomic accesses to shared variable `usRSSIVal':
D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/CC1000RadioAck/CC1000RadioIntM.
nc:953: warning:   non-atomic read
D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/CC1000RadioAck/CC1000RadioIntM.
nc:183: warning: non-atomic accesses to shared variable `bTxPending':
D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/CC1000RadioAck/CC1000RadioIntM.
nc:454: warning:   non-atomic read
D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/lib/ReliableRoute/MultiHopEWMA.
nc: In function `MultiHopEWMA$SendRouteTask':
D:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/lib/ReliableRoute/MultiHopEWMA.
nc:444: warning: unused variable `sortTbl'
SurgeM.nc: In function `SurgeM$TempTimer$fired':
SurgeM.nc:194: warning: no return statement in function returning  
non-void

SurgeM.nc: In function `SurgeM$SendData':
SurgeM.nc:124: warning: passing arg 2 of `SurgeM$AttrUse$getAttrValue'  
from inco

mpatible pointer type
SurgeM.nc:125: warning: passing arg 2 of `SurgeM$AttrUse$getAttrValue'  
from inco

mpatible pointer type
D:/tinyos/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc: In function  
`main':
D:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63:  
warning: `resul

t' might be used uninitialized in this function
compiled Surge to build/mica2/main.exe
   22670 bytes in ROM
2165 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe  
build/mica2/main.srec
avr-objcopy --output-target=ihex build/mica2/main.exe  
build/mica2/main.ihex

writing TOS image


-
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low  
rates.




--
Force is all-conquering, but its victories are short-lived - Abraham  
Lincoln

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


RE: [Tinyos-help] Problems with MATLAB configuration for TinyOS

2006-03-23 Thread #AMIT SATPATHY#
Title: [Tinyos-help] Problems with MATLAB configuration for TinyOS






I'll be using SerialForwarder 
just as a listen type tool for now. I just need to use MATLAB to see if the 
Oscilloscope program works with MATLAB as shown in the tutorials.

Thanks a lot. This has been giving me 
headaches for the past 2 days.

Amit.


From: Sushil Siddesh 
[mailto:[EMAIL PROTECTED]Sent: Thu 3/23/2006 7:05 
PMTo: #AMIT SATPATHY#Subject: [Tinyos-help] Problems with 
MATLAB configuration for TinyOS

Hi Amit,Just want some more information before I give 
some "help" :-)Will you be using serial forwarder to send data to the 
network or willit just be a passive listen type of a 
tool?Regards,Sushil


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


RE: [Tinyos-help] Problems with MATLAB configuration for TinyOS

2006-03-23 Thread #AMIT SATPATHY#




Hi.

I am wondering. Which december posting 
should i be looking into? December 2005? I have been looking through that and i 
cannot seem to find the relevant thread. Maybe you could point it to me. 
Thanks!

Amit.


From: Manu Gupta 
[mailto:[EMAIL PROTECTED]Sent: Thu 3/23/2006 5:47 PMTo: 
#AMIT SATPATHY#Subject: Re: [Tinyos-help] Problems with MATLAB 
configuration for TinyOS
Hi,  check out posting in december about how to configure MATLAB 
for motes n/wManu
On 3/23/06, #AMIT 
SATPATHY# [EMAIL PROTECTED] wrote: 

  
  
  I forgot to mention the 
  operating system in which my MATLAB is running in. It is running in 
  Windows XP. Also, i have been reading the .m files in TinyOS 
  for MATLAB. The language structure does not seem like its for Windows. Is it 
  written for the Linux version of MATLAB? Thanks and regards.
  
  Amit Satpathy.
  
  
  From: [EMAIL PROTECTED] on behalf of 
  #AMIT SATPATHY#Sent: Thu 3/23/2006 10:37 AMTo: tinyos-help@Millennium.Berkeley.EDUSubject: 
  [Tinyos-help] Problems with MATLAB configuration for TinyOS 
  
  
  
  
  Hi.
  
  I am currently trying to use MATLAB to 
  connect with my mote network. I have tried setting up MATLAB for TinyOS from 
  the following website - http://www.tinyos.net/tinyos-1.x/tools/matlab/doc/faq.html#setup 
  . But i have realised that there are some errors and problems with MATLAB 
  interpreting the system commands in the startup.m and defineTOSEnvironment.m 
  file. As such, i edited the codes as instructed in another website - http://www.eecs.berkeley.edu/~phoebusc/330NEST/tinyos_notes/TinyOS_matlab_setup.txt. 
  However, even after following all the instructions there, i cannot connect to 
  the serial port using the connect('[EMAIL PROTECTED]:9001') command even though my Serial Forwarder 
  is running. I have also tried running the Oscilloscope program on MATLAB and i 
  get the same unable to connect error. Could anyone tell me how am i supposed 
  to properly configure MATLAB for TinyOS? I am currently running MATLAB ver 6.1 
  Release 12.1 and TinyOS version 1.1.13.
  
  Thank you and regards.
  
  Amit Satpathy.
  ___Tinyos-help 
  mailing listTinyos-help@Millennium.Berkeley.EDU 
  https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 
  -- Luv Manu 

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


Re: [Tinyos-help] motes not receiving messages in TOSSIM

2006-03-23 Thread Philip Levis
On Thu, 2006-03-23 at 20:27 -0500, Mahesh Arumugam wrote:
 Hi,
 
 I am trying to simulate an application with TOSSIM. In my
 program, mote 0 broadcasts a message. I have defined the
 network topology as a 3x3 grid, with 0.0 bit error
 probability on all the links.
 
 When I run the simulation, 0 sends the message, but in some
 cases (e.g., seed value = 374713), none of its neighbors (1
 and 3) receive the message. I tried to see what is happening
 in the rfm_model.c file. I observed that TOSSIM is invoking
 lossy_transmit() function to send the message. However,
 before the neighbors of mote 0 invoke lossy_hears(),
 lossy_stop_transmit() is invoked and the bit is reset to
 0. So motes 1 and 3 always hear 0.
 
 If I use a different seed value in the simulation (e.g.,
 841886), 0 can successfully communicate with 1 and 3. In
 other words, the lossy_stop_transmit() is called only after
 1 and 3 invoke lossy_hears().
 
 Please reply what is the problem.

Perhaps they haven't booted yet?

Phil

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


[Tinyos-help] Deluge simulation in TOSSIM

2006-03-23 Thread Michalis Kallitsis



Hi,
Can anyonegive me a guidance about how to set 
up a simulation for Deluge in TOSSIM?
Any help would be apreciated.
Thanks,
Michael
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] motes not receiving messages in TOSSIM

2006-03-23 Thread Mahesh Arumugam

Thanks, that was the problem I had. The motes were not booted.

Mahesh.

Philip Levis wrote:

On Thu, 2006-03-23 at 20:27 -0500, Mahesh Arumugam wrote:
  

Hi,

I am trying to simulate an application with TOSSIM. In my
program, mote 0 broadcasts a message. I have defined the
network topology as a 3x3 grid, with 0.0 bit error
probability on all the links.

When I run the simulation, 0 sends the message, but in some
cases (e.g., seed value = 374713), none of its neighbors (1
and 3) receive the message. I tried to see what is happening
in the rfm_model.c file. I observed that TOSSIM is invoking
lossy_transmit() function to send the message. However,
before the neighbors of mote 0 invoke lossy_hears(),
lossy_stop_transmit() is invoked and the bit is reset to
0. So motes 1 and 3 always hear 0.

If I use a different seed value in the simulation (e.g.,
841886), 0 can successfully communicate with 1 and 3. In
other words, the lossy_stop_transmit() is called only after
1 and 3 invoke lossy_hears().

Please reply what is the problem.



Perhaps they haven't booted yet?

Phil

  



--
Mahesh (Umamaheswaran) Arumugam
Graduate Research Assistant
Computer Science and Engg   Email: arumugam @ cse.msu.edu
Michigan State University   Phone: (off) +1-517-353-4638
East Lansing MI 48824   Web: www.cse.msu.edu/~arumugam

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


[Tinyos-help] msp430-gcc

2006-03-23 Thread Deepa Mahajan
Hi,

When I make Blink, I get that it couldn'tt execute msp430-gcc. Any
thoughts? I lookd through other errors similar to this, but i can't
make Blink for mica either, I get a different error.

[EMAIL PROTECTED] /cygdrive/c/cygwin/tinyos-1.x/apps/Blink
$ make telosb
mkdir -p build/telosb
compiling Blink to a telosb binary
ncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-al
l -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge -Wl,--s
ection-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\
Blink\ -DIDENT_USER_ID=\Deepa\ -DIDENT_HOSTNAME=\Deepa\ -DIDENT_USER_HASH=
0xad5155b2L -DIDENT_UNIX_TIME=0x44236a56L -DIDENT_UID_HASH=0x48df2fccL -mdisable
-hwmul -IC:/cygwin/tinyos-1.x/tos/lib/CC2420Radio Blink.nc -lm
Couldn't execute msp430-gcc
make: *** [exe0] Error 2

[EMAIL PROTECTED] /cygdrive/c/cygwin/tinyos-1.x/apps/Blink
$ make mica

mkdir -p build/mica
compiling Blink to a mica binary
ncc -o build/mica/main.exe -Os -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM
_GROUP=0x7d -Wnesc-all -target=mica -fnesc-cfile=build/mica/app.c -board=micasb
-DIDENT_PROGRAM_NAME=\Blink\ -DIDENT_USER_ID=\Deepa\ -DIDENT_HOSTNAME=\Deep
a\ -DIDENT_USER_HASH=0xad5155b2L -DIDENT_UNIX_TIME=0x44236afbL -DIDENT_UID_HASH
=0xa05866c1L Blink.nc -lm
Couldn't execute avr-gcc
make: *** [exe0] Error 2

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