[Tinyos-help] problem when using tkn154 to send data between two end device

2011-11-03 Thread Ngọc Ẩn
Hi,
I am using the mac tkn154 to send data between two end devices but they
still don't work. I use one node as a coordinator and two nodes as devices.
After the two devices has successfully associated to the coordinator, they
start to send data directly to each other using the MCPS_DATA.request with
the address that coordinator has assigned. However, they don't work at all.
Can you tell me if the interface MCPS_DATA can send data directly between
two end device ?

---
Lam Ngoc An
Email: ngocan1...@gmail.com
Phone: 01696831154
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Arch Linux

2011-11-03 Thread Magnus Morton
Hi,

Does anyone have any experience building and using the TinyOS toolchain on
Arch Linux, particularly with telosb?

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

[Tinyos-help] Include Group ID in packet (Telosb - TmoteSky)

2011-11-03 Thread Jorge R. Beingolea G.

Hi All,

Could please help me with this problem?

I need separate the Networks in groups, and discovers what in structure 
of the package one has 1 byte for indicate group id (*Group ID* (00) (1 
byte) : indicated that not using any group ID) , however, do not know how.


when compiling the oscilloscope application, is used the following command:

make telosb install,1

and to determine the group in frame?

In Makedefaults, edit the following line:

DEFAULT_LOCAL_GROUP

thinking that this would be the case, however, did not notice any change 
in the frame!...


Can anyone help me with this problem?


Jorge Beingolea

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

Re: [Tinyos-help] hardware and software ack in CC2420

2011-11-03 Thread Sergio Gonzalez
Hi Napoleon,

When working in the HW mode, the transceiver automatically issues an ACK 
upon receiving a data packet from the MAC layer. A local notification is 
also sent to the system to let it know that there is a packet ready for 
reading, but for some obscure reason the packet is not always delivered 
to higher layers.

To solve this issue, software ACKs can be enabled and the system then 
takes responsibility of issuing the ACK after the packet has been 
delivered to higher layers, thus making the process more reliable (but 
it's not prefect either). Note that using the SW ACK option slows down 
the overall data transfer process and consequently affects throughput.

Sergio

> Hi,
>I am reading the code of CC2420.
>I do not understand the difference between hardware and software ack.  
> And also I am wondering which part in CC2420 responsible for generating ack 
> frame.
>   Thank you.
>   
>   
>  Napoleon.
> 

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


Re: [Tinyos-help] Arch Linux

2011-11-03 Thread Enrico Treu
As long as you have a working developer environment (compiler, parser and libs) 
you should be able to build from the repository.
This way should work for any distribution.



Magnus Morton  schrieb:

Hi,


Does anyone have any experience building and using the TinyOS toolchain on Arch 
Linux, particularly with telosb?


Many thanks,

Magnus

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

Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- URGENT

2011-11-03 Thread Michael Schippling
ahha

I guess you are using a network base-station/programming adapter.
I'm afraid you'll have to find documentation for that adapter.
If you send the name and number of that beast maybe someone
will know how to use it correctly. I only use serial or USB
devices.

It will probably boil down to figuring out the network address
and port number to use with the -comm argument. I notice that
the value you sent: "network@192.168.**.***:10002" has those
wild-card *'s which is probably not correct. 192.168... is
usually a locally routed net, so that part could be right.
Presuming that you used it for programming you should have
the right IP address someplace, I just don't know about
the :port #.

MS

Modi, Jenis Ashokkumar wrote:
> Hi Michael,
> 
> Thanks for the reply. I have installed both my motes using RJ 45(or say using 
> IP address) cable only. I cannot use the Serial cable connection to my motes 
> as it can be just connected using RJ 45 cable. I am confused about the below 
> lines which is there on 
> http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder#BaseStation_and_net.tinyos.tools.Listen
>  . which says that,
> "BaseStation is receiving your BlinkToRadio packets and sending them to the 
> serial port, so if it is plugged into a PC we can view these packets. The 
> Java tool Listen is a basic packet sniffer: it prints out the binary contents 
> of any packet it hears."
> 
> So, my question is that, "is it necessary for me to have my mote connected to 
> PC (via serial com port) ? or Is there any mechanism via which I can sniff 
> this packets as I am using RJ 45 cable to connect to my motes? I don't have 
> serial port connection to my motes. "
> 
> Waiting for your kind reply. 
> 
> Thanks & Regards,
> Jenis
> 
> -Original Message-
> From: Michael Schippling [mailto:sc...@santafe.edu] 
> Sent: Wednesday, November 02, 2011 9:08 AM
> To: Modi, Jenis Ashokkumar
> Cc: tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- 
> URGENT
> 
> It's a little unclear, but I'm going to assume that your point 2 means
> that you have installed Basestation on the mica2 that is plugged into
> the host computer. And further that you are seeing leds blink as one
> would hope...
> 
> Then, the error you are getting indicates that Listen is expecting to
> connect to a network port, usually the SerialForwarder. This is the
> default behavior, but I always recommend just forgetting about SF and
> going direct, as it were. To connect Listen to the actual input port
> you need to set use something like "-comm serial@COM1:mica2" where
> COM1 is the I/O port your mica2 is plugged into. You can also
> set the same string in a MOTECOM environment variable and not have
> to bother with it on the command line.
> 
> Probably searching for MOTECOM will turn up some better advice.
> 
> MS
> 
> 
> Modi, Jenis Ashokkumar wrote:
>>
>> Hi All,
>>
>> Could you please help me for this part? I want to run Listen
>> application and want to see the packet it sees. These are the steps
>> which I am following.
>>
>> This is what I did in steps. 1. Install mica2 motes on
>> apps/tutorials/BlinkToRadio. (on 2 different motes) 2. Install mica2
>> mote (one of the mote where BlinkToRadio is installed) on
>> apps/Basestation application. 3. java net.tinyos.tools.Listen -comm
>> network@192.168.**.***:10002
>>
>> This throws me "Error on
>> network@192.168.**.***:10002:java.net.ConnnectException: Connection
>> refused". Please let me know If I am following wrong steps. I am
>> following this link for getting output.
>>
>> http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder
>>
>>
>>
>>
>> Thanks & Regards, Jenis
>>
>>
>>
>>
>>
>> ___ 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] Tiny OS port to AVR32+CC2520

2011-11-03 Thread Subhojit Basu
HI,

   - Installed T2 and set-up tools
   - Started porting tos/chips/atm128 to tos/chips/atm32
  - Some confusion regarding MCUCSR as the bit organization is different
  - The GPIO Interrupts are also vastly different with different CSR's,
  would it be safe to neglect them for now ?

Regards,

--
Subhojit Basu

http://in.linkedin.com/in/subhojitb
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Change bytes in the message

2011-11-03 Thread Rudimar Engel
Hello!

I want change the bytes in the message send of the micaz mote. Someone can
help-me, how can I manipulate the Bytes in the message, not only the
payload bytes, but all the bytes of the message, meta data, header and
others.

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

[Tinyos-help] Reading the usb port without the java Listen (what is the byte RSSI)

2011-11-03 Thread Jorge R. Beingolea G.


Hi all,

I'm working on an application to process the Telosb, using Oscilloscope 
application.

I started by collecting and reading data through the USB port, and 
realized that the process of reading directly from USB port, without the 
use of command java Listen, 2 bytes are added to the beginning of the 
frame and 3 to end.

In the package (Oscilloscope application = 36 bytes), I could not 
identify any byte that corresponds to the RSSI.

What I wonder is if some of the additional bytes (2 before and 3 bytes 
at end) may be of RSSI and are abstracted when using the command java Listen

could you help me?


Jorge

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


[Tinyos-help] tos_state undeclared error

2011-11-03 Thread Seetha Devi
Hello all,
I am trying to execute tinyecc0.1 code in tossim. when i did make micaz sim, i 
got error as tos_state undeclared(first use in function).

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

Re: [Tinyos-help] Arch Linux

2011-11-03 Thread András Bíró
Hi Magnus,

I'm using tinyos on arch with avr based motes, and it's working fine.
Actually, I'm the maintainer of the tinyos related packages on aur,
and I'm planning to create pkgbuilds for the msp430-tinyos toolchain
when I have time for it.

Andris

On Thu, Nov 3, 2011 at 3:21 PM, Magnus Morton  wrote:
> Hi,
> Does anyone have any experience building and using the TinyOS toolchain on
> Arch Linux, particularly with telosb?
> Many thanks,
> Magnus
> ___
> 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] Reading the usb port without the java Listen (what is the byte RSSI)

2011-11-03 Thread Michael Schippling
One of the "features" of the Mote-PC communication is that
the RSSI value is not included... On one hand it makes sense
because that channel doesn't have a radio strength, but on
the other, it causes lots of grief because folks want to see
the strength of the signal received at the base-station,
which is I presume what you are trying to do.

The age-old solution was to reserve a spot in your messages and
modify the base-station code to stuff its RSSI into that slot.

MS

Jorge R. Beingolea G. wrote:
> 
> Hi all,
> 
> I'm working on an application to process the Telosb, using Oscilloscope 
> application.
> 
> I started by collecting and reading data through the USB port, and 
> realized that the process of reading directly from USB port, without the 
> use of command java Listen, 2 bytes are added to the beginning of the 
> frame and 3 to end.
> 
> In the package (Oscilloscope application = 36 bytes), I could not 
> identify any byte that corresponds to the RSSI.
> 
> What I wonder is if some of the additional bytes (2 before and 3 bytes 
> at end) may be of RSSI and are abstracted when using the command java Listen
> 
> could you help me?
> 
> 
> Jorge
> 
> ___
> 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] Error while running net.tinyos.tools.Listen -- URGENT

2011-11-03 Thread Michael Schippling
Sorry, but I can't help much further.

My assumption is that Listen should be able to connect to external
network ports, because it can do that with SerialForwarder. I know
that SF has a "quirky" message format that needs a preamble character
of some kind -- I think more like Telnet.

First I would make sure that the leds are blinking on both your motes.
Blink does exactly that, and most basestations blink when sending or
receiving. Then I'd look for _something_ supplied by your net adapter
that reads messages to see if you get anything.

MS


