I'm trying to get the server running on a raspberry pi.
What i would like is to connect remotely to an omron plc. This plc has a usb to serial adapter to connect.
I can connect my pc to the remote usb to serial adapter but as soon as I start the omron application the following shows up in the raspberry log:
Sep 21 12:16:21 raspberrypi vhusbdarm: 192.168.4.158 connected
Sep 21 12:16:31 raspberrypi vhusbdarm: Device 113 BOUND to connection 1
Sep 21 12:16:45 raspberrypi vhusbdarm: VirtualHere caught signal 11 (Segmentation fault) and must exit. Sorry for the inconvenience, please contact mail@virtualhere for help
Sep 21 12:16:45 raspberrypi vhusbdarm: Backtrace:
Sep 21 12:16:45 raspberrypi vhusbdarm: ip = 2120f0, sp = 76f1cbd0
Sep 21 12:16:45 raspberrypi vhusbdarm: ip = 271e4, sp = 76f1cec0
Sep 21 12:16:45 raspberrypi vhusbdarm: ip = 27428, sp = 76f1cee0
Sep 21 12:16:45 raspberrypi vhusbdarm: ip = 20eeb0, sp = 76f1cf08
Sep 21 12:16:45 raspberrypi vhusbdarm: End backtrace
I hope you can help me with this problem. If you need any more info please let me know.
Is it the standard or
Is it the standard or optimised pi build?
I treid it on a raspberry pi
I treid it on a raspberry pi and a pi2.
Both with raspbian wheezy installation.
When I use other devices it works but only the omron software causes the problem.
I'm running the standaard
I'm running the standaard free build of the server software
When virtualhere does crash
When virtualhere does crash it is almost always because of a kernel bug, what occurs is that virtualhere tells the raspbian kernel it wants to make a usb transfer, the kernel then sends back invalid data which is impossible to use. Its not possible to know its invalid data nor avoid accessing it, and hence virutalhere crashes. Do you know what type of serial device the PLC uses? Is is possible to use an FTDI serial device for the transfers instead. FTDI is reliable with virtualhere...,
The usb to serial converter
The usb to serial converter is branded as being from omron but linux reports it as "future technology devices international, ltd FT232 usb-serial (UART) IC"
From what I know this is and FTDI chip inside.
Could you download http://www
Could you download http://www.virtualhere.com/phj/vhusbdarm and give that a try, that may provide more debugging info when it crashes...Post the stack here if/when it crashes.
Sep 22 07:05:18 raspberrypi
Sep 22 07:05:18 raspberrypi vhusbdarm: Found Full speed device [0403:6001] "FTDI, USB <-> Serial" at address 113
Sep 22 07:05:19 raspberrypi vhusbdarm: Callback: #027VirtualHere USB Sharing#006_vhusb#004_tcp#005local Name Registered
Sep 22 07:08:04 raspberrypi vhusbdarm: 192.168.4.158 connected
Sep 22 07:09:17 raspberrypi vhusbdarm: Device 113 BOUND to connection 1
Sep 22 07:09:27 raspberrypi vhusbdarm: VirtualHere caught signal 11 (Segmentation fault) and must exit. Sorry for the inconvenience, please contact mail@virtualhere for help
Sep 22 07:09:27 raspberrypi vhusbdarm: Backtrace:
Sep 22 07:09:27 raspberrypi vhusbdarm: ip = 213778, sp = 76efebd0
Sep 22 07:09:27 raspberrypi vhusbdarm: ip = 27be8, sp = 76efeec0
Sep 22 07:09:27 raspberrypi vhusbdarm: ip = 27e2c, sp = 76efeee0
Sep 22 07:09:27 raspberrypi vhusbdarm: ip = 210538, sp = 76efef08
Sep 22 07:09:27 raspberrypi vhusbdarm: ip = 215a7c, sp = 76efef20
Sep 22 07:09:27 raspberrypi vhusbdarm: End backtrace
Does this help?
Yes that is helpful, it shows
Yes that is helpful, it shows the correct stack-trace. The kernel is returning a corrupted result of a usb Control Transfer.
So this is definately some bug in the raspbian kernel, what raspbian version are you using, 3.18 or 4.0+ ?
Whatever the case, there is not much that can be done until the kernel is fixed...
I'm running version 4.1.6. So
I'm running version 4.1.6. So I think that is the latest version. Thank you for your help.
Omron
Hi, has this problem been solved? I'm looking to use Raspi USB server for Omron PLC programming.
Don't know, its not in
Don't know, its not in VirtualHere, give it a try with your plc