SHENZHEN MINEW TECHNOLOGIES CO. LTD. MS49SF2 User Manual

Page of 8
 
 
 
TEL: +86-755-8886 8480                FAX: +86-755-2982 5342                  EMAIL: 
sales@minewtech.com
                  URL: 
wwwminewtech.com
   
Page  3 
  Minew Technologies 
Bluetooth 4.0 Module 
Instructions V1.0   
 
Default Setting 
 
Role of Module: Slave;                                                    Module Name: Minew;   
Baud Rate: 9600bps, 8N1;                                            Broadcasting time: 1 Second;   
Minimum circle of connection: 7.5mS;                          Maximum circle of connection: 60mS
Transmission Power: 0dBm;                                          Maximum disconnection time: Disable
 
 
 
Command Format 
 
Format: Head (1 byte) + Data Length (1 byte) + Command code (1 byte) + Data   
 
Head: 0x88, it is a fixed value.   
Data Length: It doesn’t include the length of head, data length and command code. 
Data: All the parameters’ value.   
 
When CMD is low, the BLE module works on the 
Command Mode
 and UART sends the command code. 
When CMD is high, the BLE module works on the 
Data Mode
 and UART sends transparent data. 
Moreover, when CMD and SLP are low, the command code will be available. 
 
1. Set Module Name (Command code: 0x01) 
 
The maximum length of module name is 15 bytes. 
 
For example, let’s change the module name to ABCD.   
Then, the correct command code is 88 
[04] 
01 
[41 42 43 44]
.   
88: Head;   
04: Data length, 4 bytes (ABCD);   
01: Command code;   
41 42 43 44: Data “ABCD” in hex;   
If the setting is successful, the BLE module will send back the command code 88 04 01 41 42 43 44 to the MCU,   
and the LED2 will flash one time. Otherwise, the setting was failure. 
 
2. Set Broadcasting Time (Command code: 0x02) 
 
The maximum broadcasting time is 1500mS, the minimum step is 100mS. 
0x01: 100mS, 0x02: 200mS, 0x03: 300MS…..0x0F: 1500mS.   
 
For example, let’s change the broadcasting time to 1200mS.   
Then, the correct command code is 88 02 02 
[0C]
 AA
 
If the setting is successful, the BLE module will send back the command code 88 02 02 0C AA, and the LED2 will   
flash one time. Otherwise, the setting was failure.