This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

No callback after calling GAPCentralRole_StartDiscovery in CC2541 Keyfob (I Tested based on MasterSlave Project after modifying)

Other Parts Discussed in Thread: CC2541

Hi everyone.

After I tested MasterSlave Project successfully with my CC2541 Keyfobs,

I tried to test scan function of them cause MasterSlave Project initially hardcode MAC address and I don't like it.

After look into "simpleBLEcenteral" Project, I made some modifications on simpeBLESwtch.c.

but it doesn't seem to work as I expected.

sequence :

1. initialize as usual.

2. when key_sw_1 pressed, I called GAPCentralRole_StartDiscovery.

-> after finishing discovery, simpleBLECentralEventCB should be called. (with GAP_DEVICE_DISCOVERY_EVENT in parameter)

but simpleBLECentralEventCB wasn't be called when I tested.

so I wonder how can I make my CC2541 Keyfob to perform discovery properly.

If you know the answer or have same failure, please comment.

Thanks.

- dOOgie Kyohyun Park

 

  • Is it possible that the changes you made broke this? Do you get the callback with the default project?
  • I'm sorry I'm not sure I'm fully understand your question.

    Any default project for keyfob doesn't call GAPCentralRole_StartDiscovery.

    Even in Switch project, "GAPCentralRole_EstablishLink" is just called.

    (This means it works well as a "Initiator")

    and I just wanted to test "scanner" function and so far it doesn't work well.

    so is there anyone who tested scanner function in Keyfob?

    --------------------

    GAP state Diagram : 

    Standby -> Discoverer -> Slave

    Standby -> Scanner -> Initiator -> Master