| View previous topic :: View next topic |
| Author |
Message |
championx
Joined: 28 Feb 2006 Posts: 153
|
| NRF24L01 as bluetooth beacon |
Posted: Sat Nov 22, 2025 8:27 am |
|
|
Hi all! I know this module can be used as a ble beacon, has anyone have tried it?
all I can find is coded in arduino. |
|
 |
dyeatman
Joined: 06 Sep 2003 Posts: 1969 Location: Norman, OK
|
|
Posted: Sat Nov 22, 2025 8:56 am |
|
|
Use the forum Search function to look for NRF24L01 and you will find a lot of info including a CCS C driver in the Code Library _________________ Google and Forum Search are some of your best tools!!!! |
|
 |
championx
Joined: 28 Feb 2006 Posts: 153
|
|
Posted: Sun Nov 23, 2025 10:13 am |
|
|
| thanks for your reply, yes i have used this module a lot, but i need to know if anyone has used it as BLE beacon and how to configure it. |
|
 |
temtronic
Joined: 01 Jul 2010 Posts: 9597 Location: Greensville,Ontario
|
|
Posted: Mon Nov 24, 2025 6:59 am |
|
|
since you have ardunio C code, you can 'translate' it into CCS C code.
Google says 'beacon' is the BLE transmitting it's ID, say every second. If so seems easy enough to code. PIC reads BLE ID, then in 1HZ ISR, transmits that data ? |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 19989
|
|
Posted: Tue Nov 25, 2025 12:24 am |
|
|
A beacon is a very simple device. All it is is a BLE device that broadcasts it's
ID at intervals.
Normally you would want to set the device to it's lowest power option,
and just send the ID at perhaps 2 second intervals. Nothing more.
There are other options and modes, but this would be the normal
approach for a device to trigger some action when a device looking
for the beacon gets close.
2 seconds was the standard for the original Apple protocol.
However beacons for other purposes may behave differently. So for
example, the AirTag does a much higher power broadcast, but only at
very long intervals (15 minutes!). Some like this look for a reply, and
then reduce their interval
The best settings, intervals etc., will depend on what the beacon is actually
for. |
|
 |
|