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
bjhkbowen
PostPosted: Feb 14, 2012 - 04:25 AM
Newbie


Joined: Feb 08, 2012
Posts: 4


I am attempting to port the example program STAR_NOBEACON from the MAC_v_2_7_0 esamples using the atmega1281 as my jumping off point. I have modified the pal_board.c, pal_irq.c, and pal_config.h files as instructed in the AVR2025 notes (for my hardware) and modified the makefile to build to the atmega328.

I can walk through the code and see that everything is working OK through the wpan_mlme_scan_req(MLME_SCAN_TYPE_ACTIVE,
SCAN_ALL_CHANNELS,
SCAN_DURATION,
DEFAULT_CHANNEL_PAGE);
statement. However, after that the callbacks for
network_scan_indication_cb and usr_mlme_scan_conf(uint8_t status,
uint8_t ScanType,
uint8_t ChannelPage,
uint32_t UnscannedChannels,
uint8_t ResultListSize,
void *ResultList)
are never reached. Since my target device is only 32K and the release code is about 22K I can't seem to use full debugging mode. Thus, debug is tedious. Does anyone have any thoughts on what to test? It seems that my SPI connections are good and the RST line is good. TST pin is grounded. I get a nice MCLK signal and I assume the I/O between the at86rf230 and atmega328 is working.

I have built a similar project using the RZ600-at86rf230 setup with no issues. But I know this is a large jump to new board hardware and mcu. Any thoughts would be appreciated. TIA -Bruce
 
 View user's profile Send private message  
Reply with quote Back to top
uracolix
PostPosted: Feb 14, 2012 - 10:22 AM
Hangaround


Joined: Jun 17, 2008
Posts: 454
Location: Meissen, Germany

I come up with 2 ideas how to debug this;

a) Can you check if you somehow run out of RAM ?
b) Do see interrupts on the RF230 interrupt pin at all?
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
firebee
PostPosted: Feb 14, 2012 - 11:32 AM
Wannabe


Joined: Jun 08, 2011
Posts: 84


Hi Bruce,
Since you have configured as active scan,do u able to c any beacon requests over the air?
 
 View user's profile Send private message  
Reply with quote Back to top
bjhkbowen
PostPosted: Feb 14, 2012 - 02:44 PM
Newbie


Joined: Feb 08, 2012
Posts: 4


uracolix wrote:
I come up with 2 ideas how to debug this;

a) Can you check if you somehow run out of RAM ?
b) Do see interrupts on the RF230 interrupt pin at all?


Thanks. I will check the RAM. I will need to borrow a 'scope to check the interrupt line. I'll post later the outcome.
 
 View user's profile Send private message  
Reply with quote Back to top
bjhkbowen
PostPosted: Feb 14, 2012 - 02:51 PM
Newbie


Joined: Feb 08, 2012
Posts: 4


firebee wrote:
Hi Bruce,
Since you have configured as active scan,do u able to c any beacon requests over the air?


Thanks. If I set up one of my Dev boards in Promiscuous mode will that serve as a "sniffer" ? My wireless experience is limited, so forgive my ignorance.
 
 View user's profile Send private message  
Reply with quote Back to top
firebee
PostPosted: Feb 20, 2012 - 07:05 AM
Wannabe


Joined: Jun 08, 2011
Posts: 84


[quote="bjhkbowen"]
firebee wrote:

Thanks. If I set up one of my Dev boards in Promiscuous mode will that serve as a "sniffer" ? My wireless experience is limited, so forgive my ignorance.


Yes Promiscuous mode example application will give you the basic sniffer utility. It is more than enough for at early stages of testing the user application Very Happy
 
 View user's profile Send private message  
Reply with quote Back to top
bjhkbowen
PostPosted: Feb 20, 2012 - 03:16 PM
Newbie


Joined: Feb 08, 2012
Posts: 4


Thanks firebee and uracolix for your help. I was able to resolve my problem.
It turned out that I had not set up my timer source correctly. The example code switches between two sources depending on whether the TRX is active or asleep. My active source was not valid, so when it was used all timekeeping stopped. Also, I see that the at86rf230 doesn't connect to the WPAN when in debug mode, but does so when running stand-alone. So I have been able to move on.
 
 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