用于嵌入式设备的服务器端 Web 框架
您建议在嵌入式设备上使用哪种服务器端 Web 语言/框架? 该设备类似于 linksys 无线路由器。 理想情况下,我正在寻找一个快速、高效且能够在资源有限(CPU、内存等)的设备上运行良好的框架。
一些最初的考虑是 PHP、Django,甚至 mod_perl。
What server-side web language/framework do you recommend for use on an embedded device? The device is similar to a linksys wireless router. Ideally I am looking for a framework that is fast, efficient, and will run well on a device with limited resources (CPU, Memory, etc).
Some initial considerations are PHP, Django, or even mod_perl.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
贾斯汀,
听起来你的平台马力相对较大。 出于这个原因,我建议选择您最熟悉的框架。 PHP 和 mod_perl 非常快速和高效。 这实际上取决于您正在运行的 http 服务器有哪些模块可用。
你的问题让我看了一下番茄固件用于其网络界面的框架。 他们的服务器是带有cgi扩展的micro_httpd/mini_httpd,页面是asp。 还有一些 JavaScript 代码。这里有一个 tomato 固件 的链接,您可以在其中下载源代码并安装你自己看看。 如果您的设备类似于无线路由器,您应该查看其他路由器固件项目,例如 dd-wrt、openWRT 和 sveasoft。
马特哈
Justin,
It sounds like your platform has relatively a lot of horsepower. For this reason, I'd say go with the framework you're most comfortable with. PHP and mod_perl are plenty fast and efficient. It really depends on what modules are available for the http server that you're running.
Your question led me to take a peek at the framework that tomato firmware uses for their web interface. Their server is micro_httpd/mini_httpd with cgi extensions, and the pages are asp. There is also some javascript thrown in. Here's a link to tomato firmware where you can download the source and have a look for yourself. If your device is similar to a wireless router, you should check out other router firmware projects, such as dd-wrt, openWRT, and sveasoft.
Mateja
我建议使用 LUA (http://www.lua.org)。 Barracuda (http://barracudaserver.com) 有一个支持 LUA 的网络服务器,但它不是免费的。
I would suggest LUA (http://www.lua.org). Barracuda (http://barracudaserver.com) has a webserver with LUA support, but it's not free.
我在一个开发路由器等设备的团队中工作。 对于它的网络界面,我使用了 thttpd 和 CGI 包装。 编程语言是cpp + html + javascript。
我也使用 sqlite 作为数据库。
使用 cgi c/cpp 是资源有限的嵌入式设备中 Web 界面的最佳解决方案。
I working in a team which develop a device like router. for it's web interface, i used thttpd and CGI Wraper. programing language was cpp + html + javascript.
i used sqlite for database too.
using cgi c/cpp is the best solution for web interface in embeded device with limited resource.