legion1581 / go2_webrtc_connect

Unitree Go2 WebRTC driver
22 stars 12 forks source link

Failed to establish a new connection. #3

Closed wcode-wzx closed 1 month ago

wcode-wzx commented 2 months ago

I installed the environment according to the tutorial and got an error when executing the test case. I would like to ask what the problem is. Thank you very much.

My device: go2-edu STA-T wifi mode

Error log: ~/alg/go2_webrtc_connect/examples/audio/mp3_player$ python play_mp3.py πŸ•’ WebRTC connection : 🟑 started (14:54:50) INFO:root:Creating offer... πŸ•’ Signaling State : 🟑 have-local-offer (14:54:50) πŸ•’ ICE Gathering State : 🟑 gathering (14:54:50) πŸ•’ ICE Gathering State : 🟒 complete (14:54:50) INFO:root:Trying to send SDP using the old method... ERROR:root:An error occurred: HTTPConnectionPool(host='10.30.2.245', port=8081): Max retries exceeded with url: /offer (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff769044c0>: Failed to establish a new connection: [Errno 111] Connection refused')) ERROR:root:An error occurred with the old method: Failed to receive SDP Answer: No response INFO:root:Falling back to the new method... INFO:root:SDP successfully sent using the new method. πŸ•’ ICE Connection State : πŸ”΅ checking (14:54:50) πŸ•’ Peer Connection State : πŸ”΅ connecting (14:54:50) INFO:root:Track recieved: audio INFO:root:Track recieved: video πŸ•’ Signaling State : 🟒 stable (14:54:50) INFO:aioice.ice:Connection(1) Check CandidatePair(('10.30.2.210', 56221) -> ('10.30.2.245', 42591)) State.FROZEN -> State.IN_PROGRESS INFO:aioice.ice:Connection(1) Check CandidatePair(('10.30.2.210', 56221) -> ('10.30.2.245', 42591)) State.IN_PROGRESS -> State.SUCCEEDED INFO:aioice.ice:Connection(1) Check CandidatePair(('10.30.2.210', 56221) -> ('169.254.107.33', 42224)) State.FROZEN -> State.FAILED INFO:aioice.ice:Connection(1) Check CandidatePair(('10.30.2.210', 56221) -> ('192.168.123.161', 44945)) State.FROZEN -> State.FAILED INFO:aioice.ice:Connection(1) ICE completed πŸ•’ ICE Connection State : 🟒 completed (14:54:50) ERROR:root:Data channel did not open in time INFO:root:Playing MP3: dora-doradura-mp3.mp3 INFO:aioice.ice:Connection(1) Consent to send expired πŸ•’ Peer Connection State : πŸ”΄ failed (14:55:29) πŸ•’ ICE Connection State : πŸ”΄ failed (14:55:29)

legion1581 commented 1 month ago

It could be that you were using the Unitree Go APP simultaneously with this repo. I have pushed a commit to help determine that. If this doesn’t help, switch to DEBUG level and check if you are receiving SDP from the peer at this line: INFO:root:SDP successfully sent using the new method.

wcode-wzx commented 1 month ago

Thank you very much, solved it.

Samaritan5 commented 3 weeks ago

Thank you very much, solved it.

I have the same problem. Can you tell me how to solve it?