Ive written a test app based off the Bluetooth Chat app. What is the best way to test that, just to see if the connect is being made ect. with out the having a second device? So something like a Bluetooth Server with logging for Mac. (The test app is a Bluetooth Client)
Robert
You need to run your client test app on an Android device, on the Server side you can use the Bluetooth on your Mac.
Related
I am new to Android programming and was wondering if it was possible to connect an Android device with a BLE Peripheral, without needing an App.
I am experimenting with the Node.js package "bleno" for the peripheral and connecting using an app and even a webapp are working just fine, but connecting using the standard android settings functions dont work. The device does find my peripheral after scanning but when I try to connect with it it always returns that I need an app.
Is this a problem of bleno or does this not work that way in generell?
If the peripheral has for example a HID GATT service exposed, then you can pair and connect to it through the system settings. This means BLE keyboards and mice can be used without any app.
If your peripheral only has custom services or only services the OS knows nothing about, then you will need some app to connect to it.
I'm making client program for android watch (of android wear OS) using socket connection.
In my server & client program for general computer, I'm trying to change the client part to that for android watch. But, I cannot find a sample code related to socket connection for android watch (of android wear OS).
I learned that android watch usually connect google cloud server through phone, and it is possible to directly connect via WiFi without phone. (https://developer.android.com/training/wearables/data-layer) Those are related to Wearable Data Layer API.
My questions are as follows. I'm not sure that android watch as client directly connects our server (with IP address and port number). If possible, could you give some sample codes for socket connection or URL for the codes? (I googled the related codes but I couldn't find them.)
I hope your many comments and welcome any comment. Thanks in advance.
Depending on the hardware you may or may not be able to connect directly (i.e. without relying on a phone) to your server.
For supported devices you can setup a network connection using the ConnectivityManager as described in this guide on Google's developer website.
Once you have established a network connection you should be able to connect to your server.
I am new to Android and I am trying to make an application to connect and send data via Bluetooth, can anybody help me start my application.
I am not sure exactly what you are looking to do but here are several examples:
http://digitalhacksblog.blogspot.com/2012/05/android-example-bluetooth-simple-spp.html
http://digitalhacksblog.blogspot.com/2012/05/arduino-to-android-basic-bluetooth.html
http://digitalhacksblog.blogspot.com/2012/05/arduino-to-android-turning-led-on-and.html
The first example shows how to setup an SPP client and server using an Android device and a Windows PC and send data from the Andriod device to the PC. On Windows it has server examples in java and perl.
The second example shows how to setup basic bluetooth connectivity between an Android device and an Arduino.
The third example builds on the second example and shows how to send data from Android to the Arduino using a program.
The examples should have all the code for Android, Windows and the Arduino.
Hope this helps.
I`m working on home Automation project and I need to develop an Android App to control several devices.
Is it done through GSM module to connect between the Android App & my microcontroller ? or there is another better technique ?
how to connect Android App to GSM module ?
thanks in advance :)
with bluetooth you can connect an android app to external device.
Why don't you try to implement REST approach with 2 phones?
From the first phone try to update some variable in a server.
From the second phone keep fetching the value from the server. Your second phone needs to be connected with microcontroller using bluetooth / serial port.
That would be straight forward.
how can i connect a server code python on PC with android mobile so that i be able to then and receive data between the server and the android mobile ?? but put in consider that the socket can not be open on the mobile android despite its open on the emulator and connect
If you want your Android application to receive updates when things happen on the server, have you had a look at C2DM? One of the great things about this is that all Android applications share the same C2DM connection, so it is very light on battery usage.