Roel Kluin | 17 Jan 2010 15:58
Picon
Gravatar

irda: two branches in via_ircc_change_dongle_speed() are the same

in drivers/net/irda/via-ircc.c via_ircc_change_dongle_speed()

dongle_id case 0x0d:
two branches are the same whether `if (IsSIROn(iobase))' is true
or not. how should this be fixed?

Roel

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
Wallner Andreas | 20 Jan 2010 14:55
Picon
Favicon

Access to IrDA PHY Level

Hi,
 
I have to following problem: we buit an IrDA FIR core for a FPGA / ASIC, and we want to verify this core against an interface we know is standard compliant. Since we don't have a full IrDA Stack available ATM, and want to test it layer-by-layer anyway we thought of using one of our notebooks IrDA interfaces.
 
I have no clue about the IrDA implementation on Linux, that why I wanted to ask wheter it is possible to gain access to the IrDA PHY level (the level where you would normally begin to write your IrDA stack and implement IrLAP?
 
Regards,
Andreas Wallner

FH JOANNEUM Gesellschaft mbH
Rechtsform/Legal form: GmbH
Firmenbuchgericht/Court of registry: Landesgericht für ZRS Graz
Firmenbuchnummer/Company registration: FN 125888 f
DVR: 0813559
UID-Nr.: ATU 42361001
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
irda-users mailing list
irda-users@...
http://lists.sourceforge.net/lists/listinfo/irda-users
John K. Luebs | 21 Jan 2010 00:23

Re: Access to IrDA PHY Level

Check out the PF_PACKET interface documented in the packet(7) man page.
You can open a packet socket with SOCK_RAW and send pretty much
raw frames out an IrDA device from userspace.

You can use the SIOCSBANDWIDTH ioctl on the packet to set the data rate.
You might have to explore the linux/irda.h header directly and
if_irda_req struct for details as I don't believe a lot of this low
level stuff is documented formally.

--jkl

Wallner Andreas wrote:
> Hi,
>  
> I have to following problem: we buit an IrDA FIR core for a FPGA / 
> ASIC, and we want to verify this core against an interface we know is 
> standard compliant. Since we don't have a full IrDA Stack available 
> ATM, and want to test it layer-by-layer anyway we thought of using one 
> of our notebooks IrDA interfaces.
>  
> I have no clue about the IrDA implementation on Linux, that why I 
> wanted to ask wheter it is possible to gain access to the IrDA PHY 
> level (the level where you would normally begin to write your IrDA 
> stack and implement IrLAP?
>  
> Regards,
> Andreas Wallner
>
> FH JOANNEUM Gesellschaft mbH
> Rechtsform/Legal form: GmbH
> Firmenbuchgericht/Court of registry: Landesgericht für ZRS Graz
> Firmenbuchnummer/Company registration: FN 125888 f
> DVR: 0813559
> UID-Nr.: ATU 42361001
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ------------------------------------------------------------------------
>
> _______________________________________________
> irda-users mailing list
> irda-users@...
> http://lists.sourceforge.net/lists/listinfo/irda-users
>   

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
Wallner Andreas | 21 Jan 2010 14:45
Picon
Favicon

Re: Access to IrDA PHY Level

Hi,
 
Thank you for your answer, PF_PACKET seems to be exactly what we need. After reading the PF_PACKET manpage I have two questions:
 
I suppose I would use ETH_P_IRDA as protocol?
That one was not that hard, but what do I do with the addresses? I saw that there is a sockaddr_ll struct, which is a device independent physical layer address... But what should I do with it, since there is nothing to address on this layer? Do I have to specify anywhere "which" interface to use?
I found much information about using PF_PACKET for ethernet sockets, but I couldn't find anything about how to use it with IrDA sockets...
 
Regards,
Andreas

Von: John K. Luebs [mailto:jkluebs-/p0RJYZkKrsK3IM9cGFl5Q@public.gmane.org]
Gesendet: Do 21.01.2010 00:23
An: Wallner Andreas
Cc: irda-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Betreff: Re: [irda-users] Access to IrDA PHY Level

Check out the PF_PACKET interface documented in the packet(7) man page.
You can open a packet socket with SOCK_RAW and send pretty much
raw frames out an IrDA device from userspace.

You can use the SIOCSBANDWIDTH ioctl on the packet to set the data rate.
You might have to explore the linux/irda.h header directly and
if_irda_req struct for details as I don't believe a lot of this low
level stuff is documented formally.

--jkl

Wallner Andreas wrote:
> Hi,

> I have to following problem: we buit an IrDA FIR core for a FPGA /
> ASIC, and we want to verify this core against an interface we know is
> standard compliant. Since we don't have a full IrDA Stack available
> ATM, and want to test it layer-by-layer anyway we thought of using one
> of our notebooks IrDA interfaces.

> I have no clue about the IrDA implementation on Linux, that why I
> wanted to ask wheter it is possible to gain access to the IrDA PHY
> level (the level where you would normally begin to write your IrDA
> stack and implement IrLAP?

> Regards,
> Andreas Wallner
>
> FH JOANNEUM Gesellschaft mbH
> Rechtsform/Legal form: GmbH
> Firmenbuchgericht/Court of registry: Landesgericht für ZRS Graz
> Firmenbuchnummer/Company registration: FN 125888 f
> DVR: 0813559
> UID-Nr.: ATU 42361001
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ------------------------------------------------------------------------
>
> _______________________________________________
> irda-users mailing list
> irda-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> http://lists.sourceforge.net/lists/listinfo/irda-users
>  


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
irda-users mailing list
irda-users@...
http://lists.sourceforge.net/lists/listinfo/irda-users
Laurent ROCHE | 21 Jan 2010 19:56
Picon
Favicon

Uwatec Aladin TEC2G

Hello All,

I am trying to connect my dive computer to my laptop ... to no avail so far.

I am using a HP Omnibook 6100 laptop with Ubuntu 9.04.
With the same computer but running Windows I have been able to link to this dive computer and my Palm (Clié N770).
I am not interested in using IRDA for the Clié (I have enough cables for that) but the only way I can download
info from my dive computer is with IRDA.

I am not sure whether I have every thing right or not to activate IRDA on Linux ? Or whether it's the program to
download the info that's not working ?

Any help will be apreciated,
Cheers,
L <at> u
The Computing Froggy

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev

Gmane