Thanks for you attention, Michael,
  In fact, What I want to do is just send a .txt file from the PC to a node via 
the UART, then the node transfer it to a remote node via RF.
  Do you help any code for this implementation, or could you tell me some link 
to get this demo??
   
  thanks
  Sam

Michael Schippling <[EMAIL PROTECTED]> 写道:
  If I understand correctly, your TOSBase mote is flashing LEDs
when you try to send a message so that means that your baud
rate and such are probably correct on the PC side. But your
re-Mote is not receiving anything...

It's possible that SimpleCmd expects to get a message to a
specific moteID, I'd have to go look through all the code...
See if you can get it to accept a message with a BCAST address.

Have you had these devices successfully using the radio at all?
You might try something a little simpler like CntToRfm to see
if you get any communication. And make sure you've compiled
all the programs with the same radio channel defined.

I don't know why adding TimerC to the TOSBase config is
troublesome. I have done just that for mica2's to add some
bit twiddling outputs to my base-station. What is the actual
error message you get?

But adding new radio code is probably a recipe for disaster
since TOSBase uses a bunch of lower level functions to do it's
magic, so I'd just leave it well enough alone.

I think what you see in RadioSend is the initial byte send,
subsequent bytes get sent from an interrupt routine somewhere
else in the code there.

MS

Renee Azhen wrote:
> thanks, Ashraf, I am using tinyos 1.x, in which the baud rate of telosb 
> is 57600,
> thanks!
> Sam
> 
> */[EMAIL PROTECTED]/* 写道:
> 
> HI
> I don’t know but I remember that I saw something in lesson 4 mention
> that is the baud rate for telosb is 115200 , you can check it.
> http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson4.html
> Ashraf
> 
> ----- Original Message -----
> From: Renee Azhen
> Date: Tuesday, December 25, 2007 11:00 pm
> Subject: 回复: Re: [Tinyos-help]: SimpleCMD can't receive message
> (anotherstrangephenonmenon)
> 
> > 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
> > 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

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew



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

Reply via email to