Logo de Cellular At Modem Integration

Cellular At Modem Integration

Comunidade
easyzoom
cellular-at-modem-integration

Use when integrating or debugging cellular AT modems (Quectel, SIMCom, u-blox) over UART for CREG/CEREG registration, CGDCONT APN/PDP, TCP/UDP sockets, or URC parsing

Visão geral

Publicado poreasyzoom
Repositórioaix-skills
Nome da habilidadecellular-at-modem-integration
Estrelas
39
Forks
5
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por easyzoom no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Cellular At Modem Integration no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/easyzoom/aix-skills/tree/main/skills/cellular-at-modem-integration
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/easyzoom/aix-skills.git /tmp/aix-skills
mkdir -p .claude/skills
cp -r /tmp/aix-skills/skills/cellular-at-modem-integration .claude/skills/cellular-at-modem-integration
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Cellular At Modem Integration em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Cellular At Modem Integration automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Cellular At Modem Integration não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Cellular AT Modem Integration

Overview

Use this skill to drive a 2G/4G/NB-IoT/LTE-M cellular modem from an MCU over UART with the AT command set. The hard parts are parsing unsolicited result codes (URCs) that interleave with command responses on one serial line, choosing the right registration command per radio access technology, using the correct socket command set for the specific module family, and getting PWRKEY boot timing right before any AT works.

When To Use

Use this skill when:

  • The user integrates Quectel (EC25, BG96, BC66), SIMCom (SIM7600, SIM800C, A7670), or u-blox (SARA-R4, SARA-R5) over UART.
  • The issue involves registration (AT+CPIN?, AT+CSQ, AT+CREG?, AT+CGREG?, AT+CEREG?), APN/PDP (AT+CGDCONT, AT+CGATT, AT+CGACT), or sockets (AT+QIOPEN, AT+QISEND, AT+CIPSTART/AT+CIPOPEN, AT+USOCO).
  • URCs such as RING, +CMTI, or +QIURC corrupt command parsing, or power saving (AT+CPSMS, AT+CEDRXS) breaks reachability.

Do not use this skill when the UART link itself is unproven; confirm the modem echoes AT with OK at the configured baud first.

First Questions

Ask for:

  • Exact module and firmware revision (ATI, AT+CGMR), and radio technology: 2G, LTE Cat-1, Cat-4, Cat-M1, or NB-IoT.
  • UART wiring: baud, flow control (RTS/CTS), and whether PWRKEY/reset lines are MCU-controlled.
  • SIM type and the operator APN (some IoT SIMs need username/password or a specific <PDP_type>).
  • Transport goal: raw TCP/UDP, or bridging to MQTT/TLS on top of the socket AT layer.
  • Current failing command and its literal response or error code.

Integration Checklist

  1. Bring up the modem. Assert PWRKEY for the module's specified pulse width, wait for boot (often signalled by an RDY URC), then confirm AT returns OK and disable echo with ATE0.

  2. Unlock and check signal. AT+CPIN? must return +CPIN: READY; AT+CSQ RSSI must be non-99 (0-31 valid). Set AT+CFUN=1 if radio is off.

  3. Confirm registration on the right command. Use AT+CREG? for 2G/CS registration, AT+CGREG? for GPRS/PS, and AT+CEREG? for LTE/Cat-M1/NB-IoT (EPS). <stat> must be 1 (home) or 5 (roaming).

  4. Define and activate the PDP context. AT+CGDCONT=1,"IP","<apn>", then AT+CGATT=1 to attach and AT+CGACT=1,1 to activate. Verify an assigned IP with AT+CGPADDR.

  5. Open the socket with the correct vendor stack for the module family.

    • Quectel (EC25/BG96/BC66): AT+QIOPEN, then AT+QISEND/AT+QIRD/AT+QICLOSE.
    • SIMCom 2G (SIM800-class): AT+CIPSTART, then AT+CIPSEND (write payload after >, terminate with Ctrl+Z 0x1A).
    • SIMCom LTE (SIM7600/A76XX-class): AT+NETOPEN first, then AT+CIPOPEN to open a socket and AT+CIPSEND to send (AT+CIPSEND=<link>,<len> takes an explicit length; no Ctrl+Z when a length is given). Read buffered data with AT+CIPRXGET; close with AT+CIPCLOSE/AT+NETCLOSE.
    • u-blox (SARA): AT+USOCR to create, AT+USOCO to connect, AT+USOWR to write, AT+USORD to read, AT+USOCL to close.
  6. Build a URC-aware parser. Run a line-based state machine that classifies each line as echo, intermediate (>), final (OK/ERROR/+CME ERROR), or URC (RING, +CMTI:, +QIURC:), and route URCs to callbacks instead of the command waiter.

Common Failures

  • Sending AT before boot completes; commands are dropped until the RDY URC or a fixed power-on delay elapses.
  • Checking AT+CREG? on an LTE-only module that only registers via +CEREG, so registration looks stuck at 0,2.
  • Registration fails from wrong APN, disabled radio (AT+CFUN=0), locked SIM, or poor signal (+CSQ: 99,99).
  • Using the wrong socket stack: sending AT+CIPSTART to a SIM7600/A76XX module (which needs AT+NETOPEN+AT+CIPOPEN), or forgetting AT+NETOPEN before AT+CIPOPEN.
  • Fixed read timeout truncates variable-length responses like AT+QIRD or a slow AT+COPS=? scan.
  • URC (e.g. +QIURC: "recv") arrives mid-response and the parser mistakes it for the command reply, causing a parse race.
  • AT+CIPSEND on a SIM800-class module sent without the Ctrl+Z terminator, so the modem waits forever at the > prompt.
  • After AT+CPSMS/AT+CEDRXS the module sleeps and drops the socket; sending during PSM fails until wake and re-attach.

Verification

Before claiming the link works:

  • State the module, technology, APN, and which registration command applies.
  • Confirm +CPIN: READY, a valid +CSQ, and <stat>=1 or 5 on the correct CxREG.
  • Confirm AT+CGPADDR shows an IP before opening any socket.
  • Send a round-trip TCP payload and confirm the receive path for the module family (+QIURC: "recv"/AT+QIRD, or +CIPRXGET, or +USORD).
  • Prove the URC parser handles an unsolicited RING/+CMTI arriving during a command without desync.
  • If PSM/eDRX is enabled, confirm wake, re-registration, and data resume.

Example

User:

text
BG96 用 AT+CEREG? 一直返回 0,2,连不上网,该怎么查?

Agent:

  1. Confirms boot done, ATE0 set, then checks AT+CPIN? = READY and AT+CSQ is not 99.
  2. Verifies AT+CFUN=1 and the APN via AT+CGDCONT?; fixes APN if wrong for the IoT SIM.
  3. Waits for +CEREG: 0,1/0,5, then runs AT+CGACT=1,1 and AT+CGPADDR before opening a socket with AT+QIOPEN.

Perguntas frequentes

O que a habilidade de IA Cellular At Modem Integration faz?

Use when integrating or debugging cellular AT modems (Quectel, SIMCom, u-blox) over UART for CREG/CEREG registration, CGDCONT APN/PDP, TCP/UDP sockets, or URC parsing

Por que usar Cellular At Modem Integration no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Cellular At Modem Integration é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Cellular At Modem Integration no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/easyzoom/aix-skills/tree/main/skills/cellular-at-modem-integration. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Cellular At Modem Integration?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Cellular At Modem Integration?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Cellular At Modem Integration com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Cellular At Modem Integration é gratuita?

Sim. A habilidade é publicada no GitHub por easyzoom sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