[Tinyos-help] Send data from PC-mote

2006-02-20 Thread Alex Mason
Hi,

I am currently trying to send data from my PC to a mote.  I have a Delphi
program which is building up the data packet, calculating the CRC correctly
and then sending this data to the com port.  However, my mote doesn't appear
to be responding at all.  The idea is that the data field contains either 1,
2 or 3 which the mote will then respond to by lighting a corresponding LED.

Are there any special considerations that have to be taken into account when
sending data (via serial) to a mote connected to an MIB510 board?  I have
included some other, hopefully, relevant data below if anyone feels inclined
to help me troubleshoot!  I will keep digging, but any help/guidance would
be greatly appreciated.

Thanks in advance,

Alex.


Message structure:

struct testSendMsg  {
  uint8_t cmd;
  };

enum  {
  AM_TESTSENDMSG = 170
  };


Example data packet (as written to comport):  7E42AA810101A8107E

On receive code (uses GenericComm):

  event TOS_MsgPtr msgIn.receive(TOS_MsgPtr m)  {
struct testSendMsg *r;
struct testSendMsg *s;
TOS_MsgPtr tmp;
tmp = pBuffer;
pBuffer = m;
r = (struct testSendMsg*)tmp-data;
s = (struct testSendMsg*)buffer.data;

// put an LED on in response
if (sendBusy == FALSE)  {
  sendBusy = TRUE;
  cmd = r-cmd;
  if (cmd == 1)  {
call Leds.redOn();
call Leds.greenOff();
call Leds.yellowOff();
}
  else if (cmd == 2)  {
call Leds.redOff();
call Leds.greenOn();
call Leds.yellowOff();
}
  else  {
call Leds.redOff();
call Leds.greenOff();
call Leds.yellowOn();
}

  s-cmd = 4;

  // confirm done
  if ((call msgOut.send(0, sizeof(struct testSendMsg), buffer)) !=
SUCCESS)  {
atomic sendBusy = FALSE;
}
  } 

return m;
}

--
Alex Mason
Postgraduate Research
RFID  Wireless Sensor Networks
Liverpool John Moores University

Email: [EMAIL PROTECTED]
Phone: +447886389484 

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


[Tinyos-help] MAC in TinyOS 1.1.15 and 2.0 beta

2006-02-20 Thread Martin Gercke

Hi,

I am not quite sure about the implemented MAC in TinyOS. Especially if 
there are differences between 1.1.15 and 2.0. (I am talking about the 
standard, not additional modules(contrib))

Is CSMA-CA fully implemented?
What about acitvation/deactivation of the radio transceiver. how is this 
done?

Or is all of this done on the CC2420 (in my case TelosB)?
Any documents on this other than digging through CC2420RadioM.nc?

Thanks in advance

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


[Tinyos-help] Connect an external sensor

2006-02-20 Thread Francesco Vivi




Hi,
I'm new to TinyOS, I want to use a magnetic sensor 
(HMC 1001-1002) with amica and I need some help to begin. If someone has 
done something similar please help me. Thank you

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


[Tinyos-help] tree clustering

2006-02-20 Thread wassim znaidi
i'm a new user of tinyos and nesc and i want to implement a code fpr tree clustering please who can help me
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] Send data from PC-mote

2006-02-20 Thread Alex Mason
Fixed.  I suppose it would help if I wrote to serial as something other than
a string :)

/me wakes up

Thanks,

Alex.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tinyos-help-
 [EMAIL PROTECTED] On Behalf Of Alex Mason
 Sent: 20 February 2006 09:07
 To: tinyos-help@Millennium.Berkeley.EDU
 Subject: [Tinyos-help] Send data from PC-mote
 
 Hi,
 
 I am currently trying to send data from my PC to a mote.  I have a Delphi
 program which is building up the data packet, calculating the CRC
 correctly
 and then sending this data to the com port.  However, my mote doesn't
 appear
 to be responding at all.  The idea is that the data field contains either
 1,
 2 or 3 which the mote will then respond to by lighting a corresponding
 LED.
 
 Are there any special considerations that have to be taken into account
 when
 sending data (via serial) to a mote connected to an MIB510 board?  I have
 included some other, hopefully, relevant data below if anyone feels
 inclined
 to help me troubleshoot!  I will keep digging, but any help/guidance would
 be greatly appreciated.
 
 Thanks in advance,
 
 Alex.
 
 
 Message structure:
 
 struct testSendMsg  {
   uint8_t cmd;
   };
 
 enum  {
   AM_TESTSENDMSG = 170
   };
 
 
 Example data packet (as written to comport):  7E42AA810101A8107E
 
 On receive code (uses GenericComm):
 
   event TOS_MsgPtr msgIn.receive(TOS_MsgPtr m)  {
 struct testSendMsg *r;
 struct testSendMsg *s;
 TOS_MsgPtr tmp;
 tmp = pBuffer;
 pBuffer = m;
 r = (struct testSendMsg*)tmp-data;
 s = (struct testSendMsg*)buffer.data;
 
 // put an LED on in response
 if (sendBusy == FALSE)  {
   sendBusy = TRUE;
   cmd = r-cmd;
   if (cmd == 1)  {
 call Leds.redOn();
 call Leds.greenOff();
 call Leds.yellowOff();
 }
   else if (cmd == 2)  {
 call Leds.redOff();
 call Leds.greenOn();
 call Leds.yellowOff();
 }
   else  {
 call Leds.redOff();
 call Leds.greenOff();
 call Leds.yellowOn();
 }
 
   s-cmd = 4;
 
   // confirm done
   if ((call msgOut.send(0, sizeof(struct testSendMsg), buffer)) !=
 SUCCESS)  {
 atomic sendBusy = FALSE;
 }
   }
 
 return m;
 }
 
 --
 Alex Mason
 Postgraduate Research
 RFID  Wireless Sensor Networks
 Liverpool John Moores University
 
 Email: [EMAIL PROTECTED]
 Phone: +447886389484
 
 ___
 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] __attribute((packed)) on msp430

