Return-Path: Message-ID: <20050228052232.66579.qmail@web60902.mail.yahoo.com> From: Ka Kin Cheung Subject: Re: [Bluez-users] Re: sdp problem To: bluez-users@lists.sourceforge.net In-Reply-To: <20050228042032.GB5210@snoopy.src.ricoh.co.jp> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-699969925-1109568152=:64845" Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 28 Feb 2005 13:22:32 +0800 (CST) --0-699969925-1109568152=:64845 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 8bit Hi Alain, Thanks for your comment. But I have questions about headset/handsfree part. You said that I can directly use RFCOMM socket i.e. use the functions socket(), bind(), listen() and accept(). But when I implemented in my program and then run it, there isn't anything that I can see. Then I asked my project's tutor, and he said that SDP is needed. Then I tried to add SDP services in my Linux PC, but the strange thing is, the T610 cannot show "synchronisation" in the "My device" list's "service list" so that even though I can add my Linux PC in my "handsfree device" list, the T610 cannot connect to the PC by showing "Nluetooth connection failed". So, what can I do for SDP? And how the program for the phone and even other mobile devices can be listened in a specific channel can be written? Is there any example code for it? I provide the information here so that you can know what I mean and I can do. Channel for connecting T610: 1 code for sdp implemented into my program: system("sdptool add SAP"); sdp_main(argc, argv); //sdp_main is the main function in sdptool.c //and I modified it for implementing in my main program I do hope that you can help me according to my provided information. Michael Alain Volmat wrote: Hi Michael, as Luis wrote you need to write a little program which listen as a specific (protocol/channel). As far as file transfer/object push, I think both are located on the top of the OBEX layer what you should do is to play a bit with openobex. As far as headset/handsfree are concerned, it needs SCO and AT commands directly on the top of RFCOMM (if I remember correctly), so for handling of AT commands, you can directly use RFCOMM socket (socket,bind,listen,accept). Regards, Alain * Ka Kin Cheung [Mon, 28 Feb 2005 at 12:06 +0800] > Hi Soraberri! > I wish to know how to implement the basic service profiles such as SIM Access, headset, handsfree, file transfer and Object Push so that the Linux PC can listen for the T610 client to connect to the PC? Thank you very much. > Michael > > soraberri <421246@posta.unizar.es> wrote: > Hi, > > Ka Kin Cheung wrote: > > Hi! > > The strange thing is here: > > For Linux, when my phone searched for my PC, the PC can be found and > > then added in the "My device" list, but when I looked at "Service list", > > none service can be found. Then I opened Windows XP and the bluetooth > > dongle driver was installed in my PC. Then I press "update" key to > > update services, and I found headset, synchronisation, object push and > > file transfer in the "Service list" for my Windows PC. So, how can I do > > for sdp in my Linux PC as my project is done on Linux? Thank you very > > much for your kindness. > > Michael > > You can advertise standard services in Linux using 'sdptool add ...' but > advertising is not the same as offering... To offer a real service, an > application has to be implemented and listening for clients at the > appropiate network protocols and ports. Maybe what it is happening in > windows is that most basic profiles are already implemented and > correctly advertised. With BlueZ you can also advertise them in order > to be seen by a remote device, but they won't work until you don't > implement them. I hope this helps. > > regards, > Luis > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > > > > --------------------------------- > Yahoo! ?u???C - ???m?????u?X?????u???I ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --------------------------------- Yahoo! ?u???C - ???m?????u?X?????u???I --0-699969925-1109568152=:64845 Content-Type: text/html; charset=big5 Content-Transfer-Encoding: 8bit
Hi Alain,
    Thanks for your comment. But I have questions about headset/handsfree part. You said that I can directly use RFCOMM socket i.e. use the functions socket(), bind(), listen() and accept(). But when I implemented in my program and then run it, there isn't anything that I can see. Then I asked my project's tutor, and he said that SDP is needed. Then I tried to add SDP services in my Linux PC, but the strange thing is, the T610 cannot show "synchronisation" in the "My device" list's "service list" so that even though I can add my Linux PC in my "handsfree device" list, the T610 cannot connect to the PC by showing "Nluetooth connection failed". So, what can I do for SDP? And how the program for the phone and even other mobile devices can be listened in a specific channel can be written? Is there any example code for it? I provide the information here so that you can know what I mean and I can do.
Channel for connecting T610: 1
code for sdp implemented into my program:
system("sdptool add SAP");
sdp_main(argc, argv); //sdp_main is the main function in sdptool.c
                                //and I modified it for implementing in my main program
    I do hope that you can help me according to my provided information.
Michael


Alain Volmat <avolmat@src.ricoh.co.jp> wrote:
Hi Michael,

as Luis wrote you need to write a little program which listen as a specific
(protocol/channel).

As far as file transfer/object push, I think both are located on the top
of the OBEX layer what you should do is to play a bit with openobex.

As far as headset/handsfree are concerned, it needs SCO and AT commands
directly on the top of RFCOMM (if I remember correctly), so for handling
of AT commands, you can directly use RFCOMM socket (socket,bind,listen,accept).

Regards,

Alain


* Ka Kin Cheung [Mon, 28 Feb 2005 at 12:06 +0800]

> Hi Soraberri!
> I wish to know how to implement the basic service profiles such as SIM Access, headset, handsfree, file transfer and Object Push so that the Linux PC can listen for the T610 client to connect to the PC? Thank you very much.
> Michael
> > soraberri <421246@posta.unizar.es> wrote:
> Hi,
>
> Ka Kin Cheung wrote:
> > Hi!
> > The strange thing is here:
> > For Linux, when my phone searched for my PC, the PC can be found and
> > then added in the "My device" list, but when I looked at "Service list",
> > none service can be found. Then I opened Windows XP and the bluetooth
> > dongle driver was installed in my PC. Then I press "update" key to
> > update services, and I found headset, synchronisation, object push and
> > file transfer in the "Service list" for my Windows PC. So, how can I do
> > for sdp in my Linux PC as my project is done on Linux? Thank you very
> > much for your kindness.
> > Michael
>
> You can advertise standard services in Linux using 'sdptool add ...' but
> advertising is not the same as offering... To offer a real service, an
> applicati on has to be implemented and listening for clients at the
> appropiate network protocols and ports. Maybe what it is happening in
> windows is that most basic profiles are already implemented and
> correctly advertised. With BlueZ you can also advertise them in order
> to be seen by a remote device, but they won't work until you don't
> implement them. I hope this helps.
>
> regards,
> Luis
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
>
> ---------------------------------
> Yahoo! ?u???C - ???m?????u?X?????u???I



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users



Yahoo! ?u???C - ???m?????u?X?????u???I
--0-699969925-1109568152=:64845-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users