Welcome to WiFi-Forum

Go Back   WiFi-Forum - Wi-Fi Discussion Forum > Bluetooth Discussion Forums > BlueTooth Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2009, 04:59 AM
vinayc1008 vinayc1008 is offline
Junior Member
 
Join Date: Feb 2009
Location: India
Posts: 5
Default Bluetooth Serial Port Profile: Latency requirement

I have a device having serial port interface. I am planning to replace the interface by Bluetooth Serial Port Profile. But i have a specific reqirement in that system that, the data from the device has to reach PC within 50ms. Is is possible to achieve this latency requirement using Bluetooth Serial port Profile.
Reply With Quote
  #2  
Old 02-11-2009, 06:41 PM
connekt connekt is offline
Junior Member
 
Join Date: Feb 2009
Location: Canada
Posts: 12
Default

Quote:
Originally Posted by vinayc1008 View Post
I have a device having serial port interface. I am planning to replace the interface by Bluetooth Serial Port Profile. But i have a specific reqirement in that system that, the data from the device has to reach PC within 50ms. Is is possible to achieve this latency requirement using Bluetooth Serial port Profile.
Yes i think you should be fine
the latency introduced for each bluetooth packet is about 25 to 40 ms.
What kind of data are you sending? do you have lots of data to send at a time or is it small payloads that are spread apart?
Reply With Quote
  #3  
Old 02-11-2009, 10:48 PM
vinayc1008 vinayc1008 is offline
Junior Member
 
Join Date: Feb 2009
Location: India
Posts: 5
Default

data lenght is of 10 bytes and there can be maximum of one such data packet every 50ms.
Is there any way where i can know the latency introduced by each layer in SPP.
ie latency in Baseband, LMP, L2CAP, RFCOMM and SDP
Reply With Quote
  #4  
Old 02-11-2009, 10:56 PM
vinayc1008 vinayc1008 is offline
Junior Member
 
Join Date: Feb 2009
Location: India
Posts: 5
Default

Quote:
Originally Posted by connekt View Post
Yes i think you should be fine
the latency introduced for each bluetooth packet is about 25 to 40 ms.
What kind of data are you sending? do you have lots of data to send at a time or is it small payloads that are spread apart?
data lenght is of 10 bytes and there can be maximum of one such data packet every 50ms.
Is there any way where i can know the latency introduced by each layer in SPP.
ie latency in Baseband, LMP, L2CAP, RFCOMM and SDP
Reply With Quote
  #5  
Old 02-11-2009, 11:14 PM
connekt connekt is offline
Junior Member
 
Join Date: Feb 2009
Location: Canada
Posts: 12
Default

well you'll definitely be taking a hit on speed since you have such small payloads. That means there will be a latency added to every 10 bytes of data. If you had larger payloads, then the latency wouldn't affect the data transfer speed as much since you'd have a better ratio between the data transferred and the initial latency.

I'm not sure how you could find out about the latency introduced by each layer. maybe you would be better off not using SPP and using HCI instead. Since it is a much lower level profile and therefore i would assume it would require less overhead for each packet.
Reply With Quote
  #6  
Old 02-11-2009, 11:48 PM
vinayc1008 vinayc1008 is offline
Junior Member
 
Join Date: Feb 2009
Location: India
Posts: 5
Default

Quote:
Originally Posted by connekt View Post
well you'll definitely be taking a hit on speed since you have such small payloads. That means there will be a latency added to every 10 bytes of data. If you had larger payloads, then the latency wouldn't affect the data transfer speed as much since you'd have a better ratio between the data transferred and the initial latency.

I'm not sure how you could find out about the latency introduced by each layer. maybe you would be better off not using SPP and using HCI instead. Since it is a much lower level profile and therefore i would assume it would require less overhead for each packet.
Thanks, I will explore more on HCI.

And also i would like to explain more about the device.
The device has all the features of a keyboard and mouse integrated in it.
But in addition to that it has a buzzer which can be controlled by PC.
So i think the device cannot belong to Human Interface Device Standard, because HID doesnot give any command to control Buzzer in the device.
So I thought of going for SPP.

Meanwhile, I have gone through the specification of HID profile.
There is a latency worksheet provided for the HID (Bluetooth Specification, HID Profile Section 6.6.4). According to that specification, the maximum latency introduced by the HID profile stack is around 28.76ms. Since the HID profile has more layer than SPP, can I assume that delay in SPP is lesser that HID?
Reply With Quote
  #7  
Old 02-12-2009, 12:02 AM
connekt connekt is offline
Junior Member
 
Join Date: Feb 2009
Location: Canada
Posts: 12
Default

hmmm i'm not sure but I would guess that it's not a great assumption. I'm not familiar with HID but I'm guessing that HID and SPP have different layers and build on top of different stacks. I would assume that different stacks have different latencies depending on complexity of each packet.

But I am not an expert, my main source of experience comes from developing a product that I posted on this forum
http://www.wifi-forum.com/wf/showthread.php?t=129971

It uses the Serial Port Profile and I did some research on the latency introduced in order to understand the speeds I was witnessing.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bluetooth serial port microBCB BlueTooth Forum 7 10-13-2008 05:48 AM
FREE DOWNLOAD 2009's CRACKED SOFTWARE:CADWORX PLANT PRO 2008,CADWORX PRO STEEL 2008! LPSoftStore General Mobile Forum 0 09-29-2008 07:18 AM
FREE DOWNLOAD 2009's CRACKED SOFTWA ZUKEN CADSTAR v10.0,AUTODESK ARCHITECTURE 2009 LPSoftStore General Mobile Forum 1 09-17-2008 04:43 PM
Getting printer driver to use bluetooth 'virtual serial port' Bloomsburybill BlueTooth Forum 2 09-13-2005 02:15 AM




All times are GMT -7. The time now is 09:35 PM.

vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. All Contents Copyright © Wifi-Forum.com