2009-02-24 07:19:38     SPORT emlulated UART retransmit the receiving data.

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-02-24 07:19:38     SPORT emlulated UART retransmit the receiving data.

ThangarJ P (INDIA)

Message: 69807   

 

Dear All,

 

we are using BF533-Ezkit board and 2008R1.5 release for testing the SPORT UART emulation.

 

In the transmit side its fine.

 

but if we receive some data then its transmitting the same receive data.

 

After receive the data "sport_start_tx(bfin_sport_uart.c)" API is calling.

 

This API should call only at the time of transmiiting.

 

please clarify why this API is calling at the time of receiving also.

 

 

 

And also one more question

 

One structure  bfin_sport_uart  is defined in bfin_sport_uart.c file which contains SPORT0 configurations followed by SPORT1.

 

but we are using SPORT1 as emulate UART.

 

if we use the same structure it wont work even comment the SPORT0 part.

 

but its working if we define the SPORT1 followed by SPORT0.

 

please clarify why its not working if we comment the SPORT0.

 

 

 

 

 

 

 

 

 

 

 

Thangaraj

QuoteReplyEditDelete

 

 

2009-02-24 09:41:29     Re: SPORT emlulated UART retransmit the receiving data.

Mike Frysinger (UNITED STATES)

Message: 69814   

 

how exactly are you transmitting files ?

QuoteReplyEditDelete

 

 

2009-02-24 11:09:13     Re: SPORT emlulated UART retransmit the receiving data.

ThangarJ P (INDIA)

Message: 69826   

 

we are transmitting the data from minicom(which is connected through USB to UART convertor) and receive in SPORT emulatd UART.

 

the sport receive irq calling while receive the data.

 

Inside sport receive irq function(bfin_sport_uart.c) the one API is calling(flip char) in the else condition.

 

if we comment the API then it wont retransmit again.

 

is this API calling needed?

 

please clarify..

 

 

 

 

 

With Regards,

 

Thangaraj.P

 

 

 

 

QuoteReplyEditDelete

 

 

2009-02-24 11:14:36     Re: SPORT emlulated UART retransmit the receiving data.

Mike Frysinger (UNITED STATES)

Message: 69827   

 

that doesnt tell me how you're actually making the transfer (what programs you're using)

 

if you want to know more about the serial core, it's documented in Documentation/ and in the serial core headers

QuoteReplyEditDelete

 

 

2009-02-25 07:01:51     Re: SPORT emlulated UART retransmit the receiving data.

ThangarJ P (INDIA)

Message: 69880   

 

 

We made the H/W connections as explained in the EE-191.  We have connected the external uart_to_usb module to the Ez-kit board and we connected the one end to the pc.

 

then we load the kernal to the board through RS232 which is connected in COM1 port of PC.

 

now we opened the hyper terminal (COM3 port in pc) which is connected to uart_to_usb module and try to tx the data to the board(from COM3 to COM1). but what we are seeing is it is looping back and displaying the same data on the terminal screen(COM3).

 

 

Let me know your suggestions why this loop back is happening.

 

 

 

 

Thangaraj

QuoteReplyEditDelete

 

 

2009-02-25 11:03:39     Re: SPORT emlulated UART retransmit the receiving data.

Michael Hennerich (GERMANY)

Message: 69899   

 

Can you test again with this fix:

 

https://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_id=141&tracker_item_id=4943

 

-Michael

 

Index: bfin_sport_uart.c

===================================================================

--- bfin_sport_uart.c (revision 6093)

+++ bfin_sport_uart.c (working copy)

@@ -109,7 +109,7 @@

"%0 = %0 & R2;"

"%0 = %0 | R3;"

: "=d"(value)

- :

+ : "d"(value)

: "ASTAT", "R2", "R3"

);

pr_debug("%s value:%x\n", __func__, value);

@@ -142,7 +142,7 @@

"%[shift] += 1;"

: "=d"(extract), [shift]"=d"(tmp_shift), [tmp]"=d"(tmp),

