OpenWrt Forum Archive

Topic: LPT port for a router is available

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have rewrited and backported driver for MosChip product MCS7715 (mos7715 or moschip7715) http://www.moschip.com/html/MCS7715.html

The chip is used in a products like:
http://www.sunix.com.tw/it/en/Product_D … mp;sid=398
http://www.lan-shop.cz/redukce-pc/ostatni/19144

I have created two driver versions:
1) kernel 2.4 - I have tested it on wl700ge with Kamikadze r6914. it prints using p910nd.
2) kernel 2.6.23 - I have tested it on Fedora 8, PC i386. Could be interesting for nslu2 and fsg devices.

If there is anyone who is interested in testing, please let me know. I want to be sure that driver is OK before release it.

MoD

(Last edited by MoD on 3 Jan 2008, 16:07)

I just have had idea to connect LPT printer via MCS7715.
So I need that driver.

If testing is needed, I'm ready to join.
Have WhiteRussian 0.9 on my Asus WL500gP, planning to bring up p910nd printer server.

I'd simply buy a router with USB and use a USB to LPT adapter with usblp. Works perfect here.

I'm trying to review a driver. parport is working. but serial port has some problems:( currently I'm not sure that the serial port works with the driver from moschip website.

does anyone want to help me? dropa a PM. I'm quite busy right now so testing is a bit slow.

Hello,

I'm interested by this driver.

I'm french, and i don't write english very well hmm

I have the same product, mos7715. I want to use an old parallel scanner (which work well) with my last computer, which don't have parallel port.

This computer work with a Mandriva 2006, and a 2.6.23.12 kernel.

I've tried to make a driver, with the kernel's driver of the mos7720 (a 2 serial port/USB adapter), and the driver of the mos7715 provided by Moschip (made for a 2.6.11 kernel and a Fedora), but i doesn't work.

I've downloaded, compiled and insterted your driver (it's OK), but xsane don't see my scanner (plugged on the moschip 7715).

Can you tell me how to test the driver ?

jllc wrote:

Can you tell me how to test the driver ?

I'm not familiar with ypur scanner interface and do not know how the scanner works with parport. However you cant test (debug) the driver. There is a variable #define ASP_DEBUG. Please set #define ASP_DEBUG 1 to get debug messages.

Theoretically driver should work in modes PARPORT_MODE_PCSPP | PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP | PARPORT_MODE_ECP | PARPORT_MODE_COMPAT.

(Last edited by MoD on 7 Mar 2008, 11:15)

I have released a new version.

jllc wrote:

I've downloaded, compiled and insterted your driver (it's OK), but xsane don't see my scanner (plugged on the moschip 7715).

Are you sure that your scanner uses a parport interface and not an old type SCSI interface? I have seen an old type SCSI cards like SYM20401 which has a SCSI port that is the same type as parport interface.

MoD wrote:

Are you sure that your scanner uses a parport interface and not an old type SCSI interface? I have seen an old type SCSI cards like SYM20401 which has a SCSI port that is the same type as parport interface.

Yes, it use a parallel port, and it work perfectly on an old computer which have a parallel port on his motherboard.

With the moschip adapter, I don't know how to test/debug. For network, I know tools like ifconfig, route, ping, ethereal or tcpdump. For USB, I know "usbmon" for see what append on a USB port.

But for parallel device, I don't know which tool use for debugging.

jllc wrote:

With the moschip adapter, I don't know how to test/debug. For network, I know tools like ifconfig, route, ping, ethereal or tcpdump. For USB, I know "usbmon" for see what append on a USB port.

But for parallel device, I don't know which tool use for debugging.

to debug the driver you have to enable debugging inside the driver and recompile it. then you will see a lot of debug info by typing dmesg

Silly question... I just bought a cable with this chipset and am thinking about using your driver on 2.4 (actually Kamikaze not white russian). Did you need to do anything special to compile on 2.4 MoD? Did you use an OpenWRT Makefile or just cross compile and load the driver on your system?

Thanks
Misha

misha680 wrote:

Silly question... I just bought a cable with this chipset and am thinking about using your driver on 2.4 (actually Kamikaze not white russian). Did you need to do anything special to compile on 2.4 MoD? Did you use an OpenWRT Makefile or just cross compile and load the driver on your system?

Thanks
Misha

I just released kernel 2.4 version: http://sourceforge.net/projects/mos7715/ Please provide a feedback if it is working correctly.

jllc wrote:
MoD wrote:

Are you sure that your scanner uses a parport interface and not an old type SCSI interface? I have seen an old type SCSI cards like SYM20401 which has a SCSI port that is the same type as parport interface.

Yes, it use a parallel port, and it work perfectly on an old computer which have a parallel port on his motherboard.

With the moschip adapter, I don't know how to test/debug. For network, I know tools like ifconfig, route, ping, ethereal or tcpdump. For USB, I know "usbmon" for see what append on a USB port.

But for parallel device, I don't know which tool use for debugging.

I have release some new versions of a driver at I just http://sourceforge.net/projects/mos7715/

I'm not a big expert in parport but vendor documentation (http://www.moschip.com/data/products/MCS7715/Data%20Sheet_7715.pdf page 25) says that the Device Control Register (DCR) Bit[5] is resposible for input/output mode. I think that the driver is configured to work with printers (output mode) and the driver needs additional code to be switched to scanned mode (input mode). I'ts just my guessing, I'm not an expert. I have released a well documented code (at least I hope so:)) and I hope that there will be someone who could help improving the driver functionality.

More information about parport scanners can be found here: http://www.buzzard.me.uk/jonathan/scanners.html

(Last edited by MoD on 5 Apr 2008, 13:15)

Is there any way I can check what IO (base-address) my mos7715 lpt port has ? /proc/sys/dev/parport/parport0/base-addr shows 0 0. I need this to pass to dosemu to handle a hardware key. The cups printer works fine so the port is working, but at what adress ?

I'm using the same adapter now for a nslu2 device.
The problems are:
The driver creates a /dev/ttyUSB0 but now /dev/parport0 device.
I dont have ppdev module and compiling that is very tricky.

Is there any other possibility to write something on that parallel port using this driver ? (light some leds for example)

(Last edited by zmoky on 3 Sep 2011, 20:02)

The discussion might have continued from here.