[EN] The guide

Aide, exemples, et projets à base de Foquinha-Pi le shield pour la connectivité Sigfox sur Raspberry-Pi

[EN] The guide

Message non lude Laetitia » Lun 20 Juin 2016 15:02

foquinha_EN.jpg (168.04 Kio) Vu 483 fois

      How to use the Foquinha-Pi

  • Plug the Foquinha-Pi on a Rapsberry Pi 2 or a newer one.
  • Plug the antenna, either directly on the SMA connector, or on the UFL connector through the provided extension cable.
  • Turn on your Rapsberry Pi and fetch the script on Github.
  • Execute the script with the following command :

    Code: Tout sélectionner
    $ sudo python foquinha.py

  • Available options will be displayed, choose the one that suits your needs and execute the corresponding command (you can choose multiple options at the same time)

The script's help is pretty self-explanatory, so I'll just put here a reminder of the different options :

-q,--quiet : Quiet mode.
-D,--device : Serial device (default=/dev/ttyAMA0).
-m,--message=msg : Send a message.
-v,--supply-voltage : Return supply voltage.
-t,--temperature : Return temperature.
-i,--identity : Return modem ID.
-H,--hardware-version : Return hardware version.
-S,--software-version : Return software version.
-h,--help : This help.

Return supply voltage, temperature et software version with :
Code: Tout sélectionner
./foquinha.py -v -t -S

Send a message (max 12 bytes) in hexa :
Code: Tout sélectionner
./foquinha.py -m "65 66 68"

Note : commands -D and -m require an argument !
  • If you use -D without the Foquinha-Pi's serial port number, nothing special will happen (the help will be displayed again).
  • If you use -m without the message to be sent on the Sigfox network, an error message will be displayed.

Sometimes a command might not work (timeout), you just have to execute the command a few seconds later to get the desired result.
"If it's itchy, scratch it !" - "DIY or die"

RTFM (À lire avant de poster) - ANDb (Arduino Noob Database)
Avatar de l’utilisateur
Messages: 289
Inscription: Mar 7 Aoû 2012 15:07
Localisation: Toulouse

Retourner vers Foquinha-Pi

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité