Skip to content

BearPi BM-H21E AT Usage

Device Information

  • Device Model: BearPi BM-H21E
  • Main Chip: Hi2821
  • Supports BLE 5.4 + SLE 1.0 Dual-Mode Coexistence
  • Onboard User Button + Power-on Serial TXRX Pins + Status Indicator + NearLink Module and Built-in Module Antenna

BearPi AT Command Usage Tutorial

  1. Set Server mode

    Terminal window
    AT+SETMODE=1
  2. Set Server MAC address

    Terminal window
    AT+SETSLEADDR=111122220009
  3. Set Server name to SERVER

    Terminal window
    AT+SSETNAME=SERVER
  4. Start the server to await connection

    Terminal window
    AT+SSERVER=1
  5. View connected Clients

    Terminal window
    AT+SCLIST
  6. Received the string “123456” from Client named CLIENT1

    Terminal window
    +SRECVDATA:CLIENT1,313233343536
  7. Send string “123” to Client named CLIENT1

    Terminal window
    AT+SSEND=CLIENT1,123
  8. Disconnect from Client named CLIENT1

    Terminal window
    AT+SKILLCLIENT=CLIENT1