Problem fixed. thanks for the help Martin. I am going to look up on the protocols
On Thu, Dec 24, 2015 at 11:11 AM, Rajesh Khan <rajeshkhan...@gmail.com> wrote: > This is an update file > My .service looks like this now > > <?xml version="1.0" standalone='no'?><!--*-nxml-*--> > <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> > <service-group> > <name>SomePrinter</name> > <service> > <type>_ipp._tcp</type> > <subtype>_universal._sub._ipp._tcp</subtype> > <port>631</port> > <txt-record>txtver=1</txt-record> > <txt-record>qtotal=1</txt-record> > <txt-record>rp=printers/yourPrnterName</txt-record> > <txt-record>ty=yourPrnterName</txt-record> > > <txt-record>adminurl=http://198.168.7.15:631/printers/yourPrnterName</txt-record> > <txt-record>note=Office Laserjet 4100n</txt-record> > <txt-record>priority=0</txt-record> > <txt-record>product=(GPL Ghostscript)</txt-record> > <txt-record>printer-state=3</txt-record> > <txt-record>printer-type=0x801046</txt-record> > <txt-record>Transparent=T</txt-record> > <txt-record>Binary=T</txt-record> > <txt-record>Fax=F</txt-record> > <txt-record>Color=T</txt-record> > <txt-record>Duplex=T</txt-record> > <txt-record>Staple=F</txt-record> > <txt-record>Copies=T</txt-record> > <txt-record>Collate=F</txt-record> > <txt-record>Punch=F</txt-record> > <txt-record>Bind=F</txt-record> > <txt-record>Sort=F</txt-record> > <txt-record>Scan=F</txt-record> > > <txt-record>pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/urf</txt-record> > <txt-record>URF=W8,SRGB24,CP1,RS600</txt-record> > </service> > </service-group> > > > However its still not being displayed do I need to change something .hosts > ? > > On Thu, Dec 24, 2015 at 11:03 AM, Rajesh Khan <rajeshkhan...@gmail.com> > wrote: > >> Thanks a lot Martin , that information was very helpful. I am currently >> reading on IPP however just for the sake of it to see if my printer called >> "SomePrinter" is being broadcasted by Avahi I did the following >> >> I created the following .service file and placed it in the services folder >> >> <?xml version="1.0" standalone='no'?> >> >> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> >> >> <service-group> >> >> <name replace-wildcards="yes">SomePrinter %h</name> >> >> <service> >> >> <type>_ipp._tcp</type> >> >> <port>631</port> >> >> </service> >> >> </service-group> >> >> >> I then restarted avahi with the expectation of seeing SomePrinter showing >> up via Bonjour. Unfortunately that did not happen. Any suggestions on what >> I might be missing ? >> >> On Thu, Dec 24, 2015 at 4:32 AM, Martin Nyolt <8e3b3...@gmail.com> wrote: >> >>> Hello Rajesh, >>> >>> This is probably not the right mailing list for your problem. >>> >>> Avahi (Zeroconf) is just an advertisement of services on your network. >>> For instance with avahi you can advertise a printing service using the >>> Internet Printing Protocol (IPP) over tcp at port 631. >>> In avahi, you would publish this example as type _ipp._tcp at port 631. >>> >>> Avahi itself does not implement the actual service in any way. This is >>> the responsibility of the service that told avahi to publish it (in this >>> case this would be you). >>> >>> So, yes: you would have to listen on the port you are advertising. >>> The choice of protocol depends on your application and clients, of >>> course. >>> The kind of data you receive then depends on the service type you are >>> advertising and the clients who assume they can speak to that service using >>> the published protocol. >>> To support a wide range of clients, you will probably want to use an >>> established protocol, such as IPP. >>> >>> So you probably want to do some research on available printing >>> protocols. I do not know them in detail. >>> This definitely goes beyond the scope of this list. Avahi is just >>> concerned with the advertisement of that service, not with the actual >>> service. >>> >>> Best regards, >>> Martin >>> >>> On 24/12/15 06:43, Rajesh Khan wrote: >>> >>>> Hello all , I have been stuck on this issue for a while and wanted to >>>> know >>>> what my options are. >>>> I currently have an embedded device running embedded linux. >>>> Now I would like to advertise that device as a printer via Avahi (the >>>> device itself is not a printer). My current embedded linux flavour does >>>> not >>>> have CUPS installed in it and I would like to avoid it if possible.I >>>> recently found out that I could advertise my device using >>>> avahi-publish(1) >>>> <http://avahi.org/download/avahi-publish.1.xml>. I have not tested >>>> this >>>> yet.Now suppose this works. >>>> My question is what kind of data will my device receive if a user >>>> selects >>>> this newly advertised printer and issues a print command from a text >>>> editor (say using textmate).I would like to manipulate that data on my >>>> device.Will my device need to be listening on a certain socket/port ? >>>> How >>>> will I receive that data ? What will be the format of that data ? Any >>>> suggestions or hints on this would be more than appreciated. >>>> >>>> >>>> _______________________________________________ >>> avahi mailing list >>> avahi@lists.freedesktop.org >>> http://lists.freedesktop.org/mailman/listinfo/avahi >>> >> >> >
_______________________________________________ avahi mailing list avahi@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/avahi