通过GPRS从winCE设备向服务器发送文件

发布于 2024-08-25 17:07:59 字数 390 浏览 4 评论 0原文

我需要通过 GPRS 将文件(*.zip、*.jpg、*.xml 等)从 Windows CE 5.0 设备发送到服务器。 将文件发送到服务器有哪些选项?

我已成功使用 Hayes 兼容调制解调器

AT 命令解释器 的 AT 命令发送一些数据 AT+CGDCONT=1,"IP","AIRTELGPRS.COM" 好的 AT%ETCPIP 好的 AT%ETCPIP? %ETCPIP:1,"117.98.182.100",,"202.56.250.5","202.56.230.5"

确定 AT%OPEN="TCP","59.182.32.235",8001 连接

AT%IOMODE=1 好的 AT%IPSEND=“11” %IPSEND:1,15 好的

,但是没有发送文件的命令。

I need to send files (*.zip, *.jpg, *.xml etc) from Windows CE 5.0 device to a server via GPRS.
What are the options of sending files across to server?

I have been successful in sending some data using AT commands of Hayes compatible modem

AT-Command Interpreter ready
AT+CGDCONT=1,"IP","AIRTELGPRS.COM"
OK
AT%ETCPIP
OK
AT%ETCPIP?
%ETCPIP:1,"117.98.182.100",,"202.56.250.5","202.56.230.5"

OK
AT%OPEN="TCP","59.182.32.235",8001
CONNECT

AT%IOMODE=1
OK
AT%IPSEND="11"
%IPSEND:1,15
OK

However there is no command for sending files.

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

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

发布评论

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

评论(2

℡寂寞咖啡 2024-09-01 17:07:59

我会在服务器端使用 Web 服务,并从客户端应用程序调用 Web 服务 - 我认为您可以从任何面向 WinCE 的通用编程语言/框架执行 http 请求。

I'd use webservice on the server side and call the web service from client application - I think that you can do http requests from any common programming language/framework that targets WinCE.

寻找我们的幸福 2024-09-01 17:07:59

听起来你的地位太低了。您引用的 AT 命令是通过串行/USB 直接发送到调制解调器/模块的命令。您正在设置 APN,它看起来像是一些简单的 TCP 数据包传输。

您需要构建一个 ppp 会话(DUN - 拨号网络会话)以获得 IP 连接,该连接允许您通过常见的互联网协议(如 HTTP/FTP 等)发送文件。

通常,一旦您在第一个 cid 中设置了 APN,您可以通过“AT*99***1#”拨打它。这将使调制解调器成为 PPP 端点。请记住,这可能因调制解调器而异。

It sounds like you are way to low in the stack. The AT commands you quoted are commands sent directly to the modem/module via serial/usb. You're setting up the APN and it looks like some simple TCP packet transmission.

You need to build a ppp session (DUN - dial-up networking session) to get the IP connectivity that will allow you to send files via common internet protocols like HTTP/FTP etc.

Typically once you've setup the APN in the first cid of the context you dial it via 'AT*99***1#'. This will enable the modem as a PPP endpoint. Keep in mind this can vary between modems.

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