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.

simpleBLECentral connection with simpleBLEPeripheral using cc2541

Other Parts Discussed in Thread: CC2541

I am having two HM-10 (each having cc2541) . I  have configured one hm-10 as a slave by downloading  simpleBLEPeripheral example on one HM-10 after disabling the power saving. I could pair it with my mobile phone using 000000 as the pin key.

I have downloaded simpleBLECentral on another HM-10 so that I  can use it as a master . Please let me know if I have to make any change in simpleBLECentral so that it can pair with the slave. The simpleBLECentral has a default pass code as 19655. I guess I need to change this to 00000. Kindly correct me if I am wrong.

Also let me know can I check whether the master and slave are connected. Is there any app on the playstore for android phones.

  • To test simpleBLECentral, you need buttons and LCD.

    Up BTN: Start or stop discovery
    Left BTN: Display discovery results
    Right BTN: Connection update
    Center BTN: Connect or disconnect
    Down BTN: Start or cancel RSSI polling

    LCD is for Display discovery results, connection status...

    So, you would need to add those buttons and LCD to your HM-10 to make it work.
  • Hey
    Thanks for your response.

    I am connecting the HM-10 module (having cc2541) using the pass key 000000. But in the SimpleBLECentral, the DEFAULT_PASSCODE is 19665. Do I need to change the DEFAULT_PASSCODE of SimpleBLECentral ????

    Is there no other way to check if the master and slave (HM-10 ) are connected, apart from LCD on the master(SimpleBLECentral)????

    Thanks
    Ankur
  • As I test SimpleBLECentral and simpleBLEPeripheral examples, I don't change DEFAULT_PASSCODE of SimpleBLECentral and they work fine. If you don't have LCD, you can try to use UART instead of LCD.