Chul Lee | 1 Sep 2007 09:27
Picon

my irda is trasnmitting but not receiving

Hello~

I'm just a newbie in Linux irda,
am going to use openobex in the embedded linux box.
I have embedded linux box with Samsung's S3C2440 MCU.
In my Linux box, irdadump prints only the TX packets.
But it is not receiving any packets from other near IR devices.

I performed as follows.

The Linux kernel version is 2.6.13.5
I configured the IR devices as built-in as follows,

Networking -> IrDA (infrared) subsystem support
<*> IrLAN protocol
<*> irCOMM protocol
<*> Debug information
-- Infrared-port device drivers -->
<*> IrTTY (uses Linux serial driver)
<*> IrPORT (IrDA serial driver)

Also, I cross compiled, irda-utils , such as irdadump and irattach.

The IR deivce is attached to the serial, /dev/ttySAC2

$ cat /proc/tty/driver/ttySAC 
serinfo:1.0 driver revision:
0: uart:S3C2440 mmio:0x50000000 irq:70 tx:290162 rx:3007 RTS|DTR|DSR|CD
1: uart:S3C2440 mmio:0x50004000 irq:73 tx:0 rx:0 DSR|CD
2: uart:S3C2440 mmio:0x50008000 irq:76 tx:385563 rx:0 RTS|DTR|DSR|CD
(Continue reading)

Radek Polak | 3 Sep 2007 16:49
Picon
Favicon

Re: Linux IrDA APIS

Hi Nitin,
sorry if i wasnt clear enough. It is possible to do your program in C.
You can start by downloading irda-utils source codes [1]. After
unpacking you can find  sample programs irprintf.c and irscanf.c under
irsockets directory.

Hope it helps now

Radek

[1] http://sourceforge.net/project/showfiles.php?group_id=5616
> Hi Radek,
>
> Isn't there a way for me to do this socket programming for IrDA in linux through C.
>
> regards
>
> -Nitin
>
> ----- Original Message ----
> From: Radek Polak <psonek2@...>
> To: Nitin Mahajan <nitinm76@...>
> Cc: irda-users@...
> Sent: Friday, August 31, 2007 1:35:03 PM
> Subject: Re: [irda-users] Linux IrDA APIS
>
>
> Hi Nitin,
> i am new to IrDA programming too. I found the most useful bits of code 
> in irda-utils package. There are good samples for IrDA sockets in 
(Continue reading)

Alex Villací­s Lasso | 10 Sep 2007 22:22
Picon

Help on understanding kernel oops on 2.6.20 with (experimental) ksdazzle module

Lately I have been looking into a worrysome kernel oops reported on 
Ubuntu Feisty Fawn (kernel 2.6.20-6) that goes like this:
> Sep 10 23:28:42 ubuntu kernel: [ 2642.610408] usb 3-2: new low speed 
> USB device using uhci_hcd and address 2
> Sep 10 23:28:43 ubuntu kernel: [ 2642.789153] usb 3-2: configuration 
> #1 chosen from 1 choice
> Sep 10 23:28:43 ubuntu kernel: [ 2642.875462] NET: Registered protocol 
> family 23
> Sep 10 23:28:43 ubuntu kernel: [ 2642.878548] KingSun/Dazzle IRDA/USB 
> found at address 2, Vendor: 7d0, Product: 4100
> Sep 10 23:28:43 ubuntu kernel: [ 2642.878881] 
> /home/ashik/ksdazzle/ksdazzle-sir.c: IrDA: Registered KingSun/Dazzle 
> device irda0
> Sep 10 23:28:43 ubuntu kernel: [ 2642.879028] usbcore: registered new 
> interface driver ksdazzle-sir
> Sep 10 23:29:04 ubuntu irattach: executing: '/sbin/modprobe irda0'
> Sep 10 23:29:04 ubuntu irattach: + FATAL: Module irda0 not found.
> Sep 10 23:29:04 ubuntu irattach: Trying to load module irda0 exited 
> with status 1
> Sep 10 23:29:04 ubuntu irattach: executing: 'echo ubuntu > 
> /proc/sys/net/irda/devname'
> Sep 10 23:29:04 ubuntu irattach: executing: 'echo 1 > 
> /proc/sys/net/irda/discovery'
> Sep 10 23:29:04 ubuntu irattach: Starting device irda0
> Sep 10 23:29:04 ubuntu kernel: [ 2664.487789] 
> /home/ashik/ksdazzle/ksdazzle-sir.c: ksdazzle_rcv_irq: max reception 
> so far is 8 bytes
> Sep 10 23:29:22 ubuntu kernel: [ 2681.732520] 
> /home/ashik/ksdazzle/ksdazzle-sir.c: ksdazzle_rcv_irq: max reception 
> so far is 10 bytes
(Continue reading)

Jothi R | 25 Sep 2007 14:31
Picon

IrDA is not transmitting, but receiving

Hi all,
        I am using the linux kernel version 2.6.19.2 to work with ARM -
target.
I am using SIR mode. I am able to transfer a file from mobile device to
the target. But Iam not able to transfer a file from the target to the
mobile device.

On debugging, i found that the RX packets are not coming. And the socket
gets destroyed.

                ifconfig irda0
        irda0     Link encap:UNSPEC  HWaddr 0D-
D5-55-6F-03-00-00-00-00-00-00-00-00-00-00-00
          UP RUNNING NOARP  MTU:2048  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7196 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:8
          RX bytes:0 (0.0 B)  TX bytes:113080 (110.4 KiB)

The Discovery log reports NULL. I am using the same kernel driver of
version 2.6.19.2 without any modifications. 

Given below is the log of debug messages i got from driver

: irda_create()
: irda_create() : self is c0655400
: irlmp_register_client()
: irda_getsockopt(c0655400) optname 1
 irda_getsockopt Discoveries is null < this print statement is the one i
added in the code>
(Continue reading)

Richard Röjfors | 26 Sep 2007 13:48
Picon

Kernel crash when using obexftp (everytime)

Hi everyone,

On this machine a standard ubuntu 7.04 is installed. Kernel is a ubuntu patched
2.6.20-16-generic.

I have a SigmaTel STIr4200 usb dongle.

I use obexftp 0.19. I check /proc/net/irda/discovery so my phone is discovered.

The I run "obexftp -i -l" and I get a crash in the kernel, 100% reproducable.

So my question is has anyone seen this before? I have not checked this in
anymore detail yet.

Trace: (debug level set to 10 in irda)

[  580.288000] irda_create()
[  580.288000] irda_create() : self is cb768c00
[  580.288000] irlmp_register_client()
[  580.288000] hashbin_insert()
[  580.288000] enqueue_first()
[  580.288000] irda_getsockopt(cb768c00)
[  580.288000] irda_connect(cb768c00)
[  580.288000] irda_connect(), daddr = 00007ffb
[  580.288000] irda_find_lsap_sel(cb768c00, OBEX)
[  580.288000] iriap_open()
[  580.288000] iriap_register_lsap()
[  580.288000] irlmp_slsap_inuse()
[  580.288000] irlmp_find_free_slsap(), found free lsap_sel=10
[  580.288000] hashbin_insert()
(Continue reading)

Samuel Ortiz | 1 Oct 2007 01:21

[PATCH] IrDA: Oops fix for ksdazzle

Hi Dave,

This is the last remaining patch for IrDA, against net-2.6.24.

It fixes a kernel oops triggered by the ksdazzle SIR driver.
We need more space for input frames, and 2048 should be plenty of it.

Signed-off-by: Alex Villacís Lasso <a_villacis <at> palosanto.com>
Signed-off-by: Samuel Ortiz <samuel <at> sortiz.org>

---
 drivers/net/irda/ksdazzle-sir.c |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

Index: net-2.6.24-quilt/drivers/net/irda/ksdazzle-sir.c
===================================================================
--- net-2.6.24-quilt.orig/drivers/net/irda/ksdazzle-sir.c	2007-10-01 01:53:56.000000000 +0300
+++ net-2.6.24-quilt/drivers/net/irda/ksdazzle-sir.c	2007-10-01 01:53:58.000000000 +0300
 <at>  <at>  -1,7 +1,7  <at>  <at> 
 /*****************************************************************************
 *
 * Filename:      ksdazzle.c
-* Version:       0.1.1
+* Version:       0.1.2
 * Description:   Irda KingSun Dazzle USB Dongle
 * Status:        Experimental
 * Author:        Alex Villacís Lasso <a_villacis <at> palosanto.com>
 <at>  <at>  -113,6 +113,7  <at>  <at> 
 #define KINGSUN_REQ_SEND 0x09

(Continue reading)


Gmane