Hi new to the form always use it but never needed to ask anything, i just need advice on the following. thanks in advance!
Is it possible to connect a Bluetooth beacon to a visual studio c# application and use a android phone to send a message to the beacon where the application updates a database? many devices will be sending messages to the same beacon (my project idea). I know the android and messaging part will work but not sure if i can connect the beacon to the VS desktop c# app.
And this is the beacon i have been looking at, need something with a good range. (contacted manufacture about connecting it as they just show an app to configure. no reply lol)
https://accent-systems.com/product/ibks-105/
Open to suggestions.
Sorry, what you are describing won't work. Bluetooth beacons are essentially transmit-only devices. You can't send messages to them. All beacons do is transmit a unique identifier.
It's unclear what your project is trying to accomplish here, but you can use web services as an intermediary for mobile devices to communicate with a C# Desktop app. You can trigger this communication to happen when the mobile devices detect the bluetooth beacons.
Related
I am making a prototype for my final paper (Electronic technician) and the purpose is: A real-time car tracker using GPS and arduino UNO to this, and an android app (made in android studio with Kotlin) to connect the arduino and receive some data to help the user in case of accidents, robbery and theft. The main problem is, how can I connect the arduino GPS and the android app in long distances? With internet? For this, we thought about using the GSM800L module to this function, but we don't have any Idea to implement this two ideas together, we know Kotlin has some functions to GSM, however, we don't know how to use it in the code. If someone has the answer to this questions, I would really aprecciate it.
You need a mediation device.
Arduino GSM in the car
Android app
Server of some sort, with a database and connectivity to the internet
Arduino sends data over HTTP or even better using MQTT.
Android app read data from server or even better get notifications and update the screen.
I want to send text data through Ios to android using Bluetooth Low Energy Protocol through Advertisements. I have tried alot of code examples but nothing find useful. Please suggest me any working example so i can transmit data in connection less transmissions through advertisements from Ios to android and android to ios. please help my guys. I will be thankful to you !!!
What you want to do is doable but you may need some digging and trial-and-error as there isn't any ready example that I am aware of. To achieve what you want, you have to:-
Send custom data from iOS via BLE advertisements.
Read the custom data from Android via BLE scanning.
You can achieve the first part through one of the examples below:-
Sending bluetooth LE data in advertisement on iOS
Custom BLE Advertisement on iOS
And info on the second part can be found here:-
How can I read the Bluetooth LE advertisement data in Android at the time of scanning
Read advertisement packet in Android
Some other useful references:-
Ble: Send advertise data to iOS from Android
Ultimate Guide to Apple's Core Bluetooth
Ultimate Guide to Android BLE Development
I need to transfer data from android phone to each other through my application using BLE. When a device comes near to me and my application is already installed in it, So my phone will establish a connection and send some data in strings and also receive from that device without notify user. Is it possible to do with BLE and I have studied BLE from
https://developer.android.com/guide/topics/connectivity/bluetooth-le
But I am new so I dont know from where to start and what should i have to do? Kindly let me know about BLE more easy for my better understanding and refer me some tutorials where I can learn that how will fulfill my application functionalities.
Thanks
I suggest starting with the Central-Peripheral example. Here you have an simple application:
https://github.com/itanbp/android-ble-peripheral-central
And tutorial with basis:
https://www.bignerdranch.com/blog/bluetooth-low-energy-on-android-part-1/
In the case you described, if there are not defined roles for the android phones (master, slave), the program will have to work in alternately in two modes: central and peripheral.
This is possible form the BLE side. However, there may be a problem with the application wroking as a background service. Since Android 8 there are new restrictions and limitations in background sericves:
https://developer.android.com/about/versions/oreo/background
Bluetooth Low Energy on Adnroid is very troublesome technology. A lot depends on the version of Android, processor and antenna system of the phone.
I'm developing an app to communicate with a BLE device (Sensor puck from Silicon labs) and get whatever it is broadcasting.
I have NO experience in developing any sort of Bluetooth application using Android.
Do I need to manually pair it to the BLE device? I downloaded Sensor puck app from Play store, it automatically started to read from the device. I don't understand how since I didn't pair it.
Do I need specific API to communicate with the device? Is it like, I connect to the device and unpack the data which the device is broadcasting?
Any other information related to BLE application development would help.
Thank you.
PS: I can't use the app from the play store as I need the data from the device for some other processing.
I have a little experience with developing BLE apps.
Do I need to manually pair it to the BLE device?
I haven't encountered use case where I needed to pair mobile device with BLE device. Basically, you can communicate with BLE devices without pairing with them. BLE devices constantly emit signals and you can read these signals. Usually, from the emitted signals, you can read name of the device (or producer name), MAC address, RSSI signal from which you can compute distance from your mobile device to BLE device. Some BLE devices emit other information like temperature read from their sensors, etc. You can read information from more than one BLE device during the single scan.
Do I need specific API to communicate with the device?
Google provides API, which you can use to communicate with BLE devices. You can read more about it at: http://developer.android.com/guide/topics/connectivity/bluetooth-le.html. You can also use some third-party libraries allowing to communicate with BLE devices. Most of them are dedicated to so called Beacons, which are simple, tiny BLE devices.
Exemplary APIs for BLE Beacons:
Estimote
Kontakt.io
AltBeacon
ReactiveBeacons - this is open-source project, which I'm currently developing, so if you have any questions regarding it, you can ask me directly
Other projects:
Android Bluetooth Demo - this is very good and simple project, which can help you to understand how to use BLE API provided in Android SDK
Other information:
To communicate with BLE devices, of course, you need to have Bluetooth enabled on your device, but regardless of this permission, you also need to have Location enabled on your device and added location permission to your app. I guess it's done due to the fact, that you can use BLE devices for creating micro-location services.
I gathered some references concerning BLE for myself. You can check them here: https://github.com/pwittchen/ReactiveBeacons#references and maybe they will be useful for you as well.
Regards,
Piotr
it might be too late, but it also might be helpful for other users. So Sensor Puck works like a simple beacon and it doesn't require any pairing. You just have to scan all bluetooth devices nerby and verify received ScanRecord object. You don't have to use any specific libs or API, Anroid sdk contain all necessary api for such case (please see BluetoothAdapter startScan, startLeScan, etc). Also you can find an example how to parse raw data in my demo project https://github.com/alexeyosminin/sensor_puck_demo
A few months ago I have coded a messenger program in C# which enables many clients to connect to a server and have a chat.
Now, I want to code the same program for android. After reading the bluetooth article in Android Developers, it seems that this is possible for a device to hold many bluetooth sockets at the same time + be discoverable (I'm talking about the server). The only action the said that should not work togather with bluetooth sockets is discovery, but since the client runs that, it doesn't change much.
But what made me unsure if it's possible to be done, is the fact that there is NO such an application in the android market! (Atleast not after a quick check.) There are many bluetooth chat apps, but none of them allows multi clients.
So before I begin coding that, I want to make sure it is possible, and make sure that holding, say, 5 tcp sockets won't kill the server phone.
Thanks in advance :)
Here is a link I found:
"Multi-device extension of the official Android Bluetooth Chat example"
Is that what you wanted?