[guardian-dev] FireChat moved off iOS proprietary mesh to their own xp mesh protocol?

Nathan of Guardian nathan at guardianproject.info
Wed Oct 1 12:53:59 EDT 2014



On Wed, Oct 1, 2014, at 12:08 PM, Michael Rogers wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On 01/10/14 14:29, Nathan of Guardian wrote:
> > So, this should work:
> > 
> > Intent discoverableIntent = new 
> > Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); 
> > discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,
> >
> > 
> 0);
> > startActivity(discoverableIntent);
> 
> Results from the pile o'phones:
> 
> Duration 0:
> 
> Galaxy Nexus (4.3): Indefinite, setting is persistent when BT is
> turned off and on again
> Samsung Galaxy Ace 2 (4.2.1): Indefinite, not persistent
> Sony Xperia tipo (4.0.4): Prompt says indefinite, but phone doesn't
> actually become discoverable
> HTC Wildfire S (2.3.3): 120 seconds
> Huawei U8110 (2.1): 120 seconds
> 
> Duration 120:
> 
> Galaxy Nexus (4.3): 120 seconds
> Samsung Galaxy Ace 2 (4.2.1): 120 seconds
> Sony Xperia tipo (4.0.4): 120 seconds
> HTC Wildfire S (2.3.3): 120 seconds
> Huawei U8110 (2.1): 120 seconds
> 
> Duration 3600:
> 
> Galaxy Nexus (4.3): 3600 seconds, not persistent
> Samsung Galaxy Ace 2 (4.2.1): 3600 seconds, not persistent
> Sony Xperia tipo (4.0.4): 3600 seconds, not persistent
> HTC Wildfire S (2.3.3): 300 seconds, not persistent
> Huawei U8110 (2.1): 300 seconds, not persistent
> 
> Cheers,
> Michael
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> 
> iQEcBAEBCAAGBQJULCcCAAoJEBEET9GfxSfMVnUIAJ+TruAWr6XW2T00onqaexaC
> x1+f1P87oSAOAiEmbfxMwnR8OQZaoFV+ptU+HI8cAi19wby2Hxj+v7olX0l5FBH+
> 0hP56PQjD6MmbNkzSsyWcIrzHblZCkMihksY8/tuS2Stia1WP7aq6hEOiauPaqUJ
> wInZmglsj4B+Gc7KZQp3kuiKOO5QggyGTZ60gb3ZC3ttC14VplUXfr5jeXe6toJz
> R1sSn+A6zR4PZKPF23Rw2rZA4MtNw7koZ+gcvfyQ4n1HXfeig4U79mm/S5PJ7U/p
> sUJv8j7gHSJ/Imuz1zqrAG/h7U6rXvWdL1JH5H9WAFVSM6w6tp5FK7fbaUHDuP4=
> =MN4R
> -----END PGP SIGNATURE-----

Interesting results... here is what my hacking has wrought:

https://github.com/n8fr8/gilgamesh

It is based on the Android-17 BluetoothChat sample, but changed to use
the getName() as the message bearer, and the 3600 timeout option. This
means that app starts up in discovery mode and stays there, and you
don't have to pair or anything.

For the user name, it uses the first 6 digits of the Bluetooth MAC
address ID. 

There is a "Direct Message" mode that uses the insecure socket option if
not paired, and the secure socket option if paired (or it will soon).
Over this socket, we could easily add in OTR.

Finally, if you are paired with a user, there username will be appended
with a * so you can know that they are someone you trust and have linked
with in person.

+n


More information about the Guardian-dev mailing list