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/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 0000000..454ec87 Binary files /dev/null and b/B-L072Z-LRWAN1_AT_command/putty.png differ 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/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 b/pycom_lopy4 new file mode 160000 index 0000000..0cf029d --- /dev/null +++ b/pycom_lopy4 @@ -0,0 +1 @@ +Subproject commit 0cf029d3ab2d2f42500b191bc325f5ef828fb6d8 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