在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):dburr/linux-ibeacon开源软件地址(OpenSource Url):https://github.com/dburr/linux-ibeacon开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):linux-ibeaconThis is a Python script that creates an Apple® iBeacon®-compatible Bluetooth LE beacon using a computer running Linux and a Bluetooth LE adapter. What You NeedYou need a computer capable of running Linux. It can be a desktop or notebook PC, or any of the various single-board computers that are popular nowadays such as the Raspberry Pi or Arduino YUN. It must have Python 2.6 or 2.7 installed. This script does not need any special Python libraries or modules, just the ones that come standard with Python. Your version of Linux must be compatible with the new Bluetooth 4.0 Low Energy (LE) standard. Currently this requires version 3.5 or greater of the Linux kernel. You will also need version 5.0 or greater of BlueZ, the Linux Bluetooth stack and associated tools. On most Linux distributions, BlueZ can be easily installed from your distribution's package manager. E.g., for Debian and Debian derivatives (Ubuntu, etc.):
Your computer must also have a Bluetooth adapter (either built-in or USB) that is compatible with the Bluetooth 4.0 LE standard. To test whether your adapter is LE-compatible, issue the following command:
If you see either nothing, or a list of MAC addresses ( If you don't have a LE-capable adapter, the Plugable USB Bluetooth 4.0 Low Energy Micro Adapter is an inexpensive, low-profile USB Bluetooth adapter that is known to work well with Linux. How to use it
This script must be run with By default, the script creates an iBeacon whose UUID matches that which is used by the Beacon Toolkit iOS app,
with major and minor both set to UUID, major and minor may also be specified by setting the To test, you will need a device compatible with Bluetooth LE. In the Apple universe, that means the iPhone 4S or later, iPad 3rd gen or later (including Mini and Air), and the iPod touch. For Android, you'll have to check the list (most phones made within the last 2 years or so should be BLE-compatible.) Then download either Beacon Toolkit (for iOS) or iBeacon Scanner (for Android.) Fire up the app and begin scanning. Your newly-created iBeacon should appear in the list. If not, check to make sure that you specified the correct UUID, major and minor numbers. (For iOS devices, if you used a non-default UUID, you will have to enter it in the Beacon Toolkit app's settings screen.) LicenseThis script is licensed under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论