Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Fitness Equipment → Thread

   

Help using SimulANT+ 2.10 to “mock” real device

Rank

Total Posts: 2

Joined 2021-05-09

PM

Hello community,

I have been developing controlling slave app for FE-C device namely Saris H3. Mostly it works fine but I have a few quirks I would like to test and verify. As the testing with device + bike is quite tedious I wanted to try out SimulANT.

I have 2 USBs and I am capable to connect and use 2 simulation devices e.g. FE-C+ FE-Display.

But, when I try to simulate FE-C and "boot" my app there is no love happening.
I use the default values in simulator and default values on my client app.

Is this kind of setup possible?
Am I doing something apparently wrong?
What would you need to be able to help me out figuring this thing out? smile

Following is a small log excerpt from client app:
[2022-11-21 21:37:14.239] [PowerOnAnt] [info] ANT Library Version ALU3.800
[2022-11-21 21:41:41.876] [PowerOnAnt] [info] Server listening on 0.0.0.0:50051
[2022-11-21 21:41:48.272] [PowerOnAnt] [info] Registered Bike Power Data Stream
[2022-11-21 21:41:48.272] [PowerOnAnt] [info] Registered Manufacturer Data Stream
[2022-11-21 21:41:48.273] [PowerOnAnt] [info] ANT Library Version ALU3.800
[2022-11-21 21:41:48.273] [PowerOnAnt] [info] Registered Command Status Data Stream
[2022-11-21 21:41:48.274] [PowerOnAnt] [info] Registered Fitness Equipment Capabilities Data Stream
[2022-11-21 21:41:48.331] [PowerOnAnt] [info] Initialization was successful!
[2022-11-21 21:41:48.331] [PowerOnAnt] [info] Init complete...
[2022-11-21 21:41:48.331] [PowerOnAnt] [info] Resetting module...
[2022-11-21 21:41:48.342] [PowerOnAnt] [info] Cid: 0x0 msgId: 0x6F
[2022-11-21 21:41:48.342] [PowerOnAnt] [info] RESET Complete, reason:
[2022-11-21 21:41:48.342] [PowerOnAnt] [info] RESET_CMD
[2022-11-21 21:41:48.342] [PowerOnAnt] [info]
[2022-11-21 21:41:49.347] [PowerOnAnt] [info] Setting network key...
[2022-11-21 21:41:49.353] [PowerOnAnt] [info] Cid: 0x0 msgId: 0x40
[2022-11-21 21:41:49.353] [PowerOnAnt] [info] Network key set
[2022-11-21 21:41:49.353] [PowerOnAnt] [info] Assigning channel...
[2022-11-21 21:41:49.362] [PowerOnAnt] [info] Cid: 0x0 msgId: 0x40
[2022-11-21 21:41:49.362] [PowerOnAnt] [info] Channel assigned
[2022-11-21 21:41:49.362] [PowerOnAnt] [info] Setting Channel ID...
[2022-11-21 21:41:49.372] [PowerOnAnt] [info] Cid: 0x0 msgId: 0x40
[2022-11-21 21:41:49.372] [PowerOnAnt] [info] Channel ID set
[2022-11-21 21:41:49.372] [PowerOnAnt] [info] Setting ChannelSearchTimeout...
[2022-11-21 21:41:49.382] [PowerOnAnt] [info] Cid: 0x0 msgId: 0x40
[2022-11-21 21:41:49.382] [PowerOnAnt] [info] ChannelSearchTimeout ID set
[2022-11-21 21:41:49.382] [PowerOnAnt] [info] Setting Radio Frequency...
[2022-11-21 21:41:49.392] [PowerOnAnt] [info] Cid: 0x0 msgId: 0x40
[2022-11-21 21:41:49.392] [PowerOnAnt] [info] Radio Frequency set
[2022-11-21 21:41:49.392] [PowerOnAnt] [info] Opening channel...
[2022-11-21 21:41:49.402] [PowerOnAnt] [info] Cid: 0x0 msgId: 0x40
[2022-11-21 21:41:49.402] [PowerOnAnt] [info] Channel opened
[2022-11-21 21:41:49.402] [PowerOnAnt] [info] Enabling extended messages...
[2022-11-21 21:41:49.403] [PowerOnAnt] [info] Extended messages enabled
[2022-11-21 21:41:49.412] [PowerOnAnt] [info] Cid: 0x0 msgId: 0x40
[2022-11-21 21:41:49.412] [PowerOnAnt] [info] Extended messages enabled
After this 0 traffic smile      
Rank

Total Posts: 2

Joined 2021-05-09

PM

Ah, I was dumb and I expected some data coming from the simulator on broadcast channel...

Ok, now I got them connected and I would like to know how to simulate sending "power data" from simulator to slave app?
In addition, do you have any advice how to test interoperability of setTargetPower (0x31) & request data page 0x46 (with request to get status of command 0x47)? Will simulANT reply automatically to my request 0x46? Do I need to write some scripts to do this or?

Best