Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Bike Power → Thread

   

Battery Status

Rank

Total Posts: 13

Joined 2013-09-19

PM

Hi all,

Is there a trick to getting the battery status to show up on the EDGE 500.

I am able to display the power and cadence but cannot get the battery status to show up when I browse in the Sensor Details section of the ANT+ Power section in my garmin.

void Send_Battery(void)
{
   buf[0]
=MESG_TX_SYNC;//SYNC Byte
      
buf[1]=0x09;//LENGTH Byte
      
buf[2]=0x4e//0x4E broadcast||4f for ack
      
buf[3]=0x00;//Channel number
      
      
buf[4]=0x52;//Battery page identifier
      
buf[5]=0xff;//
       
buf[6]=0xff;//
       
        
buf[7]=1;//operating time LSB
         
buf[8]=2;//
          
buf[9]=3;//operating time MSB
           
buf[10]=0x8b;//battery level 
           
buf[11]=0x32;//battery level in volts and 
      
buf[12]=calc_checksum (buf12);
      
ANTsend (buf13) ;
 


I'm calling this every second, but i still see the message no sensor information received.

Any ideas?
     
Avatar
RankRankRankRank

Total Posts: 235

Joined 2012-08-31

PM

Does the battery level show up when you transmit this info to SimulANT+?

The page looks right (although you don't need to be sending it every second). If it doesn't show up in SimulANT+ you could check to see whether you are overwiting the message in the buffer with any other data before it is sent. You should be waiting for an EVENT_TX notification before sending new data to the buffer.      
Rank

Total Posts: 13

Joined 2013-09-19

PM

No, the message I see there is: No Sensor Information Received. I'm using the EDGE 500 to display the values.
Ok so I should wait for one of the 4Hz messages to be received over UART and only then send the message, I can try check if that helps.

Does it matter if I use 4f for ACK for 4e for Broadcast?
while(1)
    
{
       output_toggle
(led_red);
    
delay_ms(500);
   
Send_Battery();
        
delay_ms(500);
    
Send_Power(330);
    


This displays the 330W correctly but no battery info, is there any other trick I'm missing?      
Rank

Total Posts: 13

Joined 2013-09-19

PM

I still cannot display battery information from my power meter. Does anybody know how to get this information displayed?
     
Avatar
RankRankRankRank

Total Posts: 235

Joined 2012-08-31

PM

Did you try downloading simulANT+ to check whether the battery status is showing up correctly there? You can see the log of all messages received on the channel using this tool to confirm that you are transmitting the message that you expect to be sending.

You are only supposed to transmit from the power meter using broadcast messages. Using acks will burn more power.

You should also be listening for the ANT EVENT_TX messages to cue sending your data to the ANT TX buffer. This is more reliable than using a timer.
     
Rank

Total Posts: 13

Joined 2013-09-19

PM

Do I maybe need to send the Manufacturers Identification information for all the information to show up, this would Common Page 0x50, the battery info is 0x52

Which USB stick do I need to have to be able to view these messages using that software?

Eoin      
Avatar
RankRankRankRank

Total Posts: 235

Joined 2012-08-31

PM

You should be transmitting all the data pages listed as required in the ANT+ Device Profile. However if you use simulANT+ it will show you the battery status page (if you are transmitting that page), regardless of which other common pages are or aren't being sent.

You can use any ANT USB stick.

If you would like more info about simulANT+, see here: http://www.thisisant.com/developer/ant/starting-your-project/#73_tab