locked
LineDisplay in IBM device RRS feed

  • Question

  • Dear all,

    I am using SurePOS 300/500/600 Kiosk. RS-232 Display. I have below code to initialize line display in IBM machine. When I run below code, it is found that the IBM machine seems to be halted when printline. Do you have any ideas?? Moreover, before run below code, the IBM OPOS configuration of line display is working in testing. But after run below code, it failed in Claim process in IBM OPOS Configuration.

    private OposLineDisplay_1_10_Lib.OPOSLineDisplayClass lineDisplay;

    public LineDisplay_Driver(string oposDeviceName)
                : base(null, OposDeviceType.ReceiptPrinter, oposDeviceName)
            {
                this.timeOut = 10;          
                try
                {
                    this.lineDisplay = new OPOSLineDisplayClass();
                    // ---------------------------------------------------------------------
                    this.process(this.lineDisplay.Open(this.deviceName), "Open");
                    this.process(this.lineDisplay.ClaimDevice(this.timeOut), "ClaimDevice");
                    this.process(this.lineDisplay.DeviceEnabled = true, "DeviceEnabled");
                    // ---------------------------------------------------------------------            
                    this.isActivated = true;
                }         
                catch (Exception ex)
                {
                    this.writeToLog(ex);
                }
            }

    • Moved by Mike Feng Wednesday, March 13, 2013 1:00 PM
    Tuesday, March 12, 2013 7:53 AM

Answers

  • I found out that due to com port has been in use by another device.

    When I changed to another unused com port, It is OK.

    Thanks

    • Marked as answer by Raymond Chiu Friday, March 15, 2013 8:03 AM
    Friday, March 15, 2013 8:03 AM

All replies

  • You might be better to ask IBM rather than Microsoft.

    Paul Linton

    • Proposed as answer by Mike Feng Wednesday, March 13, 2013 1:00 PM
    Tuesday, March 12, 2013 7:56 AM
  • I found out that due to com port has been in use by another device.

    When I changed to another unused com port, It is OK.

    Thanks

    • Marked as answer by Raymond Chiu Friday, March 15, 2013 8:03 AM
    Friday, March 15, 2013 8:03 AM