How to notify GATT characteristic to send new sensor value to GATT client (custom BLE service)BlueZ: How to set up a GATT server from the command lineBLE Android, can't enable more than 1 notify on read characteristicsSending GATT Attributes Client -> ServerAfter Pairing to BlueTooth LE and get Gatt/Characteristics and Descriptors for Custom Device What next?Q: Notify and write to Gatt CharacteristicWhen/How is a BLE GATT Notify/Indicate is send on physical layerHow to time a BLE GATT exchange with Android Bluetooth APIs?Issue when using RxBleClient for scanning BLE devices which are in the backgroundBLE, the more characteristics and services the more slowlyBLE NOTIFY characteristic not notifying

Checks user level and limit the data before saving it to mongoDB

What term is being referred to with "reflected-sound-of-underground-spirits"?

Critique of timeline aesthetic

a sore throat vs a strep throat vs strep throat

Elements other than carbon that can form many different compounds by bonding to themselves?

Rivers without rain

Do I have an "anti-research" personality?

How do I check if a string is entirely made of the same substring?

How come there are so many candidates for the 2020 Democratic party presidential nomination?

Multiple options vs single option UI

What does ゆーか mean?

Can I grease a crank spindle/bracket without disassembling the crank set?

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

Philosophical question on logistic regression: why isn't the optimal threshold value trained?

Two field separators (colon and space) in awk

Implications of cigar-shaped bodies having rings?

If a planet has 3 moons, is it possible to have triple Full/New Moons at once?

What is causing the white spot to appear in some of my pictures

Was there a Viking Exchange as well as a Columbian one?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

Don’t seats that recline flat defeat the purpose of having seatbelts?

Why do games have consumables?

Is there really no use for MD5 anymore?

A ​Note ​on ​N!



How to notify GATT characteristic to send new sensor value to GATT client (custom BLE service)


BlueZ: How to set up a GATT server from the command lineBLE Android, can't enable more than 1 notify on read characteristicsSending GATT Attributes Client -> ServerAfter Pairing to BlueTooth LE and get Gatt/Characteristics and Descriptors for Custom Device What next?Q: Notify and write to Gatt CharacteristicWhen/How is a BLE GATT Notify/Indicate is send on physical layerHow to time a BLE GATT exchange with Android Bluetooth APIs?Issue when using RxBleClient for scanning BLE devices which are in the backgroundBLE, the more characteristics and services the more slowlyBLE NOTIFY characteristic not notifying






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I'm trying to notify a GATT characteristic where an external BLE GATT client has registered to (pure BLE / no mobile device lib). I can successfully register for notify with my external GATT client (running on a microcontroller). However, when updating the characteristic on Movesense, no notify event seems to arrive at GATT client.
The characteristic value is written in notify callback, when new sensor data is available via asyncPut():



WB_RES::Characteristic newCharValue;
...
asyncPut(WB_RES::LOCAL::COMM_BLE_GATTSVC_SVCHANDLE_CHARHANDLE(),
AsyncRequestOptions::Empty,
mSvcHandle,
mCharHandle,
newCharValue);


The GATT service is created based on CustomGATTSvcClient example.
The characteristic properties are READ, WRITE, NOTIFY.
The characteristic value is written after the handles are successfully assigned from post and get callback.










share|improve this question

















  • 1





    What BLE stack? Firmware? Hardware? Is the code you added is a snippet from your firmware or client? Most firmware implementations I saw have separate API calls: one to update the characteristic's value and another to trigger a notification - see if that is the case.

    – bavaza
    Mar 24 at 8:23












  • If you use an app such as nRF connect, do you receive the notification there? And maybe you need to subscribe the characteristics first. In nRF connect there is a button for this also, so you can try out there.

    – maze
    Mar 27 at 9:20

















0















I'm trying to notify a GATT characteristic where an external BLE GATT client has registered to (pure BLE / no mobile device lib). I can successfully register for notify with my external GATT client (running on a microcontroller). However, when updating the characteristic on Movesense, no notify event seems to arrive at GATT client.
The characteristic value is written in notify callback, when new sensor data is available via asyncPut():



WB_RES::Characteristic newCharValue;
...
asyncPut(WB_RES::LOCAL::COMM_BLE_GATTSVC_SVCHANDLE_CHARHANDLE(),
AsyncRequestOptions::Empty,
mSvcHandle,
mCharHandle,
newCharValue);


The GATT service is created based on CustomGATTSvcClient example.
The characteristic properties are READ, WRITE, NOTIFY.
The characteristic value is written after the handles are successfully assigned from post and get callback.










share|improve this question

















  • 1





    What BLE stack? Firmware? Hardware? Is the code you added is a snippet from your firmware or client? Most firmware implementations I saw have separate API calls: one to update the characteristic's value and another to trigger a notification - see if that is the case.

    – bavaza
    Mar 24 at 8:23












  • If you use an app such as nRF connect, do you receive the notification there? And maybe you need to subscribe the characteristics first. In nRF connect there is a button for this also, so you can try out there.

    – maze
    Mar 27 at 9:20













0












0








0








I'm trying to notify a GATT characteristic where an external BLE GATT client has registered to (pure BLE / no mobile device lib). I can successfully register for notify with my external GATT client (running on a microcontroller). However, when updating the characteristic on Movesense, no notify event seems to arrive at GATT client.
The characteristic value is written in notify callback, when new sensor data is available via asyncPut():



WB_RES::Characteristic newCharValue;
...
asyncPut(WB_RES::LOCAL::COMM_BLE_GATTSVC_SVCHANDLE_CHARHANDLE(),
AsyncRequestOptions::Empty,
mSvcHandle,
mCharHandle,
newCharValue);


The GATT service is created based on CustomGATTSvcClient example.
The characteristic properties are READ, WRITE, NOTIFY.
The characteristic value is written after the handles are successfully assigned from post and get callback.










share|improve this question














I'm trying to notify a GATT characteristic where an external BLE GATT client has registered to (pure BLE / no mobile device lib). I can successfully register for notify with my external GATT client (running on a microcontroller). However, when updating the characteristic on Movesense, no notify event seems to arrive at GATT client.
The characteristic value is written in notify callback, when new sensor data is available via asyncPut():



WB_RES::Characteristic newCharValue;
...
asyncPut(WB_RES::LOCAL::COMM_BLE_GATTSVC_SVCHANDLE_CHARHANDLE(),
AsyncRequestOptions::Empty,
mSvcHandle,
mCharHandle,
newCharValue);


The GATT service is created based on CustomGATTSvcClient example.
The characteristic properties are READ, WRITE, NOTIFY.
The characteristic value is written after the handles are successfully assigned from post and get callback.







bluetooth bluetooth-lowenergy gatt movesense






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 22 at 17:19









HenrixHenrix

337




337







  • 1





    What BLE stack? Firmware? Hardware? Is the code you added is a snippet from your firmware or client? Most firmware implementations I saw have separate API calls: one to update the characteristic's value and another to trigger a notification - see if that is the case.

    – bavaza
    Mar 24 at 8:23












  • If you use an app such as nRF connect, do you receive the notification there? And maybe you need to subscribe the characteristics first. In nRF connect there is a button for this also, so you can try out there.

    – maze
    Mar 27 at 9:20












  • 1





    What BLE stack? Firmware? Hardware? Is the code you added is a snippet from your firmware or client? Most firmware implementations I saw have separate API calls: one to update the characteristic's value and another to trigger a notification - see if that is the case.

    – bavaza
    Mar 24 at 8:23












  • If you use an app such as nRF connect, do you receive the notification there? And maybe you need to subscribe the characteristics first. In nRF connect there is a button for this also, so you can try out there.

    – maze
    Mar 27 at 9:20







1




1





What BLE stack? Firmware? Hardware? Is the code you added is a snippet from your firmware or client? Most firmware implementations I saw have separate API calls: one to update the characteristic's value and another to trigger a notification - see if that is the case.

– bavaza
Mar 24 at 8:23






What BLE stack? Firmware? Hardware? Is the code you added is a snippet from your firmware or client? Most firmware implementations I saw have separate API calls: one to update the characteristic's value and another to trigger a notification - see if that is the case.

– bavaza
Mar 24 at 8:23














If you use an app such as nRF connect, do you receive the notification there? And maybe you need to subscribe the characteristics first. In nRF connect there is a button for this also, so you can try out there.

– maze
Mar 27 at 9:20





If you use an app such as nRF connect, do you receive the notification there? And maybe you need to subscribe the characteristics first. In nRF connect there is a button for this also, so you can try out there.

– maze
Mar 27 at 9:20












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304782%2fhow-to-notify-gatt-characteristic-to-send-new-sensor-value-to-gatt-client-custo%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304782%2fhow-to-notify-gatt-characteristic-to-send-new-sensor-value-to-gatt-client-custo%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript