Back to top

running Drivegui under Linux

0 votes
+ vote
Vote up!

Hello,

I am tring to run Drivegui configuration software under Linux Debian 10 by "https://www.kollmorgen.com/en-us/developer-network/does-setup-software-work-debian-linux-operating-system/".

I installed Drivegui under wine software

"# wine --version
wine-6.0.1
"

and it is running till I want to connect to drive via RS232 com port build in pc motherboard.

when I listed

" [email protected]:/home/user/.wine/dosdevices# ls -l "

return is

"

[email protected]:/home/user/.wine/dosdevices# ls -l
total 0
lrwxrwxrwx 1 user user 10 Sep  3 12:57 c: -> ../drive_c
lrwxrwxrwx 1 user user 10 Sep 14 15:30 com1 -> /dev/ttyS0
-rw-r--r-- 1 user user  0 Sep 14 15:26 com10
lrwxrwxrwx 1 user user 10 Sep 14 15:30 com2 -> /dev/ttyS1
lrwxrwxrwx 1 user user 10 Sep 14 15:30 com3 -> /dev/ttyS2
lrwxrwxrwx 1 user user 10 Sep 14 15:30 com4 -> /dev/ttyS3
lrwxrwxrwx 1 user user 23 Sep  3 13:00 d: -> '/media/user/myUSB

lrwxrwxrwx 1 user user  9 Sep  3 12:57 d:: -> /dev/sdb1
lrwxrwxrwx 1 user user  8 Sep  3 12:57 e:: -> /dev/sdb
lrwxrwxrwx 1 user user  8 Sep  3 12:57 f:: -> /dev/sr0
lrwxrwxrwx 1 user user  1 Sep  3 12:57 z: -> /

"

there is row with wine com ports link

"lrwxrwxrwx 1 user user 10 Sep 14 15:30 com1 -> /dev/ttyS0"

that means, when I run windows Drivegui in Linux under wine, everything what is sending from Drivegui to COM1 will be sending to "/dev/ttyS0" by default in Linux.

here I am setting baud rate to "38400" as was default option on Windows machine and it worked well.

"[email protected]:/# stty -F /dev/ttyS0 38400"

Here I am check again the speed and it is setted to "38400"
"[email protected]:/# stty -F /dev/ttyS0 -a
speed 38400 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 100; time = 2;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -flusho -extproc
"

But I still getting error message with communication error like when we have wrong post or speed setted...

What I should try fix for correct working Drivegui under Linux please?

Thanks for any response.

Regards Slav

0 Comments

1 Answer

0 votes
+ vote
Vote up!

If somebody will have similar problem follow this steps from beging,

YOU MUST HAVE RS232 COM PORT AT YOU PC TO AVOID ALL PROBLEMS WITH "USB TO RS232 REDUCTION MESS" >

  1. check your distro of Linux "uname -a", in my case "Linux debian 4.19.0-17-rt-amd64"
  2. go to winehg website and choose you distro "https://wiki.winehq.org"
  3. instal winehq via terminal for your distro of Linux"https://wiki.winehq.org/Debian"
  4. download DriveGUI from "https://www.kollmorgen.com/en-us/developer-network/downloads/"
  5. open Terminal and go to Downloads "cd /home/user/Downloads/"
  6. list avaible file in your directory "ls"
  7. copy via mouse right click command full name of you file ... in my case it is "DriveGUI3.4.1Final215a.zip"
  8. unzip necessary files via "unzip DriveGUI3.4.1Final215a.zip"
  9. list avaible file in your directory "ls"
  10. hit install driveGUI via wine "wine DriveGUI3.4.1Final215a.exe"
  11. there it will open wine and windows looks window and just hit ... next next next finish like in windows
  12. go to your BIOS and find name of your COM port, if you have just ONE you will see only its... in my case it is on address "0x3f8"
  13. in terminal show up your all avaible COM ports via command "dmesg |grep ttyS*" in my case it is
    "[    0.240597] console [tty0] enabled

    [    1.541686] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A" and its address is here same and its name it is in Linux "ttyS0"...

  14. check all setting of your COM in terminal via "stty -F /dev/ttyS0 -a" in my case
    "[email protected]:/home/user# stty -F /dev/tty0 -a

    speed 9600 baud; rows 48; columns 128; line = 0;"

  15. set baud rate to 38400 in terminal via "stty -F /dev/ttyS0 38400", repeat step 14 to verify baud rate.
    HERE IS COM PORT SETTED UP...
    next we will chcek symbolik links of winehq...
  16. go to folder where you have installed winehq via terminal, in my case
    "cd
    cd /home/user/.wine/dosdevices/"
  17. list avaible files via terminal "ls", for default you will have some files like COM1, COM2, etc etc... now follow nxt steps and fill up missing stuff...
  18. go to "windows" registers via terminal command "wine regedit", pop up windows looks regedit in the tree ,at left side of window, scroll down to "HKEY_LOCAL_MACHINE\Hardware\DEVICEMAP\SERIALCOMM" and check if is there at right side of window string with name "\Device\Serial0" and with value "COM1"... if not create new one with "right mouse click - new/key/string" and fill infos higher
  19. then in same window go to "HKEY_LOCAL_MACHINE\Software\Wine\Ports" and check if string with name "COM1" has value "/dev/ttyS0"... if not create now one with "right mouse click - new/key/string" and fill infos higher
  20. exit regedit via menu bar
  21. you are still in folder "/home/user/.wine/dosdevices/" and list avaible links here via terminal command "ls -l" ... in my case are
    "total 0

    lrwxrwxrwx 1 user user 10 Sep  3 12:57 c: -> ../drive_c
    lrwxrwxrwx 1 user user 10 Sep 17 09:05 com1 -> /dev/ttyS0
    lrwxrwxrwx 1 root root 10 Sep 16 05:44 COM1 -> /dev/ttyS0
    lrwxrwxrwx 1 user user  9 Sep  3 12:57 d:: -> /dev/sdb1
    lrwxrwxrwx 1 user user  8 Sep  3 12:57 e:: -> /dev/sdb
    lrwxrwxrwx 1 user user  8 Sep  3 12:57 f:: -> /dev/sr0
    lrwxrwxrwx 1 user user  1 Sep  3 12:57 z: -> /"
    I do not know if it depends at symbols, I created both ones... then if you have not any links between COM1/com1 and /dev/ttyS0 create one via terminal command "ln -s /dev/ttyS0 COM1" ... repeat and check if its avaible links here via terminal command "ls -l"

  22. we have linked it right and now...
  23. download file below with run script for correct working setup and place them at desktop....
  24. NOT RUN DRIVEGUI APP via desktop shortcut because it is not configured right ...
  25. change suffix/name of "DriveGUI.txt" to "DriveGUI.sh"
  26. allows file to run as program vie ... rigt click on file "DriveGUI.sh"... Properties ... Permissions ... hit check box "allow this file run as a program"
  27. it is ready to run...
  28. now just double click at file "DriveGUI.sh" - it is just path to file with right configuration + run command there
    "cd /home/user/.wine/drive_c/'Program Files'/Kollmorgen/DriveGUI/

    wine DriveGUI.exe"

    now it shows pop up "communication menu" is here... enjoy it guys!!!

Attachment 
0 Comments
ANSWER THIS QUESTION
You may login with either your assigned username or your e-mail address.
The password field is case sensitive.

If you do not have an account, click here to register.