<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Playing Xbee. Part 4 &#8211; API.</title>
	<atom:link href="http://www.circuitsathome.com/mcu/programming/playing-xbee-part-4-api/feed" rel="self" type="application/rss+xml" />
	<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api</link>
	<description>A Solder Joint</description>
	<lastBuildDate>Thu, 17 May 2012 05:09:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Peter</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-11834</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 24 Apr 2012 21:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-11834</guid>
		<description>Hi,

I am using your code to send data from my xbeepro2b coordinator to a xbeepro2b router.
When I change the pic you selected to PIC18F4550 I get the following errors:

Clean: Done.
Executing: &quot;C:\MCC18\bin\mcc18.exe&quot; -p=18F4550 &quot;USARTio.c&quot; -fo=&quot;USARTio.o&quot; -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\Users\Puchito\Desktop\Senior Project\New folder\Project\New folder\API\USARTio.c:60:Error [1205] unknown member &#039;RA7&#039; in &#039;__tag_33&#039;

C:\Users\Puchito\Desktop\Senior Project\New folder\Project\New folder\API\USARTio.c:60:Error [1118] scalar type expected in &#039;while&#039; statement

C:\Users\Puchito\Desktop\Senior Project\New folder\Project\New folder\API\USARTio.c:129:Warning [2054] suspicious pointer conversion
Halting build on first failure as requested.


Any advice to fix these errors?
What should I configure to fit the program to PIC18F4550?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am using your code to send data from my xbeepro2b coordinator to a xbeepro2b router.<br />
When I change the pic you selected to PIC18F4550 I get the following errors:</p>
<p>Clean: Done.<br />
Executing: &#8220;C:\MCC18\bin\mcc18.exe&#8221; -p=18F4550 &#8220;USARTio.c&#8221; -fo=&#8221;USARTio.o&#8221; -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-<br />
C:\Users\Puchito\Desktop\Senior Project\New folder\Project\New folder\API\USARTio.c:60:Error [1205] unknown member &#8216;RA7&#8242; in &#8216;__tag_33&#8242;</p>
<p>C:\Users\Puchito\Desktop\Senior Project\New folder\Project\New folder\API\USARTio.c:60:Error [1118] scalar type expected in &#8216;while&#8217; statement</p>
<p>C:\Users\Puchito\Desktop\Senior Project\New folder\Project\New folder\API\USARTio.c:129:Warning [2054] suspicious pointer conversion<br />
Halting build on first failure as requested.</p>
<p>Any advice to fix these errors?<br />
What should I configure to fit the program to PIC18F4550?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kavejska</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-11709</link>
		<dc:creator>kavejska</dc:creator>
		<pubDate>Fri, 06 Apr 2012 14:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-11709</guid>
		<description>Hello!

I have a problem triggering digital output (like DO0) on the remote ZigBee.

Case 1:
I know I can trigger it like this:
- setting digital input on the base ZigBee
- setting digital output on the remote ZigBee (DO LOW)
- and if configured right the input state on the base ZigBee is transferred to the digital output on remote ZigBee

I managed to do that, but I would like to trigger it via data packets. 

Case 2:
So I tried with setting API packets that set the digital output on the remote ZigBee. I managed to change the digital output on remote ZigBee with commands ATD0=4 (DO LOW) ATD0=5 (DO HIGH).

DO LOW API command:
7E 00 10 17 05 00 13 A2 00 40 08 C9 80 00 02 02 44 30 04 21

DO HIGH API command:
7E 00 10 17 05 00 13 A2 00 40 08 C9 80 00 02 02 44 30 05 20

Problem:
But the problem I have is that sometime the communication between the base and remote might be lost. And if the digital output on the remote ZigBee is set to 3,3V (DO HIGH) and the communication is lost, the digital output would stay at the 3,3V. I want it to &quot;reset&quot; to 0V. In &quot;case 1&quot; when I tried to trigger the digital output with digital input, you can set the reset timer for that digital output (command ATT0) and it did the work (the digital input reset to value 0V), but you can&#039;t use that in the case 2.

