This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wireless send/receive data using C2000 F28027 and Zigbee ?

Other Parts Discussed in Thread: ENERGIA, CONTROLSUITE

Hey, 

I need to make two C2000 F28027 talk wireless using Zigbee Pro. I cannot find anything helpful on this . Can you provide me with useful links ?

1: I used IDE ( Energia) , connected tx , rx pins of c2000 to that of Zigbee.

J1.3 as rx
J1.4 as tx

Wrote a simple code :

void setup()
{
  // put your setup code here, to run once:
   pinMode(P1, OUTPUT);
   pinMode(P0, OUTPUT);
   pinMode(P2, OUTPUT);
   pinMode(P3, OUTPUT);
   Serial.begin(9600);
   int a=0;
   
}

void loop()
{ 
if (Serial.available()>0)
{int a = Serial.read();  
  Serial.println(a);
  Serial.println("poop");
  if (a==49){
Serial.println("wohoo");
delay(100);

}
}
  // put your main code here, to run repeatedly:
  
}

  • Hi Ayushman,

    Can you try with core CCS development? I'm not sure in what might be happening while implementing with Energia. I can assist you if you use SCI drivers available in controlSuite for the above implementation.

    Regards,
    Gautam
  • Ayushman,

    From your code it looks like you're trying to use the same serial port to talk to the XBee and the serial terminal on your PC. I'm afraid this won't work. If you required a UART connection to the PC, the new F28069M might be a better choice as it has two serial ports and is also supported in Energia.

    Also, there is an XBee library available for Arduino that should work in Energia:
    code.google.com/.../xbee-arduino

    BR,