Closed pcl closed 10 years ago
Also: I know the proximityUUIDs that I want to scan for, but my script is currently simply calling Bleacon.startScanning(). If it helps, I can make a different call to just scan for the particular proximityUUIDs that I'm interested in.
Are you running bleacon on Linux or OS X?
OSX now, but I am targeting Linux on a raspberry pi.
On Sunday, May 25, 2014, Sandeep Mistry notifications@github.com wrote:
Are you running bleacon on Linux or OS X?
— Reply to this email directly or view it on GitHubhttps://github.com/sandeepmistry/node-bleacon/issues/10#issuecomment-44129447 .
Patrick Linskey 202 669 5907
FYI, some experimentation indicates that the behavior on my Mac is a bit unpredictable, at least when running separate processes for transmit and receive. In some attempts, I am able to perform both operations, but the system commonly stops broadcasting at some point. Once this happens, it seems to persist across process boundaries, to the extent that I have to shut down BT and restart it to broadcast again.
On Sunday, May 25, 2014, Patrick Linskey plinskey@gmail.com wrote:
OSX now, but I am targeting Linux on a raspberry pi.
On Sunday, May 25, 2014, Sandeep Mistry notifications@github.com<javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:
Are you running bleacon on Linux or OS X?
— Reply to this email directly or view it on GitHubhttps://github.com/sandeepmistry/node-bleacon/issues/10#issuecomment-44129447 .
Patrick Linskey 202 669 5907
Patrick Linskey 202 669 5907
I'm seeing similar behaviour on my MacBook Air (OS X 10.9.2) as well - using test.js sometimes both scanning and advertising run fine, other times I have to restart bluetooth. The XPC messages are acknowledged by blued.
Linux doesn't seem to have this issue.
So far, I don't have any luck with scanning or broadcasting on my Raspberry Pi. When I run with DEBUG=bleacon,bleno,bindings I get this in the logs:
bleacon startScanning: uuid = undefined, major = undefined, minor = undefined +0ms bleno stateChange poweredOff +0ms
The same code on my Mac gives me this:
bindings sendCBMsg: 1, { "kCBMsgArgName": "node-1401039990287", "kCBMsgArgOptions": { "kCBInitOptionShowPowerAlert": 1 }, "kCBMsgArgType": 1 } +0ms bleacon startScanning: uuid = undefined, major = undefined, minor = undefined +0ms bindings xpcEvent: { "kCBMsgArgs": { "kCBMsgArgState": 5 }, "kCBMsgId": 6 } +346ms bindings state change poweredOn +0ms bleno stateChange poweredOn +0ms
Are there any known reports of Raspberry Pi + Bleacon success?
Thanks,
-Patrick
On Sun, May 25, 2014 at 8:53 AM, Sandeep Mistry notifications@github.comwrote:
I'm seeing similar behaviour on my MacBook Air (OS X 10.9.2) as well - using test.js sometimes both scanning and advertising run fine, other times I have to restart bluetooth. The XPC messages are acknowledged by blued.
Linux doesn't seem to have this issue.
— Reply to this email directly or view it on GitHubhttps://github.com/sandeepmistry/node-bleacon/issues/10#issuecomment-44133698 .
Patrick Linskey 202 669 5907
It's hard to scan/broadcast when your Bluetooth adapter is powered off :)
Try running, sudo hciconfig hci0 up
Was hoping it'd be something like that... I'm new to bt on Linux. Thanks! I'll try this out once I get home.
On Sunday, May 25, 2014, Sandeep Mistry notifications@github.com wrote:
It's hard to scan/broadcast when your Bluetooth adapter is powered off :)
Try running, sudo hciconfig hci0 up
— Reply to this email directly or view it on GitHubhttps://github.com/sandeepmistry/node-bleacon/issues/10#issuecomment-44141789 .
Patrick Linskey 202 669 5907
Issue resolved, closing.
Hi,
(This is more of a question than an issue... if you've got a preferred means for addressing questions, let me know.)
Does Bleacon / iBeacon / BLE support simultaneously scanning for iBeacons and also broadcasting an iBeacon? My experience seems to indicate that after I call Bleacon.startScanning(), any in-process broadcasts are terminated.
If this is a limitation, I'd be interested in knowing where in the stack it comes from. Can I get around it by running multiple processes on the same machine to address the same BLE chip, for example?
Thanks,
-Patrick