POS.NET Line Dispaly... How to Write Text?

Locked POS.NET Line Dispaly... How to Write Text?

  • 14 Mei 2011 20:15
     
     

    Hi all,

    I have been trying for a week now to try to write text to a customer display using POS for .NET, but I couldn't magae to do it!  I'm trying to use LineDispaly class, but it seems so hard to code it!

    Can anyone help me with t sample code on how to use it?

    I'm using a Cusomer Display With RS323 serial port and it has two lines.

    thanks a lot!

    Waleed

Semua Balasan

  • 15 Mei 2011 4:03
    Penjawab Pertanyaan
     
      Memiliki Kode
    Do you have a service object or OPOS driver installed for the Line Display?
    Below is some VB.NET code.
    -Sean
     
      Dim explorer As PosExplorer
      Dim display As LineDisplay
    
    
        explorer = New PosExplorer(Me)
        Dim device As DeviceInfo = explorer.GetDevice("LineDisplay", "WPD220")
        display = explorer.CreateInstance(device)
    
        display.Open()
        display.Claim(1000)
        display.DeviceEnabled = True
        display.ClearText()
        display.DisplayText("Hello")
    

    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
  • 15 Mei 2011 10:50
     
     

    Actually there is no OPOS drivers came with it! the manufacture say it is generic.

    on the device specifications  written:

    VFD--220

    BaundRate: 9600 N 8 1

    CommandType: ESC/POS

    Char: 1   FontSet: 0

    Do I really need a OPOS drivers? where can I get them for this device?

    Thanks for the code. I'll try it today, hope it works!

    Waleed

  • 15 Mei 2011 18:09
    Penjawab Pertanyaan
     
     

    Yes, you need an service object or an OPOS driver that acts as the middle layer between the application and the hadware.

    The line in the code: Dim device As DeviceInfo = explorer.GetDevice("LineDisplay", "WPD220") created the link to the OPOS driver I used for my poll display.

     If a driver doesn't exist you will have to create one. Do a search there looks like the protocol is exposed to write a driver - http://www.seetron.com/vfd220.html.

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
  • 15 Mei 2011 18:50
     
     

    Thanks,

    I have downloaded the IEE drivers for Line Display from your website link,  and added a device and added a logical name to it using POSMD and tried the code you gave to me,

    when I get to the Open() method, I receieve an Exception: "Method Open Thrown an Exception. The service object returned a failuer status from its open call, but doesn't have more specific failuer code"

    is there might be a solution ?

    I also istalled Latest  CCO files but really don't know what to do with them!

    Appreciate the help.

     

    Waleed

  • 15 Mei 2011 21:16
    Penjawab Pertanyaan
     
     

    The links are references to POS device manufacturers. Is your display IEE or is it a different manufacturer? If it is for a different manufacturer the IEE drivers might not work.

    -Sean

     


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
  • 15 Mei 2011 21:24
     
     

    I Actually bought it from Chine, No mention for the manifacture of origin of it.

    I even tried to communicate with it using the TYPE CON> COM1 command in DOS, but the display doesn't seem to understand or respond.

    Tried also the SerialPort calss in C# to write to it but no joy! :-( :-(

    Is there any other way I can use to communicate with it? Or I need to have OPOS drivers for that ?

    Waleed.

  • 16 Mei 2011 17:27
    Penjawab Pertanyaan
     
     

    It would be easier to develop a service object for it, but if you cannot communicate with it via a terminal session there is something else wrong with the unit.

    -Sean

     


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
  • 12 Maret 2012 9:20
     
     Jawab

    Thanks All for the help.

    Solved ! I needed to send a HEX to display controller.

    • Ditandai sebagai Jawaban oleh whamalek 12 Maret 2012 9:20
    •