CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

ze10 probee rf data transfer

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Mahdi



Joined: 21 Aug 2012
Posts: 47

View user's profile Send private message

ze10 probee rf data transfer
PostPosted: Sat Dec 15, 2012 4:50 pm     Reply with quote

Hi. I bought a ze10 zigbee rf module. I want to send data with rs232 with PIC micro but its not work.
First should the zigbee module be networked together.
One would be coordinator and a second module to be end device.

I should send data with AT command mode,

but

my problem is I don't know how to send data in AT command mode with PIC micro.


ze10 datasheet :

http://www.sena.com/download/manual/manual_probee_ze10-v1.6.pdf


please help me

thanks
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Sun Dec 16, 2012 2:48 pm     Reply with quote

Hi,

I'm not familiar with that specific zigbee module, however, for 'simple'
networks you generally don't need to do any configuration. You probably
just want to use the modules in 'serial cable replacement' mode, which tends
to be the default. If you have multiple modules in the network, you'll have
to assign each of them a unique address, but that's trivial if you are
designing your own network protocol.

To send AT commands to the module, you just use the standard 'C' printf
command. Most modules require a CR or LF at the end of the command.

Which PIC are you using, and what is your compiler version?

Good Luck,

John
Mahdi



Joined: 21 Aug 2012
Posts: 47

View user's profile Send private message

PostPosted: Tue Dec 18, 2012 12:59 am     Reply with quote

ezflyr wrote:
Hi,

I'm not familiar with that specific zigbee module, however, for 'simple'
networks you generally don't need to do any configuration. You probably
just want to use the modules in 'serial cable replacement' mode, which tends
to be the default. If you have multiple modules in the network, you'll have
to assign each of them a unique address, but that's trivial if you are
designing your own network protocol.

To send AT commands to the module, you just use the standard 'C' printf
command. Most modules require a CR or LF at the end of the command.

Which PIC are you using, and what is your compiler version?

Good Luck,

John


ccs v4.130

My problem is how to send and receive data.
For example this AT command for send data:

AT+UC=node-id,ccs

The above command transmit the ccs character.

How to send this command with putc() or printf() and how to get variable from receiver?

Thanks
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Tue Dec 18, 2012 7:21 am     Reply with quote

Hi,

I have no idea what you mean by the 'CCS character', but here is an
example of using AT commands with a GSM modem. You should be able to
figure out how to adapt this to your application:

Code:

// Here we select "text" mode for SMS messages!
fprintf(ADH8066, "AT+CMGF=1\r");


To receive data from the zigbee module, you'd use the fgetc() command.
I recommend that you put this command inside a serial interrupt routine
so that you never miss any characters being transmitted by the module.

Code:

char TempChar;   // local data storage
TempChar = fgetc(ADH8066);


Serial communications is by far one of the most discussed topics here on
the forum. Spend some time reading, and all this should become a lot
more clear to you!

Good Luck!

John
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group