将消息发送到iPhone /黑莓/ Android的本地无线不知道号码 [英] Send messages to Iphone/Blackberry/Android on local Wifi without knowing number

查看:137
本文介绍了将消息发送到iPhone /黑莓/ Android的本地无线不知道号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想送一个消息给所有iPhone或黑莓或机器人正在使用我的本地WiFi。无论是一个BBM或闪存短信等....我甚至愿意支付短信等....

I would like to send a messages to all iphones or blackberries or androids that are using my local wifi. Whether it be a bbm or a flash sms etc.... I am even willing to pay for texting etc....

我可以这样做,不知道自己的号码?我能确定他们的信息,他们数(即:MAC地址和电话或id)的?发送的请求电话信息。

Can I do so without knowing their number? Can I determine their number from their information (ie: mac address and or phone id) being sent a request for phone information?

我AP preciate任何帮助。我喜欢它的感觉是不可能的原因很多,但我很好奇......

I appreciate any help. I have a feeling like it is not possible for many reasons, but I am curious....

推荐答案

总之是有办法做到这一点,这就是所谓的广播(或UDP广播)。您的Wi-Fi AP应该支持,并允许它。您还必须确保Android,iOS和BB支持这一(但没有理由为什么他们不应该)。

Overall there is a way to do it, it's called "broadcasting" (or UDP broadcasting). Your wi-fi AP should support and allow it. You also must make sure Android, iOS and BB support this (but there is no reason why they shouldn't).

这看起来是这样的:


  1. 在所有设备上安装您的自定义应用程序。

  2. 当设备连接到特定Wi-Fi接入点,你发送广播消息设备X的连接,我的地址是XA,将消息发送到端口XP每隔几分钟。你也开始监听来自其他设备等通知。

  3. 如果有其他设备连接,它将发送设备Y的连接,我的地址是YA,送messasges端口YP。设备X将收到消息从设备Y,软元件Y将装置X中接收消息。

  4. 当第三个设备连接时,它发出装置Z连接,我的地址ZA,发送形式交往端口ZP。这Z设备将最终由X和Y接收消息,而X和Y会意识到Z设备也是如此。

您可能会需要执行,以实际发送从一个设备信息转发到其他简单的TCP协议。

You'll probably need to implement simple TCP protocol in order to actually send messages from one device to another.

总之,你需要通过TCP进行通过UDP和沟通发现。这些将是两个不同的自定义协议。它不应该是很难实现的。但是,你需要实现这个对你有兴趣在所有的移动平台。

To summarize, you'll need to make discovery via UDP and communication via TCP. Those would be two different custom protocols. And it shouldn't be hard to implement. But you'll need to implement this for all mobile platforms you are interested in.

这篇关于将消息发送到iPhone /黑莓/ Android的本地无线不知道号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