[#4101] "ircp" command don't work well when use irtty_sir as SIR device driver

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

[#4101] "ircp" command don't work well when use irtty_sir as SIR device driver

Submitted By: Vivi Li

Open Date

2008-05-13 05:18:40     Close Date

2009-08-11 19:16:14

Priority:

Medium     Assignee:

Graf Yang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2008R1.5-RC3     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

08r1-rc8

App binary format:

N/A     

Summary: "ircp" command don't work well when use irtty_sir as SIR device driver

Details:

 

Using irtty_sir as SIR device drivers, it can't send file to another Blackfin board or window by "ircp" command.

 

--

root:/> modprobe irtty_sir

root:/> lsmod

Module                  Size  Used by

irtty_sir               3360  0

sir_dev                 8804  1 irtty_sir

root:/> irattach /dev/ttyBF1 -s &

132

root:/> sirdev_receive - too early: 0057381c / 16!

sirdev_receive - too early: 0057382c / 15!

sirdev_receive - too early: 0057383b / 8!

sirdev_receive - too early: 00573843 / 19!

sirdev_receive - too early: 00573856 / 4!

sirdev_receive - too early: 0057385a / 19!

sirdev_receive - too early: 0057386d / 12!

sirdev_receive - too early: 00573879 / 12!

sirdev_receive - too early: 00573885 / 19!

sirdev_receive - too early: 00573898 / 4!

 

root:/>

root:/>

root:/> cat /proc/net/irda/discovery

IrLMP: Discovery log:

 

nickname: blackfin, hint: 0x0400, saddr: 0xf2972248, daddr: 0x366109c0

 

 

root:/> ircp /etc/host.conf

Connecting...failed

--

 

Follow-ups

 

--- Vivi Li                                                  2008-05-16 01:41:44

I test irtty_sir with a notebook with irda interface and ubantu 7.10.

 

For BF537-STAMP/BF533-STAMP/BF527-EZKIT, we can ircp a file to the notebook.

But failed to ircp a file from notebook to blackfin board, with error message

"Connecting...failed". In BF548-EZKIT, ircp donesn't work from both

blackfin board and notebook sides.

 

For BF527-EZKIT, when ircp a large file(eg:/bin/busybox) to notebook, it will

fail. The error message is as bellow:

--

root:/> ircp -r

Waiting for incoming connection

Incoming connection

Receiving busybox...srv_obex_event(): Link error

--

 

--- Graf Yang                                                2008-07-22 02:39:57

ircp work well with PIO mode. DMA mode failed.

 

--- Graf Yang                                                2008-07-23 06:20:06

sir driver may change UART speed, even the last byte is sending bit by bit in

TSR register.

 

We now will change the speed until the last byte is sent out indeed.

 

--- Graf Yang                                                2008-07-24 03:51:21

Revert my previous commit.

 

We now use the sir_dev/irtty_sir/uart/bfin_serial drivers framework to monitor

the TX status.

 

--- Vivi Li                                                  2009-08-12 00:16:28

We can transfer files now. So close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes