Hi again, Sorry for the delay but it took time to check if the hardware is healthy and check if it is Hitachi-compatible. Lanner INC said that LCM is not Hitachi-compatible.
I'm sure that LCM is healthy cause i've tested it under FreeBSD 7.2 i386 Also my boss got permission from the vendor to share LannerINC LCM drivers. Anyone interested can download it from this link: http://speedy.sh/DKraQ/LCM-Linux-DOS-sample-code.zip Here is some output from FreeBSD when i loaded kernel module with kldload plcm_drv: LPTx Address = 378 plcm0: <FreeBSD Device Driver> on ppbus0 # ls -l /dev/plcm_drv crw-r--r-- 1 root wheel 0, 111 Aug 29 11:43 /dev/plcm_drv Also in LCM-Linux-DOS-sample-code.zip<http://speedy.sh/DKraQ/LCM-Linux-DOS-sample-code.zip> file there is FreeBSD driver and sample code. Sample code does some tests and prints some information on LCD display. So back to OpenBSD part. I'm really confused: Should i just do some lpt programming work or for the first do i need to implement/port an LCM driver? Thanks for your interest and help. Denis 2013/8/26 Steve Fairhead <[email protected]> > On 26/08/2013 09:41, Denis Maros wrote: > >> Yes, i'm talking about 2*20 character LCD display connected to 24 pin >> parallel port on motherboard. >> I've tried to access this device simply via this command: >> # echo "Test" > /dev/lpt0 >> ksh: cannot create /dev/lpt0: Device busy >> Yeah, failed. >> Do you suggest any other method/code to try if /dev/lpt0 accessable? >> >> I had thought that a driver would be needed cause the vendor had Linux and >> FreeBSD driver included in CD. >> By the way that the vendor is Lanner INC and device is FW-7581A. >> > > I suspect an LCD module is unlikely to work while driving it as if it were > a parallel port printer. The issue is the protocol. A printer uses the > Centronics interface e.g.: > > <http://retired.beyondlogic.**org/epp/epp.htm<http://retired.beyondlogic.org/epp/epp.htm> > > > > LCD modules vary, but tend to use some variation of the following: > > <http://www.newbiehack.com/**MicrocontrollersABeginnersGuid** > eIntroductionandInterfacinganL**CD.aspx<http://www.newbiehack.com/MicrocontrollersABeginnersGuideIntroductionandInterfacinganLCD.aspx> > > > > For one thing, an LCD module has commands (to set the mode, clear the > display, configuration etc) - it doesn't just take ASCII characters. > > Using the parallel port however is often just a convenient way of getting > some logic-level signals in and out... but you're probably going to need to > bit-bang them (i.e. control them individually) yourself, rather than using > a parallel-port protocol. > > HTH, > > Steve

