<?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>Write to Cypress peripheral from nRF52840 fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68631/write-to-cypress-peripheral-from-nrf52840-fails</link><description>Hello, 
 
 I am writing a single byte value to a cypress module using write with response (BLE_GATT_OP_WRITE_REQ). For some reason the peripheral will receive the value but will not carry out the action I expect as a result of the write. When I do the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jan 2022 13:35:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68631/write-to-cypress-peripheral-from-nrf52840-fails" /><item><title>RE: Write to Cypress peripheral from nRF52840 fails</title><link>https://devzone.nordicsemi.com/thread/348720?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 13:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c941ec3b-80c0-4cd4-a96a-a14641ce9f83</guid><dc:creator>Tushar_V</dc:creator><description>&lt;p&gt;Hi LewisR,&lt;/p&gt;
&lt;p&gt;i am working on cypress flash can u share your .dts file&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Tushar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write to Cypress peripheral from nRF52840 fails</title><link>https://devzone.nordicsemi.com/thread/281737?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 09:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb20855-fea6-4548-b561-90508d154314</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Lewis,&amp;nbsp;&lt;br /&gt;We need to compare the sniffer trace of the comm from the phone and the trace from the Adafruit module to really tell what caused the issue.&amp;nbsp;&lt;br /&gt;If you received the&amp;nbsp;&lt;span&gt;BLE_GATTC_EVT_WRITE_RSP with SUCCESS then I think it has something to do with the servo.&amp;nbsp;&lt;br /&gt;There is a possibility that you must enable CCCD or need to write in a certain sequence to make the servo work as it should.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But you mentioned &amp;quot;BUT for some reason the servo does not move UNLESS I disconnect the two devices and then re-connect.&amp;quot; did you mean that after you disconnect and reconnect everything works fine even with the Adafruit ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write to Cypress peripheral from nRF52840 fails</title><link>https://devzone.nordicsemi.com/thread/281671?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 19:29:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f621379-dbf9-46a1-95de-d2706f38912c</guid><dc:creator>LewisR</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;I am waiting for a sniffer I have ordered to arrive as currently I do not have one. It should be with me in the next day or so and I will update then.&lt;/p&gt;
&lt;p&gt;The Cypress module (peripheral) is attached to a servo and moves in response to a characteristic value being written to. It is a production item and I know there is nothing wrong with this side of things. As proof, things happen as I expect when using the mobile apps (nRF connect, BLE Hero, CySmart etc...).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I write to the same characteristic from my Adafruit nRF52 feather, I do indeed receive the&amp;nbsp;&lt;span&gt;BLE_GATTC_EVT_WRITE_RSP&amp;nbsp; along with a GATT_SUCCESS. When I then check the value of the characteristic, it has indeed changed. BUT for some reason the servo does not move UNLESS I disconnect the two devices and then re-connect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there anything you can think of that would cause this behaviour? It feels like a connection event is not terminating?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Lewis&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write to Cypress peripheral from nRF52840 fails</title><link>https://devzone.nordicsemi.com/thread/281593?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 14:00:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dd93401-2c25-4324-9993-0faeb76a9273</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;HI Lewis,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to capture a &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer trace&lt;/a&gt; of the communication ? You only need a NRF52 DK to use as a sniffer.&amp;nbsp; With that we can see the difference when you do a write request from the nRF52840 and when you do write request from nRF Connect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you explain what exactly&amp;nbsp; you meant by &amp;quot;&lt;span&gt;but will not carry out the action I expect as a result of the write.&amp;quot; What exactly missing ? Did you receive the event BLE_GATTC_EVT_WRITE_RSP ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>