Re: [Tinyos-help] Using UART1 instead of UART0

2012-12-21 Thread Sean Dekker
Dear Eric,

 I have soldered the RX pin of the device which should be interfaced, to PIN#24 
of FT232BL. This way as I mentioned in my pervious email, it is possible to 
send bytes using 'printf' function to the sensor.

 That device is using 5V CMOS level, so I connected the wire that comes from 
PIN#24 of FT232BL to a 3.3 to 5V level shifter, Since I think pin 24 of FT232BL 
comes from PIN#2 from BUFFER chip.

 I have done the same thing with TX of my device, I have connected it PIN#25 of 
FT232BL, I am pretty sure that pin is going to UART1RX of MSP430.

 Now, after a week, I was not able to receive any data in TinyOS from UART1.

 I tried to use component Msp430Uart1C() but it receive event seems to do 
nothing.

 I would really appriciate if you or other people who are reading my email to 
give me some help in this regard.

 I wish there was something like `scanf()` fucntion which could let users to 
read from UART1.

 Regards,
 Sean.
- Original Message -
From: Eric Decker
Sent: 12/19/12 02:30 PM
To: Sean Dekker
Subject: Re: [Tinyos-help] Using UART1 instead of UART0

 pin 24 of U20? The FT232BM?

 If so that is RX and connected to UART1TX so you probably have the sense of 
the pin wrong.

 UART1 uses P3.6 and P3.7. You will have to figure out how to mess with it to 
get the USART doing the right thing.

 On Wed, Dec 19, 2012 at 4:45 AM, Sean Dekker  sean.dek...@gmx.com  wrote:

Dear Eric,

 I directly soldered a wire in TX and RX pins of FTDI chip on telosb. Now I can 
send bytes using the following command without the need to stop radio first. 
Its working very fine:

 printf(%c%c%c, byte1, byte2, byte3)

 I have also soldered a wire to the RX pin of FTDI chip. But I do knot know how 
can I receive bytes. Can you please tell me which interfaces should I use in 
this case?

 Regards,
 Sean.
- Original Message -
From: Eric Decker
Sent: 12/14/12 06:22 AM
To: Sean Dekker
Subject: Re: [Tinyos-help] Using UART1 instead of UART0

Should work. You'll want to study the schematic and make sure that the USB 
circuit won't mess with your use of the UART1 circuits.

On Thu, Dec 13, 2012 at 2:36 PM, Sean Dekker  sean.dek...@gmx.com  wrote:
Hi all,

 It's almost 2 months that I am trying to make a reliable app that can work 
with both UART0 and RADIO. As you know they are shared and it requires a lot of 
hassel to make them work.

 My last idea that partly work was when required to send to UART0, I stop the 
RADIO, send bytes then I start RADIO again. But this way I have no idea how to 
receive bytes through UART0 while radio is ON. Infact I need to check some 
sensor values using UART0 and when they are at certail level I should send 
warning using UART0 and then using RADIO to a base station...this is really 
hopeless I am giving up!

 My last idea is using UART1...I mean the uart that is connected to the FTDI 
chip. Since I think it works great I have tested it with printf function and 
stuff and it does not have problem with radio.

 My idea is to find the UART1 pins of msp430 and use them instead of UART1.

 Do you recommend such thing?

 Regards,
 Sean.



 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu 
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 

--
 Eric B. Decker
 Senior (over 50 :-) Researcher



 --
 Eric B. Decker
 Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Using UART1 instead of UART0

2012-12-19 Thread Sean Dekker
Dear Eric,

 I directly soldered a wire in TX and RX pins of FTDI chip on telosb. Now I can 
send bytes using the following command without the need to stop radio first. 
Its working very fine:

 printf(%c%c%c, byte1, byte2, byte3)

 I have also soldered a wire to the RX pin of FTDI chip. But I do knot know how 
can I receive bytes. Can you please tell me which interfaces should I use in 
this case?

 Regards,
 Sean.
- Original Message -
From: Eric Decker
Sent: 12/14/12 06:22 AM
To: Sean Dekker
Subject: Re: [Tinyos-help] Using UART1 instead of UART0

Should work. You'll want to study the schematic and make sure that the USB 
circuit won't mess with your use of the UART1 circuits.

On Thu, Dec 13, 2012 at 2:36 PM, Sean Dekker  sean.dek...@gmx.com  wrote:
Hi all,

 It's almost 2 months that I am trying to make a reliable app that can work 
with both UART0 and RADIO. As you know they are shared and it requires a lot of 
hassel to make them work.

 My last idea that partly work was when required to send to UART0, I stop the 
RADIO, send bytes then I start RADIO again. But this way I have no idea how to 
receive bytes through UART0 while radio is ON. Infact I need to check some 
sensor values using UART0 and when they are at certail level I should send 
warning using UART0 and then using RADIO to a base station...this is really 
hopeless I am giving up!

 My last idea is using UART1...I mean the uart that is connected to the FTDI 
chip. Since I think it works great I have tested it with printf function and 
stuff and it does not have problem with radio.

 My idea is to find the UART1 pins of msp430 and use them instead of UART1.

 Do you recommend such thing?

 Regards,
 Sean.



 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu 
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 

--
 Eric B. Decker
 Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Using UART1 instead of UART0

2012-12-13 Thread Eric Decker
Should work.   You'll want to study the schematic and make sure that the
USB circuit won't mess with your use of the UART1 circuits.

On Thu, Dec 13, 2012 at 2:36 PM, Sean Dekker sean.dek...@gmx.com wrote:

 Hi all,

 It's almost 2 months that I am trying to make a reliable app that can work
 with both UART0 and RADIO. As you know they are shared and it requires a
 lot of hassel to make them work.

 My last idea that partly work was when required to send to UART0, I stop
 the RADIO, send bytes then I start RADIO again. But this way I have no idea
 how to receive bytes through UART0 while radio is ON. Infact I need to
 check some sensor values using UART0 and when they are at certail level I
 should send warning using UART0 and then using RADIO to a base
 station...this is really hopeless I am giving up!

 My last idea is using UART1...I mean the uart that is connected to the
 FTDI chip. Since I think it works great I have tested it with printf
 function and stuff and it does not have problem with radio.

 My idea is to find the UART1 pins of msp430 and use them instead of UART1.

 Do you recommend such thing?

 Regards,
 Sean.



 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help