send/receive string via GATT in BLEWhat range of Bluetooth UUIDs can be used for vendor defined profiles?Improve INSERT-per-second performance of SQLite?Understanding the GATT protocol in BLESubscribe to a BLE Gatt notification AndroidHow come it is always the GATT server that exposes services?Sending GATT Attributes Client -> ServerSending and receiving data over Bluetooth Low Energy (BLE) using Telit BlueMod+SRAndroid: how to get the timestamp related to a measured characteristic of a BLE heart rate GATT service?Interpreting the flags for an adafruit BLE method to set a GATT characteristicCan I read data using only GATT characteristics or do I need a GATT service too?GATT API bluez - MI band 2

Difference between WMS layers and XYZ-Tiles

Why is oilcloth made with linseed oil?

What are the pros and cons for the two possible "gear directions" when parking the car on a hill?

What is the highest voltage from the power supply a Raspberry Pi 3 B can handle without getting damaged?

Music theory behind A chord in the key of G

How to Write SEO friendly blog posts

Hit the Bulls Eye with T in the Center

Why does independence imply zero correlation?

Encounter design and XP thresholds

Are all Ringwraiths called Nazgûl in LotR?

Where's this swanky house and vineyard near a mountain?

Heavily limited premature compiler translates text into excecutable python code

Can I say "I Java", or does it have to be "I do Java"?

Loss of power when I remove item from the outlet

Boss wants someone else to lead a project based on the idea I presented to him

Methodology: Writing unit tests for another developer

Is there a difference between an NFC and RFID chip?

What is the oldest commercial MS-DOS program that can run on modern versions of Windows without third-party software?

Prime sieve in Python

Too early in the morning to have SODA?

Can Ogre clerics use Purify Food and Drink on humanoid characters?

Can the pre-order traversal of two different trees be the same even though they are different?

How to maintain a closed environment for one person for a long period of time

career in signal processing



send/receive string via GATT in BLE


What range of Bluetooth UUIDs can be used for vendor defined profiles?Improve INSERT-per-second performance of SQLite?Understanding the GATT protocol in BLESubscribe to a BLE Gatt notification AndroidHow come it is always the GATT server that exposes services?Sending GATT Attributes Client -> ServerSending and receiving data over Bluetooth Low Energy (BLE) using Telit BlueMod+SRAndroid: how to get the timestamp related to a measured characteristic of a BLE heart rate GATT service?Interpreting the flags for an adafruit BLE method to set a GATT characteristicCan I read data using only GATT characteristics or do I need a GATT service too?GATT API bluez - MI band 2






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








1















I have been successfully sending and receiving hexa values via GATT using "Heart rate service" and with characteristic "Heart Rate Measurement". Now I need to send TX/RX strings over GATT. Can anyone help me out by giving suggestion about:



  1. Which service should I use to send string?

  2. Which characteristic should I use?

  3. If not possible by predefined services, what should I do?

I need to send some characters from server side. The data should be received by the client for every instance of time.










share|improve this question



















  • 1





    There is no standardized service and characteristic for a serial protocol. Just choose one that is not assigned to a specific purpose. Write to the characteristic to send data to the peripheral; subscribe to updates to receive data from the peripheral. It's the same as for the heart rate measurement - except you also write to the characteristic.

    – Codo
    Mar 25 at 7:13











  • My doubt is to chose which one?. Because I didn't got clear data from internet. Which service and which characteristics is suitable for it ?

    – Loki
    Mar 25 at 7:19






  • 1





    You can easily define a custom one for your needs.

    – Emil
    Mar 25 at 10:03











  • The rule is to use a 128-bit UUID (and not a 16 or 32 bit one). See cypress.com/forum/psoc-4-ble/… or stackoverflow.com/questions/10243769/….

    – Codo
    Mar 25 at 16:34











  • At least let us know what the device is you are using as server. You can also use an app like nRF Connect to find your device and explore all the services and their characteristics. Best options are the characteristics capable of read, write and notify.

    – GrooverFromHolland
    Mar 25 at 20:24

















1















I have been successfully sending and receiving hexa values via GATT using "Heart rate service" and with characteristic "Heart Rate Measurement". Now I need to send TX/RX strings over GATT. Can anyone help me out by giving suggestion about:



  1. Which service should I use to send string?

  2. Which characteristic should I use?

  3. If not possible by predefined services, what should I do?

I need to send some characters from server side. The data should be received by the client for every instance of time.










share|improve this question



















  • 1





    There is no standardized service and characteristic for a serial protocol. Just choose one that is not assigned to a specific purpose. Write to the characteristic to send data to the peripheral; subscribe to updates to receive data from the peripheral. It's the same as for the heart rate measurement - except you also write to the characteristic.

    – Codo
    Mar 25 at 7:13











  • My doubt is to chose which one?. Because I didn't got clear data from internet. Which service and which characteristics is suitable for it ?

    – Loki
    Mar 25 at 7:19






  • 1





    You can easily define a custom one for your needs.

    – Emil
    Mar 25 at 10:03











  • The rule is to use a 128-bit UUID (and not a 16 or 32 bit one). See cypress.com/forum/psoc-4-ble/… or stackoverflow.com/questions/10243769/….

    – Codo
    Mar 25 at 16:34











  • At least let us know what the device is you are using as server. You can also use an app like nRF Connect to find your device and explore all the services and their characteristics. Best options are the characteristics capable of read, write and notify.

    – GrooverFromHolland
    Mar 25 at 20:24













1












1








1








I have been successfully sending and receiving hexa values via GATT using "Heart rate service" and with characteristic "Heart Rate Measurement". Now I need to send TX/RX strings over GATT. Can anyone help me out by giving suggestion about:



  1. Which service should I use to send string?

  2. Which characteristic should I use?

  3. If not possible by predefined services, what should I do?

I need to send some characters from server side. The data should be received by the client for every instance of time.










share|improve this question
















I have been successfully sending and receiving hexa values via GATT using "Heart rate service" and with characteristic "Heart Rate Measurement". Now I need to send TX/RX strings over GATT. Can anyone help me out by giving suggestion about:



  1. Which service should I use to send string?

  2. Which characteristic should I use?

  3. If not possible by predefined services, what should I do?

I need to send some characters from server side. The data should be received by the client for every instance of time.







c bluetooth-lowenergy termios bluetooth-gatt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 7:38









karel

2,45492832




2,45492832










asked Mar 25 at 5:50









LokiLoki

61




61







  • 1





    There is no standardized service and characteristic for a serial protocol. Just choose one that is not assigned to a specific purpose. Write to the characteristic to send data to the peripheral; subscribe to updates to receive data from the peripheral. It's the same as for the heart rate measurement - except you also write to the characteristic.

    – Codo
    Mar 25 at 7:13











  • My doubt is to chose which one?. Because I didn't got clear data from internet. Which service and which characteristics is suitable for it ?

    – Loki
    Mar 25 at 7:19






  • 1





    You can easily define a custom one for your needs.

    – Emil
    Mar 25 at 10:03











  • The rule is to use a 128-bit UUID (and not a 16 or 32 bit one). See cypress.com/forum/psoc-4-ble/… or stackoverflow.com/questions/10243769/….

    – Codo
    Mar 25 at 16:34











  • At least let us know what the device is you are using as server. You can also use an app like nRF Connect to find your device and explore all the services and their characteristics. Best options are the characteristics capable of read, write and notify.

    – GrooverFromHolland
    Mar 25 at 20:24












  • 1





    There is no standardized service and characteristic for a serial protocol. Just choose one that is not assigned to a specific purpose. Write to the characteristic to send data to the peripheral; subscribe to updates to receive data from the peripheral. It's the same as for the heart rate measurement - except you also write to the characteristic.

    – Codo
    Mar 25 at 7:13











  • My doubt is to chose which one?. Because I didn't got clear data from internet. Which service and which characteristics is suitable for it ?

    – Loki
    Mar 25 at 7:19






  • 1





    You can easily define a custom one for your needs.

    – Emil
    Mar 25 at 10:03











  • The rule is to use a 128-bit UUID (and not a 16 or 32 bit one). See cypress.com/forum/psoc-4-ble/… or stackoverflow.com/questions/10243769/….

    – Codo
    Mar 25 at 16:34











  • At least let us know what the device is you are using as server. You can also use an app like nRF Connect to find your device and explore all the services and their characteristics. Best options are the characteristics capable of read, write and notify.

    – GrooverFromHolland
    Mar 25 at 20:24







1




1





There is no standardized service and characteristic for a serial protocol. Just choose one that is not assigned to a specific purpose. Write to the characteristic to send data to the peripheral; subscribe to updates to receive data from the peripheral. It's the same as for the heart rate measurement - except you also write to the characteristic.

– Codo
Mar 25 at 7:13





There is no standardized service and characteristic for a serial protocol. Just choose one that is not assigned to a specific purpose. Write to the characteristic to send data to the peripheral; subscribe to updates to receive data from the peripheral. It's the same as for the heart rate measurement - except you also write to the characteristic.

– Codo
Mar 25 at 7:13













My doubt is to chose which one?. Because I didn't got clear data from internet. Which service and which characteristics is suitable for it ?

– Loki
Mar 25 at 7:19





My doubt is to chose which one?. Because I didn't got clear data from internet. Which service and which characteristics is suitable for it ?

– Loki
Mar 25 at 7:19




1




1





You can easily define a custom one for your needs.

– Emil
Mar 25 at 10:03





You can easily define a custom one for your needs.

– Emil
Mar 25 at 10:03













The rule is to use a 128-bit UUID (and not a 16 or 32 bit one). See cypress.com/forum/psoc-4-ble/… or stackoverflow.com/questions/10243769/….

– Codo
Mar 25 at 16:34





The rule is to use a 128-bit UUID (and not a 16 or 32 bit one). See cypress.com/forum/psoc-4-ble/… or stackoverflow.com/questions/10243769/….

– Codo
Mar 25 at 16:34













At least let us know what the device is you are using as server. You can also use an app like nRF Connect to find your device and explore all the services and their characteristics. Best options are the characteristics capable of read, write and notify.

– GrooverFromHolland
Mar 25 at 20:24





At least let us know what the device is you are using as server. You can also use an app like nRF Connect to find your device and explore all the services and their characteristics. Best options are the characteristics capable of read, write and notify.

– GrooverFromHolland
Mar 25 at 20:24












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%2f55331895%2fsend-receive-string-via-gatt-in-ble%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%2f55331895%2fsend-receive-string-via-gatt-in-ble%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

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해