Modi, Jenis Ashokkumar wrote:
> Hi Michael,
> 
> I am trying to find stuff on internet, but it seems there are very
> few places( or say application's document e.g. Readme.txt) where I
> can get answer for my query. Most of the readme.txt in application
> folder specifies syntax for serial/USB device.
> 
> For the value which I sent which I specified as
> "192.168.**.***:10002", I am not putting that as a wild card, I am
> just specifying * here( in the e-mail). When I install application on
> mote, I am specifying the actual IP address. For example,
> 192.168.10.23 . If you know the Lantronix device installer, it says
> that 10001 port is for input and 10002 is for output. Again, you can
> modify the port number. I have set my port numbers as 10001 and 10002
> respectively for i/p and o/p, but it does not show me output on that
> port. :(
> 
> FYI: I am using mica2 motes, and trying to install basestation and
> blinktoradio application on motes. I am installing application using
> this kind of command : make mica2 install.1 eprb,192.168.10.50
> 
> 
> Thanks & Regards, JEnis
> 
> -Original Message- From: Michael Schippling
> [mailto:sc...@santafe.edu] Sent: Thursday, November 03, 2011 9:30 AM 
> To: Modi, Jenis Ashokkumar Cc: tinyos-help@millennium.berkeley.edu 
> Subject: Re: [Tinyos-help] Error while running
> net.tinyos.tools.Listen -- URGENT
> 
> ahha
> 
> I guess you are using a network base-station/programming adapter. I'm
> afraid you'll have to find documentation for that adapter. If you
> send the name and number of that beast maybe someone will know how to
> use it correctly. I only use serial or USB devices.
> 
> It will probably boil down to figuring out the network address and
> port number to use with the -comm argument. I notice that the value
> you sent: "network@192.168.**.***:10002" has those wild-card *'s
> which is probably not correct. 192.168... is usually a locally routed
> net, so that part could be right. Presuming that you used it for
> programming you should have the right IP address someplace, I just
> don't know about the :port #.
> 
> MS
> 
> Modi, Jenis Ashokkumar wrote:
>> Hi Michael,
>> 
>> Thanks for the reply. I have installed both my motes using RJ 45(or
>> say using IP address) cable only. I cannot use the Serial cable
>> connection to my motes as it can be just connected using RJ 45
>> cable. I am confused about the below lines which is there on
>> http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder#BaseStation_and_net.tinyos.tools.Listen
>> . which says that, "BaseStation is receiving your BlinkToRadio
>> packets and sending them to the serial port, so if it is plugged
>> into a PC we can view these packets. The Java tool Listen is a
>> basic packet sniffer: it prints out the binary contents of any
>> packet it hears."
>> 
>> So, my question is that, "is it necessary for me to have my mote
>> connected to PC (via serial com port) ? or Is there any mechanism
>> via which I can sniff this packets as I am using RJ 45 cable to
>> connect to my motes? I don't have serial port connection to my
>> motes. "
>> 
>> Waiting for your kind reply.
>> 
>> Thanks & Regards, Jenis
>> 
>> -Original Message- From: Michael Schippling
>> [mailto:sc...@santafe.edu] Sent: Wednesday, November 02, 2011 9:08
>> AM To: Modi, Jenis Ashokkumar Cc:
>> tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help]
>> Error while running net.tinyos.tools.Listen -- URGENT
>> 
>> It's a little unclear, but I'm going to assume that your point 2
>> means that you have installed Basestation on the mica2 that is
>> plugged into the host computer. And further that you are seeing
>> leds blink as one would hope...
>> 
>> Then, the error you are getting indicates that Listen is expecting
>> to connect to a network port, usually the SerialForwarder. This is
>> the default behavior, but I always recommend just forgetting about
>> SF and going direct, as it were. To connect Listen to the actual
>> input port you need to set use something like "-comm
>> serial@COM1:mica2" where COM1 is the I/O port your mica2 is plugged
>> into. You can also set the same string in a MOTECOM environment
>> variable and not have to bother with it on the command line.
>> 
>> Probably searching for MOTECOM will turn up some better advice.
>> 
>> MS
>> 
>> 
>> Modi, Jenis Ashokkumar wrote:
>>> Hi All,
>>> 
>>> Could you please help me 

Re: [Tinyos-help] Reading the usb port without the java Listen (what is the byte RSSI)

2011-11-03 Thread Jorge R. Beingolea G.
Hi Michael,

There is no other way?
in my case only installed the application of the oscilloscope, but I'm 
reading directly from the USB port without the aid of some other 
application like: MOTE-PC or java Listen.
when I read the USB port have a few additional bytes, I thought some of 
them could be the RSSI?

you have any idea how can I include the RSSI in the frame?

Thanks..

Jorge


Em 11/3/2011 5:21 PM, Michael Schippling escreveu:
> One of the "features" of the Mote-PC communication is that
> the RSSI value is not included... On one hand it makes sense
> because that channel doesn't have a radio strength, but on
> the other, it causes lots of grief because folks want to see
> the strength of the signal received at the base-station,
> which is I presume what you are trying to do.
>
> The age-old solution was to reserve a spot in your messages and
> modify the base-station code to stuff its RSSI into that slot.
>
> MS
>
> Jorge R. Beingolea G. wrote:
>>
>> Hi all,
>>
>> I'm working on an application to process the Telosb, using 
>> Oscilloscope application.
>>
>> I started by collecting and reading data through the USB port, and 
>> realized that the process of reading directly from USB port, without 
>> the use of command java Listen, 2 bytes are added to the beginning of 
>> the frame and 3 to end.
>>
>> In the package (Oscilloscope application = 36 bytes), I could not 
>> identify any byte that corresponds to the RSSI.
>>
>> What I wonder is if some of the additional bytes (2 before and 3 
>> bytes at end) may be of RSSI and are abstracted when using the 
>> command java Listen
>>
>> could you help me?
>>
>>
>> Jorge
>>
>> ___
>> 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] Arch Linux

2011-11-03 Thread Luís Pereira
Hi Magnus,

I'm using tinyos on arch too. The AUR packages didn't work for me, but the
svn version (after everything thats it's needed installed) work perfect
with telosa motes

Luís Pereira


On Thu, Nov 3, 2011 at 14:21, Magnus Morton  wrote:

> Hi,
>
> Does anyone have any experience building and using the TinyOS toolchain on
> Arch Linux, particularly with telosb?
>
> Many thanks,
> Magnus
>
> ___
> 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] Arch Linux

2011-11-03 Thread András Bíró
If anyone has problems with the packages, please post a comment on AUR.

Andris

