Skip to content
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

Cannot save settings in app, connection is not working #49

Closed
KAJIKK opened this issue Nov 18, 2020 · 18 comments
Closed

Cannot save settings in app, connection is not working #49

KAJIKK opened this issue Nov 18, 2020 · 18 comments
Assignees
Labels
bug Something isn't working fixed Issued fixed stability-issues

Comments

@KAJIKK
Copy link

KAJIKK commented Nov 18, 2020

logFromApp.txt
pvrlog.txt
vrserver.txt
SteamVr

If I want to change settings in the app, I can't because there is no saving button and if I go back by hitting the android triangle button, it will just cancel all my changes. Also if I want to connect it to the SteamVr, it crashes and restarts and say the addon was blocked because of the crash. If I try to unblock it, it will just restart and do the same thing.

My phone is: Xoami POCO X3 NFC
Sorry for the pictures it is in the Czech language.

@ShootingKing-AM
Copy link
Member

Are you using the latest version of PhoneVR ?

@KAJIKK
Copy link
Author

KAJIKK commented Nov 18, 2020

I tested both the newest release and the previous builds

@ShootingKing-AM
Copy link
Member

Please make sure not to type "," as decimal point. Motion to photon latency setting should be "0.020" and FOV "10.0". I will add an warning in the next version.

@KAJIKK
Copy link
Author

KAJIKK commented Nov 18, 2020

Okay, we have progress. Now it saves the changed settings but and SteamVr is not crashing but now it says No headset found. Also, the app on phone sometimes closes itself but the phone is not saying it crashes. Another thing is interesting: If I save the changes in the app with "." and not "," it saves but if I open it again, there is "," on the decimal point. also, I never changed the Motion to photon latency and FOV until now. Maybe my phone is replacing that as an autocorrect but I am not sure.

@ShootingKing-AM
Copy link
Member

Are you sure you have "Auto Start" and "Run in Background" permissions enabled for PhoneVR?

@KAJIKK
Copy link
Author

KAJIKK commented Nov 18, 2020

Error

The "Run in background" I can't find anywhere

@ShootingKing-AM
Copy link
Member

Is there anything new on the Logs or they are still the same after "," -> "." change ?

@KAJIKK
Copy link
Author

KAJIKK commented Nov 18, 2020

Oh I have not noticed that
NewlogFromApp.txt
vrserver.txt
pvrlog.txt

I also enabled the Debug mode

@ShootingKing-AM
Copy link
Member

@KAJIKK Does your issue still persist on latest Build ?

@KAJIKK
Copy link
Author

KAJIKK commented Nov 28, 2020

I think no, because every time i have to manually change the "," to ".". But it saves when I changed it. I'm using the beta 55 build.

@ShootingKing-AM
Copy link
Member

This has been solved in #46. Try latest release, you don't need to bother about "," and "."s now :)

@KAJIKK
Copy link
Author

KAJIKK commented Nov 30, 2020

Okay so, the "." is working now and i can now save the settings without need to change it but the connection is not working.
Using the 60 build
OpenGL version: 3.2

@ShootingKing-AM ShootingKing-AM added this to In progress in beta-Development Dec 22, 2020
@ShootingKing-AM ShootingKing-AM moved this from In progress to Work-in-Process Issues in beta-Development Dec 22, 2020
@ShootingKing-AM
Copy link
Member

Hi @KAJIKK, Latest beta0.2-62(53) fixed this issue, can you re-check if its working and revert? If its still not working, please attach the logs.

Thanks.

@KAJIKK
Copy link
Author

KAJIKK commented Jan 18, 2021

Hi, I am sorry but I failed again. I think a am doing something wrong.
I tried blank IP, manually enter IP and even changing the pairing port(on both devices, ip:192.168.2.138 & port:15987) but still nothing.
Using beta-0.2-62

It always sais Tcp talker: Bad adress

pvrlogANDROID.txt
pvrlogPC.txt

@ShootingKing-AM
Copy link
Member

The logs are saying that Mobile is not able to connect to your PC via network. Can you try getting the .pcap files as specifed in ReadMe for network issues ?

@KAJIKK
Copy link
Author

KAJIKK commented Jan 18, 2021

phonevrPCAP.zip
From the capture, I noticed the not an ATH packet error, aborting. Does ATH mean authorization?
Can firewall block it?

@ShootingKing-AM
Copy link
Member

ATH means, Apache Tribes Heartbeat Protocol (which PVR dosen't use).
Prima-facie, The packet is being received on desktop end from mobile, but its being modified (some extra data(padding) is being added to the packet end) which is not normal.

Actual Android/PVR Source Packet:

0000   00 1a 11 00 00 02 00 1a 11 00 00 01 08 00 45 00   ..............E.
0010   00 24 a8 e3 40 00 40 11 c4 aa 0a 08 00 01 c0 a8   .$..@.@.........
0020   02 8a a4 c1 3e 73 00 10 66 e7 70 76 72 00 00 00   ....>s..f.pvr...
0030   06 00                                             ..

Desktop Packet:

0000   e4 54 e8 2f 75 dc 34 1c f0 30 37 e4 08 00 45 00   .T./u.4..07...E.
0010   00 24 38 ff 40 00 40 11 7b c9 c0 a8 02 26 c0 a8   .$8.@.@.{....&..
0020   02 8a b1 fc 3e 73 00 10 a0 e6 70 76 72 00 00 00   ....>s....pvr...
0030   06 00 00 00 00 00 00 00 f6 0f 9f 98               ............

The extra data on Line 0030 after 06 00 is what i am talking about.
Wireshark says the its from the Source, i.e from,

Source: XiaomiCo_30:37:e4 (34:1c:f0:30:37:e4)
Type: IPv4 (0x0800)
Padding: 000000000000f60f9f98

I hope .138 is the PC IP and .38 is the Mobile IP.
I am hoping this is a proprietrary feature of that specific Xiaomi device.
The PVR Server logs on the other side say that There is no data received even after waiting for 5secs, which is not actually true.

I can think about a few things,

  1. I think there is a firewall blocking 15987(and 2 other ports) port on Windows Desktop end. or Blocking vrserver.exe program.

    Try to disable any Antivirus/Firewall program. Also try to add Inbound rule (both TCP and UDP on the 3 ports) and Outbound rule (both TCP and UDP on 3 Ports) in Windows Firewall.

  2. I think there are more multiple network adaptors on desktop and data is being received on Network adaptor X while PVR Server is listening to adaptor Y.

    To verify this, can you tell me how many network adaptors are being used on desktop, and how is network connected between Mobile and Desktop. And on which network did you get the PCAP file from desktop (On this adaptor we are actually receiving the PVR data)

  3. Maybe there is an unusual, excess network delay (>5 secs) for the packet to reach desktop.

    You can increase the connection timeout on line "connection_timeout" : 5, in pvrsettings.json file whose default location is C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\PVRServer. You can increase to max of 10 (means 10 Secs) and see if its connects.

Sorry for making it a little complex ^^', you can ask me if you didnt understand anything written above.
Thanks !

@KAJIKK
Copy link
Author

KAJIKK commented Jan 19, 2021

Finaly i get it working. My fault was that i allowed the firewall only for public networks. Sorry for that stupid mistake.
I hope that this thread helped everyone that had same issue.

@KAJIKK KAJIKK closed this as completed Jan 19, 2021
@ShootingKing-AM ShootingKing-AM added the fixed Issued fixed label Jan 20, 2021
@ShootingKing-AM ShootingKing-AM moved this from Work-in-Process Issues to Done in beta-Development Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Issued fixed stability-issues
Projects
No open projects
Development

No branches or pull requests

3 participants