iBeacon: Is possible send small data to track from transmit? - iphone

I am going to start a project code for iBeacon with iOS 7 and bluetooth 4.0.
http://www.appcoda.com/ios7-programming-ibeacons-tutorial/
Readied above link, i have coded it and tested . it is working fine .
Created two apps. One for transmit beacon and another for track beacon.
How can send small data to track beacon from transmit beacon. Small data is a ID of room.
Is possible send small data to track from transmit?

You cannot send any other data from a device transmitting as a beacon to another device via the iBeacons protocol. However, if only want to know a room ID, then you should set this as either the major or minor value of the beacon (or a combination of those two values).
As an example, a large retailer might set:
UUID: A single UUID for the retailer
Major ID: Identifies the specific store that a beacon is located in
Minor ID: Identifies the department that the beacon is in
If you wish to transmit more substantial data between two iOS devices, you'll probably want to look at something like Apple's Multipeer Connectivity framework.

https://github.com/DavidSahakyan/LGBluetooth
here is a framework which will help you to work bluetooth 4

Related

Continuous update UI from Service

I'd be very grateful if somebody can help me. (I'm absolute beginer with Android).
There's a lot of code in the web, but I couldn't find anything suitable for my application.
I've an installation with some sensors connected to Arduino. All input data are collected in a String, and this String is sent via Bluetooth to an Android device every 1~2 seconds (depending on data availability from sensors). Is to be used for hours.
I made an App that receives the data (via Bluetooth) and shows all data in real time update in one layout, with the Bluetooth code in the MainActivity. Works well.
What I need is an App with three different Activities, all using the same String data from Bluetooth, and real time updated.
My question is how to build the App:
-Bluetooth running in a Service, and Activities connected to it?
-Which is a good way for real time update in any of the three Activities?
A similar example could be a weather station, an Android device receiving data via Bluetooth, showing the same weather data in three different layouts, with continous update.
Thanks in advance

Using Beacon as a locating device in retail

how to detect beacon signal and do we need to make any app to manage it or any predefined app or site is available?
I want to know how Beacon works and which Beacon is suitable for retail.
You need a mobile phone with Bluetooth 4.0 to detect beacons. They emit a BLE signal which is a little different from the normal Bluetooth signal. There are many generic apps in the play store and maybe in the app store to detect them.
But if you are looking for real functionality related to that, then you'll be needing the retail store-specific mobile app so that it can show you relevant updates in the app.

How the application does to manage the repeated signal of beacons?

I'm new in beacons and I don't understand how the application manages the signals of the beacons. Because the app can receive in a short period of time many signals from the beacon. How the application does to manage that repeated signal? If for example a beacon sends a message and half a second latter the same beacon sends another message then the application get two signals of the same beacon. It means that each time the beacon sends a message the app shows a an add to the user? or how the application knows that this message was already displayed by the app?
Beacons do not send messages to users. They only transmit a unique numeric identifier over and over again, at a typical rate of 1-10 times per second. That's it! That is all they do!
Most of the functionality people associate with beacons is really provided by software that runs on a mobile phone, or even running on cloud servers. An iOS framework or an Android library detects the beacon transmissions and converts them to one of two basic event notifications for mobile apps to process:
Beacon appeared/disappeared (called monitoring)
Beacon is still in range at an estimated distance (called ranging).
By using monitoring events, mobile apps are told when beacons first appear, and can then convert the beacon's unique identifier into a message to be displayed to the user via a lookup table bundled with the app or on a cloud server. Thanks to the monitoring event notifications, the message only displays once for each time the beacon is first detected by the phone. It will be displayed again only once the beacon goes out of range and comes back in range again.

How to post Advertisements from an IPhone Device which acts as iBeacon?

i want to know some details about iBeacons. Couple of days back i created a sample project where i turned my iOS Device into an iBeacon and i tracked down that iBeacon with another device, i am also getting the proximity distance between my Device and the beacon.
So my question is Is it possible to post some advertisements from my device which acting as iBeacon?
How to configure that?
All i wanted to know is how the iBeacon Configuration done to send the data?
Some one please help me out
thankYou
An iBeacon "advertisement" is just a constant transmission of a four part identifier that signifies a unique device. It only contains four fields:
proximityUUID (a 16 byte UUID usually expressed in the form 00000000-0000-0000-0000-000000000000)
major (a number from 0 to 65535)
minor (a number from 0 to 65535)
power (a number from 127 to -128)
That's it. You can't make an iBeacon send any more data than that. It doesn't matter if the device acting as an iBeacon is your phone, an iPad, a Mac computer, or a small battery-powered unit.
If you want to tie other data to an iBeacon, you have to do it through another channel, by some kind of lookup that matches the data up with the identifiers above. You can do this with a static lookup table in your app, a web service, or a CoreBluetooth communication channel. But you have to code that yourself.

How to implement indoor navigation on the iPhone

I would like to locate the iPhone in a building to build an application with similar features as the iPhone app of the American Museum of Natural History. There is no good GPS reception as there are also rooms in the cellar I would like to cover.
What can save me is that there is good wifi coverage in the whole area, so my idea was to triangulate the position based on the wifi base stations in range, whose positions are known. However I found no public API to find out which base stations are in range.
Questions
Do you have an idea how the app mentioned above manages to get the correct location indoors?
Could one add the wifi base stations manually to Apple's database and use the usual CoreLocation?
Do you have other ideas how to implement it?
Any help is very much appreciated!
Boundary conditions
The indoor navigation is only used during an event to guide guests new to the building, so no complex infrastructure should be installed.
There are approximately 14-18 rooms to be covered. They are in different parts of the building, so wiring everything up would be very costly.
The preferred solution would not require a server backend of any kind and would work with a list of wifi access points and their corresponding locations.
I wouldn't know about 1 and 2. But if you would implement such a thing, turn it around to save a lot of trouble: create your own free-of-charge wifi network, and let the network determine the location, either based on triangulation, or just based on the currently associated access point. Make their signal weak so you have one audible access point per room. Let the app ask a server in what room he appears to be. This will also work for any other mobile/pda/laptop.
As for other ideas: You could use bluetooth to do somewhat the same as you're planning for wifi. You can't do everything with bluetooth, but listing devices seems to be one possibility. So just put a bluetooth device in every room. Bluetooth range is limited by definition.
Another one would be to use the microphone in conjunction with a high pitched sound which identifies the room, but that would cause trouble with dogs (for blind people), attract bats, and repel mice at the same time. Better focus on an RF based solution ;-)
You can also check out Navizon's indoor positioning system:
http://www.navizon.com/product-navizon-indoor-triangulation-system
Their system is able to locate iPhones by using the WiFi signals transmitted by the device and doesn't require an app to run on the phone to locate it. It can locate any other WiFi enabled device for that matter.
Check out wirelesswerx.com They seem to be doing indoor location using Bluetooth and it looks like they can do permanent install or temporary for events.