ODB2 & CAN connection

Hi,

I’m new in this topic and currently working on a Dashboard for my BMW Motorcycle.
I’m using a OBDlink MX+ device to connect the bike and a 8" Android Tablet.
I want to connect ODB2 Signals for showing motordata and also CAN Data for additional signals like gears, turn signals…
How do I need to connect the adapter to RealDash?
Do I need to connect “Adapters (CAN/LIN)” or “ODB2” from the Source list?

Thanks in advance for your help!

To use both at the same time you will need two adapters and connect to both connection types. The OBD2 option uses ELM327 compatible protocol to communicate with your bike, Adapters (CAN/LIN) connection type reads a stream of CAN data and requires you to write a XML file that describes the incoming CAN frames of how they are interpreted and set to RealDash inputs. For documentation of CAN XML, see:
https://github.com/janimm/RealDash-extras/tree/master/RealDash-CAN

Thanks a lot for your support.
I understood most of the values in the .XML, but I have a question:
My bike shows the turn signal by B8 of ID 0x10c:
CF=Off, D7=Left On, E7=Right On, EF=Both On
How can I realize this in .XML and the in RealDash?

Thanks and best regards,
Bane

Lets see, those are probably encoded as bits:

0xCF: 1100 1111
0xD7: 1101 0111
0xE7: 1110 0111
0xEF: 1110 1111

So it seems like the 5th bit is on when signaling left, and 6th bit is on when signaling right. So to read these bits, use:

units="bit" conversion="V>>4"
units="bit" conversion="V>>5"

for left and right turn signal respectively.

So it needs to be bitwise conversion.
There is no way to compare it by byte, like C3=“true” or somting like this?

Conversion with bitshift you end up with input value 0 or 1. That should set the input value correctly.