×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    24

    Regarding IR connectivity between 7650 and Windows

    Hello
    We are attempting a Windows2000-to-7650 IrDA application.

    On the 7650 side, we have written an application using the
    Series60 IrDA sockets API. This is based on the sample "Creating a
    simple beaming application: Secondary connectivity".
    This 7650 application simply waits on an IrDA socket for some data.

    On the Windows2000 side, we have a MA-620 USB Infrared Adapter.

    We had the following experience:
    The data that we 'sent' from the Windows application arrived
    on the 7650 as an SMS message in its Inbox.

    Is anything to be done/configured/set on the device side, so that
    transmitted IR data can be received by the appropriate application and not as an SMS?

    Thanking in Anticpiation
    Suyog Vaidya

  2. #2
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    73

    not bad

    at least you have the devices connected right
    I also wrote apps according to sdk How to create a simple beaming application Secondary — RECEIVE
    but it crashes in both emulator and 7650
    how did you fix it ?thanks!

    steven2ffff@vip.sina.com

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    5
    Hello there I am really sorry that I have to put a question here but my problem is urgent and I am constrained by time.
    I am tring to connect my mobile phone to PC through IR on Win XP plate form for. We have developed our own SDK for using AT command set to send SMS to mobile phones. Primary testing was done through COMM port. Now we r doing the IR connectivity.

    I am using irsockets to connect my Nokia 6100 with my computer. The device is correctly discovered when I use getsocketopt() with IRLMP_ENUMDEVICES. The problem comes when I try to connect to the mobile phone it gives error.
    Here is the discription from msdn:

    10061:Connection refused.

    I cannt seem to understand is the computer client or server in the IR communication. Also the address structure for IR is:

    SOCKADDR_IRDA address = {AF_IRDA, 0, 0, 0, 0, "My service"}
    It is passed to the connect call and the four zeros are set to the device id.Here the last argument is the service name to connect to or in case bind with. The client connects to the mobile with this service name and a lookup is performed against it for LSAP-SEL entry. What would be the value of this entry in case the mobile or PC.

    The other way to get the LSAP-SEL entry is through the IAS_Query option to getsocketopt(). The structure for IAS query is:
    typedef struct _WINDOWS_IAS_QUERY
    {
    u_char irdaDeviceID[4];
    char irdaClassName[IAS_MAX_CLASSNAME];
    char irdaAttribName[IAS_MAX_ATTRIBNAME];
    u_long irdaAttribType;
    union
    {
    LONG irdaAttribInt;
    struct
    {
    u_long Len;
    u_char OctetSeq[IAS_MAX_OCTET_STRING];
    } irdaAttribOctetSeq;
    struct
    {
    u_long Len;
    u_long CharSet;
    u_char UsrStr[IAS_MAX_USER_STRING];
    } irdaAttribUsrStr;
    } irdaAttribute;
    }
    where I have obtained the DeviceID and I know that the AttributeName is IrDA:IrLMP:LsapSel. The thing that I do not know is the ClassName which is the sevice name to which the LSAP-SEL is bound.

    I am not using nokia SDK and want to give connectivity for all phones.

    my email is:
    awaise_sheikh@yahoo.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×