<div dir="ltr">If anyone is interested in taking a look at implementing this, it would be very interesting, and we would be willing to offer what assistance we can.<div><br></div><div>Paul.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 11:18 PM, Dan Staples <span dir="ltr"><<a href="mailto:danstaples@opentechinstitute.org" target="_blank">danstaples@opentechinstitute.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">-------- Original Message --------<br>
Subject: [serval-project-dev] Using Bluetooth device name as message<br>
transport (from guardian-dev)<br>
Date: Wed, 01 Oct 2014 23:18:20 +0100<br>
From: Kevin Steen <<a href="mailto:googlegroups-servaldev@kevinsteen.net">googlegroups-servaldev@kevinsteen.net</a>><br>
Reply-To: <a href="mailto:serval-project-developers@googlegroups.com">serval-project-developers@googlegroups.com</a><br>
To: Serval Project Developers <<a href="mailto:serval-project-developers@googlegroups.com">serval-project-developers@googlegroups.com</a>><br>
<br>
If you haven't already seen it, the Guardian project have done a<br>
proof-of-concept app which uses the bluetooth device name as a message<br>
transport, since the name can be 248 bytes and recent phones allow a<br>
long 'discoverable' period.<br>
<br>
This might be a great option for serval mesh connectivity, too,<br>
increasing the number of phones able to participate in the mesh and<br>
giving rhizome greater reach.<br>
<br>
The sample app is at the URL below, or read the thread from<br>
<a href="https://lists.mayfirst.org/pipermail/guardian-dev/2014-October/003844.html" target="_blank">https://lists.mayfirst.org/pipermail/guardian-dev/2014-October/003844.html</a><br>
<br>
-Kevin<br>
<br>
<br>
-------- Original Message --------<br>
Subject: Re: [guardian-dev] FireChat moved off iOS proprietary mesh to<br>
their own xp mesh protocol?<br>
Date: Wed, 01 Oct 2014 12:53:59 -0400<br>
From: Nathan of Guardian <<a href="mailto:nathan@guardianproject.info">nathan@guardianproject.info</a>><br>
To: Michael Rogers <<a href="mailto:michael@briarproject.org">michael@briarproject.org</a>><br>
CC: <a href="mailto:guardian-dev@lists.mayfirst.org">guardian-dev@lists.mayfirst.org</a><br>
<br>
<br>
<br>
On Wed, Oct 1, 2014, at 12:08 PM, Michael Rogers wrote:<br>
> On 01/10/14 14:29, Nathan of Guardian wrote:<br>
>> So, this should work:<br>
><br>
>> Intent discoverableIntent = new<br>
>> Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);<br>
>> discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,<br>
>> 0);<br>
>> startActivity(discoverableIntent);<br>
><br>
> Results from the pile o'phones:<br>
><br>
> Duration 0:<br>
><br>
> Galaxy Nexus (4.3): Indefinite, setting is persistent when BT is<br>
> turned off and on again<br>
> Samsung Galaxy Ace 2 (4.2.1): Indefinite, not persistent<br>
> Sony Xperia tipo (4.0.4): Prompt says indefinite, but phone doesn't<br>
> actually become discoverable<br>
> HTC Wildfire S (2.3.3): 120 seconds<br>
> Huawei U8110 (2.1): 120 seconds<br>
><br>
> Duration 120:<br>
><br>
> Galaxy Nexus (4.3): 120 seconds<br>
> Samsung Galaxy Ace 2 (4.2.1): 120 seconds<br>
> Sony Xperia tipo (4.0.4): 120 seconds<br>
> HTC Wildfire S (2.3.3): 120 seconds<br>
> Huawei U8110 (2.1): 120 seconds<br>
><br>
> Duration 3600:<br>
><br>
> Galaxy Nexus (4.3): 3600 seconds, not persistent<br>
> Samsung Galaxy Ace 2 (4.2.1): 3600 seconds, not persistent<br>
> Sony Xperia tipo (4.0.4): 3600 seconds, not persistent<br>
> HTC Wildfire S (2.3.3): 300 seconds, not persistent<br>
> Huawei U8110 (2.1): 300 seconds, not persistent<br>
><br>
> Cheers,<br>
> Michael<br>
<br>
Interesting results... here is what my hacking has wrought:<br>
<br>
<a href="https://github.com/n8fr8/gilgamesh" target="_blank">https://github.com/n8fr8/gilgamesh</a><br>
<br>
It is based on the Android-17 BluetoothChat sample, but changed to use<br>
the getName() as the message bearer, and the 3600 timeout option. This<br>
means that app starts up in discovery mode and stays there, and you<br>
don't have to pair or anything.<br>
<br>
For the user name, it uses the first 6 digits of the Bluetooth MAC<br>
address ID.<br>
<br>
There is a "Direct Message" mode that uses the insecure socket option if<br>
not paired, and the secure socket option if paired (or it will soon).<br>
Over this socket, we could easily add in OTR.<br>
<br>
Finally, if you are paired with a user, there username will be appended<br>
with a * so you can know that they are someone you trust and have linked<br>
with in person.<br>
<br>
+n<br>
_______________________________________________<br>
Guardian-dev mailing list<br>
<br>
Post: <a href="mailto:Guardian-dev@lists.mayfirst.org">Guardian-dev@lists.mayfirst.org</a><br>
List info: <a href="https://lists.mayfirst.org/mailman/listinfo/guardian-dev" target="_blank">https://lists.mayfirst.org/mailman/listinfo/guardian-dev</a><br>
<br>
<br>
<br>
--<br>
You received this message because you are subscribed to the Google<br>
Groups "Serval Project Developers" group.<br>
To unsubscribe from this group and stop receiving emails from it, send<br>
an email to <a href="mailto:serval-project-developers%2Bunsubscribe@googlegroups.com">serval-project-developers+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to<br>
<a href="mailto:serval-project-developers@googlegroups.com">serval-project-developers@googlegroups.com</a>.<br>
Visit this group at<br>
<a href="http://groups.google.com/group/serval-project-developers" target="_blank">http://groups.google.com/group/serval-project-developers</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
<br>
<br>
</div></div>_______________________________________________<br>
Commotion-dev mailing list<br>
<a href="mailto:Commotion-dev@lists.chambana.net">Commotion-dev@lists.chambana.net</a><br>
<a href="https://lists.chambana.net/mailman/listinfo/commotion-dev" target="_blank">https://lists.chambana.net/mailman/listinfo/commotion-dev</a><br>
</blockquote></div><br></div>