[mask1]"=d"(tmp_mask1), [mask2]"=d"(tmp_mask2)

- : [val]"d"(value), [lc]"a"(8)

+ : "d"(extract), [val]"d"(value), [lc]"a"(8)

: "ASTAT", "LB0", "LC0", "LT0"

);

 

QuoteReplyEditDelete

 

 

2009-02-25 13:09:19     Re: SPORT emlulated UART retransmit the receiving data.

ThangarJ P (INDIA)

Message: 69901   

 

Thanks Michael.

 

we will check and let you know.

QuoteReplyEditDelete

 

 

2009-02-26 11:22:21     Re: SPORT emlulated UART retransmit the receiving data.

ThangarJ P (INDIA)

Message: 70017   

 

Hi Michael,

 

we have tested with a updated patch

 

After that the same issue is happening..

 

plaese advice on that..

 

 

QuoteReplyEditDelete

 

 

2009-02-26 12:12:19     Re: SPORT emlulated UART retransmit the receiving data.

Michael Hennerich (GERMANY)

Message: 70020   

 

Sorry the patch I posted is only for svn trunk.

This issue doesn't exist on the 2008R1 Release

 

So you receive a local echo?

 

Try:

 

root:/> stty -F /dev/ttySS1 -echo

 

-Michael

 

QuoteReplyEditDelete

 

 

2009-02-27 08:30:37     Re: SPORT emlulated UART retransmit the receiving data.

ThangarJ P (INDIA)

Message: 70095   

 

Hi Michael,

 

we are facing the same issue in 2008R1 also.

 

if we use this command "stty -F /dev/ttySS1 -echo"  then the message"applet not found" message is displayed in the teraterm window.

 

please suggest on this .

 

 

 

 

 

 

 

 

 

Thangaraj

 

 

QuoteReplyEditDelete

 

 

2009-02-27 08:46:37     Re: SPORT emlulated UART retransmit the receiving data.

Michael Hennerich (GERMANY)

Message: 70096   

 

stty is a common unix/linux command.

 

You need to enable it in busybox.

 

Then run:

 

stty -F /dev/ttySSx -echo

 

on your Blackfin kernel console

 

-Michael

 

 

QuoteReplyEditDelete

 

 

2009-02-27 09:31:18     Re: SPORT emlulated UART retransmit the receiving data.

ThangarJ P (INDIA)

Message: 70097   

 

Hi Michael,

 

 

 

The "applet not found" message displayed only after enable the stty command in busy box.

 

the "command not found" msg is displayed before enable the stty command in busy box.

 

 

 

please advise on this.

 

 

 

 

 

 

 

Thangaraj

QuoteReplyEditDelete

 

 

2009-02-27 09:48:38     Re: SPORT emlulated UART retransmit the receiving data.

Michael Hennerich (GERMANY)

Message: 70098   

 

try:

 

uclinux-dist-trunk> make user_clean;make

 

 

I think I saw that happening before in older releases.

 

Make clean should fix this.

 

-Michael

QuoteReplyEditDelete

 

 

2009-02-27 10:00:56     Re: SPORT emlulated UART retransmit the receiving data.

Phil Wilshire (UNITED STATES)

Message: 70100   

 

Hi,

 

There used to be an issue with busybox not fully rebuilding after a change in its configuration.

 

So I always suggest that you make clean busybox after adding an applet to it

 

 

 

    make user/busybox_clean

 

then

 

   make

 

 

 

Phil Wilshire

 

 

 

 

QuoteReplyEditDelete

 

 

2009-03-02 01:19:27     Re: SPORT emlulated UART retransmit the receiving data.

ThangarJ P (INDIA)

Message: 70193   

 

Hi Michael and Phil Wilshire,

 

  Thanks for the suggestion.

 

now the stty command is working and also didn't get the local echo.

 

 

 

 

 

 

 

Thangaraj

QuoteReplyEditDelete

Attachments

    Outcomes