通过 IP 地址控制设备有哪些方法?

发布于 2024-07-14 02:27:57 字数 148 浏览 4 评论 0原文

我想了解如何通过 IP 地址控制摄像机。 我有一个 API 可以从本地计算机控制平移和倾斜。 该代码将在 Windows 上使用 C/C++ 编写。 如果我想要从一个应用程序控制多个摄像头或将一台摄像头连接到一个应用程序,我仍在设计。 SOA 是否是构建消息传递的有用架构?

I want to get some ideas on how I might control a video camera through an IP address. I have an API to control pan and tilt from a local machine. The code is going to be in C/C++ on Windows. I am still designing if I want multiple cameras controlled from one application or have a one camera to one application. Would SOA be a useful architecture to structure my messaging?

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

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

发布评论

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

评论(3

笑叹一世浮沉 2024-07-21 02:27:57

我认为像 REST 这样的任务可以很好地为你服务。 对 REST 服务器执行命令非常直观且简单,这听起来正是您所需要的。 我可能会制作某种在网络服务器内运行的应用程序,因为这将处理大部分基础设施,包括需要时的身份验证。 我确信 apache 和 IIS 都可以轻松地为您完成此操作。 即使您的 API 是用 C 语言编码的,您也可以考虑使用一些高级脚本语言作为 API 的客户端(在 Web 服务器内)。

对于这样的任务,SOA 听起来有点大材小用。

I think you could be well served by something like REST for a task like this. Executing a command towards a REST server is really intuitive and simple, which sounds just like what you need. I'd probably make some kind of application that would be running inside a web-server, since this would handle most of the infrastructure, including authentication if needed. I'm sure both apache and IIS could do this for you quite easily. Even though your API is coded in C you could also consider using some higher-level scripting language as a client to the API (inside the web server).

SOA sounds a little overkill for a task like this.

寄与心 2024-07-21 02:27:57

我在大学的一个项目中做了类似的事情。 我们拥有的是连接到 LAN 的摄像机,并且通过消息传递很容易与它们通信,就像与任何 PC 通信一样。 我们有相同的应用程序来沟通它们。 您可以使用 SOA 或您认为方便的任何架构,这取决于您的应用程序。

因为我们的案例只是一个临时架构,这并不是一件复杂的事情。

I did something similar for aproject in my university. What we had was the cameras connected to a LAN and with message passing was very easy to communicate with them, is the same that communicate with any PC. We had the same application to communicate them. You can use SOA or any architecture you consider convinient, that depens on your application.

For our case was just an ad hoc architecture, it was not a complex thing.

怪我鬧 2024-07-21 02:27:57

黑森不错。 它基本上是 REST,但具有比 XML 更高效的二进制协议,并且还可以让您轻松地从其他语言进行调用。 因此,您可以使用 C# 开发客户端 GUI 应用程序,并使用 C# 开发服务器。有一些可用的不同语言的免费库。

http://hessian.caucho.com/

Hessian is nice. It is basically REST, but has a binary protocol which is more efficient than XML and it also lets you make calls from other languages quite easily. So, you could develop the client GUI applciation in C# and the server in C. There are free libraries for a few different languages available.

http://hessian.caucho.com/

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