Code Monkey home page Code Monkey logo

simcline's People

Contributors

berg0162 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

simcline's Issues

Fail message in Arduino IDE

hi.
im very new at this and this project got me into arduino so here i am struggeling and im getting this messege when compilling the code:

Arduino: 1.8.16 (Windows 7), Board: "Adafruit Feather nRF52832, S132 6.1.1, Level 0 (Release)"

try_one:56:10: fatal error: Lifter.h: No such file or directory

56 | #include <Lifter.h>

  |          ^~~~~~~~~~

compilation terminated.

exit status 1

Lifter.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Elite Trainer code

Dear Jörgen!
I came back here, but today not for an issue regarding the my SimCline simulator (it works fine!).
Recentelly I bought a new Elite Direto XR-T trainer for my new SCOTT ADDICT RC bike and i saw that SimCline now is availble also Wahoo trainer and of couse TACX too.
So, I would like to contribute to the development of SimCline for ELITE if you plan to do it, so that SimCline can communicate with the best trainers on the market and to be a reference for us.

Let me know how I can be useful

Best Regards
Filippo (cherryphilip)

correlation between actuator linear vs slope

Dear Jörgen!

I'm back again with a couple questions. First I tried to study the simcline flowchart just to adopt it on my chassis.
I understood the correlation between counts / slope % / VL6180 reads height to target /height of the fork wheel from gound.

I adopted these concepts also on my chassis (aluminum + 3d printed abs) just to create a simple solution without wood.
In general it works well, the flat position is correct but when slope value increases above 3.2% the equipment is not alligned with the software of the trainer.

Inside spreadsheet you can find all values related to VL6180 readings, slopes and wheel support to ground height.

Could you tell me what I'm doing wrong?

Thanks angan for your answers

Best Regards
Filippo

SimCline.xlsx

20211222_130815
20211222_130828

20211222_125421
20211222_125426

20211222_130547
20211222_130554

20211222_130536
20211222_130838
20211222_130843
20211222_130902
20211222_130909

294 error line: **expected unqualified-id before '.' token**

I'm trying to load the file ino on nFR52 board.
After installing all libraries need the program is stopped at line 294: Lifter.Init(actuatorOutPin1, actuatorOutPin2, MINPOSITION, MAXPOSITION, BANDWIDTH);
for this msg:
exit status 1
expected unqualified-id before '.' token

I would like to verify the comunucation with my trainer (TACX Smart Genius) before to buy the other components.

Could you help me. I'm a beginner
.

Thansk a lot for your kindly feedback and contribution for this project.

Best Regards
cherryphilip@74

Test Zwift Hub FTMS

    Hello Jorghen,

Here is the first result with FTMS_Client_ v022

I don't know if it's good?

Next test when I receive the dongle for the Pc

Friendship,
Joel

[CFG ] SoftDevice's RAM requires: 0x20002C78
FTMS and Chars 'initialized'
CPS and Chars 'initialized'
CSCS and Chars 'initialized'
GA and Chars 'initialized'
DIS and Chars 'initialized'
Start Scanning for CPS, CSC and FTMS!
[BLE ] BLE_GAP_EVT_ADV_REPORT : Conn Handle = 65535
[BLE ] BLE_GAP_EVT_ADV_REPORT : Conn Handle = 65535
Found advertising Peripheral with FTMS service!, see the Raw Data packet:
Timestamp MAC Address Rssi Data
000000681 F8:9C:FC:53:5E:49 -60 09-02-16-18-26-18-18-18-0A-18
[BLE ] BLE_GAP_EVT_CONNECTED : Conn Handle = 0
[GAP ] MAC = F8:9C:FC:53:5E:49, Type = 1, Resolved = 0
[GAP ] Conn Interval = 20.00 ms, Latency = 0, Supervisor Timeout = 2000 ms
[BLE ] BLE_GAP_EVT_DISCONNECTED : Conn Handle = 0
[GAP ] Disconnect Reason: CONN_FAILED_TO_BE_ESTABLISHED
Feather nRF52 (Central) connected to Trainer (Peripheral) device: [] MAC Address: F8:9C:FC:53:5E:49
Now checking mandatory Client Services and Characteristics!
Discovering Client Cycling Power (CP) Service ... [DISC ] [SVC] Handle start = 1
bool BLEDiscovery::_discoverService(uint16_t, BLEClientService&, uint16_t): 79: verify failed, error = BLE_ERROR_INVALID_CONN_HANDLE
Not Found!
Disconnecting since Client Cyling Power Service is mandatory!
Client Disconnected, reason = 0x3E

Restart the Feather nRF52 Client for a new run! <<<
Couldn't enable notify for Client CP Measurement Characteristic.
Couldn't enable indicate for Client CP Control Point Characteristic.
Couldn't enable notify for Client CSC Measurement Characteristic.
Couldn't enable notify for Client FTM Training Status Characteristic.
FTMS (trainer) is controlled by another Client (Training App)!
Client (Central) is Up and Running!

BSP Library : 1.3.0
Bootloader : s140 6.1.1
Serial No : C2BA380FAD3CBBC2

--------- SoftDevice Config ---------
Max UUID128 : 10
ATTR Table Size : 4096
Service Changed : 1
Central Connect Setting

  • Max MTU : 23
  • Event Length : 3
  • HVN Queue Size : 1
  • WrCmd Queue Size: 1

--------- BLE Settings ---------
Name : ItsyBitsy nRF52840 Express
Max Connections : Peripheral = 0, Central = 1
Address : E2:AA:F7:E9:06:E0 (Static)
TX Power : 0 dBm
Conn Intervals : min = 20.00 ms, max = 30.00 ms
Conn Timeout : 2000 ms
Central Paired Devices:

Originally posted by @le-joebar in #5 (comment)

FTMS_client code with Jetblack volt trainer using ESP-wroom-32

Hi berg0162,
I get "Client Reads HR Location Sensor:Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled." error when I try to run the ftms_client code. I have pasted the serial monitor output below of the full cycle everytime the board reboots. I also tried the FTMS_server code and it works just fine. Let me know if you need more information to find out why it is not working with my particular set up. Thank you in advance.

-> Client Reads Device Name: [Volt]
-> Client Reads Appearance: [1152]
Client Device Information Service: Found!
-> Client Reads Manufacturer Name: [JetBlack]
-> Client Reads Model Number: [05]
-> Client Reads Serial Number: [828]
Client_CyclingPower_Service: Found!
Client_CP_Measurement_Chr: Found!
Client_CP_Feature_Chr: Found!
-> Client Reads Raw CP Feature bytes: [4] [ 0C 00 00 00 ]
Wheel revolution data supported
Crank revolution data supported
Client_CP_Location_Chr: Found!
-> Client Reads HR Location Sensor:Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x4009140c PS : 0x00060c30 A0 : 0x8011ae48 A1 : 0x3ffc85d0
A2 : 0xff00ffff A3 : 0xff00fffb A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffc8a06
A10 : 0x3ffc8a03 A11 : 0x3ffc87d1 A12 : 0x00000003 A13 : 0x00000001
A14 : 0x00060e20 A15 : 0x00000001 SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0xff00ffff LBEG : 0x4009142d LEND : 0x4009143d LCOUNT : 0xffffffff

Backtrace: 0x40091409:0x3ffc85d0 0x4011ae45:0x3ffc85e0 0x40121e7a:0x3ffc88f0 0x40121eb6:0x3ffc8980 0x400e6e46:0x3ffc89c0 0x400d25fa:0x3ffc8a60 0x400d34fc:0x3ffc8ab0 0x400d3552:0x3ffc8ad0 0x400e7ab9:0x3ffc8b10

ELF file SHA256: 22369bb919dc67f3

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
ESP32 BLE Client/Central: CPS, CSC, HBM and FTMS
------------------- Version 01.0 --------------------
Client Starts Scanning for Server Device with CPS, CSC and FTMS!
BLE Advertised Device found: Name: , Address: 52:13:3e:f4:ba:09, manufacturer data: 4c001005231828fa3f, txPower: 7
BLE Advertised Device found: Name: , Address: 40:a0:23:a6:b2:78, manufacturer data: 4c001005171857574b, txPower: 11
BLE Advertised Device found: Name: Volt, Address: ed:84:37:e2:f5:e5, appearance: 1152, serviceUUID: 0x1826
Service Data:
UUID: 0x1826, Data: �
Client Connection Parameters -> Interval: [40] Latency: [0] Supervision Timeout: [256]
ESP32 Client connected to Server device with Name: [Volt] MAC Address: [ED:84:37:E2:F5:E5] MTU: [244]
Now checking all Client Services and Characteristics!
If Mandatory Services Fail --> the Client will disconnect!
Client Generic Access: Found!
-> Client Reads Device Name: [Volt]
-> Client Reads Appearance: [1152]

Simcline FTMS with Elite Direto

Please post here when you come across any erratic behavior of the Simcline FTMS when connected with an Elite Direto Trainer!

Testing Simcline with FTMS v01

New section for Tread testing Simcline with FTMS v01
For a fast feedback (if you want) I created a private group in telegram (here link https://t.me/+FBKaD3Kue2Q5MzM0).
I will delete the link once time you joined it.

Can I close the previous Trainer Elite code section?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.