Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Chris3
PostPosted: Jul 17, 2009 - 07:36 AM
Newbie


Joined: Jul 17, 2009
Posts: 16


Hi,

I am trying to connect a MeshBean 2 board from MeshNetics to a gas-meter.
I have programmed my MeshBean board with a standard controller program that works with other MeshBean boards.
But when I try to connect it to my ZigBee gas-meter, it will not connect.

Here is a screenshot of a connection try. (It was sniffed with a AVR Raven USB stick)



As you can see the client does not respond to the "association response" frame, and I dont know why that is?

The controller is programmed with the BitCloud stack from Atmel.
And I dont have any access to the gas-meters software.

Best Regards

Chris
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jul 17, 2009 - 10:58 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4864
Location: San Jose, CA

Please be more specific. What is the model name of gas-meter, what version of BitCloud do you use and what application (+ configuration parameters of application), who is who on provided screenshot?
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Chris3
PostPosted: Jul 17, 2009 - 11:39 AM
Newbie


Joined: Jul 17, 2009
Posts: 16


I'm using BitCloud 1.5.0.
I dont know the model-name of the gas-meter, but it is build using a DevCom04-L http://www.develco.dk/DevCom/DevCom_04_ZigBee_Module.aspx.
The configuration parameters of my applications are:

CS_EXT_PANID = 0xAAAAAAAAAAAAAAAALL
CS_NEIB_TABLE_SIZE = 8
CS_MAX_CHILDREN_AMOUNT = 7
CS_MAX_CHILDREN_ROUTER_AMOUNT = 0
CS_ROUTE_TABLE_SIZE = 8
CS_END_DEVICE_SLEEP_PERIOD = 10000

CS_CHANNEL_MASK = "(1l<<11f)"
CS_CHANNEL_PAGE = 0
CS_RX_ON_WHEN_IDLE = true
CS_NWK_UNIQUE_ADDR_ID = false

On the provided screenshot my application the controller has address 0x0000.
And the gas-meter has address 0x0000000006000018.

Thanks for taking the time and responding to my post.
 
 View user's profile Send private message  
Reply with quote Back to top
Chris3
PostPosted: Jul 17, 2009 - 11:50 AM
Newbie


Joined: Jul 17, 2009
Posts: 16


One thing I forgot to say is that the gas-meter is searching for a controller on more channels than, channel 11 (where my controller is).
So because it does not get the "association response" fast enough from my controller it goes to the next channel in search for a controller.
 
 View user's profile Send private message  
Reply with quote Back to top
Chris3
PostPosted: Jul 17, 2009 - 11:58 AM
Newbie


Joined: Jul 17, 2009
Posts: 16


Here is a screenshot of a successfull connection between two MeshBean Boards.



The connection is on line 3-10.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jul 17, 2009 - 12:18 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4864
Location: San Jose, CA

Chris3 wrote:

CS_CHANNEL_MASK = "(1l<<11f)"


Why it is 11f ? What is 'f'?
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Chris3
PostPosted: Jul 17, 2009 - 12:22 PM
Newbie


Joined: Jul 17, 2009
Posts: 16


Sry it is just 11.
CS_CHANNEL_MASK = 1<<11
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jul 17, 2009 - 12:24 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4864
Location: San Jose, CA

Chris3 wrote:
One thing I forgot to say is that the gas-meter is searching for a controller on more channels than, channel 11 (where my controller is).
So because it does not get the "association response" fast enough from my controller it goes to the next channel in search for a controller.


Coordinator sends response 1.5 ms after MAC ack. This time is much less than standard allowed. So it seems like this is gas-meter problem.

It is also possible that meter is not fast enough to switch to receive mode in 1.5 ms interval.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Chris3
PostPosted: Jul 17, 2009 - 12:30 PM
Newbie


Joined: Jul 17, 2009
Posts: 16


Do you know if it is possible to change "MAX_FRAME_RETRIES" in the BitCloud stack from 3 to 20?

Would that even help?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jul 17, 2009 - 12:36 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4864
Location: San Jose, CA

Chris3 wrote:
Do you know if it is possible to change "MAX_FRAME_RETRIES" in the BitCloud stack from 3 to 20?


It is possible to change it to 7 (maximum value allowed by standard). Read docs about MAC_SetReq() and MAC_PIB_MAX_FRAME_RETRIES_ID parameter.

Chris3 wrote:

Would that even help?


It depends on what actually happens. If meter is too slow that may help. If it is too fast nothing but changing delay in the meter will help.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Chris3
PostPosted: Jul 17, 2009 - 12:42 PM
Newbie


Joined: Jul 17, 2009
Posts: 16


Do you know if there are any other docs for the BitCloud stack, than "AVR2052_BitCloud_Quick_Start_Guide.pdf" and "doc8199_BitCloud_UserGuide.pdf" and the include files?

The two pdf files only descibe a little part of the stack, and the so called "stack dokumentation" only describes the include files.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jul 17, 2009 - 12:59 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4864
Location: San Jose, CA

Chris3 wrote:
The two pdf files only descibe a little part of the stack, and the so called "stack dokumentation" only describes the include files.


BitCloud Stack Documentation chm is automatically generated by doxygen and describes all public API. What kind of docs do you need?

PS: Seems like documentation describes only ZDO and APS. So for other layers API you should look in .h files.

Please feel free to ask any questions.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Chris3
PostPosted: Jul 17, 2009 - 01:10 PM
Newbie


Joined: Jul 17, 2009
Posts: 16


Since it is auto-generated from the include files, not all functions or variables are described fully.
Ex. the function you sugested MAC_SetReq()and MAC_PIB_MAX_FRAME_RETRIES_ID is not descibed in "BitCloud Stack Documentation chm".

And also how the functions relate to each other is a bit hard for me to find out..
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jul 17, 2009 - 01:16 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4864
Location: San Jose, CA

Chris3 wrote:
And also how the functions relate to each other is a bit hard for me to find out..


Yes, I see. I agree that documentation is not complete at all. I personally can not do anything about this.

chm describes only higher layers. Lower layer are not supposed to be accessible for user.

API is pretty logical after short (or not so short) period of working with it.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
stevech
PostPosted: Jul 17, 2009 - 09:08 PM
Raving lunatic


Joined: Dec 18, 2001
Posts: 4716


Chris3 wrote:
Hi,

I am trying to connect a MeshBean 2 board from MeshNetics to a gas-meter.
I have programmed my MeshBean board with a standard controller program that works with other MeshBean boards.
But when I try to connect it to my ZigBee gas-meter, it will not connect.

Here is a screenshot of a connection try. (It was sniffed with a AVR Raven USB stick)



As you can see the client does not respond to the "association response" frame, and I dont know why that is?

The controller is programmed with the BitCloud stack from Atmel.
And I dont have any access to the gas-meters software.

Best Regards

Chris


You cannot hope to communicate with the meter unless the meter manufacturer wishes you to do so.
- encryption
- routing algorithm
- Application layer

etc

Many meters use 802.15.4 in 900 or 868MHz but from layer 2.5 up, it's proprietary. ZigBee has an AMI/AMR profile, but it may not be in use, or some variant is in use.

In my experience, meter manufacturers do not want or support open standards other than the bottom of the MAC and the PHY.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits