Samuel Ortiz | 1 Mar 2006 23:36
Picon

[PATCH] IrDA: TOIM3232 dongle support

Hi David,

Here goes a patch for supporting TOIM3232 based serial IrDA dongles.
The code is based on the tekram dongle code.

It's been tested with a TOIM3232 based IRWave 320S dongle. It may work
for TOIM4232 dongles, although it's not been tested.

Cheers,
Samuel.

Signed-off-by: David Basden <davidb-irda@...>
Signed-off-by: Samuel Ortiz <samuel.ortiz@...>

diff --git a/drivers/net/irda/Kconfig b/drivers/net/irda/Kconfig
index 7a08134..1b0f0d0 100644
--- a/drivers/net/irda/Kconfig
+++ a/drivers/net/irda/Kconfig
 <at>  <at>  -62,10 +62,18  <at>  <at>  config TEKRAM_DONGLE
 	  attaches to the normal 9-pin serial port connector, and can
 	  currently only be used by IrTTY.  To activate support for Tekram
 	  dongles you will have to start irattach like this:
 	  "irattach -d tekram".

+config TOIM3232_DONGLE
+	tristate "TOIM3232 IrDa dongle"
+	depends on DONGLE && IRDA
+	help
+	  Say Y here if you want to build support for the Vishay/Temic
+	  TOIM3232 and TOIM4232 based dongles.
(Continue reading)

David S. Miller | 2 Mar 2006 01:04
Favicon

Re: [PATCH] IrDA: TOIM3232 dongle support

From: Samuel Ortiz <samuel.ortiz@...>
Date: Thu, 2 Mar 2006 00:36:23 +0200

> Here goes a patch for supporting TOIM3232 based serial IrDA dongles.
> The code is based on the tekram dongle code.
> 
> It's been tested with a TOIM3232 based IRWave 320S dongle. It may work
> for TOIM4232 dongles, although it's not been tested.
> 
> Signed-off-by: David Basden <davidb-irda@...>
> Signed-off-by: Samuel Ortiz <samuel.ortiz@...>

Applied, thanks a lot.

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Bjorn Helgaas | 3 Mar 2006 00:09
Picon
Favicon

[PATCH 7/9] IRDA: adjust pnp_register_driver signature

Remove the assumption that pnp_register_driver() returns the number of
devices claimed.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas <at> hp.com>

Index: work-mm4/drivers/net/irda/nsc-ircc.c
===================================================================
--- work-mm4.orig/drivers/net/irda/nsc-ircc.c	2006-02-22 09:55:50.000000000 -0700
+++ work-mm4/drivers/net/irda/nsc-ircc.c	2006-02-22 10:06:53.000000000 -0700
 <at>  <at>  -207,7 +207,7  <at>  <at> 
  	/* Register with PnP subsystem to detect disable ports */
 	ret = pnp_register_driver(&nsc_ircc_pnp_driver);

- 	if (ret >= 0)
+ 	if (!ret)
  		pnp_registered = 1;

 	ret = -ENODEV;
Vicent Tamarit | 3 Mar 2006 10:49
Picon

irda-usb

Hello,
I've read some problems with sigmatel 4210 devices 
(like conceptronic CiR4U).
Wwhen the dongles is connected appears an error like:

IRDA-USB found at address 3, Vendor: 66f, Product: 4210 
irda_usb_parse_endpoints(), And our endpoints are : in=02, out=01 (512), 
int=00 Assertion failed!
drivers/net/irda/irda-usb.c:irda_usb_parse_endpoints:1243 
self->bulk_out_mtu == 64 
irda_usb_init_qos(), dongle says speed=0x37F, size=0x20, window=0x8, 
bofs=0x80, turn=0x4 
IrDA: Registered device irda0 

The error "Assertion Failed" is due to a problem with the support 
for EHCI-HDC,
it can be solved deactivating this module (if you configure it like a
module).

Regards
 Vicent Tamarit

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Nick Fedchik | 6 Mar 2006 09:32
Picon

Re: irda-usb

В сообщении от Friday 03 March 2006 11:49 Vicent Tamarit написал(a):

> irda_usb_parse_endpoints(), And our endpoints are : in=02, out=01 (512),
> int=00 Assertion failed!

> The error "Assertion Failed" is due to a problem with the support
> for EHCI-HDC,
> it can be solved deactivating this module (if you configure it like a
> module).
The message above can be ignored and commented out in the new experimental 
irda-usb.c module.

--

-- 
Best Regards, 
Nick Fedchik

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
Samuel Ortiz | 8 Mar 2006 23:59
Picon

Re: irda-usb

On Mon, 6 Mar 2006, ext Nick Fedchik wrote:

