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
alexru
PostPosted: May 28, 2011 - 07:14 PM
Raving lunatic


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

troyka wrote:
Could you please tell me where is located/documented the 3290's code?
It is in the BitCloud's BSP package for the Raven board. But it is unmodified copy of some standard package, I have no idea which one.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: May 30, 2011 - 09:51 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Hi, If I program the coordinator with:
CS_EXT_PANID = 0x00000001LL
On wsndemo I see 0x60CF
why is that?
I must specify that number with CS_WriteParameter(CS_EXT_PANID_ID, &value)
?
 
 View user's profile Send private message  
Reply with quote Back to top
troyka
PostPosted: May 30, 2011 - 10:18 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Hi, If I program the coordinator with:
CS_EXT_PANID = 0x00000001LL
On wsndemo I see 0x60CF
why is that?
The same thing is happening using CS_WriteParameter(CS_EXT_PANID_ID, &value)
?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: May 31, 2011 - 07:02 AM
Raving lunatic


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

troyka wrote:
CS_EXT_PANID = 0x00000001LL
On wsndemo I see 0x60CF
why is that?
I suspect that 0x60cf is a short PAN ID, while CS_EXT_PANID assigns extended PAN ID.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Jun 03, 2011 - 02:37 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Thanks for the last, wsndemo shows the network panid as panid, that's why I was seeing a randomly address.

Another question, this is related to wsndemo (no modifications made:
When transmitting, the frame is stored in the struct
appMessage.data.meshbean.something
but when receiving? are you using a "clone" struct called msg?
AppMessage_t *msg = (AppMessage_t *)indData->asdu;

is that correct?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jun 03, 2011 - 02:44 PM
Raving lunatic


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

troyka wrote:
are you using a "clone" struct called msg?
AppMessage_t *msg = (AppMessage_t *)indData->asdu;
msg is just a pointer, received message array is type-casted to the pointer to AppMessage_t structure.

No memory being allocated for msg here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Jun 03, 2011 - 02:49 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


ahh ok, so if I have a message already loaded in the AppMessage_t structure, it's not affected because im just using the struct format to read the memory space pointed by msg?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jun 03, 2011 - 02:52 PM
Raving lunatic


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

troyka wrote:
ahh ok, so if I have a message already loaded in the AppMessage_t structure, it's not affected because im just using the struct format to read the memory space pointed by msg?
correct.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Jun 04, 2011 - 03:37 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Time ago, watching the meshnetics software similitude’s to wsndemo, I was wondering if they bought some class of source code to modify, and then, develop that tool.
Does Atmel offer that code? (as open source or paid? )
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jun 04, 2011 - 05:09 PM
Raving lunatic


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

troyka wrote:
Time ago, watching the meshnetics software similitude’s to wsndemo, I was wondering if they bought some class of source code to modify, and then, develop that tool.
Does Atmel offer that code? (as open source or paid? )
I don't know what you are talking about. Can you elaborate?
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Jun 05, 2011 - 08:28 AM
Hangaround


Joined: Oct 28, 2009
Posts: 179


I'm talking about this software:
http://www.meshnetics.com/images/WSNmonitor.jpg

It's an ATMEL's WSNdemo clone with different brand and few more (or different) features.

My question is: Is there any way to get the source code?
Is this code paid? or freeware?

This question comes up because, once you modify the ASDU on wsndemo firmware, all program's features are not compatible with the modifications made therefore they are not displayed on pc....
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jun 05, 2011 - 08:32 AM
Raving lunatic


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

troyka wrote:
It's an ATMEL's WSNdemo clone with different brand and few more (or different) features.
This software was always called WSN Monitor, and it is called so in Atmel's reincarnation. WSNDemo is the name for the embedded part.

troyka wrote:
My question is: Is there any way to get the source code?
Nope, source code is not available.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Jun 06, 2011 - 05:09 AM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Yes, you are right about the names...
sturday night (4AM) + a very "little" drink = "WSNwhat??"
Anyway, thanks for clarify the source code matter.
 
 View user's profile Send private message  
Reply with quote Back to top
hnhoan
PostPosted: Jun 06, 2011 - 04:27 PM
Hangaround


Joined: Jan 20, 2011
Posts: 115
Location: Montreal, QC., Canada

troyka, may be this can clarify a little. Atmel bought Meshnetics about 2-3 years ago. That is where all the Atmel ZigBee software came from. Correct me if I am wrong about the details. It's all Atmel now.
 
 View user's profile Send private message  
Reply with quote Back to top
troyka
PostPosted: Jun 06, 2011 - 04:51 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Yes, you are right.
I saw that "news" but for me wasn't clear yet, who designed first WSNmonitor and who modified...
My first thought was "Meshnetic buy the licence to ATMEL"
maybe we can buy a licence too...
But it seems that things happened just the opposite way
 
 View user's profile Send private message  
Reply with quote Back to top
troyka
PostPosted: Jun 21, 2011 - 08:53 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


Hi, any idea the purpose of initSubStateMachine();
OTAU related?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jun 21, 2011 - 09:01 PM
Raving lunatic


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

troyka wrote:
Hi, any idea the purpose of initSubStateMachine();

Initializes sub-statemachine. Application logic is divided between 2 state machines - main one, that handles network start/rejoin/leave, and device specific one, that handles application logic (reads sensors, sends data, etc) when the main one is in the joined state.

Quote:
OTAU related?
Not at all.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
troyka
PostPosted: Jun 21, 2011 - 09:06 PM
Hangaround


Joined: Oct 28, 2009
Posts: 179


I'm guessing here but just in case here go the question:

The variable "appState" is related to the first state machine?
and the variables
"event" and "status" are related to the second one?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jun 22, 2011 - 11:45 AM
Raving lunatic


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

troyka wrote:
The variable "appState" is related to the first state machine?
Correct. It is a state if the main state machine.

troyka wrote:
and the variables "event" and "status" are related to the second one?
No, "event" is not a variable, it is a function parameter, it is an event state machine makes transition on.

And there is no "status" variable.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Marco84
PostPosted: May 22, 2012 - 11:39 PM
Newbie


Joined: Feb 23, 2012
Posts: 11


Hello,

I hope this topic isn't dead...
(I working with Bitcloud - WSNdemoApp in Ravens boards)
So, supose I have two ravens (both AVRRAVEN)and i have configure each coordinator and EndDevice.
Well, until here everything is great! My net is created!
But how can I send a frame from coordinator to endDevice? I can send frame from endDevice changing
WSNEndDeviceApp.c in "INITIAL_DEVICE_STATE":

messageParams.asduLength = 8;
messageParams.asdu = (uint8_t *)("ABCDEF ");
messageParams.APS_DataConf = APS_DataConf;

i can't see how do the same with the coord...

maybe i must create another EndPoint...

_________________
Marco Alves
 
 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