I'm actually working on an arduino project where I would use the arduino Uno as a "virtual printer" : basically I need it to be detected as a printer and be able to send ("print") a basic .txt file to the arduino. I looked into various things such as Winows Driver Kit, specifications, forum posts, etc. but I don't know where to start. In some places I saw it would be possible to change an old generic serial printer driver, or that i would have to change the soft on the atmega16u and other things.
If anyone had an idea on the approach to take and a fiew hints on how to succeed he would be gladly welcome!
Check my parprinter class in this thread, might be helpful.
It is derived from print class so it understands enough basic datatypes ( int , float , text) to be able to print text files.
I will try this tomorrow morning, seem's interesting to me : hope it works
robtillaart:
Check my parprinter class in this thread, might be helpful.
It is derived from print class so it understands enough basic datatypes ( int , float , text) to be able to print text files.
I tried it with a txt file containing only "test" but windows catches an error and the printing do not proceed On the arduino I use Serial.available but maybe I should create another object?