Hi Laurent,

You need to acquire the SPI bus first. Look for examples in the code
how this is done. The RF230 driver always releases the SPI bus when it
does not uses it.

Miklos

On Wed, Feb 18, 2009 at 10:53 AM, Laurent Rabinowitch
<[email protected]> wrote:
> Hi,
> Thank you very much for your answer. It helped me a lot ... My application
> is now compiling without any error.
> Unfortunately, I m now facing a new problem. Actually, the first thing which
> is done in my application is a "RadioControl.start()" (by using the
> interface SplitControl). Then, after the startDone, the application calls a
> new function which is implemented in RF230LayerP. In this function, I use
> the "writeRegister":
> [In module RF230LayerP]
> command error_t ScanEdConfig.ScanEdStart()
> {
>    writeRegister(RF230_TRX_STATE, RF230_RX_ON);
>    writeRegister(RF230_PHY_ED_LEVEL, 1);
>    call Leds.led2Toggle();
>    return SUCCESS;
> }
> When I remove the both "writeRegister", the led toggles correctly but
> otherwise it blocks...
>
> Do you know what the problem could be ? Do I have to include some other
> things to activate the radio maybe?
> 2009/2/16 Miklos Maroti <[email protected]>
>>
>> Hi,
>>
>> Where did you wire the RF230Config interface? Originally it is wired
>> in RF230ActiveMessageC and implemented in RF230ActiveMessageP. Since
>> you do not pull these components, the RF230Config is not implemented
>> and not wired.
>>
>> Miklos
>>
>> On Mon, Feb 16, 2009 at 11:16 AM, Laurent Rabinowitch
>> <[email protected]> wrote:
>> > Hi,
>> > I am trying to make a simple application that uses the energy detector
>> > to
>> > measure the energy on a given channel at a given time. Unfortunately, I
>> > face
>> > some problem with the compilation.
>> > I have created an application ("ScanAppC.nc" and "ScanC.nc") and an
>> > interface ("ScanEdConfig.nc") which is provided by "RF230LayerC.nc"
>> > (implemented in "RF230LayerP.nc", at the end of the document)
>> > Here is the error that appears when I try to compile:
>> >
>> > In component `RF230LayerP':
>> > /opt/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc: In function `initRadio':
>> > /opt/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc:232:
>> > RF230Config.getDefaultChannel not connected
>> > /opt/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc: In function
>> > `downloadMessage':
>> > /opt/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc:556:
>> > RF230Config.getMaxLength
>> > not connected
>> > /opt/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc:564:
>> > RF230Config.setLength
>> > not connected
>> > /opt/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc:565:
>> > RF230Config.getPayload
>> > not connected
>> > /opt/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc:571:
>> > RF230Config.getHeaderLength not connected
>> > make: *** [exe0] Error 1
>> > RF230Config is an interface used by RF230LayerP and the link seems ok...
>> > If
>> > someone has an idea, it would be a so great help for me!
>> > Thank you in advance,
>> > Laurent
>> >
>> > --
>> > Laurent Rabinowitch
>> > ULB
>> > _______________________________________________
>> > Tinyos-help mailing list
>> > [email protected]
>> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> >
>
>
>
> --
> Laurent Rabinowitch
>
> Korenbloemlaan, 14
> B-1933 Sterrebeek
>
> +32 472 66 22 67
> [email protected]
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to