<?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>Can&amp;#39;t update BLE-Characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14749/can-t-update-ble-characteristic</link><description>I&amp;#39;ve got a strange problem with updating my Magnet-Characteristic.
I use a service with 4 characteristics (Gyro, Acc, Mag and Temp Values) and update them on a timer base. The other 3 working just fine, the Mag-Char gets update once and then never again</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 25 Jun 2016 16:34:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14749/can-t-update-ble-characteristic" /><item><title>RE: Can't update BLE-Characteristic</title><link>https://devzone.nordicsemi.com/thread/56318?ContentTypeID=1</link><pubDate>Sat, 25 Jun 2016 16:34:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:941ce112-ecc6-4a64-b5e5-c4cc0e2b6efd</guid><dc:creator>DK999</dc:creator><description>&lt;p&gt;Rebuild whole project, suddenly works &amp;gt;_&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't update BLE-Characteristic</title><link>https://devzone.nordicsemi.com/thread/56317?ContentTypeID=1</link><pubDate>Sat, 25 Jun 2016 14:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4db358d2-1dc8-4586-9e2b-1f247577fa74</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Ah, ok, it&amp;#39;s defined as an array.  Makes sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't update BLE-Characteristic</title><link>https://devzone.nordicsemi.com/thread/56316?ContentTypeID=1</link><pubDate>Sat, 25 Jun 2016 12:20:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea24f098-e1eb-4ccc-aaae-b6a353c1bcd0</guid><dc:creator>DK999</dc:creator><description>&lt;p&gt;I&amp;#39;m getting 9 Bytes from the magnetometer that are stored in an uint8_t array.
After filling the array with data I&amp;#39;m calling the bmx_mag_char_update function with a reference to the data. The same method works for the other characteristics but not for this one, it just get stored/updated once but the debug functionality tells me I&amp;#39;m getting new data on every timer interrupt from the sensors.
As for now I&amp;#39;m not chopping anything as far as I can see.
The values are stored in an array inside my main &lt;code&gt;static uint8_t gyro[7],acc[7],mag[9],temp[2];&lt;/code&gt;,
then the data gets written to it&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void bmx_get_mag(uint8_t *rx)
{
static uint8_t tx[2] = {BMX_MAG_PWR_CTRL2,0x02};
// ...
tx[0]=BMX_MAG_DATA;
nrf_gpio_pin_clear(SPI_CS_MAG);
nrf_drv_spi_transfer(&amp;amp;spi, tx, 1, rx, 9);		// Get Data
wait_for_SPI();
nrf_gpio_pin_set(SPI_CS_MAG);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;then calling the bmx_mag_char_update&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't update BLE-Characteristic</title><link>https://devzone.nordicsemi.com/thread/56315?ContentTypeID=1</link><pubDate>Sat, 25 Jun 2016 11:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5b2f959-8d2c-4621-98f4-d3db880098a3</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Are you chopping off data by type casting it as uint8_t when your code suggests it may be bigger?  I don&amp;#39;t know the data structure but it looks a little odd from a coding perspective.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>