<?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>nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2935/nrf51822-s110-ble-use-advertising-packet-send-skin-temperature-to-iphone-every-30min</link><description>The test code: 
 int main(void)
{ 
 sd_softdevice_enable(NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION, softdevice_assertion_handle);

temp_init();
unsigned int aaa=temp();
unsigned char advdata[] = {0x9,0x09,0x31,0x32,0x33,0x34,0x35,0x36,0x37</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Dec 2014 03:51:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2935/nrf51822-s110-ble-use-advertising-packet-send-skin-temperature-to-iphone-every-30min" /><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11153?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2014 03:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:160cb33d-d934-4316-8831-e3dbf7c228a3</guid><dc:creator>lfsescobar</dc:creator><description>&lt;p&gt;I am doing a project in keil for college, I am newbie if you could send me the code to my email I&amp;#39;d appreciate it
lfsescobar@gmail.com&lt;/p&gt;
&lt;p&gt;thanks friend&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11152?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2014 09:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f3beec5-ccf4-441a-8bae-248e05e9d592</guid><dc:creator>nan</dc:creator><description>&lt;p&gt;Thinks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11148?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2014 09:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d62912e2-9d68-4fde-a786-dab62e6af1fc</guid><dc:creator>nan</dc:creator><description>&lt;p&gt;Thinks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11147?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2014 15:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a2b8c62-de11-4d04-be18-4bd43d31302c</guid><dc:creator>Sai</dc:creator><description>&lt;p&gt;Have a look at this link about support background mode operations in an iPhone app. - &lt;a href="http://www.devfright.com/ios-7-background-app-refresh-tutorial/"&gt;www.devfright.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I could be wrong here but it looks like your question relates to iOS rather than BLE so you are probably better off asking it on StackOverflow. As long as your BLE chip wakes up every 30 minutes and advertises a packet, the Nordic dev forum isn&amp;#39;t the correct place to ask for iOS app assistance. If I misunderstood your problem and it IS, in fact, BLE related, please carry on :).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11151?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2014 14:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fe193de-e4da-4e75-869e-7cd7c6a73805</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Have you tried the UUIDWithString method? &lt;a href="http://goo.gl/0JJGTS#"&gt;http://goo.gl/0JJGTS#&lt;/a&gt; Apple might use its own internal UUID format that you need to convert the assigned UUID into.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11150?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2014 12:40:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46f9c1bf-be67-4f3c-8a2f-2c7a51926728</guid><dc:creator>nan</dc:creator><description>&lt;p&gt;The pdf: Core_V4.0.pdf says it, but ios UUID seems not that rule. I don&amp;#39;t know why.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11149?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2014 10:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1588728-a9df-4a79-a55e-9651e5e34040</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;The adopted 16-bit UUIDs are sometimes referred to with the BASE UUID 00000000-0000-1000-8000-00805F9B34FB. The &amp;quot;TimeLow&amp;quot; part of the UUID is then replaced with the short UUID, just like you would do for vendor-specific UUIDs. The Generic Access Profile (GAP) Service with 16-bit UUID 0x1800 is therefore actually &amp;quot;0000&lt;strong&gt;1800&lt;/strong&gt;-0000-1000-8000-00805f9b34fb&amp;quot; when used for filtering/matching.&lt;/p&gt;
&lt;p&gt;This is true for Android, and I would think something similar applies to iOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11146?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2014 02:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8577db47-3ec7-4baf-beb2-a44e6fb42e84</guid><dc:creator>nan</dc:creator><description>&lt;p&gt;Hi Sai，
Thanks for the link:
&lt;a href="http://developer.xamarin.com/guides/cross-platform/application_fundamentals/backgrounding/part_3_ios_backgrounding_techniques/ios_backgrounding_with_tasks/"&gt;developer.xamarin.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;The simplest way to perform backgrounding on iOS is to break your backgrounding requirements into tasks, and run the tasks in the background. Tasks are under a strict time limit, and typically get about 600 seconds (10 minutes) of processing time after an application has moved to the background on iOS 6, and less than 10 minutes on iOS 7.&amp;quot;&lt;/p&gt;
&lt;p&gt;10min...&lt;/p&gt;
&lt;p&gt;For BLE peripheral , most time is sleeping, every 30min or 60min wakeup and send packet out. Can the ios APP get the packet as wireshark do ?&lt;/p&gt;
&lt;p&gt;Android phone can do it as I knows.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11145?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2014 17:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d31a8aa-e6a7-460f-a406-47411a9e091f</guid><dc:creator>Sai</dc:creator><description>&lt;p&gt;I don&amp;#39;t quite understand what you mean by &amp;quot;How to sniffer Apple&amp;#39;s advertising packet?&amp;quot; I don&amp;#39;t think the iPhone sends out its own advertising packets when it is being used to read data from a remote BLE device (ie. the iPhone is in central mode.)&lt;/p&gt;
&lt;p&gt;If you are trying to find advertising packets sent by the peripheral matching the iBeacon spec, you could look for Apple&amp;#39;s manufacturer code of 4C 00 in wireshark.&lt;/p&gt;
&lt;p&gt;I think Apple changed the default background behavior with iOS 7. Now, once the device is asleep, it will only process data if and when the device is woken up to take calls or see a message. Only certain classes of apps can run fully in the background. See the section titled &amp;quot;Background Tasks in iOS 7&amp;quot; in this link -&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.xamarin.com/guides/cross-platform/application_fundamentals/backgrounding/part_3_ios_backgrounding_techniques/ios_backgrounding_with_tasks/"&gt;developer.xamarin.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11144?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2014 17:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5900e0fc-95a7-421a-8bf8-cfd6275963dd</guid><dc:creator>nan</dc:creator><description>&lt;p&gt;The problem is the Iphone can not get data when screen is black.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11143?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2014 17:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c98fab15-c24f-4325-96c2-afd063ad736a</guid><dc:creator>nan</dc:creator><description>&lt;p&gt;Thinks for your answer. In my code:
unsigned char advdata[] = {0x9,0x09,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38, 0x02,0x01,0x04, 0x03,0xff,0xff,0x34, 0x03,0x03,0x09,0x18};
sd_ble_gap_adv_data_set((unsigned char *)&amp;amp;advdata[0], 21, 0, 0);
I directly write the raw advertising data, local name is 12345678, flag, and manufactor data, service uuid.
So, I already know the 10,000 ft overview and use wireshark to sniffer the packets.&lt;/p&gt;
&lt;p&gt;How to sniffer Apple&amp;#39;s advertising packet? I have the sniffer and wireshark.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 S110 BLE, use Advertising packet send skin temperature to iphone every 30min</title><link>https://devzone.nordicsemi.com/thread/11142?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2014 17:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ff8ab23-a824-4aae-a9e2-23064fd1facc</guid><dc:creator>Sai</dc:creator><description>&lt;p&gt;Here&amp;#39;s a 10,000 ft overview (apologies if you already know this stuff) - an advertising packet is just 31 or fewer bytes stashed into a BLE payload after a special flag. This flag indicates that the data following the flag contains arbitrary data specified by the manufacturer. Here is a great StackOverflow link explaining the iBeacon adv packet format.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/18906988/what-is-the-ibeacon-bluetooth-profile"&gt;stackoverflow.com/.../what-is-the-ibeacon-bluetooth-profile&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This guy is using advertising packets to announce IP addresses: &lt;a href="http://object-network.blogspot.com/2013/12/advertising-object-url-with-bluetooth-le.html"&gt;object-network.blogspot.com/.../advertising-object-url-with-bluetooth-le.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Apple&amp;#39;s advertising packet contains a 16byte UUID, a 2 byte major, a 2 byte minor and the transmission power (TX.) Theoretically, you can choose to make your advertising packet report skin temperature instead of say the minor number. Though I myself have not yet tried to change the advertising packet contents periodically on an nrf51822, here is what I&amp;#39;d try. After every timeout event while you read the latest skin temperature, just call &lt;em&gt;advertising_init()&lt;/em&gt; with new values, then call &lt;em&gt;advertising_start();&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Specifically, look at the following field in the docs:&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;&lt;code&gt;ble_advdata_manuf_data_t *   p_manuf_specific_data
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>