由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 在手机上怎么远程控制一个房间的灯亮灯灭?
相关主题
goodbug, aws上怎么实现web server,app server分离,2个firewall的?新手问一个弱问题, 关于从stdin输入int或者其他数值的实现方法
再请教一个lucene的问题ConcurrentModificationException
Re: 关于APPLET的IO问题How to prevent double submission in web form?
Database Pooling 的问题A question about how to segment intput text file
清教关于编译原理httpsession 问题
How to connect to SQL2000?再请教一个lucene的问题
请帮忙看看这个编译错误some simple matters take a long long time to have a solution
再问generic问题:tomcat编译错误a prepared statement question
相关话题的讨论汇总
话题: firewall话题: mobile话题: control话题: network话题: public
进入Java版参与讨论
1 (共1页)
c*********e
发帖数: 16335
1
房间的控制在一个有firewall的局域网里。在手机上怎么远程控制一个房间的灯亮灯灭
?server的ip是dynamic ip address.
e*****t
发帖数: 1005
2
depends what API the controler provides. If there's a central online control
(public not in the firewall), you probably can talk to that central control
.
But if you don't have a public central control. Then you have to talk to the
controller directly, you might want to consider open some port on the firew
all.

灭?

【在 c*********e 的大作中提到】
: 房间的控制在一个有firewall的局域网里。在手机上怎么远程控制一个房间的灯亮灯灭
: ?server的ip是dynamic ip address.

c*********e
发帖数: 16335
3
这个到底是network administrator做的事情,还是software developer做的事情?
s【在 exploit (累~头疼%¥%) 的大作中提到: 】
control
control
the
firew
e*****t
发帖数: 1005
4
I guess depends what you are trying to achieve. If you are a software engine
er desgineing such a product, you might need to consider how you can still c
ontrol it even when it's inside some firewall.

【在 c*********e 的大作中提到】
: 这个到底是network administrator做的事情,还是software developer做的事情?
: s【在 exploit (累~头疼%¥%) 的大作中提到: 】
: control
: control
: the
: firew

c*********e
发帖数: 16335
5
这个是不是和http protocol有很大关系,还是和web services? 怎么和public center
control联系上呢?

engine
c

【在 e*****t 的大作中提到】
: I guess depends what you are trying to achieve. If you are a software engine
: er desgineing such a product, you might need to consider how you can still c
: ontrol it even when it's inside some firewall.

c*********e
发帖数: 16335
6
需要设计一个token吗?

control
control
the
firew

【在 e*****t 的大作中提到】
: depends what API the controler provides. If there's a central online control
: (public not in the firewall), you probably can talk to that central control
: .
: But if you don't have a public central control. Then you have to talk to the
: controller directly, you might want to consider open some port on the firew
: all.
:
: 灭?

e*****t
发帖数: 1005
7
I think the problem is with the firewall, which means it can initiate a conn
ection, but nobody can reach it from outside.So you may need something else
on the public network to relay.
For example, if you have a cloudcontrol.com on the public network. Then your
controller inside the firewall can initiate a connection to the cloudcontro
l.com, register there. It needs to maintain a TCP connection to your cloudco
ntrol.com.
Then your mobile client can connect to cloudcontrol.com too, and manipulate
some state for cetrain controller, and the cloudcontrol.com can then use the
existing TCP connection to control the lights.
This is just a very primitive idea. But I don't know if the firewall is the
key problem to solve here.

center

【在 c*********e 的大作中提到】
: 这个是不是和http protocol有很大关系,还是和web services? 怎么和public center
: control联系上呢?
:
: engine
: c

g*****g
发帖数: 34805
8
Firewall is not a big issue at all. You can use long poll for push support.
Most mobile clients are doing this already.

conn
else
your
cloudcontro
cloudco
manipulate
the

【在 e*****t 的大作中提到】
: I think the problem is with the firewall, which means it can initiate a conn
: ection, but nobody can reach it from outside.So you may need something else
: on the public network to relay.
: For example, if you have a cloudcontrol.com on the public network. Then your
: controller inside the firewall can initiate a connection to the cloudcontro
: l.com, register there. It needs to maintain a TCP connection to your cloudco
: ntrol.com.
: Then your mobile client can connect to cloudcontrol.com too, and manipulate
: some state for cetrain controller, and the cloudcontrol.com can then use the
: existing TCP connection to control the lights.

e*****t
发帖数: 1005
9
but there's no way the controller inside the firewall can talk to a mobile c
lient directly.

