Archive 07/10/2020.

Tp10 server

Gmichel

[quote=“Taozia, post:1, topic:2456, full:true”]
Apres avoir flashé le microcontrôleur- serveur le programme s’exécute et l’affiche
Error on receive en boucle.

L’étape d’après est :
On the RIOT shell print the server address with ifconfig command
Bonjour a tous

Concernat le tp10, je n 'obtiens pas le résutlat d’affichage souhaité
coté server
……
56776 520 16316 73612 11f8c /home/jovyan/work/iot-lab-training/riot/networking/udp/server/bin/iotlab-m3/posix_server.elf
iotlab-node --jmespath=‘keys(@)[0]’ --format=‘int’ --list strasbourg,m3,10 --flash /home/jovyan/work/iot-lab-training/riot/networking/udp/server/bin/iotlab-m3/posix_server.bin | grep 0
0
ssh -t fun2ea3987201@strasbourg.iot-lab.info ‘socat - tcp:m3-10.strasbourg.iot-lab.info:20000’
Configured network interfaces:
Iface 6 HWaddr: 11:15 Channel: 23 Page: 0 NID: 0xf1cb
Long HWaddr: 02:5B:F9:65:10:6B:11:15
TX-Power: 0dBm State: IDLE max. Retrans.: 3 CSMA Retries: 4
AUTOACK ACK_REQ CSMA L2-PDU:102 MTU:1280 HL:64 6LO
IPHC
Source address length: 8
Link type: wireless
inet6 addr: fe80::5b:f965:106b:1115 scope: link VAL
inet6 group: ff02::1

et coté client
make -C riot/networking/udp/client SERVER_ADDR= fe80::5b:f965:106b:1115 BOARD=iotlab-m3 DEFAULT_CHANNEL=23 DEFAULT_PAN_ID= 0xf1cb IOTLAB_NODE=m3-11.strasbourg.iot-lab.info flash
make: Entering directory ‘/home/jovyan/work/iot-lab-training/riot/networking/udp/client’
make: *** No rule to make target ‘fe80::5b:f965:106b:1115’. Stop.
make: Leaving directory ‘/home/jovyan/work/iot-lab-training/riot/networking/udp/client’

Je pense avoir copié les programmes server et client et lancer l’expérience correctement, mais je n’ai pas d’idée.

Bien cordialement

michel_billaud

Bonjour,

Cause de l’erreur

Dans la commande

make -C riot/networking/udp/client SERVER_ADDR= fe80::5b:f965:106b:1115 BOARD=iotlab-m3 DEFAULT_CHANNEL=23 DEFAULT_PAN_ID= 0xf1cb IOTLAB_NODE=m3-11.strasbourg.iot-lab.info flash

vous avez un espace entre SERVER_ADDR= et l’adresse.

Conséquences

La commande make les considère comme des paramètres différents :

  • SERVER_ADDR= comme la définition d’une variable vide
  • l’adresse comme une “cible” (targe) à construire

D’où le message

No rule to make target ‘fe80::5b:f965:106b:1115’.

puisqu’il n’y a pas, dans le Makefile, de règle pour construire cette cible.

Solution

Supprimer l’espace dans la commande, après “=”

make  .... SERVER_ADDR=fe80::5b:f965:106b:1115 ....                                                             
Gmichel

Bonsoir,
Merci infiniment de la réponse ; c’est ok

toutefois ,coté serveur, je n’ai pas le même affichage(présentation) que dans le notebook udp.ipynb



n/work/iot-lab-training/riot/networking/udp/server/bin/iotlab-m3/posix_server.bin | grep 0
0
ssh -t fun2ea3987201@grenoble.iot-lab.info ‘socat - tcp:m3-95.grenoble.iot-lab.info:20000’
Configured network interfaces:
Iface 6 HWaddr: 11:15 Channel: 15 Page: 0 NID: 0xa510
Long HWaddr: 36:AC:FC:65:10:6B:11:15
TX-Power: 0dBm State: IDLE max. Retrans.: 3 CSMA Retries: 4
AUTOACK ACK_REQ CSMA L2-PDU:102 MTU:1280 HL:64 6LO
IPHC
Source address length: 8
Link type: wireless
inet6 addr: fe80::34ac:fc65:106b:1115 scope: link VAL
inet6 group: ff02::1

Message received: Hello Server
Message received: Hello Server
Message received: Hello Server


Bien cordialement

michel_billaud

Bonjour,

Je crois qu’il y a un petit bug dans le TP qui parle de d’afficher l’adresse du serveur avec la commande ifconfig dans le shell RIOT.

On the RIOT shell print the server address with ifconfig command

Or dans ce TP, le serveur ne fait pas tourner un shell RIOT, mais appelle une fonction qui affiche la configuration, puis exécute une boucle de réception. Dans server/main.c :

   _gnrc_netif_config(0, NULL);

Ca expliquerait que ça ne corresponde pas exactement à ce qu’afficherait un ifconfig du shell.

Probablement un petit oubli de modification dans la récupération d’un bout de texte ailleurs.