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
troyka
PostPosted: Jan 16, 2011 - 03:08 AM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Hi everybody,
Regarding to bitcloud WSNDemo example application,
I couldn’t find where is defined the function APL_WRITE_LOG(0x??).

Where / how can we access this log? (if we can)

Thanks!
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jan 16, 2011 - 09:52 AM
Raving lunatic


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

troyka wrote:
I couldn’t find where is defined the function APL_WRITE_LOG(0x??).


It is defined somewhere inside stack headers. But nevermind them, they are a part of very old testing and debugging infrastructure, which is not really helpful anyway. Basically all they were doing is sending parameter byte to the UART.

They don't do anything in release unless you explicitly enable them and even then I'm not sure that they are still working.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Jan 18, 2011 - 04:28 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


...and the assert function?
Code:
#ifdef _TEMPERATURE_SENSOR_
  assert(BC_SUCCESS == BSP_OpenTemperatureSensor(), 0xf007);
#endif
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jan 18, 2011 - 05:02 PM
Raving lunatic


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

troyka wrote:
...and the assert function?

This one is quite useful, but also disabled in releases since it drastically increases code size.

This function checks provided condition and if condition is false function hangs programm execution and outputs second number into UART. Helps to catch run-time bugs.

LE: but it is in HAL which is open source, so you may use it in your applications, just copy it from HAL.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Jan 20, 2011 - 04:55 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


APS_DataReq()function is available anywhere to watch and learn how it works?
or maybe it is a binary and has to be transparent to me and I just need to modify APS_DataReq_t structure as needed?
Thanks!
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jan 20, 2011 - 05:24 PM
Raving lunatic


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

troyka wrote:
or maybe it is a binary and has to be transparent to me and I just need to modify APS_DataReq_t structure as needed?
That one Smile
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Feb 12, 2011 - 10:45 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Hi,
I'm having problem starting the connection with WSN Monitor.
The sniffer from wireless services is working fine, but the wsn demo shows "can't connect" all the times I do "connect" to the IP:PORT (same as server)
Could be a problem that WSNDemoApp_USB_Coord.hex is not loaded on the usb stick? (I'm using the default firmware of the stick )

I'm asking this because for some reason, I couldn't reprogram the usbstick.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 13, 2011 - 08:01 AM
Raving lunatic


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

troyka wrote:
The sniffer from wireless services is working fine
Which means that there is sniffer firmware loaded to the stick.

troyka wrote:
Could be a problem that WSNDemoApp_USB_Coord.hex is not loaded on the usb stick?
By default there is sniffer firmware, which makes more sense.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Feb 26, 2011 - 10:09 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Alex,do you know where I can find (maybe you already got this) information about the raven board relating:
1-Antena maximum coverage range
2-max numbers of nodes allwed
3-average data rate etc...

thanks!
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 27, 2011 - 08:58 AM
Raving lunatic


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

troyka wrote:
1-Antena maximum coverage range
Have no idea, maybe it is easier just to try it yourself.

troyka wrote:
2-max numbers of nodes allwed
Depends on application.

troyka wrote:
3-average data rate etc...
Regularly 80-90 kbit/sec in one direction in peer-to-peer mode without APS ACKs.

All of above applies only to BitCloud, of course.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Mar 01, 2011 - 02:07 AM
Hangaround


Joined: Oct 28, 2009
Posts: 179


ok, I'll check that params by myself.
starting to configuring p2p application, found the CS_POWER_FAILURE.
what is the effect after enabled?
There is no info on manuals or web.

And after change BOARD to BOARD_USB_DONGLE
Quote:

E:\PROYECTO\BitCloud_ATAVRRZRAVEN_1_10_0\Applications\ThroughputTest/src/throughputTest.c:89: undefined reference to `BSP_OpenLcd'
./objs/throughputTest.o: In function `startingNetworkTimerFired':
E:\PROYECTO\BitCloud_ATAVRRZRAVEN_1_10_0\Applications\ThroughputTest/src/throughputTest.c:66: undefined reference to `BSP_SendLcdCmd'
./objs/throughputTest.o: In function `ZDO_StartNetworkConf':
E:\PROYECTO\BitCloud_ATAVRRZRAVEN_1_10_0\Applications\ThroughputTest/src/throughputTest.c:199: undefined reference to `BSP_SendLcdCmd'
make: *** [throughputTest.elf] Error 1
Build failed with 3 errors and 0 warnings...

IT's like the default value is still on BOARD_RAVEN and continues looking for LCD.h not leds.h


regards!
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Mar 01, 2011 - 09:51 AM
Raving lunatic


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

troyka wrote:
what is the effect after enabled?
Node will save it's state every 5 minutes into EEPROM and restore this state after power off without rejoin. Feature is pretty much useless since in 5 minutes a lot could happen and all this will be lost.

troyka wrote:
And after change BOARD to BOARD_USB_DONGLE
I guess you need to "make clean all" instead of just "make".
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Mar 01, 2011 - 02:47 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


That fix the problem.
ok, now I have the boards programmed, but it seems I need "AT91 USB to Serial Converter driver" (says on manual)
Do you know where to find it?

For the original firmware on the boards, the "jungo" driver works fine, but the Throughput Test Application ask for another one??...is this correct?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Mar 01, 2011 - 04:20 PM
Raving lunatic


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

troyka wrote:
Do you know where to find it?
It should be included in SDK. Search for *.ini files, this is description of device.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Mar 01, 2011 - 05:19 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


No, nothing on SDK, or wireless services installation or wireless studio.
Tried on XP, vista and W7, all of them asking for a driver.
Tried a USB folder under Atmel\AVR Tools\usb, there are some .inf files, but nothing.
AVR2051 (BitCloud Stack Documentation) talks about ""AT91 USB to Serial Converter driver""
How could be that no one before ask for this driver?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Mar 01, 2011 - 05:28 PM
Raving lunatic


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

troyka wrote:
How could be that no one before ask for this driver?


How about ThirdPartySoftware/6119_VCP.inf?

I don't have Raven SDK at hand, but in SDK for SAM7X_EK it is there.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Mar 01, 2011 - 08:03 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


THAT'S THE ONE!!!

I saw that WSNDemo contains a connect to serial port.
does that program works with Throughput Test Application? or just hyper terminal or related ones?

Another question. Still I haven't reach the connection between the two usb nodes.
My USB coordinator, shows the leds:
BLUE continuously on
Red blinks
Yellow continuously on

The other side, the router, blue, green and yellow are on continuously on all (red off).

From the manual, I read that the coordinator created the network successfully and sending data to the USB but not sending or receiving nothing through air.

Could you please check this config that I've used?:
Coordinator:
Code:

BOARD = BOARD_USB_DONGLE
SECURITY_MODE = NO_SECURITY_MODE
STACK_TYPE = COORDINATOR
CS_EXT_PANID = 0xAAAAAAAAAAAAAAAALL
CS_UID = 0x00LL
APP_USE_APS_ACK = 0
APP_DEVICE_TYPE = DEV_TYPE_COORDINATOR

All other variables as default.
And the Router:
Code:

BOARD = BOARD_USB_DONGLE
SECURITY_MODE = NO_SECURITY_MODE
STACK_TYPE = ROUTER
CS_EXT_PANID = 0xAAAAAAAAAAAAAAAALL
CS_UID = 0x01LL
APP_USE_APS_ACK = 0
APP_DEVICE_TYPE = DEV_TYPE_ROUTER


And that's all...did I miss something??
Thankyou!!
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Mar 01, 2011 - 08:34 PM
Raving lunatic


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

troyka wrote:
does that program works with Throughput Test Application? or just hyper terminal or related ones?
What program?

CS_UID == 0 means "read hardware UID" and I'm not sure raven has one.

Also try with STACK_TYPE = ALL for both sides.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Mar 01, 2011 - 09:19 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


ok, now it's working the Throughput Test Application.
The changes made was remove the 0 from the CS_UID.
Thanks again
 
 View user's profile Send private message  
Reply with quote Back to top
troyka
PostPosted: Mar 01, 2011 - 10:01 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Watching the data rates, if the coordinator and router are separated 1m of each other, no ACK and no security, the best bandwidth I get is 95Kbps (average)
If zigbee at 2.4Ghz predicts a 250Kbps of max speed...
I assume that bitcloud is calculating bandwidth only for the data payload. right?
if not, why is that slowdown on velocity?
 
 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