|
Post by tenochtitlanuk on May 8, 2020 8:49:43 GMT -5
Recently found a USB A2D converter in my electronics glory hole. It streams ten bit values continuously. Intended to try it on LB BUT.. ...I run LB4.5 under Wine and don't know how to access /dev/ttyUSB0 ...I have LB5 running native on Linux, but serial input is not yet available there...
So, do I have to fire up my old one remaining Windows 10 machine?? Thoughts??
|
|
|
Post by gidiom2 on May 9, 2020 2:53:43 GMT -5
Recently found a USB A2D converter in my electronics glory hole. It streams ten bit values continuously. Intended to try it on LB BUT.. ...I run LB4.5 under Wine and don't know how to access /dev/ttyUSB0 ...I have LB5 running native on Linux, but serial input is not yet available there...
So, do I have to fire up my old one remaining Windows 10 machine?? Thoughts??
Serial port ttyUSB0 has to be in the dialout group, usually the default, also the user, so add the user to dialout group. This worked for me, to enable access the serial port on LB4.5 running under wine .
sudo usermod -a -G dialout ${USER}
IIRC, it is necessary to restart linux to complete the effect.
Just remembered, com1 needs to be symlinked to ttyUSB0. If not done already, google 'symlink com1 to ttyUSB0' and you should get an answer.
Which wine version are you using? Later versions seem to manage tty to com links via wine registry not symlinks. Maybe that will help.
Further edit! I can confirm that Mint 19.3 serial ttyUSB0 to wine(version4) com1 works when wine registry is edited as shown in above link. Tested with a usb serial GPS dongle.
Hope this enables you to get your A2D converter working.
|
|
|
Post by tenochtitlanuk on May 9, 2020 11:55:16 GMT -5
Thanks for taking the time to give useful suggestions. And further thoughts!
I still can't get it working under Wine. Tried symlink, group access, Registry editing, resetting... I wonder if I did the registry edit wrongly? My set-up is the same as yours.. Mint 19.3 Cinnamon, Wine 4.0.5
Very frustrating to see the device steadily streaming the ten channels from a Linux serial terminal, but be unable to access them in LB/Wine
|
|
|
Post by gidiom2 on May 9, 2020 14:53:42 GMT -5
Sorry it still does not work. I'm running xfce rather than cinnamon if that makes any difference.
Try removing any symlink created by terminal command, then check registry entry as below.
Add user to dialout group, sudo usermod -a -G dialout ${USER}
Dosdevices permission problem? sudo chmod 666 ~/.wine/dosdevices/com1
Does dmesg command indicate ttyUSB0? Another device I have indicates ttyACM0, which should be reflected in the registry edit. I think you must have the correct serial device as you said the data could be seen in a terminal.
The registry section is HKLM/Software/Wine/Ports, add new key 'Name com1, Type REG_SZ, Data /dev/ttyUSB0' If it still fails, I have no other suggestions but will let you know if I discover anything. Should this thread be moved to 'Hardware Interfacing' rather than 'Wishlist'?
|
|
|
Post by tenochtitlanuk on May 10, 2020 16:31:27 GMT -5
Tried again on another machine. Still get Com1 as an invalid handle. One small success- managed to get 'cutecom' in Linux on the menu selection to work withoud needing 'sudo cutecom' at terminal as previously. But any comms terminals installed under Wine fail to see the port.. Out of time and ideas. Not a deal-breaker for me, but very annoying! Thanks for your suggestions- perhaps you'll think of something which should have'seemed obvious to me!
|
|
|
Post by gidiom2 on May 11, 2020 1:38:33 GMT -5
Two further suggestions, in Wine configuration I have windows version set at 7 and com1 in registry is in lower case as it appears in .wine/dev/dosdevices. Are you using Com1 as shown in your last post and if so does it make any difference? In linux Com1 <> com1. The ubuntu help is confusing, it refers to COM1 but shows com1 in registry entry and in commands. As I have wine serial com1 working on three different machines, two older versions utilising symlinks, I'm out of ideas now, maybe someone else has an answer, there must be one - it does work! And its great to be able to run LB serial on a linux machine.
|
|