obd-java-api icon indicating copy to clipboard operation
obd-java-api copied to clipboard

obd-java-api with SocketCAN?

Open karu2003 opened this issue 8 years ago • 10 comments

Good afternoon,

I'm developing the CAN-Bus controller for Android using SocketCAN. Does library work obd-java-api with SocketCAN?

Thank you.

Andrew.

karu2003 avatar Mar 21 '17 18:03 karu2003

95% - Yes. If your controller like ELM327 and understands it's syntaxis.

Odmink0 avatar Mar 21 '17 18:03 Odmink0

I do not use ELM327. I use RAW CAN (candump & co).

karu2003 avatar Mar 21 '17 18:03 karu2003

obd-java-api used for connect to car's CANbus via diagnose scanner based on ELM327 chip and firmware.

Odmink0 avatar Mar 21 '17 18:03 Odmink0

Clear. Tell me please. Is it difficult to change to SocketCAN? SocketCAN dont need AT comand.

karu2003 avatar Mar 21 '17 18:03 karu2003

I think that it is impossible. obd-java-api developed especially for using with AT comands.

Odmink0 avatar Mar 21 '17 18:03 Odmink0

If your add SocketCAN, can be used with RPi and more. :)

karu2003 avatar Mar 21 '17 19:03 karu2003

Read name of project: obd-java-api. obd == OBD == On-board diagnostics => https://en.wikipedia.org/wiki/On-board_diagnostics

Odmink0 avatar Mar 21 '17 19:03 Odmink0

ELM327 comand are very similar to the RAW CAN frame. I think it will not be difficult.

karu2003 avatar Mar 21 '17 19:03 karu2003

So you can fork that project and add any options and any frame format.

Odmink0 avatar Mar 21 '17 19:03 Odmink0

In theory the library can do whatever you want. Feel free to open one or more pull-requests that add features and related tests and I'll take a look :)

pires avatar Mar 22 '17 08:03 pires