[Tinyos-help] BaseStation Mote Changing Serial Port.

2011-06-16 Thread colum walsh
Hi list,

I have one mote acting as a BaseStation, which randomly changes port
(/dev/ttyUSB0-/dev/ttyUSB1), causing SerialForwarder to stop working. Has
anyone else had this issue?

My packet size is larger than standard, could that be the cause? Or
something to do with linux drivers?

I'm using tmote sky motes, tinyos-2.1.1, and Ubuntu Lucid.


Thanks for your time,
Colum
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] BaseStation Mote Changing Serial Port.

2011-06-16 Thread Romain Bornet
Hi,

I don't think that your problem is related to your packet size but
most probably to linux drivers.

 I have one mote acting as a BaseStation, which randomly changes port 
 (/dev/ttyUSB0-/dev/ttyUSB1)
Do you mean that the port changes at runtime or between 2 executions
of SerialForwarder ?

If the port changes at runtime, I would assume that the USB link gets
shortly broken and up again and thus the driver mounts the USB-serial
converter on another ttyUSB.

There are ways to configure Linux/udev to always mount the same
hardware on the same ttyUSB port. I only have a link to a french blog
entry I could remember.
http://www.lefinnois.net/wp/index.php/2009/04/15/ttyusb0-ttyusb2-non-ttyusb1-grhh-udev/

Basically, you can force udev to mount a device to a fix port based on
its serial number.

You can retrieve the serial number of your USB converter with:
$udevadm info -a -p  $(udevadm info -q path -n /dev/ttyUSB0)

and then update your /etc/udev/rules.d accordingly.

This is only part of the solution (will always mount the serial link
on the same ttyUSB port) but it does not explain why the device gets
disconnected and connected again... Have a look at the output of dmesg
to see if your Linux host really detects disconnects...

In case of disconnection you should see something like:
[191876.912510] ftdi_sio 2-1.4.1:1.0: device disconnected

and later again a connection

[191886.215902] usb 2-1.4.1: new full speed USB device using ehci_hcd
and address 10
[191886.331193] usb 2-1.4.1: configuration #1 chosen from 1 choice
[191886.333078] ftdi_sio 2-1.4.1:1.0: FTDI USB Serial Device converter detected
...
[191886.333747] usb 2-1.4.1: FTDI USB Serial Device converter now
attached to ttyUSB0

Hope this helps,

Romain

On Thu, Jun 16, 2011 at 12:27 PM, colum walsh walsh.co...@gmail.com wrote:
 Hi list,

 I have one mote acting as a BaseStation, which randomly changes port
 (/dev/ttyUSB0-/dev/ttyUSB1), causing SerialForwarder to stop working. Has
 anyone else had this issue?

 My packet size is larger than standard, could that be the cause? Or
 something to do with linux drivers?

 I'm using tmote sky motes, tinyos-2.1.1, and Ubuntu Lucid.


 Thanks for your time,
 Colum

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

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


Re: [Tinyos-help] Differences between LPL on Iris and TelosB, Motes

2011-06-16 Thread Miklos Maroti
Hi Christian,

Please post the code you are using for the test if you can.

Best,
Miklos

On Thu, Jun 16, 2011 at 11:02 AM, Christian Haas h...@tm.uka.de wrote:
 On 06/15/2011 04:48 PM, Miklos Maroti wrote:
 Hi Horst,

 Are you using the latest version from tinyos-main? You can change the
 listen length in RF230RadioP.nc (chips/rf230) with this function:

 command uint16_t LowPowerListeningConfig.getListenLength()    {  return 5; }

 For us LPL on IRIS works perfectly fine.

 Hi all,

 perfectly fine is  not the thing i see when using Iris and LPL .)

 Even in a simple scenario with 1 sender and 1 host you will see a lot of
 packages lost(30% for me).

 We had the same thing on Micaz nodes using the the default values for
 the CCA check. When increasing the CCA check value to 1600 (~10ms CCA
 check), the package loss dropped to 1-2%.

 I will do some testing and let you guys know whether i can somehow fix it.

 Christian

 --
 Dipl. Inform. Christian Haas
 Karlsruher Institut für Technologie
 TM Prof. Dr. Zitterbart
 Raum 102, Geb. 20.50
 Engesserstraße 2 Rechts
 76128 Karlsruhe
 Germany

 Tel.: +49 721 608-48673
 Email:h...@tm.uka.de
 Jabber-ID: h...@tm.uka.de




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


[Tinyos-help] Please help me out

2011-06-16 Thread vinod kumar
Hello!
 I wanted to run MViz application on IRIS motes. Before that I wanted to
check the same over TOSSIM without actual hardware.Please tell me how to do
that.
I have found that make iris sim is working out fine and itz giving me the
output Successfully built iris TOSSIM library. Please let me know what to
do next without any hardware just with simulators to actually run the mviz
app and get the RSS values.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] MViz app

2011-06-16 Thread vinod kumar
Hello!
 I wanted to run MViz application on IRIS motes. Before that I wanted to
check the same over TOSSIM without actual hardware.Please tell me how to do
that.
I have found that make iris sim is working out fine and itz giving me the
output Successfully built iris TOSSIM library. Please let me know what to
do next without any hardware just with simulators to actually run the mviz
app and get the RSS values.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] PLease somebody help me out---Urgent

2011-06-16 Thread vinod kumar
 Hi!
I wanted to run MViz application on IRIS motes. Before that I wanted to
check the same over TOSSIM without actual hardware.Please tell me how to do
that.
I have found that make iris sim is working out fine and itz giving me the
output Successfully built iris TOSSIM library. Please let me know what to
do next without any hardware just with simulators to actually run the mviz
app and get the RSS values.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] PacketTimeStamp.isValid() mostly returns FALSE

2011-06-16 Thread Xiaohui Liu
Can anyone please give me some hint on what may be the cause? I'm stuck
here. I really appreciate your assistance.

On Wed, Jun 15, 2011 at 4:57 PM, Xiaohui Liu whu...@gmail.com wrote:

 Telosb.


 On Wed, Jun 15, 2011 at 4:54 PM, Hamid Rafiei hamid.raf...@gmail.comwrote:

 Hi,

 What is the platform you are using?





 Regards,


 Hamid Rafiei Karkvandi





 On Wed, Jun 15, 2011 at 2:36 PM, Xiaohui Liu whu...@gmail.com wrote:

 Hi everyone,

 I'm using PacketTimeStamp interface to timestamp packet transmission and
 reception, but I find isValid() returns FALSE more than 90% of the time. Can
 anyone help me understand what may go wrong? I'm timestamping in sendDone()
 and receive() event only and sending 1 packet per second. Any help is
 appreciated.
 --
 -Xiaohui Liu

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





 --
 -Xiaohui Liu




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

Re: [Tinyos-help] PacketTimeStamp.isValid() mostly returns FALSE

2011-06-16 Thread Janos Sallai
Is this the default cc2420 stack, or do you use cc2420x?

Janos

On Thu, Jun 16, 2011 at 10:49 AM, Xiaohui Liu whu...@gmail.com wrote:
 Can anyone please give me some hint on what may be the cause? I'm stuck
 here. I really appreciate your assistance.

 On Wed, Jun 15, 2011 at 4:57 PM, Xiaohui Liu whu...@gmail.com wrote:

 Telosb.

 On Wed, Jun 15, 2011 at 4:54 PM, Hamid Rafiei hamid.raf...@gmail.com
 wrote:

 Hi,

 What is the platform you are using?





 Regards,


 Hamid Rafiei Karkvandi





 On Wed, Jun 15, 2011 at 2:36 PM, Xiaohui Liu whu...@gmail.com wrote:

 Hi everyone,

 I'm using PacketTimeStamp interface to timestamp packet transmission and
 reception, but I find isValid() returns FALSE more than 90% of the time. 
 Can
 anyone help me understand what may go wrong? I'm timestamping in sendDone()
 and receive() event only and sending 1 packet per second. Any help is
 appreciated.
 --
 -Xiaohui Liu

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




 --
 -Xiaohui Liu



 --
 -Xiaohui Liu

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

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


[Tinyos-help] Graphviz not generating documentation

2011-06-16 Thread João Gonçalves
I'm trying to generate the documentation with graphviz for my platform but
at the end I get this error:

Traceback (most recent call last):
  File /usr/lib/tinyos/nesdoc/archive.py, line 278, in module
doc.writexml(ifile)
  File /usr/lib/python2.6/xml/dom/minidom.py, line 1749, in writexml
node.writexml(writer, indent, addindent, newl)
  File /usr/lib/python2.6/xml/dom/minidom.py, line 817, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
  File /usr/lib/python2.6/xml/dom/minidom.py, line 817, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
  File /usr/lib/python2.6/xml/dom/minidom.py, line 817, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
  File /usr/lib/python2.6/xml/dom/minidom.py, line 817, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
  File /usr/lib/python2.6/xml/dom/minidom.py, line 817, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
  File /usr/lib/python2.6/xml/dom/minidom.py, line 1036, in writexml
