The article guides users implement the applicaion control device via Bluetooth using the OpenCPU solution on the M66 module, which is demoed on a GSM-EVB-KIT board featuring Quectel's M66-TE-A board.
1. Introduction of GSM-EVB-KIT
GSM-EVB-KIT is a board format developed by Quectel for the purpose of helping users test and evaluate the functionality of the GSM module, therebyaccelerating the development and application development of the user. Board GSM-EVB-KIT supports all GSM module firm Quectel as: M10/ M12/ M72/ M75/ M95/ M66,...
For more information as well as user manual for GSM-EVB-KIT board user refer to the document: Quectel_GSM_EVB_User_Guide_V3.3.pdf at:
2. Introduction to M66-TE-A
The M66 is an extremely compact GSM/GPRS module from Quectel that supports GSM, GPRS, SMS, protocols such as TCP, FTP, HTTP, HTTPS, ...
A prominent feature of the M66 module is the Open CPU . With this feature, users can load the controller into the microcontroller chip inside the M66 module to execute the application without the need for an additional external microcontroller, saving space when designing and spending. Production fee of the product.
Here are the memory resources that the M66 supports so that the user can use the Open CPU feature :
Besides, the M66 also features Bluetooth 3.0 wireless technology that operates in the 2.4 GHz band of IEEE802.15, transmits data at high speeds (up to 3 Mbps), supports SPP and OPP improves connectivity, communication capabilities in user applications, and enhances product usability while still ensuring high cost competitiveness.
3. The application control device via Bluetooth
To implement the application we perform the following steps:
Step 1: prepare
• Hardware: + GSM-EVB-KIT board.
+ M66-TE-A board.
+ The phone has a Bluetooth terminal software installed.
• Software: + GCC Compiler (Sorcery CodeBench Lite for ARM EABI).
+ IDE: Eclipse (optional).
+ Qflash .
Step 2: Install the software
The user installs the following software packages:
Install GCC Compiler , on the user's guide to the documentation reference:
Tutorial on IDE: Eclipse (optional) User Reference Document:
Guidance on installing and using Qflash users reference software :
All software packages, documentation and reference materials for the MCP OpenCPU solution are available for download at:
About the Bluetooth terminal software can be downloaded to the phone through google play app on the phone.
Step 3: Connect the hardware
We use the single Led to simulate the regulator, the connection diagram between the M66 Module and the devices as shown below:
Connect the corresponding device control pins on the GSM-EVB-KIT board.
Switch the POWER switch on the GSM-EVB-KIT board to the ON position for power
Step 4: Load the application code for Module M66
Users can download the source code in Module M66 .
The program downloaded after the download to the computer should be recompiled with the Eclipse software .
We proceed to extract the Demo_Bluetooth_M66_OpenCPU.rar file into the working directory of the Eclipse software under the following path: D:\OpenCPU\eclipse_workspace
Then open Eclipse software and proceed to Import program file follow these steps: Go to File -> Import
Then click on " Select root directory " and then click Browse to the directory Demo_Bluetooth_M66_OpenCPU extracted
Select Finish to finish the import process.
Next step we proceed to recompile the program. First, we reset the Eclipse compilation operation to the following : Go to Project -> Build Configurations -> Set active -> Release .
Compile the program: Go to Project -> Build Project
Next we make "Make Target Build" to update the .bin file . Project -> Make Target -> Build
Click on GenBinHeader -> select Build
Connect the MAIN UART on the EVB-KIT board to the PC via the USB to UART cable and then open the Qflash software. Next , the user selects the COM port that is connected to the MAIN UART on the EVB- KIT and Baudrate for the code load (Baudrate as suggested by the manufacturer is 460800).
Next we proceed to download the program file: choose Load FW Files -> give the path to the program .cfg file, located in the folder Release :
D: \ OpenCPU \ eclipse_workspace \ Demo_M66_OpenCPU \ Release
Select Open to execute, then in Module Type user select M66 . Next, press Start on the Qflash software and at the same time switch the D/L switch on the EVB-KIT GSM board to the ON position (the switch from OFF to ON of the D/L switch should not be longer than 30 seconds from the start. On Qflash software ) to start loading the program for Module M66 .
The process of loading the program into module M66 .
Finish the process, load the program successfully.
After loading the program, proceed to reboot the system, switch the D/L switch on the EVB-KIT GSM board to the OFF position , switch the POWER switch on the board to the OFF position and return to the ON position . Push the PWRKEY button on the board to activate the M66 Module boot process .
The next step is to open the Bluetooth terminal software on your phone and connect to the M66 Module .
After the Bluetooth Terminal software successfully connected to the M66, the user sent key words to the device driver. Key word includes the following cases: