psmoveservice / PSMoveService

A background service that communicates with the psmove and stores pose and button data.
Apache License 2.0
587 stars 148 forks source link

PSMoveService no response #349

Closed qinxi117 closed 7 years ago

qinxi117 commented 7 years ago

I have a problem on testcamera.exe, once i opened testcamera.exe, it will be freezed after a while.I thought it is just testing process, so i just ignore it. However, once i onpened PSmoveservice.exe, no matter what i did on configtool, calibrating or testing. After a while, it is freezed too, I firstly thought it was the camera's problem because the picture is freezed when i was doing color calibrate.but then i found i can still click 'return to main menu'.then the configtoll says 'waiting for server response...'. The time period from i opened PSmoveservice.exe to it has no reponse is different each time i tried. I did all calibrate only one time, and ready to play then it has no reponse. none of the other times i tried last that long. p.s. my network connection is alway good.

Log1: [2017-01-26 18:01:06.409]: main - Starting PSMoveService v0.9-alpha 6.0.9 [2017-01-26 18:01:06.416]: bluetooth_get_host_address - Found a bluetooth radio [2017-01-26 18:01:06.418]: bluetooth_get_host_address - Retrieved radio info [2017-01-26 18:01:06.427]: PSMoveController::open - Opening PSMoveController(\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002054c_pid&03d5&col01#8&325f24d1&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}) [2017-01-26 18:01:06.431]: PSMoveController::open - with serial_number: e0ae5e5354af [2017-01-26 18:01:06.511]: DeviceTypeManager::update_connected_devices - Device device_id 0 (PSMove) opened [2017-01-26 18:01:06.512]: PSMoveController::open - Opening PSMoveController(\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002054c_pid&03d5&col01#8&194ac530&2&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}) [2017-01-26 18:01:06.516]: PSMoveController::open - with serial_number: e0ae5e42adca [2017-01-26 18:01:07.69]: DeviceTypeManager::update_connected_devices - Device device_id 1 (PSMove) opened [2017-01-26 18:01:07.197]: PS3EyeTracker::open - Opening PS3EyeTracker(USB\VID_1415&PID_2000\6\0, camera_index=0) [2017-01-26 18:01:07.396]: SharedMemory::initialize() - Allocating shared memory: tracker_view_0 [2017-01-26 18:01:07.628]: DeviceTypeManager::update_connected_devices - Device device_id 0 (PSEYE) opened [2017-01-26 18:01:09.938]: ClientConnection::start - Starting client connection id 0 [2017-01-26 18:01:09.942]: ClientConnection::send_connection_info - Sending connection id to client 0 [2017-01-26 18:01:14.704]: ServerRequestHandler - Start controller(0) stream (pos=0,phys=0,raw_sens=0,cal_sens=0,trkr=0,roi=0)

Log2: [2017-01-26 18:16:23.40]: main - Starting PSMoveService v0.9-alpha 6.0.9 [2017-01-26 18:16:23.46]: bluetooth_get_host_address - Found a bluetooth radio [2017-01-26 18:16:23.48]: bluetooth_get_host_address - Retrieved radio info [2017-01-26 18:16:23.56]: PSMoveController::open - Opening PSMoveController(\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002054c_pid&03d5&col01#8&325f24d1&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}) [2017-01-26 18:16:23.60]: PSMoveController::open - with serial_number: e0ae5e5354af [2017-01-26 18:16:23.145]: DeviceTypeManager::update_connected_devices - Device device_id 0 (PSMove) opened [2017-01-26 18:16:23.148]: PSMoveController::open - Opening PSMoveController(\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002054c_pid&03d5&col01#8&194ac530&2&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}) [2017-01-26 18:16:23.152]: PSMoveController::open - with serial_number: e0ae5e42adca [2017-01-26 18:16:23.419]: DeviceTypeManager::update_connected_devices - Device device_id 1 (PSMove) opened [2017-01-26 18:16:23.546]: PS3EyeTracker::open - Opening PS3EyeTracker(USB\VID_1415&PID_2000\6\0, camera_index=0) [2017-01-26 18:16:23.739]: SharedMemory::initialize() - Allocating shared memory: tracker_view_0 [2017-01-26 18:16:23.959]: DeviceTypeManager::update_connected_devices - Device device_id 0 (PSEYE) opened [2017-01-26 18:16:25.336]: ClientConnection::start - Starting client connection id 0 [2017-01-26 18:16:25.338]: ClientConnection::send_connection_info - Sending connection id to client 0 [2017-01-26 18:16:28.284]: ServerRequestHandler - Start controller(0) stream (pos=1,phys=1,raw_sens=0,cal_sens=1,trkr=1,roi=1) [2017-01-26 18:16:36.283]: ServerRequestHandler - Stop controller(0) stream [2017-01-26 18:16:38.481]: ServerRequestHandler - Start controller(0) stream (pos=0,phys=0,raw_sens=0,cal_sens=0,trkr=0,roi=0) [2017-01-26 18:16:41.196]: ServerRequestHandler - Stop controller(0) stream [2017-01-26 18:16:43.728]: ServerRequestHandler - Start controller(0) stream (pos=0,phys=0,raw_sens=0,cal_sens=0,trkr=0,roi=0) [2017-01-26 18:16:45.161]: ServerRequestHandler - Stop controller(0) stream [2017-01-26 18:16:46.644]: ServerRequestHandler - Start controller(0) stream (pos=1,phys=1,raw_sens=0,cal_sens=1,trkr=1,roi=1)

cboulay commented 7 years ago

Almost every time something like this comes up it's a USB bandwidth issue. Try with only one camera; change around its USB port. Unplug other non-essential devices (bluetooth dongle). Try test_camera again and report back.

qinxi117 commented 7 years ago

@cboulay tried what you said, moved to another usb port and move my bluetooth adapter for mouse to usb2.0 port.It seems this method works.so far so good.Thank you very much. I thought the camera is just one of the peripheral equipment, it shouldn't interfere with the server.Why does the usb bandwidth may cause this issue?

qinxi117 commented 7 years ago

@cboulay server crashed again just now.Is there any other way to get a stable high bandwidth usb connection?

cboulay commented 7 years ago

The camera is communicating a lot of data (640x480 @ 60 fps). This actually comes really close to saturating USB 2.0. Anything else on the same USB root hub will overload it. Unfortunately, instead of failing gracefully, libusb hangs. Try the steps in this section of the wiki.

cboulay commented 7 years ago

This is a common issue with lots of possible solutions. It's not really something fixable in PSMoveService with code, so I'm going to close this issue. You can continue to post here and I'll still get notifications about it.

cboulay commented 7 years ago

Oh, I should add: try not using a bluetooth mouse if at all possible.

qinxi117 commented 7 years ago

@cboulay I just want to report that i finally found what does this problem caused by in my case. It is the usb extention cable.When i plug the pseye directly to my usb port.The freezing problem never happen again. I bought one that indicated in the purchase list.Maybe i just got a defective one. Or this product is in poor quality.If so you might consider to update the purchase list.

magadan commented 7 years ago

@qinxi117 same behavior here. I brought a "USB with RJ45 extensions cables" , no success too.

Working on USB Directly only.

qinxi117 commented 7 years ago

@magadan then what if we need more camera. it must be some good quality extention cable we can use.I saw the tutorial video on youtube, they are using extention cable so they can set camera at the edge of ceiling

SaxonRah commented 7 years ago

Is the extension cable active? It will not work with a passive cable. Also i have not got (640x480 @ 60 fps) to work on any extension cable other than the monoprice ps3 move compatible cable, but it is cheap as heck and you can get pretty long cables. If you need longer runs i'd imagine the ones where you can add external power might be good if you can get it to work.

qinxi117 commented 7 years ago

@SaxonRah Maybe it is just Amazon Basic is quite cheap.I am using a brand called Sabrent from amazon.So far it works good.