Hi,
I want to use VirtualHere between a windows client and Pi server.
A USB modem is pluged on my Pi.
With a Pi B, after some communications, I have a BSOD on my client machine...
With a Pi 2, it's worst, BSOD directcly.
My Pi does not respond, most of the time, I have to reset it.
I'm not sure that logs can help because the pi semms crash...
My configuration:
server:
Pi & Pi 2 with 2015-05-05-raspbian-wheezy
version of vhusbarm 2.4.9
client:
windows 7 - 64bits
logs of server:
root@raspberrypi:/# grep vhusbdarm /var/log/syslog
Oct 6 06:25:14 raspberrypi vhusbdarm: >>> Starting v2.4.5 (Built: Sep 4 2015, 15:44:20)<<<
Oct 6 06:25:14 raspberrypi vhusbdarm: Using configuration /home/pi/config.ini
Oct 6 06:25:14 raspberrypi vhusbdarm: Server licensed to=unlicensed max_devices=1
Oct 6 06:25:14 raspberrypi vhusbdarm: Using large URB's
Oct 6 06:25:14 raspberrypi vhusbdarm: TCPServer starting...
Oct 6 06:25:14 raspberrypi vhusbdarm: Listening on all network interfaces at port 7575
Oct 6 06:25:14 raspberrypi vhusbdarm: TCPServer (7575) started
Oct 6 06:25:14 raspberrypi vhusbdarm: Found Full speed device [0403:6001] "FTDI, FT232R USB UART" at address 112
Oct 6 06:25:16 raspberrypi vhusbdarm: Callback: #027VirtualHere USB Sharing#006_vhusb#004_tcp#005local Name Registered
Oct 6 06:25:46 raspberrypi vhusbdarm: 172.23.32.79 connected
Oct 6 06:26:07 raspberrypi vhusbdarm: Device 112 BOUND to connection 1
Oct 6 06:17:16 raspberrypi vhusbdarm: >>> Starting v2.4.5 (Built: Sep 4 2015, 15:44:20)<<<
Oct 6 06:17:16 raspberrypi vhusbdarm: Using configuration /home/pi/config.ini
Oct 6 06:17:16 raspberrypi vhusbdarm: Server licensed to=unlicensed max_devices=1
Oct 6 06:17:16 raspberrypi vhusbdarm: Using large URB's
Oct 6 06:17:16 raspberrypi vhusbdarm: TCPServer starting...
Oct 6 06:17:16 raspberrypi vhusbdarm: Listening on all network interfaces at port 7575
Oct 6 06:17:16 raspberrypi vhusbdarm: Found Full speed device [0403:6001] "FTDI, FT232R USB UART" at address 112
Oct 6 06:17:16 raspberrypi vhusbdarm: TCPServer (7575) started
Oct 6 06:17:17 raspberrypi vhusbdarm: Callback: #027VirtualHere USB Sharing#006_vhusb#004_tcp#005local Name Registered
Oct 6 06:17:23 raspberrypi vhusbdarm: Callback: #027VirtualHere USB Sharing#006_vhusb#004_tcp#005local Name Registered
Oct 6 08:01:29 raspberrypi vhusbdarm: 172.23.32.79 connected
Thank you for your help
tested with 3.1.6 client and 2.5.0 server
Oct 6 08:28:12 raspberrypi vhusbdarm[3263]: >>> Starting v2.5.0 (Built: Oct 5 2015, 23:26:34)<<<
Oct 6 08:28:12 raspberrypi vhusbdarm[3263]: Using configuration /home/pi/config.ini
Oct 6 08:28:12 raspberrypi vhusbdarm[3264]: Server licensed to=unlicensed max_devices=1
Oct 6 08:28:12 raspberrypi vhusbdarm[3264]: Using large URB's
Oct 6 08:28:12 raspberrypi vhusbdarm[3264]: TCPServer starting...
Oct 6 08:28:12 raspberrypi vhusbdarm[3264]: Listening on all network interfaces at port 7575
Oct 6 08:28:12 raspberrypi vhusbdarm[3264]: Found Full speed device [0403:6001] "FTDI, FT232R USB UART" at address 112
Oct 6 08:28:14 raspberrypi vhusbdarm[3264]: Callback: #027VirtualHere USB Sharing#006_vhusb#004_tcp#005local Name Registered
Oct 6 08:28:18 raspberrypi vhusbdarm[3264]: 172.23.146.104 connected
Oct 6 08:28:24 raspberrypi vhusbdarm[3264]: Connection 1 detected remote disconnect
Oct 6 08:28:28 raspberrypi vhusbdarm[3264]: Sending msg size to connection 1 didnt complete (32,Broken pipe)
Oct 6 08:28:32 raspberrypi vhusbdarm[3264]: Connection 1 successfully removed (reason:timeout)
Oct 6 08:28:33 raspberrypi vhusbdarm[3264]: 172.23.33.184 connected
Oct 6 08:29:20 raspberrypi vhusbdarm[3264]: Device 112 BOUND to connection 2
Oct 6 08:40:14 raspberrypi vhusbdarm[3264]: VirtualHere 2.5.0 caught signal 11 (Segmentation fault) and must exit. Sorry for the inconvenience, please contact mail@virtualhere for help
Oct 6 08:40:14 raspberrypi vhusbdarm[3264]: Backtrace:
Oct 6 08:40:14 raspberrypi vhusbdarm[3264]: ip = 212ed4, sp = 76edaba0
Oct 6 08:40:14 raspberrypi vhusbdarm[3264]: ip = 2056e4, sp = 76edae90
Oct 6 08:40:14 raspberrypi vhusbdarm[3264]: End backtrace
Can you try with this build
Can you try with this build https://www.virtualhere.com/vhusbdarm and post the log here if/when it crashes. this build has more debugging info. Run it on your pi.
tests with debug version
1st test, vhusbdarm server crash:
Oct 6 13:19:22 raspberrypi vhusbdarm[2066]: >>> Starting v2.5.0 (Built: Oct 6 2015, 20:07:29)<<<
Oct 6 13:19:22 raspberrypi vhusbdarm[2066]: Using configuration /home/pi/config .ini
Oct 6 13:19:23 raspberrypi vhusbdarm[2066]: Server licensed to=unlicensed max_d evices=1
Oct 6 13:19:23 raspberrypi vhusbdarm[2066]: Using large URB's
Oct 6 13:19:23 raspberrypi vhusbdarm[2066]: TCPServer starting...
Oct 6 13:19:23 raspberrypi vhusbdarm[2066]: Listening on all network interfaces at port 7575
Oct 6 13:19:23 raspberrypi vhusbdarm[2066]: Found Full speed device [0403:6001] "FTDI, FT232R USB UART" at address 112
Oct 6 13:19:24 raspberrypi vhusbdarm[2066]: Callback: #027VirtualHere USB Shari ng#006_vhusb#004_tcp#005local Name Registered
Oct 6 13:19:30 raspberrypi vhusbdarm[2066]: Callback: #027VirtualHere USB Shari ng#006_vhusb#004_tcp#005local Name Registered
Oct 6 13:28:35 raspberrypi vhusbdarm[2066]: 172.23.33.184 connected
Oct 6 13:28:51 raspberrypi vhusbdarm[2066]: Device 112 BOUND to connection 1
Oct 6 13:29:42 raspberrypi vhusbdarm[2066]: VirtualHere 2.5.0 caught signal 11 (Segmentation fault) and must exit. Sorry for the inconvenience, please contact mail@virtualhere for help
Oct 6 13:29:42 raspberrypi vhusbdarm[2066]: Backtrace:
Oct 6 13:29:42 raspberrypi vhusbdarm[2066]: ip = 2143ec, sp = 76ec4bd0
Oct 6 13:29:42 raspberrypi vhusbdarm[2066]: ip = 27d04, sp = 76ec4ec0
Oct 6 13:29:42 raspberrypi vhusbdarm[2066]: ip = 27f48, sp = 76ec4ee0
Oct 6 13:29:42 raspberrypi vhusbdarm[2066]: ip = 211080, sp = 76ec4f08
Oct 6 13:29:42 raspberrypi vhusbdarm[2066]: ip = 2166f0, sp = 76ec4f20
Oct 6 13:29:42 raspberrypi vhusbdarm[2066]: End backtrace
second test, after started vhusbdarm, after 2 minutes, I had BSOD on windows client machine. I could not communicate with the raspberry, I restarted and there are the logs:
Oct 6 13:32:35 raspberrypi vhusbdarm[2690]: >>> Starting v2.5.0 (Built: Oct 6 2015, 20:07:29)<<<
Oct 6 13:32:35 raspberrypi vhusbdarm[2690]: Using configuration /home/pi/config.ini
Oct 6 13:32:35 raspberrypi vhusbdarm[2691]: Server licensed to=unlicensed max_devices=1
Oct 6 13:32:35 raspberrypi vhusbdarm[2691]: Using large URB's
Oct 6 13:32:35 raspberrypi vhusbdarm[2691]: TCPServer starting...
Oct 6 13:32:35 raspberrypi vhusbdarm[2691]: Listening on all network interfaces at port 7575
Oct 6 13:32:35 raspberrypi vhusbdarm[2691]: Found Full speed device [0403:6001] "FTDI, FT232R USB UART" at address 112
Oct 6 13:32:36 raspberrypi vhusbdarm[2691]: 172.23.33.184 connected
Oct 6 13:32:37 raspberrypi vhusbdarm[2691]: Callback: #027VirtualHere USB Sharing#006_vhusb#004_tcp#005local Name Registered
Oct 6 13:32:43 raspberrypi vhusbdarm[2691]: Device 112 BOUND to connection 1
Oct 6 13:19:14 raspberrypi vhusbdarm[2061]: >>> Starting v2.5.0 (Built: Oct 6 2015, 20:07:29)<<<
Oct 6 13:19:14 raspberrypi vhusbdarm[2061]: Using configuration /home/pi/config.ini
Oct 6 13:19:15 raspberrypi vhusbdarm[2061]: Server licensed to=unlicensed max_devices=1
Oct 6 13:19:15 raspberrypi vhusbdarm[2061]: Using large URB's
Oct 6 13:19:15 raspberrypi vhusbdarm[2061]: TCPServer starting...
Oct 6 13:19:15 raspberrypi vhusbdarm[2061]: Listening on all network interfaces at port 7575
Oct 6 13:19:15 raspberrypi vhusbdarm[2061]: Found Full speed device [0403:6001] "FTDI, FT232R USB UART" at address 112
Oct 6 13:19:16 raspberrypi vhusbdarm[2061]: Callback: #027VirtualHere USB Sharing#006_vhusb#004_tcp#005local Name Registered
Oct 6 13:19:24 raspberrypi vhusbdarm[2061]: Callback: #027VirtualHere USB Sharing#006_vhusb#004_tcp#005local Name Registered
Thanks for the stack trace,
Thanks for the stack trace, what that is showing is that there is a bug in the raspbian kernel when using that device. virtualhere is sending the usb data but the kernel returns an invalid pointer for the USB CONTROL request. You could try updating to the latest rasbian kernel, jessie has just been released (4.1) and see if that solves the issue.
tested with jessie
It's the same behavior with the jessie raspbian version...
Do you know if I can use vhusbdarm with Windows 10 IoT on my Pi?
thank you
Regards
No, vhusbd is for linux and
No, vhusbd is for linux and wont work with windows.
OK thank you for your quick
OK thank you for your quick support