<?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>How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5310/how-to-embed-an-url-in-the-bluetooth-packet</link><description>Hey, 
 I have a requirement to launch google play store/ installed app in an Android/ IOS mobile upon pairing of the nrf51822 with a mobile. 
 So can anyone help me out in letting me know: 
 
 What are the things do be done in the bluetooth device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jun 2015 12:25:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5310/how-to-embed-an-url-in-the-bluetooth-packet" /><item><title>RE: How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/thread/18574?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 12:25:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a900953b-66e7-4736-98d5-c544d62ce54e</guid><dc:creator>Per Thomas jahr</dc:creator><description>&lt;p&gt;I had some trouble after uploading the firmware from &lt;a href="https://github.com/google/uribeacon/tree/master/beacons/nRF51"&gt;github.com/.../nRF51&lt;/a&gt; to the smart beacon kit.&lt;/p&gt;
&lt;p&gt;There was no advertisement and it wasn&amp;#39;t possible to configure it. It seemed to be stuck. I resolved this by pulling out the battery and re-inserting it while holding down SW1 button. Then the green LED went on and I could use DFU to do a new firmware upload. Everything worked fine after that.&lt;/p&gt;
&lt;p&gt;Also note that there seems to be two protocol versions (V1 and V2) for configuring a URIBeancon. The github version for nRF51 seems to only support V1 now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/thread/18571?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2015 13:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6254dbb3-a8a1-47ad-9476-a4bab21665bb</guid><dc:creator>Vebj&amp;#248;rn</dc:creator><description>&lt;p&gt;Do you have a link or some more information about this dongle? It is possible that certain android versions or other devices offer a service that lets a bluetooth-device open play store, but it is not something I have heard about.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/thread/18570?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2015 05:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5d498e-4eca-4fb1-bc2d-818f9ccb1836</guid><dc:creator>Gautham</dc:creator><description>&lt;p&gt;Yes it is strange and I was puzzled to how this is done so I posted this question.
I found a bluetooth dongle called Lubao that does this. I wonder how. I researched the same. I am not familiar with Android so I am not sure to what extent Android offers such service: allowing external devices to generate a pop up redirecting to play store.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/thread/18569?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2015 14:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:190b6586-01a7-47b6-a5a9-593caea25d3e</guid><dc:creator>Vebj&amp;#248;rn</dc:creator><description>&lt;p&gt;May I ask what devices you have found that does this? It sounds a little strange to me. As far as I know, you can not force a device to do anything, unless you have an app or service installed that does it for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/thread/18573?ContentTypeID=1</link><pubDate>Thu, 29 Jan 2015 11:22:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22260a0d-e640-46e2-97ec-41bc6ced5654</guid><dc:creator>Gautham</dc:creator><description>&lt;p&gt;Thanks for the pointer!
I will have a detailed look into this and post the results soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/thread/18568?ContentTypeID=1</link><pubDate>Thu, 29 Jan 2015 11:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162e0e44-db78-44e8-a628-34b0493273f6</guid><dc:creator>Gautham</dc:creator><description>&lt;p&gt;Thanks for your quick response!
regarding 1. I shall try the method suggested by you and post again.
Regarding point 2, I agree with you that it would be dangerous to do these things directly from the bluetooth packet. At the same time I would like to know if you know how to invoke/ request OS to generate a pop up on pairing that can then take me to play store.
I checked a couple of BLE devices that are already doing this (with no additional apps installed in the mobile). But I am not sure how this is done.
again any idea how this can be done (using some service provided by Android OS)?
Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/thread/18572?ContentTypeID=1</link><pubDate>Wed, 28 Jan 2015 15:15:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55bc0cf4-de2a-4643-9b60-e6f0e191e3ed</guid><dc:creator>Cory Mast</dc:creator><description>&lt;p&gt;Have you looked into creating a URIBeacon? This is similar to what you are trying to accomplish although I&amp;#39;m not sure about having it launch the play store app. It transmits a URI in its advertisement data and your app can translate that and launch the URI. The Nordic Master Control Panel app for android devices, available on the play store, supports the URIBeacon spec and might help you accomplish this task. There is example code on Google&amp;#39;s github page for the that should get you started.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/google/uribeacon/tree/master/beacons/nRF51"&gt;github.com/.../nRF51&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed an URL in the bluetooth packet?</title><link>https://devzone.nordicsemi.com/thread/18567?ContentTypeID=1</link><pubDate>Wed, 28 Jan 2015 13:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:852d537f-cd7c-4bf8-bc75-76f4a429a76b</guid><dc:creator>Vebj&amp;#248;rn</dc:creator><description>&lt;p&gt;If I understand it correctly, you want to create an android/iOS app that launches Google Play/App-store when the phone bonds with your nrf51822-device?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can modify the ble_app_uart example to achieve this. Simply have the nrf51822 send a notification to the phone with the link, and have the app open the link. There are several ways you can do this. Sending a long URL in a single packet is not possible, since only 20 bytes can be sent at a time. You can either divide the URL into several packets and send them individually (more discussion about this here: &lt;a href="https://devzone.nordicsemi.com/question/15609/how-to-read-and-write-long-string/"&gt;link&lt;/a&gt; ).&lt;/p&gt;
&lt;p&gt;Another way could be to shorten the URL you want to send, using for example &lt;a href="https://goo.gl/"&gt;goo.gl&lt;/a&gt;. This way, you only have to send 6 bytes across the BLE link to transmit a URL (the 6 last characters of the goo.gl link)&lt;/p&gt;
&lt;p&gt;The android and iOS source code for the UART app can be downloaded from nordicsemi.com, and should be pretty easy to modify to create what you want.&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;You can not simply send packets to a phone to make it do things. It would be very dangerous if you could. Instead, you need an app or a service in the operating system that can communicate with your device, and that will open app store for you.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>