Installons la carte

From Fixme.ch
Jump to: navigation, search

La carte s'installe avec quelques précautions pour le courant électrostatique sur les pins 15-26 du RPi3. Rpiradio.jpg (Pas de souci pour ce qui est branché sur 6-8-10).

Une fois bien vérifié que le fichier /boot/config.txt contienne bien ces 2 lignes :

dtparam=spi=on 

dtoverlay=at86rf233 

la commande ``sudo modprobe at86rf230 `` doit charger le bon module.

lsmod
Module                  Size  Used by
ieee802154_6lowpan     19335  0
nhc_routing              930  0
nhc_udp                 2722  0
nhc_mobility             932  0
nhc_hop                  922  0
nhc_ipv6                 924  0
nhc_fragment             932  0
nhc_dest                 924  0
6lowpan                13191  8 nhc_fragment,ieee802154_6lowpan,nhc_hop,nhc_udp,nhc_dest,nhc_ipv6,nhc_mobility,nhc_routing
bnep                   10340  2
hci_uart               17875  1
btbcm                   5865  1 hci_uart
bluetooth             329258  22 bnep,btbcm,hci_uart
brcmfmac              194920  0
at86rf230              22211  0
brcmutil                5661  1 brcmfmac
mac802154              49099  1 at86rf230
ieee802154             55762  2 ieee802154_6lowpan,mac802154
crc_ccitt               1278  1 mac802154
cfg80211              434231  1 brcmfmac
rfkill                 15912  4 cfg80211,bluetooth
snd_soc_bcm2835_i2s     5801  0
snd_soc_core          128820  1 snd_soc_bcm2835_i2s
snd_bcm2835            20447  0
snd_pcm_dmaengine       3455  1 snd_soc_core
snd_pcm                76497  3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_timer              19374  1 snd_pcm
snd                    52036  4 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm
spi_bcm2835             6678  0
bcm2835_gpiomem         3040  0
bcm2835_wdt             3097  0
uio_pdrv_genirq         3164  0
uio                     7936  1 uio_pdrv_genirq
i2c_dev                 5920  0
i2c_bcm2708             4770  0
ipv6                  354336  36


et le résultat attendu après avoir fait tout ce qui précède !!!

sudo iwpan list
wpan_phy phy0
supported channels:
        page 0: 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26
current_page: 0
current_channel: 13,  2415 MHz
cca_mode: (1) Energy above threshold
cca_ed_level: -77
tx_power: 4
capabilities:
        iftypes: node,monitor
        channels:
                page 0:
                        [11]  2405 MHz, [12]  2410 MHz, [13]  2415 MHz,
                        [14]  2420 MHz, [15]  2425 MHz, [16]  2430 MHz,
                        [17]  2435 MHz, [18]  2440 MHz, [19]  2445 MHz,
                        [20]  2450 MHz, [21]  2455 MHz, [22]  2460 MHz,
                        [23]  2465 MHz, [24]  2470 MHz, [25]  2475 MHz,
                        [26]  2480 MHz
        tx_powers:
                        4 dBm, 3.7 dBm, 3.4 dBm, 3 dBm, 2.5 dBm, 2 dBm,
                        1 dBm, 0 dBm, -1 dBm, -2 dBm, -3 dBm, -4 dBm,
                        -6 dBm, -8 dBm, -12 dBm, -17 dBm,
        cca_ed_levels:
                        -91 dBm, -89 dBm, -87 dBm, -85 dBm, -83 dBm, -81 dBm,
                        -79 dBm, -77 dBm, -75 dBm, -73 dBm, -71 dBm, -69 dBm,
                        -67 dBm, -65 dBm, -63 dBm, -61 dBm,
        cca_modes:
                (1) Energy above threshold
                (2) Carrier sense only
                (3, cca_opt: 0) Carrier sense with energy above threshold (logic                                               al operator is 'and')
                (3, cca_opt: 1) Carrier sense with energy above threshold (logic                                               al operator is 'or')
        min_be: 0,1,2,3,4,5,6,7,8
        max_be: 3,4,5,6,7,8
        csma_backoffs: 0,1,2,3,4,5
        frame_retries: 0,1,2,3,4,5,6,7
        lbt: false

Il est temps de passer à la Configuration IPv6.