How to program Bluetooth 4.0 module

BLE (Bluetooth Low Energy) technology is one of the most popular vocabulary recently, and BLE makes it easy for electronic devices to connect with smart devices (mobile phones). In order to further simplify the porting and use of low-power Bluetooth (BLE) application technology in various industry products, China Telecom's wireless domain strategic partner, Xinchida Technology, has launched a low-power Bluetooth module, in which the RF-BM-S01 module passes. Bluetooth Technology Alliance BQB certification. In particular, when developing peripherals for Apple smart devices, MFI authentication can be bypassed, and this feature is worthy of optimistic application prospects of such modules. For Android smart devices, as long as the underlying support BLE, you can also use the module to design your personalized peripherals. Moreover, BLE technology has advantages over WIFI, Bluetooth 2.0 and other wireless technologies, such as low energy consumption, fast connection, and longer communication distance.

The RF-BM-S01 Bluetooth module can work in both bridge (transparent) mode and direct drive mode. In bridge mode (serial port), users can establish two-way communication between their own electronic devices and smart devices (supporting Bluetooth 4.0) through the serial port. In direct-drive mode, users can directly use the module to extend the simple peripherals, and quickly design solutions and even products, and launch new peripherals with unique personalized mobile devices at the lowest cost and most efficiently. With this module, it is even possible to directly establish a more advanced communication network such as devices and servers, cloud applications, and intelligent control and management of the devices through the Internet function of the smart device.

How to program Bluetooth 4.0 module

As can be seen from the above figure, in the bridge mode (transparent mode), the module is connected to the customer's MCU through the serial port, including TX, RX, EN, BRTS, BCTS five signal lines, where EN is the total enable switch, when After raising, the module will enter a complete sleep state ("0.4uA"). When EN is set low, the module will enter the broadcast state. At this time, the APP can be opened to search and connect the module. After the connection is successful, the MCU and the mobile phone can Perform full duplex communication. The other two BRTS and BCTS are used to wake up the other party's signal line. In applications requiring low power consumption, both parties can wake up each other through these two lines and start receiving data.

In direct drive mode, the user can directly control the module through the smart device. The module provides a rich interface, including Bluetooth broadcast indication, connection indication, 6 bidirectional programmable IO, four programmable PWM, two 14bit ADC acquisition interface, users can program these resources through the channel in the service, very Convenience. Only a simple peripheral expansion circuit can be designed to form a minimum BLE control system, which directly saves the cost of the MCU.

In addition, users can even use two working modes at the same time. When the user's MCU is not powerful enough, the module's external expansion interface can make up for the shortage of the MCU and share part of the driver work.

The power of this module is not only the application of the two modes, but also provides a number of additional features, including rich AT commands, as well as custom or standard Bluetooth services, providing more reliable and advanced intelligent control for the application.

The AT commands such as the module include:

Connection interval adjustment

Module rename

Baud rate adjustment

Get physical address MAC 16

Module reset

The module's services (partially customized) include:

Bluetooth data channel [Service UUID: 0xFFE5]

Serial data channel [Service UUID: 0xFFE0]

PWM output (4 channels) [Service UUID: 0xFFB0]

ADC input (2 channels) [Service UUID: 0xFFD0]

Programmable IO (8 channels) [Service UUID: 0xFFF0]

Timed flip output (2 channels) [Service UUID: 0xFFF0]

Anti-hijacking key [Service UUID: 0xFFC0]

Battery Power Report [Service UUID: 0x180F]

RSSI report [Service UUID: 0xFFA0]

Module parameter setting [Service UUID: 0xFF90]

Device Information [Service UUID: 0x180A]

In addition, the module provides a quick test mode that allows Bluetooth and serial communication to be tested separately without a hardware connection.

Common Bluetooth 4.0 module

1. TI's cc2540/cc2640;

2, nordic Bluetooth 4.0 (BLE) chip nRF51822;

3. Huicheng's HC-05 Bluetooth to serial port module: the main chip CSR BlueCore5 MM.

Privacy Hydrogel Screen Protector

The Privacy Screen Protector can display a black screen directly in front of the screen at an angle greater than 30° to effectively block the sight of people next to it, while achieving a perfect balance between black screen privacy and daytime clarity.

The Screen Protector can protect the edges and gaps of the display so that it can extend to the entire screen surface, thereby achieving maximum coverage without any exposed space.

The Self-Healing Screen Protector can provide the best protection for your phone from drops, bumps, scratches and normal wear and tear. Using an oleophobic waterproof coating can prevent sweat and grease from remaining on your fingerprints, keeping you simple all day long.

The 0.14mm thick Ultra-Thin Protective Film has a "real touch" feel and ensures fast response performance.

If you want to know more about Privacy Screen Protector products, please click the product details to view the parameters, models, pictures, prices and other information about Privacy Screen Protector.

Whether you are a group or an individual, we will try our best to provide you with accurate and comprehensive information about the Privacy Screen Protector!

Anti-peep Screen Protector, Privacy Screen Protector, Anti-spy Screen Protector, Privacy Protective Film, Privacy Hydrogel Film,Anti-peeping Screen Protector

Shenzhen Jianjiantong Technology Co., Ltd. , https://www.tpuprotector.com

Posted on