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

Trainer Not Detected #43

Open
RodeTheAlpe opened this issue Jan 22, 2020 · 13 comments
Open

Trainer Not Detected #43

RodeTheAlpe opened this issue Jan 22, 2020 · 13 comments

Comments

@RodeTheAlpe
Copy link

Seems like everything is working up until locating head unit (drivers, VendId, etc.).
Running from the build_x64 directory gave me a couple of errors looking for fxload-libusb.exe and FortiusSWPID1942Renum.hex which are in the main directory. I tried copying those two into the build_x64 directory and still no luck.
Any ideas, I'd love to get this working. Thanks!

antifier01
antifier02
antifier03
antifier04

@WouterJD
Copy link

If antifier does not work at this point, I probably do not have a solution either.
You might check https://github.com/WouterJD/FortiusANT/ which is a successor of antifier.

@RodeTheAlpe
Copy link
Author

RodeTheAlpe commented Jan 22, 2020 via email

@WouterJD
Copy link

In case of questions, please post on https://github.com/WouterJD/FortiusANT/ thanks

@Lorangaw
Copy link

I had the same problem with my I-magic 1904. It seems that I managed to solve it. In the bottom section of the trainer.py file, there is a function "def get_trainer()".
In this function is a variable definition "idpl = [0x1904, 0x1932, 0x1942, 0xe6be]#iflow, fortius, uninitialised fortius" . The function scans the USB ports for one value at a time from that list valuue. My trainer was missing in that list definition. In my pasted quote you can find 0x1904. That is added by me and is the i-magic trainer that I have. I am running Ubuntu Linux and used the command sudo lsusb while trainer was connected to the computer. From that output did I get the "1904" value.
Screenshot from 2020-03-12 22-03-06

Screenshot from 2020-03-12 22-10-53

I would propose you do the following to solve the issue:

  1. plug in the trainer
  2. open a text promt and type the command sudo lsusb
  3. see if you find the trainer in that list (see my screenshot, it was easy to find the trainer. Note that you also find the ant dongle)
  4. open a text editor and add your trainer number to the list variable "idpl"
  5. save and close trainer.py file
  6. sudo python antifier

I suppose problem and solution is the same in Windows. Only different tools.

@WouterJD
Copy link

Thanks for your feedback!

The 1904 was implemented in 2020-02-25 version of usbTrainer.py, introducing variables for the constants.:
tt_iMagicWG = 0x1904 # New "white green" iMagic headunit (firmware inside)

I have implemented the constants from @totalreverse interface definitions; when new types are required I will update the list. I do not expect many updates.
The code detects known trainers but does not detect unknown trainers but simply ignores them. This is not the nicest approach (a message "unsupported Tacx trainer" would be nicer), but perhaps (considering where we are in the lfe-time of USB-trainers) acceptable.

Regarding "I would propose you do the following to solve the issue:" do you mean additional updates are required?

@WouterJD
Copy link

Please sign WouterJD/FortiusANT#14 thanks

@Lorangaw
Copy link

Lorangaw commented Mar 13, 2020 via email

@WouterJD
Copy link

WouterJD commented Mar 13, 2020 via email

@Lorangaw
Copy link

I tried to use only a windows 10 computer with two ANT dongles. I got the same problem and the solution was obviously the same. I added 0x1904 to the trainer.py and it works!

@WouterJD
Copy link

WouterJD commented Apr 6, 2020

Thanks I’ll check it out. Jeff

Hi Jeff, any results?

@RodeTheAlpe
Copy link
Author

Thanks I’ll check it out. Jeff

Hi Jeff, any results?

Have not had time to get back to this but it's on my list of things to do. I'll definitely update here when it's up and running. Thanks for the fix!

@RodeTheAlpe
Copy link
Author

WouterJD no luck so I moved over to FortiusANT but having some strange results there. I'll post on that page and see if you can help. Thanks

@WouterJD
Copy link

Jeff, I will try to assist as soon as info provided👍

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