Connect OBDSim to Torque on Windows through Bluetooth

徘徊边缘 提交于 2019-12-21 20:28:16

问题


I'm trying to install OBDSim on Win7 but am running into some trouble. My end goal is to run OBDSim as a bluetooth ELM327 OBDII Simulator and connect to it using the Torque app on my Android device.

I watched a video on youtube (http://www.youtube.com/watch?v=-dMjo5ySbcc) that demos exactly what I am trying to simulate but it was running Lubuntu 12.04.

I've been reading through posts on mp3car and other posts on stackoverflow over the last week but I'm still a little lost. I'm not sure exactly how obdsim makes use of com0com to get my bluetooth dongle to connect with Torque on my phone. Heres what I have so far:

  • I've paired my Android device to my computer
  • I've installed com0com and have a CNCA0 <-> COM5 pair set up.
  • I set the incoming COM Port to be COM5
  • I'm running the obdsimwindows-2011-06-11 build as suggested (Although -b is giving an invalid option.. Also bluetooth isn't listed under --help either. Does this version support bt??)
  • I am able to launch the gui successfully using 'obdsim.exe -g gui_fltk -w COM5'
  • Torque still isn't being able to connect and read from the simulator.

I think theres one more big step I'm missing, but I'm not sure what it is. I found this correspondence (http://icculus.org/pipermail/obdgpslogger/2012-January/000122.html) which sort of resembles where I'm at, but I don't know how to the bind and sdptool commands translate to windows (that was a linux problem).

Has anyone tried to set up OBDSim on Windows and connected to their Android device via bluetooth successfully?

Thanks!


回答1:


The man page, right under the bluetooth heading, says that bluetooth is not supported in windows.

http://icculus.org/obdgpslogger/manpages/render/obdsim.txt




回答2:


One more answer from stackoverflow which worked perfectly for us.

https://stackoverflow.com/a/25763606/739262




回答3:


I tried it on Win7 and it works with the -w switch ...trying to make it work on VM win7 in a Mac host still having issues.

FYI it also works thru a tcp socket I have a win7 VM where I run OBDSim and thru a redirector tcp to COM make it available from outside the VM it works ... bunch of tools to do the redirecting but none worked 4 me ended up writing my own simple socket redirector to COM in Win7. Tested it on the Mac thru a basic iOS App I wrote on the iOS simulator.



来源:https://stackoverflow.com/questions/21957505/connect-obdsim-to-torque-on-windows-through-bluetooth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!