[riot-notifications] [RIOT-OS/RIOT] pkg/nimble/netif: allow to apply and enforce random and unique connection intervals (#16372)

Francisco notifications at github.com
Tue Jun 15 13:52:09 CEST 2021


> b) run gnrc_networking using nimble_autoconn and specifying a connection interval range, e.g.
CFLAGS="-DNIMBLE_AUTOCONN_CONN_ITVL_MIN_MS=50 -DNIMBLE_AUTOCONN_CONN_ITVL_MAX_MS=70" make ...
on at least two BLE nodes in radio range. The nodes should automatically open a connection. If you close the connection using ble close X the connection should be re-opened. Everytime this happens, the connection should have a random connection interval from the given range applied.

```
> ble info
2021-06-15 13:43:41,546 # ble info
2021-06-15 13:43:41,551 # Own Address: E4:DD:E0:8F:73:65 -> [FE80::E4DD:E0FF:FE8F:7365]
2021-06-15 13:43:41,552 #  Free slots: 1/3
2021-06-15 13:43:41,554 # Advertising: yes
2021-06-15 13:43:41,555 # Connections: 1
2021-06-15 13:43:41,561 # [ 0] D8:2A:B8:E0:AB:50 [FE80::D82A:B8FF:FEE0:AB50] (M,56ms,2500ms,0)
2021-06-15 13:43:41,566 #      (role, conn itvl, superv. timeout, slave latency)
2021-06-15 13:43:41,567 # Slots:
2021-06-15 13:43:41,571 # [ 0] state: 0x0011 - GAP-master L2CAP-client
2021-06-15 13:43:41,574 # [ 1] state: 0x0100 - advertising
2021-06-15 13:43:41,576 # [ 2] state: 0x8000 - unused
2021-06-15 13:43:41,576 #
ble close
2021-06-15 13:44:00,140 # ble close
2021-06-15 13:44:00,143 # usage: ble close [help|list|<conn #>]
> ble close 0
2021-06-15 13:44:03,619 # ble close 0
2021-06-15 13:44:03,623 # success: connection tear down initiated
> ble info
2021-06-15 13:44:07,174 # ble info
2021-06-15 13:44:07,179 # Own Address: E4:DD:E0:8F:73:65 -> [FE80::E4DD:E0FF:FE8F:7365]
2021-06-15 13:44:07,181 #  Free slots: 3/3
2021-06-15 13:44:07,182 # Advertising: no
2021-06-15 13:44:07,184 # Connections: 0
2021-06-15 13:44:07,184 # Slots:
2021-06-15 13:44:07,186 # [ 0] state: 0x8000 - unused
2021-06-15 13:44:07,189 # [ 1] state: 0x8000 - unused
2021-06-15 13:44:07,191 # [ 2] state: 0x8000 - unused
2021-06-15 13:44:07,192 #
> ble info
2021-06-15 13:44:10,187 # ble info
2021-06-15 13:44:10,193 # Own Address: E4:DD:E0:8F:73:65 -> [FE80::E4DD:E0FF:FE8F:7365]
2021-06-15 13:44:10,193 #  Free slots: 1/3
2021-06-15 13:44:10,195 # Advertising: yes
2021-06-15 13:44:10,196 # Connections: 1
2021-06-15 13:44:10,202 # [ 0] D8:2A:B8:E0:AB:50 [FE80::D82A:B8FF:FEE0:AB50] (S,52ms,2500ms,0)
2021-06-15 13:44:10,208 #      (role, conn itvl, superv. timeout, slave latency)
2021-06-15 13:44:10,208 # Slots:
2021-06-15 13:44:10,211 # [ 0] state: 0x0022 - GAP-slave L2CAP-server
2021-06-15 13:44:10,215 # [ 1] state: 0x0100 - advertising
2021-06-15 13:44:10,217 # [ 2] state: 0x8000 - unused
ping6  fe80::d82a:b8ff:fee0:ab50
2021-06-15 13:44:33,538 # ping6  fe80::d82a:b8ff:fee0:ab50
2021-06-15 13:44:33,647 # 12 bytes from fe80::d82a:b8ff:fee0:ab50%8: icmp_seq=0 ttl=64 time=102.563 ms
2021-06-15 13:44:34,644 # 12 bytes from fe80::d82a:b8ff:fee0:ab50%8: icmp_seq=1 ttl=64 time=101.870 ms
2021-06-15 13:44:35,642 # 12 bytes from fe80::d82a:b8ff:fee0:ab50%8: icmp_seq=2 ttl=64 time=101.000 ms
2021-06-15 13:44:35,642 #
2021-06-15 13:44:35,646 # --- fe80::d82a:b8ff:fee0:ab50 PING statistics ---
2021-06-15 13:44:35,652 # 3 packets transmitted, 3 packets received, 0% packet loss
2021-06-15 13:44:35,656 # round-trip min/avg/max = 101.000/101.811/102.563 ms
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16372#issuecomment-861433286
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210615/a720f1b7/attachment.htm>


More information about the notifications mailing list