I've attached a patch to enable duplex printing for the PIXMA MP830. I added an enum to pixma_scan_param_t that indicates which side of the document is being scanned. It is set in sane_start, and used mp150_scan so that an out of paper error only happens on a front side scan.
<br><br>- Dusty<br><br><div><span class="gmail_quote">On 10/4/07, <b class="gmail_sendername">Dustin DeWeese</b> <<a href="mailto:dustin.deweese@gmail.com">dustin.deweese@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I got duplex scanning to work. It works for all pages except the last page scanned. It looks like the answer is already in the comments in mp150_scan() in pixma_mp150.c:<br><br>/* FIXME: Duplex ADF: check paper status only before odd pages (1,3,5,...). */
<br><br>- Dusty<div><span class="e" id="q_1156e43d08b138fc_1"><br><br><br><div><span class="gmail_quote">On 10/4/07, <b class="gmail_sendername">Dustin DeWeese</b> <<a href="mailto:dustin.deweese@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
dustin.deweese@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a name="1156e43d08b138fc_1156e2946b1a96bb_me">Wittawat Yamwong,<br><br>I have a PIXMA MP-830, and I'd like to add ADF duplex support to your driver for this model. I enabled the ADF Duplex source by uncommenting the code in the init_option_descriptors function in pixma_sane.c in the latest version (0.13.1). This is what scanadf outputs:
<br><br>$ scanadf --source='ADF Duplex'<br>[pixma-0.13.1] WARNING:image size mismatches<br>[pixma-0.13.1] 1683840 expected (877 lines) but 952320 received (496 lines)<br>Scanned document image-0001<br>scanadf: sane_read: Document feeder out of documents
<br>Scanned 1 pages<br><br>The device scans the first side and holds the document waiting to scan the other side. The screen on the device displays:<br><br>Document in ADF.<br>Continue scan<br>=Continue operation on<br>
PC
<br>Discharge document<br>=[OK]<br><br>OK => Discharge<br><br>I have to press OK to make the device release the document.<br><br>How can I help implement duplex scanning on the MP-830? I've used USB Snoopy before to write a driver for a USB device. Should I do a duplex scan on Windows and send you a link to the output from USB Snoopy?
<br><br>Thanks,<br>Dusty DeWeese<br></a>
</blockquote></div><br>
</span></div></blockquote></div><br>