Hi Jacques, Every thing is working fine. I found the configuration file (jpos.xml) for cash drawer that contains JposEntry for cash drawer like this:
<JposEntry logicalName="CD-100M"> <creation factoryClass="jp.co.epson.jpos182.util.EpsonJposServiceInstanceFactory" serviceClass="jp.co.epson.jpos182.drw.CashDrawerService"/> <vendor name="SEIKO EPSON" url="http://www.epson.co.jp"/> <jpos category="CashDrawer" version="1.11.1"/> <product description="Printer controlled Cash Drawer" name="CD-100M" url="http://www.epson.co.jp"/> <prop name="PhysicalDevice" type="String" value="Standard"/> <prop name="PulseONTime" type="String" value="100"/> <prop name="PortName" type="String" value="COM1"/> <prop name="ClosedStatusPhase" type="String" value="0"/> <prop name="Uses" type="String" value="TM-U220B"/> <prop name="PulseOFFTime" type="String" value="400"/> <prop name="PortType" type="String" value="0"/> <prop name="Parity" type="String" value="0"/> <prop name="DeviceDesc" type="String" value="EPSON Standard CashDrawer"/> <prop name="ServiceVersion" type="String" value="1.82"/> <prop name="TimeoutTime" type="String" value="5000"/> <prop name="DataLen" type="String" value="1"/> <prop name="RetryTime" type="String" value="100"/> <prop name="ReceiveTimeout" type="String" value="10"/> <prop name="PinNO" type="String" value="0"/> <prop name="deviceBus" type="String" value="Unknown"/> <prop name="FlowControl" type="String" value="1"/> <prop name="StopBit" type="String" value="1"/> <prop name="BaudRate" type="String" value="7"/> <prop name="OutputLength" type="String" value="10"/> </JposEntry> It's work well. Thank you for your attention. Regards, Chatree Srichart On Fri, Nov 19, 2010 at 4:06 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: > Hi Chatree, > > I'm off today, but I will try to help you this evening if needed. Normally > you don't need to worry about cash drawers. You simply connect them through > the printer... > > Jacques > > From: "Chatree Srichart" <chatree.srich...@gmail.com> > > I have tried to create a new JposEntry for Epson cash drawer without >> property like this: >> >> <JposEntry logicalName="CD-100M"> >> <creation >> factoryClass="jp.co.epson.jpos182.util.EpsonJposServiceInstanceFactory" >> serviceClass="jp.co.epson.jpos182.drw.CashDrawerService"/> >> <vendor name="SEIKO EPSON" url="http://www.epson.co.jp"/> >> <jpos category="CashDrawer" version="1.11.1"/> >> <product description="Printer controlled Cash Drawer" name="CD-100M" >> url="http://www.epson.co.jp"/> >> </JposEntry> >> >> But I got error like this: >> >> Caused by: java.lang.NullPointerException >> at java.lang.String.lastIndexOf(Unknown Source) >> at java.lang.String.lastIndexOf(Unknown Source) >> at jp.co.epson.jpos182.drw.CashDrawerService.readJSD(CashDrawerS >> at jp.co.epson.jpos182.drw.CashDrawerService.open(CashDrawerServ >> at jpos.BaseJposControl.open(Unknown Source) >> at org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:47 >> at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) >> >> It seem like the CashDrawerService need a JSD property to be specified. >> But >> I don't know the property's name and value for the JSD. >> >> Regards, >> Chatree Srichart >> >> > >