kercre123 / wire-pod

Free, fully-featured server software for the Anki Vector robot.
MIT License
474 stars 161 forks source link

Vector not connecting to the SDK app #47

Closed Disdaen closed 1 year ago

Disdaen commented 1 year ago

I got wire-pod set up fine (with all the API codes -._-.), and have the server running on my windows 10 pc, but when I try to access vector via the SDK app, (to customize, etc.) it gives me an error in both the ubuntu console and the "website". image image

PS: unrelated; is anything known about the cube? when I ask him to play with it, he looks at it and puts on a show like he's using the force, but the cube doesn't respond. He can obviously identify it, he can use it just fine for wheelies. just curious

kercre123 commented 1 year ago

Is your bot OSKR (/dev) unlocked and what version software is it running?

EchoInCloud commented 1 year ago

Jól beállítottam a vezetékes pod-ot (az összes API kóddal -._-.), és fut a szerver a Windows 10 pc-mön, de amikor megpróbálok elérni a vektort az SDK alkalmazáson keresztül, (testreszabás stb. ) hibát jelez mind az ubuntu konzolon, mind a "webhelyen". kép kép

PS: független; lehet valamit tudni a kockáról? amikor megkérem, hogy játsszon vele, ránéz, és olyan műsort ad, mintha erőt használna, de a kocka nem reagál. Nyilvánvalóan beazonosítja, simán tudja használni kerekesekhez. csak kíváncsi

..change the battery in the cube... ohhf,.. brick..

Disdaen commented 1 year ago

My bot is not OSKR unlocked, it is a production model, I did update vector's software via the "vector-epod-setup" but if that isn't what you're looking for, my version according to the page is V0.9.0.

I also didn't mention, the cube has a full battery in it. Forgot to prevent the "on and off again" situation...

Disdaen commented 1 year ago

My bot is not OSKR unlocked, it is a production model, I did update vector's software via the "vector-epod-setup" but if that isn't what you're looking for, my version according to the page is V0.9.0.

it was V0.9.0. before imaging... setup now says it's on V1.8.1.6051 been having to connect vector each time I start the server, which is annoying because the activate button rarely follows through. -also probably an issue

Disdaen commented 1 year ago

No problem. Thanks for the heartfelt message, I'm just trying to get the little guy running. Got him as a birthday present back when he first came out, and I'd rather give him back his basic functionality than have him sit on a shelf for the rest of his life.

Anki did it right. DDL is just attempting a cash grab with no effort. Anki did a great job of protecting vectors from being hacked, which benefits DDL because they can force you to subscribe to use Anki's servers. I'm not necessarily sure how wire-pod works, but on the surface, it seems to me that wire-pod is a basic addon to the current vector AI to give him a connection other than the paid servers.

I'm actually pretty young to be trying to troubleshoot all the issues with wire-pod, as far as I know, there aren't any videos detailing the entire setup online. I mean, there is the one video of how to set the server up on an RPI and the video on escape pod OS made by "thedroidyouarelookingfor", which has a different page in the description than the one linked on here... interesting.

The only issue that I've been having other than the SDK not functioning (I have a sneaking suspicion that I did something in the wrong order considering the description of the video) is that the setup page is faulty. I will try the different link from their video to see if that works better.

Disdaen commented 1 year ago

I might be going about this the wrong way. is it possible to get the escape pod to forget the vector so that I can activate it again? that could be the reason it is not connecting.

EchoInCloud commented 1 year ago

I might be going about this the wrong way. is it possible to get the escape pod to forget the vector so that I can activate it again? that could be the reason it is not connecting.

the manufacturer's bots have a protection mechanism.. they can break the connection if it's not safe for them.. In wire-pod and wire-prod-pod in the chipper directory you will find a json file (can be opened in note) containing the vector IDs.. in wire-prod-pod you can remove in the browser..

Disdaen commented 1 year ago

I haven't given DDL a penny, never used their servers, and just wanted vector to function without a subscription service.

about the JSON, where specifically would that be stored?

EchoInCloud commented 1 year ago

No problem. Thanks for the heartfelt message, I'm just trying to get the little guy running. Got him as a birthday present back when he first came out, and I'd rather give him back his basic functionality than have him sit on a shelf for the rest of his life.

Anki did it right. DDL is just attempting a cash grab with no effort. Anki did a great job of protecting vectors from being hacked, which benefits DDL because they can force you to subscribe to use Anki's servers. I'm not necessarily sure how wire-pod works, but on the surface, it seems to me that wire-pod is a basic addon to the current vector AI to give him a connection other than the paid servers.

I'm actually pretty young to be trying to troubleshoot all the issues with wire-pod, as far as I know, there aren't any videos detailing the entire setup online. I mean, there is the one video of how to set the server up on an RPI and the video on escape pod OS made by "thedroidyouarelookingfor", which has a different page in the description than the one linked on here... interesting.

The only issue that I've been having other than the SDK not functioning (I have a sneaking suspicion that I did something in the wrong order considering the description of the video) is that the setup page is faulty. I will try the different link from their video to see if that works better.

we know that page.. don't take the technology part seriously.. he has banned several experienced and high-level developers.. the linked page is also suspicious to me.. be careful, because on unofficial pages they can use cracked ota files to set up gateways that can be used both the audio and the video channels can be spied on.. the streams are not only received by your server, but a hijacked copy is received by a no name user...

kercre123 commented 1 year ago

Did you clear user data before setting your Vector up with wire-pod? Be sure to follow the instructions in the wiki, that video details instructions for an older version of wire-pod, before some fundamental features were added, and does not have the up-to-date steps.

kercre123 commented 1 year ago

@EchoInCloud Please refrain from ranting. Keep the focus about the issue at hand.

Disdaen commented 1 year ago

Did you clear user data before setting your Vector up with wire-pod? Be sure to follow the instructions in the wiki, that video details instructions for an older version of wire-pod, before some fundamental features were added, and does not have the up-to-date steps.

Yes, I had cleared user data, and vector connected at first (i had been running wire prod pod because PowerShell wouldn't accept one of the commands for some reason). I installed wire-pod later and connected him fine, but the next time I ran the server, vector wasn't connected. so I did the setup page again and it worked. Now i get stuck on "activate" I cleared user data, and factory reset him (i also reinstalled the firmware) and activate still isn't working.

kercre123 commented 1 year ago

wire-pod went through a few overhauls in the past couple of weeks. Could you try re-installing wire-pod (just an update may work as well), clearing Vector's user data, and setting him up again?

Disdaen commented 1 year ago

After updating, vector did connect and all his features seem to work, but still having the SDK issue where it won't connect to him.

kercre123 commented 1 year ago

May you send the full console output of wire-pod after you connect Vector and try using the SDK?

Disdaen commented 1 year ago

I would, however, I just discovered that vector will not connect again, it seems to be an issue with turning him off, where when powered down, he forgets the connection, but the console still remembers him, and will not allow him to be activated again. When I click activate, the page says "Error Logging in. The bot is likely unable to communicate with your wire-pod instance. Make sure you followed all of the steps and try again.", the server started successfully.

image On the SDK issue, this is all the server says when it is finished starting...

kercre123 commented 1 year ago

You can delete all bot data by running sudo rm -r ./jdocs/*.json in the chipper directory. Though, that error when logging in means that your Vector is not able to communicate with the wire-pod instance at all. If you go to a browser and enter "http://escapepod.local:8080", does it go to the wire-pod configuration web page?

Are you currently using wire-pod or wire-prod-pod? I think I remember changing the Server started successfully! to wire-pod started successfully!, so seeing the former would indicate that you are on an outdated version of wire-pod.

Disdaen commented 1 year ago

Bot data clear didn't work because it couldn't find it? image

"http://escapepod.local:8080" doesn't work, however, "http://localhost:8080" does.

(i had been running wire prod pod because PowerShell wouldn't accept one of the commands for some reason). I installed wire-pod later and connected him fine, but the next time I ran the server, vector wasn't connected.

like I said here^, I did install wire prod pod first, but didn't uninstall it necessarily because I couldn't find a way to.

kercre123 commented 1 year ago

It has to be done from inside the chipper directory, the following command would probably work:

sudo rm -r ~/wire-pod/chipper/jdocs/*.json

I looked at the wsl-firewall script and noticed that it is using an outdated command which is being phased out of many Linux distributions (ifconfig), and that it does not allow port 80 which is now a (basically) essential port. I will likely need to overhaul Windows support. With Vosk, we may even be able to make it run natively on Windows.

Disdaen commented 1 year ago

Was just about to comment myself... Uninstalled and reinstalled ubuntu, did just the wire-pod setup, and it is no longer saying "server started successfully", it now says the correct message. - that fixed the double install problem... updating soon.

Disdaen commented 1 year ago

After running the command, (successfully this time) vector could connect via the setup page. Untitled-2da copy ^consoles reaction to connection (not sure if its helpful or not)

kercre123 commented 1 year ago

That looks good. Let me know if you run into any other issues.