Hi,
I tried to enter the command mode of an XBee Module (firmware XB24-B)
Baudrate 19200, Xtal 10MHz.
I send “+++” via the uart but i don’t get any response.
If I try it with a terminal program it works.
Uart send function:
uint8_t Uart_Putc(uint8_t uSend)
{
while (!(UCSRA & (1<<UDRE))); // warten bis Senden moeglich
UDR = uSend; // schreibt das Zeichen x auf die Schnittstelle
}
the main:
int main (void)
{
status = 0;
int Schleife;
Schleife = 0;
DDRB = 0xff;
PORTB = 0xff;
Uart_Init();
_delay_ms(1000);
while(1)
{
if(status!=2)
{
PORTB &= (~(1<<PB0));
strcpy(response,"~ID=00;");
Uart_Puts("+++");
_delay_ms(1000);
Uart_Gets(buffer,20);......
Can you help me?