-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection with Siemens MPI Adapter Error #53
Comments
Hi, could you please run |
|
I think, the idProduct is different. The old version has 0004 and the new version has 01fe. I have already change the udev rule to the new id. But maybe it must be change in the mpi-s7 lib |
Exactly. The mpi-s7 library searches for USB devices by their vendor and product ID. Maybe you can try manually changing it there and check if it works. My only concern is whether this newer version implements the same protocol or not |
The file you'd have to change is mpi-s7/src/nodes7.js. There's a constant "MPI_USB_PID" there on line 42 that you can try putting the other product ID. Let me know the result of that, then maybe we can add as a second possible check |
Hi. unfortunately that does not work. I get this error in Node-RED
|
Is there any stack trace following this message?
This will make the mpi-s7 print a lot of debug info on the console. Could you eventually run your node-red instance like this and post the result? |
|
Looks like the adapter's interface is different from all adapters we have here (and therefore the code is prepared to handle). The code expects a device configuration layout that does not match with your adapter's one while initializing the USB device, so the endpoint is left undefined, and we get this error. Unfortunately I'd say we can't support your adapter right now, as it looks like it will require more work on the library side, and we don't have an adapter like yours here for development and testing. |
Hi. I've tried it with the old version adapter but i get the same error. I roll back all changings, udev and nodes7.js to id 0004 and restart the system. |
I think VirtualBox shouldn't be a problem. Is the |
Hi this is the output from the old version Adapter (6ES7 972-0CB20-0XA0)
and this is the output from the new version (6GK1 571-0BA00-0AA0)
You write something about two endpoints. But I can see only one endpoint. |
I was wrong. There are two endpoint :-) |
Just for the reference, here's what the output of my
Note that the enpoint addresses are different ( As a test, would you mind changing the hardcoded addresses, so we can check if this is going to work? The file to be changed is |
Hi there. Now it's running. It seems that my virtual OS is corrupted. I try it with a fresh debian 10 installation and all worked fine with the old version adapter. |
Oh nice. Have you had to change the endpoint numbers as above? What about the newer version? |
Hi. The connection with the new version adapter can not be established.
|
Hi guys, i'm having the same issue with the old version. The error that i get is LIBUSB_ERROR_ACCESS |
@deltafox1002 I'm closing this issue for now, and I'm documenting that we currently support only the "old" version of the adapter on the original "mpi-s7" repository. Thanks for your contribution |
Hello @ALL
My system:
Linux Mint 19 x64
SIMATIC PC Adapter USB A2 (6GK1 571-0BA00-0AA0)
I have a problem with the connection with MPI.
I installed the mpi-s7 package and also the udev rule.
The system has found the adapter and can be found in /dev
But when i start the S7 Node i get an error message
Error connecting to PLC: Error: Could not find any MPI-USB adater, check if the device has been correctly installed
The user is also in group "dialout".
The text was updated successfully, but these errors were encountered: