-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Impossible to control Trainer by Bluetooth with Raspberry Pi [package-lock.json missing?] #372
Comments
Has anybody succeeded in installing a new Raspberry Pi 4 with Bluetooth in the last time ? |
Hi @decodeais does this mean that powermode is correctly working? Please provide some more details |
When I started riding a Rouvy route the program shows 100W for the beginning. This is defined in the software. When I rode, this should have changed to grade, but it did not. FortiusAnt was recognized as a smart trainer, but the messages seemed not to arrive at the program. When I added the following file |
The file you mention is (I assume) created by the installation procedure of node.js. I think there is not much I can do, other than using the recently available BLE libraries for python, which takes some time to implement |
In the meantime I'm happy it now works for you. |
I think it's interesting whether I am the only one. My file would help someone else to solve the problem. When I have a little more time I will test power mode with rouvy or Golden Cheetah. |
Hello together, If I start RGT-Cycling on my iPhone, the Application switch to GradeMode (0%) after a few seconds (this is actually my workaround...) I try your old JSON-file, maybe this will solve my Problem, too! Best regards Sammy |
Checked with the old Package-lock.json file from your repository, but same behaviour, IOS is okay, Win 10 not! |
Did you delete the directory from the old installation? |
No, only replaced the file. |
No you have to erase the directories from the old installation an make a complete new node installation. The installation will be modified by the package-lock.json file. |
Good idea; although I try to respond as quick as possible and monitor open issues on a regular basis.
The file is explicitly excluded from distribution After installation of the node.js package you have to execute the So even though your solution may work, I think distributing the mentioned file is not the correct solution to the problem; I would not like to distribute node_modules with the contain 1821 files and 349 folders either. |
I think this is the correct question. |
I did not copy all the modules. The JSON file modifies the result of your normal installation script. |
Some stuff I found:
For me it's not clear whether node.js wants us to distribute the file yes/no;
@decodeais what happens if you remove |
I get a installation with a newer release of node, but then with the bug. When I replace the JSON file and the module directory again, start your script, everything works. |
The JSON file is not missing, it shows a newer version. |
Really looks like a node.js problem... |
My installation is from November 2021 and the Version of NPM is 6.14.15, which version do you have? Does the version depends to the RPi Model? |
Npm 6.14.9 |
When writing the documentation, the versions were (see 3_InstallNodeJs.sh):
since I use a blackberry image, version is unchanged untill today. Currently on Windows 10, I use:
|
I tested an old node version "14.15.3" and the newest 14.19.0 from here https://unofficial-builds.nodejs.org/download/release/ I think the error occours by using a new/different bleno version (see also my post in November 21 #57 (comment)) Can you tell me which bluetooth_hci_socket do you use when it works? |
Oops... What do you refer to? I don't know. |
I've just finished a re-install of FortiusANT on an RPi 0 W. In order to get is working I used the fix from @planetSammy in #57 (noting that it has to be run from the ~FortiusANT/node folder). I also had to run |
Hi Meanhat, which Software do you use (Zwift, Bkool, RGT, Rouvy) and switch "FortiusANT" automatic to GradeMode after connecting the VT sensors over BLE? |
Hi @planetSammy, I use Zwift. Though I've been doing the testing in simulation ( |
I had the typical problems with Cheetah, it's not very stable. After a reboot video with grade worked and erg mode controlled from Cheetah too. I used RPI4 with Bullseye with installation by my actual script , BT , Golden Cheetah on Windows with BT4.0 stick. |
Reinstalled with new Bullseye. Still did not work ok. Upgraded to wxpython4.1.1. Now it works over BLE giving resistance feedback =) |
|
I went through all the installation logs.
Fixed all the failures one after one until the Bulleye installerscript
could run all the way without errors. Manually downloading stuff and
getting latest versions etc
One of the major hickups seemed to be the wxpyrhon and getting it sorted to
be installed
Now only hickup left is that i have to restart fortiusant once efter reboot
and rhe autostart to get it communicating. That I can live with :)
ons 23 feb. 2022 kl. 15:19 skrev decodeais ***@***.***>:
… Is now every thing ok ? Whatever happend, it is a little starange because
wxpython is for the grafik user interface and has nothing todo with
communication.
—
Reply to this email directly, view it on GitHub
<#372 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXSFJBR5ZOKIDPDPIJRIZP3U4TUGBANCNFSM5NVOKO2A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I think it would be the easiest way to make one good self-expanding installation shrinked to 2GB. In my opinion this make sense because the RPI installation runs on RPI3 without any changes. It is a little complicate but has to be only one time. Ant then every thing is fixed for this release. There is only the question where to find a free server for it. |
Memory overwritten? |
Hi guys, perhaps you are interested in following work on issue #366. |
I don't think so, because the bullseye script uses a precompiled wheel for wxpyton. |
I did a new compilation of the wheel in order to get it to run.
But disregards my input. I dont really know what Im doing. Just googling and following tips on the internet
Skickat från min iPhone
… 23 feb. 2022 kl. 21:25 skrev decodeais ***@***.***>:
Is now every thing ok ? Whatever happend, it is a little starange because wxpython is for the grafik user interface and has nothing todo with communication.
Memory overwritten?
I don't think so, because the bullseye script uses a precompiled wheel for wxpyton.
When I heard from the problems I took a fresh SD-card put the OS on it and started the installation update. The script did the rest. Can someone else do a test too, before It tooks my mind. No idea what's going wrong.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
I understand the point. OS: rpi0/1/2/3/4, windows 10/11, macOS, Linux Professionally spoken, yes. |
If you really near to get the bleak/bless solution it is better to focus on this. I new this kind of solution from another project. Aim would have been in installation ready to parameterize and start. The image for RPI 2/3/4 are the same. |
Hi @decodeais when I found FortiusAnt predecessor antifier, I did not know python, github or visual source code and had no clue what a raspberry would be. |
My first Kontakt with python was with RPI LEDs for your program. |
hi @decodeais - the RPi0 is different with armv6l architecture which requires a different install. @WouterJD 's shell script https://github.com/WouterJD/FortiusANT/blob/master/raspberry/3_InstallNodeJs.sh checks this and alters the install to suit the architecture. |
I can not test it because I have no RPI 0 and they are crazy expensive at the moment. I think I do not compile, I am only asking the nodemanager |
@decodeais - for RPi0 I've forced it to use an unofficial build as the regular builds do not support armv6. This still installs 14.15.3. This is reflected in the shell script. I've not experimented with any other variations as this works and is stable (other than requiring the fix I mentioned previously on 17 Feb https://github.com/WouterJD/FortiusANT/issues/372#issuecomment-1044205620) |
I have all Installation commands step by step for RPi Zero, if someone need this, I can post it! |
I tried to understand whats happening there. The best solution would be to change my script. |
Are you sure ? I found out that is very very important to erase the nodepackage lockfile in node directory. This changes the behavior at the next installation. This confused me a long time. |
Is this issue still alive, anything I can do and/or integrate? |
I have seen that node is still active in the bleak/bless release with the -b option. For me and some others node definitely does not work without the special packet-lock.json. Please put it into the node directory or provide a special script version which copy it into this directory. |
Hi!
Running Latest Bullseye now 64bit on Rpie4b and FortiusANT is up and running BLE
bless.
It was beeing advertised properly over BLE in Zwift for a little while then switched to raspberrypi. Possibly connected to still active node problem?
Responding well to
speed input from Vortex.
Its briefly dropping BLE connection Pretty often saying no signal in Zwift. Also connect d to node still active?
Controllable works and responds fast to hill grades. Heart rate connection not working to Raspberry pi over BLE yet..
No graphical user interface available yet..
Great work!!
|
@Toetta my workaround script for the node problem was only tested for 32bit bullseye . At this time 64 bit was still expetimental. This changed, but i have no time to test it now. There will be a problem with the gui on 64bit because I only searched for a 32 bit version of wxpython. I think there has to be opened a new issue for 64bit support. |
Ok!
I compuled a 64 bit wxpython and new wheel.
I dont get any error messages, will see if there are any issues to be seen in debug logs later
Cheers
Malkus
Skickat från min iPhone
… 27 mars 2022 kl. 23:17 skrev decodeais ***@***.***>:
@Toetta my workaround script for the node problem was only tested for 32bit bullseye . At this time 64 bit was still expetimental. This changed, but i have no time to test it now. There will be a problem with the gui on 64bit because I only searched for a 32 bit version of wxpython. I think there has to be opened a new issue for 64bit support.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
-b activates BLE, using node I have done this for compatibility purpose; even though I think that (as soon as bless/bleak is stable) -bb will be the preferred option. |
Yes please, open a separate issue to discuss wxPython. Thanks |
please test with bless version, then this issue should be gone as well |
Implemented and released |
When I made a new setup from scratch with the new PI OS ( Bullseye ) every thing worked, accept receiving grade from the training program (Rouvy). Downgrading to the last version ( Buster ) did not help. When I copied the old node directory from my "Buster" installation into the new setup every thing was ok. I found out that, if I copy the file
package-lock.json
into the node directory, the commandnpm install
gives a good result.I hope you know how to fix it. For me it looks like a version conflict, but there are no error messages.
You find this problem only if you start riding and the trainer remains in Power mode.
The text was updated successfully, but these errors were encountered: