Thank you for the advice,

I will  try writing the C code for serial communication in 1611 and try
getting the results.



On Sun, Jan 27, 2013 at 3:06 AM, Eric Decker <[email protected]> wrote:

> First you need to understand the basics of what you are doing.
>
> Do you understand how UART communications works and how the interconnect
> needs to be?
>
> How exactly did you wire Mote0/Uart0 to Mote1/Uart0?
>
> You had better have a decent ground and then Mote0/Uart0/TX should go to
> Mote1/Uart0/RX
> and vice versa.
>
> Then study the UART chapter of the 1611 users guide and write a little C
> program.  (you can embed it in the code called from Boot.booted when the
> mote boots).  You have this little C program, initilize the UART, and then
> do nothing but check for a TXIFG (means there is space in the outbound
> transmit queue) and send a well know char of your choice.
>
> If you want to be messing around with interconnected embedded systems, you
> really need to know how to deal with low level programming.
>
> And also how to wire things up so that it has a chance of working.
>
> That whole thing you tried with the USB denotes a complete lack of
> understanding of how that stuff is supposed to work.   It didn't have a
> prayer.  For USB to work there has to be a controlling host.   Hooking two
> USB devices up back to back doesn't have a prayer.
>
>
>
>
> On Sat, Jan 26, 2013 at 1:23 PM, nishad kamdar <[email protected]>wrote:
>
>> Hey,
>>
>> Thanks for the reply,
>>
>> I have also tried the UART 0 on the 10 pin connector and connected the
>> TelosB motes which did not lead to communication between them.
>>
>> I have made the necessary changes, in the PlatformSerialC.nc file for
>> switching between UART 1 and UART 0.
>>
>> Is there anything i am missing to configure like the baud rate or
>> anything i am not doing what the JAVA code is doing like opening the Ports
>> before communication?
>>
>> Please Advice,
>>
>>
>>
>> On Sun, Jan 27, 2013 at 1:43 AM, Saeid Yazdani <[email protected]>wrote:
>>
>>>  I don't think connecting both USB ends of two telosb motes makes
>>> sense, since the FTDI chip is working only when connected to a proper USB
>>> host (Such as PC usb port, but not another TelosB mote).
>>>
>>> Also the USB on TelosB is connected to UART 1.
>>>
>>> If its your only option to use UART1, then you may hardwire two TelosB's
>>> UART1 by solderin wires directly into the FTDI chip on TelosB (See the
>>> datasheet).
>>>
>>> Other wise you could use UART0 that is on the 10pin header expansion.
>>>
>>> Regards,
>>> Saeid Yazdani
>>> http://www.eetutorials.com
>>>
>>> On 26-1-2013 20:31, nishad kamdar wrote:
>>>
>>> Hello all,
>>>
>>>  I am trying to establish communication between two TelosB motes not
>>> via the radio but using the UART.
>>>
>>>  At first I burned the TestSerial Code in both the motes and connected
>>> their USB ports via a USB Female to Female cable.
>>> However it did not lead to communication and blinking of the Leds which
>>> happens normally while using the Java TestSerial Code.
>>>
>>>  So, i further tried to use the UART 0 using the connectors on the
>>> mote. I made the required changes in the PlatformSerialC.nc file to use the
>>> UART0 port.
>>> But this too did not lead to communication between the motes.
>>>
>>>  My aim is to interface an Underwater Acoustic modem (SAM 1 from Desert
>>> Star) to the mote's Serial port through which it can be controlled.
>>>
>>>  Can anyone please advise me on this matter and help in establishing
>>> serial communication between TelosB motes.
>>>
>>>  Thank you in advance.
>>>
>>>  --
>>>  Sincerely,
>>>
>>>  Nishad Kamdar
>>> Graduate student
>>> BITS PILANI , K K Birla Goa campu*s*
>>> Cell: +919503218809
>>>
>>>
>>> _______________________________________________
>>> Tinyos-help mailing 
>>> [email protected]https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>>
>>>
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> [email protected]
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>> --
>> Sincerely,
>>
>> Nishad Kamdar
>> Graduate student
>> BITS PILANI , K K Birla Goa campu*s*
>> Cell: +919503218809
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>


-- 
Sincerely,

Nishad Kamdar
Graduate student
BITS PILANI , K K Birla Goa campu*s*
Cell: +919503218809
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to