> ? ????????? ?? Friday 03 March 2006 11:49 Vicent Tamarit ???????(a):
>
> > irda_usb_parse_endpoints(), And our endpoints are : in=02, out=01 (512),
> > int=00 Assertion failed!
>
> > The error "Assertion Failed" is due to a problem with the support
> > for EHCI-HDC,
> > it can be solved deactivating this module (if you configure it like a
> > module).
> The message above can be ignored and commented out in the new experimental
> irda-usb.c module.
It can be ignored, but not commented out. The maximum length for
bulk_out_mtu should be 64, 512 is just out of spec.

Cheers,
Samuel.

> --
> Best Regards,
> Nick Fedchik
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
(Continue reading)

irda | 9 Mar 2006 12:34
Picon

sniffing infrared traffic

I want to sniff the traffic between two infrared enabled devices (two
mobile phones) using a linux laptop.                    

Is it possible to (re)configure the irda modules so that it is possible to
only sniff the traffic, and that the laptop does not interact with the phones?
I have the problem that the phones want to comunicate with the laptop instead
with each other.

Disabling Discovery on the laptop does not help. Any pointers in the right
direction are highly appreciated.

Regards,

Paul

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Jean Tourrilhes | 9 Mar 2006 19:51
Picon
Favicon

Re: sniffing infrared traffic

Paul wrote :
> 
> I want to sniff the traffic between two infrared enabled devices (two
> mobile phones) using a linux laptop.                    
> 
> Is it possible to (re)configure the irda modules so that it is
> possible to only sniff the traffic, and that the laptop does not
> interact with the phones?  I have the problem that the phones want
> to comunicate with the laptop instead with each other.
> 
> Disabling Discovery on the laptop does not help. Any pointers in the right
> direction are highly appreciated.

	That's actually an interesting project, but there is some work
to do, and some of it might be messy. Most of what you need is already
in place. The only problem is to manage speed changes.

	The first issue is that IrDA is directional with a narrow
angle, which make it impossible to aim in two different directions at
180 degrees. One solution is to use multiple dongles to spy on the
linux box. The other solution is to use a mirror, and have all 3
devices in front of the mirror. Lastly, irdadump parsing support
unbalanced parsing, so even if you spy only one device, irdadump can
do something with that.
	Now, for discovery. In theory, phones should only try to
connect to devices that implement the service they require. They often
use the 'hint' bits to select which device to connect to. So, you you
unload all ircomm modules and kill any Obex application, Linux should
stop advertising those services, and the phone should try to connect
to the other phone.
(Continue reading)

Jean Tourrilhes | 10 Mar 2006 19:05
Picon
Favicon

Re: Seek help of detecting a USB Irda Dongle on Linux

On Sat, Mar 11, 2006 at 01:49:40AM +0800, Angelo Chu wrote:
> Dear Jean, 
>  
> I hope you will give me some suggestions on how can I detect my 
> USB IrDA Dongle on Linux(Kernel 2.6.15.6). 
>  
> I know you are working on irda-utils as volunteer,but I do need 
> your help.I have a IrDA USB Dongle,which I don't know what's 
> the brand name because it's cheap.By the way,I've compiled my 
> kernel with appropriate usb module,irda related module and 
> usb-irda module.However,when I type "dmesg | grep irda",it said 
> irda_init() something like that.It seems that my device has not 
> assigned a name,it was only detected as a device in USB.As a 
> result,I cannot "irattach --device" because it didn't detect as 
> a device.If detected,it should be irda0 if I don't have any 
> other irda device. 
>  
> I hope you will kindly help me out because I've been struggling 
> by this little troublesome device for a few weeks.And I know 
> you are an expert on irda,wireless and such on Linux.Please 
> kindly drop me a line if you have your precious suggestions to 
> me.Thanks. 
>  
> Yours sincerely, 
> Angelo 

	You need to identify it at the USB level. Check the Wireless
LAN howto on how to identify a card, basically you need to use 'lsusb'.
	There is 2 types of USB devices that are supported, the old
irda-usb (you are unlikely to have one) and the old stir4200 (you may
(Continue reading)

Samuel Ortiz | 14 Mar 2006 02:34
Picon

Re: Re: Seek help of detecting a USB Irda Dongle on Linux

On Fri, 10 Mar 2006, ext Jean Tourrilhes wrote:

> 	You need to identify it at the USB level. Check the Wireless
> LAN howto on how to identify a card, basically you need to use 'lsusb'.
> 	There is 2 types of USB devices that are supported, the old
> irda-usb (you are unlikely to have one) and the old stir4200 (you may
> have one of those). Newer sigmatel devices are currently in progress,
> there is a beta driver for 2.4.X and it's being ported to 2.6.X,
> check the mailing list about that.
Angelo, did you manage to retrieve your device's USB IDs (vendor and
product) ?

Cheers,
Samuel. 

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642

Gmane