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

64bit Bullseye: GUI not displaying with Bless/bleak version of FortiusANT #386

Closed
Toetta opened this issue Mar 29, 2022 · 18 comments
Closed
Labels
help wanted Extra attention is needed

Comments

@Toetta
Copy link

Toetta commented Mar 29, 2022

Hi!

FortiusAnt is up and running and I use it with Zwift. All good :)

Im not getting the gui to display with the -g parameter though.

(The included wxpython video test works well during installation of it)

It likely that I did something wrong due to quite extensive install procedure and I'm all new to this and don't know anything about programming.

Im not receiving any error messages.

I installed the latest versions of everything and compiled a 64bit wxpython pypi and a new wheel along with all other stuff that I found during the way it complained about.

Could someone assist what to do next when I don't see any error messages?

//
I did not install using the all steps of the steps included in the raspberry directory and did not install "node" stuff. Just ran the Fortius straight off except granting accesses.
//

Cheers

Malkus

@WouterJD
Copy link
Owner

Hi malkus.

The GUI is disabled for raspberry, because wxpython is not available in standard environment without compilation etc.

Enabling is not difficult; check UseGui:
https://github.com/WouterJD/FortiusANT/blob/master/pythoncode/constants.py#L25

@Toetta
Copy link
Author

Toetta commented Mar 29, 2022

In my constants.py file its already set to true. Do I need rebuild FortiusANT.sh file in the raspberry folder that I use to start for it to use the info in the constants.py file in python folder? Im not sure how the files are linked / connected...

@WouterJD
Copy link
Owner

WouterJD commented Apr 6, 2022

If wx cannot be imported, UseGui is set to False

UseGui              = True	    # Can be modified to force no-GUI
UseMultiProcessing  = True      # Production version can be either False or True
OnRaspberry         = True      # We're running on Raspberry Pi

try:
    from wx import EVT_CLOSE    # Just checking presence
except:
    UseGui          = False  	# no wx, no GUI

@WouterJD WouterJD added the help wanted Extra attention is needed label Apr 6, 2022
@Toetta
Copy link
Author

Toetta commented Apr 9, 2022

HI @WouterJD !

Tried your latest build on github. I now get the gui!

Having new issues though. Power output is about 4x normal to zwift. Connection is now stable. during restarts I get error messeges often when trying to autostart FortiusAnt that the bluetooth name is already in use and BLE can not be startes.

(I did run through the installation steps to double check that missing) Dont know if it was a good idea or not to install the nodejs stuff as well but I did..

@WouterJD
Copy link
Owner

WouterJD commented Apr 9, 2022

Node.js does not conflict

@WouterJD
Copy link
Owner

WouterJD commented Apr 9, 2022

during restarts

Why do you restart?
I can start / stop as many times as I like.

@Toetta
Copy link
Author

Toetta commented Apr 9, 2022 via email

@WouterJD
Copy link
Owner

WouterJD commented Apr 9, 2022

As if FortiusAnt starts too early...
Try to delay startup, to check whether first start works when not done too fast

@Toetta
Copy link
Author

Toetta commented Apr 9, 2022

These settings wont store after saving / restarting. Always reset. Target powet value restes to 20. I reenter 100 after every restart.

image

@Toetta
Copy link
Author

Toetta commented Apr 9, 2022

Heartrate values are recieved by Fortiusant through Ant+ but not transmitted over BLE.

Updates picture @WouterJD
image

image

@Toetta
Copy link
Author

Toetta commented Apr 9, 2022

Heart rate with direct connection over bluetooth works well as a work around not passing theought FortiusAnd Bless

image

@Toetta
Copy link
Author

Toetta commented Apr 9, 2022

Power values (W) are now back to normal. Nothing changed, several restarts only.

Magnetic braie seems to work really well.

The Vortex controll display powers down after some minutes. When eaking it up it wont reconnect to FortiusAnt. Stays in standalone mone not showing "pc" on display. Buttons then no longer work for the digital gear selection

@WouterJD
Copy link
Owner

WouterJD commented Apr 9, 2022

These settings wont store after saving / restarting. Always reset. Target powet value restes to 20. I reenter 100 after every restart

See #373 to be investigated and solved.

@WouterJD
Copy link
Owner

WouterJD commented Apr 9, 2022

Heartrate values are recieved by Fortiusant through Ant+ but not transmitted over BLE.

https://github.com/WouterJD/FortiusANT/blob/Implement-BLE-using-bless/pythoncode/bleBless.py#L196
Although it should be...

I can do sone tests to check this, using the simulator AND bleak test program

@WouterJD
Copy link
Owner

WouterJD commented Apr 9, 2022

The Vortex controll display powers down after some minutes.

https://github.com/WouterJD/FortiusANT/blob/Implement-BLE-using-bless/pythoncode/usbTrainer.py#L1187
I see the code contains a mechanism to avoid this

Since I have no vortex I cannot test this

@Toetta
Copy link
Author

Toetta commented Apr 10, 2022

Thanks for all your responses @WouterJD !

@WouterJD
Copy link
Owner

WouterJD commented Apr 11, 2022

Please test with current version; JSON should be improved now as well.
If OK I suggest to close this issue, since I cannot solve in FortiusAnt

https://github.com/WouterJD/FortiusANT/tree/Implement-BLE-using-bless

@Toetta
Copy link
Author

Toetta commented Apr 16, 2022

GUI works now! Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants