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

Giga onboard Wifi, and signal updates. #364

Merged
merged 32 commits into from
Nov 21, 2023

Conversation

travis-farmer
Copy link
Member

just tested with a Loco, and it seems fully working now.
a few changes were needed for WiFi_NINA, that work on the Giga. need to make sure they work on other STM32 hardware, just to make sure the changes are not cross-platform breaking.

Note, the Giga has a uFL antenna connector for an external antenna. there is no onboard antenna, though all new Giga's come with a basic antenna. handy if you want to add a uFL to SMA adapter for an external SMA antenna, in case project is inside a metal enclosure.

@travis-farmer
Copy link
Member Author

just a second note: the user can toggle between onboard WiFi (Wifi_NINA) and esp wifi. having the following in config.h:
#define WIFI_NINA true
will enable Wifi_NINA, and in so doing, the Giga's Onboard WiFI.

@travis-farmer
Copy link
Member Author

Sadly, upon further testing, it handles only one client...
Crashes when JMRI and then EngineDriver connect... 👎

@travis-farmer travis-farmer marked this pull request as draft November 3, 2023 11:15
@travis-farmer travis-farmer changed the title Giga onboard Wifi works now Giga onboard Wifi Nov 3, 2023
@travis-farmer
Copy link
Member Author

Giga WiFi WORKS, for up to 3 MAX clients (hardware limits?). working on cleaning it up with Chris. :-)

@travis-farmer travis-farmer marked this pull request as ready for review November 5, 2023 22:15
@travis-farmer
Copy link
Member Author

commit #4430e9a Comment: config option "#define GIGA_WIFI true" works for giga, up to 3 clients connected. config option "#define WIFI_NINA true" untested on giga until i get hardware. only committed to save.

@travis-farmer travis-farmer marked this pull request as draft November 7, 2023 14:47
@travis-farmer
Copy link
Member Author

back to draft, while i sort out some issues.

@travis-farmer
Copy link
Member Author

ok, tested for compile with UNO (size failure? odd), MEGA, and Giga.
i worked on some experimental code, that currently compiles, but does not work. it is activated with an XGIGA define in config, so i or somebody else can play with it, and swap back and forth.
really, i need somebody with better coding experience than i, to look it all over, and experiment with it, with me, that HAS A GIGA. i know it is a very expensive board, but for better progress, i need a second set of eyes, with hands-on access to test as well. a one-sided test-develop-debug-support system is doomed to fail.

i will keep developing for the Giga, as best as i can, but if it goes to beta-testers, they need to be code-capable, and i will need to draft up a write-up of what i know works, what i know does not, with the extent known of each.
i submit this pull-request to get my work onto the DCC-EX:devel-giga branch, so others can work with it.

@travis-farmer travis-farmer marked this pull request as ready for review November 7, 2023 19:44
@travis-farmer travis-farmer marked this pull request as draft November 10, 2023 12:29
@travis-farmer
Copy link
Member Author

Converted back to draft, as i am working on a huge improvement that needs to be included overall to the devel-giga branch, once tested to work correctly that is.

@travis-farmer travis-farmer changed the title Giga onboard Wifi Giga onboard Wifi, and signal updates. Nov 10, 2023
@travis-farmer
Copy link
Member Author

Marking Ready for review, so this can be brought into the dcc-ex:devel-giga repo for further testing. hopefully soon, before i make more changes ;-)

Tested with 8 track signals, all produced DCC. tested one of the tracks with DC, and got a very pretty inverted PWM.

@travis-farmer travis-farmer marked this pull request as ready for review November 10, 2023 20:16
@travis-farmer
Copy link
Member Author

WiFiNINA Library from Adafruit, with their shield, is not recommend at this time, but the signal code needs to get into the DCC-EX:devel-giga repo branch.
the Giga onboard WiFi is only good for 3 clients, and the WiFiNINA board accepts 9 clients, but it presents new issues when configuring the CS, where it somehow takes up all the clients. this only takes place when the WiFiNINA board and library are used.

@Ash-4 Ash-4 merged commit 5bc677e into DCC-EX:devel-giga Nov 21, 2023
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 this pull request may close these issues.

None yet

2 participants