[Tinyos-help] Entra nella mia rete su LinkedIn

2011-06-10 Thread Vinay Iyer tramite LinkedIn
LinkedIn





Vinay Iyer ha chiesto di aggiungerti ai suoi collegamenti su LinkedIn:
  
--

Vorrei aggiungerti alla mia rete professionale su LinkedIn.

Accetta l'invito di Vinay Iyer
http://www.linkedin.com/e/-528s01-goqxx5fd-1y/DQCGT3GB9z4raacyxHEZ6GwS_HFHC0dZ_bJG6UZ99BqwCW9clJdr/blk/I1414992369_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnPAScP8VejgNd359bQkUiDFagA9KbPASc3ATdj4TcjcLrCBxbOYWrSlI/EML_comm_afe/

Visualizza l'invito di Vinay Iyer
http://www.linkedin.com/e/-528s01-goqxx5fd-1y/DQCGT3GB9z4raacyxHEZ6GwS_HFHC0dZ_bJG6UZ99BqwCW9clJdr/blk/I1414992369_3/3dvejoPczAVd34QckALqnpPbOYWrSlI/svi/
 
--

SAPEVI CHE grazie a LinkedIn puoi controllare le referenze in maniera più 
affidabile e approfondita? Inserisci il nome dell'azienda e specifica in quali 
anni il candidato che ti interessa vi ha lavorato e potrai scoprire quali dei 
suoi colleghi fanno parte della tua rete. In questo modo avrai maggiori 
informazioni per valutare un nuovo assunto.
http://www.linkedin.com/e/-528s01-goqxx5fd-1y/rsr/inv-27/

 
-- 
(c) 2011, LinkedIn Corporation___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] UART0 + TKN15.4 (Tmote Sky)

2011-06-10 Thread Aziz Khakulov
Hi Jan,

The solution was simpler than I thought. I just used call 
MLME_SET.macRxOnWhenIdle(FALSE); in MCPS_DATA.indication() and call 
MLME_SET.macRxOnWhenIdle(TRUE);  ín UartStream.sendDone. So basically disable 
RX on idle once we get a packet and enable it back once we are done with 
sending over UART.
 
Aziz Khakulov, MSc


Research Engineer
Automatic Control Lab
School of Electrical Engineering
Royal Institute of Technology (KTH)
www.kth.se


Mob.: +46 76 2653896



From: Jan Hauer 
To: Aziz Khakulov 
Cc: "tinyos-help@millennium.berkeley.edu" 
Sent: Thursday, June 9, 2011 12:13 PM
Subject: Re: [Tinyos-help] UART0 + TKN15.4 (Tmote Sky)

Hi Aziz,

The MAC should release the USART (SPI) resource after Rx or Tx
operations, that's part of the implementation, but I've not tested it
so far. A lot of the CC2420 low level code is identical to the code in
tos/chips/cc2420, so it would be interesting to see if you see the
same issue with the "standard" MAC as well (e.g. install
apps/Oscilloscope, maybe also try LPL version).

When you say that you never get the granted() event, are you using the
Resource interface provided by Msp430Usart0C()? (because this seems to
be what the CC2420 via HplCC2420SpiC() connects to)

I will also test this myself in a few days (when I return from traveling).

Jan


On Thu, Jun 9, 2011 at 11:31 AM, Aziz Khakulov  wrote:
> Hi all,
> I'm trying to use both UART0 (Pins 2 and 4 on the expansion port) and
> TKN15.4 MAC but facing problems. It seems that something in the MAC is
> getting the resource and not releasing it as when I try
> UartResouce.request(), it never triggers the UartResource.granted() event.
> It happens even if I just initialize MAC without receiving any packets
> (MLME_RESET.request(TRUE) task).
> Has anyone ever faced such problems and knows any possible solution?
>
> Yours,
> Aziz Khakulov
>
>
> ___
> 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] UART0 + TKN15.4 (Tmote Sky)

2011-06-10 Thread Jan Hauer
On Fri, Jun 10, 2011 at 11:45 AM, Aziz Khakulov  wrote:
> Hi Jan,
> The solution was simpler than I thought. I just used call
> MLME_SET.macRxOnWhenIdle(FALSE); in MCPS_DATA.indication() and call
> MLME_SET.macRxOnWhenIdle(TRUE);  ín UartStream.sendDone. So basically
> disable RX on idle once we get a packet and enable it back once we are done
> with sending over UART.

This is because as long as the MAC is Rx the Spi (USART0 on telos) is
locked (to not lose incoming packets). When you switch the radio off
the USART0 resource is released and can then be used by other clients.
So, in nonbeacon-enabled mode you have to make sure you're not always
in Rx (e.g. with the step you suggest). And I just checked that in
beacon-enabled mode there is no problem in the first place, because
the resource is released in between periods anyway (CAP -> CFP ->
inactive period).

Jan


>
> Aziz Khakulov, MSc
>
> Research Engineer
> Automatic Control Lab
> School of Electrical Engineering
> Royal Institute of Technology (KTH)
> www.kth.se
>
> Mob.: +46 76 2653896
> 
> From: Jan Hauer 
> To: Aziz Khakulov 
> Cc: "tinyos-help@millennium.berkeley.edu"
> 
> Sent: Thursday, June 9, 2011 12:13 PM
> Subject: Re: [Tinyos-help] UART0 + TKN15.4 (Tmote Sky)
>
> Hi Aziz,
>
> The MAC should release the USART (SPI) resource after Rx or Tx
> operations, that's part of the implementation, but I've not tested it
> so far. A lot of the CC2420 low level code is identical to the code in
> tos/chips/cc2420, so it would be interesting to see if you see the
> same issue with the "standard" MAC as well (e.g. install
> apps/Oscilloscope, maybe also try LPL version).
>
> When you say that you never get the granted() event, are you using the
> Resource interface provided by Msp430Usart0C()? (because this seems to
> be what the CC2420 via HplCC2420SpiC() connects to)
>
> I will also test this myself in a few days (when I return from traveling).
>
> Jan
>
>
> On Thu, Jun 9, 2011 at 11:31 AM, Aziz Khakulov  wrote:
>> Hi all,
>> I'm trying to use both UART0 (Pins 2 and 4 on the expansion port) and
>> TKN15.4 MAC but facing problems. It seems that something in the MAC is
>> getting the resource and not releasing it as when I try
>> UartResouce.request(), it never triggers the UartResource.granted() event.
>> It happens even if I just initialize MAC without receiving any packets
>> (MLME_RESET.request(TRUE) task).
>> Has anyone ever faced such problems and knows any possible solution?
>>
>> Yours,
>> Aziz Khakulov
>>
>>
>> ___
>> 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] Mote-Pc uses UART0?

2011-06-10 Thread Prasanna Karthik V
hi,
sometime back i connected external pins(that generate inputs) to
UART0RX and UART0TX pins on the 16-pin expansion. I could observe that
there was some problem with logging. Problem with logging happens
every time i connect some source to UART0TX/UART0RX.

I have seen from the data sheet that PC-Mote serial communication uses
UART1. Still why does this happen?

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


[Tinyos-help] (no subject)

2011-06-10 Thread Akila Kiki
hi,
how to add Activity-based mobility model on tinyos-1.X, i want to simulate this 
model in tinyos as random waypoint, 
please help me

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

Re: [Tinyos-help] (no subject)

2011-06-10 Thread Eric Decker
If you are going to be doing anything significant you should seriously
consider using TinyOS 2.TinyOS1 has been deprecated for a really long
time.

On Fri, Jun 10, 2011 at 11:31 AM, Akila Kiki  wrote:

> hi,
> how to add Activity-based mobility model on tinyos-1.X, i want to simulate
> this model in tinyos as random waypoint,
> please help me
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
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] Adding precision to sensor data obtained

2011-06-10 Thread Mayank Gupta
Hi all,

I am sending sensor readings from telosb mote to the pc and storing
the data in mysql database. The problem I am facing is that I want
data to be precise upto at least 2 decimal places but data in my
database always comes out to be as integer. I have modified the mig
generated file to push data into the database rather than show output
on the screen.  I hope someone can guide me in the right direction so
that I can get more precise value in my database.

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


Re: [Tinyos-help] Adding precision to sensor data obtained

2011-06-10 Thread Michael Schippling
Pretty much all sensors readings on TOS devices are
integer values directly from the ADC -- some few, like
Voltage, may be may be mangled for range and level
but are probably also ints. IIRC the telosb has a 12
bit converter so you should have 0-4095 as your values,
which is a resolution of about .00025 per bit. You may
convert that to floating point to about 4 decimal places
if you like.

MS

Mayank Gupta wrote:
> Hi all,
> 
> I am sending sensor readings from telosb mote to the pc and storing
> the data in mysql database. The problem I am facing is that I want
> data to be precise upto at least 2 decimal places but data in my
> database always comes out to be as integer. I have modified the mig
> generated file to push data into the database rather than show output
> on the screen.  I hope someone can guide me in the right direction so
> that I can get more precise value in my database.
> 
> Regards,
> Mayank
> ___
> 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] Adding precision to sensor data obtained

2011-06-10 Thread Mayank Gupta
Thanks for the help Michael. But again I am not really sure how to do that.
Can you refer me to some tutorial  or reading where I can see how to
actually code it.. Sorry but not really getting it.

Regards,
Mayank
On Fri, Jun 10, 2011 at 5:13 PM, Michael Schippling  wrote:
> Pretty much all sensors readings on TOS devices are
> integer values directly from the ADC -- some few, like
> Voltage, may be may be mangled for range and level
> but are probably also ints. IIRC the telosb has a 12
> bit converter so you should have 0-4095 as your values,
> which is a resolution of about .00025 per bit. You may
> convert that to floating point to about 4 decimal places
> if you like.
>
> MS
>
> Mayank Gupta wrote:
>>
>> Hi all,
>>
>> I am sending sensor readings from telosb mote to the pc and storing
>> the data in mysql database. The problem I am facing is that I want
>> data to be precise upto at least 2 decimal places but data in my
>> database always comes out to be as integer. I have modified the mig
>> generated file to push data into the database rather than show output
>> on the screen.  I hope someone can guide me in the right direction so
>> that I can get more precise value in my database.
>>
>> Regards,
>> Mayank
>> ___
>> 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] LogStorage erase (tmote)

2011-06-10 Thread Viktor Zsoldos
Hi,

TEP 103  says that:
LogWrite.erase: erase the log. A log MUST be erased (possibly in some previous 
session) before any other operation can be used.

It's true, if I don't call the erase command after boot, I cannot write to the 
log. The problem is if I call it in Boot.booted, the LogStorage lose 
it's purpose to keep the data even after a power loss, since it's erased again. 
How can I handle this problem?

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


Re: [Tinyos-help] Adding precision to sensor data obtained

2011-06-10 Thread Michael Schippling
Assuming that the readings you are getting are,
as I suggested, the raw ADC values from 0-4095
you can convert them to a voltage by multiplying
by the ADC's reference voltage -- nominally 3.3v.
So a 0 value is equal to 0 volts and a full scale
4095 value is equal to 3.3v. The reading you get
is some fraction in between those:

(value / full-scale) * refVolts

example, if your value happens to be 2000:

(2000 / 4095) * 3.3 == 1.6117 volts

I would take the last couple digits with a grain
of salt because the system is usually pretty noisy,
and I'm not really bright enough to figure out if
the theoretical precision is 3 or 4 decimal points
anyway.

Now your sensor may need some calibration and scaling
so the conversion you use will probably have a form
like (Mx + B), where M is a scale factor and B is an
offset, both of which you might derive from spec sheets
or brute force measurements.

What are you sensing anyway?
MS


Mayank Gupta wrote:
> Thanks for the help Michael. But again I am not really sure how to do that.
> Can you refer me to some tutorial  or reading where I can see how to
> actually code it.. Sorry but not really getting it.
> 
> Regards,
> Mayank
> On Fri, Jun 10, 2011 at 5:13 PM, Michael Schippling  wrote:
>> Pretty much all sensors readings on TOS devices are
>> integer values directly from the ADC -- some few, like
>> Voltage, may be may be mangled for range and level
>> but are probably also ints. IIRC the telosb has a 12
>> bit converter so you should have 0-4095 as your values,
>> which is a resolution of about .00025 per bit. You may
>> convert that to floating point to about 4 decimal places
>> if you like.
>>
>> MS
>>
>> Mayank Gupta wrote:
>>> Hi all,
>>>
>>> I am sending sensor readings from telosb mote to the pc and storing
>>> the data in mysql database. The problem I am facing is that I want
>>> data to be precise upto at least 2 decimal places but data in my
>>> database always comes out to be as integer. I have modified the mig
>>> generated file to push data into the database rather than show output
>>> on the screen.  I hope someone can guide me in the right direction so
>>> that I can get more precise value in my database.
>>>
>>> Regards,
>>> Mayank
>>> ___
>>> 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] The TinyOS wiki page is getting Spammed

2011-06-10 Thread Denz Choe
Hi there,

Take a look at your main page.
http://docs.tinyos.net/tinywiki/index.php/Main_Page
It's almost fully littered with dating services sites.

Just thought of letting you guys know if no one notices it yet

-- 
Regards,
Choe
Cell Phone: +601-62727658
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help