从我的电脑上把信息发送到我的手机上

时间:2022-11-11 22:44:17

If I wanted to be able to sync my computer with my phone. My send messages from my computer to my phone (texts messages and custom phone application) what parameters would I need to connect the 2. And where could I find some information on how I might do this?

如果我想让电脑和手机同步的话。我从我的电脑发送信息到我的手机(短信和自定义电话应用)我需要什么参数来连接2。我在哪里可以找到一些关于我该怎么做的信息呢?

1 个解决方案

#1


3  

It seems to me that the use of the word "sync" in this context is going to confuse people.

在我看来,在这种情况下使用“sync”这个词会让人感到困惑。

I think (if I understand you correctly) that you want to have a custom phone app, that can "talk" to another custom app on your computer or some server. Is that correct? If so, the in concept this is what you'll need to do.

我认为(如果我理解正确的话)你想要一个自定义的手机应用,它可以和你电脑上的另一个自定义应用或服务器上的另一个自定义应用“对话”。那是正确的吗?如果是这样的话,概念就是你需要做的。

  1. Build a custom phone app that can talk "tcp/ip" (either a known protocol such as http or a custom tcp/ip protocol you design, which if you're not done tcp/ip before will be fairly complex).
  2. 构建一个自定义的电话应用程序,它可以谈论“tcp/ip”(一个已知的协议,如http或定制的tcp/ip协议,如果你以前没有做过tcp/ip,那将会相当复杂)。
  3. Build a custom application that runs on your desktop. If you're decided to use http, then this app will most likely be an ASP.NET application or a WCF application (self hosted or IIS hosted)
  4. 构建一个在桌面运行的自定义应用程序。如果您决定使用http,那么这个应用程序很可能是一个ASP。NET应用程序或WCF应用程序(自托管或IIS托管)

In this scenario, the phone app is the only one that can initiate the communication because effectively it is a tcp/ip client (it doesn't have to be but it'll be simpler to build initially). The desktop application will have to be running prior to the phone app attempting to "connect". Since it is effectively a tcp/ip server application.

在这种情况下,手机应用程序是唯一可以启动通信的应用程序,因为它实际上是一个tcp/ip客户端(它不必是这样,但最初构建起来会更简单)。桌面应用程序必须在试图“连接”的电话应用程序之前运行。因为它实际上是一个tcp/ip服务器应用程序。

The phone app can makes requests of the server app (your desktop app) and get responses back from the server. The phone app can send "data" across to the server app and the server app can send "data" back to the phone app.

电话应用程序可以请求服务器应用程序(您的桌面应用程序)并从服务器获得响应。手机应用程序可以将“数据”发送到服务器应用程序,服务器应用程序可以将“数据”发送回手机应用程序。

I suggest using HTTP REST with JSON as the data interchange format. That is the data is sent over the "wire" in JSON format (it's lighter in terms of bandwidth than say XML).

我建议使用HTTP REST和JSON作为数据交换格式。这是通过JSON格式发送的数据(在带宽方面比XML更轻)。

Note that when I say "desktop" application, this application can also be run on some server on the Internet (or cloud) provided your hosting providers allows it. WCF services hosted in IIS are typically allowed by any hosting provider supporting ASP.NET.

请注意,当我说“桌面”应用程序时,如果您的主机提供商允许的话,这个应用程序也可以在Internet(或云)上的某个服务器上运行。在IIS中托管的WCF服务通常被支持ASP.NET的托管提供者所允许。

This Google link generates multiple results that will help you get started http://www.google.com/search?hl=en&q=windows+phone+7+HTTP+REST&aq=f&aqi=&aql=&oq=

这个谷歌链接会产生多个结果,这些结果将帮助你开始使用http://www.google.com/search?hl= en&qwindows +phone+7+HTTP+REST&aq= &aql=&oq=。

If you're completely new to the various technologies that brace yourself, cause it's not going to be easy. There is nothing really complicated in all this, but like with everything else, when you first start with something, you see a huge mountain in front of you that you need to climb (circumventing won't help :)).

如果你对支撑你自己的各种技术完全陌生,因为这并不容易。这一切并不复杂,但就像其他事情一样,当你第一次开始做某件事时,你会看到你面前有一座大山,你需要爬上去(绕行并不会有帮助:)。

#1


3  

It seems to me that the use of the word "sync" in this context is going to confuse people.

在我看来,在这种情况下使用“sync”这个词会让人感到困惑。

I think (if I understand you correctly) that you want to have a custom phone app, that can "talk" to another custom app on your computer or some server. Is that correct? If so, the in concept this is what you'll need to do.

我认为(如果我理解正确的话)你想要一个自定义的手机应用,它可以和你电脑上的另一个自定义应用或服务器上的另一个自定义应用“对话”。那是正确的吗?如果是这样的话,概念就是你需要做的。

  1. Build a custom phone app that can talk "tcp/ip" (either a known protocol such as http or a custom tcp/ip protocol you design, which if you're not done tcp/ip before will be fairly complex).
  2. 构建一个自定义的电话应用程序,它可以谈论“tcp/ip”(一个已知的协议,如http或定制的tcp/ip协议,如果你以前没有做过tcp/ip,那将会相当复杂)。
  3. Build a custom application that runs on your desktop. If you're decided to use http, then this app will most likely be an ASP.NET application or a WCF application (self hosted or IIS hosted)
  4. 构建一个在桌面运行的自定义应用程序。如果您决定使用http,那么这个应用程序很可能是一个ASP。NET应用程序或WCF应用程序(自托管或IIS托管)

In this scenario, the phone app is the only one that can initiate the communication because effectively it is a tcp/ip client (it doesn't have to be but it'll be simpler to build initially). The desktop application will have to be running prior to the phone app attempting to "connect". Since it is effectively a tcp/ip server application.

在这种情况下,手机应用程序是唯一可以启动通信的应用程序,因为它实际上是一个tcp/ip客户端(它不必是这样,但最初构建起来会更简单)。桌面应用程序必须在试图“连接”的电话应用程序之前运行。因为它实际上是一个tcp/ip服务器应用程序。

The phone app can makes requests of the server app (your desktop app) and get responses back from the server. The phone app can send "data" across to the server app and the server app can send "data" back to the phone app.

电话应用程序可以请求服务器应用程序(您的桌面应用程序)并从服务器获得响应。手机应用程序可以将“数据”发送到服务器应用程序,服务器应用程序可以将“数据”发送回手机应用程序。

I suggest using HTTP REST with JSON as the data interchange format. That is the data is sent over the "wire" in JSON format (it's lighter in terms of bandwidth than say XML).

我建议使用HTTP REST和JSON作为数据交换格式。这是通过JSON格式发送的数据(在带宽方面比XML更轻)。

Note that when I say "desktop" application, this application can also be run on some server on the Internet (or cloud) provided your hosting providers allows it. WCF services hosted in IIS are typically allowed by any hosting provider supporting ASP.NET.

请注意,当我说“桌面”应用程序时,如果您的主机提供商允许的话,这个应用程序也可以在Internet(或云)上的某个服务器上运行。在IIS中托管的WCF服务通常被支持ASP.NET的托管提供者所允许。

This Google link generates multiple results that will help you get started http://www.google.com/search?hl=en&q=windows+phone+7+HTTP+REST&aq=f&aqi=&aql=&oq=

这个谷歌链接会产生多个结果,这些结果将帮助你开始使用http://www.google.com/search?hl= en&qwindows +phone+7+HTTP+REST&aq= &aql=&oq=。

If you're completely new to the various technologies that brace yourself, cause it's not going to be easy. There is nothing really complicated in all this, but like with everything else, when you first start with something, you see a huge mountain in front of you that you need to climb (circumventing won't help :)).

如果你对支撑你自己的各种技术完全陌生,因为这并不容易。这一切并不复杂,但就像其他事情一样,当你第一次开始做某件事时,你会看到你面前有一座大山,你需要爬上去(绕行并不会有帮助:)。