I am trying to create an iPhone application in which I can connect to a bluetooth printer and print .Is anyone aware that if its possible? As far as I am aware for printing we can use AirPrint which uses wi-fi. but any idea how we can use bluetooth.I mean connecting to a printer using bluetooth and send the content to the printer using bluetooth for printing.
Related
I would like to print to thermal receipt and label printers through the web (PWA) on Android devices.
In this page you can see some example code:
https://github.com/WebBluetoothCG/demos/blob/gh-pages/bluetooth-printer/index.html
Is it possible to print to "any" bluetooth enabled thermal printer or is there some process to determine which bluetooth receipt and label printers are compatible.
My worry is that some printers will only work with provided sdk's that are only written for java/objective-c/swift.
Unfortunately from what I have seen it takes a bit of investigation into an individual model of thermal printer to figure out whether it supports Bluetooth LE (as opposed to Bluetooth Classic) and to learn what dialect of printer control language it speaks (ESC/POS, ZPL, etc.). I recommend asking the manufacturer for detailed documentation (in case you have to build your own library) and letting them know that you are looking for something you can interface with using Web Bluetooth. If enough customers ask for it maybe they'll start advertising compatibility and even produce SDKs.
Has anyone tried printing using CUPS from iOS/Objective-C application?
I have an iOS application that is printing on 1 POS printer from multiple devices and when printer is busy, I am having issues. I am thinking I can build a print server in Linux using CUPS and send print request from all iOS devices to a common print server.
Any ideas/suggestions on the approach? I have setup EPSON T88v Printer on Linux Box and CUPS is working fine. Now from iOS will it be AirPrint or some other way to send request to the CUPS printer.
It depends on if the POS system is using the IOS printing api or it is sending directly to a printer over a tcp connection.
If it is using the IOS Printing API you can print to it from the app.
You can print from an iPad to a cups printer directly. The cups printer has to be discoverable and shared on the network (cups configuration). To verify that your cups printer is functioning correctly I would try to print from notes on the iPad to the newly created printer. If that is functioning than you can try the POS system. I would guess that the POS system is printing directly to the printer through a tcp connection using the proprietary esc/pos language in which case you will not be able to redirect it to a cups printer.
Currently, I can search my printer with Bonjour/SNMP protocol by
NSNetServiceBrowser
NSNetService
Now I want to print my document by IPP protocol.
Could you please tell me way to print with IPP in iOS?
Usually iOS Apps don't care about the printer protocol. It's sufficient to use Apples AirPrint focused Print-API. I can't see how UIPrinter would expose details like IPP connections through the API.
If you don't want to use Apples API for printing, you should implement IPP. A good start could be to look at my simple print-job implementation written in java. I'd be happy to assist in porting this to Swift of Objectiv C.
Actually iOS applications doesn't bothered about printing protocols.We can print images and other documents using apples AirPrint. The steps for printing from iOS device described below.
1.Connect our device and printer in the same network.
2.select an image/document for printing.
3.select the printer from network.
4.Give print
We can give print from gallery,chrome etc and other printing applications.In android we need print plugins for printing(eg:Mopria, a universal print plugin).
But in iOS we don't need the support of any plugins, i think.
Is it possible - and if so, how? - to print from a Firefox OS phone?
Looking for a real mobile solution - e.g., printing out a receipt using mobile phone and a small receipt printer (connected probably through usb or wifi tethering) at a marketplace, on a train, etc. (The mobile will communicate through internet with a server, so it will have an internet connection.)
If you can get the printer on the same network as the Firefox OS device then you could try running this pure JavaScript implementation of the Internet Printing Protocol to send a file to the printer from your app. It would definitely need some changes to use standard web APIs rather than Node JS APIs. It may be possible to implement it with XMLHttpRequest or perhaps something lower level like TCPSocket.
We've got a self-built mobile device which can transfer data via Bluetooth SPP to a PC. On the market there are numerous devices acting as mobile printers via Bluetooth. Some of them use a custom ASCII-based printing language, e.g. the label printers from Zebra.
So there is the idea of printing via SPP from our device.
Sadly there is not too much usable information on the internet on this special topic.
Can you recommend any printer (at least A4) capable of printing via Bluetooth SPP with publicly available protocol specs?
Or do you have any hints where to start?
Bluetooth printers typically use profiles other than SPP. There are several flavors, some printers will support a variety of them:
1) BPP - Basic Print Profile can send simple text-based data, no need for printer-specific drivers
2) HCRP - Hard Copy Cable Replacement Profile is used to send the same data format as you would over a wire, typically requires printer-specific drivers to format the data.
3) BIP - Basic Imaging Profile allows transfer of photos, etc.
4) OPP - Object Push Profile is also sometimes used to transfer files
So in general, you are not going to be able to just use SPP to talk to a normal printer, although these other profiles may sit on top of SPP.