How to use bluetooth printer on different app? - printing

I bough a bluethoot printer for my phone but it only workes with it app - iPrint. Is there a way to use it with different app? When i tried to connect the printer via the bluethooth setting it says that you need an app to use the device but it only works on one app

Related

Sending text from iPhone to Windows PC via bluetooth

How to send data from an iPhone app to Windows app (or service) in real-time? Ideally over Bluetooth.
Basically as I type on my iPhone app, I want that text to appear on my Windows App (with-in a second or less).
How can I go about achieving this? I'd imagine there is some center-peripheral setup I need to establish. What are the libraries to use on both sides? Have never worked with Bluetooth in the past, so kinda lost. I looked into Apple's Multi peer Connectivity but that looks like iOS-Mac specific.
I have no idea on the Windows side, on iOS you would use Core Bluetooth to configure the app as either a peripheral or a central.

Is there an API that lets one sync an iOS app with its OSX counterpart via USB?

I am developing an iOS app, which may need to sync a large amount of data with its OSX counterpart app, and for the use case in which the app would be used there may not be an internet connection available to connect either of the devices (iOS device & Mac).
Is there an official apple api that lets one sync data between an iOS app, and its OSX counterpart, without having to use the internet or iCloud ?
As far as I can tell, short of joining the MFI program, there isn't a way.
If you don't mind the user dragging some documents around, then you can create documents which can be accessed via iTunes: http://www.raywenderlich.com/1948/itunes-tutorial-for-ios-how-to-integrate-itunes-file-sharing-with-your-ios-app
What makes you think you need an Internet connection for WiFi?
If you are close enough for a USB cable, just create a WiFi network from the Mac (WiFi icon in the menu bar, "Create connection..."). Use bonjour to discover services, and then the apps can talk to each other.

Bluetooth iOS printing on Bixolon SPP-R200II

We are users of POS printer Bixolon SPP-R200II which we use for realisation of one of our projects. In the specification of this model it is listed that printer supports printing on iOS devices (iPhone & iPad) but until now we have not succeeded to achieve that. We switch the printer onto iOS mode with a required combination we fonud in official documentation and we got confirmation message. Then we connected to the printer from bluetooth interface inside iPhone Settings app.
After that we tryed to print on this device in various ways - using official test app from AppStore (https://itunes.apple.com/us/app/bixolon-printer-utility/id647125968?mt=8) and using official Bixolon SDK (http://www.bixolon.com/upload/download/software_all_bixolon_printer_sdk_for_ios_v3.1.8.zip) but unfortunately we havent managed to get any result. In this sample apps printer was not even listed as a possible connection point.
Can you direct us in any way to get the printing on iOS devices working? Thank you!
To connect to the SPP-R200II you need to enable MFi Mode for the printer.
Turn on printer
Open the cover and press the power button and paper feed button at the same time for 2 seconds
Close the cover when the buzzer sounds
The printer should now print "iOS mode enable!!" [sic]. If not, you just turned off MFi mode and need to repeat the steps to turn it on again.
Unfortunately the sample application distributed with the Bixolon SDK 3.1.8 is broken and when you press "Lookup/Targeting" nothing will happen. To fix it add this line to didFindPrinter in ViewController.h:
_uiTextFieldAddress.text = [NSString stringWithFormat:#"BT_%#", printer.macAddress];
It should now be possible to connect the printer simply by pressing "Lookup/Targeting" and then "Connect" when you se the Bluetooth address in the text field.
We had the same problem and after contacting technical support, concluded that the model we have is not compatible with iOS, the part number must be 3 letters i, for example SPP-R200IIIK/USA. After making the switch equipment provider, everything works perfectly.
Is the printer paired with the device in settings? It must be paired before the application can interact with it.

Using iPhone USB tethering connection from app

My app needs to transfer data to and from a PC/Mac, but without using Wireless or 3G.
Is it possible to use the USB cable to run a server on the device accessible by the PC/Mac?
Accessing the app's documents-directory over USB from a program would work too.
What would be the best way? I need a solution, that will work on normal device, no jailbreak allowed. If it works without special drivers on the PC/Mac, that's a bonus too.
You should enable UIFileShareEnabled. More information is available here:
iTunes Documents Directory in my app

Bluetooth programming in iPhone

I am planning to develop an iPhone application to transfer files/data to/from my Windows Desktop using Bluetooth.
Please let me know whether the programming interface(SDK)is available in iPhone SDK for this purpose.
In Windows Mobile, I can transfer the file either using a FTP profile or writing application on top of Serial Port Profile(RFComm).
Can anybody tell me, whether this can be possible with an iPhone by writing appropriate application. If not, please let me know alternative way to transfer files/data over bluetooth from iPhone to a Windows Desktop PC.
No, FTP or SPP bluetooth profile are not open in iPhone...
If you get into the made for ipod program, you might develop a bluetooth dongle for a computer (it can't use the normal one built into the computer as it needs a custom apple chip for encoding). This is the only method that could do something like what you want over bluetooth and get your app into the app store. You can implement a similar functionality more readily over wifi.
Yes you can. Use the Human Interface Device profile, and have your USB device pretend to be a keyboard. You can then have your app receive text input from the "keyboard". simply encode your data as ASCII encoded hex or base 64 and transmit. Whether or not your app would be allowed in the app store is a different matter.
There are 2 requirements to use iOS BT Classic for data transmission over RFCOMM.
1) You need to be enrolled in Apple MFi program.
2) The BT accessory which will be connected to iPhone needs to have a special HW chip called "MFi Coprocessor".
Both requirements need to be satisfied if you are developing FW for the BT accessory.
The latter one is required when you are coding iOS app.
BTW, you will not be able to communicate with Windows machine unless you have a BT dongle with MFi chip inside - see the second requirement.

Resources