Skip to content

ML307A-DSLN 在等待网络注册期间串口无响应,无法通过 AT 命令进行调试 #57

Closed

Description

@CatzTimes

描述一下这个bug / Describe the bug

在使用 ML307A-DSLN 模块时,模块上电后进入“等待网络注册...”状态,此时串口完全无响应,无法输入任何 AT 命令(例如 AT+CFUN=0 停止射频或 AT+CSQ 查询信号)。这使得在遇到网络注册失败时无法进行任何调试或干预。

复现步骤 / To Reproduce

  1. 将 SIM 卡插入模块。
  2. 给模块上电(EN 引脚拉高)。
  3. 观察日志,模块正常启动并输出“配置已加载”、“模组AT响应正常”等信息。
  4. 随后模块开始循环打印“等待网络注册...”。
  5. 在此过程中,尝试通过串口工具发送任意 AT 命令(如 AT)。
  6. 模块无任何响应,命令输入后无回显,也无法中断当前状态。

预期的行为 / Expected behavior

在“等待网络注册”期间,模块应当保持对串口 AT 命令的响应能力,以便开发者能够查询状态(AT+CREG?)、关闭射频(AT+CFUN=0)或切换工作模式,从而进行调试或跳过注册过程。

截图 / Screenshots

No response

日志 / Logs

[03-14 23:43:16:594]配置已加载
[03-14 23:43:16:594]模组AT响应正常
[03-14 23:43:16:594]CNMI参数设置完成
[03-14 23:43:16:594]PDU模式设置完成
[03-14 23:43:16:594]等待网络注册...
[03-14 23:43:17:080]等待网络注册...
[03-14 23:43:17:637]等待网络注册...
[03-14 23:43:18:184]等待网络注册...
[03-14 23:43:18:747]等待网络注册...
[03-14 23:43:19:293]等待网络注册...
[03-14 23:43:19:850]等待网络注册...
[03-14 23:43:20:410]等待网络注册...
[03-14 23:43:20:958]等待网络注册...
[03-14 23:43:21:512]等待网络注册...
[03-14 23:43:22:069]等待网络注册...
[03-14 23:43:22:626]等待网络注册...

验证

  • 检查该问题是否已被提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
  • 我已经提供了完整的日志 / I have provided complete logs.

Activity

  1. chenxuuu commented on Mar 15, 2026

    @chenxuuu
    Owner
  2. CatzTimes commented on Mar 15, 2026

    @CatzTimes
    Author

    这是想改at固件的代码???
    …

    ---原始邮件---
    发件人: @.>
    发送时间: 2026年3月15日(周日) 凌晨1:24
    收件人: @.
    >;
    抄送: @.***>;
    主题: [chenxuuu/sms_forwarding] ML307A-DSLN 在等待网络注册期间串口无响应,无法通过 AT 命令进行调试 (Issue #57)

    CatzTimes created an issue (chenxuuu/sms_forwarding#57)

    描述一下这个bug / Describe the bug

    在使用 ML307A-DSLN 模块时,模块上电后进入“等待网络注册...”状态,此时串口完全无响应,无法输入任何 AT 命令(例如 AT+CFUN=0 停止射频或 AT+CSQ 查询信号)。这使得在遇到网络注册失败时无法进行任何调试或干预。

    复现步骤 / To Reproduce

    将 SIM 卡插入模块。

    给模块上电(EN 引脚拉高)。

    观察日志,模块正常启动并输出“配置已加载”、“模组AT响应正常”等信息。

    随后模块开始循环打印“等待网络注册...”。

    在此过程中,尝试通过串口工具发送任意 AT 命令(如 AT)。

    模块无任何响应,命令输入后无回显,也无法中断当前状态。

    预期的行为 / Expected behavior

    在“等待网络注册”期间,模块应当保持对串口 AT 命令的响应能力,以便开发者能够查询状态(AT+CREG?)、关闭射频(AT+CFUN=0)或切换工作模式,从而进行调试或跳过注册过程。

    截图 / Screenshots

    No response

    日志 / Logs
    [03-14 23:43:16:594]配置已加载 [03-14 23:43:16:594]模组AT响应正常 [03-14 23:43:16:594]CNMI参数设置完成 [03-14 23:43:16:594]PDU模式设置完成 [03-14 23:43:16:594]等待网络注册... [03-14 23:43:17:080]等待网络注册... [03-14 23:43:17:637]等待网络注册... [03-14 23:43:18:184]等待网络注册... [03-14 23:43:18:747]等待网络注册... [03-14 23:43:19:293]等待网络注册... [03-14 23:43:19:850]等待网络注册... [03-14 23:43:20:410]等待网络注册... [03-14 23:43:20:958]等待网络注册... [03-14 23:43:21:512]等待网络注册... [03-14 23:43:22:069]等待网络注册... [03-14 23:43:22:626]等待网络注册...
    验证

    检查该问题是否已被提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

    提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.

    我已经提供了完整的日志 / I have provided complete logs.

    —
    Reply to this email directly, view it on GitHub, or unsubscribe.
    You are receiving this because you are subscribed to this thread.Message ID: @.***>

    我并不是想要修改 AT 固件的代码,而是希望您能优化现有固件的行为:当模块无法注册网络(比如 SIM 卡制式不匹配)时,串口不应该被完全锁死,至少应当允许输入 AT 命令来查询状态(AT+CREG?)或关闭射频(AT+CFUN=0)。目前这种状态没办法调试啊......

  3. chenxuuu commented on Mar 15, 2026

    @chenxuuu
    Owner
  4. CatzTimes commented on Mar 15, 2026

    @CatzTimes
    Author

    主要是如果无法驻网的话,我感觉也不用尝试别的操作了吧。。
    …

    正是因为无法驻网,才需要用AT命令诊断具体原因(如信号强度、注册拒绝码、IMEI等),不然咋排查问题...
    有些接码号(就是专门接验证码的号码)可能对物联网芯片存在限制,所以想进行AT调试。

  5. chenxuuu commented on Mar 15, 2026

    @chenxuuu
    Owner
  6. CatzTimes commented on Mar 15, 2026

    @CatzTimes
    Author

    所以你是想让USB透传和网页at都独立不受阻塞运行?是这样吗
    …

    对对对
    我想的就是无论模块是否成功驻网,所有 AT 命令接口(包括串口、USB 透传、网页 AT 等)都能保持响应,以便能够通过任何可用方式发送调试指令(如 AT+CSQ、AT+CREG?)来排查网络注册失败的原因。

  7. chenxuuu commented on Mar 15, 2026

    @chenxuuu
    Owner
  8. CatzTimes commented on Mar 15, 2026

    @CatzTimes
    Author

    那明白了,有空我让ai改改(
    …

    卧槽 这项目全是纯AI吗? 那哥们你这AI用的真炉火纯青了
    我AT调试也是跟AI学的

  9. chenxuuu commented on Mar 15, 2026

    @chenxuuu
    Owner

    对的,全是AI写的,我可不会写这么简洁的网页
    我手写的网页都长这样:https://qq.papapoi.com/

  10. chenxuuu commented on Mar 16, 2026

    @chenxuuu
    Owner

    你试试看 #59 的代码好使不

  11. chenxuuu commented on Jun 14, 2026

    @chenxuuu
    Owner

    已由deepseek修好,不过修复方式是另一种
    现在网页不会再阻塞了,你可以通过网页进行串口调试

  12. added a commit that references this issue on Jun 25, 2026
    5fc69e2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions