从简单的 IRC 服务器转向其他技术
我想要一些关于一个项目的意见。
抱歉,我的英语不是我的自然语言。
我当前的设置:
Arduino -> IRC 服务器 <->客户端(PHP 和自定义软件)
1 - Arduinos 向 IRC 服务器发送特殊制作的字符串。
2 - IRC 服务器每组 Arduino 都有一个通道。
3 - 每个通道上都有一个机器人,捕获发送的所有字符串,并将它们保存在 SQL 数据库中。
4 - 我有一个 cron 作业,它将原始数据从第一个 SQL 表移动到另一个表,数据已经解析,漂亮又漂亮。
5 - 客户端,可以使用基于 PHP 的网站或自定义软件连接到服务器。
6 - 如果他们需要实时数据,则选择 IRC 服务器,将命令发送到 Arduino,然后将字符串发送到通道 AND 到操作员。否则,他们会通过基于日期的简单查询从第二个 SQL 表中获取数据。
7 - 数据以 1 秒间隔发送(需要)
8 - 这是一个快速而肮脏的技巧来完成任务。
现在...我需要摆脱这个古老的系统并以正确的方式完成工作。
我对 APE(Ajax 推送引擎)、Comet、REST 等有一些概念...
“几乎实时”是必须的,所以,我的猜测是AJAX,对吧?!
但是,在这种情况下你会使用什么呢?升级最有效的方法是什么?
我的限制是在Arduino方面,使用GPRS模块,我只能发送和接收简单的ASCII字符串。
拜托,Arduino 讨厌者,这不是 Arduino 疑问/问题,忘记我什至提到过它。
这是一个简单的请求帮助/想法,关于什么技术对该项目更有效?
BTW...我喜欢 KISS 原理和简单的模块,这样调试不会比项目本身花费更多的时间:)
感谢大家。
I would like some opinions about one project.
Sorry my english, is not my natural language.
My current setup:
Arduino -> IRC SERVER <-> Clients (PHP and custom software)
1 - Arduinos sends a special crafted string to the IRC server.
2 - IRC server has one channel per group of Arduinos.
3 - On every channel there's a bot, catching all the strings sent, and saving them on a SQL database.
4 - I have a cron job, that moves the raw data from the 1st SQL table to another one, with data already parsed, pretty and nice.
5 - Clients, who may use PHP web based site, or a custom software connect to the server.
6 - If they need realtime data, the IRC server is choosen, a command is sent to the Arduino, and this, sends the string either to channel AND to the operator. Otherwise, they get the data from the 2nd SQL table with a simple query date based.
7 - Data is sent with 1 second interval (NEEDED)
8 - This was a quick and dirty hack to get things done.
Now... I need to move from this arcaic system and get things done in the right way.
I have a few notions of APE (Ajax Push Engine), Comet, REST, etc...
The "almost real-time" is a must, so, my guess would be AJAX, right?!
But, what would you use in a situation like this? What would be the most efficient way to have this upgraded?
My limitation is on the side of Arduino, with the GPRS module, I can only send and receive simple ASCII strings.
Please, Arduino haters, this is not an Arduino doubt/question, forget I even mention it.
This is a simple call for help/ideas about what technology is more efficient to this project?
BTW... I like KISS principle and simple modules, so that debuging won't take more time than the project itself :)
Thanks to all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论