MOKOSmart의 iBeacon Android

MOKOSmart의 iBeacon Android

아이 비콘 Android with the MOKOSmart SDK

Bluetooth 저에너지를 기반으로 Apple에서 개발 한 iBeacon 프로토콜은 다양한 장치에서 지원됩니다.. The article explains iBeacons and Bluetooth Low Energy and uses the example of developing an Android app for location-dependent shopping lists to show the location-dependent interaction of an app with iBeacon android. The implementation is based on MokoBeacon and the associated SDK.

아이 비콘, 블루투스 4.0, BECAME, 똑똑한. ot?

iBeacon의 기본 기술은 Bluetooth입니다. 블루투스 저에너지 (BECAME), 블루투스 스마트 마케팅 라벨이라고도합니다., 버전에 포함되었습니다 4.0 블루투스 표준. BLE는 이전 버전의 Bluetooth Classic과 호환되지 않습니다. 블루투스 4.0 표준 호환 장치가 하나 또는 두 변형을 구현해야 함을 지정합니다., 즉. 저에너지 또는 클래식.

BLE는 iPhone과 같은 거의 모든 최신 스마트 폰에서 구현됩니다. 4+ 그리고 삼성 갤럭시 3+. iPhone은 iBeacon 신호 수신기와 – unlike iBeacon Androidas a beacon itself. 안드로이드는 API 버전의 BLE 드라이버를 포함 18, 즉. 기계적 인조 인간 4.3. 부수적으로, 현재 컴퓨터도 BLE 가능. Windows에서, 하나, 드라이버는 Windows에서만 제공됩니다 8 and since around mid-2011 BLE has been available on Apple computers.

BLE는 심박수 모니터 및 장난감 헬리콥터와 같은 다양한 주변 장치를 계속 지원합니다., 온도계, 피트니스 장비 및 칫솔, 예, 칫솔과 운동화.

iOS and Android with the first iBeacon apps

iOS 7 currently offers developers the best prerequisites for integrating iBeacon into apps. Since iOS 7, the operating system even starts apps that are no longer in memory if it has discovered an iBeacon registered by them or loses its signal. Registration for this takes place via the core location framework, which is easier to use than core Bluetooth. The most well-known iBeacon android and iOS app are MokoBeacon. It takes action when selected events occur. 예를 들어, it creates a calendar entry when you come home.

Android does not support iBeacon ex-works. Several third-party vendors compete for developer favor with their solutions, including Radius Networks and Sensorberg. The free Radius Networks solution consists of a program library that Android provides with an iBeacon service and the necessary API.

Sensorberg relies on a complete package consisting of hardware, software development kit and software for the management of the iBeacons, the app content and user interactions. The Sensorberg solution was used, 예를 들어, in the app for Cebit 2014, which is available for iBeacon Android and iBeacon iOS. The app provided training places, internships and a job offer on the smartphone at selected trade fair locations.

Information quality and data protection are crucial for success

On the consumer side, iBeacon arouses the fear of a smartphone spammed with advertising, of intrusive, individualized customer contact, as in the Minority Report. Some of these concerns are unjustified, as the iBeacon android function, which inevitably serves as a reference, shows. iBeacon uses an opt-in model. You only become a user by installing an iBeacon app; all other smartphone owners are spared.

IOS also only discreetly indicates information triggered by iBeacon. They appear when the user switches on his smartphone while he is within range of the beacon and disappears when he moves away from it. No interference from beeps and vibrations or even an overflowing message center after visiting a shopping center.

When users find an iBeacon app useful and when it annoys them will largely determine the quality of the information and functions provided. Oelling explains: “Location services, not location marketing”. 따라서, only apps with utility will be successful. Annoying apps fly off the phone, negative reviews do the rest.

What can I do with an iBeacon android?

The iBeacon can e.g. be used to identify certain positions such aswork” 또는 “home”. Predefined actions can then be triggered in the smartphone. E.g. the WLAN can be switched on and off automatically when the user leaves or enters their home.

With various apps, these functions can also be implemented based on GPS data or cell towers, but both alternatives have disadvantages. GPS tracking uses a lot of energy and does not work in buildings. The location with cell towers is not exactly accurate. In rural areas, a cell tower may be visible for several kilometers. With iBeacons, it is only a few meters. It can even be used to identify individual rooms within a house. As a last resort, there would still be WLAN, since it also broadcasts its SSID regularly. 운수 나쁘게, this fails because the cell phones switch off the WLAN hardware to save energy, but not the Bluetooth receiver.

Configure MkiBeacon 매개 변수

For this article, we use MkiBeacon. The iBeacon is simply plugged into any USB port. It does not have to be a PC since only the voltage is required.

The following app is installed on the smartphone for configuration:

After starting the app, all iBeacons are displayed nearby. If there are several, it is probably the one with the shortest distance. After clicking on your own iBeacon, the configuration view opens:

iBeacon android configuration

The following settings can be adjusted:

UUID:

The actual ID of the iBeacon. In practice e.g. all Vodafone Beacons have the same UUID. 이런 식으로, there is no need to maintain a list of valid beacons in the app. The shop can then e.g. Be identified via major and minor.

UUID of ibeacon android
주요한 / 미성년자:

The idea is that all shops get the same UUID. Major could be used to identify the department (전자 제품, clothing, delicatessen, ..). Minor would then be used, 예를 들어, to identify the shelf (“keyboards” shelf in the “Electronics” department).

Transmission distance:


Transmission Power:

Here the transmission strength can be set in 7 steps. It’s best to try it out a bit. The distances are of course estimates.


Broadcast Interval:

Indicates how often the iBeacon sends its ID. 이 경우, 1 means 100 milliseconds.


Serial ID:

Serial number. It can be adjusted.


iBeacon 이름:

The name and serial number together form the name with which the iBeacon can be identified. But the UUID is more important.


Connection Mode:

This can prevent you from changing the settings. If the value is 1, you have locked yourself out, but the beacon continues to work.


Change password:

A password can be set here.

modify password on ibeacon android
Reboot iBeacon:

After changing settings, the iBeacon must be restarted. The old password is required for this.
After changing a value, click on Save at the top right. It always took me about 1 second, although the change was not yet transferred to the iBeacon. When everything has been changed, a click on Reboot iBeacon opens the following dialog:

reboot ibeacon android

This step is important, otherwise, the changes will not be accepted. I don’t know what the catch is for, but I put it. The first time the Moko4321 password set at the factory must be entered here. 그렇지 않으면, the process will fail without any error message 🙁 Of course, the second time, your own password will be used.

IBeacon technology offers an ideal way to trigger location-dependent actions on the mobile phone. Due to the low cost and low energy consumption, several beacons can be used without any problems. Since the beacons distinguish between three distance ranges, actions can also be triggered if the smartphone is located directly next to the beacon (예 :. at the bed).

Even though the app is a bit junky, the beacon makes a good impression. The app works and is only required once for the initial setup. The transmission power may have to be adjusted at the beginningdepending on the application.

For at home, I would choose a non-battery-powered solution, as they have fewer range problems because there is no need to spare the battery. If you want to automatically set your cell phone to silent after entering the forest, you should, of course, use battery-powered devices. These usually last longer than a year.

iBeacon 기술: micro-location smartphones and tablet apps

As the name suggests, the iBeacon technology was introduced by Apple in 2013. Beacons are small radio transmitters that can be installed, 예를 들어, in a shop or in a museum and send certain information to customers or visitors. BECAME (블루투스 저에너지) is used here. This is not a new technology but already occurs in pulse watches, 예를 들어. 하나, radio transmitters do not have a very long range. 하나, beacons do not contain any other technology that the mobile device or the user can personally recognize or even monitor. An app that supports iBeacon is also required. If no app for the technology is installed on the mobile device, the smartphone, 예를 들어, does not react to an iBeacon installed in the store.

How iBeacons / beacon work

If a corresponding app is installed and the device comes close to a beacon, the system activates the app. 이것을하기 위해, the app receives a signal from the beacons and thus knows that there is a certain iBeacon nearby. What happens in detail is always different, depending on the app and operator. In some cases, 예를 들어, only one message is displayed, in other offers or vouchers are presented. Each iBeacon has a specific identifier, also called UUID (Universally Unique Identifier) ​​in technical jargon. With this, the app can also search for further information via the Internet and display it to the user.
하나, the apps can not only recognize the beacons in their vicinity, but they can also determine how far they are from the respective handheld. There are three different distances:

1. 멀리 (거리 “멀리”)
This means a distance of approx. 2미디엄 – 20미디엄. 예를 들어, information about nearby shops is sent to the smartphone.

2. 근처에 (거리 “근처에”)
Here the distance is about 0.5m – 2미디엄. If you enter a store, 예를 들어, the app welcomes the user.

3. Direct (거리 “즉시”)
This means direct proximity. 예를 들어, if the user is standing directly in front of a painting in a museum, the app can provide specific information about the art object.

게다가, it must be said that the determination of the distance is already relatively good, but not exactly. The exact position can deviate a few meters from the exact location.

iBeacons = AppleWhat is there comparable for iBeacon android?

이미 언급했듯이, Apple introduced iBeacon. For developers, iOS8 is the best environment for integrating iBeacons into apps. But iBeacon can also be used on Android devices. 하나, this does not go naturally. 하나, there are several providers that provide different solutions for this.
A well-known and free solution comes from Radius Networks, 예를 들어. A program library is provided here, consisting of the API required for using iBeacon and an iBeacon service.
Sensorberg presents another solution. With the package of hardware, software development kit and software for the management of the iBeacons, the content of the app and the interaction of the users, everything is included that is needed for the implementation.

하나, it must be ensured that the smartphone or tablet supports BLE technology and has a compatible chip. This is already guaranteed at Apple from the iPhone 4S. But many of the Android devices already carry such a chip. Like the HTC One, the Google Nexus 4, 5, 7 과 10 and the Samsung Galaxy smartphone from S3.
하나, not only the hardware is crucial, but also the software. BLE from version 5 is supported on iOS. With Android only from version 4.3. If the hardware is correct, but the software is not, there are solutions such as custom ROMs to upgrade the smartphone or tablet.