需要 AT-Command 从 sd 卡复制文件

发布于 2024-10-07 16:50:11 字数 145 浏览 0 评论 0原文

我有 USB 调制解调器,可以使用 AT-Command 与其进行通信。 我可以使用它发送和接收短信。 我们知道我们可以将 SD 卡插入 USB 调制解调器并将其用作存储设备 但我花了好几天的时间寻找如何使用 AT-Command 处理 SD 卡上的文件? 请帮忙。提前致谢

i have usb-modem that i can comunicate with it using AT-Command.
i can send and recive sms using it.
we know that we can insert an SD-Card into the usb-modem and use it as a storage device
but i been stuck for days searching how i can work on files on sd card using AT-Command??
please help. thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时光与爱终年不遇 2024-10-14 16:50:11

我不认为你能做到这一点。 AT 命令集仅用于执行“phonestuff”。打电话、发短信(这本身就是一种扩展)等等。

USB 调制解调器具有内置存储的通常原因是您可以将驱动程序存储在那里。这将使您可以在任何计算机上使用调制解调器,而无需连接到互联网来获取驱动程序。

I don't think you can do this. The AT command-set is only for doing "phonestuff". Calling, texting (which in itself is an extension), and such.

The usual reason for usb-modems to have built-in storage is so you can store the drivers there. This would let you use the modem on any computer without needing to connect to the internet to get the drivers.

最单纯的乌龟 2024-10-14 16:50:11

您确定调制解调器不会像其他 USB 设备(例如相机、电话等)那样将卡暴露为驱动器吗?我看不到使用 ATxx 命令检索文件的方法。

编辑,我做了一些挖掘,发现了这个:

https://wiki.archlinux.org/ index.php/Huawei_E1550_3G_modem#AT_commands

我想知道以下任何内容是否可以为您指明正确的方向:

AT^U2DIAG=0 - the device is only Modem
AT^U2DIAG=1 - device is in modem mode + CD ROM
AT^U2DIAG=255 - the device in modem mode + CD ROM + Card Reader
AT^U2DIAG=256 - the device in modem mode + Card Reader
AT+CPIN=<PIN-CODE> - enter PIN-code
AT+CUSD=1,<PDU-encoded-USSD-code>,15 - USSD request, result can be found (probably) in /dev/ttyUSB2.

所以看来您可以使用 AT^U2DIAG 将设备置于读卡器模式=256。我很想知道,当您执行此操作时,您的驱动器是否会被映射。在您执行此操作后,我真的找不到任何东西可以从中获取文件。

Are you sure the modem doesn't expose the card as a drive as other USB devices do (e.g cameras, phones, etceteras)? I can't see a way of retrieving files off it using ATxx commands.

Edit, I did a little digging and found this:

https://wiki.archlinux.org/index.php/Huawei_E1550_3G_modem#AT_commands

And I am wondering if any of the following can point you in the right direction:

AT^U2DIAG=0 - the device is only Modem
AT^U2DIAG=1 - device is in modem mode + CD ROM
AT^U2DIAG=255 - the device in modem mode + CD ROM + Card Reader
AT^U2DIAG=256 - the device in modem mode + Card Reader
AT+CPIN=<PIN-CODE> - enter PIN-code
AT+CUSD=1,<PDU-encoded-USSD-code>,15 - USSD request, result can be found (probably) in /dev/ttyUSB2.

So it would appear you can put the device in a card-reader mode using AT^U2DIAG=256. I'd be interested to see if, when you execute this, whether your drive will then be mapped. I can't really find anything to get files off it after you do this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文