From 6b72099e1077767e46ddc98db0833fad47d89e83 Mon Sep 17 00:00:00 2001 From: clementfablab Date: Wed, 24 Jul 2019 13:59:28 +0200 Subject: [PATCH 1/2] fkdlk --- B-L072Z-LRWAN1 | 1 + nano_gateway_lopy | 1 + ping_pong-_lopy4 | 1 + pycom_lopy4_loramac | 1 + 4 files changed, 4 insertions(+) create mode 160000 B-L072Z-LRWAN1 create mode 160000 nano_gateway_lopy create mode 160000 ping_pong-_lopy4 create mode 160000 pycom_lopy4_loramac diff --git a/B-L072Z-LRWAN1 b/B-L072Z-LRWAN1 new file mode 160000 index 0000000..72ca99a --- /dev/null +++ b/B-L072Z-LRWAN1 @@ -0,0 +1 @@ +Subproject commit 72ca99a26cde2bc7090afecac7d8c12038b842bd diff --git a/nano_gateway_lopy b/nano_gateway_lopy new file mode 160000 index 0000000..0379a87 --- /dev/null +++ b/nano_gateway_lopy @@ -0,0 +1 @@ +Subproject commit 0379a8745e0e62bdece08c5f3eef29692f3e17e3 diff --git a/ping_pong-_lopy4 b/ping_pong-_lopy4 new file mode 160000 index 0000000..2b5d462 --- /dev/null +++ b/ping_pong-_lopy4 @@ -0,0 +1 @@ +Subproject commit 2b5d46293e1d592975ffe40a3fd39d4e591a07e4 diff --git a/pycom_lopy4_loramac b/pycom_lopy4_loramac new file mode 160000 index 0000000..73bfdff --- /dev/null +++ b/pycom_lopy4_loramac @@ -0,0 +1 @@ +Subproject commit 73bfdff389f67294beea434834dbc0b1b7a28fe7 From cc1780988ace9ae24b7aef9497d19be883f61a35 Mon Sep 17 00:00:00 2001 From: clementfablab Date: Wed, 31 Jul 2019 15:31:04 +0200 Subject: [PATCH 2/2] dlfksdlmkf --- B-L072Z-LRWAN1_AT_command/main.tex | 116 ++++++++++++++++++++++++++++ B-L072Z-LRWAN1_AT_command/putty.png | Bin 0 -> 5541 bytes moisture_sensor_B-L072Z-LRWAN1 | 1 + pycom_lopy4 | 1 + 4 files changed, 118 insertions(+) create mode 100644 B-L072Z-LRWAN1_AT_command/main.tex create mode 100644 B-L072Z-LRWAN1_AT_command/putty.png create mode 160000 moisture_sensor_B-L072Z-LRWAN1 create mode 160000 pycom_lopy4 diff --git a/B-L072Z-LRWAN1_AT_command/main.tex b/B-L072Z-LRWAN1_AT_command/main.tex new file mode 100644 index 0000000..8868cc7 --- /dev/null +++ b/B-L072Z-LRWAN1_AT_command/main.tex @@ -0,0 +1,116 @@ +\documentclass{article} +\usepackage[utf8]{inputenc} +\usepackage{graphicx} +\usepackage{minted} +\usepackage{hyperref} +\usepackage{textcomp} + + +\title{B-L072Z-LRWAN1 AT command} +\author{cmonaton } +\date{July 2019} + +\begin{document} + +\maketitle + +\section{Introduction} +But : Se connecter à la carte B-L072Z-LRWAN1 et communiquer avec des commandes type AT. \\ + +Projet AT\_Slave, le code se télécharge à \url{https://www.st.com/en/embedded-software/i-cube-lrwan.html} + +Pour : \begin{itemize} + \item Télécharger le projet + \item télécharger du code sur la carte + \item enregistrer la carte sur loraserver et recevoir les données +\end{itemize} +voir le tuto \textit{B-L072Z-LRWAN1} + + +\section{Commandes AT} + +La liste des commade se trouve dans le fichier at.h \\ + +Emplacement : +\begin{minted}{bash} +/home/username/Documents/STM32CubeExpansion_LRWAN_V1.2.1/Projects/B-L072Z-LRWAN1/ +Applications/LoRa/AT_Slave/LoRaWAN/App/inc/at.h +\end{minted} + + + + + +\begin{minted}{bash} +/* AT Command strings. Commands start with AT */ +#define AT_RESET "Z" +#define AT_DEUI "+DEUI" +#define AT_DADDR "+DADDR" +#define AT_APPKEY "+APPKEY" +#define AT_NWKSKEY "+NWKSKEY" +#define AT_APPSKEY "+APPSKEY" +#define AT_JOINEUI "+APPEUI" +#define AT_ADR "+ADR" +#define AT_TXP "+TXP" +#define AT_DR "+DR" +#define AT_DCS "+DCS" +#define AT_PNM "+PNM" +#define AT_RX2FQ "+RX2FQ" +#define AT_RX2DR "+RX2DR" +#define AT_RX1DL "+RX1DL" +#define AT_RX2DL "+RX2DL" +#define AT_JN1DL "+JN1DL" +#define AT_JN2DL "+JN2DL" +#define AT_NJM "+NJM" +#define AT_NWKID "+NWKID" +#define AT_FCU "+FCU" +#define AT_FCD "+FCD" +#define AT_CLASS "+CLASS" +#define AT_JOIN "+JOIN" +#define AT_NJS "+NJS" +#define AT_SENDB "+SENDB" +#define AT_SEND "+SEND" +#define AT_RECVB "+RECVB" +#define AT_RECV "+RECV" +#define AT_VER "+VER" +#define AT_CFM "+CFM" +#define AT_CFS "+CFS" +#define AT_SNR "+SNR" +#define AT_RSSI "+RSSI" +#define AT_BAT "+BAT" +#define AT_TRSSI "+TRSSI" +#define AT_TTONE "+TTONE" +#define AT_TTLRA "+TTLRA" +#define AT_TRLRA "+TRLRA" +#define AT_TCONF "+TCONF" +#define AT_TOFF "+TOFF" +#define AT_CERTIF "+CERTIF" +#define AT_PGSLOT "+PGSLOT" +#define AT_BFREQ "+BFREQ" +#define AT_BTIME "+BTIME" +#define AT_BGW "+BGW" +#define AT_LTIME "+LTIME" +\end{minted} + +Après avoir téléchargé le code sur la carte, ouvrir putty ou minicom avec un baudrate de 9600 pour communiquer avec la carte. \\ +Au préalable ouvrir le port : + +\begin{minted}{bash} +sudo chmod 666 /dev/ttyACM0 +\end{minted} + +\begin{figure}[H] +\begin{center} +\advance\leftskip-3cm +\advance\rightskip-3cm +\includegraphics[keepaspectratio=true,scale=0.6]{putty.png} +\label{visina8} +\end{center}\end{figure} + +Tapez les commandes même si rien ne s'affiche, c'est normal. + +La commande \textit{ATZ} fonctionne bien. +Les autres semblent ne pas fonctionner. +\textit{AT} renvoie \textit{OK} + +\end{document} diff --git a/B-L072Z-LRWAN1_AT_command/putty.png b/B-L072Z-LRWAN1_AT_command/putty.png new file mode 100644 index 0000000000000000000000000000000000000000..454ec8758e262b492f1941aa03008864db50764c GIT binary patch literal 5541 zcmcIoXH-+^y57JDO3_gPrDz;fq)3qry^e?o(hS6)GzB4JC{aRy5SoLCNE;kFgordD zKtQCIC{-!Jq1ONg2$0ZAfKX02bIzT6*16}d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)RS;+!)_!+6iikL?GctPWZc_b`;NjJp zrFsIW5ZlwAc0{UemB!A_J?6O27(d{*puPI};&{-(UYtw=w8gSKtCvd;3dP1~Zw_kw zS0pG0!ZJ$O6ReE=u76~T?Rf%`jTC(9yZeW{Px<}#-`f>Py9*WLF0j~Zg4H6?*_yyN zVKz4QR@)WE16d1kb(V{v91mRBTiO~L!)RG{{=ww-i-dz48r9-YbWW308Apc)Tuw&Kb^@W-wUIQ(^y5YgPgX$M^Xs|%ZL pg1hAi`KJmvj3rqd7S#tl23$iva}fKZ>_IDFWMFoq==y_S{sJ4HHI)DW literal 0 HcmV?d00001 diff --git a/moisture_sensor_B-L072Z-LRWAN1 b/moisture_sensor_B-L072Z-LRWAN1 new file mode 160000 index 0000000..9b927bb --- /dev/null +++ b/moisture_sensor_B-L072Z-LRWAN1 @@ -0,0 +1 @@ +Subproject commit 9b927bbdcc7a97895552edd4ba9660f2992ebb6e diff --git a/pycom_lopy4 b/pycom_lopy4 new file mode 160000 index 0000000..0cf029d --- /dev/null +++ b/pycom_lopy4 @@ -0,0 +1 @@ +Subproject commit 0cf029d3ab2d2f42500b191bc325f5ef828fb6d8