<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>central device, write characteristics</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107422/central-device-write-characteristics</link><description>I am modifying the hrs_c sample to use it with the cgms sample. 
 Looking at the cgms sample, the value 0x1A must be written to SOCP characteristics to start a session. I created it as below, but it doesn&amp;#39;t seem to work. 
 Maybe I missed something? I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jan 2024 14:17:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107422/central-device-write-characteristics" /><item><title>RE: central device, write characteristics</title><link>https://devzone.nordicsemi.com/thread/464844?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2024 14:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d2a31b-c390-4c55-925a-00635c73dce2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry, I must have had a typo when searching for cgms.&lt;/p&gt;
&lt;p&gt;In the ble_app_cgms&amp;#39; main.c line 662-663, you can see that the peripheral requires SEC_JUST_WORKS in order to interact with the bms service. You can also see that this is being used in the ctrlpt_char_add() in nrf_ble_bms.c, line 81:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    add_char_params.write_access     = p_bms_init-&amp;gt;bms_ctrlpt_sec_req;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Similarly SEC_JUST_WORKS is required in&amp;nbsp;glucose_feature_char_add(),&amp;nbsp;status_char_add() and&amp;nbsp;srt_char_add() in nrf_ble_cgms.c.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So yes, it looks correct. And you probably need to enable indications or indications in order for the peripheral to be able to push data to the central.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device, write characteristics</title><link>https://devzone.nordicsemi.com/thread/464707?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2024 01:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8736b48f-33ee-49bd-bcc0-08248481f7fa</guid><dc:creator>John Lee</dc:creator><description>&lt;p&gt;cgms is a nordic sample.&lt;br /&gt;It is in the path below.&lt;br /&gt;\examples\ble_peripheral\experimental\ble_app_cgms&lt;br /&gt;Looking at this sample, the service has a socp characteristic, and measurement begins only when 0x1A is written to socp.&lt;br /&gt;I wrote ble_cgms_c_start_session() for this.&lt;/p&gt;
&lt;p&gt;There has been progress.&lt;br /&gt;To write to socp&lt;br /&gt;1. I had to subscribe to indicate&lt;br /&gt;2. The two devices had to be bonded.&lt;br /&gt;Did I understand this correctly?&lt;/p&gt;
&lt;p&gt;Now I can successfully get the measurement values updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device, write characteristics</title><link>https://devzone.nordicsemi.com/thread/464521?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2024 08:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e99f5686-9302-4872-aa1b-0265dd982ce9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What is the cgms sample?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see that you have written a function called&amp;nbsp;ble_cgms_c_start_session(). Where do you use it? What do you expect to happen, and what do you see when you attempt to do so? Please note that you didn&amp;#39;t include your main.c file, so I only have your ble_cgms_c.c/h files, and I am not sure what the SOCP characteristic, nor the cgms sample is.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>