When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Not sure if this belongs here or some other general tuning forum but...
What's needed to get Wine to recognize the OBD2 adapter? I created a symlink between /dev/ttyUSB0 and a com port in ~/.wine/dosdevices/. Forscan doesn't see it. I have a Windows laptop that works but it's not mine. Would like to have this laptop work if possible.
First attempt didn’t work but this has me pointed in the right direction. Probably just need some more eggnog to make it work right. Thanks for the links!
Got it working. Access to the /dev/ttyUSB0 port was limited to the root user. I added read/write to everyone and that resolved it. I may experiment to figure out what wine user needs to be added to the correct group so I don't need to open up the device to everyone or create a custom device with its own permissions but it works for now and I'm satisfied for the time being.
Created a custom device like so that modifies permissions just for this adapter. Create the file below if it doesn't exist. Get the IDs for your adapter with dmesg. This udev step was in one of the shared posts above but the MODE parameter was the magic sauce that adjusts permissions for the /dev/ttyUSB device just for this adapter.
$ cat /etc/udev/rules.d/10-local.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="elm327", MODE="0666"
Run 'wine regedit' and link a COM port to your /dev/elm327 (or whatever name you choose) device. These steps were also shared above. Manual symlinks would get overwritten by defaults when the wine service would restart until the registry values were updated.
Last edited by Peej11; Dec 28, 2023 at 09:51 PM.
Reason: Add some instructions