Not sure

Questions about the Waspmote board and its modules
martajg19
Posts: 89
Joined: Fri May 17, 2019 10:00 am
Company: JG Ingenieros

Not sure

Post by martajg19 » Tue Jul 02, 2019 1:19 pm

Hi, I'm having doubts about the measures... not sure if are very accurate. Do the probes need to be calibrated or not?
We have temperature, humidity, luminosity, preassure, noise, CO2, and a weather station.

Thankyou

martajg19
Posts: 89
Joined: Fri May 17, 2019 10:00 am
Company: JG Ingenieros

Re: Not sure

Post by martajg19 » Tue Jul 02, 2019 1:24 pm

Sorry about the topic name :) I realised I hadnt finished writing the topic name just when submitted the comment... :lol:

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Not sure

Post by libelium-dev » Wed Jul 03, 2019 7:56 am

Hi,

No, it isn't needed to calibrate the sensor, they are calibrated from the factory.

What values do you get?

Regards

martajg19
Posts: 89
Joined: Fri May 17, 2019 10:00 am
Company: JG Ingenieros

Re: Not sure

Post by martajg19 » Thu Jul 04, 2019 9:22 am

OK then.

And a quick question, one of the devices stopped transmitting ...what could be the reason? Bc it is in its 79% of battery

Thankyou

martajg19
Posts: 89
Joined: Fri May 17, 2019 10:00 am
Company: JG Ingenieros

Re: Not sure

Post by martajg19 » Thu Jul 04, 2019 12:33 pm

I saw on the meshlium manager system that it was last updated on june 2nd... :( with 78% battery

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Not sure

Post by libelium-dev » Fri Jul 05, 2019 7:32 am

Hi,

What is the distance between Meshlium and the node?

Could you please share with us the output through the serial monitor of the node?

Regards

martajg19
Posts: 89
Joined: Fri May 17, 2019 10:00 am
Company: JG Ingenieros

Re: Not sure

Post by martajg19 » Fri Jul 05, 2019 9:02 am

Hi, so it is a two floor distance (meshlium in 2nd floor and the P&S that stopped sending data is in 4th) but it was working fine... could it had something to do with the fact that we activated another node?

I'll send you the serial output as soon as possible....

Thankyou

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Not sure

Post by libelium-dev » Mon Jul 08, 2019 9:21 am

Hi,

Please upload the following code to the node to check the coverage of the network (RSSI) and copy here the output through the serial monitor. You can download the IDE to upload the code in the following link
http://www.libelium.com/development/was ... lications/

Code: Select all

#include <WaspXBee868LP.h>

// variable to store RSSI
int rssi;

void setup()
{
  // init USB port
  USB.ON();
  USB.println(F("868LP_09 example"));

  // init XBee
  xbee868LP.ON();

}

void loop()
{
  ////////////////////////////////
  // 1. scan network
  ////////////////////////////////
  xbee868LP.scanNetwork();

  ////////////////////////////////
  // 2. print info
  ////////////////////////////////
  USB.print(F("\n\ntotalScannedBrothers:"));
  USB.println(xbee868LP.totalScannedBrothers, DEC);

  // print all scanned nodes information
  printScanInfo();

}


/*
    printScanInfo

    This function prints all info related to the scan
    process given by the XBee module
*/
void printScanInfo()
{
  USB.println(F("----------------------------"));

  for (int i = 0; i < xbee868LP.totalScannedBrothers; i++)
  {
    USB.print(F("MAC:"));
    USB.printHex(xbee868LP.scannedBrothers[i].SH[0]);
    USB.printHex(xbee868LP.scannedBrothers[i].SH[1]);
    USB.printHex(xbee868LP.scannedBrothers[i].SH[2]);
    USB.printHex(xbee868LP.scannedBrothers[i].SH[3]);
    USB.printHex(xbee868LP.scannedBrothers[i].SL[0]);
    USB.printHex(xbee868LP.scannedBrothers[i].SL[1]);
    USB.printHex(xbee868LP.scannedBrothers[i].SL[2]);
    USB.printHex(xbee868LP.scannedBrothers[i].SL[3]);

    USB.print(F("\nNI:"));
    USB.print(xbee868LP.scannedBrothers[i].NI);

    USB.print(F("\nDevice Type:"));
    switch (xbee868LP.scannedBrothers[i].DT)
    {
      case 0:
        USB.print(F("End Device"));
        break;
      case 1:
        USB.print(F("Router"));
        break;
      case 2:
        USB.print(F("Coordinator"));
        break;
    }

    USB.print(F("\nPMY:"));
    USB.printHex(xbee868LP.scannedBrothers[i].PMY[0]);
    USB.printHex(xbee868LP.scannedBrothers[i].PMY[1]);

    USB.print(F("\nPID:"));
    USB.printHex(xbee868LP.scannedBrothers[i].PID[0]);
    USB.printHex(xbee868LP.scannedBrothers[i].PID[1]);

    USB.print(F("\nMID:"));
    USB.printHex(xbee868LP.scannedBrothers[i].MID[0]);
    USB.printHex(xbee868LP.scannedBrothers[i].MID[1]);

    USB.println();
    xbee868LP.getRSSI();

    // check AT flag
    if ( xbee868LP.error_AT == 0 )
    {
      USB.print(F("getRSSI(dBm): "));

      //get rssi from getRSSI function and make conversion
      rssi = xbee868LP.valueRSSI[0];
      rssi *= -1;
      USB.println(rssi, DEC);
    }

    USB.println(F("\n----------------------------"));

  }
}
Regards

martajg19
Posts: 89
Joined: Fri May 17, 2019 10:00 am
Company: JG Ingenieros

Re: Not sure

Post by martajg19 » Mon Jul 08, 2019 9:25 am

OK. I'm not a developer nor a porgrammer and I may take me a while... thankyou

I still have to get the serial output of a node that stopped transmiting on july 2nd with no reason ;)

martajg19
Posts: 89
Joined: Fri May 17, 2019 10:00 am
Company: JG Ingenieros

Re: Not sure

Post by martajg19 » Mon Jul 08, 2019 10:45 am

Hi, I copied the doc but there's and error... the P&S is supposed to be connected in the port COM7

Arduino: Waspmote PRO IDE (Windows 7), Tarjeta:"Waspmote API v042"

Error abriendo puerto "COM7" (Port busy)

Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest