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  http://www.quectel.com/UploadImage/Downlad/Quectel_GSM_EVB_User_Guide_V3.3. .pdf

      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.

        For ease of user study of M66 module features , Quectel has provided M66-TE-A full support for the M66 module .

    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 .

                                                         + Bluetooth terminal .

           Step 2: Install the software

               The user installs the following software packages:

                      Install GCC Compiler , on the user's guide to the documentation reference:

                                    Quectel_OpenCPU_GCC_Installation_Guide_V1.1.pdf

                      Tutorial on IDE: Eclipse (optional) User Reference Document:

                                   OpenCPU_GCC_Eclipse_User_Guide_V1 0_Preliminary.pdf

                      Guidance on installing and using Qflash users reference software :

                                   Quectel_QFlash_OpenCPU_User_Guide_V1.0.pdf

               All software packages, documentation and reference materials for the MCP OpenCPU solution are available for download at:

                      Http://www.quectel.com/qdownload/M66_OpenCPU_SDK.html

               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.

 

         Connect GSM-EVB-KIT for M66-TE-A . Proceed for power supply board for 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

  

       Users load programs into the M66 module via Qflash software .

      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 .

 

        We can monitor and monitor the operation of the M66 Module through the terminal software ( connect the PC to the EVB-KIT GSM board via DEBUG UART, Baudrate: 115200).

      The user opens Bluetooth on the phone and proceeds to pair with the M66 module , when pairing, the M66 Module will automatically send a pin to the phone to request pairing confirmation.

         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:

  • On 1
  • On 2
  • On 3
  • On 4
  • On all
  • Off 1
  • Off 2
  • Off 3
  • Off 4
  • Off all
 
     4. Video demo