Reading Speeduino Secondary Serial with broader realtime dataset command "n". Then passes the data with Realdash CAN to Realdash. Testing has been done with CP21xx UART-USB adapter but should work similarly with HC-05 Bluetooth adapter.
Code is designed to use ESP32 DEVKIT V1 38PIN Board and 8 channel Optocoupler. And optocoupler is used to input dash warning lights also to the CAN protocol. But you can add what inputs you like.
2SerialToRealdashCAN_confiq.xml
This file is used by Realdash to getting it read the custom channel configuration. Just add it in Realdash -> Garage -> Connections -> Realdash CAN -> Custom Channel Description
This is how i have personally set it up. Polarity of the warning/indicator lights matters only in a optocoupler input side, since the boards have shared grounding on input side.
This code is based of janimm 'Realdash Arduino CAN example' and pazi88 'Serial3toBMWcan' and modified by paleppp.