<?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>nRF51-DK Connection Event Packet Length</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5337/nrf51-dk-connection-event-packet-length</link><description>How would I go about changing the connection event packet length? 
 I have an 8 byte characteristic setup with notifications enabled, but it still looks like it is transmitting just 1 byte packets by looking at the current waveform on the oscilloscope</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Feb 2015 08:32:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5337/nrf51-dk-connection-event-packet-length" /><item><title>RE: nRF51-DK Connection Event Packet Length</title><link>https://devzone.nordicsemi.com/thread/18645?ContentTypeID=1</link><pubDate>Mon, 02 Feb 2015 08:32:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9620639d-4e8a-4ad8-a16c-0cc0610644f8</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Robert&lt;/p&gt;
&lt;p&gt;I suspect that you are only receiving one byte per connection event because the above parameters are set to only send one byte per connection event. What happens if you put&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;attr.max_len   = 8;

attr.init_len  = 8;

attr_md.vlen = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51-DK Connection Event Packet Length</title><link>https://devzone.nordicsemi.com/thread/18646?ContentTypeID=1</link><pubDate>Fri, 30 Jan 2015 13:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a47a4d2c-901e-4a41-8111-7040cc6c0b76</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;I am receiving the correct data. What I am asking is how do I change the events so that variable bytes can be the payload of the packet. I still receive all the correct data, but the waveform for the current shows 8 separate connection events to send 8 bytes. Is it possible to send 1 connection event with 8 byte data payload instead of requiring a new connection event with a new header and a new 1 byte payload? I want to see if there is a difference in current between a connection event header and footer with a payload of 1 byte vs a connection event header and footer with a payload of 8 bytes and so on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51-DK Connection Event Packet Length</title><link>https://devzone.nordicsemi.com/thread/18644?ContentTypeID=1</link><pubDate>Fri, 30 Jan 2015 10:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf666304-2151-4838-a1ee-4a9e99897002</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Robert&lt;/p&gt;
&lt;p&gt;The radio transmits BLE packets with 1Mbps. This means that transmitting 8 payload bytes should take 8*8=64 microseconds. If you can not see any difference when sending 1 byte and when sending 8 bytes, you may want to check if you have the correct settings for your notifying characteristic. Look at this thread to see what is needed.&lt;/p&gt;
&lt;p&gt;I think you need to look at the three following properties in the services_init function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;attr.max_len   = 1;

attr.init_len  = sizeof(multilink_peripheral_data);

attr_md.vlen = 0;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which define the maximum size for the characteristic, initial length, and if the characteristic should have variable length or not. When you have changed that, you should be able to send data larger than one byte.&lt;/p&gt;
&lt;p&gt;When you connect with a central device (e.g. Master Control Panel) how many bytes do you see transmitted to the notify characteristic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>