Hello everyone,
I'm struggling with the configuration of the jpos.xml for 2 days now. I'm using a POS Printer - Epson TM-T88V connectec via USB on a ubuntu 10.04. The problem is : jp.co.epson.pos.comm.v2_0001.CommControlException: The port name is illegal. at jp.co.epson.pos.comm.v2_0001.CommonPortIO.throwCommException(Unknown Source) at jp.co.epson.pos.comm.v2_0001.CommonPortIO.throwCommException(Unknown Source) at jp.co.epson.pos.comm.v2_0001.LinUsbIO.getUsePortName(Unknown Source) at jp.co.epson.pos.comm.v2_0001.LinUsbIO.portOpenImpl(Unknown Source) at jp.co.epson.pos.comm.v2_0001.CommonUsbIO.portOpen(Unknown Source) at jp.co.epson.pos.comm.v2_0001.PortControl.openPort(Unknown Source) at jp.co.epson.upos.core.v1_11_0001.pntr.CommonPrinterService.openPort(Unknown Source) at jp.co.epson.upos.core.v1_11_0001.pntr.CommonPrinterService.claim(Unknown Source) at jpos.BaseJposControl.claim(Unknown Source) at org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:46) at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:117) at org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:46) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310) at org.ofbiz.base.start.Start.start(Start.java:289) at org.ofbiz.base.start.Start.main(Start.java:119) I think this is due to the config property "PortName" in jpos.xml, I think i tried eveything logical now but I can't figure out why it's not working... The printer is actually connected to usb port /dev/usb/lp0 and I tried to add Portname = "/dev/usb/lp0" but still not working. Any help would be very much appreciated! Thanks Here's my PosEntry Config if needed : <JposEntry logicalName="TM-T88V"> <creation factoryClass="jp.co.epson.uposcommon.util.EpsonJposServiceInstanceFactory" serviceClass="jp.co.epson.upos.T88V.pntr.T88VService"/> <vendor name="SEIKO EPSON" url="http://www.epson.co.jp"/> <jpos category="POSPrinter" version="1.8"/> <product description="EPSON TM-T88V Printer Device Service" name="EPSON Services for JavaPOS(TM) Standard" url="http://www.epson.co.jp"/> <prop name="ConfigurationFile" type="String" value="epson/xml/Setting/TM-T88VSetting.xml"/> <prop name="PhysicalDevice" type="String" value="TM-T88V"/> <prop name="DeviceDesc" type="String" value="EPSON TM-T88V POSPrinter"/> <prop name="SupportStatistics" type="String" value="1"/> <prop name="SupportFirmware" type="String" value="1"/> <prop name="FirmProgressRange" type="String" value="10"/> <prop name="FirmNotifyAllProgressEvents" type="String" value="0"/> <prop name="FirmRecordLog" type="String" value="1"/> <prop name="FirmLogFileName" type="String" value="Firmware.log"/> <prop name="FirmLogFileSize" type="String" value="1000"/> <prop name="PhysicalPrinterName" type="String" value="TM-T88V"/> <prop name="InitializeResponseTimeout" type="String" value="1000"/> <prop name="InitializeThreadTime" type="String" value="1000"/> <prop name="MemorySwitch" type="String" value="0"/> <prop name="DefaultSlpClampTime" type="String" value="0"/> <prop name="OutputErrorOption" type="String" value="0"/> <prop name="OutputCompleteType" type="String" value="2"/> <prop name="AsyncProcessingSize" type="String" value="2"/> <prop name="TwoByteCharacter" type="String" value="0"/> <prop name="RecPaperSize" type="String" value="80"/> <prop name="RecPaperType" type="String" value="0" /> <prop name="TwoColor" type="String" value="0"/> <prop name="UsedNVRAM" type="String" value="0"/> <prop name="NVRAMControlLevel" type="String" value="1"/> <prop name="U375Compatible" type="String" value="0"/> <prop name="SlpReverseEject" type="String" value="0"/> <prop name="RecMoreColumns" type="String" value="0"/> <prop name="SlpMoreColumns" type="String" value="0"/> <prop name="PageModeExt" type="String" value="0"/> <prop name="AutoPowerOff" type="String" value="0"/> <prop name="PrinterTransmitTimeout" type="String" value="30000"/> <prop name="RecNearEndSensor" type="String" value="1"/> <prop name="Custom1Color" type="String" value="0"/> <prop name="Halftone" type="String" value="0"/> <prop name="Stamp" type="String" value="0"/> <prop name="UsedInterCharacterSet" type="String" value="0"/> <prop name="Cutter" type="String" value="1"/> <prop name="Peeler" type="String" value="0"/> <prop name="UsedPeeler" type="String" value="0"/> <prop name="PalseStep" type="String" value="100"/> <prop name="PortName" type="String" value="/dev/usb/lp0" /> <prop name="PortType" type="String" value="2"/> <prop name="PortInterfaceName" type="String" value="USB"/> <prop name="OutputBufferSize" type="String" value="65536"/> <prop name="OutputTimeout" type="String" value="500"/> <prop name="QueuingOfflineTimeout" type="String" value="1000"/> <prop name="TransmitTimeout" type="String" value="5000"/> <prop name="TransmitRetryTime" type="String" value="100"/> <prop name="WriteThreadInterval" type="String" value="-1"/> <prop name="InputBufferSize" type="String" value="4096"/> <prop name="ReceiveTimeout" type="String" value="1000"/> <prop name="InputTimeout" type="String" value="100"/> <prop name="ReceiveRetryTime" type="String" value="25"/> <prop name="ReadThreadInterval" type="String" value="-1"/> <prop name="OfflineRetryIntervalTime" type="String" value="25"/> <prop name="OfflineCount" type="String" value="2"/> <prop name="StatusThreadInterval" type="String" value="100"/> <prop name="OutPipe" type="String" value="0"/> <prop name="InPipe" type="String" value="1"/> <prop name="PortNameType" type="String" value="0"/> </JposEntry> |
Free forum by Nabble | Edit this page |