and in TOSBaseM.nc, I went through the code in line 107 which is used to send 
TOS_MSG via radio, the code is:
      Result = call RadioSend.send(gpTxMsg);  //  TOS_MsgPtr gpTxMsg;
   
  and it is very interesting if you look through the implementation of 
RadioSend.send in CRCPacket.nc,  the send function only send the first byte of 
gpTxMsg, oh, my god!!!!!
  I am really lost by this app.
   
  thanks
  Sam
   
  the code is like following:
   /* Command to transmit a packet */
  command result_t Send.send(TOS_MsgPtr msg) {
    if (txCount == 0)
      {
 txCount = 1;
 txLength = TOS_MsgLength(msg->type);
 sendPtr = (uint8_t *)msg;
 /* send the first byte */
 if (call ByteComm.txByte(sendPtr[0]))
   {
     post CRCCalc();
     return SUCCESS;
   }
 else
   txCount = 0;
      }
    return FAIL;
  }

Renee Azhen <[EMAIL PROTECTED]> 写道:
    hi, ashrafalqudah
  thanks for your help:)
  I was always using [EMAIL PROTECTED]:57600, yet it doesn't work!
   
  if I upload the TOSBase into my node, the TOSBase works well, but if the 
SimpleCMD node can not receive message.
  I am so confuzed why I add GenericComm  into the TOSBase.nc, then the TOSBase 
node can't work, and the "write failed" was displayed on the SF.
   
  thanks all the same!
  Sam
  

[EMAIL PROTECTED] 写道:
    hi Sam
  I faced a problem like this but I was using micaz platform not the telosb, 
however i solved it in very simple and unexpected solution you can try this:
  when you want to specify the baud rate when running the serialforwarder write 
it as number not telosb. in micaz i used  param = [EMAIL PROTECTED]:57600  
rather than param = [EMAIL PROTECTED]:micaz
    believe me its worked.
  Thanks for all

----- Original Message -----
From: Renee Azhen 
Date: Tuesday, December 25, 2007 7:46 pm
Subject: [Tinyos-help]: SimpleCMD can't receive message (another 
strangephenonmenon)

> And another strange phenomena.
> If I add component TimerC into the TOSBase.nc, 
> for example:
> I change the code from:
> components Main, TOSBaseM, RadioCRCPacket as Comm, FramerM, 
> UART, LedsC;
> To 
> components Main, TOSBaseM, RadioCRCPacket as Comm, FramerM, 
> UART, LedsC, TimerC;
> and then, the TOSBase can't work either.
> 
> Why?? Could you tell me?
> thanks
> Sam
> 
> ***********************************************************************************
>  dear all:
> Merry Christmas!
> 
> I have two telosb nodes.
> one is connected to a PC and programmed with TOSBase.
> the other is programmed with SimpleCMD.
> 
> when I run the BcastInject to send a message to the first 
> node, it works well(the Leds toggled), but the other node which 
> is programmed with SimpleCMD had no response.
> 
> I have searched in the Mailing list, and found many people 
> posted the same question, but none gave a good answer.
> 
> My nodes is telosb platform, could anyone tell me how to fix it?
> 
> Thanks
> Sam
> 
> 
> ---------------------------------
> ê×¨× 
> 
  


    
---------------------------------
  雅虎邮箱传递新年祝福,个性贺卡送亲朋! 

       
---------------------------------
雅虎邮箱传递新年祝福,个性贺卡送亲朋! 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to