Thank you Martin! If i want to use my module on the cc2430,how can i modify my 
module? And which part of the module need to be modify?thank you!
 


在2009-04-04,"Martin Leopold" <[email protected]> 写道:
>Hi Tuhanwu.
>Please send your questions to the mailing list!
>http://tinyos8051wg.sourceforge.net/mailinglists
>
>>From what its seems you are trying to use a module using the TinyOS
>Active Message (AM) stack. This is not supported on the cc2430 at this
>time. For more information read the online documentation.
>
>http://tinyos8051wg.sourceforge.net/documentation
>
>On Fri, 2009-04-03 at 10:09 +0800, tuhanwu wrote:
>> Thank you Martin!ok,I am make a application about AODV router in
>> cc2430 platform.In the beginning,i used a sentence " call
>> AMControl.start();",then i can not understant how to signal the
>> "AMControl.startDone( error_t e )"event.In the file of app.c ,the
>> programme run into the schduler with no task after the " call
>> AMControl.start();",the "AMControl.startDone( error_t
>> e )"event can not be signaled,so my application can not be executed
>> which in the "AMControl.startDone( error_t e )" command. So,i think if
>> the "AMControl.startDone( error_t e )"event be singaled by some
>> hardware interrupt? It seemed related with the csma function? the
>> following are my application:
>> event void Boot.booted() {
>>     call SplitControl.start();
>>   }
>> 
>>   event void SplitControl.startDone(error_t err) {
>>     if (err == SUCCESS) {
>>       dbg("APPS", "%s\t APPS: startDone %d.\n", sim_time_string(),
>> err);
>>       p_pkt = &pkt;
>>       if( TOS_NODE_ID == src )
>>       post Timer_send();
>>     } else {
>>       call SplitControl.start();
>>     }
>>   }
>>  
>>  
>> command error_t SplitControl.start() {
>>     int i;
>>     p_rreq_msg_     = &rreq_msg_;
>>     p_rrep_msg_     = &rrep_msg_;
>>     p_rerr_msg_     = &rerr_msg_;
>>     p_aodv_msg_     = &aodv_msg_;
>>     p_app_msg_      = &app_msg_;
>>     
>>     for(i = 0; i< AODV_ROUTE_TABLE_SIZE; i++) {
>>       route_table_[i].seq  = 0;
>>       route_table_[i].dest = INVALID_NODE_ID;
>>       route_table_[i].next = INVALID_NODE_ID;
>>       route_table_[i].hop  = 0;
>>     }    
>>     for(i = 0; i< AODV_RREQ_CACHE_SIZE; i++) {
>>       rreq_cache_[i].seq  = 0;
>>       rreq_cache_[i].dest = INVALID_NODE_ID;
>>       rreq_cache_[i].src  = INVALID_NODE_ID;
>>       rreq_cache_[i].hop  = 0;
>>     }
>>     call AMControl.start();
>>      return SUCCESS;
>>   } // start
>>  
>>  
>>   event void AMControl.startDone( error_t e ) {
>>     if ( e == SUCCESS ) {
>>       call AODVTimer.startPeriodic( AODV_DEFAULT_PERIOD );
>>       signal SplitControl.startDone(e);
>>     } else {
>>       call AMControl.start();
>>     }
>>   }
>>  
>>  
>>  
>>  
>> 
>> 
>> 
>> ______________________________________________________________________
>> 网易邮箱,中国第一大电子邮件服务商
>-- 
>Regards Martin Leopold.
>




网易邮箱,中国第一大电子邮件服务商
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to