This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Background scanning ?

Dear Members,

For scanning GSC10 sensor,

can this example be used ?

https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ant_examples_scanning.html

Thanks

Parents
  • Garmin GSC10 , can I retrieve the information from it with ANT background scanning ?

    How can I use this function ?

    void background_scanner_process(ant_evt_t * p_ant_evt, void * p_context)
    {
        uint32_t err_code;
        UNUSED_PARAMETER(p_context);
        if (p_ant_evt->channel != ANT_BS_CHANNEL_NUMBER)
        {
            return;
        }
    
        switch (p_ant_evt->event)
        {
            case EVENT_RX:
            {
                err_code = bsp_indication_set(BSP_INDICATE_RCV_OK);
                APP_ERROR_CHECK(err_code);
    
                if (p_ant_evt->message.ANT_MESSAGE_stExtMesgBF.bANTDeviceID)
                {
                    m_last_device_id = uint16_decode(p_ant_evt->message.ANT_MESSAGE_aucExtData);
                }
    
                if (p_ant_evt->message.ANT_MESSAGE_stExtMesgBF.bANTRssi)
                {
                    m_last_rssi = p_ant_evt->message.ANT_MESSAGE_aucExtData[5];
                }
    
                NRF_LOG_INFO("Message number %d", m_recieved);
                NRF_LOG_INFO("Device ID:     %d", m_last_device_id);
                NRF_LOG_INFO("RSSI:          %d", m_last_rssi);
    
                m_recieved++;
                break;
            }
            default:
            {
                break;
            }
        }
    }

    background_scanner_process(ant_evt_t * p_ant_evt, void * p_context)

    What value should I enter in that (ant_evt_t * p_ant_evt, void * p_context) ?

    Thanks

  • If I want to see the value of Garmin GSC10 cadence and speed sensor, how can I retrieve it ? thanks

  • Hi Kenneth,

    Please give me suggestion, which example should I use for scanning Garmin GSC10 ?

    Thanks

  • It is not easy to provide a simple answer here, but here it goes:

    Any of the master examples should show how you can scan for ANT devices, while ANT+ is "just" defined configuration and usage of an ANT channel. So if you know how to scan for an ANT device, then you can go to the ANT+ profile you are interested in to find the specific configuration you need to set for the ANT channel to "find" the ANT+ device you are in specific interested in. You need to register as an ANT+ adopter on www.thisisant.com to be able to support ANT+.

  • Hi Kenneth,

    Thanks for the reply,

    ................ So if you know how to scan for an ANT device, then you can go to the ANT+ profile you are interested in to find the specific configuration you need to set for the ANT channel to "find" the ANT+ device you are in specific interested in................

    Which file should I change to configure my ANT code talking with my Garmin GSC-10?

    What's the configuration (channel, frequency and so on ) for Garmin GSC-10 ?

    Where can I find ANT+ profile I'm are interested in ,which file in code example?

    ...........................You need to register as an ANT+ adopter on www.thisisant.com to be able to support ANT+...............

    I have registered, what will I do from that registration ? I have put ANT key license on my code.

    Thanks

  • What should I change here for pairing with Garmin GSC10?

    https://www.thisisant.com/directory/gsc-10-speed-cadence-bike-sensor

     const ant_channel_config_t ms_channel_config =
        {
            .channel_number    = ANT_MS_CHANNEL_NUMBER,
            .channel_type      = CHANNEL_TYPE_MASTER,
            .ext_assign        = 0x00,
            .rf_freq           = RF_FREQ,
            .transmission_type = CHAN_ID_TRANS_TYPE,
            .device_type       = CHAN_ID_DEV_TYPE,
            .device_number     = dev_num,
            .channel_period    = CHAN_PERIOD,
            .network_number    = ANT_NETWORK_NUM,
        };
    
        const ant_channel_config_t bs_channel_config =
        {
            .channel_number    = ANT_BS_CHANNEL_NUMBER,
            .channel_type      = CHANNEL_TYPE_SLAVE,
            .ext_assign        = EXT_PARAM_ALWAYS_SEARCH,
            .rf_freq           = RF_FREQ,
            .transmission_type = CHAN_ID_TRANS_TYPE,
            .device_type       = CHAN_ID_DEV_TYPE,
            .device_number     = 0x00,              // Wild card
            .channel_period    = 0x00,              // This is not taken into account.
            .network_number    = ANT_NETWORK_NUM,

    Thanks

Reply
  • What should I change here for pairing with Garmin GSC10?

    https://www.thisisant.com/directory/gsc-10-speed-cadence-bike-sensor

     const ant_channel_config_t ms_channel_config =
        {
            .channel_number    = ANT_MS_CHANNEL_NUMBER,
            .channel_type      = CHANNEL_TYPE_MASTER,
            .ext_assign        = 0x00,
            .rf_freq           = RF_FREQ,
            .transmission_type = CHAN_ID_TRANS_TYPE,
            .device_type       = CHAN_ID_DEV_TYPE,
            .device_number     = dev_num,
            .channel_period    = CHAN_PERIOD,
            .network_number    = ANT_NETWORK_NUM,
        };
    
        const ant_channel_config_t bs_channel_config =
        {
            .channel_number    = ANT_BS_CHANNEL_NUMBER,
            .channel_type      = CHANNEL_TYPE_SLAVE,
            .ext_assign        = EXT_PARAM_ALWAYS_SEARCH,
            .rf_freq           = RF_FREQ,
            .transmission_type = CHAN_ID_TRANS_TYPE,
            .device_type       = CHAN_ID_DEV_TYPE,
            .device_number     = 0x00,              // Wild card
            .channel_period    = 0x00,              // This is not taken into account.
            .network_number    = ANT_NETWORK_NUM,

    Thanks

Children
No Data
Related