Ec25 pdp & mqtt

Hello ,
I have EC25 module & have few queries.Btw i m newbie to these module , previously worked with SIMCOM module but only simple applications like sending an SMS/dial a call.

  1. I would like to know after configuring PDP context & activating it do i need to make internet connection or module does it by self.
    2)Is there any software to send AT commands, my board has USB connected to module.
  2. How to acquire/get/set client index?
    Thank you

Hi Vishnu,

Welcome to Quectel. Transitioning from SIMCOM to Quectel involves a few key differences in how the internal data stacks and network interfaces are managed.

Below are the answers to your specific queries:

  1. PDP Context Activation and Internet Connectivity
    Whether you need to make an additional “connection” after activating a PDP context depends on your application:
  • If you are using the module’s built-in protocols (such as HTTP(S), MQTT, FTP(S), or SSL), the module handles the internet connection itself once the PDP context is activated. You configure the context via

AT+QICSGP=contextID, context_type, APN , username, password, authentication, cdma_pwd
Parameters:
contextID: Integer type. Specifies the context ID, with a supported range of 1–16.
context_type: Integer type. Specifies the protocol type:
◦ 1: IPv4
◦ 2: IPv6
◦ 3: IPv4v6.
APN: String type. The Access Point Name used for the connection.
username: String type. The username for authentication (maximum length of 127 bytes).
password: String type. The password for authentication (maximum length of 127 bytes).
authentication: Integer type. Specifies the authentication method:
◦ 0: None
◦ 1: PAP
◦ 2: CHAP
◦ 3: PAP or CHAP.
cdma_pwd: Integer type. Determines whether to save the username and password over a CDMA network (0 to disable, 1 to enable)

and activate it via

AT+QIACT= contextID
Parameters:
contextID: Integer type. The ID of the context to be activated, with a supported range of 1–16

Once AT+QIACT returns OK, you can immediately use application commands like

AT+QHTTPGET

or

AT+QMTOPEN

  • If you want your host computer/MCU to have internet access through the module, you must perform a “dial-up” action.
  • This is done either by starting a PPP connection using

ATD*99#

or by configuring a USB network card mode (like RNDIS, ECM, or MBIM) using

AT+QCFG=“usbnet”

and specialized dial-up software like quectel-CM or the AT$QCRMCALL command.

  1. Software to Send AT Commands
    Since your board is connected via USB, the module will enumerate several virtual serial ports in your Operating System.

• For Windows: The standard Quectel tool is QCOM, which allows you to select the “Quectel USB AT Port” and send commands directly.

• For Linux: Minicom is the recommended tool for interacting with the module via ports

Example: /dev/ttyUSB2.

  1. How to acquire/get/set client index?
    The “client index” is a identifier used to manage multiple simultaneous network connections.
  • Acquiring/Setting for MQTT:
    You set the index yourself when opening a connection.
    For example,

AT+QMTOPEN=0,“broker.example.com”,1883

assigns the connection to index 0. The supported range for MQTT is typically 0–5.

  • Acquiring/Setting for TCP/IP Sockets:
    Similar to MQTT, you specify a (range 0–11) when opening a socket with AT+QIOPEN.

  • Getting Current Status: To acquire or see which indices are currently in use, you can use the query commands:

◦ AT+QISTATE: Returns the state of all existing TCP/UDP socket connections.
◦ AT+QMTCONN?: Returns the connection state for MQTT client indices.
◦ AT+QIACT?: Lists all currently activated PDP context indices and their assigned IP addresses.

Sorry i was stuck with testing i couldn’t reply. First i would like to thank you for detailed explanation that helped to get things working. I m able to make connection and get the mqtt working. Now i m trying to get GPS working but i don’t get any fix . I followed the example from EC25 GNSS application manual but there is no fix ever , i m not sure what is the issue. I have attached the picture of antenna that i m using.