<?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>setting BLE p_presentation_format not showing UTF8S</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92491/setting-ble-p_presentation_format-not-showing-utf8s</link><description>Hello, 
 I would like to change the default format of a custom characteristic to be a string format. The new characteristic is 8 characters long. This is the code; 
 
 Neither the desktop or mobile nRFConnect programs indicate this is a string value.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Oct 2022 06:23:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92491/setting-ble-p_presentation_format-not-showing-utf8s" /><item><title>RE: setting BLE p_presentation_format not showing UTF8S</title><link>https://devzone.nordicsemi.com/thread/389303?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 06:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fabf81f-64d3-4e68-a6f0-10664742956b</guid><dc:creator>Edvin</dc:creator><description>[quote user="ajcurtis"]When using the Desktop Bluetooth Low Energy application you can only enter hex byte arrays. In the mobile application you can choose the data type.[/quote]
&lt;p&gt;Yes. That is just a feature in the mobile application that is not present in the desktop application. It has nothing to do with the p_presentation_format parameter.&lt;/p&gt;
&lt;p&gt;The phone just translates from e.g. a string to byte format.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can see that if you type the string &amp;quot;123&amp;quot; and then the byte format: &amp;quot;31 32 33&amp;quot; it will result in the exact same data being transferred (0x31 is the same as&amp;nbsp; &amp;quot;1&amp;quot;, 0x32 is the same as &amp;quot;2&amp;quot; and 0x33 is the same as &amp;quot;3&amp;quot;).&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: setting BLE p_presentation_format not showing UTF8S</title><link>https://devzone.nordicsemi.com/thread/389263?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 17:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076e9e57-582d-41db-b4b4-adc5ca4454e3</guid><dc:creator>Allen</dc:creator><description>&lt;p&gt;When using the Desktop Bluetooth Low Energy application you can only enter hex byte arrays. In the mobile application you can choose the data type. I was hoping that adding this field would inform the application about the intended data type.&lt;/p&gt;
&lt;p&gt;BTW, this is transmitted over BLE. It appears in the BLE application when you open the characteristic where it is set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setting BLE p_presentation_format not showing UTF8S</title><link>https://devzone.nordicsemi.com/thread/389124?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 07:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:364ef51b-e6b5-4d96-8b5a-b26b143af351</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I didn&amp;#39;t really see it before.&lt;/p&gt;
&lt;p&gt;From what I can tell, and where it is used in the SDK, this is not really used in any of our examples, and it doesn&amp;#39;t look like it is something that will be transferred over BLE. It is only used internally by the local device in the serialization example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please tell me a bit about why you are asking this question. Perhaps there is something that I don&amp;#39;t understand, or that there is a misunderstanding. I don&amp;#39;t really see why you need to set. As long as your peripheral application decides on what format the data is (without specifying it anywhere), and the central interprets the data in the same way, I don&amp;#39;t see the problem. Please enlighten me.&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: setting BLE p_presentation_format not showing UTF8S</title><link>https://devzone.nordicsemi.com/thread/389039?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 15:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa0ad31-e2e4-4812-b01d-c8eb9d7f44eb</guid><dc:creator>Allen</dc:creator><description>&lt;p&gt;What is the purpose of the p_presentation_format field is not to aid in communicating the intended data types?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setting BLE p_presentation_format not showing UTF8S</title><link>https://devzone.nordicsemi.com/thread/388929?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 09:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bce418b9-a1c4-4a4c-a744-9146c02f261d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Allen,&lt;/p&gt;
&lt;p&gt;There is no setting saying whether a characteristic is a string or a binary value. At the end of the day they are all binary values, and you need to know what you input on one side, and how to interpret it on the other side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One example for this is the ble_app_uart and ble_app_uart_c example pair from the nRF5 SDK. The values are just sent as an array of bytes, but it is the application that decides to output these values as characters on the UART when they receive data from the connected device.&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></channel></rss>