Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Weight Scale → Thread

   

Communication with the Scale

Rank

Total Posts: 5

Joined 2013-06-27

PM

Hello iam trying to communicate with the scale with the demo_lib (i need to do the application in c++) and demo_Dll doesnt seem to work in my pc. I have set the network key and changed the device type ( i have read all the pdf before starting) but still the scale doesnt start working.
Any thoughts?

Thanks

Ps: i alter this

#define USER_BAUDRATE (57600) // For AT3/AP2, use 57600
#define USER_RADIOFREQ (57)

#define USER_ANTCHANNEL (0)
#define USER_DEVICENUM (0)
#define USER_DEVICETYPE (119)
#define USER_TRANSTYPE (0)

#define USER_NETWORK_KEY {ANT+ Network Key}
#define USER_NETWORK_NUM (0) // The network key is assigned to this network number

#define MESSAGE_TIMEOUT (1000)      
Rank

Total Posts: 5

Joined 2013-06-27

PM

hello, just another question if possible! How do i send the profile to the scale ? i cant find any function to send it in the demo! The only one i saw that was possible to communicate with the scale was SendBroadcast but i cant seem to send it right and the data from the scale comes all wrong (not the real weight and always different).

Best Regards      
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

I've accomplished that using ANT_Managed_Library.ANT_Channel.sendBroadcastData(...) and it works well.
You should familiarize yourself with the Weight Scale ANT+ profile to find out how the data payload must look like and when to send this message.

Cheers,
OMB