Différences entre versions de « ADAFRUIT-FONA-Brancher-USB »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 33 : Ligne 33 :
  
 
== Commandes de test ==
 
== Commandes de test ==
 +
The FONA will echo characters back so you can see what you're typing - very handy!
 +
 +
Start by initializing the auto-baud'er by sending {{fname|AT}} and then return
 +
 +
{{ADFImage|ADAFRUIT-FONA-Brancher-USB-10.png}}
 +
 +
You may have to try it twice to get it to auto baud. Once it works you should see the {{fname|AT}} characters echo and then {{fname|OK}} telling you its OK!
 +
 +
You can then send some commands to query the module and get information about it such as
 +
* '''ATI''' - Get the module name and revision
 +
* '''AT+CMEE=2''' - Turn on verbose errors (handy for when you are trying out commands!)
 +
* '''AT+CCID''' - get the SIM card number - this tests that the SIM card is found OK and you can verify the number is written on the card
 +
 +
{{ADFImage|ADAFRUIT-FONA-Brancher-USB-11.png}}
 +
 +
=== Tester la configuration ===
 +
 +
Some tests to verify the setup:
 +
* '''AT+COPS?''' Check that you're connected to the network, in this case T-Mobile
 +
* '''AT+CSQ''' - Check the 'signal strength' - the first # is dB strength, it should be higher than around 5. Higher is better. Of course it depends on your antenna and location!
 +
* '''AT+CBC''' - will return the lipo battery state. The second number is the % full (in this case its 92%) and the third number is the actual voltage in mV (in this case, 3.877 V)
 +
 +
{{ambox-stop|text= If your SIM card is locked with a PIN code, you will need to enter the pin before you can connect to a network via the 'AT+CPIN' command. For example if the pin is 1234 you need to enter 'AT+CPIN=1234".  }}
 +
 +
{{ADFImage|ADAFRUIT-FONA-Brancher-USB-20.png}}
 +
 +
=== Tester l'envoi de SMS ===
 
{{traduction}}
 
{{traduction}}
  
 
{{ADAFRUIT-FONA-TRAILER}}
 
{{ADAFRUIT-FONA-TRAILER}}

Version du 27 novembre 2015 à 11:54


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Brancher sur USB

If you have a USB console cable you can wire it up directly and send commands using any Terminal software

For Windows, we suggest Putty - it's free and open source!

Raccorder

In this example, we're using le câble console que nous proposons.

ADAFRUIT-FONA-Brancher-USB-00.jpg
Crédit: AdaFruit Industries www.adafruit.com

You will have to install the PL2303 driver and determine the COM port before you continue.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Connect to that COM port at 8N1 (8-bit, no parity bit, 1 stop bit) at 9600 baud. You can actually use any baud rate and it will autodetect but 9600 is supported by any terminal program!

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Vérifiez bien!

  • You have a Lipoly battery plugged in to the FONA JST
  • You have a working 2G SIM installed in the back
  • Connect Black wire to GND
  • Connect White wire to TX
  • Connect Green wire to RX
  • Connect Red wire to Vio
  • You may need to hold down the KEY button for 2 seconds until the PWR LED is lit and the NET LED blinks

ADAFRUIT-FONA-Brancher-USB-04.jpg
Crédit: AdaFruit Industries www.adafruit.com

Commandes de test

The FONA will echo characters back so you can see what you're typing - very handy!

Start by initializing the auto-baud'er by sending AT and then return

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

You may have to try it twice to get it to auto baud. Once it works you should see the AT characters echo and then OK telling you its OK!

You can then send some commands to query the module and get information about it such as

  • ATI - Get the module name and revision
  • AT+CMEE=2 - Turn on verbose errors (handy for when you are trying out commands!)
  • AT+CCID - get the SIM card number - this tests that the SIM card is found OK and you can verify the number is written on the card

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Tester la configuration

Some tests to verify the setup:

  • AT+COPS? Check that you're connected to the network, in this case T-Mobile
  • AT+CSQ - Check the 'signal strength' - the first # is dB strength, it should be higher than around 5. Higher is better. Of course it depends on your antenna and location!
  • AT+CBC - will return the lipo battery state. The second number is the % full (in this case its 92%) and the third number is the actual voltage in mV (in this case, 3.877 V)

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Tester l'envoi de SMS


Source: Adafruit FONA - Call phones, send and receive SMSs, & more! All with FONA. Ecrit par Lady Ada pour AdaFruit. Crédit AdaFruit Industries

Traduit par Meurisse D. pour MCHobby.be

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.