EricSmekens / node-bluetooth-obd

Node package for communication with Bluetooth OBD connectors.
Other
267 stars 71 forks source link

WiFi #26

Open drewwells opened 7 years ago

drewwells commented 7 years ago

Can this be adapted to the wifi serial interface? 192.168.0.10:35000

EricSmekens commented 7 years ago

That would require quite some changes. Could be possible ofcourse, you just need to swap out the bluetooth-serial-connection with a wifi kind of module.

drewwells commented 7 years ago

I was thinking of switching out bluetooth with this. https://github.com/monteslu/udp-serial

Not sure if this package works, I've only got a successful connection to my elm327. Haven't been able to read or write to the port.

arjunroychowdhury commented 7 years ago

I've forked a version that uses TCP - I've tested it with obdsim so far. Seems to work fine. Work in progress. https://github.com/hsccorp/node-bluetooth-tcp-obd and an example at https://github.com/hsccorp/obd-tcp-test

My JS skills aren't up to snuff, so I'm sure I've done things that are not ideal. Happy to accept PRs and happy to get this merged with @EricSmekens library if he'd like - but I have no way to test if my changes affected the BT part (plus it will need better cleanup)

EricSmekens commented 7 years ago

Cool, I will try to have a look soon. Would be cool to merge this, and make a generic module that could work with bluetooth/tcp and serial. But time is an issue.

EricSmekens commented 7 years ago

@arjunroychowdhury Did you manage to test this on a simulator? I am willing to spend time on this project again, but testing this requires qiute a lot of time, which demotivates the effort to put into this.

Would be nice to know what you think of this.

arjunroychowdhury commented 7 years ago

@EricSmekens, yes. I'm using it with the TCP fork of obdsim and a real mobile app Summary of links: a) My TCP fork of your excellent work: https://github.com/hsccorp/node-bluetooth-tcp-obd b) TCP fork of obdsim simulator that I am using to test https://github.com/oesmith/obdgpslogger c) My sample mobile app that uses the TCP fork of your library https://github.com/hsccorp/obd-tcp-test (scroll down for screenshots - shows values being reported by obdsim)