Forum >Is it possible to exchange data from BLE Beetle and a C# client?
Is it possible to exchange data from BLE Beetle and a C# client?

Hi guys,
I am planning to use a BLE Beetle micro-controller to read values from a force-sensitive resistor and send it to a client running in C#. I am using a sample code from Microsoft, where I can find, pair, and connect to my BLE Beetle. I can also list the services including DFB0 and its characteristics DFB1 and DFB2, send data (I can confirm BLE Beetle receives the data since its TX LED blinks whenever the data is sent).
However, when I try to read data from either the DFB1 or DFB2 characteristics, I receive a numerical data that makes no sense and when I try to subscribe for value change (i.g., set the characteristic's CCCD Notify attribute) I get this exception: The attribute cannot be written. (Exception from HRESULT: 0x80650003), although both characteristics have the Notifiable flag set.
In case it matters, I am using a CSR Harmony BLE dongle.
Any help would be appreciated.
Best,
Dennis.
I am planning to use a BLE Beetle micro-controller to read values from a force-sensitive resistor and send it to a client running in C#. I am using a sample code from Microsoft, where I can find, pair, and connect to my BLE Beetle. I can also list the services including DFB0 and its characteristics DFB1 and DFB2, send data (I can confirm BLE Beetle receives the data since its TX LED blinks whenever the data is sent).
However, when I try to read data from either the DFB1 or DFB2 characteristics, I receive a numerical data that makes no sense and when I try to subscribe for value change (i.g., set the characteristic's CCCD Notify attribute) I get this exception: The attribute cannot be written. (Exception from HRESULT: 0x80650003), although both characteristics have the Notifiable flag set.
In case it matters, I am using a CSR Harmony BLE dongle.
Any help would be appreciated.
Best,
Dennis.
2021-12-28 06:33:10 Hello users we here the right site online mahjong game now play this new card game and create the new high score.
ufc28496

2021-01-18 06:49:30 @denisrcs
did you find any workaround for this issue?
(other than using usb link)
mitvxkcd
did you find any workaround for this issue?
(other than using usb link)

2021-01-18 06:27:51 I tried the code give by Microsoft - https://github.com/microsoft/Windows-un ... nt.xaml.cs
it seems that when trying to subscribe to the characteristic value change event it throws the same exception
mitvxkcd
it seems that when trying to subscribe to the characteristic value change event it throws the same exception

2018-02-23 17:24:23 Does this note in the wiki apply to your situation?
https://www.dfrobot.com/wiki/index.php/ ... KU:DFR0267
"Q12. I am trying to connect my Bluno Beetle (acting as Central) with other BLE Arduino device, which is Adafruit Bluefruit (nRF51822). I have already everything I should. The Bluefruit BLE is default set to peripheral mode (as its firmware only supports peripheral mode actually). Any ideas why the connection doesn't want to establish automatically?
A. This is a compatibility problem. DFRobot BLE series products are all compatible, while not with other brand. This is why even with a pc(Linux, Windows, Mac etc.) which has the BLE feature, you still need to use a USB BLE-Link to work with our BLE product."
I've been using their BLE dongle they mention and it's working for me with the Bluno Beetle. I believe they both use the TI CC2540 BLE chip, whereas the dongle you're using has a Qualcomm chip. Not sure if that is what's causing your problem.
If that doesn't work, maybe this might help:
https://playground.arduino.cc/Code/CmdMessenger
http://e2e.ti.com/support/wireless_conn ... ergy/f/538
dsholt4
https://www.dfrobot.com/wiki/index.php/ ... KU:DFR0267
"Q12. I am trying to connect my Bluno Beetle (acting as Central) with other BLE Arduino device, which is Adafruit Bluefruit (nRF51822). I have already everything I should. The Bluefruit BLE is default set to peripheral mode (as its firmware only supports peripheral mode actually). Any ideas why the connection doesn't want to establish automatically?
A. This is a compatibility problem. DFRobot BLE series products are all compatible, while not with other brand. This is why even with a pc(Linux, Windows, Mac etc.) which has the BLE feature, you still need to use a USB BLE-Link to work with our BLE product."
I've been using their BLE dongle they mention and it's working for me with the Bluno Beetle. I believe they both use the TI CC2540 BLE chip, whereas the dongle you're using has a Qualcomm chip. Not sure if that is what's causing your problem.
If that doesn't work, maybe this might help:
https://playground.arduino.cc/Code/CmdMessenger
http://e2e.ti.com/support/wireless_conn ... ergy/f/538