_write_data(writer, %s%s%s%(indent, self.data, newl))
  File /usr/lib/python2.6/xml/dom/minidom.py, line 303, in _write_data
writer.write(data)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 37-38:
ordinal not in range(128)
make: *** [docs_] Error 1


Does anyone know why this happens?

Thanks,

João
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] PacketTimeStamp.isValid() mostly returns FALSE

2011-06-16 Thread Xiaohui Liu
I'm using the default one, I'm not sure how to use cc2420x.

On Thu, Jun 16, 2011 at 1:50 PM, Janos Sallai sal...@isis.vanderbilt.eduwrote:

 Is this the default cc2420 stack, or do you use cc2420x?

 Janos

 On Thu, Jun 16, 2011 at 10:49 AM, Xiaohui Liu whu...@gmail.com wrote:
  Can anyone please give me some hint on what may be the cause? I'm stuck
  here. I really appreciate your assistance.
 
  On Wed, Jun 15, 2011 at 4:57 PM, Xiaohui Liu whu...@gmail.com wrote:
 
  Telosb.
 
  On Wed, Jun 15, 2011 at 4:54 PM, Hamid Rafiei hamid.raf...@gmail.com
  wrote:
 
  Hi,
 
  What is the platform you are using?
 
 
 
 
 
  Regards,
 
 
  Hamid Rafiei Karkvandi
 
 
 
 
 
  On Wed, Jun 15, 2011 at 2:36 PM, Xiaohui Liu whu...@gmail.com wrote:
 
  Hi everyone,
 
  I'm using PacketTimeStamp interface to timestamp packet transmission
 and
  reception, but I find isValid() returns FALSE more than 90% of the
 time. Can
  anyone help me understand what may go wrong? I'm timestamping in
 sendDone()
  and receive() event only and sending 1 packet per second. Any help is
  appreciated.
  --
  -Xiaohui Liu
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
 
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 
 
 
  --
  -Xiaohui Liu
 
 
 
  --
  -Xiaohui Liu
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 




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

Re: [Tinyos-help] PacketTimeStamp.isValid() mostly returns FALSE

2011-06-16 Thread Janos Sallai
Timestamping has known issues in the default cc2420 stack (telosb,
micaz, etc.) under heavy load. Try using the cc2420x stack. Compile
with make telosb cc2420x. You'll need the latest sources from google
code.

Janos

On Thu, Jun 16, 2011 at 1:34 PM, Xiaohui Liu whu...@gmail.com wrote:
 I'm using the default one, I'm not sure how to use cc2420x.

 On Thu, Jun 16, 2011 at 1:50 PM, Janos Sallai sal...@isis.vanderbilt.edu
 wrote:

 Is this the default cc2420 stack, or do you use cc2420x?

 Janos

 On Thu, Jun 16, 2011 at 10:49 AM, Xiaohui Liu whu...@gmail.com wrote:
  Can anyone please give me some hint on what may be the cause? I'm stuck
  here. I really appreciate your assistance.
 
  On Wed, Jun 15, 2011 at 4:57 PM, Xiaohui Liu whu...@gmail.com wrote:
 
  Telosb.
 
  On Wed, Jun 15, 2011 at 4:54 PM, Hamid Rafiei hamid.raf...@gmail.com
  wrote:
 
  Hi,
 
  What is the platform you are using?
 
 
 
 
 
  Regards,
 
 
  Hamid Rafiei Karkvandi
 
 
 
 
 
  On Wed, Jun 15, 2011 at 2:36 PM, Xiaohui Liu whu...@gmail.com wrote:
 
  Hi everyone,
 
  I'm using PacketTimeStamp interface to timestamp packet transmission
  and
  reception, but I find isValid() returns FALSE more than 90% of the
  time. Can
  anyone help me understand what may go wrong? I'm timestamping in
  sendDone()
  and receive() event only and sending 1 packet per second. Any help is
  appreciated.
  --
  -Xiaohui Liu
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
 
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 
 
 
  --
  -Xiaohui Liu
 
 
 
  --
  -Xiaohui Liu
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 



 --
 -Xiaohui Liu

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


[Tinyos-help] Never get an ACK on Iris motes

2011-06-16 Thread David Piotrowski
Hello,

I hope someone out there can help me with this issue because I begin to freak 
out on this. I wrote a program that makes use of Packet Acknowledgments. While 
in TosSim everything works nicely, I do never get an ACK for the packets I send 
with my real Iris motes. The packets do arrive at the other node though and 
everything is fine but the sending node never gets an ACK. I guess my code is 
ok since everything is good when using tossim. I also programmed another little 
test application to see if this was just my programs fault but the new test 
application does not receive any ACKs, too. Are Iris nodes just not capable of 
sending/receiving ACKs? Any help or suggestions are very welcome.

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


