Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4 tutos #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions B-L072Z-LRWAN1
Submodule B-L072Z-LRWAN1 added at 72ca99
116 changes: 116 additions & 0 deletions B-L072Z-LRWAN1_AT_command/main.tex
Original file line number Diff line number Diff line change
@@ -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}
Binary file added B-L072Z-LRWAN1_AT_command/putty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions moisture_sensor_B-L072Z-LRWAN1
Submodule moisture_sensor_B-L072Z-LRWAN1 added at 9b927b
1 change: 1 addition & 0 deletions nano_gateway_lopy
Submodule nano_gateway_lopy added at 0379a8
1 change: 1 addition & 0 deletions ping_pong-_lopy4
Submodule ping_pong-_lopy4 added at 2b5d46
1 change: 1 addition & 0 deletions pycom_lopy4
Submodule pycom_lopy4 added at 0cf029
1 change: 1 addition & 0 deletions pycom_lopy4_loramac
Submodule pycom_lopy4_loramac added at 73bfdf