×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    15

    Bluetooth printing anyone help?

    As a newbie to j2me and i have to a application to do bluetooth printing receipt..

    can anyone help me on how to do bluetooth printing?
    source code example or reference links?
    is it only possible to do it with the Basic Printing Profile(i see this when doing research)?

    pls help... thks

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Bluetooth printing anyone help?


  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    15

    Re: Bluetooth printing anyone help?

    thks for the reply.. any more help? pls

  4. #4
    Registered User
    Join Date
    Aug 2003
    Location
    South Africa
    Posts
    189

    Re: Bluetooth printing anyone help?

    I have an app that works well on a Nokia 6600, 6670 and 6680 that prints data from a record store to a bluetooth printer

    1st open the bluetooth port

    StreamConnection bconn=null;
    OutputStream printout=null;
    .
    .
    bconn = (StreamConnection) Connector.open("btspp://" + addr + ":1;authenticate=false;encrypt=false;master=false");
    printout = bconn.openOutputStream();

    addr is the blutooth address of your bluetooth printer

    then write your data to the port and flush the port

    printout.write(printdata.getBytes(),0,printdata.length());
    printout.flush();

    lastly close the port

    bconn.close();
    printout.close();

    I hope this helps you
    Steve

  5. #5
    Registered User
    Join Date
    Mar 2006
    Posts
    15

    Re: Bluetooth printing anyone help?

    could anyone tell me what to look out for when buying a bluetooth portable printer?
    or any suggestion of good portable bluetooth printer?

    printing from mobile phone application to printer...
    the printer have to be portable, for printing receipt mostly..

  6. #6
    Registered User
    Join Date
    Dec 2004
    Posts
    16

    Re: Bluetooth printing anyone help?

    Hi,
    I'm also looking for the same thing (printing to a bluetooth enabled printer from J2ME app). If possible please provide me with a code snippet.

    Thanks in advance..

    Abdul Muyeed

  7. #7
    Registered User
    Join Date
    Aug 2003
    Location
    South Africa
    Posts
    189

    Re: Bluetooth printing anyone help?

    Hi Jazsh

    I use a slip printer. the biggest thing for me when selecting the device is -
    Who will be using it and in what environment. From this I determine how rugged the printer must be. Exetech makes a good range of light and rugged devices. If the device does not have to be rugged I use a cannon.

    Don't ask for models (I do not get involved with ordering etc...)

    Hope this helps
    Steve

  8. #8
    Registered User
    Join Date
    May 2010
    Posts
    17

    Re: Bluetooth printing anyone help?

    Quote Originally Posted by stevejanko View Post
    I have an app that works well on a Nokia 6600, 6670 and 6680 that prints data from a record store to a bluetooth printer

    1st open the bluetooth port

    StreamConnection bconn=null;
    OutputStream printout=null;
    .
    .
    bconn = (StreamConnection) Connector.open("btspp://" + addr + ":1;authenticate=false;encrypt=false;master=false");
    printout = bconn.openOutputStream();

    addr is the blutooth address of your bluetooth printer

    then write your data to the port and flush the port

    printout.write(printdata.getBytes(),0,printdata.length());
    printout.flush();

    lastly close the port

    bconn.close();
    printout.close();

    I hope this helps you
    Steve
    how do i know my address printer?
    can i just use this code for connection?

    String url = service.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
    StreamConnection conn = (StreamConnection) Connector.open(url);

    i run my code, it connect (because my printer's led turns green), but it doesn't print anything.
    do u know why?

    thanks in advance

Similar Threads

  1. Printing to a bluetooth enabled HP printer from with in a J2ME app
    By ashishga in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2009-06-09, 07:55
  2. Printing HTML pages via Bluetooth
    By ashishga in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-01-20, 11:34
  3. Help on Bluetooth Printing APIs
    By rajeshwari in forum Bluetooth Technology
    Replies: 2
    Last Post: 2006-01-17, 07:13
  4. Bluetooth printing using HCRP
    By DjHaris in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-05, 09:43
  5. Nokia 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×