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

Plans to support Wifi communication? #4

Open
Nitwel opened this issue Jun 4, 2021 · 20 comments
Open

Plans to support Wifi communication? #4

Nitwel opened this issue Jun 4, 2021 · 20 comments

Comments

@Nitwel
Copy link

Nitwel commented Jun 4, 2021

Are there any plans on supporting this using websockets or something? Or are there reasons not to go this road like latency or complexity?

@LittleNyanCat
Copy link
Contributor

The main reason WI-FI hasn't been implemented yet is that using it on the ESP32 disables ADC2, leaving us with only 6 pins available for analog input, making tracking all fingers while having a joystick impossible without extra hardware.

You're free to implement it and contribute if you wish, but for now we don't have enough reasons to do so ourselves

@ElectricTurtle32
Copy link
Contributor

I could try to program this, otherwise I can close this issue.

@danwillm
Copy link
Member

danwillm commented Jan 6, 2022

@minystreem
You are very welcome to implement this feature, there's been a number of people who have suggested it.

@ElectricTurtle32
Copy link
Contributor

Ok I will start on it, I may have to make changes to Lucid-ui

@danwillm
Copy link
Member

danwillm commented Jan 6, 2022

You shouldn't have to do much on the UI, it automatically loads all the settings in default.vrsettings file found in the driver. Though you can add your own custom titles and descriptions to the labels and tooltips.

The majority of the work will be on the driver and firmware. Let me know if you have problems with any of that.

@ElectricTurtle32
Copy link
Contributor

Yea I meant the driver sry. I am having trouble finding a good library

@danwillm
Copy link
Member

danwillm commented Jan 6, 2022

I recommend ASIO
https://think-async.com/Asio/

@ElectricTurtle32
Copy link
Contributor

does that work for the esp32

@danwillm
Copy link
Member

danwillm commented Jan 6, 2022

Sorry, linked the wrong library https://github.com/zaphoyd/websocketpp (this one is the one @Nitwel was originally using but I don't think he finished his implementation)

@ElectricTurtle32
Copy link
Contributor

So that's the library I should use for the client side AND the sever side

@danwillm
Copy link
Member

danwillm commented Jan 6, 2022

Just driver, I'm sure there's other arduino libraries for wifi.

@ElectricTurtle32
Copy link
Contributor

Ok, I will try to find one, the WiFi library is outdated so I might have to find a different one

@LittleNyanCat
Copy link
Contributor

For the Esp side I've used this one for websockets in one of my projects before:
https://github.com/me-no-dev/ESPAsyncWebServer

@ElectricTurtle32
Copy link
Contributor

Ok thx

@ElectricTurtle32
Copy link
Contributor

@LittleNyanCat would you like to help do the driver side of things? my c++ is not very good, I got the esp side kinda working, I'm still working on it I got a bit busy. If your could help that would be nice but if not that's fine.

@LittleNyanCat
Copy link
Contributor

Uhh, the Arduino side stuff is also C++ though?

I'd help right now if I didn't find setting stuff up to build the driver to be such a chore

I won't be touching any driver related stuff until my gyros arrive in about a month, when that happens maybe I'll take a look at it

@ElectricTurtle32
Copy link
Contributor

Yea building stuff is a chore for too, I'll finish the esp side

@CaelanTheCoder
Copy link

CaelanTheCoder commented Aug 16, 2022

There's like 100 forks of this project; pretty sure at least one person has implemented WIFI communication.

@ElectricTurtle32
Copy link
Contributor

no, I kinda abanonded it becuse I dont get the point. most forks dont have any changes

@ElectricTurtle32
Copy link
Contributor

Wifi communicaion is hard, you try doing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants