Skip to main content
Bumped by Community user
added 3227 characters in body
Source Link
Martin
  • 123
  • 6

I've used some weird iterating function to print out AT+HELP commands for this controller and AT+TYPE is not listed there as a command. That means I cant set pairing method? What kind of BLE device has pairing disabled and there is not option to set up at least password?

Here are my commands

21:01:19.739 ->  Command             Description                       
21:01:19.880 ->  ---------------------------------------------------------------- 
21:01:19.949 ->  AT                  Check if the command terminal work normally  
21:01:20.054 ->  AT+RESET            Software reboot                   
21:01:20.159 ->  AT+VERSION          Get firmware, bluetooth, HCI and LMP version 
21:01:20.271 ->  AT+HELP             List all the commands                 
21:01:20.365 ->  AT+NAME             Get/Set local device name                    
21:01:20.459 ->  AT+PIN              Get/Set pin code for pairing                 
21:01:20.552 ->  AT+PASS             Get/Set pin code for pairing                 
21:01:20.646 ->  AT+BAUD             Get/Set baud rate                         
21:01:20.740 ->  AT+LADDR            Get local bluetooth address           
21:01:20.880 ->  AT+ADDR             Get local bluetooth address           
21:01:20.950 ->  AT+DEFAULT          Restore factory default               
21:01:21.054 ->  AT+RENEW            Restore factory default               
21:01:21.157 ->  AT+STATE            Get current state                 
21:01:21.271 ->  AT+PWRM             Get/Set power on mode(low power)          
21:01:21.365 ->  AT+POWE             Get/Set RF transmit power         
21:01:21.459 ->  AT+SLEEP            Sleep mode                            
21:01:21.553 ->  AT+ROLE             Get/Set current role.                     
21:01:21.693 ->  AT+PARI             Get/Set UART parity bit.                     
21:01:21.787 ->  AT+STOP             Get/Set UART stop bit.                       
21:01:21.834 ->  AT+START            System start working.             
21:01:21.952 ->  AT+IMME             System wait for command when power on.    
21:01:22.056 ->  AT+IBEA             Switch iBeacon mode.                      
21:01:22.161 ->  AT+IBE0             Set iBeacon UUID 0.                           
21:01:22.264 ->  AT+IBE1             Set iBeacon UUID 1.                           
21:01:22.381 ->  AT+IBE2             Set iBeacon UUID 2.                           
21:01:22.475 ->  AT+IBE3             Set iBeacon UUID 3.                           
21:01:22.569 ->  AT+MARJ             Set iBeacon MARJ .                        
21:01:22.663 ->  AT+MINO             Set iBeacon MINO .                        
21:01:22.756 ->  AT+MEA              Set iBeacon MEA .                         
21:01:22.850 ->  AT+NOTI             Notify connection event .                    
21:01:22.967 ->  AT+UUID             Get/Set system SERVER_UUID .                  
21:01:23.071 ->  AT+CHAR             Get/Set system CHAR_UUID .                
21:01:23.174 ->  -----------------------------------------------------------------
21:01:23.257 ->  Note: (M) = The command support slave mode only.

I've used some weird iterating function to print out AT+HELP commands for this controller and AT+TYPE is not listed there as a command. That means I cant set pairing method? What kind of BLE device has pairing disabled and there is not option to set up at least password?

Here are my commands

21:01:19.739 ->  Command             Description                       
21:01:19.880 ->  ---------------------------------------------------------------- 
21:01:19.949 ->  AT                  Check if the command terminal work normally  
21:01:20.054 ->  AT+RESET            Software reboot                   
21:01:20.159 ->  AT+VERSION          Get firmware, bluetooth, HCI and LMP version 
21:01:20.271 ->  AT+HELP             List all the commands                 
21:01:20.365 ->  AT+NAME             Get/Set local device name                    
21:01:20.459 ->  AT+PIN              Get/Set pin code for pairing                 
21:01:20.552 ->  AT+PASS             Get/Set pin code for pairing                 
21:01:20.646 ->  AT+BAUD             Get/Set baud rate                         
21:01:20.740 ->  AT+LADDR            Get local bluetooth address           
21:01:20.880 ->  AT+ADDR             Get local bluetooth address           
21:01:20.950 ->  AT+DEFAULT          Restore factory default               
21:01:21.054 ->  AT+RENEW            Restore factory default               
21:01:21.157 ->  AT+STATE            Get current state                 
21:01:21.271 ->  AT+PWRM             Get/Set power on mode(low power)          
21:01:21.365 ->  AT+POWE             Get/Set RF transmit power         
21:01:21.459 ->  AT+SLEEP            Sleep mode                            
21:01:21.553 ->  AT+ROLE             Get/Set current role.                     
21:01:21.693 ->  AT+PARI             Get/Set UART parity bit.                     
21:01:21.787 ->  AT+STOP             Get/Set UART stop bit.                       
21:01:21.834 ->  AT+START            System start working.             
21:01:21.952 ->  AT+IMME             System wait for command when power on.    
21:01:22.056 ->  AT+IBEA             Switch iBeacon mode.                      
21:01:22.161 ->  AT+IBE0             Set iBeacon UUID 0.                           
21:01:22.264 ->  AT+IBE1             Set iBeacon UUID 1.                           
21:01:22.381 ->  AT+IBE2             Set iBeacon UUID 2.                           
21:01:22.475 ->  AT+IBE3             Set iBeacon UUID 3.                           
21:01:22.569 ->  AT+MARJ             Set iBeacon MARJ .                        
21:01:22.663 ->  AT+MINO             Set iBeacon MINO .                        
21:01:22.756 ->  AT+MEA              Set iBeacon MEA .                         
21:01:22.850 ->  AT+NOTI             Notify connection event .                    
21:01:22.967 ->  AT+UUID             Get/Set system SERVER_UUID .                  
21:01:23.071 ->  AT+CHAR             Get/Set system CHAR_UUID .                
21:01:23.174 ->  -----------------------------------------------------------------
21:01:23.257 ->  Note: (M) = The command support slave mode only.
Source Link
Martin
  • 123
  • 6

HM-10 BLE controller is not responding to some AT commands

I have HM-10 BLE controller and it is not responding to some AT commands which I need to use.

AT commands which don't work:

  • AT+TYPE2 returns +TYPE=0
  • AT+VERR? not responding
  • AT+VERS? not responding
  • AT+RESTART not responding
  • AT not responding but AT+responds with OK
  • AT+VERSION responding with MLT-BT05-V4.1

The most important command for me is AT+TYPE2 because even if I set pin with command AT+PIN112233, in my Android App, AlertDialog with password field is not activated during connection with bleGatt = bleDevice.connectGatt(this, true, bleGattCallback) function.

I even tried to call createBond() function on this device, but it is not returning anything. I need to activate pairing with password with AT+TYPE2 but its always returning 0 which is default connection without password and pairing method.

I'm not sure if I have some bugged HM-10 controller but I cant even reset it to default settings. It is working fine with transfering data by characteristics but other stuff is not working.