<?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>Apple Media Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42230/apple-media-service</link><description>Hello all 
 I was wondering if someone already made some first steps with AMS (Apple Media Service) 
 I&amp;#39;m trying to get a project running where I can control the music on Android and iPhone smartphones. For Android, I made my own service to get the information</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jun 2020 13:40:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42230/apple-media-service" /><item><title>RE: Apple Media Service</title><link>https://devzone.nordicsemi.com/thread/254285?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 13:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:850a9a35-ccc4-437b-8b17-b2229776a9ce</guid><dc:creator>wiz0911</dc:creator><description>&lt;p&gt;Hi, thischier&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I have the same problem , I use sd_ble_gattc_read() get the&lt;span&gt;&amp;nbsp;entity attribute&lt;/span&gt; data.the offset of this function value not worked.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How did you solve it and could you tell me how to solve it .&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ams_5F00_error.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Media Service</title><link>https://devzone.nordicsemi.com/thread/169113?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 15:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c02aaa09-e6a1-4129-822a-3fb68dfc159b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/thischier"&gt;thischier&lt;/a&gt;: We&amp;#39;ll continue the discussing in the private case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Media Service</title><link>https://devzone.nordicsemi.com/thread/167925?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 13:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87691171-bc25-47b8-a302-eeca2a71998d</guid><dc:creator>thischier</dc:creator><description>&lt;p&gt;Hello Runar&lt;/p&gt;
