×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    printing thru bluetooth

    Does anyone try to connect to a bluetooth printer and try to print?

    I bought Eutron EP-100 printer which has bluetooth connectivity.
    I want to try printing.

    Please help.

  2. #2
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    Re: printing thru bluetooth

    I'm call to all experts, it seems that nobody has an idea of bluetooth printing for pys60.

    Your help is very much appreciated.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: printing thru bluetooth

    hi rsf
    this is like a remotely accessing or controlling a device. i dont think anykind of such sort is available in PyS60.
    give a feedback

  4. #4
    Regular Contributor
    Join Date
    Dec 2007
    Location
    India
    Posts
    133

    Re: printing thru bluetooth

    Quote Originally Posted by rsf View Post
    Does anyone try to connect to a bluetooth printer and try to print?

    I bought Eutron EP-100 printer which has bluetooth connectivity.
    I want to try printing.

    Please help.
    Hi,

    It depends on the printer you are using.
    If the printer is programmable and hears to the files it receives through mobile, then you can try to send the file to the printer using bluetooth and it will print it when given the command.
    I think you can atleast transfer the files, if the printer has some storeage capacity.
    Kandyfloss

    V 7.0642.0
    18-10-06
    RH-51
    Nokia 7610

  5. #5
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    Re: printing thru bluetooth

    thanks for the reply.

    I was given a documentation from eutron ep-100 bluetooth printer on code for programing printing.

    However, I dont know how to apply it. I will paste some infomation below:

    LF - Print and line feed
    [Format]
    ASCII LF
    Hex 0A
    Decimal 10
    [Range] None
    [Default] None
    [Description] Prints the data in the print buffer and feeds one line.
    [Notes]
    1 The amount of paper fed per line is based on the value set using the line spacing command (ESC 2 or ESC 3).
    2 After printing, the printing position moves the beginning of the line.


    I hope you guys to help me about this.

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: printing thru bluetooth

    hi rsf again
    the problem in ur case is that you have to make the printer understand trough PyS60 to print a document i dont think the printer can uderstand it.
    What you can do is if ur phone and printer both are capable of communicating with each other. then you can make an application by which you can use the default printing of ur phone.
    Second option you can transfer the file to the printer by searching the device and then i think the printer will be able to print it.
    second one seems easy.
    plz give a feedback

  7. #7
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    Re: printing thru bluetooth

    thanks gaba88,

    My bluetooth printer is conecting with pys60. as a matter of fact, it recognize "\n" as line feed.
    Im wondering how to try to print "HELLO WORLD".

    I really appreciate everybody to participate on this discussion. this could be useful later for a beginner like me.

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: printing thru bluetooth

    hi rsf thanks for the feedback
    just send a file to ur printer in which hello world is written.
    i think the printer will print it.
    best regards

  9. #9
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    Re: printing thru bluetooth

    thanks for the reply gaba88,

    I try your suggestion using below code, but it show "error (2, no such file or directory)". Although when i try the code for my N70, it run well.

    Any advise again?

    #-------------------------------
    from appuifw import *
    from e32socket import *

    try:
    phone = bt_obex_discover()
    addr=phone[0]
    port=phone[1].values()[0]
    #file = query(u'File Selection', 'text')
    send_path = u"c:\\emgr.txt"
    bt_obex_send_file(addr, port , send_path)
    note(u'File Sent')
    except Exception, error:
    note(unicode(error), 'error')
    #-------------------------------

  10. #10
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: printing thru bluetooth

    Hi rsf,

    If you get the error, "error (2, no such file or directory)" then it means that the file specified doesn't exist.

    Next time you post any CODE, be sure to use the CODE tags to mantain the indentations in the CODE.

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  11. #11
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    Re: printing thru bluetooth

    thanks for the reply. Sorry I didnt indent my code. I dont know how to do it. I paste it indented, but is appears no indention.

    Anyway, as i said, I ran the program to send the file from my 6600 to N70, it works fine. But when i try my 6600 to bluetooth printer, it shows that error.


    By the way, until now i'm experimenting.

    It appears that i got a good result now. The printer moves and scroll its paper when i try:

    CODE:
    sock.sent(chr(27) + "J" + "1" + u'Hello world')


    WHERE:
    ESC J 1
    >>is the print code to print and feed paper.


    However, when I look at the printer paper, nothing was written. hmmmm..... any suggestion? It seems im near to success!

  12. #12
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: printing thru bluetooth

    hi rsf
    your code seems to be correct. Please check that you have put the txt file in the path which you have mentioned.
    best regards

  13. #13
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    Re: printing thru bluetooth

    Thanks guys.

    I try again experiment things.

Similar Threads

  1. Bluetooth printing anyone help?
    By Jazsh in forum Mobile Java General
    Replies: 7
    Last Post: 2010-08-20, 10:35
  2. Replies: 35
    Last Post: 2009-04-11, 14:36
  3. Printing HTML pages via Bluetooth
    By ashishga in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-01-20, 11:34
  4. Help on Bluetooth Printing APIs
    By rajeshwari in forum Bluetooth Technology
    Replies: 2
    Last Post: 2006-01-17, 07:13
  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
  •  
×