Looking to detect phones via bluetooth

secs

Member
Join Date
Aug 2015
Location
Office
Posts
65
Hi all

Has anyone seen an industrial whatever???? device to detect phones via bluetooth? We want to initiate something on the plc when one of our phones are in the area? there are three in our area and want to know if 1,2 or all three are here?

Would also be happy with suggestions using some kind of tag we can add to our keyring etc.
 
Is Bluetooth necessary ?

Does it need to detect any three mobile phones or three specific mobile phones ?

If the phones connect automatically to a WiFi access point, detection of which phones are at the location is a standard features of HomeAssistant.


There's a Node-Red library that uses the Bluetooth name lookup, but you need to know the MAC ID of each phone.
 
By coincidence I was configuring a new SD card on a Raspberry Pi 3 B+ with a fresh installation of the newly-released v1.1 of Node-Red.

Google brought me this:

https://flows.nodered.org/flow/13698a08ecf5ee5e1903b040c41a601b

I pasted that code into a Node-Red flow, added the Bluetooth MAC ID of my phone, and... it just works. It takes 5 to 6 seconds for hcitool to return the verdict on whether the specified MAC ID is present, and it simply returns a 1 or 0.

The phone doesn't have to be paired with the Raspberry Pi, nor does it have to be set to be discoverable on Bluetooth. BT does need to be on, of course.

What PLC type are you using ? Node-Red has ControlLogix tag access as well as Modbus/TCP.
 
Last edited:
Hi Ken. Yes I use HA at home and bluetooth. Yes its 3 phones in particular. I would be happy with a key fob or something. Juts need to detect those 3 people or anyone of them on site without having to go and log in.
 
Node-Red is extremely easy to install on a SBC like Raspberry Pi, and the program linked above is literally four function blocks. That's how I would do it.

You can easily resolve the device name; my phone returns the string "moto g(6)".

Bluetooth Low Energy devices can probably be made to work in a similar fashion.
 

Similar Topics

I downloaded v24 for studio 5000 but can’t find where the download manager put it! Any help? I’ve done it before but can’t remember. Thanks
Replies
7
Views
207
Good Afternoon , We all must of done this before ...... Installing a Frequency Drive in an enclosure , you forget how deep your selector...
Replies
1
Views
103
Problem: Our PLC can only output 4-20mA, but the actuators it needs to control, modulate based on a 0-135Ohm signal. Buying 4 or 8 individual...
Replies
7
Views
220
Good Morning , Not sure how many use Markem-Imaje SmartDate X60 Printers , but I'm having trouble finding a good manual for...
Replies
3
Views
353
Would anyone know what software is needed to program a SAIA PCD1 controller? Or know where to find it online?
Replies
1
Views
120
Back
Top Bottom