Question:
Does anybody know what is the API format of the packet to simulate case 1 - I/O line passing (case 1 data packets)?
Do you have any other ideas how to &quot;reset&quot; the digital output to 0V.</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>I have a problem triggering digital output (like DO0) on the remote ZigBee.</p>
<p>Case 1:<br />
I know I can trigger it like this:<br />
- setting digital input on the base ZigBee<br />
- setting digital output on the remote ZigBee (DO LOW)<br />
- and if configured right the input state on the base ZigBee is transferred to the digital output on remote ZigBee</p>
<p>I managed to do that, but I would like to trigger it via data packets. </p>
<p>Case 2:<br />
So I tried with setting API packets that set the digital output on the remote ZigBee. I managed to change the digital output on remote ZigBee with commands ATD0=4 (DO LOW) ATD0=5 (DO HIGH).</p>
<p>DO LOW API command:<br />
7E 00 10 17 05 00 13 A2 00 40 08 C9 80 00 02 02 44 30 04 21</p>
<p>DO HIGH API command:<br />
7E 00 10 17 05 00 13 A2 00 40 08 C9 80 00 02 02 44 30 05 20</p>
<p>Problem:<br />
But the problem I have is that sometime the communication between the base and remote might be lost. And if the digital output on the remote ZigBee is set to 3,3V (DO HIGH) and the communication is lost, the digital output would stay at the 3,3V. I want it to &#8220;reset&#8221; to 0V. In &#8220;case 1&#8243; when I tried to trigger the digital output with digital input, you can set the reset timer for that digital output (command ATT0) and it did the work (the digital input reset to value 0V), but you can&#8217;t use that in the case 2.</p>
<p>Question:<br />
Does anybody know what is the API format of the packet to simulate case 1 &#8211; I/O line passing (case 1 data packets)?<br />
Do you have any other ideas how to &#8220;reset&#8221; the digital output to 0V.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaqa</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-11649</link>
		<dc:creator>shaqa</dc:creator>
		<pubDate>Thu, 29 Mar 2012 05:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-11649</guid>
		<description>i am using pic33fj128gp802 with xbee radio....i m just sending &quot;hello&quot; from my software everything going fine checksum,transmit func etc but radio is not transmiting so i want to know what problem will be?
is it problem of some kind of interval ?
reply as soon as possible</description>
		<content:encoded><![CDATA[<p>i am using pic33fj128gp802 with xbee radio&#8230;.i m just sending &#8220;hello&#8221; from my software everything going fine checksum,transmit func etc but radio is not transmiting so i want to know what problem will be?<br />
is it problem of some kind of interval ?<br />
reply as soon as possible</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-11632</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Tue, 27 Mar 2012 23:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-11632</guid>
		<description>Hello !
I need a help about send API commands. I want obtain measure from analogic port of the far module. I don&#039;t know as send command and obtain return of the measure. I use the manual but I don&#039;t understand, I make many frame formats but don&#039;t work.</description>
		<content:encoded><![CDATA[<p>Hello !<br />
I need a help about send API commands. I want obtain measure from analogic port of the far module. I don&#8217;t know as send command and obtain return of the measure. I use the manual but I don&#8217;t understand, I make many frame formats but don&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-3867</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Mon, 18 Apr 2011 16:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-3867</guid>
		<description>Hello..I have to do a network xbee,where there is one coodinator and there are two end devices too.I need that all xbee&#039;s modules will communicate,the coordinator will send the information and the other modules will recive the information.Now how can I make that network??? Please Help me!! thanks...</description>
		<content:encoded><![CDATA[<p>Hello..I have to do a network xbee,where there is one coodinator and there are two end devices too.I need that all xbee&#8217;s modules will communicate,the coordinator will send the information and the other modules will recive the information.Now how can I make that network??? Please Help me!! thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-1028</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Fri, 26 Nov 2010 19:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-1028</guid>
		<description>I haven&#039;t been involved in Xbee projects lately so I start forgetting the details. Have you looked in the manual yet - there is plenty of information there?</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t been involved in Xbee projects lately so I start forgetting the details. Have you looked in the manual yet &#8211; there is plenty of information there?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WantoKnow</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-1027</link>
		<dc:creator>WantoKnow</dc:creator>
		<pubDate>Fri, 26 Nov 2010 18:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-1027</guid>
		<description>Hi Oleg,

thanks for your tuto.

I try to develop a network with one coordinator and four end-devices.

in a first time, i send at command to switch adress destination, but this was very very too slow. ( about 2s)

So i decided to use API mode:

1- I send the At command ATAP 1  to enable API on coordinator module without change module firmware (10A1)

2- So when end-device send data to the coordinator ( with X-CTU, or a C function), coordinator can received a API sentence with the data.

3-But when coordinator send data in API sentence ( with mine or your function) to a end-device, none data are sending. I use a RS232 analyser to be sure.

4- When coordinator send AT command with API sentence, xbee module put the corresponding answer.

So my questions is :

A) Does it REALLY necesary to load Coordinator firmware on coordinator zigbee to send API sentence to end-device?

B) When i try to load API firmware ( ZIGBEE PRO COORDINATOR API (BETA) version 8114 for coordinator or ZIGBEE PRO ROUTERAPI (BETA)version 8314 for End-Device ), i always have a Big problem, when X-CTU want to send AT parameter whereas i check API enable: It stop with a failed message. X-CTU can&#039;t recognised the module, and i can&#039;t do anything!!Have you any suggestions? 

C) If coordinator with API Enable can receive data from end-device with API Disable, Does End-Device with API Disable can receive data from coordinator module with API Enable ?

Best Regards</description>
		<content:encoded><![CDATA[<p>Hi Oleg,</p>
<p>thanks for your tuto.</p>
<p>I try to develop a network with one coordinator and four end-devices.</p>
<p>in a first time, i send at command to switch adress destination, but this was very very too slow. ( about 2s)</p>
<p>So i decided to use API mode:</p>
<p>1- I send the At command ATAP 1  to enable API on coordinator module without change module firmware (10A1)</p>
<p>2- So when end-device send data to the coordinator ( with X-CTU, or a C function), coordinator can received a API sentence with the data.</p>
<p>3-But when coordinator send data in API sentence ( with mine or your function) to a end-device, none data are sending. I use a RS232 analyser to be sure.</p>
<p>4- When coordinator send AT command with API sentence, xbee module put the corresponding answer.</p>
<p>So my questions is :</p>
<p>A) Does it REALLY necesary to load Coordinator firmware on coordinator zigbee to send API sentence to end-device?</p>
<p>B) When i try to load API firmware ( ZIGBEE PRO COORDINATOR API (BETA) version 8114 for coordinator or ZIGBEE PRO ROUTERAPI (BETA)version 8314 for End-Device ), i always have a Big problem, when X-CTU want to send AT parameter whereas i check API enable: It stop with a failed message. X-CTU can&#8217;t recognised the module, and i can&#8217;t do anything!!Have you any suggestions? </p>
<p>C) If coordinator with API Enable can receive data from end-device with API Disable, Does End-Device with API Disable can receive data from coordinator module with API Enable ?</p>
<p>Best Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-964</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Wed, 17 Nov 2010 16:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-964</guid>
		<description>You will need to do bit bang serial. There is plenty of examples on the net how to do it.</description>
		<content:encoded><![CDATA[<p>You will need to do bit bang serial. There is plenty of examples on the net how to do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cass</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-960</link>
		<dc:creator>Cass</dc:creator>
		<pubDate>Wed, 17 Nov 2010 14:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-960</guid>
		<description>Hi Oleg,

If my USART pin (RC6/RC7) already using for connect with the MCP2551 (can bus transmitter), how can i connect with xbee?</description>
		<content:encoded><![CDATA[<p>Hi Oleg,</p>
<p>If my USART pin (RC6/RC7) already using for connect with the MCP2551 (can bus transmitter), how can i connect with xbee?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cass</title>
		<link>http://www.circuitsathome.com/mcu/playing-xbee-part-4-api/comment-page-1#comment-959</link>
		<dc:creator>Cass</dc:creator>
		<pubDate>Wed, 17 Nov 2010 12:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=555#comment-959</guid>
		<description>Thanks... I had some problem to connect the xbee with PIC. which pin of PIC should i use to connect with the Tx/Rx of Xbee to make the connection??</description>
		<content:encoded><![CDATA[<p>Thanks&#8230; I had some problem to connect the xbee with PIC. which pin of PIC should i use to connect with the Tx/Rx of Xbee to make the connection??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

