2015년 11월 12일 목요일

Logitech Unifying 수신기 관리도구 Solaar


Solaar 는 로지텍 마우스,키보드 리시버를 페어/언페어 관리하고, 베터리 정보 등을 가져올수 있는 툴입니다. 공식 사이트는 https://pwr.github.io/Solaar/ 입니다.

아쉽게도 이 관리툴은 리눅스 기반에서만 지원됩니다.

Linux devices manager for the Logitech Unifying Receiver.

Solaar is a Linux device manager for Logitech’s Unifying Receiver peripherals. It is able to pair/unpair devices to the receiver, and for most devices read battery status.

It comes in two flavors, command-line and GUI. Both are able to list the devices paired to a Unifying Receiver, show detailed info for each device, and also pair/unpair supported devices with the receiver.

아래는 설치 및 사용방법이 정리, 소개된 사이트입니다.
cli 및 gui 방법이 아주 자세히 나와있습니다.

http://gihyo.jp/admin/serial/01/ubuntu-recipe/0397
14.04 이전의 경우 먼저 PPA를 추가
$ sudo add-apt-repository ppa : daniel.pavel / solaar
$ sudo apt-get update
Solaar 패키지 설치
$ sudo apt-get install solaar solaar-gnome3


Unifying Receiver 를 잃어버렸을때, 새로운 리시버와 페어 관리 할때 사용하면 좋을 것 같네요.

2015년 11월 11일 수요일

About IOS Core Bluetooth

Core Bluetooth Overview

https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothOverview/CoreBluetoothOverview.html#//apple_ref/doc/uid/TP40013257-CH2-SW1


iOS 7 SDK: Core Bluetooth - Theoretical Overview

http://code.tutsplus.com/tutorials/ios-7-sdk-core-bluetooth-theoretical-overview--mobile-20728http://code.tutsplus.com/tutorials/ios-7-sdk-core-bluetooth-practical-lesson--mobile-20741http://www.raywenderlich.com/52080/introduction-core-bluetooth-building-heart-rate-monitor


Core Bluetooth Background Processing for iOS Apps

Use Background Execution Modes Wisely

Although declaring your app to support one or both of the Core Bluetooth background execution modes may be necessary to fulfill a particular use case, you should always perform background processing responsibly. Because performing many Bluetooth-related tasks require the active use of an iOS device’s onboard radio—and, in turn, radio usage has an adverse effect on an iOS device’s battery life—try to minimize the amount of work you do in the background. Apps woken up for any Bluetooth-related events should process them and return as quickly as possible so that the app can be suspended again.
Any app that declares support for either of the Core Bluetooth background executions modes must follow a few basic guidelines:
  • Apps should be session based and provide an interface that allows the user to decide when to start and stop the delivery of Bluetooth-related events.
  • Upon being woken up, an app has around 10 seconds to complete a task. Ideally, it should complete the task as fast as possible and allow itself to be suspended again. Apps that spend too much time executing in the background can be throttled back by the system or killed.
  • Apps should not use being woken up as an opportunity to perform extraneous tasks that are unrelated to why the app was woken up by the system.
For more-general information about how your app should be behave in the background state, see Being a Responsible Background App in App Programming Guide for iOS.


Android NFC

http://developer.android.com/guide/topics/connectivity/nfc/index.html

NFC offers three different operating modes:

  1. Reader/writer mode, allowing the NFC device to read and/or write passive NFC tags and stickers. 
  2. P2P mode, allowing the NFC device to exchange data with other NFC peers; this operation mode is used by Android Beam. 
  3. Card emulation mode, allowing the NFC device itself to act as an NFC card. The emulated NFC card can then be accessed by an external NFC reader, such as an NFC point-of-sale terminal. 

Reader Writer Mode is already available in Android since the first Gingerbread release in December 2010. Card Emulation Mode, which is actually required for Google Wallet, is not yet available for public. Peer-2-Peer Mode as defined in ISO 18092 is now finding its way into Android devices, also known as “Android Beam”.

http://www.nfc.cc/2011/12/28/development-android-beam-and-nfc-peer-2-peer/
http://www.hardroid.net/archives/71

Android Studio, Gradle 빠르게 하기


1. gradle.properties 파일 생성
        /home/<username>/.gradle/ (Linux)
        /Users/<username>/.gradle/ (Mac)
        C:\Users\<username>\.gradle (Windows)

        org.gradle.daemon=true


2. Android Studio 에서 Gradle offline 설정

        Android Studio 에서, File 메뉴 > Settings
        gradle 메뉴에서, offline work 체크