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

advertise on fails #81

Open
controllinohelium opened this issue Nov 8, 2021 · 10 comments
Open

advertise on fails #81

controllinohelium opened this issue Nov 8, 2021 · 10 comments

Comments

@controllinohelium
Copy link

Since recently, we seem to cannot startup advertising anymore. When doing sudo bin/gateway_config advertise on, we get this result:

RPC to 'gateway_config@127.0.0.1' failed: {'EXIT', {function_clause, [{clique_status,parse, [{enable_advertising,true}, #Fun<clique_human_writer.0.31690421>, {context,false,[]}], [{file, "/home/pi/gateway_config_2/_build/default/lib/clique/src/clique_status.erl"}, {line,37}]}, {clique_human_writer,write,1, [{file, "/home/pi/gateway_config_2/_build/default/lib/clique/src/clique_human_writer.erl"}, {line,38}]}, {clique,print,3, [{file, "/home/pi/gateway_config_2/_build/default/lib/clique/src/clique.erl"}, {line,112}]}, {clique,print,2, [{file, "/home/pi/gateway_config_2/_build/default/lib/clique/src/clique.erl"}, {line,95}]}, {gateway_config_cli_registry, command,1, [{file, "/home/pi/gateway_config_2/src/cli/gateway_config_cli_registry.erl"}, {line,25}]}]}}

When we check with advertise status, it still seems to be set to "on", but we get very random results in connecting with the miner. Sometimes it shows up, sometimes (more often) it doesn't. Very random behaviour.

What could be the issue here?

@madninja
Copy link
Member

madninja commented Nov 8, 2021

Related to this? #78

Perhaps you need to do a clean build?

This would be an issue with the command parser and quite unrelated to ble advertising working better or worse like the latter part of your message states.

@controllinohelium
Copy link
Author

controllinohelium commented Nov 8, 2021

Hi @madninja unfortunately not, I tried a full clean build of everything now, still the same result. Does this mean even though we get this error message it should work?

Strangely, we still have huge instability in getting the bluetooth connection working properly with the Hotspot app. Is this something you experienced as well? It works maybe 20% of the time, and sometimes it just works after hitting the scan button a few times while onboarding in the app, but most of the time it doesn't.

EDIT: Tried with different phones, always the same result.

@madninja
Copy link
Member

madninja commented Nov 8, 2021

No I've not seen that happen, but to narrow this down, you could try building with commit b3d9878 which is the last tagged release

@controllinohelium
Copy link
Author

I've tried it and the error from before disappears, but now I can't find any hotspot anymore. Just "Hotspot not found" in the app, after trying multiple times, even trying to shut off/on BT on phone.

@madninja
Copy link
Member

madninja commented Nov 8, 2021

Taken to Discord to see if we can get some hands on

@controllinohelium
Copy link
Author

@madninja thanks, just wrote back there.

@controllinohelium
Copy link
Author

controllinohelium commented Nov 9, 2021

@madninja unfortunately with latest Erlang/OTP 22, we have the same issue. Bluetooth device can sometimes be found, sometimes not, pretty unstable and random. Can you take a look into one of the devices again?

@leadtekjun
Copy link

same on Raspberry Pi 4

@madninja
Copy link
Member

madninja commented Mar 6, 2022

same on Raspberry Pi 4

same what? getting BLE working on linux and raspi4 is somehwat outside of the scope of gateway-config

@leadtekjun
Copy link

same on Raspberry Pi 4

same what? getting BLE working on linux and raspi4 is somehwat outside of the scope of gateway-config

got 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

3 participants