Hi All, 
I strongly doubt the availability of software rewritten capabilities of the 
NesC language, I have read all through the source coding of TINYOS and the 
mannuals of both TINYOS and NesC. I find that the best to write for TINYOS and 
its motes is C#, the Assembly best suit for this issue is DSP Assembly for 
Motorola DSP56002 Microprocessor designed by Professor El-Sharkawy Mohamond in 
IUPUI, IN 46202. Can some one help me too a lot to provide nesC source coding 
for this problem:"make two mica2 motes to independently communicate with 
motherboard and via which to connect with Laptop computers (for instance, to 
get temperature sensor values) which has TOSSIM and TINYOS installed. and make 
the mica2 motes and motherboard to run in multihop status in doing this to help 
double check the motes' availability at the exact operating time."
I doubt how to write the nesC, I failed for at least 100 times now. The only 
things I succeeded is to implement C# coding and the 19 experimental source 
code pieces the TINYOS organizations provided.
The C# source coding can be directly written instead of nesC, and the compiler 
works. Even though occasionally some errors and compilation errors may apply to 
this change, still the hardware can work according to my request.


Thanks.


An Feng
[email protected]




-----Original Message-----
From: tinyos-help-request <[email protected]>
To: tinyos-help <[email protected]>
Sent: Sun, Jan 27, 2013 7:00 am
Subject: Tinyos-help Digest, Vol 117, Issue 52


Send Tinyos-help mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinyos-help digest..."


Today's Topics:

   1. Re: Mote-to-Mote Serial Communication Problem (Saeid Yazdani)
   2. Re: Mote-to-Mote Serial Communication Problem (nishad kamdar)
   3. Re: Mote-to-Mote Serial Communication Problem (Eric Decker)
   4. Re: Mote-to-Mote Serial Communication Problem (nishad kamdar)


----------------------------------------------------------------------

Message: 1
Date: Sat, 26 Jan 2013 21:13:31 +0100
From: Saeid Yazdani <[email protected]>
Subject: Re: [Tinyos-help] Mote-to-Mote Serial Communication Problem
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20130126/140961c1/attachment-0001.htm
 


------------------------------

Message: 2
Date: Sun, 27 Jan 2013 01:53:54 +0530
From: nishad kamdar <[email protected]>
Subject: Re: [Tinyos-help] Mote-to-Mote Serial Communication Problem
To: Saeid Yazdani <[email protected]>
Cc: [email protected]
Message-ID:
        <cadmatkoc6tczvesjzpmzbkd2-n3jqub+ydvadecn1brgz+8...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20130127/9346796f/attachment-0001.htm
 


------------------------------

Message: 3
Date: Sat, 26 Jan 2013 14:36:44 -0700
From: Eric Decker <[email protected]>
Subject: Re: [Tinyos-help] Mote-to-Mote Serial Communication Problem
To: nishad kamdar <[email protected]>
Cc: [email protected]
Message-ID:
        <camdx_2dow_azfugeuwi2pdb+hm4+6oj2854z3j-jp5vsb_u...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20130126/4598dbbe/attachment-0001.htm
 


------------------------------

Message: 4
Date: Sun, 27 Jan 2013 04:28:10 +0530
From: nishad kamdar <[email protected]>
Subject: Re: [Tinyos-help] Mote-to-Mote Serial Communication Problem
To: Eric Decker <[email protected]>
Cc: [email protected]
Message-ID:
        <cadmatkmyjkaab_wvcdvgldrpwaaq7t+ba7stmcpsglnr-cf...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20130127/9ba40460/attachment.htm
 


------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

End of Tinyos-help Digest, Vol 117, Issue 52
********************************************

 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to