Im building an android app to send files to my device over bluetooth. This sounds simple enough, however the device can only receive data with the XMODEM file transfer protocol.
After extensive searching, I have not found any useful resources or examples of this working
My question is: has anyone ever successfully sent files over bluetooth with and android using XMODEM ftp?
Thanks!
Related
I'm doing a preliminary research to convert a simple midi sequencer designed with Processing in an Android app, the problem is that the library that I use on the computer to interface with music devices via MIDI does not work inside android. So I decided to export the project to Android Studio.
There are several Google Samples about MIDI, but none showing how to send an outgoing MIDI signal via USB to a listening music device.
Do you know if there is any example for android studio that deals with the topic? Any advice?
I could develope it entirely on Processing but the Processing the MidiBus MIDI library does not work on Android.
Thanks
Im currently developing an app for a handheld device, running Android OS and with a built-in termal printer. The app will be used for selling and ticketing. Now, boss ordered a few POS for testing (from China) and, well, shipping takes forever to get here so im doing some research in terms on how the "printing" part works. As of right now, what im doing is storing the tickets inside the sdcard and then i download the file to my pc and print it using my TSP700 desktop printer. My question is.. when it comes to printing on the built-in printer, is it possible to send the file that's supposed to be printed right to the printing queue without having to store a copy of it in the sdcard? Anyone with experience on this kind of situation?
In a word, yes. There isn't any reason for the SD card to be involved at all. I've used receipt printers that are connected via Bluetooth. Since yours is built in, it's likely to be USB. Hopefully the manufacturer publishes a well-documented SDK for the printer, but don't count on it. I had to write my own frame-based serial protocols and receipt formatters. There's probably not a printing queue unless you write one.
How your app can communicate with the built-in printer depends on the manufacturer’s implementation. I would start by finding out from the manufacturer what interface is available to your app and any SDK or samples they offer to integrate printing into your app.
After pairing with a phone via bluetooth, is it possible to access the sd card contents (like music or images)?
Are there any tutorials or sample code for this?
i see an application named "Bluetooth File Transfer" and want to make another like that i read about bluetooth, bluetooth socket but not found any thing useful how to perform that operation i am researching more if i found i will post here the solution if anyone found soon then please post here.... Thanks
Sure it is possible. But you need to know:
Which Bluetooth protocol you want to use? Some of them are here:
Bluetooth protocols
How big data you are willing to share between, because if you have big
data then you need to use some other connection.
You need to know
how to secure data, Bluetooth is very vulnerable.
And you can tell us what you want to do? You are programmer or just asking? If so use link as suggested in your comments.
EDIT:
Here is for example some examples in QT programming language, which I use for developing apps for Android: http://www.developer.nokia.com/Community/Wiki/QBluetooth_-_A_Qt_bluetooth_library
There was a way in early 2000s with Ericsson and Siemens phones with OBEX protocol, and a user file system.
In windows XP with Toshiba stack you had to assign a virtual COM port to a bluetooth device, and install the original phone software, with its RS232 interface IO drivers.
After that you could browse your phone using OBEX tools, or as a disk device, it there was a driver.
If you want to open sd-card and phone storage of any phone using android, then you can follow the following method:
Open your android settings.
Now open bluetooth settings.
Activate your bluetooth.
Search for devices.
Pair the bluetooth device.
Now you will be able to see a setting sign on right side of name of bluetooth device.
Touch that sign. You will now see a file transfer box then ftp client will open and you can open the other phone's storage.
I'm building a mobile AIR application that connects to my desktop AIR application.
In the mobile application, I'm recording video with my Android device with flash.media.CameraUI.
This works perfectly, but now I'd like to send this file to my desktop application so I can do stuff with it. I've got a server written in AS3 running on my desktop (the application itself) listening to AMF messages on a certain port. I can send data through sockets, I've already tested it with accelerometer data, so that's not the issue.
What would be the best way to send video to my desktop AIR app? I've tried multiple things already; serializing using registerClassAlias, ByteArrays, ...
Any help is much appreciated, or just a push in the right direction to get me started. Thanks!
Have you tried running a socket server on the desktop app and connecting to it from the phone, then send using a socket, writing and reading bytes?
J
Just asked my teacher. He said I needed a way to upload it, so my PHP solution IS the best way to do it. Thanks anyway, Zárate.
I am creating app in which I had to send data to phone via embedded device.
Is it possible to send file via embedded device to Android phone with Bluetooth?
I don't find any of example of it and I think I need another embedded device like dongle for implementing obex protocol.
You need to read in the bytes of the file that is being submitted by your device. Sample code that connects the android to a separate device can be found in this SO post. There is also a robust documentation of the API as well as a specific sample application. Be aware that many people are finding issues when using the sample application to try and connect the android to a separate device. The issue is explained in this SO post (see the accepted answer), but essentially the connectivity problem is caused by calling listenUsingRfcommWithServiceRecord.
I myself ran into problems with Bluetooth, but using the above resources have been able to quite successfully connect my android with an embedded device. Hopefully this aggregate of information will be of use to you.
You can use the very common UUID for SPP devices: ("00001101-0000-1000-8000-00805F9B34FB");