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.
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.
I'm call to all experts, it seems that nobody has an idea of bluetooth printing for pys60.
Your help is very much appreciated.
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
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
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
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.
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
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
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.
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
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
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')
#-------------------------------
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
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!
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
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60