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

Python dependencies #2

Closed
mtbiker22 opened this issue Jan 17, 2020 · 14 comments
Closed

Python dependencies #2

mtbiker22 opened this issue Jan 17, 2020 · 14 comments

Comments

@mtbiker22
Copy link

I noticed your project on the antifier GitHub page... I am very eager to get your solution working.

When trying to run your software on the same software as I was using antifier (Python 2.7) in run into the following error

File "FortiusAnt.py", line 865 clv.print() ^ SyntaxError: invalid syntax

Right now I am trying to satisfy requirements in Python 3.5 but run into problems with wxPython

Error running configure ERROR: failed building wxWidgets Traceback (most recent call last): File "build.py", line 1468, in cmd_build_wx wxbuild.main(wxDir(), build_options) File "/tmp/pip-build-mmr8jqj1/wxPython/buildtools/build_wxwidgets.py", line 372, in main "Error running configure") File "/tmp/pip-build-mmr8jqj1/wxPython/buildtools/build_wxwidgets.py", line 85, in exitIfError raise builder.BuildError(msg) buildtools.builder.BuildError: Error running configure

and Pyinput

Invalid requirement: 'python-xlib>=0.17; linux in "sys_platform"' Traceback (most recent call last):

I will look into this in more detail, guess the error is more related to my local installation.

@mtbiker22
Copy link
Author

Pyinput solved, now working on WxPython

@WouterJD
Copy link
Owner

FortiusANT is deveoped with python 3, which might explain the clv.print() syntax error.
FortiusANT is my learning-project for python and I have no prior experience with earlier releases or projects.

You might start off testing individual modules; debug.py, logfile.py and FortiusAntCommand.py are indepentantly runnable to test the module itself.

Succes!

@mtbiker22
Copy link
Author

I am getting close.. have to install some GTK+ libraries to get WxPython running...

@WouterJD
Copy link
Owner

Note that FortiusAntGui.py can also be run independently to test the module

@mtbiker22
Copy link
Author

After a night of compiling (WxPython) all dependencies are met... It was complaining about serial so I also installed pyserial. Without the ANT+ stick the GUI boots (and mentions it cannot find the ANT+ device). With the ANT+ stick installed booting stalls at "-----Linux not tested------", no GUI shows up.

When I run the program without the ANT+ stick the GUI boots, upon inserting the ANT stick and pushing Locate HW I get the error "read failed: device reports readiness to read but returned no data (device disconnect or multiple access on port?"..

@WouterJD
Copy link
Owner

You're quite close.
Now check the Ubuntu specifics to get it to work.
I have no Ubuntu, so cannot provide info. Sorry.

@WouterJD
Copy link
Owner

Try to use -d 127 to create logfile

@mtbiker22
Copy link
Author

mtbiker22 commented Jan 18, 2020

Logging output:

11:14:05,276: FortiusANT started 11:14:05,276: -a 11:14:05,277: -b 2.096,46/34,32/11 11:14:05,277: -d 127 (0b1111111) 11:14:05,277: ------------------ 11:14:05,278: Scan for hardware 11:14:05,278: GetDongle() ***** Linux not tested ***** 11:14:05,282: ResetDongle() 11:14:05,282: msg4A_ResetSystem() 11:14:05,283: SendToDongle(["a4 01 4a 00 ef"],(Reset dongle)) 11:14:05,283: Dongle send : synch=164, len= 1, id=74, check=239, info="00" + (Reset dongle) 11:14:05,284: ReadFromDongle() 11:14:05,384: Dongle drop : synch=164, len= 1, id=111, check=234, info="20" +

Also logfile.py gives me errors:

Test of wdLogfile 11:15:10,464: This logrecord cannot be written 11:15:10,465: This is a logrecord Test of wdLogfile done Traceback (most recent call last): File "logfile.py", line 98, in <module> print (Hexlify3(binascii.unhexlify("203031"))) NameError: name 'Hexlify3' is not defined

The other independent scripts work.

@WouterJD
Copy link
Owner

So ANT+ dongle works.
Will check in detail later

@WouterJD
Copy link
Owner

"Also logfile.py gives me errors:"; this is an error in the test-route and not impacting operation. New file uploaded.

@WouterJD
Copy link
Owner

WouterJD commented Jan 18, 2020

Regarding the -d flag:
Application = 0x01
Function = 0x02
antDongle = 0x04
usbTrainer = 0x08

So if you want to trace the antDongle only -d4 would be enough.
If you want to trace antDongle and functions -d 6 does the job.

It would be helpful to send the logfile in the "read failed: device reports readiness to read but returned no data (device disconnect or multiple access on port?" situation.
Where is that message displayed?

@mtbiker22
Copy link
Author

mtbiker22 commented Jan 18, 2020

With dongle

more FortiusANT.2020-01-18\ 14-31-32.log
14:31:32,392: FortiusANT started
14:31:32,393: -a
14:31:32,393: -b 2.096,46/34,32/11
14:31:32,393: -d 6 (0b110)
14:31:32,393: ------------------
14:31:32,394: GetDongle()
14:31:32,397: ResetDongle()
14:31:32,397: msg4A_ResetSystem()
14:31:32,398: SendToDongle(["a4 01 4a 00 ef"],(Reset dongle))
14:31:32,398: Dongle send : synch=164, len= 1, id=74, check=239, info="00" + (Reset dongle)
14:31:32,399: ReadFromDongle()
14:31:32,500: Dongle drop : synch=164, len= 1, id=111, check=234, info="20" +

@mtbiker22
Copy link
Author

This is with starting the GUI without ANT stick inserted (Motorbrake not powered)

14:38:28,016: FortiusANT started
14:38:28,016: -a
14:38:28,017: -b 2.096,46/34,32/11
14:38:28,017: -d 127 (0b1111111)
14:38:28,017: -g
14:38:28,018: ------------------
14:38:30,148: SetValues() done in 528 ms
14:38:30,150: Scan for hardware
14:38:30,151: GetDongle()
14:38:30,154: GetDongle() returns:
14:38:30,155: Get USB trainer
14:38:30,155: GetTrainer()
14:38:30,238: GetTrainer - Trainer found
14:38:30,286: GetTrainer() returns, trainertype=0x1932
14:38:30,287: InitialiseTrainer data="02 00 00 00" (len=4)
14:38:30,291: Scan for hardware - end
14:38:30,292: ReceiveFromTrainer()
14:38:30,296: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00 03 13 02 00
00 00 00 00 00 00 b8 61 00 00 00 00 10 04 00 00 00 00 02 a8 2a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" (len=6
4)
14:38:30,297: ReceiveFromTrainer: TargetResistance=1040 hr=0 sp=0 CurrentResistance=0 pe=0x0 cad=0 axis=0 2573 0 0
14:38:30,297: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:30,298: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:30,298: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:30,876: ReceiveFromTrainer()
14:38:30,879: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:30,879: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:30,880: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:30,880: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:31,127: ReceiveFromTrainer()
14:38:31,130: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:31,130: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:31,131: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:31,131: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:31,377: ReceiveFromTrainer()
14:38:31,380: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:31,380: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:31,381: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:31,381: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:31,628: ReceiveFromTrainer()
14:38:31,631: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:31,631: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:31,632: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:31,632: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:31,879: ReceiveFromTrainer()
14:38:31,882: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:31,882: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:31,883: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:31,883: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:32,130: ReceiveFromTrainer()
14:38:32,133: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:32,133: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:32,134: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:32,134: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:32,381: ReceiveFromTrainer()
14:38:32,384: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:32,384: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:32,385: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:32,385: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:32,632: ReceiveFromTrainer()
14:38:32,635: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:32,635: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:32,636: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:32,636: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:32,883: ReceiveFromTrainer()
14:38:32,886: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:32,886: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:32,887: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:32,887: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:33,134: ReceiveFromTrainer()
14:38:33,137: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:33,137: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:33,138: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:33,138: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:33,385: ReceiveFromTrainer()
14:38:33,388: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:33,388: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:33,389: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:33,389: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:33,636: ReceiveFromTrainer()
14:38:33,639: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:33,639: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:33,640: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:33,640: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:33,887: ReceiveFromTrainer()
14:38:33,890: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:33,890: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:33,891: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:33,891: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:34,138: ReceiveFromTrainer()
14:38:34,141: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:34,141: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:34,142: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:34,142: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:34,389: ReceiveFromTrainer()
14:38:34,392: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:34,392: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:34,393: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:34,393: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:34,640: ReceiveFromTrainer()
14:38:34,643: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:34,643: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:34,644: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:34,644: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:34,891: ReceiveFromTrainer()
14:38:34,894: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:34,894: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:34,895: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:34,895: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:35,142: ReceiveFromTrainer()
14:38:35,145: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:35,145: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:35,146: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:35,146: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:35,393: ReceiveFromTrainer()
14:38:35,396: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:35,396: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:35,397: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:35,397: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:35,644: ReceiveFromTrainer()
14:38:35,647: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:35,647: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:35,648: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:35,648: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:35,895: ReceiveFromTrainer()
14:38:35,898: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:35,898: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:35,899: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:35,899: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:36,146: ReceiveFromTrainer()
14:38:36,149: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:36,149: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:36,150: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:36,150: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:36,397: ReceiveFromTrainer()
14:38:36,400: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:36,400: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:36,401: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:36,401: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:36,649: ReceiveFromTrainer()
14:38:36,651: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:36,651: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:36,652: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:36,652: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:36,899: ReceiveFromTrainer()
14:38:36,902: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:36,902: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:36,903: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:36,903: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:37,150: ReceiveFromTrainer()
14:38:37,153: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:37,153: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:37,154: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:37,154: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:37,401: ReceiveFromTrainer()
14:38:37,404: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:37,404: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:37,405: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:37,405: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:37,652: ReceiveFromTrainer()
14:38:37,655: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:37,655: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:37,656: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:37,656: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:37,903: ReceiveFromTrainer()
14:38:37,906: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:37,906: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:37,907: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:37,907: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:38,154: ReceiveFromTrainer()
14:38:38,157: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:38,157: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:38,158: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:38,158: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:38,405: ReceiveFromTrainer()
14:38:38,408: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:38,408: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:38,409: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:38,409: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:38,656: ReceiveFromTrainer()
14:38:38,659: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:38,659: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:38,660: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:38,660: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:38,907: ReceiveFromTrainer()
14:38:38,910: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:38,910: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:38,911: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:38,911: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:39,158: ReceiveFromTrainer()
14:38:39,161: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:39,161: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:39,162: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:39,162: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:39,409: ReceiveFromTrainer()
14:38:39,412: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:39,412: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:39,413: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:39,413: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:39,660: ReceiveFromTrainer()
14:38:39,663: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:39,663: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:39,664: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:39,664: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:39,911: ReceiveFromTrainer()
14:38:39,914: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:39,914: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:39,915: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:39,915: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:40,162: ReceiveFromTrainer()
14:38:40,165: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:40,165: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:40,166: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:40,166: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:40,413: ReceiveFromTrainer()
14:38:40,417: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:40,417: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:40,418: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:40,418: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:40,664: ReceiveFromTrainer()
14:38:40,667: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:40,667: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:40,668: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:40,668: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:40,915: ReceiveFromTrainer()
14:38:40,917: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:40,917: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:40,918: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:40,918: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:41,165: ReceiveFromTrainer()
14:38:41,168: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:41,168: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:41,169: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:41,169: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:41,417: ReceiveFromTrainer()
14:38:41,418: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:41,419: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:41,420: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:41,420: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:41,667: ReceiveFromTrainer()
14:38:41,669: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:41,669: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:41,670: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:41,670: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:41,918: ReceiveFromTrainer()
14:38:41,919: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:41,919: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:41,920: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:41,920: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:42,168: ReceiveFromTrainer()
14:38:42,171: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:42,171: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:42,172: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:42,172: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:42,419: ReceiveFromTrainer()
14:38:42,422: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:42,422: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:42,423: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:42,423: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:42,670: ReceiveFromTrainer()
14:38:42,673: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:42,673: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:42,674: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:42,674: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:42,921: ReceiveFromTrainer()
14:38:42,924: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:42,924: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:42,925: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:42,925: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:43,172: ReceiveFromTrainer()
14:38:43,175: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:43,175: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:43,176: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:43,176: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:43,423: ReceiveFromTrainer()
14:38:43,426: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:43,426: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:43,427: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:43,427: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:43,675: ReceiveFromTrainer()
14:38:43,677: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:43,677: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:43,678: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:43,678: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:43,926: ReceiveFromTrainer()
14:38:43,928: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:43,928: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:43,929: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:43,930: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:44,177: ReceiveFromTrainer()
14:38:44,179: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:44,179: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:44,180: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:44,180: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:44,427: ReceiveFromTrainer()
14:38:44,430: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:44,430: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:44,431: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:44,432: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:44,678: ReceiveFromTrainer()
14:38:44,681: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:44,681: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:44,682: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:44,682: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:44,928: ReceiveFromTrainer()
14:38:44,930: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:44,933: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:44,933: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:44,934: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:45,179: ReceiveFromTrainer()
14:38:45,181: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:45,181: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:45,182: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:45,182: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:45,430: ReceiveFromTrainer()
14:38:45,432: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:45,432: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:45,433: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:45,433: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:45,680: ReceiveFromTrainer()
14:38:45,683: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:45,683: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:45,684: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:45,684: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:45,931: ReceiveFromTrainer()
14:38:45,934: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:45,934: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:45,935: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:45,935: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:46,181: ReceiveFromTrainer()
14:38:46,184: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:46,184: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:46,185: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:46,185: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:46,432: ReceiveFromTrainer()
14:38:46,435: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:46,435: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:46,436: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:46,436: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:46,683: ReceiveFromTrainer()
14:38:46,686: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:46,686: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:46,687: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:46,687: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:46,934: ReceiveFromTrainer()
14:38:46,937: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:46,937: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:46,938: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:46,938: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:47,185: ReceiveFromTrainer()
14:38:47,187: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
bart@Atom ~/Downloads/FortiusANT-master $ tail FortiusANT.2020-01-18\ 14-38-28.log
14:38:46,686: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:46,687: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:46,687: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:46,934: ReceiveFromTrainer()
14:38:46,937: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)
14:38:46,937: SendToTrainer(1, 100, False, -1, 0, 0, 0)
14:38:46,938: Trainer send data="01 08 01 00 10 04 00 00 02 0a 10 04" (len=12)
14:38:46,938: target=1040 pe=0 mode=2 weight=10 cal=1040
14:38:47,185: ReceiveFromTrainer()
14:38:47,187: Trainer recv data="12 99 12 00 00 02 00 00 0a 00 00 00 00 00 00 00 00 00 0d 0a 00 00 00 00" (len=24)

Upon the ant dongle and pushing the locate hardware button I get the .. in the terminal:
"read failed: device reports readiness to read but returned no data (device disconnect or multiple access on port?"

This evening I have more time to look into this in detail.

@WouterJD
Copy link
Owner

I'm not at home now, will check Tonite.
Good info!

WouterJD added a commit that referenced this issue Dec 27, 2020
WouterJD added a commit that referenced this issue Dec 27, 2020
WouterJD added a commit that referenced this issue Jan 21, 2021
* #184 Power in Rouvy issue

* #173 Version 4.0 Communicates Much Higher Power vs. 3.8

* #184 Power in Rouvy issue #2

* #184 Power in Rouvy issue #2

* #184 Power in Rouvy issue #3

* Fortius Antifier v4.2 test IV

* Fortius Antifier v5.1 test I

* Fortius Antifier v5.1 test II

* Fortius Antifier v5.1 test IIb

* #201

* #201

* Fortius Antifier v5.1 test III

* heart -> Heart2

* heart -> Heart2

* heart* -> heart.jpg

* Fortius Antifier v5.1 test IV

* Fortius Antifier v5.1 test V

* Fortius Antifier v5.1 test VI

* Fortius Antifier v5.1
WouterJD added a commit that referenced this issue Mar 11, 2021
WouterJD added a commit that referenced this issue Mar 17, 2021
* Fortius Antifier v6.0 Manual

* Fortius Antifier v6.0 Manual

* Fortius Antifier v6.0.a

* Fortius Antifier v6.0.b

* .sh made executable

* sudo gdown

* Install script updates

* Scripting for ANT #1

* Scripting for ANT #2

* Raspberry Rpi0

* Raspberry Rpi0

* Raspberry Rpi0

* Raspberry Rpi0

* Fortius Antifier v6.0.c Manual

* Raspberry Rpi0

* Fortius Antifier v6.0.d Manual

* Meanhat's Tacx T1902
WouterJD added a commit that referenced this issue Mar 7, 2023
* steering, integrated version #1

* steering, integrated version #2 documentation

* steering, integrated version #3 bless commandline issue solved

* steering, integrated version #4 error message update

* Some small improvements
WouterJD added a commit that referenced this issue Mar 7, 2023
* steering, integrated version #1

* steering, integrated version #2 documentation

* steering, integrated version #3 bless commandline issue solved

* steering, integrated version #4 error message update

* #341 refactor ANT loop. First version

* Some small improvements (#391)

* New reading loop (in thread) ready for test

* #404 #408 and some small corrections

* Python complied into executable
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

2 participants