Star Micronics Printer communications error with POS (Opentaps)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Star Micronics Printer communications error with POS (Opentaps)

melodies
This post was updated on .
Hi,
   I'm working with the opentaps software and the related pos system. I've been trying to get a Star Micronics TSP743II usb printer working but so far I've had no success. One of the reasons that I chose this printer is that I'm running off ubuntu and this usb printer works in ubuntu without too much difficulty. So, I've set up the printer and can print to it. However, once I run the pos then it doesn't work and gives an error.

[       GenericDevice.java: 76 :ERROR] jpos.JposException: The device communications channel could not be opened, chech the device and retry.

I believe this is the initial point of failure but don't know how to address the error. The jpos.xml file I've put is

  <JposEntry logicalName="TSP743II_linux_usb_printer_class">
    <creation factoryClass="com.starmicronics.starjavapos.ServiceInstanceFactory" serviceClass="com.starmicronics.starjavapos.POSPrinterService" />
    <vendor name="Star Micronics" url="www.star-m.jp/eng/index.htm" />
    <jpos category="POSPrinter" version="1.9" />
    <product description="Star receipt printer" name="TSP743II" url="www.star-m.jp/eng/index.htm" />
    <prop name="model" type="String" value="TSP743II" />
    <prop name="portName" type="String" value="usbprn:TSP743II" />
    <prop name="portSettings" type="String" value="" />
    <prop name="ioTimeoutMillis" type="Integer" value="5000" />
    <prop name="doCheckedBlockPrinting" type="Boolean" value="True" />
  </JposEntry>


Any information i've found online relates to Epson printers or glosses over the use of a Star printer.

Any help or pointers in other directions would be appreciated as I'm out of ideas.


I discovered that the test script JavaPos that was provided with the star printer runs only as root and if I'm a normal user then I have the same type of error as above. This would suggest to me that I need to modify the permissions of well something, the device, but I haven't succeeded with this. I tried to modify the permissions of /dev/usb/lp0 as a guess but this didn't work so i'm at a loss.
The part that seems to cause the error is when it hits setDeviceEnabled(true) .



thanks,

Colin
Reply | Threaded
Open this post in threaded view
|

Re: Star Micronics Printer communications error with POS (Opentaps)

Jacques Le Roux
Administrator
portName sounds good (though I never used USB on Linux)
You could check
    <prop name="portSettings" type="String" value="" />
But I don't think it's related because it can't see any port setting for USB

Anway I'm pretty sure it's not related to OFBiz-POS but JavaPOS. So you should better digg this way, I guess...

Jacques

From: "melodies" <[hidden email]>

> Hi,
>   I'm working with the opentaps software and the related pos system. I've
> been trying to get a Star Micronics TSP743II usb printer working but so far
> I've had no success. One of the reasons that I chose this printer is that
> I'm running off ubuntu and this usb printer works in ubuntu without too much
> difficulty. So, I've set up the printer and can print to it. However, once I
> run the pos then it doesn't work and gives an error.
>
> [       GenericDevice.java: 76 :ERROR] jpos.JposException: The device
> communications channel could not be opened, chech the device and retry.
>
> I believe this is the initial point of failure but don't know how to address
> the error. The jpos.xml file I've put is
>
>  <JposEntry logicalName="TSP743II_linux_usb_printer_class">
>    <creation
> factoryClass="com.starmicronics.starjavapos.ServiceInstanceFactory"
> serviceClass="com.starmicronics.starjavapos.POSPrinterService" />
>    <vendor name="Star Micronics" url="www.star-m.jp/eng/index.htm" />
>    <jpos category="POSPrinter" version="1.9" />
>    <product description="Star receipt printer" name="TSP743II"
> url="www.star-m.jp/eng/index.htm" />
>    <prop name="model" type="String" value="TSP743II" />
>    <prop name="portName" type="String" value="usbprn:TSP743II" />
>    <prop name="portSettings" type="String" value="" />
>    <prop name="ioTimeoutMillis" type="Integer" value="5000" />
>    <prop name="doCheckedBlockPrinting" type="Boolean" value="True" />
>  </JposEntry>
>
>
> Any information i've found online relates to Epson printers or glosses over
> the use of a Star printer.
>
> Any help or pointers in other directions would be appreciated as I'm out of
> ideas.
>
> thanks,
>
> Colin
> --
> View this message in context:
> http://n4.nabble.com/Star-Micronics-Printer-communications-error-with-POS-Opentaps-tp252752p252752.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>