I want to send data gathered by the Yun from sensors and get them directly printed by a network printer which I have its IP and port. Provided the data is just the simple phrase "data 1,2,3", I am wondering, in which form should this data be sent? Should it be gathered in a file.txt for example? Or should I send it directly as it is to the printer? Should it be converted to another language like ASCII ??
Btw. The arduino and the printer are on the same network. No PC should be used here.
Elma96:
I want to send data gathered by the Yun from sensors and get them directly printed by a network printer which I have its IP and port. Provided the data is just the simple phrase "data 1,2,3", I am wondering, in which form should this data be sent? Should it be gathered in a file.txt for example? Or should I send it directly as it is to the printer? Should it be converted to another language like ASCII ??
Btw. The arduino and the printer are on the same network. No PC should be used here.
Rather than asking forum members to guess, why don't you look at the documentation for the printer and see what kind of information is necessary for it to print something.
By the way, your file.txt is most likely the be ASCII characters. ASCII is not a language.
It should be dealing with any printer, not a specific Type. I suppose that the purpose of the Forum is to ask questions and get Info. Sorry if it bathers you. You could simply ignore it.
Elma96:
It should be dealing with any printer, not a specific Type. I suppose that the purpose of the Forum is to ask questions and get Info. Sorry if it bathers you. You could simply ignore it.
What bothers me is how little effort you want to put into the project. Do you NOT have to identify the printer when you connect a new one to the PC? or add one to your network. That identification is so the correct drivers can be installed to match the printer. At that point, if the printer is really old, you may be able to send ASCII to it and perhaps when a line is full or a CR/LF is sent, the printer will print something.
Modern printers are ALL graphics printers and require specific languages and protocols to be followed to print anything. All text you see printed on a Laserjet or an inkject, are ALL graphic pictures, NOT the characters you see on the paper.
You cannot get information such as you are asking for without being specific.