Adb not working

Trinus Forum Forums Troubleshooting Adb not working

This topic contains 19 replies, has 2 voices, and was last updated by loxai loxai 5 years, 11 months ago.

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #2332
    Avatar
    AlvaroB
    Participant

    I tried many times to connect via usb hotspot, but it didn’t work for me, so I tried ADB, and when i try to start connection in TG (also at start of TG it shows me the error loading OpenCv.Blob.dll, but i don’t care about sensors) and it shows me this message
    Adb error

    #2333
    Avatar
    AlvaroB
    Participant

    Console:
    09/02/2015 16:12:57:TGLIB:0:Requesting config connection to 127.0.0.1:7777
    09/02/2015 16:12:59:TGLIB:3:Unable to connect to 127.0.0.1 :System.Net.Sockets.SocketException (0x80004005): No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 127.0.0.1:7777
    en System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    en System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    en tglib.network.TCPConnectionManager.requestConnection()
    09/02/2015 16:12:59:TGLIB:0:Unable to connect to 127.0.0.1 :System.Net.Sockets.SocketException (0x80004005): No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 127.0.0.1:7777
    en System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    en System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    en tglib.network.TCPConnectionManager.requestConnection()
    09/02/2015 16:12:59:TGLIB:0:Stopping connection config
    09/02/2015 16:12:59:TGLIB:0:Stopping connection config
    09/02/2015 16:12:59:TGLIB:0:Connection config stopped
    09/02/2015 16:12:59:TGLIB:0:Connection config stopped
    09/02/2015 16:12:59:Stopping mouse protocol

    #2334
    loxai
    loxai
    Keymaster

    On the client side, you must activate USB via ADB as well. Additionally, USB debugging setting needs to be enabled in Android developers options.

    #2335
    Avatar
    AlvaroB
    Participant

    Both are already activated, and streaming works with the app vr_streamer via usb debugging, so I don’t know what’s the problem.

    #2336
    loxai
    loxai
    Keymaster

    One other thing that might be required: running the server as admin.
    [Edit: actually, that’s probably not it. But one thing required is to start the client first when using ADB)]

    • This reply was modified 5 years, 11 months ago by loxai loxai.
    #2338
    Avatar
    AlvaroB
    Participant

    I’m also already running it as admin [EDIT]and starting first the android client…
    When I stop the client, it automatically sets back to (no) use of “usb via adb”. Maybe the client it’s not setting up correctly?

    • This reply was modified 5 years, 11 months ago by Avatar AlvaroB.
    #2340
    loxai
    loxai
    Keymaster

    I’ve detected a couple of bugs after further inspecting the code. I will have this fixed shortly. Apologies for the inconvenience.

    #2341
    Avatar
    AlvaroB
    Participant

    No need to apologise. It’s an amazing work what you did with trinus, and it’s great to have such that support from you.

    #2342
    loxai
    loxai
    Keymaster

    Ok, updated the server build with a quick fix. It should now be working, however there are still some problems:
    – sometimes connection will fail
    – sensor tracking won’t work
    – stopping the streaming is not properly detected

    Most importantly, the performance of USB via ADB is quite slow compared to USB Tethering. Even Wifi Direct is likely to be faster in most cases. The option is there just to give an alternative if everything else fails, but I highly recommend using a different option (USB Tether or Wifi Direct).

    #2353
    Avatar
    AlvaroB
    Participant

    It stills not working for me…
    Now I tried USB tethering,and the computer recognise it, and connects to internet using the smartphone’s connection, but it shows me a similar error message:

    10/02/2015 0:40:36:TGLIB:0:Waiting for client at port 7777
    10/02/2015 0:41:11:TGLIB:0:Connected auto
    10/02/2015 0:41:11:TGLIB:0:Requesting config connection to 192.168.42.129:7777
    10/02/2015 0:41:32:TGLIB:3:Unable to connect to 192.168.42.129 :System.Net.Sockets.SocketException (0x80004005): Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder 192.168.42.129:7777
       en System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
       en System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
       en tglib.network.TCPConnectionManager.requestConnection()
    10/02/2015 0:41:32:TGLIB:0:Unable to connect to 192.168.42.129 :System.Net.Sockets.SocketException (0x80004005): Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder 192.168.42.129:7777
       en System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
       en System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
       en tglib.network.TCPConnectionManager.requestConnection()
    10/02/2015 0:41:32:TGLIB:0:Stopping connection config
    10/02/2015 0:41:32:TGLIB:0:Ended connection auto
    10/02/2015 0:41:32:TGLIB:0:Stopping connection config
    10/02/2015 0:41:32:TGLIB:0:Connection config stopped
    10/02/2015 0:41:32:Stopping mouse protocol
    10/02/2015 0:41:32:TGLIB:0:Connection config stopped
    
    #2364
    Avatar
    AlvaroB
    Participant

    So I was trying a lot from your last reply, and USB debugging, USB tethering even WiFi hotspot doesn’t work for me. Trying the app VR_Streamer I see that it works well, using the two modes of USB gives me a clear screen and very fast. So I still don’t know what’s the problem.

    #2370
    loxai
    loxai
    Keymaster

    The error you posted happens to me sometimes. Unplugging USB and plugging+tethering fixes it.
    Make sure USB via ADB is disabled if using other method like USB Tethering or Wifi (it happened to me as well that I’d forget about it and leave it enabled on the phone).
    What errors do you get with the Wifi options?

    #2371
    Avatar
    AlvaroB
    Participant

    Well, after each client stop, the “USB via ADB” option is disabled automatically, it never reminds enabled.
    When trying to do Wifi hotspot, the phone connects to the hotspot in less than one second, but trinus gyre doesn’t detect any connection:
    10/02/2015 16:17:24:TGLIB:0:Waiting for client at port 7777
    (it shows me nothing more)
    And if I specify the IP of my mobile

    10/02/2015 16:25:11:TGLIB:0:Requesting config connection to 192.168.1.35:7777
    10/02/2015 16:25:32:TGLIB:3:Unable to connect to 192.168.1.35 :System.Net.Sockets.SocketException (0x80004005): Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder 192.168.1.35:7777
       en System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
       en System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
       en tglib.network.TCPConnectionManager.requestConnection()
    10/02/2015 16:25:32:TGLIB:0:Unable to connect to 192.168.1.35 :System.Net.Sockets.SocketException (0x80004005): Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder 192.168.1.35:7777
       en System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
       en System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
       en tglib.network.TCPConnectionManager.requestConnection()
    10/02/2015 16:25:32:TGLIB:0:Stopping connection config
    10/02/2015 16:25:32:TGLIB:0:Stopping connection config
    10/02/2015 16:25:32:TGLIB:0:Connection config stopped
    10/02/2015 16:25:32:Stopping mouse protocol
    10/02/2015 16:25:32:TGLIB:0:Connection config stopped

    I’m starting first the hotspot, then the connection on server side, and then on client, although I tried to start first hotspot, then client side, and then server, with no results in anything. Very strange.

    #2372
    loxai
    loxai
    Keymaster

    Yes, I am not sure what the problem might be. The only thing is to make sure you are using the latest versions of server and client (not prerelease, but official: http://oddsheepgames.com/trinus/?download#). The USB via ADB setting is being saved in the latest update.

    #2374
    Avatar
    AlvaroB
    Participant

    Well, downloading official I managed to start by adb at the moment. Also updated android apk with the SG S3 fix. I’ll try wifi later.

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.