Go Down

Topic: XBee Series1 XB24 and XB24-DM firmware does not work ! (Read 2022 times) previous topic - next topic

Aadeesh

Hello,

My aim is to have 2 transmitters sending serial data to receiver connected to PC via Xbee Explorer board.
I am using XBee "Series 1" modules.

My setup is as follows:
Arduino (AD) powered using USB and XBee (XB) attached to self-made shield (powered using AD_3V3).

I am using NewSoftSerial library for communication at 9600 baud rate to avoid interference with FTDI.
So, i have attached the XB_DIN pin to AD3 pin.

My XB's configuration tested till now:
(Just point to point to test)

1)
XBeeTX: DL-1, MY-2 (Arduino)
XBeeRX: DL-2, MY-1 (PC)
(PAN-3332, BD-9600)

2)
XBeeU: DL-1, MY-2 (Arduino)
XBeeD: DL-2, MY-1, CE-1 (PC)
(PAN-3332, BD-9600)

Both the above configuration are "not working".

In order to confirm whether my hardware is working or not, I tested it with my "Series 2" modules lying around.
And the setup works with them.

Then, i changed the firmware to XB24-DM (XBee Digimesh) and configured them as follows:

Receiver:
PAN-1234
SH-13A200
SL-4064036E
DH-0
DL-FFFF

Transmitter
PAN-1234
DH-13A200
DL-4064036E

And surprisingly it does not work too.

Please help me to debug this.

Regards-
Aadeesh

Code:
Quote

#include <NewSoftSerial.h>

NewSoftSerial softSerial(2, 3);

unsigned int prevValue = 0;
unsigned int newValue = 0;

void setup()
{
  softSerial.begin(9600);
  pinMode(13, OUTPUT);
}

void loop()
{
  newValue = analogRead(0);  // Read Potentiometer A (0 to 1023)
 
  //softSerial.println("Working !");
 
  // Send if potentiometer values is changed
  // If loops are to set the tolerance limits of the digital potentiometer values
  if (newValue != prevValue)
  {
    if ((newValue - 1) != prevValue)
    {
      if((newValue + 1) != prevValue)
      {
        if((newValue - 2) != prevValue)
        {
          if((newValue + 2) != prevValue)
          {
            if((newValue - 3) != prevValue)
            {
              if((newValue + 3) != prevValue)
              {
                digitalWrite(13,HIGH);
                softSerial.print("NODEA ");
                softSerial.println(newValue);
                prevValue = newValue;
                digitalWrite(13,LOW);
              }
            }
          }
        } 
      }
    } 
  }
 
  delay(20);
}


References:
http://www.wsncloud-murdoch.org/wiki/index.php/Wireless_Communication#Wireless_Mesh_Network
http://www.kobakant.at/DIY/?p=270

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy