Page 1 of 1

[Reference] *READ ME FIRST*: Waspmote v15 checklist

Posted: Tue Oct 25, 2016 2:10 pm
by libelium-dev
1 Introduction

If you find difficulties using Waspmote, first please make sure you read the documentation available on the Development Section. http://www.libelium.com/development/

You should also search in the forum, as most of the possible questions have been answered there.

If the problem persists, and before writing in the forum, follow all the points of the next checklists.

2 Uploading code

The following steps must be done each time we must upload code, always:
  1. Make sure the battery is connected and charged.
    Image
    "DO NOT TRY TO RECHARGE THE NON-RECHARGEABLE BATTERY. IT MAY EXPLODE AND CAUSE INJURIES AND DESTROY THE EQUIPMENT. DEVICES WITH NON-RECHARGEABLE BATTERIES MUST BE PROGRAMMED THROUGH THE USB CABLE WITHOUT THE BATTERIES CONNECTED. PLEASE DOUBLE CHECK THIS CONDITION BEFORE CONNECTING THE USB. DO NOT CONNECT EITHER UNDER ANY CIRCUMSTANCE THE SOLAR PANEL TO A DEVICE WITH A NON-RECHARGEABLE BATTERY AS IT MAY EXPLODE AND CAUSE INJURIES AND DESTROY THE EQUIPMENT."
  2. Switch Waspmote ON (in the image, move both switches to the left).
    Image
  3. If your code uses other modules, then plug to Waspmote all the needed devices (XBee, communication modules, Sensor Board, etc).
  4. You have downloaded the latest version of the API available at http://www.libelium.com/development/was ... lications/
  5. You have selected right board in the IDE (tools → board)
    Image
  6. Connect Waspmote to your PC through the USB cable and select the right USB port (tools → serial port). If it is the first time you plug a Waspmote on your PC and you are unable to see the proper USB port, maybe you should install the latest FTDI drivers: http://www.ftdichip.com/Drivers/D2XX.htm

    Moreover, if you have troubles installing FTDI drivers and your computer is unable to recognize Waspmote, please follow the installation guide for your operating system on your next link: http://www.ftdichip.com/Support/Documen ... Guides.htm.

    Note: This process will be required only the first time.

    Note: The name of the USB ports depends on the OS and the particular PC you have. The best way to find the USB where Waspmote is connected is trial & error.
    Image
  7. Prepare your code for Waspmote. In our case, go to the template of the “hello_world” or copy and paste the text in the sketch.
  8. Save the sketch (the IDE has a button for that), for example with the name “hello_world”, and check the IDE states “Done Saving”.
    Image
  9. Compile the code and check there are no errors or warnings. The IDE should say “Done Compiling” after the progress bar ends.
    Image
  10. Upload the code to Waspmote: click the “Upload” button and wait a few seconds until the process ends; check there are no error messages, just “Done uploading”.
    Image
    Image
  11. Now open the serial monitor and see the output of your code. Remember to select the right baudrate (by default is 115200).
    Image
  12. If the sketch is using XBee, connect the Gateway to your PC through a USB port. The antenna must be connected to the Gateway's XBee too.
    Image
  13. Select this new device in the “Tools/Serial Port” menu (if it was not auto-detected) and open another serial monitor to see the gateway data.
  14. You can also open another graphical serial terminal application like CuteCom or GTKTerm to see the incoming wireless frames to the Gateway. Please note the correct configuration:
    Image


    NOTE: In fact, the MAC of the sender Waspmote can be also read on the bottom of its XBee:
    Image


    (*) For ZigBee and DigiMesh users: when the Gateway's red LED is not blinking, it means it is configuring the network. When the red LED blinks, the network is already configured and ready to be used.

3 Networking problems
If you have networking problems, please check first this tips:
  1. All XBees are in the same network that the Gateway (or Meshlium). In Waspmote's API, PANID parameter is set with “setPAN” function. You can also set this parameter for each XBee plugging it to the Gateway, and then connecting it to a PC: the Digi's X-CTU application helps to check and set the XBee's configuration. In this case, you must use the ATID command.
  2. All XBees are in the same channel. The CHANNEL parameter is set with “setChannel” function. If you want to do it in the X-CTU way, you must use the ATCH command.
  3. All Waspmotes are transmitting towards the MAC of the Gateway (or Meshlium).
  4. All XBees are configured to 115200 bps. In X-CTU, you can control data rates executing the ATBD command.
  5. All XBees have the same encryption options. The ENCRYPTION MODE parameter is set with ”encryptionMode” function. In X-CTU, the related command is ATEE. And the ENCRYPTION KEY parameter is set with “setLinkKey” function. In this case, the X-CTU command is ATKY.
  6. All Waspmotes' XBees are set in mode AP = 2 (API mode).
Details for the X-CTU operation are in X-CTU tutorial.


4 Usage and storage recommendations for the batteries

The rechargeable, ion-lithium batteries, like the ones provided by Libelium, have certain characteristics which must be taken into account:

- Charge the batteries for 24 hours before a deployment. The aim is to have the charge of the batteries at 100% of their capacity before a long period in which they must supply current, but it is not necessary to improve the performance.

- It is not advised to let the charge of the batteries go below 20% of capacity, since they suffer stress. Thus, it is not advised to wait for the battery to be at 0% to charge it.

- Any battery self-discharges: connected to Waspmote or not, the battery loses charges by itself.

- Maximum capacity loss: as the charge and discharge cycles happen, the maximum charge capacity is reduced.

- Batteries work better in cool environments: their performance is better at 10 ºC than at 30 ºC.

- At temperatures below 0 ºC, batteries can supply current (discharge), but the charge process cannot be done. In particular:
  • discharge range = [-10, 60] ºC
  • charge range = [0, 45] ºC