The arbiter should call granted if no other user has been granted the
resource. The arbiter code is pretty well tested, so the problem
should be somewhere else. Can you double check that the string used to
instantiate the arbiter is the same as the argument of unique in the
file where the arbiter is wired?

If you can't get the arbiter working, just discard the arbiter code
temporarily and make sure that you never read the temperature and the
humidity concurrently.

I'm sorry, but I can't work on this at the moment. It would be kind of
cumbersome without the hardware, anyway.

Janos

On Mon, Mar 2, 2009 at 6:22 PM, Luis Carlos Duque Arcila
<[email protected]> wrote:
>
> Hi Janos, Everyone
>
> We have been triying to make it work with the resourses you give me, we
> totally understand now wath was our error.
> Now that we triying to implement the "switch" part and the resto of the
> code, we discovered that the code doesn`t enter to the part of the
> Sth11ReaderP when the resource interface get in to the "granted" part (in
> Tempresourse), we can only think, that should mean the we are not in control
> of the resource, and if this granted doesn`t happen, the code that give me
> the finally data from the sth11 is not working.. :(
> We will appreciate if you can give us some advice on this, i attach you the
> code that we have been working on..
> please excuse us.
> and tnx
>
>
> L:C:
>
>
>
>> Date: Mon, 23 Feb 2009 22:01:04 -0600
>> Subject: Re: [Tinyos-help] Help with tinyOs 2.0 in MTS400 SensorBoard
>> From: [email protected]
>> To: [email protected]; [email protected]
>>
>> Luis Carlos, Aurelien:
>>
>> I spent a few hours on the SHT driver. I'm attaching a zip file that
>> contains the code I wrote. Currently, the sht11 is wired correctly,
>> however it does not yet power on.
>>
>> It appears that there's an i2c switch on this sensor board that is
>> used to turn on/off the power to specific sensors (
>>
>> http://www.analog.com/en/switchesmultiplexers/analog-switches/ADG715/products/product.html
>> ). You will find a Mts400SwitchesP.nc file in my code, which is taken
>> from tinyos-2.x-contrib/mts4x0, however, it's missing the
>> implementation of the HumidityPower and HumidityConnect interfaces.
>> You will need to do this -- unfortunately I don't have any more time
>> working on it this week ( and I don't have the hardware, either). Take
>> a look at how the GPS is turned on, and you will be able to write this
>> code. Aurelien might be able to help you.
>>
>> The switch values are:
>> HUMIDITY_POWER = 4
>> HUMIDITY_SCLK = 7
>> HUMIDITY_DATA = 8
>>
>> Based on the quality of questions you posted to tinyos-help, I'm
>> pretty confident that you'll be able to do this. Once the driver is
>> done, I would like to ask you to contribute back the code to the
>> tinyos CVS.
>>
>> Janos
>
> ________________________________
> Connect to the next generation of MSN Messenger  Get it now!

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to