如何在手机上拨打来电触发电脑上的操作

发布于 2024-07-09 04:20:04 字数 541 浏览 10 评论 0 原文

我心里有一个特定的场景,但我会一般性地问这个:

有没有办法让我的手机触发我的计算机上的操作?我认为使用智能手机一定可以实现通过蓝牙连接手机和个人电脑,并在我的电脑上运行某种小程序来监听手机上的来电。 当有人打电话给我时,我希望我的手机只需将呼叫者的电话号码提交到个人计算机,然后个人计算机就会从那里执行其操作。 然后,我想像往常一样处理手机上的呼叫。

编辑

更新了此问题! 我目前正在使用 HTC Hero,希望 Android SDK 能让这一切变得更容易实现。

我的具体场景是:

当我的手机(诺基亚 N82)呼叫时,我想将呼叫者电话号码提交到搜索小程序/应用程序,它将查询Microsoft Dynamics CRM并查看联系人或公司是否有该电话号码,如果有,则在我的屏幕上显示相应的人员或公司信息。 我首选的开发平台是.NET Framework。

I have a specific scenario in mind, but I will ask this generally:

Is there a way to make my mobile phone trigger an action on my computer? I am thinking that with a smart phone it must be possible to link the phone and the personal computer with bluetooth, and have some sort of small program running on my computer that will listen for incoming phone calls on the phone. When someone calls me, I want my mobile to simply submit the callers phone number to the personal computer, and then the personal computer will do its stuff from there. Then, I want to handle the call on the mobile phone as usual.

Edit:

Updated this question! I am currently using the HTC Hero, and hopefully the Android SDK will make this more easy to accomplish.

My specific scenario was:

When my phone (Nokia N82) calls, i want to submit the callers phonenumber to a search applet/application, that will query Microsoft Dynamics CRM and see if a contact person or a company has that phonenumber, and if so, show the corresponding person or companys info on my screen. My preferred development platform is .NET Framework.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

人心善变 2024-07-16 04:20:04

卫星导航与手机的连接方式是通过手机的拨号调制解调器创建蓝牙串行连接。 您可以在控制面板的蓝牙选项中查看对应的 COM 端口。

连接后,可以通过手机发送和接收常规 AT 命令 - 对于诺基亚,这些命令已记录在案(以及该过程的完整指南)此处

您应该等待来电的“RING”通知,然后立即发出命令“AT+CLCC”(列出当前呼叫)。 在我的 N78 上,这会产生以下结果。

+CLCC: 1,1,4,0,0,"07xxxxxxxxx",129

这应该是您在 PC 上触发任何所需操作所需的全部信息。

编辑:由于某种原因,该特定链接实际上并未提及 AT+CLCC。 有关完整的命令集(包括查询电话簿的命令,甚至在某些手机上查看传入短信的命令),请尝试 文档。

The way your sat-nav interfaces with your phone is by creating a bluetooth serial connection with your phone's Dial-Up modem. You can see which COM port that corresponds to in your Control Panel's Bluetooth options.

Once connected, regular AT commands can be sent and received with the handset -- for Nokias these are documented (along with a full guide to the process) here.

You should wait for the "RING" notification of an incoming call, then immediately issue the command "AT+CLCC" (List Current Calls). On my N78 this results in the following

+CLCC: 1,1,4,0,0,"07xxxxxxxxx",129

This should be all the information you require to trigger any desired action on the PC.

Edit: that particular link does not actually mention AT+CLCC for some reason. For a full set of commands (including those to query the phone book, and even view incoming SMSs on some handsets) try this document.

会发光的星星闪亮亮i 2024-07-16 04:20:04

N82 运行 Symbian,因此您可以开发一个使用 CTelephony (C++) 类的应用程序来检测电话状态并对其执行任何您想要的操作。 您在这里有一个示例

http://www.symbian.com/developer/techlib/v9.1docs/doc_source/guide/Telephony-subsystem-guide/N1013A/answer.html

