Serial port problem in dot NET application

Questions about Wine on Linux
Locked
svrkispm
Newbie
Newbie
Posts: 2
Joined: Thu Aug 01, 2013 4:51 am

Serial port problem in dot NET application

Post by svrkispm »

Hi, I have problem with .NET application ( http://92.61.34.5/Downloads/FM22/FM22XX ... 0.2.33.zip downloadable also from http://www.teltonika.lt/downloads/). Application have not list serial ports. Workaround was to add registry key like suggested in http://wine-wiki.org/index.php/Wine_Reg ... l_Com_Port.

I have added before this step also some other keys with no effect.

Now I see given port, but when I try to connect to device, it will show me message box with error:

Code: Select all

No response from device. You should connect to COM1 port and ensure that device is powered on.
In console I see this error (which is probably also here http://forum.winehq.org/viewtopic.php?t=9058):

Code: Select all

fixme:ntdll:server_ioctl_file Unsupported ioctl 1b0064 (device=1b access=0 func=19 method=0)
Given device is tracking device. In dmesg it is identified as follows:

Code: Select all

[603747.440032] usb 5-2: new full-speed USB device number 2 using uhci_hcd
[603747.618075] usb 5-2: New USB device found, idVendor=1d12, idProduct=f220
[603747.618082] usb 5-2: New USB device strings: Mfr=4, Product=24, SerialNumber=38
[603747.618086] usb 5-2: Product: FM22XX
[603747.618090] usb 5-2: Manufacturer: TELTONIKA
[603747.618093] usb 5-2: SerialNumber: TEST
[603748.569958] cdc_acm 5-2:1.0: ttyACM0: USB ACM device
[603748.572225] usbcore: registered new interface driver cdc_acm
[603748.572228] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
I have this symlinks:

Code: Select all

svrkispm@svrkispm:~/.wine/dosdevices$ ls -alh
lrwxrwxrwx 1 svrkispm svrkispm  10 apr  9 11:19 c: -> ../drive_c
lrwxrwxrwx 1 svrkispm svrkispm  12 aug  1 10:52 com1 -> /dev/ttyACM0
lrwxrwxrwx 1 svrkispm svrkispm  12 aug  1 10:59 COM1 -> /dev/ttyACM0
I have also moddified permissions for tty device:

Code: Select all

svrkispm@svrkispm:~$ ls -alh /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 0 aug  1 10:47 /dev/ttyACM0
And I am also in dialout group (just for sure).

Please send me some info how to debug problem and how to make app work. I have no problem to disassemble app and have a look at its code, but som more general proccess could exist.
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Serial port problem in dot NET application

Post by lahmbi5678 »

Hi,

wine's serial port support is still incomplete, USB completely unsupported (regarding devices that need windows hardware drivers installed to work properly). The missing ioctl function may be the cause of your issue. Does this application/device need a hardware driver installed?

The general advice would be to install latest wine and if it still wouldn't work, file a bug report. This forum is not a developer forum, filing a bug report may be the best way to get in touch with the wine developers. Additionally you could try to contact some wine devs via wine's IRC channel.
svrkispm
Newbie
Newbie
Posts: 2
Joined: Thu Aug 01, 2013 4:51 am

Re: Serial port problem in dot NET application

Post by svrkispm »

lahmbi5678 wrote:wine's serial port support is still incomplete, USB completely unsupported (regarding devices that need windows hardware drivers installed to work properly). The missing ioctl function may be the cause of your issue. Does this application/device need a hardware driver installed?
Device has USB port. After connecting it to linux, it will be recognized as usb to serial converter and serial port will be available at /dev/ttyACM0. Using device in windows xp require to install driver for given arm processor to be able to use usb to serial converter feature. From application is communication done only through serial port. To answer your question, on windows it is needed to install usb to serial converter driver. On linux drivers are not needed.
lahmbi5678 wrote:The general advice would be to install latest wine and if it still wouldn't work, file a bug report. This forum is not a developer forum, filing a bug report may be the best way to get in touch with the wine developers. Additionally you could try to contact some wine devs via wine's IRC channel.
I am using probably latest wine available for my ubuntu precise. Have a look at versions:

Code: Select all

svrkispm@svrkispm:~$ wine --version
wine-1.6
svrkispm@svrkispm:~$ uname -a
Linux blackdawn 3.8.0-030800-generic #201302181935 SMP Tue Feb 19 00:36:19 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Thanks for advice. I have written to irc. I will wait a little bit and than fill new bug if no advice will come.
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Serial port problem in dot NET application

Post by lahmbi5678 »

Hi,

you really should file a bug report, if you haven't already done so. The idea is to provide the necessary information for the wine developers in one place, even if you discuss with them via IRC. There is some ongoing work in that area of wine, but you shouldn't expect too much. In the past the results with wine and usb/serial converters have been very mixed. If you really need that stuff running under linux, you may consider installing Windows XP in a VM like virtualbox or VMWare.
Locked