2011/11/3 Luís Pereira :
> Hi Magnus,
> I'm using tinyos on arch too. The AUR packages didn't work for me, but the
> svn version (after everything thats it's needed installed) work perfect with
> telosa motes
> Luís Pereira
>
>
> On Thu, Nov 3, 2011 at 14:21, Magnus Morton  wrote:
>>
>> Hi,
>> Does anyone have any experience building and using the TinyOS toolchain on
>> Arch Linux, particularly with telosb?
>> Many thanks,
>> Magnus
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

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


Re: [Tinyos-help] Arch Linux

2011-11-03 Thread Luís Pereira
Ok, I'll put there my problem.

When I search for a solution someone told me to try the svn version, and as
it worked I never thought about posting my problem in AUR. Sorry

Luís Pereira


2011/11/3 András Bíró 

> If anyone has problems with the packages, please post a comment on AUR.
>
> Andris
>
> 2011/11/3 Luís Pereira :
> > Hi Magnus,
> > I'm using tinyos on arch too. The AUR packages didn't work for me, but
> the
> > svn version (after everything thats it's needed installed) work perfect
> with
> > telosa motes
> > Luís Pereira
> >
> >
> > On Thu, Nov 3, 2011 at 14:21, Magnus Morton 
> wrote:
> >>
> >> Hi,
> >> Does anyone have any experience building and using the TinyOS toolchain
> on
> >> Arch Linux, particularly with telosb?
> >> Many thanks,
> >> Magnus
> >> ___
> >> 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] Help with tinyos project

2011-11-03 Thread Alexander86

Hello i want to help me with a part of my thesis project. I want to modify
Oscilloscope Application so to measure two sensors from my telosb mote. The
sensors are SensirionSht11C for temp and HamamatsuS10871TsrC for light. I
made some change i will upload it in an rar file. I only want to use java
net.tinyos.tools.Listen to track my messages and i dont need the java
application. So please if someone can help my because I'm stuck.
Thanks for your time anyway.
http://old.nabble.com/file/p32767888/project.rar project.rar 
-- 
View this message in context: 
http://old.nabble.com/Help-with-tinyos-project-tp32767888p32767888.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

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


Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- URGENT

2011-11-03 Thread Modi, Jenis Ashokkumar
Hi Michael,

Thanks for the reply. I have installed both my motes using RJ 45(or say using 
IP address) cable only. I cannot use the Serial cable connection to my motes as 
it can be just connected using RJ 45 cable. I am confused about the below lines 
which is there on 
http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder#BaseStation_and_net.tinyos.tools.Listen
 . which says that,
"BaseStation is receiving your BlinkToRadio packets and sending them to the 
serial port, so if it is plugged into a PC we can view these packets. The Java 
tool Listen is a basic packet sniffer: it prints out the binary contents of any 
packet it hears."

So, my question is that, "is it necessary for me to have my mote connected to 
PC (via serial com port) ? or Is there any mechanism via which I can sniff this 
packets as I am using RJ 45 cable to connect to my motes? I don't have serial 
port connection to my motes. "

Waiting for your kind reply. 

Thanks & Regards,
Jenis

-Original Message-
From: Michael Schippling [mailto:sc...@santafe.edu] 
Sent: Wednesday, November 02, 2011 9:08 AM
To: Modi, Jenis Ashokkumar
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- URGENT

It's a little unclear, but I'm going to assume that your point 2 means
that you have installed Basestation on the mica2 that is plugged into
the host computer. And further that you are seeing leds blink as one
would hope...

Then, the error you are getting indicates that Listen is expecting to
connect to a network port, usually the SerialForwarder. This is the
default behavior, but I always recommend just forgetting about SF and
going direct, as it were. To connect Listen to the actual input port
you need to set use something like "-comm serial@COM1:mica2" where
COM1 is the I/O port your mica2 is plugged into. You can also
set the same string in a MOTECOM environment variable and not have
to bother with it on the command line.

Probably searching for MOTECOM will turn up some better advice.

MS


Modi, Jenis Ashokkumar wrote:
> 
> 
> Hi All,
> 
> Could you please help me for this part? I want to run Listen
> application and want to see the packet it sees. These are the steps
> which I am following.
> 
> This is what I did in steps. 1. Install mica2 motes on
> apps/tutorials/BlinkToRadio. (on 2 different motes) 2. Install mica2
> mote (one of the mote where BlinkToRadio is installed) on
> apps/Basestation application. 3. java net.tinyos.tools.Listen -comm
> network@192.168.**.***:10002
> 
> This throws me "Error on
> network@192.168.**.***:10002:java.net.ConnnectException: Connection
> refused". Please let me know If I am following wrong steps. I am
> following this link for getting output.
> 
> http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder
> 
> 
> 
> 
> Thanks & Regards, Jenis
> 
> 
> 
> 
> 
> ___ Tinyos-help mailing
> list Tinyos-help@millennium.berkeley.edu 
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



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


[Tinyos-help] How to save data in Oscilloscope demo?

2011-11-03 Thread xsm1211
 Hi: 
 I was using in Tinyos-2.x the oscilloscope application which is a very 
helpful tool to visualize acceleration raw data i got from mts420(crossbow). 
But there is no possibility to save the stream of data that visualizes from 
java GUI, and i also want to convert acceleration raw data into engineering 
unit(g). Can anybody help me?BYW, my gateway: mib520;mote: iris

Thank you.

He Xianyin

Center for Bridge and Structure Engineering

Harbin Institute ofTechnologyShenzhenGraduateSchool

E-306H, HIT Campus ofShenzhenUniversityTown, XiLi,Shenzhen,China, 518055
Email:xsm1...@126.com

MB: (86)-18923413451



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

Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- URGENT

2011-11-03 Thread Modi, Jenis Ashokkumar
Hi Michael,

I am trying to find stuff on internet, but it seems there are very few places( 
or say application's document e.g. Readme.txt) where I can get answer for my 
query. Most of the readme.txt in application folder specifies syntax for 
serial/USB device. 

For the value which I sent which I specified as "192.168.**.***:10002", I am 
not putting that as a wild card, I am just specifying * here( in the e-mail). 
When I install application on mote, I am specifying the actual IP address. For 
example, 192.168.10.23 . If you know the Lantronix device installer, it says 
that 10001 port is for input and 10002 is for output. Again, you can modify the 
port number. I have set my port numbers as 10001 and 10002 respectively for i/p 
and o/p, but it does not show me output on that port. :(

FYI: I am using mica2 motes, and trying to install basestation and blinktoradio 
application on motes. I am installing application using this kind of command : 
make mica2 install.1 eprb,192.168.10.50


Thanks & Regards,
JEnis

-Original Message-
From: Michael Schippling [mailto:sc...@santafe.edu] 
Sent: Thursday, November 03, 2011 9:30 AM
To: Modi, Jenis Ashokkumar
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- URGENT

ahha

I guess you are using a network base-station/programming adapter.
I'm afraid you'll have to find documentation for that adapter.
If you send the name and number of that beast maybe someone
will know how to use it correctly. I only use serial or USB
devices.

It will probably boil down to figuring out the network address
and port number to use with the -comm argument. I notice that
the value you sent: "network@192.168.**.***:10002" has those
wild-card *'s which is probably not correct. 192.168... is
usually a locally routed net, so that part could be right.
Presuming that you used it for programming you should have
the right IP address someplace, I just don't know about
the :port #.

MS

Modi, Jenis Ashokkumar wrote:
> Hi Michael,
> 
> Thanks for the reply. I have installed both my motes using RJ 45(or say using 
> IP address) cable only. I cannot use the Serial cable connection to my motes 
> as it can be just connected using RJ 45 cable. I am confused about the below 
> lines which is there on 
> http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder#BaseStation_and_net.tinyos.tools.Listen
>  . which says that,
> "BaseStation is receiving your BlinkToRadio packets and sending them to the 
> serial port, so if it is plugged into a PC we can view these packets. The 
> Java tool Listen is a basic packet sniffer: it prints out the binary contents 
> of any packet it hears."
> 
> So, my question is that, "is it necessary for me to have my mote connected to 
> PC (via serial com port) ? or Is there any mechanism via which I can sniff 
> this packets as I am using RJ 45 cable to connect to my motes? I don't have 
> serial port connection to my motes. "
> 
> Waiting for your kind reply. 
> 
> Thanks & Regards,
> Jenis
> 
> -Original Message-
> From: Michael Schippling [mailto:sc...@santafe.edu] 
> Sent: Wednesday, November 02, 2011 9:08 AM
> To: Modi, Jenis Ashokkumar
> Cc: tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- 
> URGENT
> 
> It's a little unclear, but I'm going to assume that your point 2 means
> that you have installed Basestation on the mica2 that is plugged into
> the host computer. And further that you are seeing leds blink as one
> would hope...
> 
> Then, the error you are getting indicates that Listen is expecting to
> connect to a network port, usually the SerialForwarder. This is the
> default behavior, but I always recommend just forgetting about SF and
> going direct, as it were. To connect Listen to the actual input port
> you need to set use something like "-comm serial@COM1:mica2" where
> COM1 is the I/O port your mica2 is plugged into. You can also
> set the same string in a MOTECOM environment variable and not have
> to bother with it on the command line.
> 
> Probably searching for MOTECOM will turn up some better advice.
> 
> MS
> 
> 
> Modi, Jenis Ashokkumar wrote:
>>
>> Hi All,
>>
>> Could you please help me for this part? I want to run Listen
>> application and want to see the packet it sees. These are the steps
>> which I am following.
>>
>> This is what I did in steps. 1. Install mica2 motes on
>> apps/tutorials/BlinkToRadio. (on 2 different motes) 2. Install mica2
>> mote (one of the mote where BlinkToRadio is installed) on
>> apps/Basestation application. 3. java net.tinyos.tools.Listen -comm
>> network@192.168.**.***:10002
>>
>> This throws me "Error on
>> network@192.168.**.***:10002:java.net.ConnnectException: Connection
>> refused". Please let me know If I am following wrong steps. I am
>> following this link for getting output.
>>
>> http://docs.tinyos.net/tinywiki/index.php/Mote-PC

Re: [Tinyos-help] Reading the usb port without the java Listen (what is the byte RSSI)

2011-11-03 Thread Michael Schippling
Sorry, that was the extent of my ideas...
maybe someone smarter and more up-to-date has some better ones.
MS

Jorge R. Beingolea G. wrote:
> Hi Michael,
> 
> There is no other way?
> in my case only installed the application of the oscilloscope, but I'm 
> reading directly from the USB port without the aid of some other 
> application like: MOTE-PC or java Listen.
> when I read the USB port have a few additional bytes, I thought some of 
> them could be the RSSI?
> 
> you have any idea how can I include the RSSI in the frame?
> 
> Thanks..
> 
> Jorge
> 
> 
> Em 11/3/2011 5:21 PM, Michael Schippling escreveu:
>> One of the "features" of the Mote-PC communication is that
>> the RSSI value is not included... On one hand it makes sense
>> because that channel doesn't have a radio strength, but on
>> the other, it causes lots of grief because folks want to see
>> the strength of the signal received at the base-station,
>> which is I presume what you are trying to do.
>>
>> The age-old solution was to reserve a spot in your messages and
>> modify the base-station code to stuff its RSSI into that slot.
>>
>> MS
>>
>> Jorge R. Beingolea G. wrote:
>>>
>>> Hi all,
>>>
>>> I'm working on an application to process the Telosb, using 
>>> Oscilloscope application.
>>>
>>> I started by collecting and reading data through the USB port, and 
>>> realized that the process of reading directly from USB port, without 
>>> the use of command java Listen, 2 bytes are added to the beginning of 
>>> the frame and 3 to end.
>>>
>>> In the package (Oscilloscope application = 36 bytes), I could not 
>>> identify any byte that corresponds to the RSSI.
>>>
>>> What I wonder is if some of the additional bytes (2 before and 3 
>>> bytes at end) may be of RSSI and are abstracted when using the 
>>> command java Listen
>>>
>>> could you help me?
>>>
>>>
>>> Jorge
>>>
>>> ___
>>> 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] Reading the usb port without the java Listen (what is the byte RSSI)

2011-11-03 Thread sai manoj
Hi,

I want to copy the message header into payload by creating my own payload
format

This is the Msg format I like to transmit

typedef nx_struct Msg
{
  nx_uint16_t hdr;
  ieee154_header_t header_t;

  nx_uint16_t val;
  nx_uint16_t type;
}Msg;


And in the implementation part I tried 3 different

Msg* btrpkt = (Msg*)(call Packet.getPayload(&pkt, sizeof(Msg)));

btrpkt->header_t=getheader(btrpkt);
or
btrpkt->header=ieee154_header_t;
or
btrpkt->header_t.fcf=getFCF(btrpkt);

I need to do copy the header of the data into payload

-- 
SAI MANOJ P D (M.Tech)
International Institute of Information Technology,Bangalore
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help