arduinobluetooth-lowenergyhm-10

Is running HM10 on a soft-serial enable the Low Energy charecteristics ? If so, how can the UUIDs and GATT profiles be tweaked in this case ?


I've been tinkering with the HM-10 board for a few weeks now, trying to push data from phone to module and vice-versa. The ultimate goal was to enable the BLE mode and tweak with the characteristics and GATT profiles. I'm pretty new to this domain so can anyone help me out ?

And is there any way we can interface the HM-10 with the hardware rx-tx channel instead of soft-serial ?


Solution

  • Your question is still not very clear, but i think you mean sending AT-commands over BLE-radio.

    To make this possible you have to change the MODE using serial connection.
    In standard mode the device can only be configured over the serial connection (pins RXD and TXD) using AT commands.

    AT+MODE0: It only accepts AT-commands over the serial connection (RXD/TXD) 
              until a central device connects to the module.
    
    AT+MODE1: Same as MODE0, once a connection is established,
              AT-commands can be sent over BLE and manipulate some PIO pins on
              the device.
    
    AT+MODE2: Same as MODE0, once a connection is established,
              AT-commands can be sent over BLE. 
    

    To test it just send a string to hm-10 as "AT\r\n" and it will respond with OK.
    Update:
    You cannot change the services and characteristics with AT-commands.
    There are a lot of other things you can change,like advertising, setup a beacon and change a lot of settings.
    For a full list of AT commands and more see the official data sheet: http://www.jnhuamao.cn/bluetooth41_en.zip