CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

NRF24L01 as bluetooth beacon

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
championx



Joined: 28 Feb 2006
Posts: 153

View user's profile Send private message

NRF24L01 as bluetooth beacon
PostPosted: Sat Nov 22, 2025 8:27 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Nov 22, 2025 8:56 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Nov 23, 2025 10:13 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Nov 24, 2025 6:59 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Nov 25, 2025 12:24 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group