Post a new topicPost a reply Page 1 of 2   [ 16 posts ]
Go to page 1, 2  Next
Author Message
 Post subject: Problems with Zigbee Pro S2
PostPosted: Tue May 08, 2012 7:46 pm 

Joined: Wed May 02, 2012 8:48 pm
Posts: 33
Hello,

I'm having problems with the sending of Zigbee frames. It seems that I'm connected but the frames doesn't appear in the meshlium capturer. I tested all the examples and happens the same. This is simple code I'm trying to work.

Code:
void setup()
{

  //Inicio el módulo Xbee
  xbeeZB.init(ZIGBEE,FREQ2_4G,NORMAL);
  xbeeZB.ON();
  USB.begin();
 

void loop()
{
   USB.println("Comencem a emetre");
   
    XBee.println("It works");
   
    delay(3000);
   
}




I followed all the instructions but it still doesn't working. I put here some screenshots to locate the mistake.

Configuring the preset:

http://i49.tinypic.com/2llcdi9.jpg

Ethernet Network

http://i48.tinypic.com/2j5i73l.jpg

Wifi ap network

http://i50.tinypic.com/2i2761f.jpg

Connecting with SSH

http://i48.tinypic.com/2ec15xg.jpg

Screen of Zigbee options (I don't know why appears that MAC address because the MAC adress of Zigbee is 0013A200407ACBAE - This number is written at the back of Zbee module.)

http://i50.tinypic.com/2ez4oxf.jpg

Capturer options:

http://i48.tinypic.com/imnewh.jpg


Can you help me, please. :)


Thanks.


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Tue May 08, 2012 7:48 pm 

Joined: Wed May 02, 2012 8:48 pm
Posts: 33
Code:
void setup()
{

  //Inicio el módulo Xbee
  xbeeZB.init(ZIGBEE,FREQ2_4G,NORMAL);
  xbeeZB.ON();
  USB.begin();
 
}
void loop()
{
   USB.println("Comencem a emetre");
   
    XBee.println("It works");
   
    delay(3000);
   
}


Sorry.


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Wed May 09, 2012 2:51 am 

Joined: Wed May 02, 2012 8:48 pm
Posts: 33
More info of my problem:

http://i46.tinypic.com/ifviph.jpg


http://i45.tinypic.com/35ckgsi.jpg


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Thu May 10, 2012 5:53 pm 

Joined: Wed May 02, 2012 8:48 pm
Posts: 33
Please, I need help.


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Mon May 14, 2012 9:51 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7475
foto33,

First of all, sorry for our delay answering. your post was missed.

Regarding the code for your Waspmote, you can try first to achieve communication between two zigbee modules, connecting one module into Waspmote and the other into a gateway plugged into your PC. Then, upload example of wasp_start_program_full_ZB_v1 provided with IDE and open a serial monitor on gateway side.

Also please follow steps described into Waspmote checklist to ensure you are not missing anything.

Regarding you questions about using Capturer and Meshlium, please ask in Meslium forum, there can help you to solve these issues.

let us know if you are success.

Best Regards.


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Mon May 14, 2012 6:01 pm 

Joined: Wed May 02, 2012 8:48 pm
Posts: 33
Hi,

I have followed all the steps of the Waspmote checklist and Meshlium checklist and the trouble remains.

I have not Gateway. I have one meshlium and twelve waspmotes withs several sensor boards. My target is send data frames with information of sensors to the Meshlium but Meshlium doesn't recognize the waspmote.

Following the steps of the both checklists I have done that:

1-Upload the wasp_start_program_full_ZB_v1 to one waspmote.
2-Put the Zigbee module in the waspmote.
3-Select the preset "Meshlium Zigbee Ap" in the Manager System.
4-In the Manager System select "Store frames in a file".
5-Start the waspmote.
6-In Manager System --> Sensor Networks --> Zigbee--> Select Load Mac.
7-In Manager System --> Sensor Networks --> Zigbee--> Select Check Status.
(MAC address appears different from my Zigbee module. See the pic. )

http://i50.tinypic.com/2ez4oxf.jpg

8-There is no connection and there is no data in the Capturer.

What can I do to solve it?

I have checked the channel and the PANID and the result is:

http://i45.tinypic.com/35ckgsi.jpg



Please, I need to solve it quickly. :)


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Wed May 16, 2012 8:29 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7475
Hello foto33,

Quote:
(MAC address appears different from my Zigbee module. See the pic. )

The MAC address that appears in System Manager is the Zigbee module corresponding to that is placed inside the Meshlium.

You must indicate in the code of Waspmote the MAC of the Zigbee Meshlium that is going to receive the information.

Annexed of code Waspmote to help you better.

Best Regards


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Thu May 17, 2012 4:48 pm 

Joined: Wed May 02, 2012 8:48 pm
Posts: 33
Hi,

The target is: send one packet (with temp, MAC and x, y, z position) to the Meshlium and capture it. The MAC of Meshlium is: 0013a20040714c1a

The code:


Code:
packetXBee* paq_sent;
int8_t state=0;
long previous=0;
char aux[200];
char* macHigh="          ";
char* macLow="           ";
int aux_1 = 0;
int aux_2 = 0;

#define key_access "LIBELIUM"

uint8_t direccion[8]={0x04,0x00,0x07,0x01,0x04,0x0c,0x01,0x0c};

void setup(){

  // Store key access in EEPROM
  for(int i=0;i<8;i++){
    Utils.writeEEPROM(i+107,key_access[i]);
  }

  RTC.ON();
 
  ACC.ON();
 
  XBee.setMode(XBEE_ON);
  XBee.begin(9600);
  delay(1000);
  XBee.print("+++");
  delay(2000);
  XBee.println("ATBD5,AP2,WR,CN");
  delay(150);
 
  XBee.setMode(XBEE_OFF);
  XBee.close();
   
  Utils.setLED(LED0, LED_ON);
  Utils.setLED(LED1, LED_ON);
  delay(5000);
  Utils.setLED(LED0, LED_OFF);
  Utils.setLED(LED1, LED_OFF);
  for (int i=0;i<24;i++){
    Utils.blinkLEDs(125);
  }
 
  // Inits the XBee XSC library
  xbeeZB.init(ZIGBEE,FREQ2_4G,NORMAL);
 
  // Powers XBee
  xbeeZB.ON();
 
  // Get the XBee MAC address

  delay(500);
 
  int counter = 0; 
  while(xbeeZB.getOwnMac()==1&&counter<4){
    xbeeZB.getOwnMac();
    counter++;
  }
 
  Utils.hex2str(xbeeZB.sourceMacHigh,macHigh,4);
  Utils.hex2str(xbeeZB.sourceMacLow,macLow,4);
 

}

void loop(){

  sprintf(aux,"-mac:%s%s -x:%d,y:%d,z:%d -temp:%d -bat: %d%c%c%c",macHigh,macLow,ACC.getX(),ACC.getY(),ACC.getZ(),RTC.getTemperature(),PWR.getBatteryLevel(),'%','\r','\n');
 
 
  paq_sent=(packetXBee*) calloc(1,sizeof(packetXBee));
  paq_sent->mode=UNICAST;
  paq_sent->MY_known=0;
  paq_sent->packetID=0x52;
  paq_sent->opt=0;
  xbeeZB.hops=0;
  xbeeZB.setOriginParams(paq_sent,MAC_TYPE);
  xbeeZB.setDestinationParams(paq_sent, "0013a20040714c1a", aux, MAC_TYPE, DATA_ABSOLUTE);
  xbeeZB.sendXBee(paq_sent);
 
 
 
  free(paq_sent);
  paq_sent = NULL;
 
  delay(1000);
}



It's all right?


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Fri May 18, 2012 9:21 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7475
Hi fofo33,

that won't work, you should indicate the MAC address in the setDestinationParams in capitals: "0013A20040714C1A" instead of "0013a20040714c1a".

Regards.


Top
 Profile  
 
 Post subject: Re: Problems with Zigbee Pro S2
PostPosted: Tue May 22, 2012 12:09 pm 

Joined: Mon May 14, 2012 7:45 am
Posts: 9
I am also facing the same issue.. I have also purchased waspmotes and meshlium (no gateway) and I'm not able to make network... Also I wrote about it on the following link but till now no breakthrough...
http://www.libelium.com/forum/viewtopic.php?f=14&t=9123&p=20764#p20764


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 2   [ 16 posts ]
Go to page 1, 2  Next


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use