@MortenComadan Hi,
If your OBD2 scanner can work with BLE protocols, you can take a look at the following look for some guidance:
https://uiflow-micropython.readthedocs.io/en/latest/system/m5ble.html
There are examples there and some basic info on the higher level functions to handle BLE.