It depends on which communications components you're using, but if I had to guess, I'd say you might have something wrong with the packet sequencing. Some of the routing components/protocols (Bcast for instance) use a sequence number to make sure copies of the same packet aren't received multiple times, and they'll only respond to the first packet with a given sequence number.
Also, with your earlier question about converting ASCII numbers to integer values, atoi() is the nominal function for that in C, but sscanf() is usually more flexible. You're probably better off passing numbers into the mote network in binary form anyway though. ASCII is not very size-efficient, and there's no point in wasting storage on conversion functions on the mote side when you could just as easily convert it to a uint16_t bit pattern on the user side. Ben ------------------------------ Message: 7 Date: Sun, 1 Oct 2006 17:32:32 +0530 From: "primalfear 69" <[EMAIL PROTECTED]> Subject: [Tinyos-help] able to get the first packet but not the rest.......... To: tinyos-help <tinyos-help@millennium.berkeley.edu> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" hello everyone, again in need of u guys help........:) i am using tinyos 1.1.0 mica2 under windows. i use MIB510 programmer. my program does the following....................... MOTE1 gets data from uart and transmits it to the MOTE 2 via radio. mote2 receives the data via radio and does some changes and then sends back to the MOTE1 via radio.... i am able to send many a packet of data from* mote1*........... but only able to get the first packet and not able to get the rest from *MOTE2* ////////////////////////// i am using two motes one (*MOTE1*) is used to get data (a fixed number of data......as of now its 10) from uart and the other one *(MOTE2)*is programmed with genericbase. although there is a slight change in genericbase code............ (instead of sending to the uart (when the mote is receiving data from the radio) i am again sending the data to the radio. problem is here.............) ////////////////////// Regards primalfear ** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/200610 01/ec95ce5f/attachment.htm ------------------------------ Message: 8 Date: Sun, 01 Oct 2006 11:42:38 -0600 From: Michael Schippling <[EMAIL PROTECTED]> Subject: Re: [Tinyos-help] telosb serial comm + clock synchronization To: rgunasek <[EMAIL PROTECTED]> Cc: tinyos-help@Millennium.Berkeley.EDU Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sounds like you have a Synchronous serial device, so it won't do to attach it to the standard U(Async)RT. I don't know about the telos devices, but most micro-controllers have options for sync, e.g., USART1 on the mica's, which is used for I2C, flash, and radio. Dig through the controller manual for more info. MS rgunasek wrote: > Hi, > > I am working on interfacing an external ADC to the Telosb, the ADC( using > ADS1211 from TI) has a serial data input, serial data output and a serial > clock input. > > Thought about interfacing to the UART pins on the 10 pin external connector. > > Is interfacing the ADC to the external UART going to work, and how about clock > synchronization if using the UART. > > I would be appreciate suggestions on how to proceed, if any examples please > help me find it. > > Regards > > Raghul > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ------------------------------ _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help End of Tinyos-help Digest, Vol 42, Issue 1 ****************************************** _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help