Libusb Serial Port

Raspberry Pi Printer Server, Scanner Server and Media Center. First of all, sorry for posting this in english. Hopefully, Ill post this in portuguese too. I chose english as this might be interesting to a wide community of raspberry pi users out there. Chapter 1 Introduction What is wview wview is a collection of linuxunix daemons which interface with a supported weather station to retrieve archive records if. Libusb Serial PortSo whats this all about Really, its about making good use of an extremely cheap, low powered computer that I got at Codebits last year. I actually replaced a 6. I had doing all these things before. My goal was to have a reliable Media Center that could connect to a NAS device I use Synology DS1. Libusb Serial PortLibusb Serial PortMP3. Also, at home we all have a computer and we all need to print or scan something every once in a while. I could have bought a network printer and scanner but instead I already owned an old Canon Inkjet printer, the PIXMA MP6. Libusb Serial PortAs it happens, this is a multifunction device and works as a scanner too. What follows is a recipe to have everything working. Youll need a 4. GB SD card and a Mac to start the procedure. Libusb Serial PortEverything else is done on the Raspberry Pi. You should have some knowledge of working with black windows full of letters as my daughter says. Install raspbmc. Raspbmc is a debian wheezy distribution optimized for XBMC Media Center. There are some others but for some reason I like this one. Any other debian based should work though. Open a terminal window on your mac, insert the SD card on a card reader and run these curl O http svn. Now follow the on screen instructions. Boot raspbmc on your Raspberry Pi. Insert the card on the Raspberry pi. It will boot and complete the installation. Grab a coffee Go ahead and play a bit with XBMC. Its great. And if you have one of those TVs that support CEC then you can even use your TV remote to navigate on XBMC. I know for a fact that Samsung and Sony TVs work quite well. Log on to your Raspberry Pi. Open your terminal and run this ssh pi1. Raspbmc uses the default password raspberry. I advise you to change it just in case. Take some time choosing your locale and time zone settings. It will only prompt you once for these. Update your installation. The network installation of Raspbmc you just did will probably download all the latest packages. However, just to be sure, run these commands sudo apt get update sudo apt get upgrade. Now its time to setup the printer server. sudo apt get install cupsGrab a coffee. This will take a while sudo usermod a G lpadmin pi. Were adding user pi to the lpadmin group. Youll need admin access to add printers.  Now edit cupsd configuration sudo vi etccupscupsd. And change Listem localhost 6. Listen 6. 31. Also change or add the following lines. Replace 1. 92. 1. IP addresses of your network. My network is 1. 92. Listen 6. 31lt Location Order allow,deny. Allow 1. 92. 1. 68. Location lt Location printers Order allow,deny. Allow 1. 92. 1. 68. Location Restrict access to the admin pages. lt Location admin Order allow,deny. Allow 1. 92. 1. 68. Location Were telling cups which IPs in the network have access to. If you trust your network and if youre sure theres no access from outside, you can skip editing the file and just enter sudo cupsctl remote admin  sudo cupsctl remote any Now you have to restart CUPS sudo etcinit. Please note the IP address of your Raspberry Pi. Youll need it later ifconfig eth. F print 2 awk print 16. Add your printer. On your mac, grab a browser and point it to your Raspberry Pis IP on port 6. Mine is on 1. 92. Dont worry about the certificate warning. Have you ever wondered if a cheap Chinese Arduino clone will actually workYou pay only a few bucks and get the same product. Sounds to good to be true right The. Libgphoto2 2. 5. 6 release ptp2. Nikon D3000D3100D3200 It hides the good capture opcodes from the DeviceInfo. Override and add them. If you see capture bugs. Its self signed so your browser will rightfully warn you about it. Now click on Administration and then on Add Printer. You should be prompted with a user and password. Of course, use pi as the user and raspberry as the password or whatever new password you choseYou should see a list of local printers. Mine was listed as Canon MP6. Canon MP6. 30 seriesPress continue, review the information and make sure you check Share this printerChoose a make and model and finally add the printer. Add your new network printer on OSXThis is where Ive seen most people make a mistake so beware. When you add this printer under OSX, the default driver is postscript based. This means the Mac will send a postscript file back to the CUPS server. Now the server has to convert postscript to whatever the printer understands. This is bad. This conversion is both memory and cpu consuming. Printing a page would take up to 1. What I did was I installed the correct driver on OSX as if I had the printer connected locally and used that driver. This means that all processing is done by my computer and the Raspberry Pi only has to forward it to the printer. In my case, I installed Canon. Printer. Drivers from Apple and chose MP 6. Series driver on the printer add dialog. Printing done Go ahead and print a few documents. Its fast and has almost no impact on the Raspberry. I actually had a video playing without problems. Now for the scanner. While installing CUPS you also installed SANE. So everything should be in place. To be sure, run this command scanimage Ldevice pixma 0. A9. 17. 2E1. 45. C7. 0 is a CANON Canon PIXMA MP6. So, SANE identified my device correctly. Actually, if I try scanimage formattiff myimage. It works. But now we need to tell SANE who is allowed to scan from the network. Grab your editor sudo vi etcsane. And simply add this line. Again, change it to match your network. This means that every IP from 1. Now make sure SANE starts by default. You need to edit another file sudo vi etcdefaultsaned. And change this line to yes. RUNyes. 9 Setup your scanner client under OSXNow, unfortunatelly, Apple has been shooting itself in the foot as far as network scanning is concerned. With the latest versions I tried 1. Image Capture. However, with a few tweaks you can make things work. First, you need to install SANE Backends for OSX. Theres a nice port here http www. Install libusb and SANE Backends, SANE Preferences Pane in this order. Now you must tell your mac where to search for the scanner. Edit this file vi usrlocaletcsane. And add your Raspberry Pis IP right at the end. In my case, 1. 92. Now go ahead and see if your mac recognizes the network scanner scanimage Ldevice net 1. A9. 17. 2E1. 45. C7. 0 is a CANON Canon PIXMA MP6. There If youre a command line fan, you can simply use scanimageIf you prefer a gui to scanimage, download snac from here http www. Its just a GUI frontend to scanimage but it allows you to scan and save the picture. I hope this is useful to somebody.

.