<?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>Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42554/difference-in-characteristics-display-between-nrf-connect-app-on-pc-and-app-on-mobile</link><description>Hi, 
 I am developing a sensor application with the nRF52832 on a custom board. 
 Therefore I designed a GATT with nRF5_SDK_14.0.0 softdevice which exposes 3 custom characteristics with their associated Characteristic User Descriptors. This all looks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Jan 2019 16:00:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42554/difference-in-characteristics-display-between-nrf-connect-app-on-pc-and-app-on-mobile" /><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/166322?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 16:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97dad890-9810-42dd-a773-1cb48f1e0dcd</guid><dc:creator>Stefan Wyss</dc:creator><description>&lt;p&gt;Ok, I tested your &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f46eb2e3b8de46f28858090cb796dc01/proof_5F00_of_5F00_concept_5F00_pca10040_5F00_s132.hex"&gt;proof_of_concept_pca10040_s132.hex&lt;/a&gt; on my custom board with my iPhone7. It still shows garbage as you can see in the following screenshot.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_5330.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Please forwart this to the APP developers. I also think it is an iPhone 7 specific problem and I consider this case as closed.&lt;/p&gt;
&lt;p&gt;Thank you very much for your excellent support!&lt;/p&gt;
&lt;p&gt;Cu, Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/166270?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 14:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd08f9e2-716a-4cf6-b3e1-5f25e7ad5bb5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;My colleague tested with iPhone 7 and same version of nRF Connect, and we are not able to reproduce the issue. Can you try this hex-file that I compiled (does not include softdevice), to check if there are any issues in your project/SDK setup?&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f46eb2e3b8de46f28858090cb796dc01/proof_5F00_of_5F00_concept_5F00_pca10040_5F00_s132.hex"&gt;devzone.nordicsemi.com/.../proof_5F00_of_5F00_concept_5F00_pca10040_5F00_s132.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If this also does not work, I will forward the issue to our app developers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/166186?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 10:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d17ffae-fff4-43be-8264-d268e6d0f211</guid><dc:creator>Stefan Wyss</dc:creator><description>&lt;p&gt;iPhone 7, nRF Connect 1.8.8 APP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/166184?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 10:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b314e0d0-deeb-463c-b037-d07e95c6d36a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce this on my phone (Samsung Galaxy S7). Which phone are you using, and what version of nRF Connect are you running?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/166071?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:661279ac-ccf6-4d09-a743-fa4b776fa922</guid><dc:creator>Stefan Wyss</dc:creator><description>&lt;p&gt;I don&amp;#39;t know how to upload to devzone, so here is an external link for downloading my project:&amp;nbsp; &lt;a href="https://drive.google.com/file/d/1_p5jeaIHz33PLexP4xDLm0mKe_gONNPr/view?usp=sharing"&gt;https://drive.google.com/file/d/1_p5jeaIHz33PLexP4xDLm0mKe_gONNPr/view?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please note that&amp;nbsp; this is an IAR project and must follow a special folder structure for the relative SDK path:&lt;/p&gt;
&lt;p&gt;.\nrf52_3100-1_fw&lt;br /&gt;.\nrf5_sdk\nRF5_SDK_14.2.0_17b948a&lt;/p&gt;
&lt;p&gt;Although it&amp;#39;s for a custom board, it should run fine on the nRF52 DK (with internal RC LFCLK).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/166058?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 15:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a3c3ea0-d0ce-4a12-bd25-2d3f199d75f9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you can upload your entire project, I can debug it and see if I can figure out why this is happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/166040?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 14:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:314466de-57c7-4450-9638-795ed85e0544</guid><dc:creator>Stefan Wyss</dc:creator><description>&lt;p&gt;Yes, I did the following, without success:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;[...]&lt;br /&gt;static uint8_t value[] = &amp;quot;1234&amp;quot;;&lt;br /&gt;attr_char_value.p_value&amp;nbsp;&amp;nbsp; = value;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // was NULL before&lt;br /&gt;[...]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/166018?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 14:16:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:301e4cd8-2a73-4182-b4cb-63c73256c3ba</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you tried setting&amp;nbsp;attr_char_value.p_value to something else than NULL?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/165978?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 13:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d549cb6-4045-4d5e-9e2e-9236b387b211</guid><dc:creator>Stefan Wyss</dc:creator><description>&lt;p&gt;Hi Jorgen, and thanks for your help.&lt;/p&gt;
&lt;p&gt;1. Ok, sounds reasonable.&lt;/p&gt;
&lt;p&gt;2. I pressed the read button and enabled notifications, but this does not change anything. Below I send you the init code for my second characteristic. Thanks for checking...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Function for adding the Sensor Value Characteristic.
 *
 * @param[in] p_doss      DOSS Service structure.
 * @param[in] p_doss_init DOSS Service initialization structure.
 *
 * @retval NRF_SUCCESS on success, else an error value from the SoftDevice
 */
static uint32_t sensor_value_char_add(ble_doss_t * p_doss, const ble_doss_init_t * p_doss_init)
{
    ble_gatts_char_md_t char_md;
    ble_gatts_attr_md_t cccd_md;
    ble_gatts_attr_t    attr_char_value;
    ble_uuid_t          ble_uuid;
    ble_gatts_attr_md_t attr_md;

    memset(&amp;amp;cccd_md, 0, sizeof(cccd_md));

    BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;cccd_md.read_perm);
    BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;cccd_md.write_perm);
    cccd_md.vloc = BLE_GATTS_VLOC_STACK;

    memset(&amp;amp;char_md, 0, sizeof(char_md));

    char_md.char_props.read   = 1;
    char_md.char_props.notify = 1;
    
    // char_md.p_char_user_desc  = &amp;quot;NULL&amp;quot;;
    
    static char user_desc[] = &amp;quot;Sensor Value&amp;quot;;
    char_md.p_char_user_desc  = (uint8_t *) user_desc;
    char_md.char_user_desc_size = strlen(user_desc);
    char_md.char_user_desc_max_size = strlen(user_desc);	
    
    
    char_md.p_char_pf         = NULL;
    char_md.p_user_desc_md    = NULL;
    char_md.p_cccd_md         = &amp;amp;cccd_md;
    char_md.p_sccd_md         = NULL;

    ble_uuid.type = p_doss-&amp;gt;uuid_type;
    ble_uuid.uuid = DOSS_UUID_SENSOR_VALUE;

    memset(&amp;amp;attr_md, 0, sizeof(attr_md));

    BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;attr_md.read_perm);
    BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&amp;amp;attr_md.write_perm);
    attr_md.vloc    = BLE_GATTS_VLOC_STACK;
    attr_md.rd_auth = 0;
    attr_md.wr_auth = 0;
    attr_md.vlen    = 0;

    memset(&amp;amp;attr_char_value, 0, sizeof(attr_char_value));

    attr_char_value.p_uuid    = &amp;amp;ble_uuid;
    attr_char_value.p_attr_md = &amp;amp;attr_md;
    attr_char_value.init_len  = sizeof(uint8_t); // already tried 4, but nRF Connect APP still display garbage 
    attr_char_value.init_offs = 0;
    attr_char_value.max_len   = 4;               // sensor value size is 4 bytes
    attr_char_value.p_value   = NULL;

    return sd_ble_gatts_characteristic_add(p_doss-&amp;gt;service_handle,
                                           &amp;amp;char_md,
                                           &amp;amp;attr_char_value,
                                           &amp;amp;p_doss-&amp;gt;sensor_value_char_handles);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in characteristics display between nRF Connect App on PC and App on MOBILE</title><link>https://devzone.nordicsemi.com/thread/165969?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 12:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57159d28-8711-41bf-8016-0dc0926d000e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The characteristics name is gathered from comparing the UUID towards know UUIDs. If your UUID is not found in this list, it will show Unknown Characteristics.&lt;/li&gt;
&lt;li&gt;It seems that notifications have been enabled on desktop side. Have you pressed the read button or tried enabling notifications&amp;nbsp;(by pressing three arrows button) in mobile as well? It could be some garbage data if the characteristics is not properly initialized. Note that the max/init length can be larger than the &amp;quot;normal length&amp;quot; that you send in notifications. Can you post the initialization code for this characteristics?&lt;/li&gt;
&lt;li&gt;See point 2.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>