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

Add Support for Wifi (ESP-01) Module in the Android App #2509

Open
AsCress opened this issue Jul 1, 2024 · 6 comments · May be fixed by #2561
Open

Add Support for Wifi (ESP-01) Module in the Android App #2509

AsCress opened this issue Jul 1, 2024 · 6 comments · May be fixed by #2561
Assignees

Comments

@AsCress
Copy link
Contributor

AsCress commented Jul 1, 2024

Actual Behaviour
Currently, the only way the app can communicate with the PSLab device is using a USB cable. There isn't any support for a wireless (Wifi or Bluetooth) connection with the device.

Expected Behaviour
We can implement support for a wireless connection with the PSLab device using the ESP-01 module as suggested by @mariobehling.

Steps to reproduce it
N/A

LogCat for the issue
N/A

Screenshots of the issue
N/A

Would you like to work on the issue?
Yes.
@CloudyPadmal I see there has been work in the past on this feature (some past GSoC project as well). I haven't worked before with the ESP-01 module but it is something which I am looking forward to work and integrate in our app over the next few months. Can you please shed some light on this topic ? If there has been work on this before, then what is its current status in the Android app ?

@AsCress AsCress self-assigned this Jul 1, 2024
@CloudyPadmal
Copy link
Collaborator

Hi @AsCress, the idea we had earlier was to have the ESP module run in WIFI_AP mode, where PSLab acts as an access point. This way, a mobile device (or a laptop) can connect to PSLab and issue commands to get the response from PSLab. I think this is one way to do it, and there are probably a few other approaches we can explore.

@AsCress
Copy link
Contributor Author

AsCress commented Jul 1, 2024

@CloudyPadmal Right, I got it. Was this implementation working when it was built first (I see some code that seems to implement this using httpAsyncTask) ? Should we continue on this path or start from scratch ? What are your views on this ?

@CloudyPadmal
Copy link
Collaborator

If I recall, we could get the PSLab verion ID over WiFi. May be you can try the one we have right now and decide on which path to take (as the current work done on this is very little).

@AsCress
Copy link
Contributor Author

AsCress commented Jul 3, 2024

@CloudyPadmal Thank you very much for the information! That seems interesting. I'll surely try out the current implementation as you mentioned, and revert back to you. This also makes me curious about one thing: do we need any kind of support in the firmware for this to work ? If yes, then do we have it already, since you were able to get the version ID info ?

@CloudyPadmal
Copy link
Collaborator

@bessman made the UART calls generic in a way that you can use either of the UART ports to communicate which we were not able to do before. ESP TX RX pins are wired to UART2 module and we can use that interface.

@AsCress
Copy link
Contributor Author

AsCress commented Jul 4, 2024

@CloudyPadmal Thank you so much for the information again ! I'll surely try this out and revert back to you.

@AsCress AsCress linked a pull request Nov 2, 2024 that will close this issue
4 tasks
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

Successfully merging a pull request may close this issue.

2 participants