[iot] Compilation LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK

Benjamin Freeman b.t.freeman16 at gmail.com
Fri Oct 25 17:08:16 CEST 2019


Il y a-t-il une erreur qui s'affiche lors du chargement ?

Benjamin

Le ven. 25 oct. 2019 à 16:50, Christian Frabel via iot <
iot at lists.tetaneutral.net> a écrit :

>
>
> Le ven. 25 oct. 2019 à 16:19, Adrien van den Bossche via iot <
> iot at lists.tetaneutral.net> a écrit :
>
>> Salut Christian,
>>
>> je ne pense pas que tu travailles sur un Arduino Yah! (qui n'a jamais
>> été commercialisé par Snootlab)
>
> Si, si un vrai, un rare un authentique !
>
>> aussi il y a peut-être quelques
>> adaptations à faire dans le code pour que ton programme soit opérationnel.
>>
>> Sur l'USB, ton port Série se trouve peut-être derrière Serial et non
>> SerialUSB.
>>
> Exact, un # define a résolu CE problème.
> Ca compile mais je n'arrive pas à charger dans la carte Yah!
> Bon, je cherche...
>
>>
>> Attention aussi à la structure lmic_pins dont le contenu varie d'un
>> câblage modem<>MCU à l'autre, donc d'un module Arduino à l'autre !
>>
>> const lmic_pinmap lmic_pins = {
>>      .nss = 8,
>>      .rxtx = LMIC_UNUSED_PIN,
>>      .rst = LMIC_UNUSED_PIN,
>>      .dio = {3, 6, LMIC_UNUSED_PIN},
>> };
>>
>> Adrien
>>
>>
>>
>> Le 25/10/2019 à 15:37, Benjamin Freeman via iot a écrit :
>> > Bonjour Christian,
>> >
>> > Il me semble qu'il faille plutôt utiliser le code sur cette page :
>> >
>> https://boulle.frama.io/LoRaWAN-tetaneutral/post/generic-lorawan-node-basic-join
>> >
>> > Benjamin
>> >
>> > Le ven. 25 oct. 2019 à 15:03, Christian Frabel via iot
>> > <iot at lists.tetaneutral.net <mailto:iot at lists.tetaneutral.net>> a
>> écrit :
>> >
>> >     Bonjour,
>> >     Quand je tente de compiler le sketch en question j'obtiens cette
>> >     erreur 'SerialUSB' was not declared in this scope
>> >     Auriez-vous une idée ?
>> >     Merci.
>> >
>> >
>> >
>> >     Arduino : 1.8.10 (Linux), Carte : "Adafruit Feather M0, Arduino,
>> Off"
>> >
>> >
>>  /home/cfrabel/src/LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN/LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN.ino:
>> >     In function 'void onEvent(ev_t)':
>> >     LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN:84:5: error:
>> >     'SerialUSB' was not declared in this scope
>> >           SerialUSB.print(os_getTime());
>> >           ^
>> >
>>  /home/cfrabel/src/LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN/LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN.ino:
>> >     In function 'void do_send(osjob_t*)':
>> >     LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN:183:9: error:
>> >     'SerialUSB' was not declared in this scope
>> >               SerialUSB.println(F("OP_TXRXPEND, not sending"));
>> >               ^
>> >     LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN:187:9: error:
>> >     'SerialUSB' was not declared in this scope
>> >               SerialUSB.println(F("Packet queued"));
>> >               ^
>> >
>>  /home/cfrabel/src/LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN/LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN.ino:
>> >     In function 'void setup()':
>> >     LoRaWAN-node-yah-tetaneutral-OTAA-JOIN-OK-JN:193:5: error:
>> >     'SerialUSB' was not declared in this scope
>> >           SerialUSB.begin(9600);
>> >           ^
>> >     Plusieurs bibliothèque trouvées pour "SPI.h"
>> >     Utilisé :
>> >
>>  /home/cfrabel/.arduino15/packages/adafruit/hardware/samd/1.5.4/libraries/SPI
>> >     Plusieurs bibliothèque trouvées pour "Adafruit_ZeroDMA.h"
>> >     Utilisé :
>> >
>>  /home/cfrabel/.arduino15/packages/adafruit/hardware/samd/1.5.4/libraries/Adafruit_ZeroDMA
>> >     Plusieurs bibliothèque trouvées pour "lmic.h"
>> >     Utilisé : /home/cfrabel/arduino-1.8.10/libraries/arduino-lmic
>> >     exit status 1
>> >     'SerialUSB' was not declared in this scope
>> >
>> >
>> >
>> >     --
>> >     Christian Frabel
>> >     _______________________________________________
>> >     iot mailing list
>> >     iot at lists.tetaneutral.net <mailto:iot at lists.tetaneutral.net>
>> >     https://lists.tetaneutral.net/listinfo/iot
>> >
>> >
>> > _______________________________________________
>> > iot mailing list
>> > iot at lists.tetaneutral.net
>> > https://lists.tetaneutral.net/listinfo/iot
>> >
>> _______________________________________________
>> iot mailing list
>> iot at lists.tetaneutral.net
>> https://lists.tetaneutral.net/listinfo/iot
>
>
>
> --
> Christian Frabel
> _______________________________________________
> iot mailing list
> iot at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/iot
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.tetaneutral.net/pipermail/iot/attachments/20191025/b2983700/attachment.html>


More information about the iot mailing list