| Author |
Message |
|
|
Posted: Feb 06, 2012 - 11:32 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
Hi,
I have formed a network with two RCB128RFA1(with Sensor termninal board) boards and STK600-Atmega128RFA1-EK1(without any Baseboard). In the WSN Monitor software i am able to see the network.
Now i have to check how data transmission occurs. as the board has no on board sensors, WSN software is not showing any values. I want some constant values to be transmitted instead of temperarature, light and battery values. I tried changing appmessage.data.temperature=10. But it is not working. How to check data transmissions in WSN Demo.
Thanks,
Gopi Krishnan A. |
|
|
| |
|
|
|
|
|
Posted: Feb 06, 2012 - 09:32 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
| You need to change it at the place where they are filled - WSNSensorManager.c. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 07, 2012 - 04:23 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
Thanks alexru for your reply.
I did that in the WSNSensormanager.c file only. But it is not working.
At the same time i tried with sending some characters, In the terminal software i am able to see that characters.
In the WSN Monitor software i selected the node parameters, node history and preferences. But it is not showing
anything. In the Node history tab also it is not showing the parameters tab.
I want to filter the data(temperature,light and battery) and send it to the terminal. How to do this in
the APS_DataIndcoord() function. where the values are received in the APS_DataInd_t IndData variable.
What does the IndData->asdu actually holds. It is not that much clear in the API reference manual.
Thanks,
Gopi Krishnan A. |
|
|
| |
|
|
|
|
|
Posted: Feb 07, 2012 - 04:23 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
gopikrishnan wrote:
I did that in the WSNSensormanager.c file only. But it is not working.
What exact changes have you made?
gopikrishnan wrote:
At the same time i tried with sending some characters, In the terminal software i am able to see that characters.
How exactly you are sending characters?
gopikrishnan wrote:
What does the IndData->asdu actually holds. It is not that much clear in the API reference manual.
It is application payload, just arbitrary data that application on the other end decided to send. For WSN Demo this application is described by the structure named AppMessage_t. |
|
|
| |
|
|
|
|
|
Posted: Feb 08, 2012 - 04:30 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
In th WSNSensorManager.c i edited the temperaturedataReady() function as appmessage.data.meshbean.temperature = 11 or 'G' in the if(result) condition.
I sent 'G' character instead of data; It appeared in the terminal software in ascii mode.
i created a network with Bitcloud for megarf using RF4CE kit and ATmega128RFA1-EK1. I got one BeeProto board which has ZigBit ATZB-24-A2,
I programmed it using serial bootloader the image for EndDevice(WSNDemo_EndDev_Rf230_Amp.srec). But this one is not joining the network which i
formed using RF4CE(BitCloud for mega rf). It is not showing that node in the WSNMonitor software. why it is not joining the network.
If i want to add some application to that zigbit module(BeeProto Board) which solution file(For AVR Studio 5) i have to use and where i have to add my code. |
|
|
| |
|
|
|
|
|
Posted: Feb 08, 2012 - 03:14 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| I tried programming the BeePROTO board using ISP with correct fuse settings, Even then it is not working and not showing in the WSN Monitor software. |
|
|
| |
|
|
|
|
|
Posted: Feb 08, 2012 - 04:36 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
gopikrishnan wrote:
In th WSNSensorManager.c i edited the temperaturedataReady() function as appmessage.data.meshbean.temperature = 11 or 'G' in the if(result) condition.
Are you sure that this (result) condition is meet? Try changing it unconditionally. There are no miracles, it should work.
gopikrishnan wrote:
I programmed it using serial bootloader the image for EndDevice(WSNDemo_EndDev_Rf230_Amp.srec). But this one is not joining the network which i
formed using RF4CE(BitCloud for mega rf).
First of all you need an image without amplifier (_Amp). And file name suggests that you are using old version of BitCloud. Please download a recent one.
gopikrishnan wrote:
If i want to add some application to that zigbit module(BeeProto Board) which solution file(For AVR Studio 5) i have to use and where i have to add my code.
You need to select project "MeshBean" and configuration that reflects your needs. |
|
|
| |
|
|
|
|
|
Posted: Feb 09, 2012 - 03:52 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
It is meeting the result condition.
I downloaded the latest Bitcloud only.
Its my misunderstanding that i used the amplification image file. I tried the image file that is without amplification also. But it is not working.
Could you send me a image file for BeePROTO board which will act as a EndDevice and join the WSN Demo. |
|
|
| |
|
|
|
|
|
Posted: Feb 09, 2012 - 04:12 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
gopikrishnan wrote:
It is meeting the result condition.
Then you are doing something wrong. Please describe step-by-step what you are doing starting from freshly downloaded SDK. Otherwise I can't help you.
gopikrishnan wrote:
I tried the image file that is without amplification also. But it is not working.
What file you've used this time?
gopikrishnan wrote:
Could you send me a image file for BeePROTO board which will act as a EndDevice and join the WSN Demo.
I've never seen this board, how would I know what files work on it? Have you tried it with default SerialNet image? Have you checked fuses? |
|
|
| |
|
|
|
|
|
Posted: Feb 10, 2012 - 03:50 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
Now it is somehow working(after setting the fuse bits right and selecting the right file).
But having this problem:I loaded the WSNDemo_Router_Rf230.hex file now in the BeePROTO Board. In the WSNDemo i configured the coordinator(RCB128RFA1) to have only two routers and no end devices. In the software it shows the coordinator, if i switch on the BeePROTO board it joins the network now and then the End device is also joining. But it is not showing the router in the Monitor software. it shows only the coordinator and the end device without any link. why it is showing like this even i loaded the same WSN Demo application in all the three boards. Does the WSN Demo in Bitcloud for Zigbit and Bitcloud for megaRF uses different data formats. |
|
|
| |
|
|
|
|
|
Posted: Feb 10, 2012 - 04:14 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
| What end device image? Where it came from? They use the format, but when you creating images make sure to set different CS_UID for each image. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 13, 2012 - 04:52 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| End Device i used the ATmega128RFA1-STK600 board. That is working anyhow. I want a solution for this ZigBit board only. Even it has joined the network it is not in the WSN Monitor. I used the WSNDemo_Router_Rf230.hex. why it is so. |
|
|
| |
|
|
|
|
|
Posted: Feb 13, 2012 - 04:57 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
| The only reason I can imagine now is that CS_UID values are the same for two images. WSNDemo_Router_Rf230.hex has CS_UID set to 2. Other images must have different non-zero values. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 13, 2012 - 06:44 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| ok... If i want to change the CS_UID value, which solution file in the WSN Demo i can use. In the application there are only two types of solution files available. one for meshbean boards and the other for RCB boards(AVR Solution file). which one i have to use to modify the application. Not only for the BeePROTO board if i have my own zigbit board which one i have to start with and in the configuration.h file what are the configurations i have to set inorder to make the board work.which make file i have to use. |
|
|
| |
|
|
|
|
|
Posted: Feb 13, 2012 - 06:47 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
| Use MeshBean one, it was a development board for ZigBit. Use "All" Makefile. And you need at least select device type in configuration.h, change other settings if you need. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 13, 2012 - 06:56 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| I tried with meshbean only. If i want to use the UART_TXD and UART_RXD pins (13 and 14 pin of ZigBit) to communicate with the PC WSN Monitor software. If i configure it as coordinator, which APP_INTERFACE i have to use and which UART channel i have to select. |
|
|
| |
|
|
|
|
|
Posted: Feb 13, 2012 - 07:05 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
| Leave everything by default. Would not it be easier just to try? |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 13, 2012 - 07:17 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
I know that. I am not just trying. I spent one full day in that, I changed the configurations and also tried using different combinations. it is not working. what about the BSP_MNZB_EVB_SUPPORT.
what you are saying is, it is enough only to change the device type and CS_UID (using meshbean file)and connect it to the PC. In the WSN Monitor software i can see the device. right. |
|
|
| |
|
|
|
|
|
Posted: Feb 13, 2012 - 07:19 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
|
|
|
|
|
Posted: Feb 13, 2012 - 07:45 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
What exactly is not working? I will not even try to provide help unless you describe step by step what are you doing, what files changing, what buttons pressing. Provide as much information as possible. Do you have LEDs on your board? Are you sure device joined a network? Have you tried debugging?
I know, describing everything is details takes time, but so does guessing on my side. And I don't feel like wasting a lot of time.
I reply to "urgent" request the same way I reply normal requests - when I get to them. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 05:13 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
this is what i did:
1.i have one zigbit atzb-24-a2 with basic connections.
http://pub.ucpros.com/download/bee_prot ... 04s8arugk0
(refer figure 2 for pin connections)
2. As you said i selected the Meshbean solution file to start with. (AVR Studio 5).
3. I used the All make file.
4.In the configuration.h file
i changed the device type as coordinator
configured the APP_INTERFACE APP_USART
APP_USART_CHANNEL USART_CHANNE_1
5. other configurations i kept as it is.
6.I build the program and programmed the Zigbit using ISP. fuse settings 0xff,0x9d,0x62(given in bitcloud quick start guide). programmed succesfully.
7. In the zigbit i connected the UART_TXD and UART_RXD (13 & 14 pins) to PC using the level converters.
8.But in the PC, In the WSN Monitor software and in the Terminal software also it shows nothing. which means the coordinator is not transmitting anything.
9. what is the problem here and what i have to do to make it work. |
|
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 05:20 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
Configuration options you mentioned should be at your settings by default.
You need to set CS_UID to a non-zero value.
If it will not work then you'll have to debug it. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 05:45 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| I changed the CS_UID to a non-zero value, but it is not working. I have only the ISP programmer. I cannot debug. Is the USART connections and settings are right? will it work with this channel. did you see the connections. |
|
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 05:59 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
Connections look correct, especially given that it is a third-party board, which they have tested, I hope.
You can debug without a debugger. There are GPIO outputs, put some code that will change their state and see that it changes with and LED or multimeter. You can try writing simple program just for mega1281 and see if it works at all.
I don't see what else might be wrong. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 07:26 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| for that connections i have to use the USART_CHANNEL_1 or 0. whether i have to use USART interface or UART. |
|
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 07:32 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
| Use the default settings, they are correct (USART, CH 1). You will get nowhere by guessing, start debugging. You'll have to start at some point, otherwise how do you plan to write your own application? |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 07:40 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| ok i will start debugging. one last doubt before that. In the ZigBit you have given only GPIO0, GPIO1,GPIO2...,GPIO8. which atmega1281 port pins you have use in that. where i have to refer for this. |
|
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 03:32 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
I have debugged the problem(using uart function). Now it is working. It is because of not disabling the BSP.
I configured this one as APP_DISABLE_BSP 1 and now it is working. I used the Meshbean solution file.
For that GPIO i checked that gpio.h in HAL folder. But still it is not clear. which GPIO pins are being used in the ZigBit. |
|
|
| |
|
|
|
|
|
Posted: Feb 15, 2012 - 03:52 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
|
|
|
|
Posted: Feb 17, 2012 - 05:28 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
In the WSN Demo i edited the AppMessageRequest_t,
typedef struct _AppMessageRequest_t
{
uint8_t header[APS_ASDU_OFFSET];
AppMessage_t data;
uint8_t footer[APS_AFFIX_LENGTH - APS_ASDU_OFFSET];
} PACK AppMessageRequest_t;
Instead of Appmessage_t data, i replaced it with uint8_t data[50].
then i filled the array with my own data.
I commented all the appmessage.data. in the full program.
In the WSNCoord.c in the dataind fuction i changed appsendmessagetousart() to transmit the data in the received message. In the WSNUsart in the appsendmessagetousart function i edited it to send only the message, removed all the datas you have added for WSN Monitor(some datas like 0x10,0x02,0x03).
These are the problems i have faced,
1.I always used the All_zigbit make file. i will change the configuration to enddevice or router or coordinator. But now even i select the EndDevice in configuration.h it is working as coordinator(sending message to USART which i programmed for coordinator). when i select the Enddevice_zigbit make file then only it takes only the enddevice files(this time no data to usart).
2. The End device never joins the network.
Only the data of the coordinator is sent to USART. the dataind function is never called which implies that the enddevice has not joined the network. |
|
|
| |
|
|
|
|
|
Posted: Feb 17, 2012 - 06:11 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
1. You must have changed something else, it can't just break by itself.
2. See what status code is returned in ZDO_StartNetworkConf() on ED. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 04:10 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
that is working after taking a new project.
what is the maximum data rate possible using zigbee. Is the 250kbps defined by zigbee is a standard or it can be changed based on the platform?
what is size of one data frame including header ASDU and footer(ASDU of 95 bytes). what is the maximum frame rate possible? |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 05:04 AM |
|

