GSM AT命令|如何上传.amr音频文件 [英] GSM AT COMMAND | How to upload .amr audio file

查看:97
本文介绍了GSM AT命令|如何上传.amr音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用以下命令列出目录. AT + FSLS = \

I can list the directory using below command. AT+FSLS=\

我找到了AT + FSCREATE ="1.amr",3命令来创建目录中的文件,但问题是如何从本地驱动器上载文件.

i found AT+FSCREATE="1.amr",3 command to crate files in directory but the problem is, how to upload the file from my local drive.

推荐答案

我没有任何支持AT+FSWRITE命令的调制解调器. 但是根据SIMCOM AT指令手册,AT+FSWRITE=命令以提示符>响应. 手册没有明确说明如何使用该命令.

I don't have any modem that supports AT+FSWRITE command. But based on SIMcom AT-command manual, AT+FSWRITE= command responds with prompt: >. Manual does not clearly tell how to use the command.

但是它的工作方式可能与AT+CMGS=命令类似:

But it might work similar way than AT+CMGS= command:

  1. 发送AT+FSWRITE=1.arm,0,512,10命令到调制解调器.
  2. 从调制解调器中等待>.
  3. 将文件内容(512字节)写入调制解调器.
  4. 将Ctrl-Z字符(十六进制0x1A)发送到调制解调器.
  5. 从调制解调器中等待OK/ERROR.
  1. Send AT+FSWRITE=1.arm,0,512,10 command to modem.
  2. Wait > from the modem.
  3. Write content of the file (512 bytes) to the modem.
  4. Send Ctrl-Z char (0x1A hex) to the modem.
  5. Wait OK/ERROR from the modem.

步骤4可能不需要,因为文件的大小在命令中.

Step 4. may not be needed, because size of the file is in the command.

这篇关于GSM AT命令|如何上传.amr音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