bluetooth,raspberry-pi,bluetooth-lowenergy,uuid,ibeacon , How deploy an large number iBeacons


How deploy an large number iBeacons

Question:

Tag: bluetooth,raspberry-pi,bluetooth-lowenergy,uuid,ibeacon

I want deploy a large number of iBeacons with the same UUID because we can't access dynamically to the UUID of the beacons detected. What is the limit number of the maximum Beacons with the same UUID ? I found some discussions with a number of 65000 approximately, is it correct ?
I'm thinking to use a Bluetooth transmitter to wake up the app and check the current location, the API calls return different UUID of the area and I check anyone with the low ranging to check which one is the closest to me.


Answer:

Bluetooth beacons (iBeacon and AltBeacon) have a three part identifier:

There are 8 bits per byte, so if you give all your beacons the same ProximityUUID, you can have 8*2*2=32 bits worth of combinations. That's 2^32 = 4,294,967,296 combinations.

If you have heard discussions of there only being ~65000 combinations, this was probably referring to the major or minor value by itself. Because the minor field has 16 bits (2 bytes x 8 bits/byte), there can be 2^16 = 65536 combinations in the minor field.


Related:


Updating An Image on All instances of a website


php,jquery,html,ajax,raspberry-pi
So I have a Raspberry Pi controlling my Garage door. The Pi is running an apache webserver. I also have a camera connected to the raspberry pi and I want to be able to update the images from the camera. Currently I have the following code: garage.html: <html> <head> <meta...

Is there a way to change bluetooth module's baud rate via Bluetooth connection with Android device?


android,bluetooth,spp
I would like to change a default baud rate of the bluetooth module. I am having an IR receiver which works on baud rate 2400 and it is connected directly to bluetooth module. I want the flow to be IR receiver->Bluetooth module->Android device. To do that, I assume I need...

Raspberry PI USB to RS232 adapter Receiving Only Ctrl Chars


python,serial-port,raspberry-pi,pyserial
I'm using a USB to RS232 cable for get communication with a pure rs232 device. With pyserial lib a got this code running in loopback tx -> rx cable pins. Setting the port: def __init__ (self, baudrate,timeout,parity,stopbits,bytesize): try: #self.s = serial.Serial(port="'/dev/ttyUSB0'",baudrate=baudrate,timeout=timeout,parity=parity,stopbits=stopbits,bytesize=bytesize) #self.s = serial.Serial("/dev/ttyUSB0",9600) self.s=serial.Serial( "/dev/ttyUSB0", baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE,...

Popen.kill() failing


python,raspberry-pi
Update 2: So I piped the output of stderr and it looks like when I include shell=True, i just get the help file for omx player (it lists all the command line switches and such). Is it possible that shell=True might not play nicely with omxplayer? Update: I came across...

Access GPIO (/sys/class/gpio) as non-root


bash,raspberry-pi,chmod,chown,raspberry-pi2
The /sys/class/gpio can only be access as root by default. So I like that a new group gpio can use the files and dirs under /sys/class/gpio. To achieve that I added the following lines to /etc/rc.local (I'm on Debian): sudo chown root:gpio /sys/class/gpio/unexport /sys/class/gpio/export sudo chmod 220 /sys/class/gpio/unexport /sys/class/gpio/export So...

Raspbian log files


raspberry-pi,raspbian
Where can I find all boot, driver or kernel related logs on a Raspbian? Could you please reply with a list as follows: Driver logs - /something/somethingelse.log Thanks!...

setInterval doesn't get cleared, function keeps getting executed


javascript,node.js,socket.io,raspberry-pi
I have the following function: function monitorClimate() { var sensorReadingInterval; function startClimateMonitoring(interval) { sensorReadingInterval = setInterval(function() { io.emit('sensorReading', { temperature: sensor.getTemp() + 'C', humidity: sensor.getHumidity() + '%' }); }, interval); console.log('Climate control started!'); } function stopClimateMonitoring() { clearInterval(sensorReadingInterval); console.log('Climate control stopped!'); } return { start: startClimateMonitoring, stop: stopClimateMonitoring }; }...

Bluetooth LE app, how to build it cross-plaftorm (iOS-Android)?


android,ios,cordova,bluetooth,bluetooth-lowenergy
I am working on an app that talks to a Bluetooth LE device. I would like some way to avoid developing it twice, for iOS and for Android. Is there a cross-platform app framework that has good support for Bluetooth LE? I have had a quick look at frameworks like...

Send data from an android app to a Serial COM Port via Bluetooth


android,bluetooth,port
I'm new to android programming and to Bluetooth. I would like to send and receive data from my phone to an application on my computer that just connect to a PORT COM and can also send and receive data (like an UART). An exemple of such software (on the computer)...

Use same Python variable in multiple if-statements


python,if-statement,raspberry-pi,global-variables,bottle
I am having issues with my current Python script. The purpose of the 'progress' variable is take a specific value when it goes through one of the if-loops. But, the program never goes further then the first if-statement. It looks as if every if-statement makes his own variable called 'progress'....

Displaying a list of paired bluetooth devices in a popup dialog - setAdapter null pointer exception


java,android,bluetooth
I'm trying to create a simple app that displays a list of paired bluetooth devices in a dialog box when a "Connect" item in the action bar is clicked. Here is the XML of the dialog I'm inflating: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bt_list" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <ListView android:id="@+id/BTList" android:layout_width="fill_parent" android:layout_height="200dp" > </ListView>...

Java read bytes from Socket on Linux


linux,windows,sockets,network-programming,raspberry-pi
I'm trying to send a file from my Windows machine to my Raspberry-Pi 2, and I have a client and a server. The client should be able to send a zip file over the network to my server on my linux machine. I know my client and server work on...

Cross compiling for Raspberry pi 2 error


c,gcc,raspberry-pi,cross-compiling,raspberry-pi2
I wanted to start cross compiling for raspberry pi2 on Ubuntu 32bit (in virtual box), so I downloaded the toolchain on the github site (https://github.com/raspberrypi/tools) and tried to compile a simple hello world program with the command (I've included the path to the bin folder that contains arm-linux-gnueabihf-gcc-4.8.3 to the...

QtDesigner for Raspberry Pi


qt4,raspberry-pi,qt-creator,qt-designer
I am building a UI with QT Designer. I need this UI to run on a Raspberry Pi. What do I need to do to make the UI for the Pi? Does it have to be written in a specific language like python or can I just write it in...

Python Flask persistent object between requests


python,rest,flask,raspberry-pi
I am creating a web interface for OMXPlayer on the Raspberry Pi. I'm trying to create a more REST like API for controlling the video while its playing. The issue I'm having is how to control the video while it is playing. Currently I can create a Player object which...

Bluetooth HC-05 Master - connect to Android device automatically


java,android,bluetooth
I have paired my HC-05 as master with my android device (listed in my bluetooth devices list). After the first pairing the HC-05 disconnects and seems not to connect to my Android device again. http://blog.zakkemble.co.uk/getting-bluetooth-modules-talking-to-each-other/ (master as master) Is it possible to configure the hc-05 that way that it automatically...

Global name 'bluetooth' is not defined


python,data,bluetooth,connect
I am working with the bitalino board and I wanted to print the data with python but when I run the proper code, it shows me the message Global name 'bluetooth' is not defined According to my pc the board is connected via bluetooth. I don't know what the problem...

How to install RPi.GPIO to windows


python,module,install,raspberry-pi,gpio
I have looked and most of the tutorials are rasbian based. I would like it on windows so I can develop a python script on windows to which would later be put on the Raspberry pi. I have downloaded the module and have tried python setup.py install in command prompt...

Using camera shutter to trigger MPU6050 on raspberry pi


raspberry-pi,sampling,i2c,gpio,inertial-navigation
I've connected DSLR to RPi by GPIO; and MPU6050 to RPi using I2C. I'm trying to record the gyro and accelerometer data in a small time window (typically less than 50ms) when I press camera shutter button. My desired sampling rate is somewhere in between 500Hz to 1000Hz. And I...

Beacons in Windows Phone 8.1 - there are no possibilities?


c#,bluetooth,windows-phone-8.1,bluetooth-lowenergy,ibeacon
First of all, yes, i have read all other similar questions. Secondly, i am developing app (WP 8.1 WinRT), which must use Beacons. I read a lot about it, and i know, that generally connection with BLE device is not possible without pairing it first. But hope dies last, so...

Difference between attributes and services in BLE


bluetooth,bluetooth-lowenergy
I would like to know what is the difference between attributes and service in GATT in BLE specification. and where we can find attributes, are they in service, caracteristics or in descriptors. thanks

Arduino serial works fine with Debian but hangs with Raspbian


c,linux,arduino,raspberry-pi
I'm working on a personal home automation project. On the server side, I have an Arduino Pro Mini with: a 433 MHz TX module on pin 2 a 433 MHz RX module on pin 3 a DHT22 probe on pin 4 (with 10k pull-up) a DHT22 probe on pin 5...

didExitRegion not fired when turn off bluetooth


ios,objective-c,bluetooth,core-location,ibeacon
Im building a simple ios app with IBeacon, I'm monitoring a region but I have some issues with enter and exit events. If I go into a region the callback didEnterRegion is fired, but being within the region, turning off bluetooth doesn't fire didExitRegion callback. Is this the expected behavior?...

Why doesn't “Set-Item” work on Windows 7 PowerShell?


windows,powershell,raspberry-pi
I am trying to install Windows 10 IoT on my Raspberry Pi 2. The PowerShell documentation tells me to put in this: Set-Item WSMan:\localhost\Client\TrustedHosts -Value <minwinpc> However, when I put it into my Windows 7 PowerShell, this comes out: At line:1 char:54 + Set-Item WSMan:\localhost\Client\TrustedHosts -Value <minwinpc> + ~ The...

Android Development: Discovery of other devices using my app over Bluetooth


android,bluetooth
I am developing an android app where users must be able to see other users nearby them and send a message to that user specifically. I was hoping Bluetooth would be a good, low-energy solution to this. My trouble is in identifying nearby Bluetooth devices only if they are using...

Why does Android Wear bluetooth disconnect after some time - btm_sec_disconnected?


android,bluetooth,android-wear
I am developing an android app for android wear Android Wear 4.4W. I'm debugging the app directly via usb in the smartwatch (that's how I want it - no companion app on the phone). The app receives bluetooth messages every 10ms. After 10-20s, this error is thrown - 01-01 21:10:22.683...

Raspberry Pi script boot order


raspberry-pi,crontab,raspbian,init.d,ppp
There're three forms about running a script on the boot of the Raspberry, that are modifying /etc/rc.local, modifying the cron daemon and making a script that automatically run on boot in /etc/init.d I want to know which of the methods listed about executed first. The point of the question is...

Send a Android BLE GATT Notification


android,bluetooth,notifications,bluetooth-lowenergy
I´m currently developing an BLE application, based on the Gatt sample project provided by Google. What I want to realize is to send a notification from my Android device(smartphone) to another BLE device(e.g. TI CC2540). There are many discussion about how to receive a notification on the Internet. However, I...

My While True loop is getting stuck in python


python,while-loop,raspberry-pi,infinite-loop,raspbian
Hello I have been working on an infinite While True loop for the main file in my python code. I am working on a Raspberry Pi and my goal is that whenever one of the GPIO Pins senses an input it will print out a string. However When I push...

Problems with check if GPS, and bluetooth is activated


java,android,bluetooth,gps
I have some problems with a check if user has turned on bluetooth, and gps. If the GPS is turned off the "OK" icon allways display status as the gps is activated. If the bluetooth is turned on the "OK" icon will show. But not the "notOK" icon when it's...

How to connect android device via bluetooth with matlab 'Instrument Control'-Toolbox?


android,matlab,sockets,bluetooth,serial-port
I want to connect an android device over bluetooth with matlab for exchanging data between matlab and my own android app. But I can't connect via 'Instrument Control'-Toolbox with my android devices. Why? First I scaned for all available devices and then tried to connect (with the "connect"-button) with android....

Connection refused to mosquitto service in Raspian


raspberry-pi,mqtt,gpio
I installed a fresh and clean new raspbian onto a raspberry pi A+ and added the 1.4.2 mosquitto package from mosquitto.org. With mqtt-gpio-Monitor from https://github.com/sumnerboy12/mqtt-gpio-monitor/issues/3 i try to connect but always get an error saying connection refused. Mosquitto_sub works without issues and connects correctly. The mosquitto service is listening on...

How do Bluetooth SDP and UUIDs work? (specifically for Android)


android,bluetooth
My understanding is that the SDP is a list of UUIDs that other devices can fetch. According to this PDF from MIT, "A more general way to think of SDP is as an information database." Does this mean I can add multiple values to SDP? Since Android has BluetoothDevice.fetchUuidsWithSdp(), how...

os.hostname() to return an IP


node.js,raspberry-pi,hostname
I have this raspberryPi with Node.JS running on top of it. By calling os.hostname(), the Pi returns "raspberry". I'm aware on how to modify this behaviour. What I don't know is how to do so in order to have it return an IP. The raspberry is connected in a distributed...

Raspberry Pi: printf() doesn't work with wiringPi


c,printf,raspberry-pi,gpio
I'm trying a simple code that using wiringPi as here: #include<wiringPi.h> #include<stdio.h> int main(void){ int i; wirintPiSetup(); pinMode(0,OUTPUT); //a single LED pinMode(8,INPUT); //tactile switch for(;;){ delay(500); //push tactile switch and LED is turning on if(digitalRead(8)) digitalWrite(0,0); else digitalWrite(0,1); printf("%d",digitalRead(8)); } } I expected a result of printf() is output to...

Replace character in string with multiple characters Shell Script


bash,shell,raspberry-pi,raspberry-pi2
I want to replace "." in this result: "172.16.0.25" with " dot ". Here is my code: #!/bin/bash connection=`netstat -tn | grep :1337 | awk '{print $5}' | cut -d: -f1` #this returns "172.16.0.25" replace=" dot " final=${connection/./$replace} echo "$final" Which returns: test.sh: 4: test.sh: Bad substitution I tried using...

How to extract data from Bluetooth packet data?


android,bluetooth,wireshark
After capturing data from Android 5.0 Bluetooth HCI Snoop Log (Settings > Developer options > Bluetooth HCI Snoop Log), I acquired a lot Bluetooth package data with ATT, HCI_CMD, HCI_EVT protocols. The Wireshark-compatible log can be downloaded here. How can I extract plain text data from the packages?...

GPS App compile errors


c++,linux,gps,raspberry-pi,gpsd
I am working on a GPS application on the Raspberry pi. I have just installed GPSD by running sudo apt-get install gpsd gpsd-clients. I do get data from my GPS module when I run sudo gpsd /dev/ttyAMA0 -F /var/run/gpsd.sock. My issue resides when I try to make my own GPS...

Jumbled out put of RFID Tags


python,raspberry-pi,raspbian
I am working on a project, in which I have to interface multiple RFID Readers (I'm Using EM 18, With Serial out) with Raspberry Pi. I'm using an USB to TTL Converter to connect EM 18 to Raspberry Pi. I've connected two RFID Readers using USB to TTL Adapter. This...

Using macbook pro as display for raspberry pi 2 [closed]


osx,raspberry-pi,raspberry-pi2
I just received a pi 2 with sd card preloaded with NOOBS. I also have an hdmi cable and wifi dongle for it. I wanted to begin using the pi 2 but do not have a spare monitor to connect it to. I was hoping to be able to connect...

C++ chrono library on Raspberry Pi


c++,raspberry-pi,c++14,chrono
On a Raspberry Pi 2, I need to call a php file on a regular basis, typically every 100ms. I found this c++ code which looks like it does what I need and a test version of it compiles and runs fine using CodeBlock on Windows. I've updated the wheezy...

How deploy an large number iBeacons


bluetooth,raspberry-pi,bluetooth-lowenergy,uuid,ibeacon
I want deploy a large number of iBeacons with the same UUID because we can't access dynamically to the UUID of the beacons detected. What is the limit number of the maximum Beacons with the same UUID ? I found some discussions with a number of 65000 approximately, is it...

Can I receive more bytes in one transfer from this c# to android device?


c#,android,json,bluetooth
I'm trying to transfer a long string (2286 bytes) over Bluetooth. I've a bit of an issue about receiving a long json string over the bluetooth.. Well, not an issue, because it is receiving it, but in the manner it is receiving it. I was wondering if it was possible...

How to detect with CoreBluetooth when a peripheral disappears?


ios,bluetooth,core-bluetooth,cbcentralmanager
I would like to have a list of ble devices to which my iOS can connect, which refreshes when ble devices appear and disappear. In order to do that, I created an NSMutableDictionnary* peripheralsAvailable, and everytime - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI; is called by the CBCentralManager,...

How to install shared library and include files manually in linux?


linux,opencv,cmake,raspberry-pi
I am trying to build and install TBB library from source so that it can be used for OpenCV to take advantages of multiple cores on my raspberry pi. I was able to build TBB from source without any problems using this steps. (Source : How do I build OpenCV...

Bluetooth pairing - how to show the simple Cancel/Pair dialog?


android,android-intent,bluetooth,android-bluetooth,bluetooth-oob
I have prepared a simple test project for this question at GitHub. I am trying to create an Android app, which would scan a QR code from a computer screen and then use the data (MAC address and PIN or hash) for easy pairing (bonding) with a Bluetooth device. Similar...

Bluetooth Low Energy: gattCharacteristic.getDescriptor() returns null


android,bluetooth,bluetooth-lowenergy,descriptor,characteristics
I have a problem with getting characteristic's descriptor, it always returns null. There is a chunck of my code: public static final String CHARACTERISTIC_UPDATE_NOTIFICATION_DESCRIPTOR_UUID = "00000001-0000-1000-8000-00805f9b34fb"; public final static UUID tmp_uuid_1 = UUID.fromString(CHARACTERISTIC_UPDATE_NOTIFICATION_DESCRIPTOR_UUID); ... BluetoothGattDescriptor descriptor = gattCharacteristic.getDescriptor(tmp_uuid_1); descriptor.setValue(true ? BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE : new byte[]{0x00, 0x00}); I tried this on...

Raspberry Pi MicroSD Boot not working, MicroSD card unreadable on PC


raspberry-pi
I downloaded the necessary files for Raspberry Pi onto a MicroSD card, although the MicroSD card is no longer readable. When I put the card into the computer through a MicroSD to USB adapter nothing shows up in Windows Explorer. The card isn't present in Windows Disk Management either. How...

How to Read Files Stored in Raspberry Pi Directly to Window Using R


linux,r,windows,ssh,raspberry-pi
I'm attempting to read files stored in Raspberry Pi (Raspbian) directly to Windows 7 using R. To be specific, here are what I've done so far. 1. Install R 3.1.2 on Windows 7 2. Install Raspbian on Raspberry Pi, stored some text data files in Raspberry Pi. 3. Attempt to...