Share My Creation Test app: I/O made easy with the USB Serial library

Discussion in 'Share Your Creations' started by Peter Simpson, May 28, 2015.

  1. Peter Simpson

    Peter Simpson Expert Licensed User

    Yes B4A is seriously awesome:
    So thanks to @DonManfred I decided to brake out my old EPoS equipment to play about with the USB Serial library 2.0. With a quick hint from @Dman about storing the logo, everything came together relatively quickly. A few years ago I created a Windows program that prints a receipt (without logo), Opened a cash drawer and printed to a pole display (see bottom image), so now I've created an Android app that does the same thing.

    BTW the same codes works with the Serial Library for Bluetooth printing and opening the cash drawer.

    Test app - Not for the public
    Screenshot_2015-05-28-16-28-10.jpg

    IMG_20150528_000420.jpg

    IMG_20150521_214847_nopm_.jpg
     
    Last edited: May 28, 2015
  2. DonManfred

    DonManfred Expert Licensed User

    [​IMG]
     
    Peter Simpson likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

    Looks great. I've moved it to the "share your creations" forum.
     
    Peter Simpson and Harris like this.
  4. hookshy

    hookshy Well-Known Member Licensed User

    I am sure this is extremely usefull for many of us . Some of my friends suggested me many applications that could use your app .
     
  5. merlin2049er

    merlin2049er Well-Known Member Licensed User

    Sweet. What type of cables are you using ?
     
  6. Peter Simpson

    Peter Simpson Expert Licensed User

    Cheers @merlin2049er.
    I deliberately used those cables so that users can see how I connected it.

    1st cable from my tablet is called an OTG adapter. It can be purchased relatively cheaply from eBay. The OTG adapter is just an Micro USB to SSB adapter.
    2nd cable from the OTG adapter is called a USB to RS232 serial adapter. The adapters that I use are based on the PL2303 circuit, they work with Windows and Android.
    3rd cable is just a 9 pin to 25 pin serial converter lead, you can also use a small adapter to do the same job.

    I've also written a portable Bluetooth printer version, but I'm waiting for the printer to be delivered before I can test it. I can't see the code not working though.

    Cheers...
     
  7. merlin2049er

    merlin2049er Well-Known Member Licensed User

    Just wondering if you could get some sort of bluetooth adapter to turn that into a bluetooth serial printer.
     
  8. merlin2049er

    merlin2049er Well-Known Member Licensed User

  9. raphaelcno

    raphaelcno Active Member Licensed User

  10. merlin2049er

    merlin2049er Well-Known Member Licensed User

    Right, of course.
     
  11. Peter Simpson

    Peter Simpson Expert Licensed User

  12. merlin2049er

    merlin2049er Well-Known Member Licensed User

    Neat, I'd like to pick up a ticket printer.
     
    Peter Simpson likes this.
  13. Peter Simpson

    Peter Simpson Expert Licensed User

    Last edited: Aug 9, 2015
  14. jahswani

    jahswani Active Member Licensed User

    I have this printer @Peter Simpson. It's an awesome one. Simple and easy to use.i have printed to it sucessfully via bluetooth. But not yet via usb.
     
  15. Peter Simpson

    Peter Simpson Expert Licensed User

    Update: EPOS receipt/ticket printer.
    I can now print to receipt/ticket printers in 3 ways

    1. Bluetooth
    2. Serial (RS232)
    3. Ethernet (LAN)

    I'm well chuffed...
     
    Last edited: Jun 26, 2015
  16. jahswani

    jahswani Active Member Licensed User

    Are the 2 others using extra adapters ?
     
  17. Peter Simpson

    Peter Simpson Expert Licensed User

    No @jahswani I have a separate Bluetooth printer and a printer with Ethernet and serial.
     
  18. jahswani

    jahswani Active Member Licensed User

    Ok cool now i understand...
     
  19. sorex

    sorex Expert Licensed User

    @Peter Simpson ,

    are you selling chocolate salty balls with your POS system or something? ;)
     
    Peter Simpson and jahswani like this.
  20. Peter Simpson

    Peter Simpson Expert Licensed User

    "chocolate salty balls" lol,
    Hello chef, or should I say hello chef @sorex :p

     
    jahswani likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice