P&S not transmitting when programmed

How to configure Meshlium or use the Manager System
martajg19
Posts: 89
Joined: Fri May 17, 2019 10:00 am
Company: JG Ingenieros

Re: P&S not transmitting when programmed

Post by martajg19 » Wed Jul 10, 2019 11:12 am

OK, thankyou

Here is the serial output of the node that is not transmitting every 15 min but ocasionally. It can be seen that in an hour (4 transmissions) only gets to do 2 transmissions (this time, sometimes is more or less or none)

J#
-------------------------------
Serial ID:5A8018FDC337DE49
-------------------------------

-------------------------------
- Smart Agriculture PRO -
-------------------------------
-------------------------------
- SETUP -
-------------------------------
- XBee 'Channel' mask set OK to: 0x3FFFFFFF
- XBee 'PANID' set OK to: 0x7FFF
- XBee 'Preamble ID' set OK to: 0x01
- XBee 'AES encryption' configured (1:enabled; 0:disabled):0
- XBee 'AES encryption key' set OK
- XBee configuration stored OK
- Frame maximum size: 255
- Frame buffer: 3C3D3E06185A8018FDC337DE494D595F4D4F5445230041055374617274
- Frame length: 29
- XBee transmission OK

-------------------------------
- LOOP -
-------------------------------
- Battery Level:93
- RTC current time: Fri, 00/02/17, 22:59:57
- Sensor reading:
SOCKET_A --> Anemometer: 0.80 km/h
SOCKET_A --> Pluviometer (current hour): 0.00 mm
SOCKET_A --> Pluviometer (previous hour): 0.00 mm/h
SOCKET_A --> Pluviometer (previous 24 hours): 0.00 mm/h
SOCKET_A --> Vane value: 10; Vane direction: SW
SOCKET_B --> Solar radiation: 7.97 μmol*m-2*s-1
SOCKET_F --> Temperature: 32.35 Celsius
SOCKET_F --> Humidity: 31.7 %
SOCKET_F --> Atmospheric pressure: 100646.19 Pa
- Frame buffer: 3C3D3E063D5A8018FDC337DE494D595F4D4F54452301345D9E000000009F00000000A0000000009CCDCC4C3F9D0AA1FFE1FE404A666601424C0052FD414D1893C447
- Frame length: 66
- XBee transmission OK
- RTC current time:Fri, 00/02/17, 23:00:04
- RTC current time: 17th at 23:00:04
- RTC next alarm: 17th at 23:15:04
- Go to deep sleep mode...
- Wake up!!


-------------------------------
- LOOP -
-------------------------------
- Battery Level:96
- RTC current time: Fri, 00/02/17, 23:15:04
- Sensor reading:
SOCKET_A --> Anemometer: 1.60 km/h
SOCKET_A --> Pluviometer (current hour): 0.00 mm
SOCKET_A --> Pluviometer (previous hour): 0.00 mm/h
SOCKET_A --> Pluviometer (previous 24 hours): 0.00 mm/h
SOCKET_A --> Vane value: 1; Vane direction: ENE
SOCKET_B --> Solar radiation: 4.39 μmol*m-2*s-1
SOCKET_F --> Temperature: 32.27 Celsius
SOCKET_F --> Humidity: 31.3 %
SOCKET_F --> Atmospheric pressure: 100649.39 Pa
- Frame buffer: 3C3D3E063D5A8018FDC337DE494D595F4D4F5445230234609E000000009F00000000A0000000009CCDCCCC3F9D01A100A08C404A7B1401424C005CFA414DB194C447
- Frame length: 66
- XBee transmission error
- RTC current time:Fri, 00/02/17, 23:15:23
- RTC current time: 17th at 23:15:23
- RTC next alarm: 17th at 23:30:23
- Go to deep sleep mode...
- Wake up!!


-------------------------------
- LOOP -
-------------------------------
- Battery Level:98
- RTC current time: Fri, 00/02/17, 23:30:23
- Sensor reading:
SOCKET_A --> Anemometer: 4.00 km/h
SOCKET_A --> Pluviometer (current hour): 0.00 mm
SOCKET_A --> Pluviometer (previous hour): 0.00 mm/h
SOCKET_A --> Pluviometer (previous 24 hours): 0.00 mm/h
SOCKET_A --> Vane value: 4; Vane direction: N
SOCKET_B --> Solar radiation: 4.67 μmol*m-2*s-1
SOCKET_F --> Temperature: 32.28 Celsius
SOCKET_F --> Humidity: 31.0 %
SOCKET_F --> Atmospheric pressure: 100655.72 Pa
- Frame buffer: 3C3D3E063D5A8018FDC337DE494D595F4D4F5445230334629E000000009F00000000A0000000009C000080409D04A1006A95404AB81E01424C000AF8414DDC97C447
- Frame length: 66
- XBee transmission error
- RTC current time:Fri, 00/02/17, 23:30:38
- RTC current time: 17th at 23:30:38
- RTC next alarm: 17th at 23:45:38
- Go to deep sleep mode...
- Wake up!!


-------------------------------
- LOOP -
-------------------------------
- Battery Level:100
- RTC current time: Fri, 00/02/17, 23:45:38
- Sensor reading:
SOCKET_A --> Anemometer: 4.00 km/h
SOCKET_A --> Pluviometer (current hour): 0.00 mm
SOCKET_A --> Pluviometer (previous hour): 0.00 mm/h
SOCKET_A --> Pluviometer (previous 24 hours): 0.00 mm/h
SOCKET_A --> Vane value: 3; Vane direction: NNE
SOCKET_B --> Solar radiation: 4.12 μmol*m-2*s-1
SOCKET_F --> Temperature: 32.44 Celsius
SOCKET_F --> Humidity: 30.0 %
SOCKET_F --> Atmospheric pressure: 100667.28 Pa
- Frame buffer: 3C3D3E063D5A8018FDC337DE494D595F4D4F5445230434649E000000009F00000000A0000000009C000080409D03A100D683404A8FC201424C0028F0414DA49DC447
- Frame length: 66
- XBee transmission OK
- RTC current time:Fri, 00/02/17, 23:45:45
- RTC current time: 17th at 23:45:45
- RTC next alarm: 18th at 00:00:45
- Go to deep sleep mode...


I took a picture so you can see where it is located. I guess it is due to interferences with other radio modules?

https://drive.google.com/open?id=1xRf1J ... iwp7y4RdIR

https://drive.google.com/open?id=1ZvKsY ... Y4gt9nfMBo

Thankyou

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

Re: P&S not transmitting when programmed

Post by libelium-dev » Thu Jul 11, 2019 8:11 am

Hi,

First of all, please check the coverage uploading the following code to the node. Please upload the code and copy here the output.

Code: Select all

#include <WaspXBee868LP.h>

// variable to store RSSI
int rssi;

void setup()
{
  // init USB port
  USB.ON();

  // 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----------------------------"));

  }
}
Also, please access to the database and filter the data by ID Secret 5A8018FDC337DE49 to check if the data arrive every 15 minutes.

Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest