Hello there! I'm currently using an HM-10 BLE module, connected to an Arduino. On my phone I use a BLE scanner app to connect to this module. Everything works pretty well, I can send AT commands (which are specified in the datasheet), even though it's a limited subset. This is the list I get, and some of them won't even work:
Code:
However, it turns out, once the module is connected to my phone, it won't send any data anymore! No matter what I type, my phone will not receive it. I enabled notifications, doesn't work either. Read on my phone after sending some data, still no difference. The only thing I get when reading are the bytes 01 02 03 04 05 00 00 00 00 00 00 00 00 00 00 00. I can't send AT commands either, when connected. I first have to disconnect from my phone, then it will listen to AT commands again.
Any idea why this would happen? The module is in periphal module, UUID=FFE0, CHAR=FFE1. Help would be greatly appreciated!
P.S. I bought it from a Dutch store: https://www.go2tech.nl/winkel/componenten/at-09-bluetooth-4-0-ble-module-cc2540-cc2541/
EDIT:
This is the list of commands that work:
Code:
and these are the outputs (skipped AT+HELP and AT+SLEEP):
Code:
Code:
********************************************************************
* Command Description *
* ---------------------------------------------------------------- *
* AT Check if the command terminal work normally *
* AT+RESET Software reboot *
* AT+VERSION Get firmware, bluetooth, HCI and LMP version *
* AT+HELP List all the commands *
* AT+NAME Get/Set local device name *
* AT+PIN Get/Set pin code for pairing *
* AT+BAUD Get/Set baud rate *
* AT+LADDR Get local bluetooth address *
* AT+ADDR Get local bluetooth address *
* AT+DEFAULT Restore factory default *
* AT+RENEW Restore factory default *
* AT+STATE Get current state *
* AT+PWRM Get/Set power on mode(low power) *
* AT+POWE Get/Set RF transmit power *
* AT+SLEEP Sleep mode *
* AT+ROLE Get/Set current role. *
* AT+PARI Get/Set UART parity bit. *
* AT+STOP Get/Set UART stop bit. *
* AT+INQ Search slave model *
* AT+SHOW Show the searched slave model. *
* AT+CONN Connect the index slave model. *
* AT+IMME System wait for command when power on. *
* AT+START System start working. *
* AT+UUID Get/Set system SERVER_UUID . *
* AT+CHAR Get/Set system CHAR_UUID . *
* -----------------------------------------------------------------*
* Note: (M) = The command support master mode only. *
However, it turns out, once the module is connected to my phone, it won't send any data anymore! No matter what I type, my phone will not receive it. I enabled notifications, doesn't work either. Read on my phone after sending some data, still no difference. The only thing I get when reading are the bytes 01 02 03 04 05 00 00 00 00 00 00 00 00 00 00 00. I can't send AT commands either, when connected. I first have to disconnect from my phone, then it will listen to AT commands again.
Any idea why this would happen? The module is in periphal module, UUID=FFE0, CHAR=FFE1. Help would be greatly appreciated!
P.S. I bought it from a Dutch store: https://www.go2tech.nl/winkel/componenten/at-09-bluetooth-4-0-ble-module-cc2540-cc2541/
EDIT:
This is the list of commands that work:
Code:
AT
AT+ADVI
AT+BAUD
AT+CHAR
AT+CONN?
AT+CONNL
AT+HELP
AT+IMME?
AT+INQ
AT+LADDR
AT+MODE?
AT+NAME
AT+PARI?
AT+PIN
AT+POWE
AT+ROLE
AT+SLEEP
AT+STOP?
AT+TCON?
AT+UUID
AT+VERSION
and these are the outputs (skipped AT+HELP and AT+SLEEP):
Code:
AT
OK
AT+ADVI
+ADVI=0
AT+BAUD
+BAUD=4
AT+CHAR
+CHAR=FFE1
AT+CONN?
ERROR:BLE_ROLE_PERIPHERAL
AT+CONNL
ERROR:BLE_ROLE_PERIPHERAL
AT+IMME?
OK+Get:0
AT+INQ
ERROR:BLE_ROLE_PERIPHERAL
AT+LADDR
+LADD=C8FD198AE121
AT+MODE?
OK+Get:0
AT+NAME
+NAME=peter_uno
AT+PARI?
OK+Get:0
AT+PARI?
OK+Get:0
AT+PIN
+PIN=123456
AT+POWE
+POWE=3
AT+ROLE
+ROLE=0
AT+STOP?
OK+Get:0
AT+TCON?
000000
AT+UUID
+UUID=FFE0
AT+VERSION
+VERSION=v5.3