Remote AT for sleep period

56 views
Skip to first unread message

tugberk korkmaz

unread,
Apr 21, 2013, 4:08:31 PM4/21/13
to lib...@googlegroups.com
Hi again Attie!
I want to change sleep period of one of my end devices to 0xAF0 (20 seconds).
Can you explain how to use xbee_conTx function with Remote AT?

Attie Grande

unread,
Apr 22, 2013, 4:29:23 AM4/22/13
to tugberk korkmaz, libxbee
Hi Tugberk,

Have you looked at the sample code?

You will need to specify the value as raw data. E.g:
xbee_conTx(con, NULL, "SP%c%c", 0x0A, 0xF0);

If you're still having issues please let me know.

Attie

--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/EzUiPU0EiSwJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

tugberk korkmaz

unread,
Apr 22, 2013, 1:58:56 PM4/22/13
to lib...@googlegroups.com
Hi Attie Thank you for your reply
I tried your code before but the problem lies under sleep mode.
I get:
tx: -25
txRet: -17
when I send remote AT command while my End Device is sleeping.
However, I as far as I know from the datasheet, the rooter keeps the messages for sleeping devices until they are awake.
Can you help me am I missing something? 
By the way I appreciate your help thank you for your answers

Attie Grande

unread,
Apr 23, 2013, 3:59:24 AM4/23/13
to tugberk korkmaz, libxbee
I see.

I'm afraid I have little experience with sleeping nodes.
It is very possible that your message is actually being delivered, but after a longer time than libxbee is waiting for a response.
Have you checked to see? Try using XBEE_LOG_LEVEL=100 and perhaps enabling XBEE_LOG_RX and XBEE_LOG_TX.
It might also be worth making the timeout longer... you're using XBeeZB modules?

You could change the timeout values here:

Attie

--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/y0zrcWDDNnkJ.

tugberk korkmaz

unread,
Apr 24, 2013, 12:19:35 PM4/24/13
to lib...@googlegroups.com
Hi Attie sorry for late response,

I tried everything but decided to do some tricks with software. Im using Xbee coordinator with RaspberryPi and Qt. Using Qt, if the device is sleeping, I added the commands to a vector until the device wakes up. So, there will be no loss with the informations.
Thank you for your answers



On Sunday, April 21, 2013 11:08:31 PM UTC+3, tugberk korkmaz wrote:

Attie Grande

unread,
Apr 24, 2013, 1:01:20 PM4/24/13
to tugberk korkmaz, libxbee
No problem :-)

I'm glad you've figured something out.

--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/xt0smYEhNkcJ.
Reply all
Reply to author
Forward
0 new messages