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

Is it possible to set hopIncrement for nrf52832

Hi,

I'm wondering if it's possible to set hopIncrement (Core4.2 Vol6 PartB 4.5.8.2) to a specific value (not random), like 5, in current SoftDeivce. Also, if that's possible, can I set it to a value less than 5 despite the Core4.2 requirement?

thanks SN

  • FormerMember
    0 FormerMember

    It is not possible to set the hop increment. The purpose of channel hopping is to have significant jumps when hopping, in order to avoid interference problems. If there is a channel with a lot of interference and the channel hop is very small, there can still be interference problem on neighboring channels, which will result in more packet loss.

  • Thanks for the answer! I'm trying to get RSSIs during a connection on all 37 channels for spectrum analysis. Is there any way that I can do that?

  • FormerMember
    0 FormerMember in reply to FormerMember

    When using the softdevice, the application can get the current RSSI, however, I'm not sure if it is possible to get the current channel..

    If you want to make a PC tool, it can be useful to take a look at this "example".

  • I'm working on this again and tried the PC tool. It seems it works like a spectrum analyzer. However, what I want to do is to record the RSSI and channel number for each data packet during a connection. Can I do it with the PC tool firmware? Also, the channel number can be calculated with the hopIncrement and Channel Map in Connect Request Packet. I know sd_ble_opt_set can be used to set channel map. But is there a way to know hopIncrement for the current connection?

  • You need to capture the connection request and all channel map updates if you are trying to follow a link between two other devices to capture the RSSI. The hop increment is part of the connection request packet.