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

Wlan connection with activated Bluetooth not possible #117

Open
Peschi90 opened this issue Apr 15, 2020 · 4 comments
Open

Wlan connection with activated Bluetooth not possible #117

Peschi90 opened this issue Apr 15, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@Peschi90
Copy link

Hey Guys,
thanks for your project but i have one issue.
because i cant connect with the app over wifi, i activated bluetooth.
This works ok with the App but if i want to change something in the WIFI settings Page,
the Module reboot directly after i connect to the wifi Network, closed the wifi,start it again and dont show the page.
do you know something about this issue?

BR Peschi :)

@Smeat
Copy link
Collaborator

Smeat commented Apr 15, 2020

Are you using v1.0 or the current master? What else did you change in the configuration, besides activating bluetooth?
I had some problems with bluetooth the last time I tested it, so you might try and disable that to see if that fixes the problem

@Peschi90
Copy link
Author

Peschi90 commented Apr 15, 2020

iam using the current master but flashed it over arduino Software. When i deactivate bluetooth the i can connet to the wifi and get the settings page. i get this issue only if i activate the bluetooth in the hardwareconfig.h file. i only uncommend the bluetooth part and change the board settings inisde arduino software to "huge app"
the bluetooth connection is working with the app only the range is really poor.

@Smeat
Copy link
Collaborator

Smeat commented Apr 15, 2020

Then I am guessing this is the same problem I encountered (Smeat#7)
The Bluetooth stack is quite large and it seems we are running out of memory when we are using Bluetooth.
Unfortunately I can't say when to expect a fix for that. For now you'll have to disable Bluetooth.

Edit: Yes, same crash:
0x401b230d: operator new[](unsigned int) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/new_opv.cc:32

With bluetooth there are about 40kb left on the heap and crashes at about 28kb left.
Without bluetooth we have 160kb and drops to 100kb while loading the webpage and then going up again

Might be fixable with adding compression or modifying the webserver or bluetooth source.
But we should definitely prevent crashing in this situation.
All other code we have should be statically allocated, so a low heap should not affect them

@Smeat Smeat added the bug Something isn't working label Apr 15, 2020
@Peschi90
Copy link
Author

Memory could definetly be the problem. Sometimes if the Bluetooth connection lost because of range the chorus 32 stuck completely. I think you're right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants