I think you are right. I meant to say that if client initiates "Service Discovery", this process takes time to complete. So, if my mobile application already know what data already available,and know how to get it, our current mobile appl just simple go and get it by establish an connection and perform read and write to the connection. The other choice would be advertise the data via service records, and let mobile application perform Service Discovery first, then get connection out of the SR, and perform read and write, etc.
On Tue, Nov 17, 2009 at 9:48 AM, Nick Pelly <[email protected]> wrote: > Can you be more specific about how you get better performance through > SDP? What size data are you sending? Do you mean higher throughput or > higher latency? > > The dominant factor in short transfers over both SDP and RFCOMM is the > page scan, which would be 1-2 seconds no matter which protocol you > use. > > Nick > > On Tue, Nov 17, 2009 at 9:32 AM, Sean Liao <[email protected]> wrote: > > Although I personal feel service discovery is quiet fundamental in > generic > > bluetooth solution, it is actually not very high priority for my current > > products. Since we custom make the remote devices and home grown mobile > > applications, we feel getting data from connection is faster than going > thru > > SDP and get data from service records. Our application runs continuously > > and we are trying to shorten each cycle as short as possible. The down > side > > is that it requires the mobile appl understand proprietary data > > format/interface. > > Having say the above, we are planning to use service record next year for > > certain business cases that common interface is more important than > > performance. > > > > On Mon, Nov 16, 2009 at 2:02 PM, Nick Pelly <[email protected]> wrote: > >> > >> There is no explicit public SDP API. Android will automatically do SDP > >> for you when creating RFCOMM connections with BluetoothSocket and > >> BluetoothServerSocket. > >> > >> We haven't ruled out exposing some SDP at a later point, although its > >> not a high priority right now. Maybe you could outline what your use > >> case is and what kind of SDP API's you might like, to help our future > >> planning. > >> > >> Nick > >> > >> On Mon, Nov 16, 2009 at 12:36 PM, Sean Liao <[email protected]> > >> wrote: > >> > I don't see any trivial API to do service discovery in > android.bluetooth > >> > package. Is it support in current 2.0 release? > >> > If yes, I appreciate any pointer. > >> > If not, is it something already ruled out on Android platform, or > coming > >> > soon? > >> > Thanks in advance. > >> > Sean > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "Android Developers" group. > >> > To post to this group, send email to > [email protected] > >> > To unsubscribe from this group, send email to > >> > [email protected]<android-developers%[email protected]> > >> > For more options, visit this group at > >> > http://groups.google.com/group/android-developers?hl=en > >> > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Android Developers" group. > >> To post to this group, send email to > [email protected] > >> To unsubscribe from this group, send email to > >> [email protected]<android-developers%[email protected]> > >> For more options, visit this group at > >> http://groups.google.com/group/android-developers?hl=en > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

