P&S No radio detected

Wireless communications in Waspmote, topologies, node types...
libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: P&S No radio detected

Post by libelium-dev » Fri Sep 29, 2017 11:57 am

Hi,

What code are you using to send packets to Meshlium? We don't understand how the node sends packets but it isn't detected with the Waspmote_factory_default_code.

Could you try to set another frequency to avoid interferences in the current frequency?

Could you post the output for the Waspmote_factory_default_code with debug mode 1 enabled for uart command. You have to enable it inside waspmote-pro-ide-v06.02/hardware/waspmote/avr/cores/waspmote-api/WaspUART.h file, then upload the code again.

Code: Select all

#define DEBUG_UART 1
Regards

ruggiero
Posts: 37
Joined: Mon Mar 20, 2017 7:24 pm

Re: P&S No radio detected

Post by ruggiero » Fri Sep 29, 2017 1:24 pm

Hi,

This is the output for the Waspmote_factory_default_code with debug mode 1 enabled for uart command. Now It seems ok. It was a mystery!

Code: Select all

H#
Starting Waspmote factory default program
Global variable '_serial_id':6D1837057C105425
Waspmote serial ID: 6D1837057C105425
SD OK

XBee module is plugged on socket 0:
--> XBee type: 802.15.4
--> MAC address: 0013A200416B4C69
--> Firmware version: 10EF

===============================
===============================
Current ASCII Frame:
Length: 71
Frame Type:  134
frame (HEX): 3C3D3E86032336443138333730353743313035343235236E6F64655F69642330234D41433A3431364234433639234143433A2D32303B2D33313B31303239234241543A31303023
frame (STR): <=>†#6D1837057C105425#node_id#0#MAC:416B4C69#ACC:-20;-31;1029#BAT:100#
===============================
the frame above was sent
enter deep sleep

wake up
---------------------
RTC INT captured
---------------------
===============================
Current ASCII Frame:
Length: 71
Frame Type:  134
frame (HEX): 3C3D3E86032336443138333730353743313035343235236E6F64655F69642331234D41433A3431364234433639234143433A2D32353B2D33303B31303438234241543A31303023
frame (STR): <=>†#6D1837057C105425#node_id#1#MAC:416B4C69#ACC:-25;-30;1048#BAT:100#
===============================
the frame above was sent
enter deep sleep
But anyway I've problem when I run your example code "set RTC from Meshlium", it return RTC error every time

Code: Select all

/*  
 *  ------ [802_16] - send packets  -------- 
 *  
 *  Explanation: This program shows how to set RTC time from Meshlium
 *  settings
 *  
 *  Copyright (C) 2016 Libelium Comunicaciones Distribuidas S.L. 
 *  http://www.libelium.com 
 *  
 *  This program is free software: you can redistribute it and/or modify 
 *  it under the terms of the GNU General Public License as published by 
 *  the Free Software Foundation, either version 3 of the License, or 
 *  (at your option) any later version. 
 *  
 *  This program is distributed in the hope that it will be useful, 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 *  GNU General Public License for more details. 
 *  
 *  You should have received a copy of the GNU General Public License 
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 *  
 *  Version:           3.0
 *  Design:            David Gascón 
 *  Implementation:    Yuri Carmona
 */
 
#include <WaspXBee802.h>

// Destination MAC address
//////////////////////////////////////////
char MESHLIUM_ADDRESS[] = "0013A20041678AD8"; 
//////////////////////////////////////////

// define variable
uint8_t error;



void setup()
{
  // init USB port
  USB.ON();
  USB.println(F("Setting RTC time from Meshlium settings"));
  
  // init RTC  
  RTC.ON();
  
  // init XBee
  xbee802.ON();
  
}


void loop()
{    
  // set RTC time
  error = xbee802.setRTCfromMeshlium(MESHLIUM_ADDRESS);
      
  // check flag
  if( error == 0 )
  {
    USB.print(F("SET RTC ok. "));
  }
  else 
  {
    USB.print(F("SET RTC error. "));
  }  
  
  USB.print(F("RTC Time:"));
  USB.println(RTC.getTime());
  
  delay(5000);
}

Code: Select all

H#
Setting RTC time from Meshlium settings
SET RTC error. RTC Time:Fri, 17/09/29, 11:18:47
SET RTC error. RTC Time:Fri, 17/09/29, 11:19:11
SET RTC error. RTC Time:Fri, 17/09/29, 11:19:34


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

Re: P&S No radio detected

Post by libelium-dev » Mon Oct 02, 2017 1:56 pm

Hi,

After our tests we think there is a parameter wrong configured in the module. Please try to include this function in the setup (after xbee802.ON();)

Code: Select all

xbee802.setOwnNetAddress(0x00, 0x00);
Let us know if it solve the issue.

Regards

ruggiero
Posts: 37
Joined: Mon Mar 20, 2017 7:24 pm

Re: P&S No radio detected

Post by ruggiero » Thu Oct 05, 2017 2:08 pm

Hi Libelium,

I configured the parameter in the module, as you racommended, and it's working fine now! Thanks

Regards

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

Re: P&S No radio detected

Post by libelium-dev » Thu Oct 05, 2017 2:44 pm

Glad to hear now it works! :D

ruggiero
Posts: 37
Joined: Mon Mar 20, 2017 7:24 pm

Re: P&S No radio detected

Post by ruggiero » Thu Dec 07, 2017 1:20 pm

Hi Libelium,

I have the same problem with a P&S 4-20mA, but in this case the node doesn't send the frame. I include the function:

Code: Select all

xbee802.setOwnNetAddress(0x00, 0x00);
but I have the problem yet.

Now I've upload Waspmote_factory_default_code with debug mode 1 enabled for uart command, and I see this output:

Code: Select all

H#
Starting Waspmote factory default program
Global variable '_serial_id':1A2267057C105443
Waspmote serial ID: 1A2267057C105443
SD OK

[UART] cmd:sys get ver

[UART] no answer
[UART] cmd:mac get deveui

[UART] no answer
[UART] cmd:AT&V

[UART] no answer
[UART] cmd:AT+i

[UART] no answer
[UART] cmd:AT#CGMM

[UART] no answer
[UART] cmd:AT+CPIN?

[UART] no answer
No radio module detected

===============================
===============================
Current ASCII Frame:
Length: 55
Frame Type:  134
frame (HEX): 3C3D3E86022331413232363730353743313035343433236E6F64655F69642330234143433A313B2D38363B393736234241543A31303023
frame (STR): <=>†#1A2267057C105443#node_id#0#ACC:1;-86;976#BAT:100#
===============================
the frame above is printed just by USB (no radio module detected)
enter deep sleep

wake up
---------------------
RTC INT captured
---------------------
===============================
Current ASCII Frame:
Length: 55
Frame Type:  134
frame (HEX): 3C3D3E86022331413232363730353743313035343433236E6F64655F69642331234143433A393B2D33363B393932234241543A31303023
frame (STR): <=>†#1A2267057C105443#node_id#1#ACC:9;-36;992#BAT:100#
===============================
the frame above is printed just by USB (no radio module detected)
enter deep sleep

What tests can I do to resolve this problem?

Regards

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

Re: P&S No radio detected

Post by libelium-dev » Mon Dec 11, 2017 9:35 am

Hi,

Did you try to upload Waspmote_factory_default_code without modifications and without debug mode enabled? Sometimes print functions can cause interferences on uart 0 and therefore the radio module doesn't work.

Regards

ruggiero
Posts: 37
Joined: Mon Mar 20, 2017 7:24 pm

Re: P&S No radio detected

Post by ruggiero » Mon Dec 11, 2017 12:45 pm

Yes I did, but when I run the Waspmote_factory_default_code without debug mode, I saw Xbee radio module still doesn't detected. Are there other tests can I do?

I hope that It isn't an hardware failure because I should to install the P&S 4-20mA in the field in a few days.

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

Re: P&S No radio detected

Post by libelium-dev » Tue Dec 12, 2017 11:33 am

Hi,

Could you pleas test wit the configuration example and share with us the output?

If it's still not working please you fill the RMA form and we will contact you to solve the issue.

Regards.

ruggiero
Posts: 37
Joined: Mon Mar 20, 2017 7:24 pm

Re: P&S No radio detected

Post by ruggiero » Wed Dec 13, 2017 12:22 pm

Hi Libelium,

this is the output. I think that it's not good.

Code: Select all

H#
-------------------------------
Configure XBee 802.15.4
-------------------------------
1. Error calling 'setChannel()'
2. Error calling 'setPAN()'
3. Error calling 'setEncryptionMode()'
4. Error calling 'setLinkKey()'
5. Error calling 'writeValues()'
-------------------------------
channel: 00
panid: 0000
encryption mode: 00
-------------------------------
channel: 00
panid: 0000
encryption mode: 00
-------------------------------
channel: 00
panid: 0000
encryption mode: 00
-------------------------------

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest