| Author |
Message |
|
|
Posted: Oct 26, 2010 - 12:39 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
newjou wrote:
When I enter command "at+wautonet=1" the answer is OK not "event: joined" I waited.
Well, you have enabled autonetwork feature, event will be raised on the other device. |
|
|
| |
|
|
|
|
|
Posted: Oct 26, 2010 - 02:28 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
thank for your answer,
instead of AT+WAUTONET=1Z
I used AT+WAUTONET=1 and the hyper terminal is not static but does'nt display EVENT:JOINED
ATI command though displays (bitcloud, zigbit, serialNet and the address 00000001 of the fisrt Zig modul)
In the same PC i plug the next modul and follow the instruction but the last command "AT+WAUTONET=10 Z" dose'nt work, i just use " AT+WAUTONET=10" without "Z"
no EVENT: JOINED CHILD is mentionned thus i can't test the communication between 2 moduls.
When I try the command "AT+WNWK" it states "ERROR"
Do I need 2 PC?
How can I check the communication until it mention EVENT: JOINED?
Does any other possibility exist to test communication?
Quote:
you'll need full SDK and program in C
I will keep checking if there is full SDK on the website but it seems not available since... |
|
|
| |
|
|
|
|
|
Posted: Oct 26, 2010 - 02:48 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
newjou wrote:
I used AT+WAUTONET=1 and the hyper terminal is not static but does'nt display EVENT:JOINED
To join a network you need to have coordinator or setup this one as coordinator. Show exact commands you enter on devices.
newjou wrote:
ATI command though displays (bitcloud, zigbit, serialNet and the address 00000001 of the fisrt Zig modul)
I need EXACT output, I need to know version numbers, different versions have different bugs.
newjou wrote:
In the same PC i plug the next modul and follow the instruction but the last command "AT+WAUTONET=10 Z"
What instruction? autonet is a binary parameter it can be 1 or 0, 'Z's are something that should not be there at all. Download official SerialNet manual from Atmel site.
To setup modules you need to enter series of commands. What commnds - see documentation. |
|
|
| |
|
|
|
|
|
Posted: Oct 26, 2010 - 03:18 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
I am working with this document
http://www.lextronic.fr/~lextronic_doc/Tutorial.pdf
To set the coordinator throw HYPER TERMINAL I entered command as follow:
AT, ATX, AT+GSN=1, AT+PANID=1620, AT+WCHMASK=100000, AT+ WROLE=0 + WSRC=0, AT+AUTONET=1Z,
Then I set the second as router in a new window:
AT, ATX, AT+GSN=2, AT+PANID=1620, AT+WCHMASK=100000, AT+ WROLE=2 + WSRC=55, AT+AUTONET=10 Z,
Impossible to acceptate the command with Z and thus communicate with each orther.
Quote:
I need EXACT output, I need to know version numbers, different versions have different bugs.
ATI
ATMEL
ZIGBIT
BitCloud v.1.10.0; SerialNet v.2.4.0
0000000000000000
OK
the "00000000" change to "000000001" when GSN=1
I used bootload just for connexion in the beginning, and hyper terminal for command |
|
|
| |
|
|
|
|
|
Posted: Oct 26, 2010 - 03:28 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
Use next command set:
Code:
coordinator:
AT+WSRC=0
AT+WROLE=0
AT+WPANID=1234
AT+WCHMASK=40000
ATX0
AT+WJOIN
router:
AT+WSRC=1
AT+WROLE=1
AT+WPANID=1234
AT+WCHMASK=40000
ATX0
AT+WJOIN
And get official documentation to know what command exactly does. |
|
|
| |
|
|
|
|
|
Posted: Oct 26, 2010 - 03:42 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Thanks,
All command work exept "AT+WJOIN" witch displayed error in both case. |
|
|
| |
|
|
|
|
|
Posted: Oct 26, 2010 - 05:08 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
newjou wrote:
All command work exept "AT+WJOIN" witch displayed error in both case.
You may need to set at+gsn=<unique value> before it. |
|
|
| |
|
|
|
|
|
Posted: Oct 28, 2010 - 08:05 PM |
|

Joined: Jul 16, 2010
Posts: 30
|
|
|
alexru wrote:
newjou wrote:
Please, how am I suppose to joint SerialNet_RF230 with SDK?
Here is bootloader and SerialNet from latest SDK. Run bootloader, tell it your COM-port and point it to .srec file. If UART connection works then module will be programmed with SerialNet and will be able to work with AT-commands.
PS: I'm not allowed to attach files more than 2MB in size, so here is the link to download: http://dl.dropbox.com/u/6121480/sn_bootldr.zip
Thanks for that. I thought the modules came preprogrammed with the serialnet application. I guess that explains why I've been having so many problems!
Now I can communicate with the module via usb! YAY!! |
|
|
| |
|
|
|
|
|
Posted: Nov 04, 2010 - 07:13 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Hello,
Can somebody tells me the different between logical addres (WSRC) and MAC adress (GSN)?
Do I need always boths of them for my application?
Because my network plants when I leave (Wleave) but it is impossible to join the net again unless I reset all device.
Thank |
|
|
| |
|
|
|
|
|
Posted: Nov 04, 2010 - 07:24 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
newjou wrote:
Can somebody tells me the different between logical addres (WSRC) and MAC adress (GSN)?
WSRC is a short (16 bit) address which should be unique in the particular network, GSN is an extended address (64-bit) which should be world-wide unique and range.
newjou wrote:
Do I need always boths of them for my application?
Yes, they both important for proper operation of ZigBee network.
newjou wrote:
Because my network plants when I leave (Wleave) but it is impossible to join the net again unless I reset all device.
Don't see how it is connected with the fact that there are two kinds of addresses. |
|
|
| |
|
|
|
|
|
Posted: Nov 04, 2010 - 07:54 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Thank you Alex,
about GSN for example, can I define Cordinator: GSN=1 (0 reserved), Router1: GSN=2, End device:GSN=3? So for DATA to be send we only use logical address? (ATD 0,1,5) What is the useful of GSN?
Please why can the Hyperterminal plant?
if is not from address.
Is it wait time? sometime a simple DATA is transmitted normaly. After some instruction, the same DATA to be transmitted plant.
How can we do without RESETING the all device?
Thank |
|
|
| |
|
|
|
|
|
Posted: Nov 04, 2010 - 09:41 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
In fact I notice that GSN identifie each module in the net and WSRC is used to communicate between each module on the net.
I finaly notice that one of my Zigbit module loses all configuration everytime after configuration (less than 2 or 3 min) I checked configuration register to noticed it when the network was lost. I don't knw why it does so.
I m now study how to programm the module in C with time, interrupt... The Bitcloud SDK (if I remember can include "C") for Zigbee seems not to be available any more in atmel because I register to download several time, it still ask to register again.
Does any one have an other solution to programme Zigbit or a link to dowload SDK bitcloud?
I can now use most command throw hypperTerminal.thank you for your great help Alex
+++ |
|
|
| |
|
|
|
|
|
Posted: Nov 04, 2010 - 09:50 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
newjou wrote:
In fact I notice that GSN identifie each module in the net and WSRC is used to communicate between each module on the net.
SerialNet exposes very little of real ZigBee, they both can be used to communicate, but not in SerialNet. The analogy here is GSN is a MAC address and WSRC is an IP address.
newjou wrote:
seems not to be available any more in atmel because I register to download several time, it still ask to register again.
There were problems with download few days ago, but now it should be fine. |
|
|
| |
|
|
|
|
|
Posted: Nov 05, 2010 - 11:48 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
| Please can you provide me the available link? |
|
|
| |
|
|
|
|
|
Posted: Nov 06, 2010 - 06:51 AM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
|
|
|
|
Posted: Nov 26, 2010 - 09:09 AM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Hello,
I am trying to developpe custum application with zigbit mobule now but I face to a problem.
I Started using SerialNet. It only allow me to test Communication between Zigbit module and it was helpfull to light LED in a module through the same module or an other module. It also help me to check if a button is pressed or not. But not to contrôl a LED with a button.
Does the SerialNet could do better than that?
Here is the main problem.
I upload the blinking example to midified the frequence and to contrôl de output through the input, unfortunatly I did'nt see where to:
- Define PORTGPIO as input or as output.
- Modifie the timer
- Change an output according to the input
I see function who contrôl LED
Code:
void APL_TaskHandler(void)
{
...
static void blinkTimerFired()
{
I went in blink.h and ZDO to check if a can have acces to input but noway, I went in AppFrame.h with is include in ZDO, noway too.
Here is my question:
- Where is it possible to get access to I/O and configure them?
- Where can I modified the time of blinking?
- does "appToggleLed" are instruction or function?
- Does button has any effet on blink application?
because I check it while seing this code and have no effect
Code:
#ifndef _BUTTONS_
static HAL_AppTimer_t changeBlinkTimer; // Buttons emulation timer.
#endif //#ifndef _BUTTONS_
Thank you for your great care |
|
|
| |
|
|
|
|
|
Posted: Nov 26, 2010 - 11:47 AM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
newjou wrote:
But not to contrôl a LED with a button.
Does the SerialNet could do better than that?
Not directly, but it is possible using host controller.
Your questions are kind of general and I don't even know where to start.
newjou wrote:
Here is my question:
- Where is it possible to get access to I/O and configure them?
Use macros from gpio.h
newjou wrote:
- Where can I modified the time of blinking?
In Configuration file.
newjou wrote:
- does "appToggleLed" are instruction or function?
Use search, it will answer most of your questions. appToggleLed() is defined in blink.h.
newjou wrote:
- Does button has any effet on blink application?
Yes, they change period of blinking. |
|
|
| |
|
|
|
|
|
Posted: Nov 29, 2010 - 08:33 AM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Hello,
when i started to modifie de app blink.c I noticed i have to modifie "appTimer.h or .c, blikn.h, ZDO"
when I got to the file to modifie I noticed I would go to appclock etc... and finaly I found it was'nt eseay to modifie the application through too musch file.
I follow the advice Zigbit without meshbean to modified blink.c without getting in other file so i don't have any include, I copie each function(ex BSP...) but I allways have ERROR for compilation.
how can I do to compil blink without having error depending on Meshbean board?
I better like a simple programm where I can
Configure in the same file
- PORT GPIO
- Interrup
- Timer
Is that possible?
Does somebody has a simple programm doing that?
Sorry for these questions and thank you for your help. |
|
|
| |
|
|
|
|
|
Posted: Nov 29, 2010 - 08:54 AM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
newjou wrote:
Hello,
when i started to modifie de app blink.c I noticed i have to modifie "appTimer.h or .c, blikn.h, ZDO"
when I got to the file to modifie I noticed I would go to appclock etc... and finaly I found it was'nt eseay to modifie the application through too musch file.
Please setup spell-checker. Up there is a mess of words which does not make any sense, to me at least. Why would someone want to read your messages if you haven't put much effort into writing them?
newjou wrote:
but I allways have ERROR for compilation.
how can I do to compil blink without having error depending on Meshbean board?
Read error messages and resolve errors.
newjou wrote:
Is that possible?
Yes, but you need to make at least some effort. What is your final goal? |
|
|
| |
|
|
|
|
|
Posted: Nov 29, 2010 - 10:07 AM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Thank you for your attention!
here is my project:
I have to make 3 robots.
They have to communicate toghether to move a load.
How do they do that?
A test should be check to identifie if all three robot are in the same line.
If YES they push a load just by moving forward
If NO, Robot out of line should joint the line
Each robot are contrôle by Zigbit ATZB-24-A2.
How are Robot contrôl?
their wheel are trundle by servomotor
If Zigbit send an impuls of
- 1mS Servomotor turn in right way for example
- 2mS Servomotor turn in left way
The gap between each impul define the speed of servomotor but it should be around 20mS
How am I wanted to set sofware?
First:
to move the robot foward:
- Use GPIO.0 as output for wheel_1 to generate 2 timer, Timer1 for 1ms and Timer2 for 20mS
- Use GPIO.1 as output for wheel_2 to generate 2 timer, Timer1 for 2ms and Timer2 for 20mS
To move the robot backward I just need to remplace 1mS by 2ms and 2ms by 1ms.
to control speed:
- modify timer2 between 15ms and 500ms
-------------
Second:
Controle de displacement of robot
(by TEST in the Zigbit use for current Robot)
- By an input to enable foward or bacward (GPIO.0 and GPIO.1)
- contrôl the speed by and input (increment or decrement Timer2)
(reality contrôl the current Zigbit from a coordinator)
- By simple remote contrôl wich include one Zigbit (Coordinator).
Coordinator has theses functions:
°° Enable foward or bacward (GPIO.0 and GPIO.1)
°° Contrôl speed (increment or decrement Timer2)
---------
Third:
Include sensor inside ROBOT to detect its position.
If ROBOT are in the correct line it sends an signal to coordinator and STOP. If not it moves on right or left accordind to it position.
Once all robot send "ok" to coordinator they move forward
that all.
As I don't have a particular DATASHEET of Zigbit (PORT, timer, interrupt)I takes me too much time to manipulate Zigbit.
TO ACHIEVED THAT PROJECT I WANTED TO
- use simple application in one Zigbit (set Input/output, timer and interrupt)
- Set a net with coordinator and router
- Finaly build my application
What I did before?
I used SerialNet where I could
- established a netword between Zigbit
- Set input/output
- Light a LED in Router by coordinator
But all these was useful but not enough to make my projet.
I test blink application where I was just able to modifie de blink interval.
thank you for your care
IF NOT POSSIBLE IN THE TIME ALLOW FOR THE PROJECT
I use PIC Controler from microchip whithout remote control but the zigbit was required at first.
I hope it is undestandable but I will try my best to be clear in a part that is not enough clear. |
|
|
| |
|
|
|
|
|