| Author |
Message |
|
|
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: 4870
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: 4870
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: 4870
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: 4870
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: 4870
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: 4870
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: 4870
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: 4870
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? |
|
|
| |
|
|
|
|
|