Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Bluetooth Framework / Re: GATT Client - How Can I Improve Transmission Rate?
« Last post by briandunham on August 10, 2022, 03:46:29 AM »
So I put timers around the CwclGattClient::WriteCharacteristicValue(...) call and it takes about 78ms to 150ms to run that single line of code. And I am only sending 16 bytes per write notify. This seems incredibly slow as I'm only able to get transmission speeds of about 150 bytes per second. Is there really no other way to make this faster?

Here is a code snippet of how I'm measuring the time:

      DWORD startTime = GetTickCount();

      int Res = m_pGattClient->WriteCharacteristicValue(s_rxDataCharacteristic, (unsigned char*)msg, msg->msgLength, plNone);
      if (Res != WCL_E_SUCCESS)
         TRACE("Error: 0x%x\n", Res);
      else
      {
         result = TRUE;
         DWORD endTime = GetTickCount();

         TRACE("Time: %dms\n", endTime - startTime);
      }
12
And could my application be running both the GATT server and the GATT client simultaneously?

Usually yes, but depends on your hardware
13
I am already currently splitting the data into smaller chunks and have a dedicated write thread. Would changing my application to be the GATT server improve the write speed?

Unfortunatelly no,
14
Bluetooth Framework / Re: GATT Client - How Can I Improve Transmission Rate?
« Last post by briandunham on August 09, 2022, 05:32:25 PM »
And could my application be running both the GATT server and the GATT client simultaneously?
15
Bluetooth Framework / Re: GATT Client - How Can I Improve Transmission Rate?
« Last post by briandunham on August 09, 2022, 05:27:41 PM »
I am already currently splitting the data into smaller chunks and have a dedicated write thread. Would changing my application to be the GATT server improve the write speed?
16
Hello,

Connection parameters can be changed only on Windows 11 with MS drivers.

About writing characterisitc vakue: There are 2 ways to write long vakues for nowL

1. Split data to smallamounts.
2. Run Write operationin separate thread.
17
Bluetooth Framework / Re: GATT Client - How Can I Improve Transmission Rate?
« Last post by briandunham on August 09, 2022, 03:45:43 AM »
I should also mention that I am currently subscribing for notifications from the GATT client, which is mandatory for our design.
18
Bluetooth Framework / GATT Client - How Can I Improve Transmission Rate?
« Last post by briandunham on August 09, 2022, 03:42:21 AM »
I am trying to use the CwclGattClient::SetConnectionParams(const wclBluetoothLeConnectionParametersType Params) function to achieve higher throughput, and I get the returned error: 0X0005105F (WCL_E_BLUETOOTH_LE_FEATURE_NOT_SUPPORTED). I'm wondering if this is just a limitation of Windows 10? Or is this really just my BLE driver not supporting this capability? Does this just set the connection interval to be lower?

Are there other options for improving the transmission rate? My program currently does consecutive CwclGattClient::WriteCharacteristicValue(...) calls when sending large amounts of data and the time it takes to return from the WriteCharacteristicValue call seems to be very slow.
19
Bluetooth Framework / Re: Access denied
« Last post by Mike Petrichenko on July 28, 2022, 07:54:22 PM »
Hello,

This may appear when device lost link key (for classic devices) or when device requires authentication (for BLE devices).
20
Bluetooth Framework / Access denied
« Last post by MrPaulCarpenter on July 28, 2022, 05:12:04 PM »
Just recently my Windows program which I have been using for 3 years is sending back
 Error=0x00050029 Access denied
from the event handler fot wclClientConnectionConnectEvent

This is happening frequently.  I do not recall seeing it before.  I do not know how to resolve it.



Using wclBluetoothFramework version:7.15.0.0 wclCommunication version:7.7.1.0 wclCommon version:7.7.4.0
Pages: 1 [2] 3 4 ... 10