Difference between revisions of "Mesh/Firmware/Zeroconf"

added details to publishing
(→‎Software: added avahi-publish)
(added details to publishing)
Line 3: Line 3:
=Software=
=Software=


The mDNS responder (avahi) browses and controls mDNS software (nss-mdns). The mDNS responder allows you to broadcast and resolve a computer's address on the (mesh) network. When services are available on the computer, they can be accessible through the resolved name, but they aren't broadcasted until listed in the avahi services folder (etc/avahi/services).  
The mDNS responder (avahi) browses and controls mDNS software (nss-mdns). The mDNS responder allows you to broadcast and resolve a computer's address on the (mesh) network. When services are available on the computer, they can be accessible through the resolved name, but they aren't broadcasted until listed in the avahi services folder (etc/avahi/services).
 
==Publish a Service==


To broadcast a service on the network (the long way) and load on boot:  
To broadcast a service on the network (the long way) and load on boot:  
Line 10: Line 12:
* [http://fedorasolved.org/Members/fenris02/zero-configuration-networking-avahi avahi service examples] - a few examples of services
* [http://fedorasolved.org/Members/fenris02/zero-configuration-networking-avahi avahi service examples] - a few examples of services


To broachast a service (the easy way):  
To broadcast a service (the easy way):  
* Use <code>avahi-publish</code>
* Use <code>avahi-publish</code>
*: <code>$ avahi-publish -s <NAME> <SERVICE TYPE> <PORT></code>
*: <code>$ avahi-publish -s <NAME> <SERVICE TYPE> <PORT> <KEY VALUES></code>
 
When you broadcast through command line you can add as many keyvalues to your service. Our service browser has the following key values:
* scope - registering the serivce with a service-browser
* type - category of service
* region - the area where the service is hosted (to minimize latency)
 
''Example: <code><avahi-publish -s search _http._tcp 80 scope=peoplesopen.net type=search region=oakland</code>''


== [http://avahi.org/ avahi] ==  
== [http://avahi.org/ avahi] ==  
289

edits