HM-BT4502 V1.0 Bluetooth Low Energy (BLE) Pass-through Module Specification HM-BT4502 1/ 43 www.hoperf.
HM-BT4502 V1.0 Table of Contents 1 Product Overview........................................................................................................................ 4 2 Module Features ......................................................................................................................... 4 3 Electrical Characteristics ........................................................................................................... 6 4 Module Function Description ...................
HM-BT4502 V1.0 9.10 Add the Custom Advertisement Content .................................................................... 17 9.11 Customizethe Product Identification ............................................................................ 17 9.12 Tx Power Setting ............................................................................................................. 18 9.13 RSSI Signal Strength Output ........................................................................................
HM-BT4502 V1.0 1 Product Overview HM-BT4502 is a wireless data pass-through module based on CMT4502 Bluetooth Low Energy 5.0 chip. By connecting with MCU, it can quickly realize the connection and data communication between the module and Bluetooth devices such as smartphones and tablets. MCU takes up less resource and development is simple. 2 Module Features Easy to use without any experience in Bluetooth stack application.
HM-BT4502 V1.0 modify serial port baud rate, modify module name. All the above parameters are saved after power-down; Serial port package length can be any length within 240 bytes (including 240 bytes) (automatic distribution of large packages); Support mobile device APP to modify module name, serial baud rate, product identification code, and customize advertisement content and advertisement period. These settings can be saved after power-down.
HM-BT4502 V1.0 3 Electrical Characteristics Working voltage: 1.8V-3.
HM-BT4502 V1.0 can write to the module through APP, and the written data will be sent to the user's MCU through the module's external interface. When the module external interface receives the data package from the external MCU, it will automatically forward it to the connected mobile device. Users need to design the main MCU code and the smart mobile device APP. 5 Application Schematic Figure 1. Application Schematic of the Pass-through Module 7/ 43 www.hoperf.
HM-BT4502 V1.0 6 Module Pins 6.1 Module Pins Distribution Fig. 2. Module Pins Distribution Diagram (Top View) Fig. 3. Module Pins Distribution Diagram (Bottom View) 8/ 43 www.hoperf.
HM-BT4502 V1.0 6.2 Module Pins Definition Pin No Pin Name Type Description 1 INT DO Interrupt Request 2 GND DG Digital Ground 3 GND DG Digital Ground 4 GND DG Digital Ground 5 PDN DI Power Down Control, 6 WAKEUP DI Wakeup Pin 7 VDD 8 UART_RXD DI UART RXD 9 UART_TXD DO UART TXD 10 GND DG Digital Ground AP,DP Power Supply; 1.8V~3.6V Table 1. Module Pin Definition 9/ 43 www.hoperf.
HM-BT4502 V1.0 7 Module Size Fig4. Module Size Diagram 8 Serial Port Pass-through Protocol Description The module connects with the user MCU through the serial port, and establishes the bidirectional communication between the user MCU and the mobile device. Users can set the serial baud rate and BLE connection interval again by using the specified AT instruction through the serial port (See the chapter of Serial AT Instructions for details). The Module will have different 10/ 43 www.hoperf.
HM-BT4502 V1.0 data throughput capabilities according to different serial baud rates, BLE connection interval and different sending packages interval. The default serial port baud rate is 115200 bps. In the level enable mode, the following is a detailed description of the pass-through protocol for this configuration. The module can send up to 240bytes of packages at one time from the serial port. The module will subcontract or send the complete data package according to Bluetooth protocol.
HM-BT4502 V1.0 set the INT high. 4. When the external MCU sends the data to the module through the serial port, it needs to pull the WAKEUP pin from the high level to the low level to generate a falling edge to wake up the module (because it takes 1ms to wake up the module to be ready, so the minimum delay between the falling edge of WAKEUP pin and the serial port data reception is 1ms).
HM-BT4502 V1.0 package interval greater than 20ms. 9 Serial Port AT Instructions The string beginning with "TTM" is parsed and executed as an AT instruction and returned the execution result "TTM: OK\r\n\0" or "TTM: ERP\r\n\0", etc. The serial data package that does not start with "TTM" will be considered as the pass-through data. 9.
HM-BT4502 V1.0 Note: This connection interval is not saved when power fails, and the change instructions valid only after the connection is successful. 9.2 Get the Module Name Input the following string "TTM: NAM-?" to the serial port RX. It will receive the "TTM: NAM-xxxxxxxxxxxx\r\n\0" from TX. The "xxxxxxxxxxxx "following the string is the Bluetooth module name. 9.
HM-BT4502 V1.0 9.5 Set the Baud Rate Input the string "TTM: BPS-X" to the serial port RX to set the baud rate, among them, X= "9600", "19200", "38400", "57600", "115200" (the above data format is ASCII code). For example, "TTM: BPS-115200" indicates that the baud rate is115200 bps. After executing this instruction, the following confirmation string "TTM: BPS SET AFTER 2S..." will be received from the serial port TX.
HM-BT4502 V1.0 9.7 Set the Module MAC Address Input the string "TTM: MAC-xxxxxxxxxxxx" to the serial port RX. If the instruction format is correct, the "TTM: OK\r\n\0" will be received from TX. If the format is incorrect, the "TTM: ERP\r\n\0" will be received. This setting can be saved on power failure. When the module restarts, it will run according to the new MAC address. 9.8 Module Reset Input the string "TTM: RST-SYSTEMRESET" to the serial port RX: It will force the module to soft reset once. 9.
HM-BT4502 V1.0 9.10 Add the Custom Advertisement Content Input the following strings to the serial port RX to customize the advertisement content. "TTM: ADD-" + Data Among them, Data is the added advertisement content, the length is 0 < L ≤16, the format is ASCII code. For example, input the "TTM: ADD - Advertisement" to the serial port RX. The confirmation string "TTM: OK\r\n\0" will be received from TX. If the instruction format is incorrect, the "TTM: ERP\r\n\0" will be received.
HM-BT4502 V1.0 RX ("RS" corresponds to hexadecimal 0x5253).If the instruction format is correct, the confirmation string "TTM: OK\r\n\0"will be received from TX. If the format is incorrect, the "TTM: ERP\r\n\0" will be received. Note: This ID code will be saved on power failure. It can be used to filter the device or determine whether it is a specific product in the advertisement. 9.12 Tx Power Setting Input the following string to the serial port RX. Set the corresponding Tx power. The unit is dBm.
HM-BT4502 V1.0 If the setting is successful, the confirmation string "TTM: OK\r\n\0" will be received from TX. If the instruction format is incorrect, the "TTM: ERP\r\n\0" will be received. If RSSI output function is turned on, RSSI signal strength string "TTM: RSI-xx\r\n\0"is output every one second. For example, RSSI is - 63dBm.The output string is "TTM: RSI-63\r\n\0" Note: This parameter is not saved on power failure, and RSSI output is automatically closed after disconnection. 9.
HM-BT4502 V1.0 Note: This parameter is not saved on power failure, and RTC needs to be set again when the module is powered on again. 9.15 Data Delay Setting Input the string "TTM: CDL-Xms" to the serial port RX and set the delay between the INT setting and the TX output. The unit is ms. Among them, X= "0", "2", "5", "10", "15", "20", "25". If the instruction is correct, the confirmation string "TTM: OK\r\n\0" will be received from TX. If the instruction format is incorrect, the "TTM: ERP\r\n\0" will be r
HM-BT4502 V1.0 "TTM: ERP\r\n\0" through the serial port. 9.17 AT Instruction List Power AT Instruction down Parameter Description Possible Response Meaning Format save X="20","30","50","100", TTM:CIT-Xms(valid "200","300","400","500", TTM:TIMEOUT\r\n\0 Setting is timeout "1000","1500","2000". Set TTM:OK\r\n\0 Setting is OK. the corresponding BLE TTM:ERP\r\n\0 Setting is Error. only after No successful connection) connection interval in ms.
HM-BT4502 V1.0 "38400","57600","115200". AFTER 2S ...\r\n\0 OK, the new Set the corresponding baud TTM:ERP\r\n\0 baud rate will be rate. used after two seconds. Setting is Error. TTM:MAC-xxxxxxxx xxxx, Return the MAC TTM: MAC-? - Get the MAC address. "xxxxxxxxxxxx" is address. the module MAC address. TTM:MAC-X X is a 12-bit MAC character, TTM:OK\r\n\0 Setting is OK. such as 123456789ABC. TTM:ERP\r\n\0 Setting is Error.
HM-BT4502 V1.0 TTM:PID-+ Data length L<= 16. content. Data is a custom product Set the custom identification code with the TTM:OK\r\n\0 product data length L = 2, the default TTM:ERP\r\n\0 identification Yes is 0000. code. X="+10",“6”,"0","-6","-20". TTM:TPL-(X) No TTM:OK\r\n\0 Set the Tx TTM:ERP\r\n\0 power. TTM:OK\r\n\0 Get the RSSI TTM:ERP\r\n\0 data periodically. TTM:OK\r\n\0 Close the RSSI TTM:ERP\r\n\0 function. Set the corresponding Tx power in dBm.
HM-BT4502 V1.0 and second. Set the TTM: BST-X X is the percentage of the TTM:OK\r\n\0 percentage of the battery level. TTM:ERP\r\n\0 remaining No capacity The minimum X="0","2","5","10","15", delay is not less "20","25". Set the delay TTM:CDL-Xms Yes TTM:OK\r\n\0 than X, and the TTM:ERP\r\n\0 actual delay is between the INT setting and the TX output. The unit is X+Yms, ms. 500us
HM-BT4502 V1.0 { 0x00, 0x00, custom device type coding. The default is00 00, which can be set by AT instruction; 0x00,0x00,0x00,0x00,undefined; 0x00,percentage of module power supply, 2.0V = 0%; 0x00,0x00,undefined; } Custom advertisement data: If the advertisement content is customized using AT instructions, the maximum length is 16 bytes (blue part).The GAP_ADTYPE_MANUFACTURER_SPECIFIC domain contains the following contents in the advertisement.
HM-BT4502 V1.0 consumption caused by too long advertisement, the custom advertisement is also possible to set any value of 1 byte. 9.19 System Reset and Recovery There are three ways to reset the module. The third way can restore the system parameters. 1. Use the AT instruction to reset the module (see the Chapter of Serial AT Instructions for details); 2. Use APP to remote reset the module through the service channel interface.
HM-BT4502 V1.0 d) Advertisement Period, It is restored to 2 (200ms). e) Connection Interval, it is restored to30ms. f) Product Identification Code, it is restored to0x00, 0x00. g) Tx Power, it is restored to 0dBm. h) Custom Advertisement Length, it is restored to 0. i) Custom Advertisement Data, it is restored to all 0. Use the default advertisement data instead of custom advertisement data. j) Enable Mode, it is restored to 0, the default is the level enable mode.
HM-BT4502 V1.0 EN switch of FFE4 channel is turned on, a notification will be generated in the channel after the legitimate data sent by the main CPU to the module RX through the serial port. APP can process and used it directly in the callback function. Details see the chapter of Serial Pass-through Protocol Description (Bridging Mode). 10.2 Anti-hijacking Key【Service UUID:0xFFC0】 The module supports anti-hijacking encryption.
HM-BT4502 V1.0 result of the APP operation, including correct password, wrong password, successful password modification, and cancellation of password use. Eigenvalue Executable Bytes UUID Default Remark Operation Submit password “123456123456”(ASCII) the current 123456, the new password and old password must be consistent FFC1 write (handle: (saved Update the old password on 123456 12 to the new “123456888888”(ASCII) 0x0045) power failure) password 888888.
HM-BT4502 V1.0 Update the password 2(PWD_UPDATED_EVENT) successfully. 3(PWD_CANCEL_EVENT) Cancel the password Table 4. Key Data Service Note: 1. The password structure is 12 bytes ASCII code, the red part is the current password, and the black part is the new password. 2. The current password is "000000" by default before it is updated by APP. 3. By opening the notification EN of channel FFC2, a notification of the execution result of the password operation will be generated in this channel. 4.
HM-BT4502 V1.0 (PWD_ UPDATED_EVENT)” in the FFC2 channel to indicate that the password has been successfully updated. 7. When APP submits the password "888888000000" and the new password is updated to all 0, it means that the password is cancelled. APP will get the “notify: 3 (PWD_ CANCEL_EVENT)” in the FFC2 channel. 10.
HM-BT4502 V1.0 6:400ms 7:500ms 8:1000ms 9:2000ms Set the Serial Port Baud Rate: 0:4800 bps 1:9600 bps FF93 (handle: Read/write Yes 1 5 2:19200 bps 0x0068) 3:38400 bps 4:57600 bps 5:115200 bps Remote Reset and Recovery Control Channel: Remote Reset Control: Write 0x55 to reset the module. FF94 (handle: Remote Light Recovery Control: write - 1 0x006B) None Write 0x35 to restore the module lightly (only restore the user data) and reset.
HM-BT4502 V1.0 deeply (let all parameters of module return to factory settings) and reset. Set the advertisement period: 0:200 ms 1:500 ms 2:1000 ms FF95 (handle: Read/write Yes 1 0 0x006E) 3:1500 ms 4:2000 ms 5:2500 ms 6:3000 ms 7:4000 ms 8:5000 ms FF96 (handle: Set the product identification Read/write Yes 2 0x0000 0x0071) code. Set the Tx power: 0:+4 dBm FF97 (handle: Read/write No 1 1 1:0 dBm 0x0074) 2:-6 dBm 3:-23 dBm 33/ 43 www.hoperf.
HM-BT4502 V1.0 Default Set the custom advertisement advertisement FF98 (handle: content Read/write Yes (see the data: 16 0x0077) chapter Advertisement of Data The custom advertisement data length is 0 < n <= 16 Setting) FF99 (handle: write - 1 None Reserve - 1 None Reserve 0x007A) FF9A (handle: Read/write 0x007D) Table 5.
HM-BT4502 V1.0 FF92 is the module connection interval setting channel Users can set the connection interval between the mobile device and module by writing operation in the channel. In this way, users can flexibly control the device power consumption and data throughput. In order to improve the connection speed, the connection interval parameters are not saved, and the default is always 30ms after power-on.
HM-BT4502 V1.0 setting is 0 (200ms). FF96 is the module product identification code setting channel Users can set the module identification code by reading and writing operation in the channel. APP can filter or connect the specified product through this ID code. This parameter is saved on power failure. The default factory setting is 0x0000. FF97 is the module Tx power setting channel Users can set the Tx power of the module by writing operation in the channel.
HM-BT4502 V1.0 10.4 OTA 【 Service Service UUID: 0x5833ff01-9b8b-5191-6142-22a 4536ef123】 Executable Eigenvalue UUID Bytes Default Remark Write 20 NULL Firmware Notify 20 NULL Response Operation 0x5833ff02-9b8b-5191-6142-22a 4536ef123 0x5833ff03-9b8b-5191-6142-22a 4536ef123 Table 6. OTA Service 10.
HM-BT4502 V1.0 Module Information Read Channel Description: 2A23 is the module information read channel. Users can get the module ID by reading operation in the channel. The format is xxxxxx0000xxxxxxx. “xx” is the physical MAC address of the module chip, six bytes, low bytes in front. 2A26 is the module software version number reading channel. Users can get the module software version by reading operation in the channel. The format is Vx.xx. “x.xx” is the firmware version number. 38/ 43 www.
HM-BT4502 V1.0 Additional Information RF Specification: Function Operation Frequency BLE 2402MHz–2480MHz Max RF Output Power: 7.16dBm Limit 10dBm. DECLARATION OF CONFORMITY Hereby, Shenzhen HOPE Microelectronics Co., Ltd. declares that this Bluetooth Low Energy (BLE) 5.0 Data Pass-through Module product is in compliance with the essential requirements and other relevant provisions of Directive 2014/53/EU. A copy of the Declaration of Conformity can be found at Website: www.hoperf.
HM-BT4502 V1.0 INTEGRATION INSTRUCTIONS FCC rules The HM-BT4502is a Bluetooth Low Energy (BLE) 5.0 Data Pass-through Module with frequency hopping using an LoRa modulation. It operates on the 2402MHz-2480MHz band and, therefore, is within U.S. FCC part 15.247 standard. Modular installation instruction The Bluetooth Low Energy (BLE) 5.0 Data Pass-through Module Integrates high-speed GPIO and peripheral interface. Please pay attention to the installation direction (pin direction).
HM-BT4502 V1.0 FCC WARNING This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. Any changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment.
HM-BT4502 V1.0 L’émetteur/récepteur exempt de licence contenu dans le présent appareil est conforme aux CNR d’Innovation, Sciences et Développement économique Canada applicables aux appareils radio exempts de licence. L’exploitation est autorisée aux deux conditions suivantes : 1)L’appareil ne doit pas produire de brouillage; 2) 2)L’appareil doit accepter tout brouillage radioélectrique subi, même si le brouillage e susceptible d’en compromettre le fonctionnement. HOPE MICROELECTRONICS CO., LTD.