2006-02-20 Thread decesco
Hi,

the network types are nx_ or nw_ ?
http://nescc.sourceforge.net/networktypes/network-types.txt

thanks,

-Bill

 The msp430 requires 16-bit aligned addresses for 16-bit operations.

 In the MSP430 x1xx User's Guide, Section 1.4.5 RISC 16-bit CPU,
 Instruction Set, Memory Organization,

 Bytes are located at even or odd addresses. Words are only located at
 even addresses as shown in Figure 1-3. When using word instructions,
 only even addresses may be used. The low byte of a word is always an
 even address. The high byte is at the next odd address.

 In the MSPGCC Manual in section Byte and word issues
 http://mspgcc.sourceforge.net/manual/x214.html:

 Word operands must be located at even addresses. ... The processor's
 behaviour when a word is accessed at an odd location is poorly
 documented. In all current processors the lower bit is just silently
 ignored. The effect is, therefore, the same as specifying an address
 which is one less.

 This is why the packed attribute is very, very bad for the msp430.
 Your 32-bit args value is placed at an odd-value address with the
 packed attribute.  When given that odd address, the msp430 quietly
 converts it to the next lower even address, thus overwriting your type
 variable.

 If your structure must be 5 bytes and byte aligned, use nesC's network
 types (nx_uint8_t, nx_uint32_t, etc) and leave out the packed
 attribute.

 Cory

 On 2/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,

 I have a problem when using __attribute((packed)) for a struct under
 msp430 (telosb).
 This is the struct I have

 typedef struct{
   uint32_t interval;
 }start_args_t;

 typedef struct{
   uint32_t time;
 }set_time_args_t;

 typedef struct{
   uint8_t type;
   union{
 start_args_t startArgs;
 set_time_args_t  setTimeArgs;
   }args;
 }Cmd_t __attribute((packed)) ;

 Without the packed attribute the struct has a sizeof 6 and padding in
 this way

 type 1 byte
 0x00 padding byte
 args 4 bytes

 With the packed attibute the struct has a sizeof 5, but the variable
 type and the args starts at the same address. I mean that if I set first
 the args and then the type field, I am rewriting the LSB of the args
 field.

 If I change the struct to this one

 typedef struct{
   union{
 start_args_t startArgs;
 set_time_args_t  setTimeArgs;
   }args;
   uint8_t type;
 }Cmd_t __attribute((packed)) ;

 The packet attribute behaves well. It seems like if the odd field are
 at
 the end of the struct de packing behaves well.

 I wonder if this a compiler related bug or I am missing something.

 thanks in advance,

 -Bill

 ___
 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] TinyOS driver for MTS420CA.

2006-02-20 Thread Ravilochan G S
Hi,
I would like to use MTS420CA sensorboard on Mica2, can someone
please provide pointers for downloading the driver for MTS420CA? -- regards,Ravi

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


[Tinyos-help] [EMAIL PROTECTED]

2006-02-20 Thread Sudhanshu Chadha
HI

I install tinyos for windows but i get error of MD5 
I read in the mail archives to update the cygwin with the unix or dos filesystem
Please tell me which package to install in cygwin so that it gets updated for the unix/dos filesystem

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


[Tinyos-help] delayed execution trouble...

2006-02-20 Thread Alex Mason
Hi again,

Having gotten serial communication working, I now have a problem with
execution of a command being deferred.  As a small example for this email, I
have the following code:

  event TOS_MsgPtr msgIn.receive(TOS_MsgPtr m)  {
struct testSendMsg *r;
TOS_MsgPtr tmp;
tmp = pBuffer;
pBuffer = m;
r = (struct testSendMsg*)tmp-data;

cmd = r-cmd;
if (cmd == 1)
  call Leds.redToggle();
 
return tmp;
}

'cmd' is part of the message data field, and is set by the Delphi program
sending the message to a mote.  Hence, on sending a message, the red led
should toggle.  However, it doesn't the first time a packet is sent; instead
it waits until the second packet.  Why would this be?  

I have checked that the packet is being sent by analysing serial traffic -
also, if I remove the condition statement then the red led does toggle, so I
am a little confused...

Cheers,

--
Alex Mason
Postgraduate Research
RFID  Wireless Sensor Networks
Liverpool John Moores University

Email: [EMAIL PROTECTED]
Phone: +447886389484 

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


[Tinyos-help] building clustering tree

2006-02-20 Thread wassim znaidi
please who can help to build a clustering tree using tinyos 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] What's actually conflicting with FLASH when UART1 is used?

2006-02-20 Thread Harri Siirtola


Sorry, screwed up the attachment. I'll try to attach a jpg this time.

Harri
attachment: tos.system.UART.nc.if.jpg
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help]JTAG ICE communication failed: Inappropriate ioctl for

2006-02-20 Thread Kevin Lee



Hi Jeong Ki, 
My name is Kevin Lee from NESL lab at UCLA. 

I ran into the same problem and I was wondering 
haveyou fixed this problem?


---
Dear everyone. I have some 
problem on my JTAG.I'm using the AVR-JTAG-L from OLIMEX with MIB510 and 
MICA2 and TOS1.1.7.Actually, I've just read the tutorial on the TOS site for 
AVRICE.Do I need to do something different work for this JTAG from 
olimex?Please, give me an advice about this.I would appreciate your 
help!!Thanks.. Best regards, Jeong Ki MIN  When 
I try to do like below, I have a communication error.  $ ice-gdb 
build/mica2/main.exeAVaRICE version 2.0.20030825cvs, Aug 25 2003 
20:53:25 JTAG ICE communication failed: Inappropriate ioctl for 
deviceGNU gdb cvs-pre6.0-tinyosCopyright 2003 Free Software Foundation, 
Inc.GDB is free software, covered by the GNU General Public License, and 
youarewelcome to change it and/or distribute copies of it under 
certainconditions.Type "show copying" to see the conditions.There is 
absolutely no warranty for GDB. Type "show warranty" 
fordetails.This GDB was configured as "--host=i686-pc-cygwin 
--target=avr".../usr/local/share/avarice/gdb-avarice-script:26: Error in 
sourced commandfile:localhost:6423: Connection refused.   
Fuse information like below  $ uisp -dprog=mib510 -dserial=COM1 
-dpart=ATmega128 --rd_fusesFirmware Version: 2.1Atmel AVR ATmega128 is 
found. Fuse Low Byte = 0xffFuse High 
Byte = 0x19Fuse Extended Byte = 0xffCalibration 
Byte = 0x00 -- Read OnlyLock 
Bits = 
0xff BLB12 - 1 BLB11 - 
1 BLB02 - 1 BLB01 - 
1 LB2 - 
1 LB1 - 
1
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] estimate the distance between motes

2006-02-20 Thread Aaron Ault
I did a paper studying the ability of RSSI on MICA2's to predict  
distance between sensor motes: 600,000+ samples across 6  
environments.  You can find it here:

http://www.winmee.org/2005/papers/WiNMee_Ault.pdf

I also have a Master's thesis on the same topic, but it's quite a bit  
longer and considerably more boring :).


We found that you can't do much better than an accuracy of about +/-  
30 feet.  Time difference of arrival is a much better choice, at  
least over a short range (i.e. http://cricket.csail.mit.edu).


Aaron

On Feb 1, 2006, at 6:25 PM, Michael Schippling wrote:


There is code, someplace, that measures the time difference
between an audio ping and a radio message. I'm sorry that I
don't know where it is right now though. There's also a bunch
of simulation work using radio signal strengths, but again
I'm no use as a concrete pointer. Maybe these ideas are enough
to start a google search...

MS

Silvia wrote:

 Hello,
How can I get to estimate the distance between motes in a network??
 I need to build the table of the neighbors for each mote, but I  
don´t know how ...?

 Can anybody help me, please?
  Silvia Varela
* SENSORIA Ingeniería y Sistemas S.A *
[EMAIL PROTECTED]
Tel. +34 91 209 10 65
  
- 
---

___
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


[Tinyos-help] TOSSIM Documentation Incorrect?

2006-02-20 Thread Matt Miller
According to the TOSSIM Documentation:

*
The serial port mode (tossim-serial in the Mote Communications
field or -comm tossim-serial at the command line) interacts with
mote 0 over its serial port. Programs connecting to SerialForwarder
can read messages mote 0 sends to its serial port, and send messages
to mote 0 over its serial port.
*

I think that this may be wrong, particularly when using FramerM for
serial communication.  Looking through the code, FramerM needs
rxByteReady signaled by its ByteComm in order to receive packets. 
Using UARTM as FramerM's ByteComm, rxByteReady get signaled when
HPLUART signals get.  If tos/platform/pc/HPLUARTC.nc is used as the
HPLUART, as is the case for TOSSIM, get is never signaled in this
file, so FramerM will never receive any packets.  Sending via FramerM
doesn't seem to work either in TOSSIM.

-Matt

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


[Tinyos-help] About TOSSIM

2006-02-20 Thread Chang Li



Iknow TOSSIM is a simulator but does 
itrun along witha real mote network?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI value from skyetek M1-mini

2006-02-20 Thread Pablo Guerrero

Hi,
  I thought I did, but well, here it is again.

I am trying it with a tag 3M Hi Strength (ISO 15693), which with my 
other PCMCIA reader I receive 0xE007121F24CC, but instead, with 
Listen, I get:


FF FF 51 17 10 01 0A 00 00 C2 02 32 34 30 30 30 30 30 30 30 30
FF FF 51 17 10 01 0A 00 00 0E 03 32 34 30 30 30 30 30 30 30 30
FF FF 51 17 10 01 0A 00 00 D5 02 32 34 30 30 30 30 30 30 30 30
FF FF 51 17 10 01 0A 00 00 D1 02 32 34 30 30 30 30 30 30 30 30
FF FF 51 17 10 01 0A 00 00 1E 03 32 34 30 30 30 30 30 30 30 30

Can you give me any hints on this 'conversion'? I tried to interpret the 
bit pattern and I only got to what is in the pdf. Thanks for your help!


Pablo

Shweta Jain wrote:

Hello Pablo,

Did you send be a PDf attachment? I didnt receive it so not sure what your
analysis is. The output from Listen is raw bytes and you need to convert
them to appropriate integers of character values before you can work with
it. The message interface file does that conversion for you making it easy
to understand the output.

Shweta

On Thu, 2 Feb 2006, Pablo Guerrero wrote:


Hello Shweta,
   thanks for the hints. I am currently inspecting the code you sent, I
appreciate it. In the meantime I sent you a pdf with my analysis of what
I was receiving with the Listen tool. Because still that is what I
receive, right?

To make my scenario clearer:

First Mote:
Mica2 with Skyetek M1Mini RFID reader attached (through a basic sensor
board MTS101CA). Running 'TestSkyeReadMini2_Poll'.
Should read tags' info and put it in the radio.

Second Mote:
Mica2 attached to the programming board, running 'TOSBase'.
Should forward what receives through UART and put it in the radio and
viceversa.

PC:
Running the java 'SerialForwarder' and 'Listen' programs.

What software are you using in the first mote?

I also have an xRFID but could not use it since some libs are missing :(

Thanks

Pablo



Shweta Jain wrote:

It is quite difficult to interpret the bit pattern via Listen. The best
way to read the data sent by the motes is through a message
interface file. Like the one I generated. (Payload.java attached).
You can generate this file by running make -f jmakefile (jmakefile
attached). Finally call the functions from your class file like
in RFID.java that I wrote. You will get an error when compiling RFID.java
because I hae modified the MoteIf constructor. You can look into
MoteIf.java for a list of constructors that can be used.


Shweta

On Wed, 1 Feb 2006, Pablo Guerrero wrote:


Hi Shweta,
   I am using the Skyetek's M1 mini. Or actually, trying to. It has been
really difficult for me to get it working. Unfortunately I cannot
answer your question since I think it exceeds my knowledge about it. But
actually I thought I was one of the fewer guys who were using it.

   I was wondering if we could stay in touch and perhaps help each
other. May I ask you which software are you using with it? We bought our
skyetek M1 mini from crossbow, and their tech support provided me with
both the:

\opt\tinyos-1.x\contrib\xbow\apps\SkyeReadMini2_MICA2\TestSkyeReadMini2, and
\opt\tinyos-1.x\contrib\xbow\apps\SkyeReadMini2_MICA2\TestSkyeReadMini2_Poll

I am using the 'poll' version since our reader doesn't have buttons.
That means it keeps polling the whole time.

I can get the whole stuff working, by having a TOSBase mote attached to
a programming board and running the java app net.tinyos.tools.Listen,
however the bit pattern I get is quite weird... I don't really
understand it. Do you have any idea on how to interpret this bit
pattern? Or do you use some other application to do this?

Looking forward to help and contribute, regards,


Pablo Guerrero

Shweta Jain wrote:

Hi all,

I was wondering if anyone would know the  voltage to db conversion formula
for the RSSI value read from skyetek's M1 mini.


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




/**
 * This class is automatically generated by mig. DO NOT EDIT THIS FILE.
 * This class implements a Java interface to the 'Payload'
 * message type.
 */

package net.tinyos.rfid;

public class Payload extends net.tinyos.message.Message {

/** The default size of this message type in bytes. */
public static final int DEFAULT_MESSAGE_SIZE = 29;

/** The Active Message type associated with this message. */
public static final int AM_TYPE = -1;

/** Create a new Payload of size 29. */
public Payload() {
super(DEFAULT_MESSAGE_SIZE);
amTypeSet(AM_TYPE);
}

/** Create a new Payload of the given data_length. */
public Payload(int data_length) {
super(data_length);
amTypeSet(AM_TYPE);
}

/**
 * Create a new Payload with the given data_length
 * and base offset.
 */
public Payload(int data_length, int 

[Tinyos-help] Help requested for SimpleCmd and ReverseUart on telosb

2006-02-20 Thread Stephen Yee
Hi, I am having problems getting the SimpleCmd and ReverseUart applications on the telosb platform. I am able to get the oscilloscope application to send messages (both with the serial version and using a second mote with TOSBase). Any help would be appreciated. I have tried disabling the PowerManagement for the ReverseUart but it doesn't help. Thanks.
Regards,Stephen Yee[EMAIL PROTECTED]
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Low power listening on Telos

2006-02-20 Thread Gerrit Niezen
Hi,

I would like to know if anybody is working on implementing low power listening
on the Telos platform (or any CC2420 radio platform for that matter) ?

Referring to a post by Joe on 26 August 2004, it seems that low power listening
was disabled on the B-MAC protocol for the Telos platform. Does anybody know
why? Too difficult to implement, or is there just no interest to develop this?

Regards,

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


[Tinyos-help] preamble problem

2006-02-20 Thread Arthas
Hi

   I have a question on b-mac protocol that wasn't answered. 
   I want to implement LPL on micaz.I know the preamble length must match the 
check interval, but the preamble lenght controlled by cc2420 register 
MDMCTRL0.PREAMBL which control the number of preamble bytes is only 4 bits

 (#define CC2420_MDMCTRL0_PREAMBL  0   // 4 bits (0..3): Preamble length)

The cc2420 datasheet describe

PREAMBLE_LENGTH [3:0]
The number of preamble bytes (2 zero-symbols) to be sent in TX mode prior to 
the SYNCWORD, encoded in steps of 2. The reset value of 2 is compliant with 
IEEE 802.15.4, since the 4th zero byte is included in the SYNCWORD.
0 : 1 leading zero bytes (not recommended) 1 : 2 leading zero bytes (not 
recommended) 2 : 3 leading zero bytes (IEEE 802.15.4 compliant) 3 : 4 leading 
zero bytes … 15 : 16 leading zero bytes

It seemed that the preamble length would be 16 bytes at most.
I think it can't match the check interval which can reach as much as 1600ms at 
most.

I'm really confused. Can you give me some help?



Thank you!






Arthas
[EMAIL PROTECTED]
  2006-02-06

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


[Tinyos-help] Quality Medicine Available MvJM

2006-02-20 Thread Martin Mcclendon

Loking for quality meds at affordable
price?
We have widest range of meds at very
competitive price.
Money baack guaranteesss...

http://au.geocities.com/cristian67325ari61346/


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


[Tinyos-help] Low power listening on Telos

2006-02-20 Thread Gerrit Niezen

Hi,

I would like to know if anybody is working on implementing low power listening
on the Telos platform (or any CC2420 radio platform for that matter) ?

Referring to a post by Joe on 26 August 2004, it seems that low power listening
was disabled on the B-MAC protocol for the Telos platform. Does anybody know
why? Too difficult to implement, or is there just no interest to develop this?

Regards,

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


Re: [Tinyos-help] Position of the motes in TinyViz

2006-02-20 Thread Vinayak Naik
Silvia,

I did not understand what do you mean by account.

I assume that you meant to ask - how to make a simulation react to
node locations? I have not used TinyViz GUI for simulations. However,
I have used command-line tython-based simulations. You can get and set
locations of motes in tython at run-time. You can find commands at
http://www.tinyos.net/tinyos-1.x/doc/tython/manual.html

- Vinayak

On 2/8/06, Silvia [EMAIL PROTECTED] wrote:



 Hello,

 I´m simulating my network with TinyViz, but I don´t know how can I do that
 the simulation have account the position of the motes on the display.



 Can anybody help me?



 Thank you in advance.








 Silvia Varela

 SENSORIA Ingeniería y Sistemas S.A

 [EMAIL PROTECTED]

 Tel. +34 91 209 10 65


 ___
 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] Problems with mate (wrong Version 49.0)

2006-02-20 Thread Hoell, Christian (EXT)
Hi, 
 
I'm just trying to get started with mate. 
I've installed the current Version via rpm provided on the mate
Homepage. 
When I'm going to do a make in the tinyos/script folder the whole thing
is interrupted with following: 

$ make
javac tree/*.java
tree/Statement.java:35: cannot access net.tinyos.script.TreeNode
bad class file:
Z:\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\script\TreeNode.class
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
public class Statement implements TreeNode {
  ^
1 error
make: *** [all] Error 1

Could anyone help me please?

Greetings 

Christian
 




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


[Tinyos-help] eeprom.h

2006-02-20 Thread Surgent
Title: Message



When I compile a custom app I get the following 
errors:

RemoteMonitor2M.nc: In function 
`writeFloatToEEPROM':
RemoteMonitor2M.nc:230: implicit 
declaration of function `eeprom_write_block'
RemoteMonitor2M.nc:231: implicit 
declaration of function `eeprom_is_ready'


which suggests it cannot find 
/usr/local/avr/include/avr/eeprom.h

I haveupdated to avr-gcc-3.4.1 and 
avr-libc-1.0.5, butam still getting the error.
I have 
alsotried explicitly includingthe file eeprom.h using #include 
avr/eeprom.h, but this also fails.

Is there some way I 
can fix this configuration problem?

Thanks



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


Re: [Tinyos-help] RSSI value from skyetek M1-mini

2006-02-20 Thread Shweta Jain
Let me answer this question myself

There is a pin to measure RSSI on Skyetek's reader but it does not do
anything because it is connected to a No connect pin on the RFID
transceiver.

So if anyone is using the Crossbow libraries for SkyetekMini, they might
as well remove that part of the code that claims to measure RSSI.

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


[Tinyos-help] preamble length in protocol

2006-02-20 Thread Arthas
Hi

   I have a question on b-mac protocol.
   In b-mac the preamble length must match the check interval, but the preamble 
lenght controled by cc2420 register MDMCTRL0.PREAMBL is only 4 bits

 (#define CC2420_MDMCTRL0_PREAMBL  0   // 4 bits (0..3): Preamble length)
I think it can't match the check interval which can reach as much as 1600ms at 
best.

I'm really confused. Can you give me some help!



Thank you!



Happy Spring Festival!


Arthas
[EMAIL PROTECTED]
  2006-01-30

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


[Tinyos-help] Invalid serial port error.

2006-02-20 Thread Ravilochan G S

 Hello,
I have been trying to connect MIB510 programming to my laptop using a
mobile port replicator as my laptop does not have a 9pin serial port. When I
try to run the java program - TinyDBMain, I get the follwing error message -

 [EMAIL PROTECTED]:57600 died - exiting(java.io.IOException: Invalid ports: 
Known
serial ports:
 - COM3
 - COM4
   Can someone please let me know the file to change in order to connect to
COM3 or COM4 instead of COM1?

Thanks,
Ravilochan
   

--
Open WebMail Project (http://openwebmail.org)

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


[Tinyos-help] please help me about this Tiny OS problem....it would be a great help..thankyou

2006-02-20 Thread Swati Gupta
Hello,
This is Swati from DA-IICT,
i am working on the Mica motes in the Crossbow kit and am facing an error in uploading the program in the mote
I would like to know how to reset the Fuse High Byte which is coming as set to 0xd8
i am also getting a flash error like this


uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff --eraseAtmel AVR ATmega128 is found.Erasing device ...Reinitializing device Atmel AVR ATmega128 is found.
pulsepulseFuse High Byte set to 0xd8Fuse Extended Byte set to 0xff sleep 1uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff --
upload if=build/mica2/main.srec.outAtmel AVR ATmega128 is found.Uploading: flashpulseFuse High Byte set to 0xd8Fuse Extended Byte set to 0xffsleep 1
uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff --verify if=build/mica2/main.srec.outAtmel AVR ATmega128 is found.Verifying: flashflash error at address 0x0: file=0x0c, mem=0xff
flash error at address 0x1: file=0x94, mem=0xffflash error at address 0x2: file=0xb5, mem=0xffflash error at address 0x3: file=0x01, mem=0xff flash error at address 0x4: file=0x0c, mem=0xff
flash error at address 0x5: file=0x94, mem=0xffflash error at address 0x6: file=0xd2, mem=0xffflash error at address 0x7: file=0x01, mem=0xff 
Can you please guide me why am i getting the highlighted error?
It would be of tremendous help to me
Thankyou
Regards,Swati[EMAIL PROTECTED] 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] changing sampling rate

2006-02-20 Thread Mutaz Shukair
Dear SirI am a gradute stuedent at Wichita State, and I am learning the NesC, I am trying to change the sampling rate in the sense application and also I am trying to change the type of the sensor that I am using (i.e. to change the channel)could you please help me in this issue or give me a hint where to get such info  your help is highly appreciatedMutaz
		Relax. Yahoo! Mail 
virus scanning helps detect nasty viruses!___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] help

2006-02-20 Thread Martin Garcia



During installation on a Windows 98 laptop I get lots of these warnings:

'cc1: warning: `fscanf' attribute directive ignored'

Also get these later when making an application that builds without a
problem on a Windows 2000 system:   'MIB510=/dev/ttyS1 make install.1 mica2'

I've seen this mentioned elsewhere on the list but haven't seen a 
resolution.


Can anyone help?


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


[Tinyos-help] (Novice) Java error

2006-02-20 Thread Cicely Amaral



Please tell me: did you solve that problem? I am 
running into it now. Thanks for help.
Amaral
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Programmer not responding error

2006-02-20 Thread John Stone

On Windows:

After a clean install of 1.1.0, the MIB510 worked as expected. I left 
everything

connected.

Then did the TOS specific Cygwin upgrade in preparation for loading 
1.1.14 (and the nesc
upgrade). Rebooted and tried the make command again, with essentially 
the same results Affan

reports. It hangs.

Any help appreciated.

--John Stone

Michael Schippling wrote:


Anything you've changed since it all worked? upgrade, etc?

No other programs trying to get to the serial port, modem, etal?

Check that darn serial switch is OFF on the MIB, but I don't think
this affects the programming cycle.

Wiggle the wires...

Reboot? If it's Windows, it's the only way...
I have been told that later version of TOS (1.1.14 at least)
can hang the serial port if you don't use /dev/ttyN from the
start.

If you have a serial breakout box, see if there are any signals
actually on the wire. Can do this with a scope too.

Try to connect to some other serial device using hyperterm or
whatever terminal program you have.

MS





Affan Syed wrote:


Hello,
I seem to be getting this very basic programmer not responding error. I
have searched the mailng list for the solution but most of the issues
discussed have been b/c of a USB-serial conversion for the mib510
programming board. I have checked that the board is getting the power,
and even changed the programmer. It seems as if the issue might be with
the serial port, but I have used the same system earlier for programming
the nodes.
Here are the diagnostics that I tried:

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/dtest

$ make mica2 reinstall
installing mica2 binary
uisp -dprog=mib510 -dserial=/dev/ttyS0 -dpart=ATmega128 --wr_fuse_e=ff
--erase

Programmer is not responding.

make: *** [reinstall] Error 2

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/dtest
$ uisp -dprog=mib510 -dserial=/dev/ttyS0 -dpart=ATmega128 --wr_fuse_e=ff
Programmer is not responding.

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/dtest
$ uisp -dprog=mib510 -dserial=/dev/ttyS0 -dpart=ATmega128 --rd_fuse
Programmer is not responding.

Any clues on what might be the issue? Or how to further investigate this
issue.
Thankyou.
Best Regards,
Affan Syed.


___
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


[Tinyos-help] Fedora Core 4 TinyDB Java compile Error

2006-02-20 Thread Tom Kobialka

Hi,
I've successfully installed TinyOS 1.1.0 by following the instructions 
listed on http://www.tinyos.net/tinyos-1.x/doc/install.html#linux. I've 
know come to the stage where I'd like to install TinyDB. I've downloaded 
the tinydb rpm from 
http://www.tinyos.net/dist-1.1.0/tinyos/linux/task-tinydb-1.1.0-1.noarch.rpm; 
however when I attempt to install it I get the following error:


[EMAIL PROTECTED] Desktop]# rpm --install --force 
task-tinydb-1.1.0-1.noarch.rpm

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net
make[1]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos
make[2]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/util'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/util
make[2]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/util'
make[2]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/tools'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/tools
make[2]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/tools'
make[2]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/message'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/message
make[2]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/message'
make[2]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf
make[3]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf/old'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf/old
make[3]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf/old'
make[2]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sf'
make[2]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matlab'
You need to install matlab to use this package. Please include 
MATLAB_DIR/java/jar/jmi.jar to your classpath, then run make matlab
make[2]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matlab'
make[2]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim
(cd msg; make)
make[3]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/msg'

make[3]: Nothing to be done for `all'.
make[3]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/msg'
make[3]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/event'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/event
make[3]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/event'
make[3]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/plugins'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/plugins
make[3]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/plugins'
make[3]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/packet'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/packet
make[3]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/packet'
make[3]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/lossy'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/lossy
make[3]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim/lossy'

Creating tinyviz.jar...
(cd ../../..; jar cmf net/tinyos/sim/tinyviz.manifest 
net/tinyos/sim/tinyviz-tmp.jar net/tinyos/sim/*.class net/tinyos/sim/ui 
net/tinyos/sim/plugins/*.class net/tinyos/sim/plugins/plugins.list 
net/tinyos/sim/event/*.class net/tinyos/sim/packet/*.class 
net/tinyos/sim/msg/*.class net/tinyos/sf/*.class net/tinyos/util/*.class 
net/tinyos/packet/*.class net/tinyos/message/*.class)

rm -rf jarbuild-tmp
mkdir jarbuild-tmp
(cd jarbuild-tmp; jar xf ../tinyviz-tmp.jar; jar xf 
../../../../jars/oalnf.jar; rm -rf META-INF; jar cmf ../tinyviz.manifest 
../tinyviz.jar .)

rm -rf tinyviz-tmp.jar jarbuild-tmp
make[2]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/sim'
make[2]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox
make[3]: Entering directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox/tools'

... /usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox/tools
make[3]: Leaving directory 
`/usr/local/share/tinyOS/tinyos-1.x/tools/java/net/tinyos/matchbox/tools'
make[2]: Leaving directory 

Re: [Tinyos-help] Programmer not responding error

2006-02-20 Thread John Stone




After the Cygwin update, I managed to track down that uisp was
apparently opening the port
but was unable to write to it (why? permissions?). Your mention of
/dev/ttyS0 get me to
wondering why there is no /dev device directory in the distribution.

Following the procedure given at:

Cygwin_project

and invoking the .bat and .sh script, I was able to then specify

 make mica2 install mib512,/dev/ttyS0

and get it to work. The perms were crw-rw-rw-  ttyS0.

First I upgraded to 1.1.8, which I have been using in my labs for a
while and I knew
how it worked ... and it did.

Then upgraded nesc and TOS to 1.1.14 and it's still working (although I
did have to
 fix the avr.rules to use environment variables as opposed to the
command line spec
 for the MIB510).

Did I just get lucky, or is this likely to be the real answer to going
above 1.1.10?

Thanks

--John Stone [EMAIL PROTECTED]

Michael Schippling wrote:
I think
we should all just face the fact that UISP serial port access
  
doesn't work, or work reliably, under the cygwin update. I thought
  
this update took place years ago (since I try not to use any version
  
of anything that is less than 5 years old...), but it's only recently
  
that I've seen questions and complaints flooding in to this list.
  
  
Xbow's solution was to replace COM1 with /dev/ttyS0 in the port
  
specification, but that seems to have minimal effect. Didn't work
  
for me in other words.
  
  
My solution was to back out the cygwin update and level off at TOS
1.1.10,
  
but I have also been able to compile later TOS code under my old env,
  
seemingly successfully.
  
  
I wonder if someone who knows something could tell us WHY the cygwin
  
update is necessary for post .10 TOS versions?
  
  
MS
  
  
  
John Stone wrote:
  
  On Windows:


After a clean install of 1.1.0, the MIB510 worked as expected. I left
everything

connected.


Then did the TOS specific Cygwin upgrade in preparation for loading
1.1.14 (and the nesc

upgrade). Rebooted and tried the make command again, with essentially
the same results Affan

reports. It hangs.


Any help appreciated.


--John Stone


Michael Schippling wrote:


Anything you've changed since it all
worked? upgrade, etc?
  
  
No other programs trying to get to the serial port, modem, etal?
  
  
Check that darn serial switch is OFF on the MIB, but I don't think
  
this affects the programming cycle.
  
  
Wiggle the wires...
  
  
Reboot? If it's Windows, it's the only way...
  
I have been told that later version of TOS (1.1.14 at least)
  
can hang the serial port if you don't use /dev/ttyN from the
  
start.
  
  
If you have a serial breakout box, see if there are any signals
  
actually on the wire. Can do this with a scope too.
  
  
Try to connect to some other serial device using hyperterm or
  
whatever terminal program you have.
  
  
MS
  
  
  
  
  
  
Affan Syed wrote:
  
  
  Hello,

I seem to be getting this very basic programmer not responding error. I

have searched the mailng list for the solution but most of the issues

discussed have been b/c of a USB-serial conversion for the mib510

programming board. I have checked that the board is getting the power,

and even changed the programmer. It seems as if the issue might be with

the serial port, but I have used the same system earlier for
programming

the nodes.

Here are the diagnostics that I tried:


[EMAIL PROTECTED] /opt/tinyos-1.x/apps/dtest


$ make mica2 reinstall

 installing mica2 binary

uisp -dprog=mib510 -dserial=/dev/ttyS0 -dpart=ATmega128 --wr_fuse_e=ff

--erase


Programmer is not responding.


make: *** [reinstall] Error 2


[EMAIL PROTECTED] /opt/tinyos-1.x/apps/dtest

$ uisp -dprog=mib510 -dserial=/dev/ttyS0 -dpart=ATmega128
--wr_fuse_e=ff

Programmer is not responding.


[EMAIL PROTECTED] /opt/tinyos-1.x/apps/dtest

$ uisp -dprog=mib510 -dserial=/dev/ttyS0 -dpart=ATmega128 --rd_fuse

Programmer is not responding.


Any clues on what might be the issue? Or how to further investigate
this

issue.

Thankyou.

Best Regards,

Affan Syed.



___

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] Micaz - the maximum payload of a radio package?

2006-02-20 Thread Jeongyeup Paek

Hi,

I don't think you are changing the AM.h file correctly.

Rather than changing the AM.h file,
leave it as it is and try

$ make micaz MSG_SIZE=50

instead of make micaz

For example,
$ make micaz install.1 mib510,/dev/ttyS0 MSG_SIZE=50
instead of
$ make micaz install.1 mib510,/dev/ttyS0

Here, 50 is the TOSH_DATA_LENGTH that you want.

Thanks.

Lei Tang wrote:

Hi, all,

I'm working on MICAz and MIB510 to find out the maximum payload (user's 
data) of a package. I found the parameter, TOSH_DATA_LENGTH, in the file 
of 'AM.h' and the default is 29. I changed it into some larger values, 
and then made a package in my code complying to the size. But, it doen't 
work very well.


1. When TOSH_DATA_LENGTH is less than or equal to 36, data are sent out 
correctly.
2. When it's 37, or 38, the 37th and/or 38th bytes are not correct and 
fixed to 0x26, 0x03, though other bits look fine.

3. When it reaches 39 or more, no package can be even sent out.

Also, no matter what value I change the data size to, the compiled file, 
'app.c', always shows that the size is 29. See the following:


typedef struct TOS_Msg {


  int8_t data[29];


} TOS_Msg;

I was told that Zigbee protocol agrees with a payload ranging from 8 to 
127. Anybody know how to change the maximum payload size and what value 
it can reach?


Thanks!
Best,
Lei




___
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] CC1000 Change Frequency

2006-02-20 Thread David Moss
Title: Message



Anybody have any 
component/module that will change the frequency of the CC1000 radio 
on-the-fly?

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


Re: [Tinyos-help] CC1000 Change Frequency

2006-02-20 Thread Joe Polastre
Interface CC1000Control:

  /**
   * Tune the radio to a given frequency. Since the CC1000 uses a digital
   * frequency synthesizer, it cannot tune to just an arbitrary frequency.
   * This routine will determine the closest achievable channel, compute
   * the necessary parameters and tune the radio.
   *
   * @param The desired channel frequency, in Hz.
   *
   * @return The actual computed channel frequency, in Hz.  A return value
   * of '0' indicates that no frequency was computed and the radio was not
   * tuned.
   */

  command uint32_t TuneManual(uint32_t DesiredFreq);


On 2/20/06, David Moss [EMAIL PROTECTED] wrote:

 Anybody have any component/module that will change the frequency of the
 CC1000 radio on-the-fly?

 -david
 ___
 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] Telos for Java

2006-02-20 Thread Joe Polastre
--target=telos in the Makefile when running mig/ncg

-Joe

On 2/5/06, Chang Li [EMAIL PROTECTED] wrote:

 Current default make of Java in TinyOS within cygwin is micaz platform. How
 can I modify files to generate Java compiled library for Telos platform as
 default make?

 ___
 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] Help with simulation - URGENT!!!

2006-02-20 Thread Vinayak Naik
You are getting all of debug messags. You can set environment variable dbg to filter debug messages, e.g. export dbg=usr1 Type main.exe -h to see options.- Vinayak 
On 2/8/06, Renato Bibiano [EMAIL PROTECTED] wrote:
Can someone tell me what's happenng in this simulation?
Thanks
Renato

___Tinyos-help mailing listTinyos-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] Help needed in driver setup for MTS420CA sensorboard.

2006-02-20 Thread Ravilochan G S
Hello Everybody,
 I am trying to use the MTS420CA sensorboard on Mica2
motes. I have changed the directory setting in the makefile to point to
the directory mts400 in the sensorboard directory. I think I need to
include the attribute - AttrHumidity in TinyDBAttr.nc file in the
tos\lib\TinyDB directory. But, I am not sure whether I will have to
include it specifically for the MTS420CA sensor board. Can someone help
me?-- regards,ravi
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Stargate power supply etc.

2006-02-20 Thread Liangping Ma
There seem to be several types of Li-Ion batteres.
Does anyone know what type of Li-Ion batteres I need
to use for a Stargate board? If possible, can you
please also give me the part number and a web link?

Also, I did not buy the kits. I only have a stargate
board, a daughter board, a power supply. I do not have
the null modem cable that goes with the kits. But I
bought a 9DBF/9DBF cable and got a null modem
converter. I hope this will work as a null modem
cable. Now with this cable, I cannot see the output
boot prompt message from the Hyper Terminal after the
two boards are powered up. Can someone tell me what
might be the cause of the problem?

Thanks in advance.

- Liangping



__
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] please help me about this Tiny OS problem....it would be a great help..thankyou

2006-02-20 Thread Rahul Sawant
Swati

which programming board r u using mib500 or mib510, and what version of tiny os have u installed

if it is mib510 then the problem is as highlighted in green

Rahul Sawant
On 2/16/06, Swati Gupta [EMAIL PROTECTED] wrote:

Hello,
This is Swati from DA-IICT,
i am working on the Mica motes in the Crossbow kit and am facing an error in uploading the program in the mote
I would like to know how to reset the Fuse High Byte which is coming as set to 0xd8
i am also getting a flash error like this


uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff --eraseAtmel AVR ATmega128 is found.Erasing device ...
Reinitializing device Atmel AVR ATmega128 is found. pulsepulseFuse High Byte set to 0xd8Fuse Extended Byte set to 0xff
sleep 1uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff -- upload if=build/mica2/main.srec.outAtmel AVR ATmega128 is found.Uploading: flash
pulseFuse High Byte set to 0xd8Fuse Extended Byte set to 0xffsleep 1 uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff --verify if=build/mica2/main.srec.out
Atmel AVR ATmega128 is found.Verifying: flashflash error at address 0x0: file=0x0c, mem=0xff flash error at address 0x1: file=0x94, mem=0xffflash error at address 0x2: file=0xb5, mem=0xff
flash error at address 0x3: file=0x01, mem=0xffflash error at address 0x4: file=0x0c, mem=0xff flash error at address 0x5: file=0x94, mem=0xffflash error at address 0x6: file=0xd2, mem=0xff
flash error at address 0x7: file=0x01, mem=0xff 
Can you please guide me why am i getting the highlighted error?
It would be of tremendous help to me
Thankyou
Regards,Swati[EMAIL PROTECTED] ___
Tinyos-help mailing listTinyos-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] Can some one give me these values

2006-02-20 Thread Researcher
Thankyou,
I did look this up, but if this is to be believed then the spec sheets
from cross bow saying sleep mode current  15uA is hughely wrong!!!
http://www.xbow.com/Products/Product_pdf_files/Wireless_pdf/MICA2_Datasheet.pdf

Any comments on these?

Thanks.


--- Gregory A. Moore [EMAIL PROTECTED] wrote:

 Hey there A,
 
 If you go to:
 
 http://www.eecs.harvard.edu/~shnayder/ptossim/mica2bench/summary.html
 
 you will find a nice printout of the power draws for each function.
 
 Hope this helps,
 
 Greg
 
 
 Researcher [EMAIL PROTECTED] wrote:
 
  Hello,
  I couldnot find the exact power draws (in their manuals) of the
  stargate and mica 2 motes for the active, idle, deep sleep and off
  states. Can some one help me out over here?
 
  thankyou.
 
  -A
 
  __
  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
 
 
 
 
 -- 
 Gregory Moore
 [EMAIL PROTECTED]
 
 


cheers,
-A

__
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


[Tinyos-help] Generating TOS message packets externally

2006-02-20 Thread Rick


Hello!

I'm trying to generate TOS packets and send them to a TelosB. I *think*
I've got the Telos programmed to accept messages - I'm sending them from
the Telos OK.

Now, what goes in the packet that's sent? I've got the type field to match
the declaration on the Telos, but I'm not sure what the address field should
be. I've tried TOS_UART_ADDR (0x007e, 0x7d 0x5e 0x00 in byte stream)
and I've tried TOS_BCAST_ADDR (0x) and neither of them work.

Any suggestions?

Thanks,

Rick
___
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.0 and TOSSIM

2006-02-20 Thread Philip Levis

On Feb 16, 2006, at 11:24 PM, Martin Gercke wrote:


Hi,

any plans for TOSSIM supporting telosb yet?
As I've been working with TinyOS 1.1.14 with TOSSIM-beta I am  
wondering if this will be up any time soon?

Is there any page showing who is working on what?
Because switching to TinyOS 2.0 beta and then having to wait 2  
months for telosb support for TOSSIM ... would be a little too much  
struggle.
Then I would just wait the time til TOSSIM supports telosb and  
switch to the new version then.




I don't have any plans to support telosb. Doing so basically involves  
writing support for the MSP430. It's definitely something which if  
someone did I'd be happy to add to the tree.


Phil

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


Re: [Tinyos-help] TOSSIM Documentation Incorrect?

2006-02-20 Thread Philip Levis

On Feb 4, 2006, at 3:40 PM, Matt Miller wrote:


According to the TOSSIM Documentation:

*
The serial port mode (tossim-serial in the Mote Communications
field or -comm tossim-serial at the command line) interacts with
mote 0 over its serial port. Programs connecting to SerialForwarder
can read messages mote 0 sends to its serial port, and send messages
to mote 0 over its serial port.
*


The serial port support does not go through FramerM. Take a look at  
external_comm.c: when it receives a UART packet it directly signals  
the packet receive handler.


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