The N82 runs Symbian, so you could develop an application that used the CTelephony (C++) class to detect the phone status and do whatever you want with it. You have an example here

http://www.symbian.com/developer/techlib/v9.1docs/doc_source/guide/Telephony-subsystem-guide/N1013A/answer.html

我还不会笑 2024-07-16 04:20:04

我想说,这可以在该手机上完成,是用 C++ 实现的。 Symbian 应用程序可以阻止来电,这意味着您可以访问主叫号码。 而且蓝牙访问应该不是问题,因为这款手机即使在 J2ME 中也可以访问它。

/贾努斯·西姆

I would say that this can be done for that phone, but in C++. There are Symbian applications for blocking incoming calls, which means that you will have access on caller number. And bluetooth access should not be a problem, because this phone has access to it even in J2ME.

/JaanusSiim

花间憩 2024-07-16 04:20:04

“取决于”

您需要检查您的目标手机的 SDK - 但 Symbian 和 WindowsCE 手机当然可以做到这一点(关于 iPhone 的 NFI)。

从 Web 服务调用 Dynamics 会很容易,您可以在内部或外部公开该服务,从而使用该区域中的 WiFi(无论是您自己的公司网络还是热点)或通过移动电话网络的数据。

从使用 Microsoft CRM 的日子开始(v 1.* 的地狱般的日子),就有了一些可以使用 Skype 或普通固定电话完成您所说的事情的 mod,我确信为它编写的东西自从它非常糟糕的时候以来已经有所改进。

'depends'

you'd need to check the SDK for the phones you're targetting - but Symbian and certainly WindowsCE phones can do that (NFI about the iPhone).

Calling into Dynamics would be easy from a webservice, you could expose that either internally or externally and thus use either WiFi in the area (be it your own corporate network, or a hotspot) or data over the mobile phone network.

From days working in Microsoft CRM (hellish days of v 1.*) there were mods to do what you talk about using either Skype or regular landline phones then, I'm sure writing stuff for it has improved since when it was craptacular.

少女的英雄梦 2024-07-16 04:20:04

跳出框框思考怎么样?

如果您可以通过交换机(Asterisk、GrandCentral 或任何其他支持响铃组的设备)路由呼叫,那么您实际上可以将呼叫同时发送到您的电话和侦听 SIP 事件的计算机。

这是一种更通用的技术,确实需要一些特殊的设置,但它随后变得独立于电话并且可以更加灵活。

How about thinking outside of the box?

If you can route calls via switchboards (Asterisk, GrandCentral or anything else that supports ring groups), then you could actually send the call simultaneously to your phone and to a computer listening to SIP events.

This is a much more general technique and does require some special setup, but it then becomes phone independent and can be much more flexible.

一个人的旅程 2024-07-16 04:20:04

我知道你肯定无法在 iPhone 上做到这一点。

关于诺基亚 n82,我不确定 symbian(这就是他们使用的不是吗?)是否为电话呼叫等功能提供了开发人员挂钩,但如果没有,我也不会感到惊讶。 电话属于“我们真的真的不希望第三方搞砸这件事,所以这是禁止的”类别

I know you certainly can't do this on an iphone.

Regarding a nokia n82, I'm not sure if symbian (that's what they use isn't it?) provides developer hooks for things like phone calls, but I wouldn't be at all surprised if it didn't. Phone calls fall in the category of "we really really don't want third parties to screw this up, so it's off limits"

久伴你 2024-07-16 04:20:04

这在 Windows Mobile 设备上的 .NET Compact Framework 中非常容易实现。 您可以在设备上运行一个应用程序,并通过电话触发,使用 RAPI 将文件写入 ActiveSync 连接的 PC,然后在设备将文件写入特定文件夹时触发 PC 上的文件侦听器应用程序。

不幸的是N82运行的是Symbian操作系统,所以我什么也没得到。 只是想在我们都被 iPhone 压垮之前吹嘘一下我最喜欢的设备操作系统。

This would be very easy to do in .NET Compact Framework on a Windows Mobile device. You could have an app running on the device and triggered by a phone call write a file to an ActiveSync-connected PC using RAPI, and then have a file listener app on the PC triggered whenever a file is written to a specific folder by the device.

Unfortunately the N82 runs the Symbian OS, so I got nothing. Just wanted to brag about my favorite device OS before we're all crushed by the iPhone.

人心善变 2024-07-16 04:20:04

一个有力的指标表明我想做的事情在技术上是可行的,那就是我可以通过蓝牙将手机连接到我的汽车 GPS 导航系统,并在汽车导航显示屏上查看任何来电的电话号码。

我希望这不会那么难实现,但我的希望正在减弱。

编辑:
一直在进一步寻找,但仍然没有运气。 我将让这个问题保持开放状态,直到我找到有关该主题的更多信息,

A strong indicator that what i want to do is technically feasible is that I can link the cellphone to my car GPS navigator system by bluetooth, and see the phonenumber of any incoming calls on the car navigation display.

I was hoping this was going to be not so difficult to accomplish, but my hopes are waning.

Edit:
Been searching further, but still no luck. I'm going to let this question stay open until I can find any more information on the subject,

耳钉梦 2024-07-16 04:20:04

Salling Clicker 在 Mac 上运行就是为了做到这一点。 我认为有 PC 版本。

不管怎样,这都是一个很酷的工具!

编辑:实际上,汽车的免提套件和 GPS 以及所有在来电时显示号码和呼叫者的方式都是通过实施蓝牙免提协议来实现的。 如果您使 PC 看起来像蓝牙汽车套件(您可能必须自己编写协议),您就可以做到。

如果做不到这一点,您可以为手机编写一个应用程序来检测手机状态并通过蓝牙将消息发送到 PC,然后为 PC 编写另一个处理这些事件的自定义应用程序。 就我个人而言,我只是下载答题器并运行它:)

Edit2:我根本没有想到答题器,但它应该做你想做的事。 Mac 上有一个名为 BluePhone 的工具可以满足您的需求。 我不确定它是否有 PC 版本,但如果您在互联网上查找,很可能有 PC 版本。

Salling Clicker works on the Mac to do just that. I think there is a PC version.

It's a cool tool either way!!!

Edit: Actually, the way your car's handsfree kit and GPS and all that show the number and caller on an incoming call is by implementing the Bluetooth handsfree protocol. If you make the PC look like a Bluetooth car kit (you'll probably have to write the protocol yourself) you could do it.

Failing that, you could write an app for the phone which detects the phone state and sends messages via bluetooth to the PC and then write another custom app for the PC which handles those events. Personally I'd just download the clicker and run with it :)

Edit2: I wasn't thinking of the clicker at all, but it should do what you want. There is a tool called BluePhone for the Mac which does what you want. I'm not sure there's a PC version of it, but there is very likely a PC equivalent if you poke about on the interwebs.

冰雪梦之恋 2024-07-16 04:20:04

如果您可以在 PC 上访问蓝牙免提配置文件 API,则这是可能的。 如果手机是 HF 连接的,它将发送带有电话号码的 AT+CLIP 数据包。 您将收到传入电话号码的通知。 剩下的就很容易了。 但你的手机应该支持 CLIP。 我很确定所有现代手机都会这样做。

如果您可以编写一个访问 Microsoft 蓝牙堆栈的应用程序,这将很容易。

It is possible if you can access the Bluetooth HandsFree profile APIs on your PC. If the mobile is HF connected, it will send AT+CLIP packet with the phone number. You will be notified with the incoming phone number. The rest is easy. But your mobile should support CLIP. I am pretty sure all modern mobiles will do that.

If you can write an application which access the Microsoft bluetooth stack this would be easy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文