salendron / Snakeberry

A lightweight webservice based media player fpr Raspberry Pi.
14 stars 10 forks source link

Enhance Device Discovery #1

Open salendron opened 11 years ago

salendron commented 11 years ago

Advice by Jörg Desch (via google+): Let Raspberry listen to an UPD-Port and wait for a package with defined length, known id at the beginning and a valid checksum. Than send an UPD to the sender to notify it about an existing snakeberry.

joede commented 11 years ago

To make your life easier, I want to tell you about a library I've found today. I have'nt used it, nor have I had a deeper look at it. Maybe it is of interest for you...

https://github.com/pocmo/Android-Network-Intents

Android Network Intents (ANI) is a library to send Android Intent objects to listening apps/devices via multicast (UDP). This library has been written to utilize it for writing simple app or service discovery protocols but as it can be used to send and receive any Intents through the network without knowing the specific receivers there might be a lot of other use cases.

salendron commented 11 years ago

Thanks!

Laess3r commented 11 years ago

I have the problem that I can view the json string when entering the ip of my raspi on my laptop, but my phone cant find the raspi ... can this somehow be done manually??