只读特性发送通知

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
amine_benamor
Offline
Last seen:1 year 7 months ago
加入:2019-05-02 11:16
只读特性发送通知

Hello Dialog,

I have a system that will communicate with a mobile app through DA14681 BLE device.

This system is equipped with a smartcard reader and I have a read/notify characteristic that handles the smart card status (inserted or not). I need to generate a notification whenever a smart card is inserted knowing that the characteristic value is modified from the DA14681 firmware and not from the moblie application. Can you please guide me on how to do that ?

Thank you

Keywords:
Device:
PM_Dialog
Offline
Last seen:3 days 7 hours ago
Staff
加入:2018-02-08 11:03
Hi amine_benamor,

Hi amine_benamor,

Can you please clarify your questions and try to explain what you would like to accomplish with the SmartCard and the notifications?

In the meanwhile, you could check the following tutorials as well:

Custom Bluetooth Low Energy Profile

SW Example: DA1468x BLE customer service

Thanks, PM_Dialog

amine_benamor
Offline
Last seen:1 year 7 months ago
加入:2019-05-02 11:16
Hi Dialog,

Hi Dialog,

Okay, As I mentionned I have a system equipped with a smart card reader, I would like to create a characateristic in a ble service that takes care of the status of the reader (whether there is a card in the slot or not). the service characteristic has read or notify permissons. My requirements say that whenever there is a change in the card reader status (card inserted for example) I need to send a notification to the android application that manages the system . My problem is that I don't know how to send this notification when an external event happens (like the one I mentionned) but I can do it when writing directly to the characteristic value from light blue application.

ps: my code is based onSW Example: DA1468x BLE customer service

I hope I could clarify my question

Thanks

PM_Dialog
Offline
Last seen:3 days 7 hours ago
Staff
加入:2018-02-08 11:03
Hi amine_benamor,

Hi amine_benamor,

Let me check it and I will get back to you as soon as possible.

Thanks, PM_Dialog

amine_benamor
Offline
Last seen:1 year 7 months ago
加入:2019-05-02 11:16
Hello PM_Dialog

Hello PM_Dialog

I've managed to do what I asked you following the battery level service in the pxp reporter project.

Thank you for your support.

amine_benamor

PM_Dialog
Offline
Last seen:3 days 7 hours ago
Staff
加入:2018-02-08 11:03
Hi amine_benamor.

Hi amine_benamor.

Glad that you have managed to do it and thanks for your indication. If you have any other follow up question, don’t hesitate to create a new forum post.

Thanks, PM_Dialog