Redian新闻
>
说说坑爹的苹果电池
avatar
说说坑爹的苹果电池# PDA - 掌中宝
n*s
1
I guess the mobile app logs into cloud server. But how can the server
communicate the thermostat behind the router in home network? I don't see
any step to setup port forwarding or dynamic DNS.
avatar
m*w
2
一年后就顶不了一天。朋友买了三个充电器,车,办公室,家,没事就冲。找苹果换?
80刀。
现在想升级,三个充电器要重用,需要三个转换头,坑爹。
avatar
N*m
3
很简单啊
控制器从服务器读数据和指令就行了

【在 n***s 的大作中提到】
: I guess the mobile app logs into cloud server. But how can the server
: communicate the thermostat behind the router in home network? I don't see
: any step to setup port forwarding or dynamic DNS.

avatar
a*y
4
我给GS3买两块备用电池和两个旅冲,办公室和家里面各一套。

【在 m**********w 的大作中提到】
: 一年后就顶不了一天。朋友买了三个充电器,车,办公室,家,没事就冲。找苹果换?
: 80刀。
: 现在想升级,三个充电器要重用,需要三个转换头,坑爹。

avatar
n*s
5
So do you mean the thermostat will poll the server constantly? Otherwise,
the mobile device will see a gap of availability of the thermostat.I am
thinking that the communication should be server push and thus I have the
question of how server can find/remember the thermostat behind router.
avatar
m*w
6
办公室usb线够了。

【在 a*****y 的大作中提到】
: 我给GS3买两块备用电池和两个旅冲,办公室和家里面各一套。
avatar
N*m
7
push or pull/polling
没啥区别,都是client建立连接,比如建个websocket,然后server push

【在 n***s 的大作中提到】
: So do you mean the thermostat will poll the server constantly? Otherwise,
: the mobile device will see a gap of availability of the thermostat.I am
: thinking that the communication should be server push and thus I have the
: question of how server can find/remember the thermostat behind router.

avatar
a*y
8
哥喜欢手机不离身

【在 m**********w 的大作中提到】
: 办公室usb线够了。
avatar
a9
9
你以为push怎么实现的?

【在 n***s 的大作中提到】
: So do you mean the thermostat will poll the server constantly? Otherwise,
: the mobile device will see a gap of availability of the thermostat.I am
: thinking that the communication should be server push and thus I have the
: question of how server can find/remember the thermostat behind router.

avatar
m*w
10
旅充不是一般都一拖二吗?

【在 a*****y 的大作中提到】
: 哥喜欢手机不离身
avatar
n*s
11
Thanks for the replies, guys.
What in my mind:
Most home router doesn't have static router so it is an stable for server
push (the router IP might be changed by ISP). Therefore router needs to send
its information to server (But it is not the case of Nest setup).
For server to aware the existence of Nest thermostat, the thermostat need to
send info to server, similar to the above logic of router. But its LAN IP
address is even less stable than router WAN address and its address is
completely unknown to server. Therefore, it needs to maintain Keep-Alive
connection to the server in order for mobile device to contact it. The
number of thermostats are in millions. Is is a huge requirement for server
to maintain millions of active connections?

【在 a9 的大作中提到】
: 你以为push怎么实现的?
avatar
a*y
12
一个旅充也只能在一个地方用啊

【在 m**********w 的大作中提到】
: 旅充不是一般都一拖二吗?
avatar
p*o
13
search for "c10m"

send
to

【在 n***s 的大作中提到】
: Thanks for the replies, guys.
: What in my mind:
: Most home router doesn't have static router so it is an stable for server
: push (the router IP might be changed by ISP). Therefore router needs to send
: its information to server (But it is not the case of Nest setup).
: For server to aware the existence of Nest thermostat, the thermostat need to
: send info to server, similar to the above logic of router. But its LAN IP
: address is even less stable than router WAN address and its address is
: completely unknown to server. Therefore, it needs to maintain Keep-Alive
: connection to the server in order for mobile device to contact it. The

avatar
h*r
14
买了10000mah的外接电池?
avatar
g*t
15
和手机一样,就是长连接,20-30分钟发一个心跳信号,
avatar
b*z
16
如果每天你都把电池用到10%左右再冲,或是用到自动关机再冲,什么电池一年后都会
有大问题的。
Google一下如何使用锂电池吧。

【在 m**********w 的大作中提到】
: 一年后就顶不了一天。朋友买了三个充电器,车,办公室,家,没事就冲。找苹果换?
: 80刀。
: 现在想升级,三个充电器要重用,需要三个转换头,坑爹。

avatar
N*m
17
你得学点网络服务的基础
第一段,所有client/server都有re-connect机制。router重置、断线等等,都可以由
客户端发起重连;
第二段,这个也不是问题。不说一个机器就能处理1M个连接;实在不行,还有负载平衡
到集群。

send
to

【在 n***s 的大作中提到】
: Thanks for the replies, guys.
: What in my mind:
: Most home router doesn't have static router so it is an stable for server
: push (the router IP might be changed by ISP). Therefore router needs to send
: its information to server (But it is not the case of Nest setup).
: For server to aware the existence of Nest thermostat, the thermostat need to
: send info to server, similar to the above logic of router. But its LAN IP
: address is even less stable than router WAN address and its address is
: completely unknown to server. Therefore, it needs to maintain Keep-Alive
: connection to the server in order for mobile device to contact it. The

avatar
a*m
18
micro usb基本通用,到处放一个也不浪费,只要不是电流不同,这个还是挺讨厌的,似
乎手机还不算那么挑剔。

【在 a*****y 的大作中提到】
: 我给GS3买两块备用电池和两个旅冲,办公室和家里面各一套。
avatar
m*w
19
联想平板也没问题。就是慢点。

【在 a********m 的大作中提到】
: micro usb基本通用,到处放一个也不浪费,只要不是电流不同,这个还是挺讨厌的,似
: 乎手机还不算那么挑剔。

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。