Re: [Tinyos-help] BaseStation Mote Changing Serial Port.

2011-06-16 Thread Sergio Valcarcel
Hi,

just mention that sometimes happen that one removes the USB while the serial
port is still opened, and then the driver locks it and creates a new one-

Cheers!
Sergio

On Thu, Jun 16, 2011 at 2:55 PM, colum walsh walsh.co...@gmail.com wrote:

 Hi Romain,

 the port changes while SerialForwarder is running. It takes a few hours to
 change port generally, i'll have a look at dmesg when the port changes
 again.

 SerialForwarder may cut out again, but shouldn't fail completely after
 adding the following file to /etc/udev:

  #tinyos rules
  ENV{ID_SERIAL_SHORT}==M4AP419H, SYMLINK+=BaseMote

 and pointing SerialForwarder to BaseMote:

  java net.tinyos.sf.SerialForwarder -comm serial@/dev/BaseMote:telosb

 Thanks for the help,
 Colum



 On Thu, Jun 16, 2011 at 12:31 PM, Romain Bornet bornet.r...@gmail.comwrote:

 Hi,

 I don't think that your problem is related to your packet size but
 most probably to linux drivers.

  I have one mote acting as a BaseStation, which randomly changes port
 (/dev/ttyUSB0-/dev/ttyUSB1)
 Do you mean that the port changes at runtime or between 2 executions
 of SerialForwarder ?

 If the port changes at runtime, I would assume that the USB link gets
 shortly broken and up again and thus the driver mounts the USB-serial
 converter on another ttyUSB.

 There are ways to configure Linux/udev to always mount the same
 hardware on the same ttyUSB port. I only have a link to a french blog
 entry I could remember.

 http://www.lefinnois.net/wp/index.php/2009/04/15/ttyusb0-ttyusb2-non-ttyusb1-grhh-udev/

 Basically, you can force udev to mount a device to a fix port based on
 its serial number.

 You can retrieve the serial number of your USB converter with:
 $udevadm info -a -p  $(udevadm info -q path -n /dev/ttyUSB0)

 and then update your /etc/udev/rules.d accordingly.

 This is only part of the solution (will always mount the serial link
 on the same ttyUSB port) but it does not explain why the device gets
 disconnected and connected again... Have a look at the output of dmesg
 to see if your Linux host really detects disconnects...

 In case of disconnection you should see something like:
 [191876.912510] ftdi_sio 2-1.4.1:1.0: device disconnected

 and later again a connection

 [191886.215902] usb 2-1.4.1: new full speed USB device using ehci_hcd
 and address 10
 [191886.331193] usb 2-1.4.1: configuration #1 chosen from 1 choice
 [191886.333078] ftdi_sio 2-1.4.1:1.0: FTDI USB Serial Device converter
 detected
 ...
 [191886.333747] usb 2-1.4.1: FTDI USB Serial Device converter now
 attached to ttyUSB0

 Hope this helps,

 Romain

 On Thu, Jun 16, 2011 at 12:27 PM, colum walsh walsh.co...@gmail.com
 wrote:
  Hi list,
 
  I have one mote acting as a BaseStation, which randomly changes port
  (/dev/ttyUSB0-/dev/ttyUSB1), causing SerialForwarder to stop working.
 Has
  anyone else had this issue?
 
  My packet size is larger than standard, could that be the cause? Or
  something to do with linux drivers?
 
  I'm using tmote sky motes, tinyos-2.1.1, and Ubuntu Lucid.
 
 
  Thanks for your time,
  Colum
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
 
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 



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

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

[Tinyos-help] Is the tinynode still supported?

2011-06-16 Thread Eric Decker
I'm pretty sure it is in that Shockfish looks like they are still active.

The reason for the question is they specify --strict-align in the makefile
which isn't supported on newer toolchains
so make tinynode breaks with newer toolchains.

the question is Why does tinynode need --strict-align?



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Floats on Micaz Mote

2011-06-16 Thread Matthew Jacques
Hello,

We are trying to get some averages on our base station mote and really need
it to be precise. We tried using both a float and double to store the answer
in but the program just freezes the first time it encounters and sort of
operation using a floating point number.

We looked around and couldn't find for sure if floats are supported on the
MicaZ platform.

Am I just doing something wrong in my code or can these motes not handle
floats/doubles?

Thanks,
Matthew Jacques
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help