<?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>Serialization: How to control GPIO connectivity chip</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11386/serialization-how-to-control-gpio-connectivity-chip</link><description>I am developing an application on a STM32 CPU that uses a 51822 through BLE serialization for BLE connectivity. 
 I have connected some LEDs at the pins of the 51822 to indicate the state of the application in my main CPU. 
 How can I send commands</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jun 2016 09:44:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11386/serialization-how-to-control-gpio-connectivity-chip" /><item><title>RE: Serialization: How to control GPIO connectivity chip</title><link>https://devzone.nordicsemi.com/thread/42910?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2016 09:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e37324d-87d5-4352-ad10-cee6d92d8c63</guid><dc:creator>Christian Waldmann</dc:creator><description>&lt;p&gt;To access the local resources on the connectivity chip, I have added to additional commands to the protocol:
uint32_t sd_ble_conn_chip_reg_set( ble_conn_chip_reg_set_t reg_set );
uint32_t sd_ble_conn_chip_reg_get( ble_conn_chip_reg_get_t reg_get );&lt;/p&gt;
&lt;p&gt;With the new commands, I can set any register to configure the peripherals and write output values, and I can get values from any register to read results.&lt;/p&gt;
&lt;p&gt;Configuration of GPIOs as outputs and writing values is now possible, also I can setup the ADC and read back measured values.&lt;/p&gt;
&lt;p&gt;May be this is a interesting extension for the serialization module. If someone is interested, I can deliver a example implementation based on SDK 11 and Softdevice S130.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf_5F00_soc_5F00_reg.h"&gt;nrf_soc_reg.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serialization: How to control GPIO connectivity chip</title><link>https://devzone.nordicsemi.com/thread/42909?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 15:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba2e4704-48bb-4676-8260-aabc86343ca9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Christian,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have an example or supported in the library yet. But you are correct about using tx_buf_alloc() to set the buffer and then use ser_sd_transport_cmd_write() to send the command. You just need to define your own GPIO API (addition to the SVC APIs of the softdevice). So that you can process the packet accordingly in ser_conn_received_pkt_process() on the connectivity chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serialization: How to control GPIO connectivity chip</title><link>https://devzone.nordicsemi.com/thread/42907?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 13:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f004556b-1fc1-4d68-8f96-fe4ecf67bbe2</guid><dc:creator>Christian Waldmann</dc:creator><description>&lt;p&gt;I have worked out that on the side of the connectivity chip the right place to handle user commands is the function &lt;code&gt;ser_conn_received_pkt_process()&lt;/code&gt; in the module &lt;code&gt;ser_conn_pkt_decoder.c&lt;/code&gt;. Here I can decode user commands.&lt;/p&gt;
&lt;p&gt;But on application side, I could not work out yet what is the expected way to send a user command. I have to use &lt;code&gt;tx_buf_alloc()&lt;/code&gt; and &lt;code&gt;ser_sd_transport_cmd_write()&lt;/code&gt; to start a transfer.
It would be handy if there is an example implementation or even a stub for a user command transfer in the library routines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serialization: How to control GPIO connectivity chip</title><link>https://devzone.nordicsemi.com/thread/42908?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 16:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fac1c0e6-833d-4b59-9b3f-0661eeef55f8</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;You have to implement these commands by yourself. There is source code of serialization project in SDK, so it shouldn&amp;#39;t be hard to modify it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>