Coder Social home page Coder Social logo

VHCI failure for OMRON PLC about usbip-win HOT 22 CLOSED

cezuni avatar cezuni commented on July 24, 2024
VHCI failure for OMRON PLC

from usbip-win.

Comments (22)

cezuni avatar cezuni commented on July 24, 2024

@halimselim : I tried your usbip server several times. All results were same that vhci failed after selecting configuration. In the window kernel log, IRP_MN_REMOVE_DEVICE was shown after selecting configuration. Maybe ORMON plc driver removed it. There were no warning or error in logs of usbip-win.

By the way, your server cannot be attached any more because your device was not detached by mistake before my client was to be reset. If a usbip connection is lost without detach, a stub server should seem to be reset manually.

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

Thank you for testing, I rebinded the device. What do you suggest me to do ? Device driver works fine when connected to usb directly, but fails with usbip. And usbip shows no error as you say. Is there anything we could do ?

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

I try again to attach to your server.. and never forget to detach it.

We should check if usb compatible ids are same for both cases(via usbip-win or directly). Can you compare usb identifiers? For more details, please refer to
#25 (comment) .

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

Here's are logs from my testing: usbip_log.txt, debug_pdu.log

Your server returned -EPIPE(-32) for selecting configuration. Your server log may contain useful information. Can you share it?

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

filtered server log (/var/log/syslog) is attached
log.txt

I can give ssh access to the server if anyone needs.

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@halimselim : The server log also said that selecting conf failed with -EPIPE. Control port may be stalled. I need to check further that vhci handles correctly the result code.
BTW, file attachment would be better than inserting log entries as a comment text. This page will be too long if all logs are inserted as comments. 😄

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@halimselim : Is PLC_NS driver correct ? The driver removes the usbip device after selecting configuration even if a vhci forcefully returns success code.

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

If you connect to my local pc, I will plug in omron plc to the physical usb port. Then you will be able to compare the difference. Driver loads successfully.

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@halimselim : I do not suspect the correctness of a PLC driver. I asked you that driver files to be installed are located in CXOne-Drivers2017/drivers/USB/8/PLC_NS/64bit folder of driver zip.

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

Yes that's correct. I reinstalled to confirm.
windriver.txt

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@halimselim : When a plc is directly attached without usbip-win, what are driver file details and compatible ids of the device? They can be found from device properties in the device manager.
Also I want to know "lsusb -v" results of the linux server.

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

Here is lsusb -v result: lsusb_v.txt
I will go to office 8 hours later, only then I can directly attach to get those details.

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

omrondriver.txt
and many more details are present

omrondriver

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@halimselim : Sadly, compatible ids are same between a real device and a virtual device via usbip-win. I had asked also driver file details. Which drivers are loaded for a plc device ? That information resides in a driver tab of a properties window.

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

omron2

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@halimselim : Loaded drivers are also same..
Currently, I can't figure out the reason why a plc driver removes a virtual plc device if the device is created via usbip-win. Can you capture usb packets when a plc device is directly attached ? I had used Wireshark to capture.

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

ws2.zip

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@halimselim : Was ws2.pcapng in the zip file generated with a plc driver directly attached without usbip-win? But the wireshark log you've sent is exactly same with usbip-win log. Weird!!

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

Yes it is the log of direct attach

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

I know that eltima software works well with this plc. When it is installed it creates its own branch (Eltima Usb Stub) under Device Manager tree. But usbip is listed under System Devices branch. Could it be related ?
ps: virtualhere fails too with same code:10 error

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@halimselim :

I know that eltima software works well with this plc. When it is installed it creates its own branch (Eltima Usb Stub) under Device Manager tree. But usbip is listed under System Devices branch. Could it be related ?

This means that device classes of both case are different: Eltima Usb Stub(custom device class) and System(usbip-win). In my opinion, such a difference does not matter. By the way, is it USB class(not system class) for usbip-win and directly attached case ?

Now, I should look into the beginning parts of usbip-win logs such as IRP_MN_QUERY_XXX related stuff. In fact, many bus queries have not been handled properly in usbip-win because there's no problem with unhandled queries. It can be a long journey. It may be better to use eltima.. 😢

from usbip-win.

halimselim avatar halimselim commented on July 24, 2024

Yes Omron PLC appears under "Universal Serial Bus Controllers" in both cases. We will be watching the developments, thanks for your time.

from usbip-win.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.