| Author |
Message |
|
|
Posted: Dec 18, 2011 - 10:36 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
hi...
What is the role of eeprom AT24C02B in the ATmega128RFA1 Evaluation Kit?
is it necessary for work bitcloud and zigbee ? |
|
|
| |
|
|
|
|
|
Posted: Dec 18, 2011 - 10:39 PM |
|

Joined: Nov 02, 2009
Posts: 3239
Location: Zelenograd, Russia
|
|
| What is the role of AVR Wireless forum? |
_________________ Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 08:56 AM |
|


Joined: Jan 12, 2002
Posts: 7828
Location: Canada
|
|
| The external EEPROM is there for carrying hardware configuration information [one of the app notes discusses a structure for the data]. It is not "needed" as anything stored in it, can also be compiled/stored directly into your application. [while not needed, it is convenient, especially if your app can run on platforms with different RF front ends] |
|
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 12:23 PM |
|


Joined: Dec 20, 2002
Posts: 7276
Location: Dresden, Germany
|
|
The entire point of that separate EEPROM (which can also be found on
other Atmel transceiver boards) is to provide a "relatively safe"
space to store things like the IEEE address into. The normal MCU
EEPROM is prone to get its contents accidentally deleted when
reprogramming the CPU. |
_________________ Jörg Wunsch
Please don't send me PMs, use email if you want to approach me personally.
Please read the `General information...' article before.
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 09:14 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
thanks for answers...
in configuration file i see this:
# Whether or not the static addressing mode will be used
#----------------------------------------------------
#CS_NWK_UNIQUE_ADDR = true
CS_NWK_UNIQUE_ADDR = false
that`s mean in my case i never use eeprom?! |
|
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 09:39 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
nta_xyz wrote:
mean in my case i never use eeprom?!
It has nothing to do with this EEPROM.
External EEPROM is used by halReadUid() to read UID value at startup. |
|
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 10:09 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
hi alexru... 
thanks my friend...
i design and built a pcb like ATmega128RFA1 Evaluation Kit i got serial out put in true format and led behavior is true but i don`t know why my device(router) cant join to the other node(original ATmega128RFA1 Evaluation Kit(coordinator))
just green led blanking while other router(original ATmega128RFA1 Evaluation Kit(router))joined to the coordinator!?
please guide me...! |
|
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 10:10 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| Set CS_UID to a non-zero value on your board, since it does not have UID chip. |
_________________ 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: Dec 19, 2011 - 10:28 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
this is my pcb:
 |
Last edited by nta_xyz on Dec 19, 2011 - 10:39 PM; edited 1 time in total
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 10:32 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
i set this:
for coordinator=CS_UID = 0x12346LL (original)
router1=CS_UID = 0x12347LL(original)
router2=CS_UID = 0x12348LL(my pcb)
router1 join to coordinator but router2 can`t join:( |
|
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 10:33 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
RF performance will be very bad on this one:
1. Never place antenna in the middle of the board, surrounded by other components.
2. Never use thru-hole components in RF path. |
_________________ 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: Dec 19, 2011 - 10:34 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| What status code is returned? |
_________________ 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: Dec 19, 2011 - 10:43 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
status code?!
i just see green led blanking in router2..how i can see status code?! |
|
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 10:46 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| You need to find out the value of confirmInfo->status returned in ZDO_StartNetworkConf(). Use debugger, UART or any other method you might think of. |
_________________ 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: Dec 19, 2011 - 10:49 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
| i can show that on my lcd i find that and say here...thanks for guiding me:)... |
|
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 10:51 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
Great idea.
BTW, it is quite possible that RF performance is that poor, that device can't even join the network. Status code will show it anyway. |
_________________ 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: Jun 02, 2012 - 12:44 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
Hi again..!
I designed and made a new pcd like ATmega128RFA1 Evaluation Kit
...
the device finally could join to coordinator...
and i could see antenna icon in wsn monitor...
but after couple of seconds(about 10s) router icon(my board) disappears!!!
i think the device goes to hang state because the green led not blinking when leaves the network.
but i do not know why?!
please guide me...
thanks |
|
|
| |
|
|
|
|
|
Posted: Jun 02, 2012 - 09:05 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| You probably need to disable BSP in configuration.h. |
_________________ 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: Jun 02, 2012 - 11:18 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
thanks:)
in configuration.h i found only this with bsp:
# Enable on boards with managed USART to RS232 converter
#BSP_ENABLE_RS232_CONTROL = 1
BSP_ENABLE_RS232_CONTROL = 0
is this true?
and why i must disable this? |
|
|
| |
|
|
|
|
|
Posted: Jun 02, 2012 - 11:24 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| One of the first lines: "#define APP_DISABLE_BSP 0", change it to "1". It will disable reading of sensors that you don't have. I'm not sure it will be the problem for megaRF, but you may 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: Jun 03, 2012 - 10:35 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
i could not find this line in configuration.h!! ...
i use wsndemo but i can not see this:(... |
|
|
| |
|
|
|
|
|
Posted: Jun 04, 2012 - 11:22 AM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
this is my configuration.h file...
i have not eeprrom in my circuit is this a problem?
Code:
#----------------------------------------------------
# Components path definition
#----------------------------------------------------
COMPONENTS_PATH = ../../BitCloud/Components
#----------------------------------------------------
# Application path
#----------------------------------------------------
APP_PATH = .
#----------------------------------------------------
# Project name
#----------------------------------------------------
PROJNAME = WSNDemoApp
#----------------------------------------------------
# Compiler type
#----------------------------------------------------
COMPILER_TYPE = GCC
#COMPILER_TYPE = IAR
#----------------------------------------------------
# Boards selection
#----------------------------------------------------
BOARD = BOARD_STK600_ATMEGA128RFA1
#----------------------------------------------------
# Board-specific options
#----------------------------------------------------
ifeq ($(BOARD), BOARD_STK600_ATMEGA128RFA1)
# Controller reference frequency
#HAL_FREQUENCY = HAL_4MHz
HAL_FREQUENCY = HAL_8MHz
APP_INTERFACE = APP_INTERFACE_USART
APP_USART_CHANNEL = USART_CHANNEL_1
# Enable on boards with managed USART to RS232 converter
#BSP_ENABLE_RS232_CONTROL = 1
BSP_ENABLE_RS232_CONTROL = 0
#APP_USE_OTAU = 1
APP_USE_OTAU = 0
endif #BOARD_STK600_ATMEGA128RFA1
APP_INTERFACE_USART = 0x01
APP_INTERFACE_VCP = 0x02
#----------------------------------------------------
# Avilable values for AT86RF212 chip: -17..11, for others: -17..3
#----------------------------------------------------
CS_RF_TX_POWER = 3
#----------------------------------------------------
# BitCloud security options
#----------------------------------------------------
SECURITY_MODE = NO_SECURITY_MODE
#SECURITY_MODE = STANDARD_SECURITY_MODE
#SECURITY_MODE = HIGH_SECURITY_MODE
ifeq ($(SECURITY_MODE), STANDARD_SECURITY_MODE)
# Preconfigured network key
CS_ZDO_SECURITY_STATUS = 0
# Not preconfigured
#CS_ZDO_SECURITY_STATUS = 3
CS_NETWORK_KEY = "{0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC}"
CS_APS_TRUST_CENTER_ADDRESS = 0xAAAAAAAAAAAAAAAALL
#----------------------------------------------------
# APS security timeout period
#----------------------------------------------------
CS_APS_SECURITY_TIMEOUT_PERIOD = 10000
#----------------------------------------------------
# APS security buffers amount
#----------------------------------------------------
CS_APS_SECURITY_BUFFERS_AMOUNT = 4
endif #STANDARD_SECURITY_MODE
ifeq ($(SECURITY_MODE), HIGH_SECURITY_MODE)
# Preconfigured trust center link key
CS_ZDO_SECURITY_STATUS = 1
CS_NETWORK_KEY = "{0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC}"
CS_APS_TRUST_CENTER_ADDRESS = 0xAAAAAAAAAAAAAAAALL
#----------------------------------------------------
# APS security timeout period
#----------------------------------------------------
CS_APS_SECURITY_TIMEOUT_PERIOD = 10000
#----------------------------------------------------
# APS security buffers amount
#----------------------------------------------------
CS_APS_SECURITY_BUFFERS_AMOUNT = 4
#----------------------------------------------------
# APS key pair descriptors amount
#----------------------------------------------------
CS_APS_KEY_PAIR_DESCRIPTORS_AMOUNT = 4
endif #HIGH_SECURITY_MODE
#----------------------------------------------------
# BitCloud stack parameters
#----------------------------------------------------
#----------------------------------------------------
# Stack library type detection
#----------------------------------------------------
# Stack library supports all device types (Coordinator, Router and EndDevice)
STACK_TYPE = ALL_DEVICES_TYPES
# Stack library supports Coordinator device type
#STACK_TYPE = COORDINATOR
# Stack library supports Router device type
#STACK_TYPE = ROUTER
# Stack library supports End Device device type
#STACK_TYPE = ENDDEVICE
#----------------------------------------------------
# Channel mask and page to be used to run network
#----------------------------------------------------
CS_CHANNEL_MASK = "(1l<<0x0f)"
#----------------------------------------------------
# Extended PAN ID of the network to start or to join to
#----------------------------------------------------
CS_EXT_PANID = 0xAAAAAAAAAAAAAAAALL
#----------------------------------------------------
# Device UID
#----------------------------------------------------
CS_UID = 0x111LL
#----------------------------------------------------
# Whether or not the static addressing mode will be used
#----------------------------------------------------
#CS_NWK_UNIQUE_ADDR = true
CS_NWK_UNIQUE_ADDR = false
#----------------------------------------------------
# Device's short address
#----------------------------------------------------
CS_NWK_ADDR = 0x0001
#----------------------------------------------------
# End Device sleep period, ms
#----------------------------------------------------
CS_END_DEVICE_SLEEP_PERIOD = 10000
#----------------------------------------------------
# Maximum number of children that a given device (coordinator or router) may have
#----------------------------------------------------
CS_MAX_CHILDREN_AMOUNT = 8
#----------------------------------------------------
# Maximum number of routers among the children of one device
#----------------------------------------------------
CS_MAX_CHILDREN_ROUTER_AMOUNT = 2
#----------------------------------------------------
# Number of buffers to execute data requests on APS layer
#----------------------------------------------------
CS_APS_DATA_REQ_BUFFERS_AMOUNT = 3
#----------------------------------------------------
# Number of buffers to send APS acks
#----------------------------------------------------
CS_APS_ACK_FRAME_BUFFERS_AMOUNT = 2
#----------------------------------------------------
# Total amount of buffers to keep MAC data indications on NWK layer
#----------------------------------------------------
CS_NWK_BUFFERS_AMOUNT = 4
#----------------------------------------------------
# The size of neighbor table
#----------------------------------------------------
CS_NEIB_TABLE_SIZE = 8
#----------------------------------------------------
# Maximum amount of records in the NWK Route Table
#----------------------------------------------------
CS_ROUTE_TABLE_SIZE = 10
#----------------------------------------------------
# Maximum amount of records in the NWK Address Map Table
#----------------------------------------------------
CS_ADDRESS_MAP_TABLE_SIZE = 2
#----------------------------------------------------
# Maximum amount of records in the NWK Route Discovery Table
#----------------------------------------------------
CS_ROUTE_DISCOVERY_TABLE_SIZE = 3
#----------------------------------------------------
# Size of the APS Duplicate Rejection Table
#----------------------------------------------------
CS_DUPLICATE_REJECTION_TABLE_SIZE = 8
#----------------------------------------------------
# Enabales or disables the power failure feature
#----------------------------------------------------
#CS_POWER_FAILURE = true
CS_POWER_FAILURE = false
#----------------------------------------------------
# Auto polling by end device
#----------------------------------------------------
CS_AUTO_POLL = true
#CS_AUTO_POLL = false
#----------------------------------------------------
# Application parameters
#----------------------------------------------------
#----------------------------------------------------
# Application debug mode
#----------------------------------------------------
DEBUG = 1
#DEBUG = 0
#----------------------------------------------------
# Device type detection (for the boards without DIP switches)
#----------------------------------------------------
# Device is Coordinator
APP_DEVICE_TYPE = DEV_TYPE_COORDINATOR
# Device is Router
#APP_DEVICE_TYPE = DEV_TYPE_ROUTER
# Device is End Device
#APP_DEVICE_TYPE = DEV_TYPE_ENDDEVICE
#----------------------------------------------------
# Data sending period
#----------------------------------------------------
APP_TIMER_SENDING_PERIOD = 10000
#----------------------------------------------------
# Amount of failed transmissions in a row to initiate the rejoin network procedure
#----------------------------------------------------
APP_THRESHOLD_FAILED_TRANSMISSION = 4
ifeq ($(APP_USE_OTAU), 1)
EXTERNAL_MEMORY = AT45DB041
#EXTERNAL_MEMORY = AT25F2048
ifeq ($(SECURITY_MODE), STANDARD_SECURITY_MODE)
endif #STANDARD_SECURITY_MODE
endif #1
|
|
|
| |
|
|
|
|
|
Posted: Jun 04, 2012 - 05:02 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| This is not configuration.h file, is it? You are using very old version of BitCloud. |
_________________ 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: Jun 04, 2012 - 09:38 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
my bitcloud version is BitCloud_MEGARF_1_10_0 now i find version 13 in atmel.com:)
what is different between this 2 version? ... |
|
|
| |
|
|
|
|
|
Posted: Jun 04, 2012 - 09:39 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| A lot. There should be release notes in each new release. |
_________________ 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: Jun 05, 2012 - 12:33 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
i downloaded version 13:)...
but my device only one time blinking(green led) and then stop(both coordinator and router).
this happened when i have another node in my network while my device works correctly lonely and searching for devices...
please guide me how can i find my problem? |
|
|
| |
|
|
|
|
|
Posted: Jun 05, 2012 - 04:50 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| Now disable BSP. |
_________________ 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: Jun 05, 2012 - 07:29 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
| i do this but my device behavior not change:(... |
|
|
| |
|
|
|
|
|
Posted: Jun 05, 2012 - 08:47 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
| I would also set CS_UID to a non-zero value, just for test. If it does not work after that, then you'll have to debug and look where it gets stuck. |
_________________ 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: Jun 05, 2012 - 09:09 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
i set CS_UID manually...
coordinator= CS_UID 0x111LL
and my routers is=222 and 333...
but still have a problem:(....
which way you suggest me to debug my board?
i connected a character lcd(2*16) to my board and i can monitor every where...!!
thanks for guiding me:)... |
|
|
| |
|
|
|
|
|
Posted: Aug 07, 2012 - 12:40 PM |
|

Joined: Dec 30, 2010
Posts: 159
|
|
I could solve my problem:)...
this happened because of Voltage!!
LF33 does not work Appropriate:(
thanks for guiding me:)... |
|
|
| |
|
|
|
|
|