&lt;p&gt;No worries about the late answer. I had other project to work on...&lt;/p&gt;
&lt;p&gt;I saw the message sequence chart and tried to complete my project accordingly. Unfortunately I always get the same data when I call&amp;nbsp;sd_ble_gattc_read(handle, offset).&lt;/p&gt;
&lt;p&gt;The first call when I will read the entity attribute, I call sd_ble_gattc_read for the current connection handle, the handle of the characteristic and an offset of 0. When I get the first read response back, I check if the length of the data corresponds to the MTU size. If its &amp;gt;=, I assume that there are more data to read and I call sd_ble_gattc_read() for the same connection and char handle and the offset is the previous used offset (0) and the length of the received data. But even then I get the exact same data.&lt;/p&gt;
&lt;p&gt;I added my project to my post, would be great if you could have a look on it.&lt;/p&gt;
&lt;p&gt;Button configuration:&lt;/p&gt;
&lt;p&gt;Btn1: Activate Entity Update&lt;/p&gt;
&lt;p&gt;Btn2: Change the Entity Attribute (Artist -&amp;gt; Album -&amp;gt; Title -&amp;gt; Duration -&amp;gt; Artist -&amp;gt; ...)&lt;/p&gt;
&lt;p&gt;Btn3: Call Entity Attribute Read (where I will read the truncated data manually)&lt;/p&gt;
&lt;p&gt;I also included a small log file where you can get directly the result of my last test...&lt;/p&gt;
&lt;p&gt;Many thanks in advance.&lt;/p&gt;
&lt;p&gt;/thierry&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_ams_5F00_c_5F00_long_5F00_read.rar"&gt;devzone.nordicsemi.com/.../ble_5F00_ams_5F00_c_5F00_long_5F00_read.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Media Service</title><link>https://devzone.nordicsemi.com/thread/167345?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 11:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d81dfbb-44f1-4945-9ff6-3b5e40d83c29</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the late answer. Did you check the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/group___b_l_e___g_a_t_t_c___v_a_l_u_e___r_e_a_d___m_s_c.html?cp=2_3_1_1_0_2_2_3_4"&gt;message sequence chart&lt;/a&gt;? Variant #2 shows how to us the offset to read the rest of the characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Media Service</title><link>https://devzone.nordicsemi.com/thread/165394?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 10:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ce306c4-d308-4eb3-ba10-d15c2d220243</guid><dc:creator>thischier</dc:creator><description>&lt;p&gt;Hello Runar&lt;/p&gt;
&lt;p&gt;Thanks for your message.&lt;/p&gt;
&lt;p&gt;I finished more or less the complete service.&lt;/p&gt;
&lt;p&gt;When I start the example, I&amp;#39;m connecting to the device, bond, search for the AMS, assign all handles, enable the notifications (remote command and entity update).&lt;/p&gt;
&lt;p&gt;I can also write to the remote command to play/pause a song, change the volume, change the track and so on.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also able to register for different entity updates (for example artist, album and track of the track entity).&lt;/p&gt;
&lt;p&gt;What&amp;#39;s left is the multiple read functionality.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I get a notification on the entity update characteristic, I receive&lt;/p&gt;
&lt;p&gt;EntityID&lt;br /&gt;AttributeID&lt;br /&gt;&lt;span&gt;EntityUpdateFlagTruncated&lt;/span&gt;&lt;br /&gt;Value&lt;/p&gt;
&lt;p&gt;If the&amp;nbsp;&lt;span&gt;EntityUpdateFlagTruncated is 1, it means that I didn&amp;#39;t get the complete value of the attribute and that I need to read it out manually. This happens when the data size is bigger than 1 BLE packet (MTU Size). I&amp;#39;m able to read out the attribute value on the Entity Attribute characteristic, unfortunately I have no idea how I can do a multiple read on the same characteristic or how this should work. Do you have any idea?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Media Service</title><link>https://devzone.nordicsemi.com/thread/165025?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 19:53:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44bdd9a8-c446-40bc-9506-174851cf77af</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately we do not have any examples for AMS, but as you say it seems to be quite similar to ANCS in many ways. I did not have time to look at your code. But given that you are able to bond and discover the service. You should probably subscribe to entity updates next. guess you are already looking at this, but:&lt;em&gt; first needs to subscribe for GATT notifications on the Entity Update characteristic. Then, the MR writes commands to the Entity Update characteristic to inform the MS which entity/attribute pair values it wants to know&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Doesn&amp;#39;t seem to be to many &lt;a href="https://developer.apple.com/library/archive/documentation/CoreBluetooth/Reference/AppleMediaService_Reference/Appendix/Appendix.html#//apple_ref/doc/uid/TP40014716-CH3-SW2"&gt;id&amp;#39;s &lt;/a&gt;to choose from though.&lt;/p&gt;
&lt;p&gt;So write e.g 02 00 01 02 03 to the &lt;strong&gt;Entity Update&lt;/strong&gt; characteristic in order to subscribe to:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;EntityIDTrack&lt;/code&gt;, &lt;code&gt;TrackAttributeIDArtist,TrackAttributeIDAlbum, TrackAttributeIDTitle and TrackAttributeIDDuration&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Media Service</title><link>https://devzone.nordicsemi.com/thread/164756?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 15:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7875a728-0796-4bb6-a27f-341f6252b091</guid><dc:creator>thischier</dc:creator><description>&lt;p&gt;I made some progress since yesterday...&lt;/p&gt;
&lt;p&gt;I tried to create the Apple Media Service based on Nordic&amp;#39;s ANCS example because the two services has some common parts...&lt;/p&gt;
&lt;p&gt;I also made a copy of the ble_ancs_c example and integrated the ams instead of the ancs. Logically I called it ble_ams_c_example.&lt;/p&gt;
&lt;p&gt;I manage to connect to my iPhone, pair with the Dev-Board and discover the AMS with all its characteristics. Unfortunately I have no idea how I can progress further, such as send controls or get the desired information on music tracks from the iPhone.&lt;/p&gt;
&lt;p&gt;Attached is the current state of the project, probably one of the engineers @ Nordic has ideas what the next steps are...&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;PS: The project is compiled for SDK15.0.0. To get it working, copy it in the ble_peripheral example folder.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_ams_5F00_c.rar"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_ams_5F00_c.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>