Joined: Sep 29, 2010
Posts: 113
|
|
|
gopikrishnan wrote:
Is the 250kbps defined by zigbee is a standard or it can be changed based on the platform?
This data rate is the theoretical maximum possible from the 2.4GHz physical layer that ZigBee uses. It has nothing much to do with the Zigbee standard itself and is not anywhere close to the actual throughput that you will achieve. Actual data rates will be much lower due to framing overhead, protocol overhead, acknowledgement delays, etc. If you have an application where high data rate is a must, then ZigBee is probably not the right protocol for you. |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 05:36 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| Is This 250kbps data rate is not like the baud rate which we will use for UART. like 9600 baud rate. then how interoperability will be achieved between different vendors. |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 08:53 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
ZigBee is a packet protocol. Bits in each packet are sent at a physical rate of 250 kbps, but each packet has a header which limits useful throughput, then there are delays between packets which limits throughput even more. Then there are retries, etc.
Usually sustained transfer data rate at ZigBee application layer in peer-to-peer mode is about 100 kbps. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 09:05 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
thanks alexru for making it very clear.
what about the bandwidth in zigbee?
If i want to have bitrate more than 250kbps, what are the other protocols available other than bluetooth and wifi? |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 09:07 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
Atmel IEEE 802.15.4 chips have proprietary modes with data rates up to 2 Mbps (effective 1.3 Mbps), but there is no support for them in BitCloud.
What bit rate do you need? |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 09:16 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
I need 350kbps - 500kbps data rate.
what about bandwidth in zigbee. |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 09:20 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
gopikrishnan wrote:
I need 350kbps - 500kbps data rate.
Is it peer to peer or multiple devices? I suppose you need 500 kbps excluding any protocol overhead?
I don't know any easy to use solution apart from Atmel radios in a proprietary mode.
There might be some ASK/FSK radios from other vendors, but I'm not sure that they will go up to 500 kbps.
gopikrishnan wrote:
what about bandwidth in zigbee.
What about it? |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 10:34 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
peer to peer communication. what are those Atmel radios and which protocol to use?
how much bandwidth is zigbee using? Is it 5 Mhz?
If there is any wifi network means what will be its effect on zigbee network.
Does zigbee and wifi share the same bandwidth of frequencies? |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 10:42 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
gopikrishnan wrote:
peer to peer communication. what are those Atmel radios and which protocol to use?
All IEEE 802.15.4 radios: at86rf212, at86rf230, at86rf231.
gopikrishnan wrote:
how much bandwidth is zigbee using? Is it 5 Mhz?
Each channel is 5 MHz.
gopikrishnan wrote:
If there is any wifi network means what will be its effect on zigbee network.
Does zigbee and wifi share the same bandwidth of frequencies?
ZigBee and WiFi can work together quite well. WiFi will create some problems if it works on the same channel and large amounts of data are sent (large file transfer, etc). |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 11:35 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
does atmel provide any other stack to work with IEEE 802.15.4 radios.
Can Zigbee switch to other channels if it finds interference of wifi in the channel. Also wifi is having more bandwidth. Does zigbee uses any special mechanism to avoid interference. |
|
|
| |
|
|
|
|
|
Posted: Feb 23, 2012 - 11:51 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
gopikrishnan wrote:
does atmel provide any other stack to work with IEEE 802.15.4 radios.
MAC, which supports high data rate modes as far as I know.
gopikrishnan wrote:
Can Zigbee switch to other channels if it finds interference of wifi in the channel.
Interference from WiFi for ZigBee looks like any other noise. From your application you can detect that packet loss rate is too high (it might be WiFi, might be something else) and switch to a different channel.
gopikrishnan wrote:
Also wifi is having more bandwidth. Does zigbee uses any special mechanism to avoid interference.
There is no way to avoid it, if something transmits on the same frequency, it will interfere. How this interference will impact operation is hard to predict, two standards can co-exist pretty well. |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 12:10 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
I formed a network with zigbit in a wifi environment and it worked fine.
I have one another doubt. Suppose i start a network with coordinator and allows routers and end devices to join the network. At one stage i switch off the coordinator. now, will the network exist and data will be routed between end devices through router (which can do everything like a coordinator except starting a network). |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 12:32 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
gopikrishnan wrote:
I formed a network with zigbit in a wifi environment and it worked fine.
To have a clear experiment you need to run WiFi and ZigBee at the same frequency. See attached image.
gopikrishnan wrote:
I have one another doubt. Suppose i start a network with coordinator and allows routers and end devices to join the network. At one stage i switch off the coordinator. now, will the network exist and data will be routed between end devices through router (which can do everything like a coordinator except starting a network).
It will work, but it is not a good idea to run a network without a coordinator. First of all of power failure happens then network will not be able to start. And then coordinator acts as a network manager, it will resolve address conflicts, PAN ID conflicts and other rare, but important situations. |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 12:43 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| how much memory will the bitcloud stack takes? tell approximate values. how much memory will be available for user application if i am using all security features in the stack. we are planning to use zigbit in our product. which has 128kb flash memory. how to check the memory size in avr studio 5. |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 12:46 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
BitCloud Makefiles print size information at the end of the build; that should show up in the build window.
BitCloud with security will take approximately 100k of Flash. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 12:57 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| In the build window i am not able to find the exact file size which is to be loaded into the flash. could you please explain with a screen shot. |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 01:06 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
|
|
|
|
Posted: Feb 24, 2012 - 01:22 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
|
|
|
|
|
Posted: Feb 24, 2012 - 01:33 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
In that how to calculate flash memory and RAM memory usage. In other forum it is given as text+data is flash memory and data+bss is RAM. But when i build it is showing text = 85076 data = 4158 bss = 5616.
which means flash = 89 kb and RAM usage = 9kb approx.
with security flash is 112kb, RAM is 11kb,
But atmega128a1 is having only 8kb RAM. How to calculate these values correctly? |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 02:04 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
Yeah, I forgot to mention this.
RAM = data + bss - 4096 (initialized EEPROM size). In this case RAM usage = 5678 bytes. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 02:15 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
we are planning to use zigbit in our product. which has 128kb flash memory and 8kb flash (atmega128a1).
we need to have minimum 8 child nodes to maximum 16 child nodes(that too 16 routers) with standard link security feature.
Our user application will be very similar to Serial Net application with the above features.
Will the memory in the atmega1281 will be enough for this or we have to look for some other IC.
do you have some other modules like zigbit with more memory. |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 02:21 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
If those are the only requirements then it is totally doable with ZigBit.
Note that there is "Standard" security mode, where a single network key is shared between all devices in the network; and there is "Standard Link Key" security mode, where in addition to a shared network key there is an application link key between each pair of devices.
The second one is more secure, but requires more resources and harder to work with. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 02:29 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
If those are the only requirements then it is totally doable with ZigBit.
I didnt get what you are saying.
For home automation profile, which security mode to use. we need to have interoperable with other vendor devices. In home automation profile they have given link keys and all, which requires standard link security. |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 02:33 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
Well, now with HA it is completely different story. We release ZigBee Cluster Library (ZCL), but it is not available for ZigBit; complete ZCL simply will not fit, mostly because of RAM limitation.
HA is not a simple application, you'll have to implement generic (even if limited) ZCL functions first. In short, it is a plenty of work to do.
And yes, HA uses Standard Link Key security. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 03:10 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
Our product is for home automation only. alarm panel, Home automation IAS CIE device.
Is zigbee cluster library not available for zigbit. Then how it is possible for us to develop our product using zigbit? Is there any other possibility. Is it not possible for us to create clusters of our own for home automation profile?
Please give me some detailed suggestions. as we are in the proof of concept stage. next we have to finalize our thing.
Also we want to have 16 end devices and 16 routers in our IAS CIE device. this is our exact number.(just now i calculated and got cleared.) |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 03:19 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
Home Automation is a broad term, if you want real ZigBee Home Automation Profile then you'll have to implement at least some functionality from ZCL.
It is possible to create it on ZigBit using only BitCloud, you just need to realize that by my rough estimation it will take 1-2 man*months of a work for a trained person familiar with standards (ZigBee, ZCL, HA). |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 03:21 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
| For an untrained person it will take year+. You'll have to spent at least a month just reading though all the specifications. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 03:36 PM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
I am very new to zigbee. I want to make sure that this memory will be enough or not for our specification which i told. Also i thought ZCL will be easy to implement. Is it possible in zigbit or not.
you will now be some what clear what our product is, i think ZCL is must, then is it possible to do it with Bitcloud profile suite or not. |
|
|
| |
|
|
|
|
|
Posted: Feb 24, 2012 - 04:36 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
It is technically possible to implement in ZigBit, but you need certain skills. I'm, for example, can do it, and it will take me about a month to implement needed parts of ZCL and HA.
ZCL spec is 1000+ pages, you need couple weeks just to read it and understand what parts of it you need to implement. Make it a month if don't have extensive experience reading ZigBee docs.
So implementing ZCL (even limited) is not an easy task, but it is possible to do what you need with ZigBit. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 25, 2012 - 05:00 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
This is what i thought while starting.
cluster is a group of attributes. attributes or nothing but data. clusters is a group of data only. In a zigbee data frame these clusters and attributes will come under the data only. (In bitcloud the maximum data possible is 95 bytes.) Is creating a ZCL is like creating different data formats?
but it seems to be different after studying some documents? will you define these things clearly in simple english? |
|
|
| |
|
|
|
|
|
Posted: Feb 26, 2012 - 04:56 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
On top of this you need to implement logic to Read, Write, Report those attributes, with proper responses if requested attribute is not found, etc. Plus in addition to attributes there are cluster commands, which has to be implemented as well.
ZCL is 1000+ pages document, download it and read, there is a lot of info that is not needed for HA profile, but there is also description of common parts.
You can also download any BitCloud PS release and look at the API. You will end up with something similar, |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 04:27 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| does the full home automation profile has been implemented in BitCloud Profile suite stack. does it has all the features to develop our IAS CIE device. |
|
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 04:33 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
Only mandatory commands and attributes are supported in BitCloud by default (simply because it is humanly impossible to implement everything from ZCL), but there is clear way to extend this functionality to whatever you need. I have no idea what the requirements for IAS CIE are, so it is likely that we don't support everything needed out of the box; you'll have to read specification for this, but it will be much easier than implementing everything yourself.
HA profile is supported on ATmega128RFA1, which is almost as easy to work with as ZigBit. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 04:56 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
we are thinking about ATxmega256D3/A3.
how many maximum number of devices can be connected to a single network using Bitcloud profile suite. |
|
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 05:02 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
| 30+, I guess, there is no hard limit, it all depends on network load and operation scenario. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 05:15 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| we would like to have 256 end devices to be connected to the coordinator in some cases, is it possible or not. |
|
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 05:25 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
It is not recommended even for simple ZigBee applications, it almost certainly will not work for ZCL application. I don't remember if HA profile puts some cap on expected number of devices in the network, but Smart Energy Profile, for example, has limitation of 25 devices.
Networks of 256 devices are possible, but require careful planning. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 05:54 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| For Home Automation IAS CIE device the number of entries to the zone table is 256. which indirectly means that it can enroll 256 number of devices to it. see page number 342 in zigbee cluster library document. Is this feature is available in BitCloud Profile suite or not? |
|
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 05:59 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
There is no implementation for IAS CIE, whatever it is; you'll have to implement it yourself based on the specification and clusters that are supported.
I don't have this spec at hand, so I don't know what the size of the entry is, but it might be a challenge even to fit 256 entries in xmega RAM. You'll have to put some restrictions or rethink your MCU choice. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 06:26 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
| other than that you have sam3s4c mcu only which has 48kb ram and supports home automation. is it possible to select other ic's in the xmega series which has more ram |
|
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 06:42 AM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
48k might be enough, it depends on the entry size. Or you might need to use external SRAM if you really need 256 devices. Just keep in mind that network of 256 ZCL devices is nearly impossible, there is no reason to implement it in your device.
I don't think there are Xmega devices with more than 16 kb of SRAM. |
_________________ The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I'm affiliated with.
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 07:39 AM |
|

Joined: Jan 17, 2012
Posts: 46
|
|
We will discuss about the number of devices in our network and will get back to you regarding that later.
For the SAM3S4C, you have noted in the table 2.1 of profile suite developers guide as that certicom security support is pending for smart energy profile. Is it also for Home automation profile?
In the SAM3S4C does it implement the full profile suite stack for home automation profile or not? |
|
|
| |
|
|
|
|
|
Posted: Feb 27, 2012 - 06:55 PM |
|


Joined: Apr 15, 2009
Posts: 4978
Location: San Jose, CA
|
|
|
gopikrishnan wrote:
We will discuss about the number of devices in our network and will get back to you regarding that later.
The spec says:
Quote:
The maximum number of entries in the table is 256.
This is exactly why you need experience reading ZigBee Alliance documents. This is not a requirement, it is just a note and it only means that any other documents putting restrictions on this table size should not require more than 256 records. Some other document (probably HA spec) should put this limit, and if not, then it is up to the implementation. In any case record size is 11 bytes, which means that 256 records will take 2816 bytes; even xmega with 16 kb of RAM can hold this.
gopikrishnan wrote:
For the SAM3S4C, you have noted in the table 2.1 of profile suite developers guide as that certicom security support is pending for smart energy profile. Is it also for Home automation profile?
HA does not need Certicom security.
gopikrishnan wrote:
In the SAM3S4C does it implement the full profile suite stack for home automation profile or not?
No, from HA BitCloud implements only following devices: Trust Center, Thermostat, Remote Control, Occupancy Sensor, Dimmer Switch and Dimmable Light. On all devices only mandatory clusters are implemented, in clusters only mandatory commands are implemented.
This does not mean you can't implement your device, you'll just have to write more code than you would have for the Thermostat, for example. |
|
|
| |
|
|
|
|
|