I have created a mobile app with 'Processing' java. It involves reading data from the arduino through the serial monitor with USB cable.
But i want the system to be wireless. I am going to export the processing script as android app to my mobile and use Bluefruit SPI friend module to send data to mobile(Bluefruit connect app). But how can i get the data in the processing app? In case of my computer i was using a serial port(COM5) for USB connection with arduino.
Bluefruit SPI friend only seems to send data to the bluefruit connect app on the mobile, how can i get the data on my mobile app through this bluetooth module?
Related
I am trying to establish bluetooth communication between my computer and an application that I am developing, installed on an android tablet.
How can I send data from my computer to my application to check if the communication is successful?
I try to send files via bluetooth from windows bluetooth related settings, but I need to be able to send strings readable by my application
I am working on a project that including an android phone that sends simple serial messages to a picaxe microcontroller(14m2) like '1','2','a' etc.
I searched alot on the web, and I only found a way that the android smartphone first "connecting" to the device and "discover" it, the problem is that PICAXE microcontroller is NOT a 'USB' device, and it can't be discoverd by the android, that means the android will not be able to send serial messages to the PICAXE.
if theres any way to send simple pulses from android to PICAXE, please let me know about it.
EDIT: There's any way to do that by connecting the AXE027 download cable with OTG?
I do some project with communicating over serial port. You can use chineese bluetooth adapters (see on ebay arduino bluetooth), those communicate with controllers via Usart and connect to phone by bluetooth. There is sample project Bluetooth chat from google about how to use bluetooth on android. On hardware iside, you can use arduino for receiving data by bluetooth and converting it in format of your controller. You wont have to use any wires
The problem is:
Having an Android device with turns on Personal Hotspot(WiFi/ad-hoc network).
Having an iOS device which connects to the Android's WiFi network.
Is there a possibility to exchange data between the same app build by a developer on both platforms?
If not, is there any way to exchange data between the same app running on both platforms using the current technologies on iOS and Android(so, without using internet connection or tech such as Near field communication)?
Already researched about data exchange using bluetooth which resulted in this.
Started researching about peer-to-peer connection but as its written on the first paragraph of the Multipeer Connectivity, it says "..by nearby iOS devices..".
(Android) Wi-Fi Peer-to-Peer
(iOS) Multipeer Connectivity
Working on an application and there i am using the socket concept to send receive data from connected peer. All you need to do is
Create hotspot network
Allow nearby devices to connect
Send broadcast message like we send in chat. e.g User joined. And in that message send file which you want to download.
Other side in connected peer, Search file in local if exists use output stream to write the data and after writing the whole data just flush it to other side,
Active listener will receive the data in input stream then.
Hope it helps.
I have developed an app that acts as a usb host reading bulk transfer packets from a usb accessory
If I want to develop unit-tests for that part of the app, is there any way to mock a usb connection and incoming data packets?
It would be very useful to automate testing of the relevant code without actually having to plug in the accessory
Is there some way I can send data from an Android device to a computer over Bluetooth?
Thanks
Yes. Perhaps the most straightforward way to get started would be to use the Bluetooth Chat example, which you will hopefully find in the Samples directory of your SDK installation, or can of course be downloaded from Google.
The Bluetooth Chat demonstrates exchanging bytes of data from one Android device to another over the Bluetooth Serial Port Profile (SPP).
To exchange data between the Android device and your computer, you could use a Bluetooth driver on your computer that provides you with a virtual COM port when a remote Bluetooth SPP device connects. This way, you could simply launch Bluetooth Chat on your Android device, and exchange data with something that reads and writes to a COM port on your computer. For example, on a Windows machine you could simply use HyperTerminal.
The Bluetooth Chat example is then an excellent base upon which to create your own custom Bluetooth Android application.