【在 g*****g 的大作中提到】
: Firewall is not a big issue at all. You can use long poll for push support.
: Most mobile clients are doing this already.
:
: conn
: else
: your
: cloudcontro
: cloudco
: manipulate
: the

c*********e
发帖数: 16335
10
mobile client can connect to cloudcontrol.com ?
mobile client在手机上怎么connect to cloudcontro.com? 通过手机里的browser浏览
某个網站,还是要程序员用objective-c,java写个app ?

conn
else
your
cloudcontro
cloudco
manipulate
the

【在 e*****t 的大作中提到】
: I think the problem is with the firewall, which means it can initiate a conn
: ection, but nobody can reach it from outside.So you may need something else
: on the public network to relay.
: For example, if you have a cloudcontrol.com on the public network. Then your
: controller inside the firewall can initiate a connection to the cloudcontro
: l.com, register there. It needs to maintain a TCP connection to your cloudco
: ntrol.com.
: Then your mobile client can connect to cloudcontrol.com too, and manipulate
: some state for cetrain controller, and the cloudcontrol.com can then use the
: existing TCP connection to control the lights.

相关主题
How to connect to SQL2000?新手问一个弱问题, 关于从stdin输入int或者其他数值的实现方法
请帮忙看看这个编译错误ConcurrentModificationException
再问generic问题:tomcat编译错误How to prevent double submission in web form?
进入Java版参与讨论
c*********e
发帖数: 16335
11
mobile client通过手机里的browser连到某个網站?

c

【在 e*****t 的大作中提到】
: but there's no way the controller inside the firewall can talk to a mobile c
: lient directly.

n****6
发帖数: 570
12
手机-家里server-arduino-可控硅继电器-灯。
家里server可以用asp c# 提供网页,连接arduino继而控制
Ip可以用dyndns服务有家里服务器汇报。也可写script向某个固定地址机器定时汇报
n****6
发帖数: 570
13
不用网页web service web api也可以
n****6
发帖数: 570
14
不用网页web service web api也可以
n****6
发帖数: 570
15
没主意是java版,将 c#改称java jsp 即可
l*******m
发帖数: 1096
16
你先要搞清server/client, host/device的关系

【在 c*********e 的大作中提到】
: 房间的控制在一个有firewall的局域网里。在手机上怎么远程控制一个房间的灯亮灯灭
: ?server的ip是dynamic ip address.

m****r
发帖数: 6639
17
lol.
i almost said it. but decided to check maybe you would say the same thing
first.

【在 g*****g 的大作中提到】
: Firewall is not a big issue at all. You can use long poll for push support.
: Most mobile clients are doing this already.
:
: conn
: else
: your
: cloudcontro
: cloudco
: manipulate
: the

g*****g
发帖数: 34805
18
They don't have to. It's like multiple email clients on the same email
account, once the state is changed, all clients can be notified. Obviously
the state change can be trigger by any client and persisted on server side.

c

【在 e*****t 的大作中提到】
: but there's no way the controller inside the firewall can talk to a mobile c
: lient directly.

e*****t
发帖数: 1005
19
where is "the server side"? that's what I mean something in the public netwo
rk and in the example, it was called cloudcontroller.com.
My point is, the real controller (in the private network) and the mobile cli
ent can't see/know each other. There must be something in the public network
to relay any message between them.

【在 g*****g 的大作中提到】
: They don't have to. It's like multiple email clients on the same email
: account, once the state is changed, all clients can be notified. Obviously
: the state change can be trigger by any client and persisted on server side.
:
: c

g*****g
发帖数: 34805
20
Depends on the appliance, for lights, you probably don't need control
outside of home. The light or a central control can also act as a server
over the wifi network.

netwo
cli
network

【在 e*****t 的大作中提到】
: where is "the server side"? that's what I mean something in the public netwo
: rk and in the example, it was called cloudcontroller.com.
: My point is, the real controller (in the private network) and the mobile cli
: ent can't see/know each other. There must be something in the public network
: to relay any message between them.

相关主题
A question about how to segment intput text filesome simple matters take a long long time to have a solution
httpsession 问题a prepared statement question
再请教一个lucene的问题newbie question
进入Java版参与讨论
m****r
发帖数: 6639
21
there is always the "cloadcontroller.com". that is where the long poll is
to, and that is what the mobile device talk to.
so, what is the problem again?

netwo
cli
network

【在 e*****t 的大作中提到】
: where is "the server side"? that's what I mean something in the public netwo
: rk and in the example, it was called cloudcontroller.com.
: My point is, the real controller (in the private network) and the mobile cli
: ent can't see/know each other. There must be something in the public network
: to relay any message between them.

e*****t
发帖数: 1005
22
"cloudcontroller.com" is just an example I used in my posts.
The OP doesn't really give us enough information on that.

【在 m****r 的大作中提到】
: there is always the "cloadcontroller.com". that is where the long poll is
: to, and that is what the mobile device talk to.
: so, what is the problem again?
:
: netwo
: cli
: network

c*********e
发帖数: 16335
23
server发出一个token,手机接收到token了去连接某个web services?

netwo
cli
network

【在 e*****t 的大作中提到】
: where is "the server side"? that's what I mean something in the public netwo
: rk and in the example, it was called cloudcontroller.com.
: My point is, the real controller (in the private network) and the mobile cli
: ent can't see/know each other. There must be something in the public network
: to relay any message between them.

e*****t
发帖数: 1005
24
这到底是个实际问题,还是什么作业?
我劝你先把requirement定义清楚。

【在 c*********e 的大作中提到】
: server发出一个token,手机接收到token了去连接某个web services?
:
: netwo
: cli
: network

c*********e
发帖数: 16335
25
面试题。

【在 e*****t 的大作中提到】
: 这到底是个实际问题,还是什么作业?
: 我劝你先把requirement定义清楚。

c*********e
发帖数: 16335
26
已经碰到2个大公司问這種问题了,都是要在手机上看到最新的实时数据,一个是制造
业工厂,经理想在自己的iphone上看到当天的生产状况,绘成一个柱状图,实时更新;
一个是搞房屋安全的公司,经理想通过iphone,android手机来控制房间里的灯亮灯灭。
都是真实的问题。

【在 e*****t 的大作中提到】
: 这到底是个实际问题,还是什么作业?
: 我劝你先把requirement定义清楚。

e*****t
发帖数: 1005
27
这其实就是Open question,需要你跟别人讨论出具体的requirements.
去jobhunting版刷刷题,找正经软件公司吧。比非软件公司的IT有前途。

【在 c*********e 的大作中提到】
: 已经碰到2个大公司问這種问题了,都是要在手机上看到最新的实时数据,一个是制造
: 业工厂,经理想在自己的iphone上看到当天的生产状况,绘成一个柱状图,实时更新;
: 一个是搞房屋安全的公司,经理想通过iphone,android手机来控制房间里的灯亮灯灭。
: 都是真实的问题。

c*********e
发帖数: 16335
28
現在是mobile时代,很多公司都有pc机和mobile之间怎么交流的问题。这个
正经软件公司不一定看得上。
pc机和mobile之间的交流,有2种:
1。从pc机查看mobile上的信息,比如电池电量还有多少,在什么location.这个很多公
司都有需求,比如邮局,很多的mobile,而且很多是老的moto的mobile,需要监控电池有
多少电量,在哪儿。知道几个这种公司,都把业务拓展到中国去了。不过,这种公司,
技术不是最重要的,而是要很多qa来测试各种不同的mobile.所以,这种公司的qa部门
员工比developer都多。
2。 从mobile控制房间灯亮灯灭。

【在 e*****t 的大作中提到】
: 这其实就是Open question,需要你跟别人讨论出具体的requirements.
: 去jobhunting版刷刷题,找正经软件公司吧。比非软件公司的IT有前途。

c*********e
发帖数: 16335
29
jobhunting版就算了,老是一些工作中用不上的算法,没啥意思。

【在 e*****t 的大作中提到】
: 这其实就是Open question,需要你跟别人讨论出具体的requirements.
: 去jobhunting版刷刷题,找正经软件公司吧。比非软件公司的IT有前途。

1 (共1页)
进入Java版参与讨论
相关主题
a prepared statement question清教关于编译原理
newbie questionHow to connect to SQL2000?
Help! (转载)请帮忙看看这个编译错误
怎么实现 twitter 桌面程序再问generic问题:tomcat编译错误
goodbug, aws上怎么实现web server,app server分离,2个firewall的?新手问一个弱问题, 关于从stdin输入int或者其他数值的实现方法
再请教一个lucene的问题ConcurrentModificationException
Re: 关于APPLET的IO问题How to prevent double submission in web form?
Database Pooling 的问题A question about how to segment intput text file
相关话题的讨论汇总
话题: firewall话题: mobile话题: control话题: network话题: public