Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Re: cash drawer

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: cash drawer

    I would like to re-open this thread.

    I am attempting to pop a cash drawer open from an Acer Iconia 500 android tablet (android v3.2) with an on-board usb port that runs in host mode.

    When plugging devices such as a mouse, keyboard or cc wedge they immediately function as expected.

    The cash drawer can be either a JAYŽ Electronic Cash Drawer Model 5-135 with an external usb to rj11 adapter
    -OR-
    a JAYŽ Electronic Cash Drawer Model 5-130 with onboard usb adapter (comes with drivers providing the functionality below:
    The software acts like it is connected through a serial COM port. The POS system application software needs to allow installation & interfacing w/ this open, contemporary interface method.)

    So with it being a unix environment I am thinking the following:
    1. Mount the device (based on previous peripherals, I believe it will auto mount)
    2. Open a connection to device
    3. Send Open Drawer Signal/Command
    4. Close connection

    Please advise.

    Thanks in advance


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: cash drawer

    This post had nothing to offer a 2 year old thread, and has been moved to a thread of it's own.

    Do you have some question about what you describe here?

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: cash drawer

    jps - Thanks for bumping this into a new thread.

    When I implement the openComm class from previous cash drawer thread, I get the following errors in LogCat:
    10-11 21:10:26.810: I/dalvikvm(1525): Could not find method javax.comm.CommPortIdentifier.getPortIdentifiers, referenced from method com.MyDomain.MyProject.AppClasses.openPort.main
    10-11 21:10:26.810: W/dalvikvm(1525): VFY: unable to resolve static method 207: Ljavax/comm/CommPortIdentifier;.getPortIdentifiers ()Ljava/util/Enumeration;

    openPort Src:
    Previous Thread: http://www.javaprogrammingforums.com...sh-drawer.html

    The methods appear in eclipse Intellisense when typing the command: CommPortIdentifier. however when it runs on the tablet it indicates that it is not found.

Similar Threads

  1. Cash Register Simulation Help
    By Gont in forum Object Oriented Programming
    Replies: 1
    Last Post: September 22nd, 2012, 06:58 PM
  2. cash drawer
    By lephoe in forum Java SE APIs
    Replies: 9
    Last Post: April 20th, 2010, 08:53 PM
  3. Cash Register Exercise
    By Consus in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 19th, 2010, 11:52 PM
  4. Simple Program for Cash
    By javastudent in forum Paid Java Projects
    Replies: 9
    Last Post: December 1st, 2009, 07:25 AM