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
Communication problems with emulated SIII #92
Comments
Hi Alex, Let me take a look at the implementation and I'm sure we'll be able to sort out the problem. Sven |
Hi Sven, Alex |
I was never happy with the transfer code, but it worked for the S4 so I kept it that way. These might be related: |
Hi, I got it working now. Had some issues first with incomplete commands transmitted (e.g. a single byte out of a 3-byte command) but now it's fine. Exception handling is still poor. Updated files are here: I was using now the library: com.github.felHR85:UsbSerial:6.1.0 Also added additional devices to the deviceFilter so Coxswain starts and connects automatically. Would be nice if you could add this to the main branch. |
Instead of listing all possible devices, wouldn't it be easier if you changed VID/PID of your microcontroller to that of the Waterrrower (1240/10)? |
For me personally it would be just the CP210x (). I couldn't change that VID/PID because it's the USB/serial converter chip on the microcontroller board. If someone uses a serial connection, he will use any of the converter chips supported by the driver library, but of course you're right that Coxswain will turn out every time a user connects one of the devices. Can that be set up in some dynamic way? Coxswain only opening when it was confirmed before? |
Here's another update adding energy/power calculation for Protocol3 according to the formular shown on https://www.reddit.com/r/orangetheory/comments/7cp37a/comparison_of_pace_to_wattage_on_the_waterrower/. |
Right now I'm busy with support for bluetooth connection to the Waterrower. Once I've got that out of the way I'll take a look at SIII support. |
Hi, here's another bugfix. When the strokes are becoming too short, there seems to be a division by zero in the RatioCalculator crashing the whole connection. Fixed by catching the Exception in the Protocol3.transfer-function. |
Hi, I don't own a Waterrower with S4 computer, I only have a WaterRower A1 with a broken display, so I am trying to emulate the serial SIII protocol with a microcontroller directly reading out signals from the sensor at the Waterrower rotor.
I have set communication to 1200 bps/8/N/1 and I am currently trying to simulate the distance command. However, I am not successful to get any useful communication with coxswain. With a terminal tool running on the same smartphone I can confirm I am successfully transmitting 0xFE 0x10 (distance of 1.6 m/s) once a second with the above mentioned communication settings.
Coxswain does connect to the USB/serial adapter and starts the workout after receiving the first packet but I am not seeing any change in the distance. Also, on the trace (https://github.com/svenmeier/coxswain/files/3624847/waterrower.trace.txt) I cannot recognize any correct identification of the commands I'have been sending (0xFE 0x10).
I know the failure is probably on my side but any pointer to what I should check for would be appreciated. S3 protocol is still labelled experimental - was it ever successfully tested? Is receiving of distance data not enough to show any progress on the coxswain screen?
Thanks
Alex
The text was updated successfully, but these errors were encountered: