Gobetwino getting extra 0

Hi All,

I am using Gobetwino to receive and write data from my remote temp/humidity sensor. Apparently, I have some problem with the setup. Gobetwino receives "0#S|" (instead of "#S|") every other time and fails to write the data. I appreciate if anyone here can tell me what I am doing wrong and how I can fix the problem. Example Status message on Gobetwino using the sample sketch looks like:

8/16/2013 10:18:13 AM Serial port : COM6 opened at 9600 baud
8/16/2013 10:18:27 AM Commandstring recieved : #S|LOGTEST|[877]#
8/16/2013 10:18:27 AM Command parsed OK
8/16/2013 10:18:27 AM Executing command : LOGTEST
8/16/2013 10:18:27 AM Data logged to C:\XXXXX\00 Research\00 Arduino Projects\Test\testlog.txt
8/16/2013 10:18:32 AM Commandstring recieved : 0#S|LOGTEST|[877]#
8/16/2013 10:18:32 AM The string recieved : 0#S|LOGTEST|[877]# is not a well formed command string
8/16/2013 10:18:37 AM Commandstring recieved : #S|LOGTEST|[877]#
8/16/2013 10:18:37 AM Command parsed OK
8/16/2013 10:18:37 AM Executing command : LOGTEST
8/16/2013 10:18:37 AM Data logged to C:\XXXXX\00 Research\00 Arduino Projects\Test\testlog.txt
8/16/2013 10:18:42 AM Commandstring recieved : 0#S|LOGTEST|[877]#
8/16/2013 10:18:42 AM The string recieved : 0#S|LOGTEST|[877]# is not a well formed command string
8/16/2013 10:18:47 AM Commandstring recieved : #S|LOGTEST|[877]#
8/16/2013 10:18:47 AM Command parsed OK
8/16/2013 10:18:47 AM Executing command : LOGTEST
8/16/2013 10:18:47 AM Data logged to C:\XXXXX\00 Research\00 Arduino Projects\Test\testlog.txt

And the corresponding Command output looks like:
8/16/2013 10:18:27 AM : 0
8/16/2013 10:18:37 AM : 0
8/16/2013 10:18:47 AM : 0

When I use X-CTU, all data are recognized correctly as:
#S|LOGTEST|[877]"
#S|LOGTEST|[877]"
#S|LOGTEST|[877]"

For this test, I used
Receiver - XBee USB Explore + XB22 S2 (coordinator AT)
Transmitter - Arduino Fio + XBee S2 (router AT).

I hope I presented enough information. Ant feedback will be appreciated.

Thank you,

I hope I presented enough information.

Nope.

We need to see your code, thanks.

Hi MikMo
Thank you for being interested in checking my problem.
I used the following simple code to test the communication.

void setup()
{
  Serial.begin(9600);
}

void loop(){
  char buffer[5];
  int value = 877;

  Serial.print("#S|LOGTEST|[");
  Serial.print(itoa((value), buffer, 10));
  Serial.println("]#");
  
  delay(5000);
}

I use the following setup
for the coordinator:
Baud rate 3
Packetization timeout 10
AD3/DIO3 3
Digital IO Change Deletion 8
for router
Baud rate 3
Packetization timeout 10
AD3/DIO3 5

Sorry for the late answer.

Your GoBetwino related code loks fine.

I have absolutely no knowledge of Xbee, so maybe someone else can chime in with suggestions