BBM SDK - 如何让模拟器进行通信?
可以说,我在涉足黑莓开发方面遇到了相当大的困难。在尝试让 BBM SDK 示例应用程序(platformdemo 和 tictactoe)正常工作时,我担心我已经倒退了一步。
您看,我最初的设置是为了让两个 BlackBerry 模拟器可以使用 BBM 互相发送消息。
现在,这不再有效,我根本不明白为什么。为什么 BBM 通讯不起作用?
我正在跑步:
BBM SDK 测试版 4_03_10_2011
BlackBerry_Simulators_6.0.0.313_9800
MDS v3.5.3(我已验证其运行正常,下载了无限强度的加密策略 jar 等)
Java JDK v1.6.0_25 (JRE v6)
我已经卸载并重新安装了所有内容,包括 Java。我首先使用以下命令行运行 MDS:
"run.bat" -log.console.dump -feature "bbm,keynego,monitor,servicebook,cmimep2p,ep2p,registration,ippp,http,httpm,httpc,httpcm ,defaulthandler" -webconfig all
然后使用包含的 sim1.bat 和 sim2.bat 文件启动模拟器:
Sim1:
@echo off fledge.exe /app=Jvm.dll /handheld=9800 /session=Sim1 /app-param=JvmAlxConfigFile:9800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /app-param=regVersion= 3 /app-param=regDestIP=127.0.0.1 /app-param=regDestPort=19785 /app-param=regSrcPort=19788 /app-param=DisableSyncServiceRecord /title="BlackBerry 9800-1 Simulator"
Sim2:
<代码>@echo 关闭 fledge.exe /app=Jvm.dll /handheld=9800 /session=Sim2 /app-param=JvmAlxConfigFile:9800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000B /app-param=regVersion= 3 /app-param=regDestIP=127.0.0.1 /app-param=regDestPort=19785 /app-param=regSrcPort=19789 /app-param=DisableSyncServiceRecord /title="BlackBerry 9800-2 Simulator"
我忘了提到两个模拟器都可以通过浏览器连接到互联网(当 MDS 运行不正常时,它们无法连接),但在使用提供的引脚(2100000A 和 2100000B)将彼此添加为联系人后,无法在 BBM 上看到对方。
可能出了什么问题?
Suffice to say I'm struggling quite a bit with my foray into BlackBerry development. In trying to get the BBM SDK sample apps (platformdemo and tictactoe) working, I fear I've taken a step backwards.
You see, I initially had it set up so that two BlackBerry simulators could message each other using BBM.
Now, that no longer works, and I simply can't figure out why. Why would the BBM communication not work?
I'm running:
BBM SDK Beta 4_03_10_2011
BlackBerry_Simulators_6.0.0.313_9800
MDS v3.5.3 (I've verified that this is running correctly, downloaded the unlimited strength encryption policy jars etc.)
Java JDK v1.6.0_25 (JRE v6)
I've uninstalled and reinstalled everything, including Java. I run the MDS first using this command line:
"run.bat" -log.console.dump -feature "bbm,keynego,monitor,servicebook,cmimep2p,ep2p,registration,ippp,http,httpm,httpc,httpcm,defaulthandler" -webconfig all
then start up the simulators using the included sim1.bat and sim2.bat files:
Sim1:
@echo off
fledge.exe /app=Jvm.dll /handheld=9800 /session=Sim1 /app-param=JvmAlxConfigFile:9800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /app-param=regVersion=3 /app-param=regDestIP=127.0.0.1 /app-param=regDestPort=19785 /app-param=regSrcPort=19788 /app-param=DisableSyncServiceRecord /title="BlackBerry 9800-1 Simulator"
Sim2:
@echo off
fledge.exe /app=Jvm.dll /handheld=9800 /session=Sim2 /app-param=JvmAlxConfigFile:9800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000B /app-param=regVersion=3 /app-param=regDestIP=127.0.0.1 /app-param=regDestPort=19785 /app-param=regSrcPort=19789 /app-param=DisableSyncServiceRecord /title="BlackBerry 9800-2 Simulator"
I forgot to mention that both simulators can connect to the Internet via the browser (which they cannot do when the MDS is not running properly) but cannot see each other on BBM after adding each other as contacts using the provided pins (2100000A and 2100000B).
What could be going wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于任何感兴趣的人,我设法解决了我自己的问题。
我不知道为什么,但以前我可以简单地添加一个新联系人,输入他们的 BBM PIN,他们就会显示在 BBM 中的我的联系人列表中,准备好与他们开始聊天。
这次,我必须截取模拟器 1 的二维码屏幕截图,将其保存在 Photoshop 中,然后在模拟器 2 上使用该图像来邀请模拟器 1< /强>。
出于某种原因,这使得联系人能够看到对方。我没有黑莓手机,所以我不知道,但我真的无法想象这是它应该工作的方式,因为它要求两个用户位于同一物理位置。然而,这是我可以让它工作的唯一方法,它证明了我的其余设置(MDS)等是正确的。
For anyone interested, I managed to solve my own problem.
I have no idea why, but previously I could simply add a new contact, put in their BBM pin and they would show up on my contacts list within BBM, ready for me to start a chat with them.
This time, I had to take a screenshot of simulator 1's QR code, save it out in Photoshop, then use that image on simulator 2 to invite simulator 1.
For some reason, this allowed the contacts to see each other. I don't own a BlackBerry so I have no idea but I really can't imagine this is the way it's supposed to work since it requires both users to be in the same physical location. However, it's the only way I could get it working and it proves that the rest of my setup (MDS) and so on is correct.