|
|
View previous topic :: View next topic |
Author |
Message |
Mahdi
Joined: 21 Aug 2012 Posts: 47
|
ze10 probee rf data transfer |
Posted: Sat Dec 15, 2012 4:50 pm |
|
|
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
|
|
Posted: Sun Dec 16, 2012 2:48 pm |
|
|
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
|
|
Posted: Tue Dec 18, 2012 12:59 am |
|
|
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
|
|
Posted: Tue Dec 18, 2012 7:21 am |
|
|
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 |
|
|
|
|
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
|