GPRS远程打印机

发布于 2024-09-05 16:00:06 字数 139 浏览 1 评论 0原文

我们有一个采用 GPRS 模块设计的定制远程打印机。我们现在需要通过网络与设备进行通信。

我们必须从远程打印机发送消息和接收消息,我可以使用 Java 或 PHP 来完成此操作吗?

如何通过 GPRS 进行通信?套接字通信能工作吗?

We have a custom remote printer designed with GPRS module. We now need to communicate with the device over the web.

We have to send messages and receive messages from the remote printer, can i do this using Java or PHP.

How do i communicate through GPRS? Will socket communication work?

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

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

发布评论

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

评论(2

一场春暖 2024-09-12 16:00:06

gprs 就像任何网络连接、套接字或任何在互联网连接上工作的东西都可以工作。

您可以使用服务器/客户端模式或使用中间的网络服务器来进行自制的 gprs 模块和客户端之间的通信。

服务器/客户端模式将要求您使用 java 在远程打印机上创建一个服务器,该服务器将始终处于活动状态以接收来自客户端的消息。

如果你不能使用java或任何东西,你可以使用中间的网络服务器,打印机会为他检查消息。并发出或应答消息

正确的连接模式实际上取决于:

1) grps 是否可以始终处于活动状态

2) 远程打印机执行的能力(java、php 等)

3) 能力或客户端应如何交互(直接、间接、使用网站等..)

gprs is like any network connection, sockets or anything that works on a internet connection will work.

you can make the communication between the gprs module and the client using a server/client schema or something more home-brew using a webserver in the middle.

the server/client schema will require you use java to make a server on the remote printer, that will be always active to receive messages from(s) clients.

if you cant use java or anything, you can use a webserver in the middle where the printer will check for messages for him. and make or answer the messages

the correct schema of connection really depends of:

1) if the grps can be always active

2) the capacity of the remote printer to execute (java, php whatever)

3) the capacity or how the clients should interact (directly, indirectly, using a website etc..)

染墨丶若流云 2024-09-12 16:00:06

我想同样的事情也适用于网络打印机,我已经将热敏打印机配置为网络上的静态IP,然后将其安装并配置到网络服务器(linux)并将其设置为默认打印机,我使用了' CUPS' 和 phpPrintIPP 实现了这一点。并且只有经过身份验证的用户才能打印到收据打印机。

另外,在打印到设备之前,是否必须先使用 GPRS 查询(握手)设备打印机?我构建了一个 PHP 脚本,它执行同样的操作,连接到 Windows 服务器以通过网络与桌面程序进行通信,并启动到指定 IP:端口的套接字连接。

I guess same thing applies to a network printer, I have configured a thermal printer to a static IP over the network, and then installed and configured it to the web server(linux) and set it as the default printer, I've used 'CUPS' and phpPrintIPP to achieved this. And only authenticated users can print to the receipt printer.

Also do you have to query(handshake) the device printer with GPRS first before you can print to the device? I have built a PHP script that does this same sort of thing that connects to a Windows server to communicate to a desktop program over the network and initiates a socket connection to the specified IP:port.

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