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:
********************************************************************
* 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! Smile

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
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement